/* v12 hero overlay: true bottom-left overlay, no floating modal/card */
#biz-header {
  text-align: left !important;
}

#biz-header.biz-header--with-cover {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
}

/* make the cover the visual hero */
#biz-header.biz-header--with-cover .biz-cover-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 24px;
}

/* bottom gradient for legibility without blocking the image */
#biz-header.biz-header--with-cover .biz-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(95,84,92,0.30) 0%,
    rgba(95,84,92,0.18) 22%,
    rgba(255,248,244,0.04) 46%,
    rgba(255,248,244,0.00) 64%
  ) !important;
  pointer-events: none;
}

/* overlay text pinned bottom-left */
#biz-header.biz-header--with-cover .biz-header-inner {
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  top: auto !important;
  z-index: 2 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 6px !important;

  width: auto !important;
  max-width: calc(100% - 40px) !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

#biz-header.biz-header--with-cover #biz-name {
  position: relative;
  z-index: 3;
  margin: 0 !important;
  color: #2f9aa3;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  text-shadow:
    none;
}

#biz-header.biz-header--with-cover #biz-address,
#biz-header.biz-header--with-cover #biz-location {
  position: relative;
  z-index: 3;
  margin: 0 !important;
  color: #5f6673;
  text-shadow: none;
}

#biz-header.biz-header--with-cover .biz-location-row {
  margin-top: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

#biz-header.biz-header--with-cover #biz-maps {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center !important;
  min-height: 34px;
  padding: 0 12px;
  margin: 6px auto 0 auto !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.94) !important;
  background: rgba(255,255,255,0.32) !important;
  border: 1px solid rgba(255,255,255,0.32) !important;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(92,82,108,0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#biz-header.biz-header--with-cover #biz-maps:hover {
  background: rgba(255,255,255,0.42) !important;
}

@media (max-width: 720px) {
  #biz-header.biz-header--with-cover .biz-header-inner {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: calc(100% - 32px) !important;
  }

  #biz-header.biz-header--with-cover #biz-name {
    font-size: 20px !important;
  }
}


/* Fix negocio card alignment */
.biz-name,
.business-name,
.location-name,
.place-name,
.card-business-name,
.map-title,
.map-business-name,
#businessName {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto 10px auto !important;
  color: #2f9aa3;
  text-shadow: none;
}

.biz-address,
.business-address,
.location-address,
.place-address,
.card-business-address,
.map-address,
#businessAddress {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto 10px auto !important;
  color: #6b7280 !important;
  text-shadow: none !important;
}

.biz-maps,
.business-maps,
.location-maps,
.place-maps,
.card-business-maps,
.map-link,
#businessMaps {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
  color: #6b7280 !important;
  text-shadow: none !important;
}

.business-info,
.biz-info,
.location-info,
.place-info,
.card-business-info,
.map-overlay,
.map-content,
.map-info,
.map-labels {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.business-info > *,
.biz-info > *,
.location-info > *,
.place-info > *,
.card-business-info > *,
.map-overlay > *,
.map-content > *,
.map-info > *,
.map-labels > * {
  align-self: center !important;
  text-align: center !important;
}



/* Specific business frame fix */
.business-card .business-info,
.business-frame .business-info,
.location-card .location-info,
.map-card .map-info,
.map-preview .map-overlay,
.map-preview .map-content,
.store-card .store-info {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100% - 32px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.business-card .business-name,
.business-frame .business-name,
.location-card .location-name,
.map-card .map-title,
.map-preview .map-title,
.store-card .store-name {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 0 10px 0 !important;
  color: #5f6673 !important;
  text-shadow: none !important;
}

.business-card .business-address,
.business-frame .business-address,
.location-card .location-address,
.map-card .map-address,
.map-preview .map-address,
.store-card .store-address {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 0 10px 0 !important;
  color: #6b7280 !important;
  text-shadow: none !important;
}

.business-card .map-link,
.business-frame .map-link,
.location-card .map-link,
.map-card .map-link,
.map-preview .map-link,
.store-card .map-link {
  display: inline-block !important;
  margin: 0 auto !important;
  color: #6b7280 !important;
  text-shadow: none !important;
  float: none !important;
}


/* Mobile business hero colors: match desktop turquoise + gray instead of white */
@media (max-width: 720px){
  #biz-header.biz-header--with-cover #biz-name{
    color:#2f9aa3 !important;
    text-shadow:none !important;
  }

  #biz-header.biz-header--with-cover #biz-address,
  #biz-header.biz-header--with-cover #biz-location{
    color:#5f6673 !important;
    text-shadow:none !important;
  }

  #biz-header.biz-header--with-cover #biz-maps{
    color:#2f9aa3 !important;
    background:rgba(255,255,255,0.68) !important;
    border:1px solid rgba(47,154,163,0.18) !important;
    box-shadow:0 8px 18px rgba(92,82,108,0.08) !important;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
  }

  #biz-header.biz-header--with-cover #biz-maps:hover{
    background:rgba(255,255,255,0.82) !important;
  }
}


/* FINAL mobile override: force desktop color scheme */
@media (max-width: 720px){

  #biz-header #biz-name{
    color:#2f9aa3 !important;
    text-shadow:none !important;
  }

  #biz-header #biz-address,
  #biz-header #biz-location{
    color:#5f6673 !important;
    text-shadow:none !important;
  }

  #biz-header a[href*="maps"]{
    color:#2f9aa3 !important;
    background:rgba(255,255,255,0.75) !important;
    border:1px solid rgba(47,154,163,0.2) !important;
  }

}


/* Business card floral badge */
#biz-header .biz-badge{
  width:40px;
  height:40px;
  border-radius:999px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fffaf8;
  border:1px solid rgba(244,190,190,0.35);
  box-shadow:0 8px 20px rgba(236,170,170,0.14);
}

#biz-header .biz-badge img{
  width:24px;
  height:24px;
  display:block;
}

#biz-header #biz-name,
#biz-header #biz-address,
#biz-header #biz-location,
#biz-header #biz-maps{
  position:relative;
  z-index:1;
}

@media (max-width: 720px){
  #biz-header .biz-badge{
    width:38px;
    height:38px;
    margin:0 auto 9px;
  }

  #biz-header .biz-badge img{
    width:22px;
    height:22px;
  }
}
