/**
 * WPGMP infowindow + burbuja Google Maps (encolado tarde tras fc-wpgmp-*).
 * !important: fondos/colores del plugin / gm-style. border-radius vía --bo-iw-radius.
 */

/* --- Infowindow WPGMP: variables --bo-iw-* (admin: Colores mapas) --- */
/* !important necesario: WPGMP inyecta estilos inline por mapa con alta especificidad */
/* POI: solo :has(.wpgmp_infowindow…) dentro de .wpgmp_map_container */

.wpgmp_map_container {
  --bo-iw-radius: 12px;
  --bo-iw-image-radius: 12px;
}

/* Ofertas — fondo */
.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)),
.wpgmp_map_container .gm-style-iw-d:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)),
.wpgmp_infowindow:not(.wpgmp_infowindow_post),
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .wpgmp_iw_content,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .wpgmp_iw_head,
.wpgmp_infowindow.fc-infowindow-default,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-box,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-box.fc-itemcontent-padding {
  background: var(--bo-iw-ofertas-bg, #14B1A0) !important;
  background-color: var(--bo-iw-ofertas-bg, #14B1A0) !important;
  color: var(--bo-iw-ofertas-text, #374B5C) !important;
}

/* Bares — fondo (legacy global; excluye IW bares v6+ vía .bo-wpgmp-iw-bares en plantilla) */
.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow_post):not(:has(.bo-wpgmp-iw-bares)),
.wpgmp_map_container .gm-style-iw-d:has(.wpgmp_infowindow_post):not(:has(.bo-wpgmp-iw-bares)),
.wpgmp_infowindow_post:not(:has(.bo-wpgmp-iw-bares)),
.wpgmp_infowindow_post:not(:has(.bo-wpgmp-iw-bares)) .wpgmp_iw_content,
.wpgmp_infowindow_post:not(:has(.bo-wpgmp-iw-bares)) .wpgmp_iw_head,
.wpgmp_infowindow.wpgmp_infowindow_post.fc-item-default:not(:has(.bo-wpgmp-iw-bares)),
.wpgmp_infowindow_post:not(:has(.bo-wpgmp-iw-bares)) .fc-item-box,
.wpgmp_infowindow_post:not(:has(.bo-wpgmp-iw-bares)) .fc-item-box.fc-itemcontent-padding {
  background: var(--bo-iw-bares-bg, #FFC60B) !important;
  background-color: var(--bo-iw-bares-bg, #FFC60B) !important;
  color: var(--bo-iw-bares-text, #374B5C) !important;
}

.wpgmp_infowindow.wpgmp_infowindow_post.fc-item-default,
.wpgmp_infowindow.fc-infowindow-default {
  padding: 0 !important;
  width: auto !important;
  box-shadow: none !important;
}

.wpgmp_infowindow .fc-item-box.fc-itemcontent-padding,
.wpgmp_infowindow_post .fc-item-box.fc-itemcontent-padding {
  padding: 0 16px 18px !important;
  margin: 0 !important;
  max-width: min(calc(300px * var(--bo-iw-scale, 1)), calc((100vw - 48px) * var(--bo-iw-scale, 1))) !important;
  box-shadow: none !important;
}

/* Título del popup */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-title {
  background: var(--bo-iw-ofertas-cta, #FFFFFF) !important;
  color: var(--bo-iw-ofertas-cta-text, #14B1A0) !important;
  font-size: calc(18px * var(--bo-iw-scale, 1)) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  line-height: 1.3 !important;
  margin: 0 -16px 10px !important;
  padding: 6px 16px !important;
}

.wpgmp_infowindow_post .fc-item-title {
  color: var(--bo-iw-bares-text, #374B5C) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  line-height: 1.3 !important;
  margin: 0 0 8px !important;
}

/* Enlace CTA envolviendo título + imagen (sustituye al botón fc-btn-small) */
.bo-wpgmp-iw-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.bo-wpgmp-iw-link .fc-item-title {
  position: relative;
  padding-right: 20px;
}

.bo-wpgmp-iw-link .fc-item-title::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.55;
}

.bo-wpgmp-iw-link:active .fc-item-title::after {
  opacity: 1;
}

.bo-wpgmp-iw-link:active {
  background: color-mix(in srgb, currentColor 6%, transparent);
}

/* Ofertas: sin caret en el título -- ahora tiene su propia banda blanca, la flechita ya no encaja ahí. El padding-right ya vuelve a 16px vía el !important del bloque "Título del popup" de arriba. */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-iw-link .fc-item-title::after {
  display: none !important;
}

/* Badges de categoría / característica */
.wpgmp_infowindow .fc-infobox-categories,
.wpgmp_infowindow_post .fc-infobox-categories {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 0 8px !important;
}

.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-badge.info {
  background: var(--bo-iw-ofertas-cta, #FFFFFF) !important;
  color: var(--bo-iw-ofertas-cta-text, #14B1A0) !important;
  border: 1px solid var(--bo-iw-ofertas-cta, #FFFFFF) !important;
  border-radius: 6px !important;
  margin: 0 !important;
}

/* Categoría (ofertas): overlay sobre la foto, abajo a la derecha (antes: línea de texto encima de la foto) */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-iw-media .fc-infobox-categories {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
  z-index: 2 !important;
  margin: 0 !important;
  pointer-events: none !important;
  border: 1px solid var(--bo-listing-ofertas-accent, #14B1A0) !important;
  border-radius: 6px !important;
}

.wpgmp_infowindow_post .fc-badge.info {
  background: color-mix(in srgb, var(--bo-iw-bares-text, #374B5C) 10%, transparent) !important;
  color: var(--bo-iw-bares-text, #374B5C) !important;
  border: 1px solid color-mix(in srgb, var(--bo-iw-bares-text, #374B5C) 20%, transparent) !important;
  border-radius: 6px !important;
}

.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-badge-more {
  color: color-mix(in srgb, var(--bo-iw-ofertas-text, #374B5C) 80%, transparent) !important;
}

.wpgmp_infowindow_post .bo-wpgmp-badge-more {
  color: color-mix(in srgb, var(--bo-iw-bares-text, #374B5C) 80%, transparent) !important;
}

/* Creador y metadatos */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-meta,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-owner {
  color: color-mix(in srgb, var(--bo-iw-ofertas-text, #374B5C) 85%, transparent) !important;
}

.wpgmp_infowindow_post .fc-item-meta,
.wpgmp_infowindow_post .bo-wpgmp-owner {
  color: color-mix(in srgb, var(--bo-iw-bares-text, #374B5C) 85%, transparent) !important;
}

/* Nombre del anunciante como enlace (ofertas) — solo .bo-wpgmp-owner, no el .fc-item-meta combinado de arriba */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-owner {
  display: inline-block !important;
  font-size: calc(15px * var(--bo-iw-scale, 1)) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* Dirección (ofertas) */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-content {
  color: color-mix(in srgb, var(--bo-iw-ofertas-text, #374B5C) 75%, transparent) !important;
  font-size: calc(12px * var(--bo-iw-scale, 1)) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.wpgmp_infowindow_post .fc-item-content {
  color: color-mix(in srgb, var(--bo-iw-bares-text, #374B5C) 75%, transparent) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 8px 0 !important;
}

/* --- Descripción / post_content (infowindow) --- */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-listing-item__content,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-meta.bo-wpgmp-listing-item__content {
  color: var(--bo-iw-ofertas-text, #374B5C) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 0 8px !important;
}

.wpgmp_infowindow_post .bo-wpgmp-listing-item__content,
.wpgmp_infowindow_post .fc-item-meta.bo-wpgmp-listing-item__content {
  color: var(--bo-iw-bares-text, #374B5C) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 0 8px !important;
}

.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-listing-item__content p {
  color: var(--bo-iw-ofertas-text, #374B5C) !important;
  margin: 0 0 6px !important;
}

.wpgmp_infowindow_post .bo-wpgmp-listing-item__content p {
  color: var(--bo-iw-bares-text, #374B5C) !important;
  margin: 0 0 6px !important;
}

.wpgmp_infowindow .bo-wpgmp-listing-item__content p:last-child,
.wpgmp_infowindow_post .bo-wpgmp-listing-item__content p:last-child {
  margin-bottom: 0 !important;
}

/* Imagen destacada */
.wpgmp_infowindow .fc-feature-img,
.wpgmp_infowindow_post .fc-feature-img {
  float: none !important;
  margin: 8px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.wpgmp_infowindow .fc-feature-img img,
.wpgmp_infowindow_post .fc-feature-img img,
.wpgmp_infowindow .fc-item-featured_image img,
.wpgmp_infowindow_post .fc-item-featured_image img,
.wpgmp_infowindow .wpgmp_marker_image,
.wpgmp_infowindow_post .wpgmp_marker_image,
.wpgmp_infowindow .bo-wpgmp-iw-media img,
.wpgmp_infowindow_post .bo-wpgmp-iw-media img {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 160px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: none !important;
  border-radius: var(--bo-iw-image-radius);
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Foto (ofertas): paridad con bares -- ancho completo + recorte (cover) en vez de centrada con huecos (contain),
   y altura máxima escalable con el zoom (--bo-iw-scale), mismo patrón que .wpgmp-map-1 .wpgmp_infowindow_post */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-feature-img img,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-featured_image img,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .wpgmp_marker_image,
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-iw-media img {
  display: block !important;
  width: 100% !important;
  object-fit: cover !important;
  max-height: calc(160px * var(--bo-iw-scale, 1)) !important;
}

/* Botón amarillo secundario (plantillas WPGMP) */
.wpgmp_infowindow .fc-btn.fc-btn-yellow,
.wpgmp_infowindow_post .fc-btn.fc-btn-yellow {
  display: inline-block !important;
  background: #FFC60B !important;
  color: #1e293b !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-top: 10px !important;
  line-height: 1.3 !important;
}

.wpgmp_infowindow .fc-btn.fc-btn-yellow:hover,
.wpgmp_infowindow_post .fc-btn.fc-btn-yellow:hover {
  background: #e6b20a !important;
  color: #1e293b !important;
  text-decoration: none !important;
}

/* Contenedor burbuja Google Maps — solo WPGMP */
.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow) {
  box-shadow: none !important;
  border-radius: var(--bo-iw-radius);
  overflow: hidden;
  padding: 0 !important;
}

.wpgmp_map_container .gm-style-iw-d:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)) {
  overflow: auto !important;
  max-height: none !important;
  scrollbar-color: var(--bo-iw-ofertas-bg, #14B1A0) rgba(255, 255, 255, 0.2);
  scrollbar-width: thin;
}

.wpgmp_map_container .gm-style-iw-d:has(.wpgmp_infowindow_post) {
  overflow: auto !important;
  max-height: none !important;
  scrollbar-color: var(--bo-iw-bares-bg, #FFC60B) rgba(255, 255, 255, 0.2);
  scrollbar-width: thin;
}

/* Cola de la burbuja (triángulo) — solo WPGMP */
.wpgmp_map_container .gm-style-iw-t:has(.wpgmp_infowindow_post):not(:has(.bo-wpgmp-iw-bares)) .gm-style-iw-tc::after {
  background: var(--bo-iw-bares-bg, #FFC60B) !important;
}

.wpgmp_map_container .gm-style-iw-t:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)) .gm-style-iw-tc::after {
  background: var(--bo-iw-ofertas-bg, #14B1A0) !important;
}

/* Cabecera Google (.gm-style-iw-chr): X compacta — solo WPGMP */
.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow_post):not(:has(.bo-wpgmp-iw-bares)) .gm-style-iw-chr {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
  padding: 2px 4px 0 0 !important;
  background: var(--bo-iw-bares-bg, #FFC60B) !important;
}

.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)) .gm-style-iw-chr {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
  padding: 2px 4px 6px 0 !important;
  background: var(--bo-iw-ofertas-bg, #14B1A0) !important;
}

.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow) .gm-ui-hover-effect {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Círculo de contorno alrededor de la X (ofertas), sobre la cabecera teal -- más ajustado al icono que el box compartido de 28px */
.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)) .gm-ui-hover-effect {
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  border: 1px solid var(--bo-iw-ofertas-cta, #FFFFFF) !important;
}

.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow_post) .gm-style-iw-chr button span,
.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow_post) .gm-ui-hover-effect > span {
  width: 14px !important;
  height: 14px !important;
  margin: 7px !important;
  background-color: var(--bo-iw-bares-text, #374B5C) !important;
  filter: none !important;
}

.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)) .gm-style-iw-chr button span,
.wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow:not(.wpgmp_infowindow_post)) .gm-ui-hover-effect > span {
  width: 9px !important;
  height: 9px !important;
  margin: 0 !important;
  background-color: var(--bo-iw-ofertas-cta, #FFFFFF) !important;
  filter: none !important;
}

/* Cerrar personalizado WPGMP */
.wpgmp_infowindow:not(.wpgmp_infowindow_post) .infowindow-close {
  filter: none !important;
  color: var(--bo-iw-ofertas-text, #374B5C) !important;
}

.wpgmp_infowindow_post .infowindow-close {
  filter: none !important;
  color: var(--bo-iw-bares-text, #374B5C) !important;
}

/* Infowindow WPGMP — móvil unificado (bares + ofertas) */
@media (max-width: 767px) {
  .wpgmp_map_container .gm-style-iw-c:has(.wpgmp_infowindow) {
    width: min(calc((100vw - 32px) * var(--bo-iw-scale, 1)), calc(360px * var(--bo-iw-scale, 1))) !important;
    max-width: min(calc((100vw - 32px) * var(--bo-iw-scale, 1)), calc(360px * var(--bo-iw-scale, 1))) !important;
  }

  .wpgmp_map_container .gm-style-iw-d:has(.wpgmp_infowindow) {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  /* Ofertas: WPGMP fuerza .fc-infowindow-default .wpgmp_iw_content a width:33vh (33% del alto del viewport,
     no del ancho) en su propio @media (max-width:768px) -- deja el contenido mucho más estrecho que la
     burbuja exterior (.gm-style-iw-c, forzada arriba al ancho real), dejando un hueco enorme a la derecha.
     Selector más específico (2 clases + :not) para ganarle a WPGMP sin !important extra en el valor. */
  .wpgmp_infowindow:not(.wpgmp_infowindow_post) .wpgmp_iw_content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .wpgmp_infowindow .fc-item-box.fc-itemcontent-padding,
  .wpgmp_infowindow_post .fc-item-box.fc-itemcontent-padding {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .wpgmp_infowindow .fc-feature-img img,
  .wpgmp_infowindow_post .fc-feature-img img,
  .wpgmp_infowindow .fc-item-featured_image img,
  .wpgmp_infowindow_post .fc-item-featured_image img,
  .wpgmp_infowindow .wpgmp_marker_image,
  .wpgmp_infowindow_post .wpgmp_marker_image,
  .wpgmp_infowindow .bo-wpgmp-iw-media img,
  .wpgmp_infowindow_post .bo-wpgmp-iw-media img {
    border-radius: var(--bo-iw-image-radius);
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: min(220px, 55vw) !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
  }

  .wpgmp_infowindow,
  .wpgmp_infowindow_post,
  .wpgmp_infowindow .fc-item-box,
  .wpgmp_infowindow_post .fc-item-box {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .wpgmp_infowindow .fc-item-title,
  .wpgmp_infowindow_post .fc-item-title,
  .wpgmp_infowindow .fc-item-content,
  .wpgmp_infowindow_post .fc-item-content,
  .wpgmp_infowindow .bo-wpgmp-owner,
  .wpgmp_infowindow_post .bo-wpgmp-owner {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .wpgmp_infowindow .fc-infobox-categories,
  .wpgmp_infowindow_post .fc-infobox-categories {
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }

  /* Foto (ofertas): cap móvil IGUAL que bares (min(85px, 40vw), L621-624 más abajo) -- altura excesiva en mobile con el cap anterior (160px*scale); no se toca la regla compartida de arriba, solo se sobreescribe para ofertas */
  .wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-feature-img img,
  .wpgmp_infowindow:not(.wpgmp_infowindow_post) .fc-item-featured_image img,
  .wpgmp_infowindow:not(.wpgmp_infowindow_post) .wpgmp_marker_image,
  .wpgmp_infowindow:not(.wpgmp_infowindow_post) .bo-wpgmp-iw-media img {
    max-height: min(85px, 40vw) !important;
  }
}

/* --- Mapa bares (.wpgmp-map-1): infowindow posts split normal / oferta activa --- */
/* Decisión A: marco + fondo en .gm-style-iw-c; .fc-item-box transparente (sin doble borde) */
/* Override explícito de reglas globales .wpgmp_infowindow_post (mayor especificidad + !important) */

.wpgmp-map-1 {
  --bo-iw-bares-width: 360px;
  --bo-iw-bares-photo-max: 150px;
}

/* Ancho fijo en chrome Google (sin --bo-iw-scale); Decisión A */
.wpgmp-map-1 .gm-style-iw-c:has(.wpgmp_infowindow_post) {
  width: min(var(--bo-iw-bares-width), calc(100vw - 48px)) !important;
  max-width: min(var(--bo-iw-bares-width), calc(100vw - 48px)) !important;
}

.wpgmp-map-1 .wpgmp_infowindow_post,
.wpgmp-map-1 .wpgmp_infowindow_post .wpgmp_iw_content,
.wpgmp-map-1 .wpgmp_infowindow_post .wpgmp_iw_head,
.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-box,
.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-box.fc-itemcontent-padding,
.wpgmp-map-1 .gm-style-iw-d:has(.wpgmp_infowindow_post) {
  background: transparent !important;
  background-color: transparent !important;
}

/* Normal — fondo blanco en chrome Google */
.wpgmp-map-1 .gm-style-iw-c:has(.wpgmp_infowindow_post):not(:has(.fc-item-box--oferta-activa)),
.wpgmp-map-1 .gm-style-iw-c:has(.wpgmp_infowindow_post):not(:has(.fc-item-box--oferta-activa)) .gm-style-iw-chr {
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1) !important;
}

.wpgmp-map-1 .gm-style-iw-t:has(.wpgmp_infowindow_post):not(:has(.fc-item-box--oferta-activa)) .gm-style-iw-tc::after {
  background: #fff !important;
}

/* Oferta — marco + degradado (mismos valores que listado bares) */
.wpgmp-map-1 .gm-style-iw-c:has(.fc-item-box--oferta-activa) {
  border: 6px solid var(--bo-listing-bares-accent, var(--bo-iw-bares-bg, #FFC60B)) !important;
  background: linear-gradient(201deg, #FFFEF9 0%, #FFFBF0 30%, #FFF3CC 50%, #FFE699 100%) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.wpgmp-map-1 .gm-style-iw-c:has(.fc-item-box--oferta-activa) .gm-style-iw-chr {
  background: linear-gradient(201deg, #FFFEF9 0%, #FFFBF0 30%, #FFF3CC 50%, #FFE699 100%) !important;
  background-color: transparent !important;
}

.wpgmp-map-1 .gm-style-iw-t:has(.fc-item-box--oferta-activa) .gm-style-iw-tc::after {
  background: #FFE699 !important;
}

.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-box.fc-itemcontent-padding {
  padding: 0 0 10px !important;
  border: none !important;
  border-radius: 0;
  max-width: 100% !important;
}

/* Foto bleed superior */
.wpgmp-map-1 .wpgmp_infowindow_post .fc-feature-img {
  float: none !important;
  margin: 0 0 8px !important;
  padding: 0 8px !important;
  width: 100% !important;
}

.wpgmp-map-1 .wpgmp_infowindow_post .fc-feature-img img,
.wpgmp-map-1 .wpgmp_infowindow_post .wpgmp_marker_image,
.wpgmp-map-1 .bo-wpgmp-iw-media img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: max(80px, calc(var(--bo-iw-bares-photo-max) * var(--bo-iw-scale, 1))) !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: none !important;
  border-radius: var(--bo-iw-image-radius);
  margin: 0 !important;
  padding: 0 !important;
}

/* Título y dirección */
.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-title {
  display: inline-block;
  color: var(--bo-iw-bares-text, #374B5C) !important;
  padding: 0 16px !important;
  margin: 0 0 6px !important;
  font-size: calc(18px * var(--bo-iw-scale, 1)) !important;
}

.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-address {
  color: color-mix(in srgb, var(--bo-iw-bares-text, #374B5C) 75%, transparent) !important;
  font-size: calc(12px * var(--bo-iw-scale, 1)) !important;
  line-height: 1.4 !important;
  margin: 0 16px 8px !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

/* Descripción — normal: divisores dorados */
.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-box:not(.fc-item-box--oferta-activa) .fc-item-description-block {
  margin: 0 16px 8px !important;
  padding: 0 !important;
}

.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-box:not(.fc-item-box--oferta-activa) .fc-item-description {
  border-top: 1px solid var(--bo-listing-bares-accent, var(--bo-iw-bares-bg, #FFC60B)) !important;
  border-bottom: 1px solid var(--bo-listing-bares-accent, var(--bo-iw-bares-bg, #FFC60B)) !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  /*font-family: "Lexend Deca", sans-serif !important;*/
  font-size: calc(14px * var(--bo-iw-scale, 1)) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: var(--bo-iw-bares-text, #374B5C) !important;
  background: transparent !important;
}

/* Descripción — oferta: caja blanca + badge */
.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-box--oferta-activa .fc-item-description-block {
  position: relative !important;
  margin: 0 16px 8px !important;
  padding: 0 !important;
}

.wpgmp-map-1 .wpgmp_infowindow_post .fc-item-box--oferta-activa .fc-item-description {
  background: #fff !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  font-family: "Lexend Deca", sans-serif !important;
  font-size: calc(13px * var(--bo-iw-scale, 1)) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: #000 !important;
}

.wpgmp-map-1 .wpgmp_infowindow_post .bo-wpgmp-iw-oferta-badge {
  position: absolute !important;
  top: -6px !important;
  right: 4px !important;
  width: 52px !important;
  height: auto !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Cerrar Google — legible sobre blanco y degradado */
.wpgmp-map-1 .gm-style-iw-c:has(.wpgmp_infowindow_post) .gm-style-iw-chr button span,
.wpgmp-map-1 .gm-style-iw-c:has(.wpgmp_infowindow_post) .gm-ui-hover-effect > span {
  background-color: var(--bo-iw-bares-text, #374B5C) !important;
}

@media (max-width: 767px) {
  .wpgmp-map-1 .gm-style-iw-c:has(.wpgmp_infowindow_post) {
    width: min(var(--bo-iw-bares-width), calc(100vw - 32px)) !important;
    max-width: min(var(--bo-iw-bares-width), calc(100vw - 32px)) !important;
  }

  .wpgmp-map-1 .wpgmp_infowindow_post .fc-feature-img img,
  .wpgmp-map-1 .wpgmp_infowindow_post .wpgmp_marker_image {
    max-height: min(85px, 40vw) !important;
  }
}

/* --- Badge distancia GPS (infowindow) --- */
.wpgmp-map-1 .bo-wpgmp-iw-media,
.wpgmp_map_container:not(.wpgmp-map-1) .bo-wpgmp-iw-media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.wpgmp-map-1 .bo-wpgmp-iw-media .fc-feature-img,
.wpgmp_map_container:not(.wpgmp-map-1) .bo-wpgmp-iw-media .fc-feature-img {
  margin: 0 !important;
  width: 100% !important;
}

.wpgmp-map-1 .bo-wpgmp-iw-distance,
.wpgmp_map_container:not(.wpgmp-map-1) .bo-wpgmp-iw-distance {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78) ;
  color: #fff ;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none ;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

/* Logo del bar — superior central sobre la imagen del infowindow */
.wpgmp-map-1 .bo-wpgmp-iw-media .bo-wpgmp-iw-logo,
.wpgmp_map_container:not(.wpgmp-map-1) .bo-wpgmp-iw-media .bo-wpgmp-iw-logo {
  position: absolute;
  bottom: 0;
  right: 8px;
  z-index: 3;
  display: block;
  max-width: 42%;
  pointer-events: none;
  line-height: 0;
}

.wpgmp-map-1 .bo-wpgmp-iw-media .bo-wpgmp-iw-logo img,
.wpgmp_map_container:not(.wpgmp-map-1) .bo-wpgmp-iw-media .bo-wpgmp-iw-logo img {
  max-height: 44px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.35));
}

