/* ===========================================================
   LIFE EXPLORER — Buscador de Experiencias
   Estética inspirada en curated.supply (quiet luxury, minimal)
   aplicada a la distribución de referencia (sidebar + grid + mapa)

   TODO selector de este archivo va prefijado con "#lifeExplorerRoot"
   (el div que envuelve todo el contenido del buscador dentro de la
   página, ver life-explorer-deiframe.php). Esto es intencional: el
   buscador ya no vive en su propio <iframe>/documento aislado, sino
   nativo dentro de la página de WordPress, y este stylesheet se carga
   en TODO el sitio (no solo aquí). Sin el prefijo, resets básicos como
   "body", "a", "button", "main" o ".container" se aplican a TODA la
   página del tema -- eso fue justo la causa de dos bugs reales: un
   espacio en blanco sobre el footer (por "main{padding-bottom:80px}"
   afectando el <main> del tema) y estilos de otras secciones de la
   página perdiendo su apariencia esperada. Cualquier regla nueva que se
   agregue aquí debe llevar el mismo prefijo.
   =========================================================== */

#lifeExplorerRoot{
  --bg: #FFFFFF;
  --bg-alt: #F1ECE2;
  --surface: #FFFFFF;
  --text: #211D17;
  --text-muted: #746C5E;
  --border: #E8E1D3;
  --border-strong: #D8CEB9;
  /* Acento del buscador unificado con el azul de marca del sitio
     (el mismo --e-global-color-accent, #5398C0, del botón "Back to Life"
     del header), en vez del dorado que usaba antes. */
  --accent: #5398C0;
  --accent-soft: #E4EFF5;
  --accent-dark: #3D7391;
  --success: #4C7A5B;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(33,29,23,0.04), 0 8px 24px rgba(33,29,23,0.06);
  --shadow-hover: 0 4px 10px rgba(33,29,23,0.06), 0 16px 32px rgba(33,29,23,0.10);
  --maxw: 1360px;
  font-synthesis: none;

  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#lifeExplorerRoot *{ box-sizing: border-box; }

#lifeExplorerRoot a{ color: inherit; text-decoration: none; }
#lifeExplorerRoot button{ font-family: inherit; cursor: pointer; }
#lifeExplorerRoot input, #lifeExplorerRoot select{ font-family: inherit; }

#lifeExplorerRoot .container{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
#lifeExplorerRoot .topbar{
  position: sticky; top:0; z-index: 40;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
#lifeExplorerRoot .topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 28px; max-width: var(--maxw); margin:0 auto; gap: 24px;
}
#lifeExplorerRoot .brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
#lifeExplorerRoot .brand-mark{
  width:34px; height:34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #E7C77A);
  display:flex; align-items:center; justify-content:center;
  color:#241a06; font-weight:700; font-size:15px;
}
#lifeExplorerRoot .brand-text{ display:flex; flex-direction:column; line-height:1.05; }
#lifeExplorerRoot .brand-text b{ font-size:15px; letter-spacing:0.06em; }
#lifeExplorerRoot .brand-text span{ font-size:10.5px; color:var(--text-muted); letter-spacing:0.16em; text-transform:uppercase; }

#lifeExplorerRoot .nav-links{ display:flex; gap: 26px; font-size: 13.5px; color: var(--text-muted); }
#lifeExplorerRoot .nav-links a:hover{ color: var(--text); }

#lifeExplorerRoot .topbar-actions{ display:flex; align-items:center; gap:12px; }
/* El reset del tema (hello-elementor) estiliza input[type=text], button,
   [type=button] etc. con selectores que EMPATAN en especificidad con
   clases sueltas de una sola clase (.btn, .searchbar input...) y, como el
   CSS del tema se carga después en el <head>, ganaba el empate -- de ahí
   el marco oscuro en el buscador y botones con colores que no eran los
   nuestros. El prefijo de id (además de ya scopear todo el archivo) sube
   la especificidad por encima de cualquier selector de atributo/elemento
   del tema, sin necesidad de !important. */
#lifeExplorerRoot .btn{
  border:1px solid var(--border-strong); background: var(--surface); color: var(--text);
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight:600;
  display:inline-flex; align-items:center; gap:8px; transition: all .15s ease;
}
#lifeExplorerRoot .btn:hover{ border-color: var(--accent); background: var(--surface); color: var(--text); }
#lifeExplorerRoot .btn-gold{
  background: var(--accent); border-color: var(--accent); color:#fff;
}
#lifeExplorerRoot .btn-gold:hover{ background: var(--accent-dark); border-color: var(--accent-dark); color:#fff; }
#lifeExplorerRoot .btn-ghost{ border-color: transparent; background: transparent; padding: 8px 10px; }

/* ---------- Hero / search ---------- */
#lifeExplorerRoot .hero{
  padding: 46px 0 26px;
  border-bottom: 1px solid var(--border);
}
#lifeExplorerRoot .hero-kicker{
  display:inline-flex; align-items:center; gap:8px; font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--accent-dark); background: var(--accent-soft); padding: 5px 12px; border-radius:999px; margin-bottom:16px;
}
#lifeExplorerRoot .hero .container{ text-align:center; }
#lifeExplorerRoot .hero h1{
  font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 8px; font-weight: 650; letter-spacing:-0.01em;
}
#lifeExplorerRoot .hero h1 em{ font-style: normal; color: var(--accent-dark); }
#lifeExplorerRoot .hero p{ color: var(--text-muted); max-width: 560px; margin: 0 auto 24px; font-size: 15.5px; }

#lifeExplorerRoot .searchbar{
  display:flex; align-items:center; gap:10px;
  background: var(--surface); border:1px solid var(--border-strong); border-radius: 999px;
  padding: 6px 6px 6px 20px; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow);
}
#lifeExplorerRoot .searchbar svg{ flex-shrink:0; color: var(--text-muted); }
#lifeExplorerRoot .searchbar input{
  flex:1; border:none; outline:none; background:transparent; font-size:15px; padding:10px 0; color: var(--text);
  border-radius:0; width:auto;
}
#lifeExplorerRoot .searchbar input::placeholder{ color:#A79E8C; }
#lifeExplorerRoot .searchbar button{
  background: var(--accent); color:#fff; border:none; border-radius:999px; padding:11px 22px; font-weight:700; font-size:13.5px;
  white-space:nowrap; width:auto; display:inline-block; text-align:center;
}
#lifeExplorerRoot .searchbar button:hover{ background: var(--accent-dark); color:#fff; }

#lifeExplorerRoot .search-clear{
  display:none; align-items:center; justify-content:center; flex-shrink:0;
  width:26px !important; height:26px !important; min-width:26px; border-radius:50% !important;
  background: var(--bg-alt); color: var(--text-muted);
  border:none; font-size:12px; padding:0 !important; line-height:1;
}
#lifeExplorerRoot .search-clear:hover{ background: var(--border-strong); color: var(--text); }
#lifeExplorerRoot .search-clear.visible{ display:flex; }

#lifeExplorerRoot .chip-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:16px; }
#lifeExplorerRoot .chip{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid var(--border-strong); background:var(--surface); color: var(--text-muted);
  padding: 7px 14px; border-radius:999px; font-size:12.8px; font-weight:600; transition: all .15s ease;
}
#lifeExplorerRoot .chip:hover{ border-color: var(--accent); color: var(--text); }
#lifeExplorerRoot .chip.active{ background: var(--text); color:#fff; border-color: var(--text); }
#lifeExplorerRoot .chip .dot{ width:6px; height:6px; border-radius:50%; background: currentColor; opacity:.5; }

/* ---------- Una sola barra: filtros + sort + conteo + clear ----------
   Category / Country / Destination / Sort comparten exactamente el mismo
   look compacto tipo "select" (caja blanca, borde fino, esquinas
   redondeadas, texto discreto + chevron). Category/Country siguen siendo
   un botón que abre un panel flotante (son multi-selección, no caben en
   un <select> nativo); Destination y Sort son <select> nativos con la
   misma clase visual. El conteo de resultados y "Clear filters" quedan
   pegados a la derecha de la misma fila. */
#lifeExplorerRoot .filters-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding: 22px 0 30px; }
#lifeExplorerRoot .filters-bar .results-count{ margin-left:auto; }
/* .filters-group envuelve Category/Country/Destination/Sort. En
   escritorio se comporta igual que si no existiera el envoltorio (mismo
   flex/gap que .filters-bar); en celular se compacta bajo el botón
   "Filters" (ver el media query de abajo). */
#lifeExplorerRoot .filters-group{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
#lifeExplorerRoot .mobile-filters-toggle{ display:none; }
@media (max-width: 880px){
  #lifeExplorerRoot .filters-bar{ gap:8px; }
  #lifeExplorerRoot .filters-bar .results-count{ margin-left:0; width:100%; order:10; text-align:center; }
  /* "Clear filters" centrado en su propia línea. */
  #lifeExplorerRoot .filters-bar #clearFiltersBtn{ order:11; margin:0 auto !important; }

  /* "Filters ▾" compacta Category/Country/Destination/Sort en celular.
     (!important porque la regla base ".filter-chip{width:auto}" -- que
     también aplica aquí, ya que este botón comparte esa clase -- vive
     más abajo en el archivo y, al empatar en especificidad, gana por
     orden de aparición aunque esté fuera de cualquier media query.) */
  #lifeExplorerRoot .mobile-filters-toggle{
    display:inline-flex !important; width:100% !important; justify-content:space-between; align-items:center;
  }
  #lifeExplorerRoot .mobile-filters-toggle.open{ border-color:#5398C0; color:#5398C0; }
  #lifeExplorerRoot .mobile-filters-toggle.open .dd-caret{ transform:rotate(180deg); }
  #lifeExplorerRoot .filters-group{
    display:none; grid-template-columns:1fr 1fr; align-items:stretch; width:100%; margin-top:8px; gap:8px;
  }
  #lifeExplorerRoot .filters-group.open{ display:grid; }
  /* Category y Country uno al lado del otro (2 columnas); Destination y
     Sort ocupan el ancho completo cada uno, en su propia fila. */
  #lifeExplorerRoot .filters-group .filter-dd{ width:100% !important; min-width:0; }
  #lifeExplorerRoot .filters-group .filter-dd .filter-chip{ width:100% !important; justify-content:space-between; }
  #lifeExplorerRoot .filters-group #localidadFilter,
  #lifeExplorerRoot .filters-group #sortSelect{ grid-column:1/-1; width:100% !important; min-width:0; }
}

#lifeExplorerRoot .filter-dd{ position:relative; }
#lifeExplorerRoot .filter-chip,
#lifeExplorerRoot .select-field-compact{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
  padding: 10px 14px; border-radius: 10px; font-size:13.5px; font-weight:600;
  transition: all .15s ease; width:auto;
}
#lifeExplorerRoot .filter-chip:hover,
#lifeExplorerRoot .select-field-compact:hover{ border-color: var(--accent); }
#lifeExplorerRoot .filter-dd.open .filter-chip{ border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
#lifeExplorerRoot .select-field-compact{ min-width:170px; cursor:pointer; }
#lifeExplorerRoot .dd-count{ color: var(--accent-dark); font-weight:700; }
#lifeExplorerRoot .dd-caret{ font-size:11px; color: var(--text-muted); transition: transform .2s ease; }
#lifeExplorerRoot .filter-dd.open .dd-caret{ transform: rotate(180deg); }

#lifeExplorerRoot .filter-dd-panel{
  position:absolute; top: calc(100% + 8px); left:0; z-index:30;
  min-width:260px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding:16px;
  opacity:0; visibility:hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
#lifeExplorerRoot .filter-dd.open .filter-dd-panel{ opacity:1; visibility:visible; transform:none; }
@media (max-width: 880px){
  #lifeExplorerRoot .filter-dd-panel{ min-width:0; max-width: calc(100vw - 40px); max-height:60vh; overflow-y:auto; }
}

/* ---------- Resultados: a todo lo ancho, debajo de los filtros ---------- */
#lifeExplorerRoot main{ display:block; padding-bottom: 80px; }
@media (max-width: 880px){ #lifeExplorerRoot main{ padding-bottom: 110px; } }

#lifeExplorerRoot .filter-group{ margin-bottom: 6px; }
#lifeExplorerRoot .filter-option{
  display:flex; align-items:center; gap:10px; padding:8px 4px; border-radius:8px; font-size:14px; cursor:pointer;
  color: var(--text);
}
#lifeExplorerRoot .filter-option:hover{ background: var(--bg-alt); }
#lifeExplorerRoot .filter-option input{ accent-color: var(--accent); width:16px; height:16px; }
#lifeExplorerRoot .filter-option .count{ margin-left:auto; color: var(--text-muted); font-size:12.5px; }
#lifeExplorerRoot .filter-option .icon{ width:18px; text-align:center; }

/* ---------- Vitrina de países (masonry) ---------- */
#lifeExplorerRoot .pais-showcase{
  display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px;
  grid-auto-flow: dense; gap: 16px;
}
#lifeExplorerRoot .pais-card{
  position:relative; border-radius: var(--radius); overflow:hidden; cursor:pointer;
  background:#1C1812; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  grid-column: span 1; grid-row: span 1;
}
#lifeExplorerRoot .pais-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); }
#lifeExplorerRoot .pais-card.active{ outline: 2px solid var(--accent); outline-offset:2px; }
#lifeExplorerRoot .pais-card.size-1x1{ grid-column: span 1; grid-row: span 1; }
#lifeExplorerRoot .pais-card.size-1x2{ grid-column: span 1; grid-row: span 2; }
#lifeExplorerRoot .pais-card.size-2x1{ grid-column: span 2; grid-row: span 1; }
#lifeExplorerRoot .pais-card.size-2x2{ grid-column: span 2; grid-row: span 2; }
#lifeExplorerRoot .pais-card.size-3x1{ grid-column: span 3; grid-row: span 1; }
@media (max-width: 880px){
  #lifeExplorerRoot .pais-showcase{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
  #lifeExplorerRoot .pais-card.size-3x1{ grid-column: span 2; }
}
#lifeExplorerRoot .pais-card-badge{
  position:absolute; top:12px; left:12px; z-index:2; width:26px; height:26px; border-radius:50%;
  background: rgba(255,255,255,0.85); color:#241a06; font-weight:700; font-size:12px;
  display:flex; align-items:center; justify-content:center;
}
#lifeExplorerRoot .pais-card-bottom{ position:absolute; left:14px; right:14px; bottom:12px; z-index:2; color:#fff; }
#lifeExplorerRoot .pais-card-name{ display:block; font-size:15px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
#lifeExplorerRoot .pais-card-count{ display:block; font-size:11px; color:rgba(255,255,255,0.75); margin-top:2px; }

/* Conteo de resultados: vive dentro de .filters-bar (ver arriba), pegado
   a la derecha junto con "Clear filters". */
#lifeExplorerRoot .results-count{ font-size:14.5px; color: var(--text-muted); white-space:nowrap; }
#lifeExplorerRoot .results-count b{ color: var(--text); }

/* ---------- Cards grid (ficha estilo editorial: imagen/video a toda la tarjeta) ---------- */
#lifeExplorerRoot .grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1200px){ #lifeExplorerRoot .grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px){ #lifeExplorerRoot .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ #lifeExplorerRoot .grid{ grid-template-columns: 1fr; } }
#lifeExplorerRoot .card{
  display:block; position:relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow:hidden; cursor:pointer;
  background: #1C1812; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  text-decoration:none; color:inherit;
}
#lifeExplorerRoot .card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* object-fit:cover + posición explícita (no solo el shorthand "inset")
   para que la imagen/video SIEMPRE llene la ficha completa, aunque sea
   horizontal — mostrando solo la parte central si hace falta recortar,
   sin dejar nunca una franja del fondo oscuro de la ficha a la vista. */
#lifeExplorerRoot .card-media-el{
  position:absolute !important; top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
  width:100% !important; height:100% !important; min-width:100%; min-height:100%;
  max-width:none; object-fit:cover; object-position:center;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}
#lifeExplorerRoot .card:hover .card-media-el{ transform: scale(1.07); }

/* Fichas con foto de portada + video que solo se reproduce en hover */
#lifeExplorerRoot .card-media-hover{ position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%; }
#lifeExplorerRoot .card-media-hover .card-media-video{ opacity:0; transition: opacity .35s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
#lifeExplorerRoot .card:hover .card-media-hover .card-media-video{ opacity:1; }
#lifeExplorerRoot .card-media-yt-frame{ position:absolute; top:0; left:0; right:0; bottom:0; pointer-events:none; }
/* El iframe real del reproductor lo dimensiona app.js en línea (para
   cubrir la ficha completa); esto es un respaldo por si algún CSS del
   sitio fuerza max-width/max-height en iframes en general. */
#lifeExplorerRoot .card-media-yt-frame iframe{ max-width:none !important; max-height:none !important; }

#lifeExplorerRoot .card-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
#lifeExplorerRoot .card:hover .card-placeholder{ transform: scale(1.05); }
#lifeExplorerRoot .card-placeholder .ph-icon{ font-size:34px; opacity:.9; }
#lifeExplorerRoot .card-placeholder .ph-word{ font-family: Georgia, "Times New Roman", serif; font-style:italic; font-size:20px; color: rgba(255,255,255,0.92); letter-spacing:.01em; }

#lifeExplorerRoot .card-scrim{
  position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, rgba(10,8,4,0.05) 0%, rgba(10,8,4,0.05) 38%, rgba(10,8,4,0.55) 72%, rgba(8,6,3,0.86) 100%);
}
#lifeExplorerRoot .card-video-indicator{
  position:absolute; bottom:14px; right:14px; width:30px; height:30px; border-radius:50%;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(6px); display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:12px; border:1px solid rgba(255,255,255,0.3);
}

#lifeExplorerRoot .card-top-row{ position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; z-index:2; }
#lifeExplorerRoot .pill{
  font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  padding:5px 10px; border-radius:999px; backdrop-filter: blur(6px); white-space:nowrap;
  background: rgba(20,16,8,0.4); color:#fff; border:1px solid rgba(255,255,255,0.16);
}
#lifeExplorerRoot .pill-new{ background: var(--accent); color:#fff; border-color: var(--accent); }
#lifeExplorerRoot .pill-rating{ background: rgba(20,16,8,0.55); color:#fff; }

#lifeExplorerRoot .card-bottom{ position:absolute; left:16px; right:16px; bottom:14px; z-index:2; color:#fff; }
#lifeExplorerRoot .card-kicker{ font-size:11px; text-transform:uppercase; letter-spacing:.07em; color: rgba(255,255,255,0.75); margin-bottom:4px; display:flex; align-items:center; gap:5px; }
#lifeExplorerRoot .card-title{ font-size:16.5px; font-weight:650; line-height:1.24; margin:0 0 8px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
#lifeExplorerRoot .card-meta{ display:flex; justify-content:space-between; align-items:center; font-size:11.5px; color: rgba(255,255,255,0.7); padding-top:8px; border-top:1px solid rgba(255,255,255,0.18); }
#lifeExplorerRoot .card-cta{ font-size:11.5px; font-weight:700; color:#fff; }

#lifeExplorerRoot .empty-state{ text-align:center; padding: 60px 20px; color: var(--text-muted); }
#lifeExplorerRoot .empty-state .big{ font-size:38px; margin-bottom:10px; }

/* ---------- Detail drawer ----------
   .overlay usa position:fixed contra el viewport real de la página (el
   buscador ya no vive en un <iframe>, así que esto funciona de forma
   nativa sin necesidad de ningún ajuste desde app.js). */
#lifeExplorerRoot .overlay{ position:fixed; inset:0; background: rgba(20,16,8,0.45); z-index:60; display:none; align-items:flex-start; justify-content:flex-end; }
#lifeExplorerRoot .overlay.open{ display:flex; }
#lifeExplorerRoot .drawer{
  position:relative; width:min(400px, 100%); background: var(--bg); max-height:100%; overflow-y:auto; box-shadow: -12px 0 40px rgba(0,0,0,0.18);
  animation: life-explorer-slideIn .25s ease;
}
@keyframes life-explorer-slideIn{ from{ transform: translateX(24px); opacity:0;} to{ transform:none; opacity:1; } }
#lifeExplorerRoot .drawer-media{ height:220px; display:flex; align-items:flex-end; padding:18px; color:#fff; position:relative; }
#lifeExplorerRoot .drawer-close{
  position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%;
  background: rgba(255,255,255,0.85); border:none; display:flex; align-items:center; justify-content:center; font-size:16px;
}
#lifeExplorerRoot .drawer-body{ padding: 22px 24px 20px; font-size:15.5px; }
#lifeExplorerRoot .drawer-body h2{ font-size:25px; margin: 6px 0 8px; }
#lifeExplorerRoot .card-loc{ font-size:14px; color: var(--text-muted); margin-bottom:2px; }
#lifeExplorerRoot .drawer-tags{ display:flex; gap:8px; flex-wrap:wrap; margin: 10px 0 16px; }
#lifeExplorerRoot .badge{
  display:inline-flex; align-items:center; font-size:12.5px; font-weight:700;
  padding:7px 13px; border-radius:999px; white-space:nowrap; line-height:1.2;
}
#lifeExplorerRoot .badge-new{ background: var(--accent-soft); color: var(--accent-dark); }
#lifeExplorerRoot .drawer-facts{ display:grid; grid-template-columns: 1fr; gap:10px; margin: 16px 0; }
#lifeExplorerRoot .fact{ background: var(--surface); border:1px solid var(--border); border-radius:12px; padding:13px 14px; }
#lifeExplorerRoot .fact .k{ font-size:11.5px; text-transform:uppercase; color: var(--text-muted); letter-spacing:.06em; }
#lifeExplorerRoot .fact .v{ font-size:16px; font-weight:700; margin-top:3px; }
#lifeExplorerRoot .drawer-actions{
  /* en flujo normal, justo debajo de la info -- ya no se fija al fondo
     del panel para que no quede un hueco vacío cuando hay poco contenido.
     "View destination" queda arriba y "Request experience" abajo porque
     así se generan en el HTML (ver openDetail() en app.js): en columna,
     el primer botón cae arriba. */
  position:relative; width:100%; background: var(--surface);
  border-top:1px solid var(--border); padding:16px 24px; display:flex; flex-direction:column; gap:10px; z-index:1;
}
#lifeExplorerRoot .drawer-actions .btn{ width:100%; justify-content:center; padding:13px 10px; font-size:14.5px; font-weight:700; }

/* ---------- Reservation modal (3 steps) ---------- */
#lifeExplorerRoot .modal-overlay{ position:fixed; inset:0; background: rgba(20,16,8,0.5); z-index:70; display:none; align-items:center; justify-content:center; padding:20px; }
#lifeExplorerRoot .modal-overlay.open{ display:flex; }
#lifeExplorerRoot .modal{
  width:min(640px,100%); max-height:90vh; overflow-y:auto; background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3); padding: 28px 28px 24px;
}
#lifeExplorerRoot .modal-steps{ display:flex; gap:8px; margin-bottom:22px; }
#lifeExplorerRoot .modal-steps .s{ flex:1; height:4px; border-radius:99px; background: var(--border); }
#lifeExplorerRoot .modal-steps .s.done{ background: var(--accent); }
#lifeExplorerRoot .modal h3{ margin: 0 0 4px; font-size:20px; }
#lifeExplorerRoot .modal .sub{ color:var(--text-muted); font-size:13.5px; margin-bottom:20px; }
#lifeExplorerRoot .field{ margin-bottom:14px; }
#lifeExplorerRoot .field label{ display:block; font-size:12.5px; font-weight:700; color: var(--text-muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.04em; }
#lifeExplorerRoot .field input,
#lifeExplorerRoot .field select,
#lifeExplorerRoot .field textarea{
  width:100%; padding:11px 13px; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); font-size:14.5px;
}
#lifeExplorerRoot .field-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#lifeExplorerRoot .radio-row{ display:flex; gap:10px; flex-wrap:wrap; }
#lifeExplorerRoot .radio-pill{ border:1px solid var(--border-strong); border-radius:999px; padding:9px 16px; font-size:13.5px; cursor:pointer; }
#lifeExplorerRoot .radio-pill.sel{ background: var(--text); color:#fff; border-color: var(--text); }
/* "Trip type" (Corporate / Incentive / Executives / Personal): las 4
   opciones en una sola línea, repartiéndose el ancho por igual (en
   escritorio). En celular se reemplaza por un <select> (ver más abajo). */
#lifeExplorerRoot #tipoViaje{ flex-wrap:nowrap; gap:8px; }
#lifeExplorerRoot #tipoViaje .radio-pill{ flex:1; text-align:center; padding:9px 6px; font-size:12.5px; white-space:nowrap; }
#lifeExplorerRoot .tipoviaje-mobile-select{ display:none; }
#lifeExplorerRoot .modal-nav{ display:flex; justify-content:space-between; margin-top:20px; }
#lifeExplorerRoot .confirm-box{ text-align:center; padding: 20px 0; }
#lifeExplorerRoot .confirm-box .icon{ width:60px; height:60px; border-radius:50%; background: var(--accent-soft); color: var(--accent-dark); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:28px; }

/* ---------- FAQ / footer bits reused ---------- */
#lifeExplorerRoot .section{ padding: 50px 0; }
#lifeExplorerRoot .section-title{ font-size:26px; margin:0 0 8px; }
#lifeExplorerRoot .section-sub{ color:var(--text-muted); margin:0 0 26px; max-width:600px; }

/* ---------- Mobile bottom nav ---------- */
#lifeExplorerRoot .bottom-nav{
  position:fixed; bottom:0; left:0; right:0; background: var(--surface); border-top:1px solid var(--border);
  display:none; justify-content:space-around; padding: 10px 6px 14px; z-index:50;
}
@media (max-width:880px){ #lifeExplorerRoot .bottom-nav{ display:flex; } }
#lifeExplorerRoot .bottom-nav .item{ display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10.5px; color: var(--text-muted); }
#lifeExplorerRoot .bottom-nav .item.active{ color: var(--accent-dark); font-weight:700; }

@media (max-width:880px){
  #lifeExplorerRoot .topbar-inner{ padding: 14px 18px; }
  #lifeExplorerRoot .nav-links{ display:none; }
  #lifeExplorerRoot .hero{ padding: 30px 0 20px; }
  #lifeExplorerRoot .container{ padding:0 18px; }
}

/* ---- Lightbox: ver pagina de pais/localidad (task #59) ---- */
#lifeExplorerRoot .card-locality-link{ margin-left:6px; opacity:.85; text-decoration:none; color:inherit; cursor:pointer; }
#lifeExplorerRoot .card-locality-link:hover{ opacity:1; text-decoration:underline; }
#lifeExplorerRoot .btn-outline-locality{ background:#fff; border:1px solid #5398C0; color:#5398C0; }
#lifeExplorerRoot .btn-outline-locality:hover{ background:#3D7391; border-color:#3D7391; color:#fff; }

/* #localityLightbox se agrega con JS directo a document.body (no dentro
   de #lifeExplorerRoot) a propósito, para que su position:fixed cubra
   TODO el viewport sin depender del contexto de apilamiento del
   buscador. Por eso estas reglas van SIN el prefijo #lifeExplorerRoot:
   el id #localityLightbox ya es único de sobra (lo genera este mismo
   script) como para no chocar con nada más del sitio. */
.locality-lightbox{ position:fixed; inset:0; z-index:99999; background:rgba(20,16,8,0.55); display:none; align-items:center; justify-content:center; }
.locality-lightbox.open{ display:flex; }
/* 50px de margen a los lados, y un ancho de contenido tipo tablet (~820px)
   para que la página de destino embebida (que es responsiva) renderice su
   propio layout de tablet en vez del de escritorio. */
.locality-lightbox-inner{
  position:relative; width:min(920px,94vw); height:90%; background:#fff; border-radius:16px;
  overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,0.4);
  padding: 0 50px; box-sizing:border-box;
}
.locality-lightbox-inner iframe{ width:100%; height:100%; border:0; display:block; }
.locality-lightbox-close{
  position:absolute; top:12px; right:12px; z-index:2; width:38px; height:38px; border-radius:50%; border:none;
  background:#5398C0; color:#fff;
  display:flex; align-items:center; justify-content:center; line-height:1; padding:0;
  box-shadow:0 4px 14px rgba(0,0,0,0.25); cursor:pointer; font-size:16px;
}
@media (max-width:600px){ .locality-lightbox-inner{ width:100vw; height:100%; border-radius:0; padding:0; } }

/* ---- Mobile UX fixes: buscador sin desborde ---- */
@media (max-width: 880px){
  #lifeExplorerRoot .searchbar{ width:100% !important; max-width:100%; box-sizing:border-box; }
  #lifeExplorerRoot .searchbar input{ min-width:0; }
  #lifeExplorerRoot .searchbar button{ padding:11px 16px; white-space:nowrap; }
}

/* =========================================================
   MEJORAS SOLO PARA CELULAR (no tocar nada de escritorio)
   ========================================================= */
@media (max-width: 880px){
  /* 1) Tache de cerrar la ficha de detalle: mismo azul que el buscador */
  #lifeExplorerRoot .drawer-close{
    background:#5398C0 !important;
    color:#fff !important;
  }

  /* 3) Los botones flotantes (redes, reservar, ir arriba) ya se ocultan
     con JS al abrir una ficha/drawer/modal; esto es un respaldo para que,
     aunque algo falle, el drawer/modal SIEMPRE quede por encima y sus
     botones (Request experience, View destination) sean clickeables. */
  #lifeExplorerRoot .overlay,
  #lifeExplorerRoot .modal-overlay{ z-index:10050; }
  .locality-lightbox{ z-index:100000; }

  /* 6) Duration ocupa el ancho completo arriba; Group size + Destination
     (los últimos dos "fact") quedan juntos, uno al lado del otro, abajo. */
  #lifeExplorerRoot .drawer-facts{ grid-template-columns:1fr 1fr; }
  #lifeExplorerRoot .drawer-facts .fact:first-child{ grid-column:1/-1; }

  /* "Trip type": <select> en vez de 4 botones (ocupan más espacio y son
     menos intuitivos de tocar en celular). */
  #lifeExplorerRoot #tipoViaje{ display:none; }
  #lifeExplorerRoot .tipoviaje-mobile-select{ display:block; width:100%; }

  /* "How would you prefer we contact you": Email/Call/WhatsApp en una
     sola línea (antes WhatsApp se iba a la fila de abajo). */
  #lifeExplorerRoot #canalContacto{ flex-wrap:nowrap; gap:6px; }
  #lifeExplorerRoot #canalContacto .radio-pill{ flex:1; text-align:center; padding:9px 4px; font-size:12px; white-space:nowrap; }
}

/* 5) Indicador de carga del popup "View destination": el logo LIFE
   (usado como máscara, no como imagen) se va "llenando" de azul en
   loop mientras el iframe de la página de destino carga. */
.le-lightbox-loading{
  position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center;
  background:#fff; transition:opacity .25s ease;
}
.le-lightbox-loading.le-loaded{ opacity:0; pointer-events:none; }
.le-lightbox-loading-logo{ position:relative; width:72px; height:72px; }
.le-lightbox-loading-logo .track,
.le-lightbox-loading-logo .fill{
  position:absolute; inset:0;
  -webkit-mask-image:url('https://lifeconsultingroup.com/experiences-dev/wp-content/uploads/2026/01/LIFE-logo-2023.blanco.svg');
  mask-image:url('https://lifeconsultingroup.com/experiences-dev/wp-content/uploads/2026/01/LIFE-logo-2023.blanco.svg');
  -webkit-mask-size:contain; mask-size:contain;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
}
.le-lightbox-loading-logo .track{ background:#D8CEB9; }
.le-lightbox-loading-logo .fill{
  background:#5398C0;
  clip-path: inset(100% 0 0 0);
  animation: le-logo-fill 1.6s ease-in-out infinite;
}
.le-lightbox-loading.le-loaded .le-lightbox-loading-logo .fill{
  animation:none; clip-path: inset(0 0 0 0); transition: clip-path .3s ease;
}
@keyframes le-logo-fill{
  0%{ clip-path: inset(100% 0 0 0); }
  50%{ clip-path: inset(0 0 0 0); }
  100%{ clip-path: inset(0 0 100% 0); }
}

/* (El parche puntual que iba aquí para 9 ids de columna específicos ya
   no hace falta: la causa raíz real -- el contenedor de "Motion
   Effects" de Elementor sin heredar el border-radius -- se corrige de
   forma genérica, para todo el sitio, en life-fixed-social-and-search.php. ) */
