/*
 * Hoteles.mx — Site stylesheet
 * Carga DESPUÉS de tokens.css y hoteles-mx.css.
 * Mapea las clases existentes de los templates PHP al nuevo sistema de diseño.
 * NO cambiar nombres de clase — los templates PHP los usan directamente.
 */

/* ─────────────────────────────────────────
   SHELL / LAYOUT BASE
───────────────────────────────────────── */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
}

/* Alias: .container = .shell (los templates usan .container) */
.container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, 0.92); /* paper-2 con transparencia */
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.brand .tld {
  color: var(--red);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--red);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

/* Lado derecho del header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header-hoteleros-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.header-hoteleros-link:hover { color: var(--red); }

.header-cta {
  padding: 10px 18px;
  font-size: 14px;
}

/* ─────────────────────────────────────────
   MAIN / FOOTER
───────────────────────────────────────── */
.site-main {
  flex: 1;
}

.site-footer {
  background: var(--ink);
  color: var(--paper-2);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  color: rgba(251, 247, 238, 0.7);
}

.site-footer a {
  color: var(--paper-2);
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.site-footer a:hover {
  opacity: 1;
  color: var(--red);
}

/* ─────────────────────────────────────────
   TIPOGRAFÍA DE PÁGINA
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  color: var(--ink);
  line-height: 1.1;
}

.hero h1,
.page-block h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0 0 20px;
  color: var(--ink);
}

h2 {
  color: var(--ink);
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--ink);
}

.hero-lead,
.page-block p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────
   SECCIONES
───────────────────────────────────────── */
.hero {
  padding: 48px 0 40px;
}

.page-block {
  padding: 48px 0 64px;
}

.section-tight {
  padding-top: 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading-compact {
  margin-top: 28px;
  margin-bottom: 18px;
}

/* ─────────────────────────────────────────
   BOTONES (mantiene clases legacy, redirige a nuevos tokens)
───────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.button:active { transform: translateY(1px); }
.button:hover { transform: translateY(-1px); }

.button-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.button-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.button-secondary {
  background: transparent;
  border-color: var(--line-2, #D6CAB1);
  color: var(--ink-2);
}
.button-secondary:hover { background: var(--paper-3); border-color: var(--ink-2); }

.button-whatsapp {
  background: var(--whatsapp);
  color: #0d3b2c;
  border-color: var(--whatsapp);
}
.button-whatsapp:hover { background: var(--whatsapp-deep); color: #fff; border-color: var(--whatsapp-deep); }

.button-disabled {
  background: var(--paper-3);
  color: var(--mute);
  border-color: var(--line);
  cursor: default;
  pointer-events: none;
}
.button-disabled:hover { transform: none; }

/* ─────────────────────────────────────────
   LINKS DE TEXTO
───────────────────────────────────────── */
.text-link {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.15s ease;
}
.text-link:hover { color: var(--red-deep); }
.text-link::after { content: ' →'; }

/* ─────────────────────────────────────────
   FORMULARIO DE BÚSQUEDA
───────────────────────────────────────── */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.search-form-hero {
  max-width: 760px;
}

.search-form input {
  flex: 1 1 320px;
  min-height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  padding: 0 22px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.search-form input:focus {
  outline: none;
  border-color: var(--ink-2);
}
.search-form input::placeholder { color: var(--mute); font-weight: 400; }

.search-form button {
  min-height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, transform 0.12s ease;
}
.search-form button:hover { background: var(--red-deep); transform: translateY(-1px); }

/* ─────────────────────────────────────────
   FILTROS DE LISTADO
───────────────────────────────────────── */
.listing-filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
}

.filter-field input,
.filter-field select {
  min-height: 48px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: 0 14px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.filter-field input:focus,
.filter-field select:focus { outline: none; border-color: var(--ink-2); }

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────────────────────────────────
   CHIPS DE FILTRO ACTIVO
───────────────────────────────────────── */
.active-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--red-soft);
  border: 1px solid rgba(220, 8, 7, 0.2);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

/* ─────────────────────────────────────────
   TAG CARDS (destinos / ciudades)
───────────────────────────────────────── */
.tag-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag-grid-cities {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tag-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: border-color 0.15s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.tag-card:hover {
  border-color: var(--line-2, #D6CAB1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.tag-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.tag-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.tag-card span {
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   HOTEL CARDS (listado)
───────────────────────────────────────── */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hotel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Espacio reservado para imagen futura */
.hotel-card-img-placeholder {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(135deg,
      rgba(24,20,16,0.04) 0 1px,
      transparent 1px 9px),
    var(--paper-3);
  display: none; /* se activa cuando existan imágenes */
}

.hotel-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}

.hotel-card p,
.hotel-location,
.hotel-zone,
.hotel-summary {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5;
}

.hotel-location {
  font-weight: 500;
  color: var(--ink-2);
}

.hotel-zone {
  font-size: 13px;
}

.hotel-summary {
  min-height: 4.5em;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.hotel-distance {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.hotel-card-top,
.hotel-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.hotel-card-actions {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ─────────────────────────────────────────
   MIGAS DE PAN (BREADCRUMBS)
───────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--mute);
  transition: color 0.15s ease;
}
.breadcrumbs a:hover { color: var(--red); }

.breadcrumbs span {
  color: var(--line-2, #D6CAB1);
}

.breadcrumbs strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   HERO / DETALLE DE HOTEL
───────────────────────────────────────── */
.detail-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.detail-hero-solo {
  grid-template-columns: minmax(0, 1fr);
}

.detail-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--ink);
}

.detail-location,
.detail-summary {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

/* ─────────────────────────────────────────
   LANDING DE UBICACIÓN (estado / ciudad / zona)
───────────────────────────────────────── */
.location-hero {
  display: block;
  margin-bottom: 32px;
}

.location-hero .detail-copy {
  max-width: 860px;
}

.location-hero .detail-summary {
  color: var(--ink-2);
}

.location-support-copy {
  max-width: 58ch;
  margin: 0;
  color: var(--mute);
}

.location-grid {
  margin-top: 20px;
}

.location-links-block {
  margin-top: 32px;
}

/* ─────────────────────────────────────────
   FILTROS POR TIPO DE HOSPEDAJE
───────────────────────────────────────── */
.lodging-filter {
  margin: 24px 0 32px;
}

.lodging-filter h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lodging-filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.lodging-filter-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lodging-filter-card:hover {
  border-color: var(--line-2, #D6CAB1);
  box-shadow: 0 4px 14px rgba(24,20,16,0.07);
}

.lodging-filter-card.is-active {
  border-color: var(--red);
  background: var(--red-soft);
}

.lodging-filter-card span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.lodging-filter-card small {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.lodging-filter-icon {
  width: 28px;
  height: 28px;
  color: var(--ink-2);
}

.lodging-filter-svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* ─────────────────────────────────────────
   PANELES DE DETALLE
───────────────────────────────────────── */
.grid-two {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
}

.detail-grid-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.detail-section p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.detail-section strong {
  color: var(--ink);
}

.detail-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.detail-facts div { margin: 0; }

.detail-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 4px;
}

.detail-facts dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.detail-links {
  display: grid;
  gap: 12px;
}

/* ─────────────────────────────────────────
   NOTICE / EDITORIAL CARDS
───────────────────────────────────────── */
.notice-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.notice-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.notice-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.notice-card .text-link {
  font-size: inherit;
}

.editorial-strip,
.quality-note {
  margin: 20px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.editorial-strip strong,
.quality-note strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.editorial-strip p,
.quality-note p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   PAGINACIÓN
───────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination-link {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pagination-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.pagination-current {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--red);
}

/* ─────────────────────────────────────────
   PÁGINAS DE ERROR
───────────────────────────────────────── */
.error-page {
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding: 48px 0;
}

.error-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.error-card h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.error-card-inner {
  margin-top: 20px;
}

/* ─────────────────────────────────────────
   ESTADO VACÍO (places)
───────────────────────────────────────── */
.place-empty-state h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
}

/* ─────────────────────────────────────────
   HOME — HERO
───────────────────────────────────────── */

/* Wrapper de sección hero — quita el padding del shell-wide en top */
.home-hero {
  padding-top: 24px;
}

/* La clase .hero-canvas viene de hoteles-mx.css (aspect 16/8, radius-lg, etc.)
   Aquí solo aseguramos que el .ph dentro llene el canvas */
.hero-canvas .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  aspect-ratio: unset;
  height: 100%;
}

/* Crédito fotógrafo sobre el hero */
.hero-photo-credit {
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 3;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.hero-photo-credit:hover {
  color: rgba(255,255,255,0.9);
}

/* Sin chip, el contenido va todo al fondo */
.hero-content {
  justify-content: flex-end !important;
}

/* Subtítulo bajo el headline del hero */
.hero-sub {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin: 16px 0 0;
  max-width: 520px;
  line-height: 1.55;
}

/* Chip flotante en el hero */
.hero-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
}

.hero-chip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 999px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   HOME — BUSCADOR SOLAPADO
───────────────────────────────────────── */

/* Wrap que posiciona el buscador sobre el borde inferior del hero */
.home-searchbar-wrap {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

/* Dentro del buscador, el input real queda sin borde/fondo propio */
.searchbar .sb-input {
  all: unset;
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  cursor: text;
}

.searchbar .sb-input::placeholder {
  color: var(--mute);
  font-weight: 500;
}

/* Campos estáticos decorativos (Entrada / Salida / Personas) */
.sb-field-static {
  cursor: default;
}

/* Ajuste: el campo "A dónde" es más ancho */
.searchbar .sb-field:first-child {
  flex: 2;
}

/* ─────────────────────────────────────────
   HOME — MARQUEE STRIP
───────────────────────────────────────── */

/* La pista animada dentro de .hero-stripe */
.hero-stripe-track {
  display: flex;
  width: max-content;
  animation: hm-marquee 30s linear infinite;
}

@keyframes hm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pausa al pasar el cursor */
.hero-stripe:hover .hero-stripe-track {
  animation-play-state: paused;
}

/* ─────────────────────────────────────────
   HOME — DESTINOS GRID
───────────────────────────────────────── */

/* El dest-tile necesita altura mínima cuando no hay imagen real */
.dest-grid .dest-tile .ph {
  aspect-ratio: 3/4;
}

/* Flecha en el tile */
.dest-tile-arrow {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* ─────────────────────────────────────────
   HOME — FEATURED HOTELS (fondo crema)
───────────────────────────────────────── */

.home-featured {
  background: var(--paper);
  border-radius: var(--radius-lg);
  margin: 0 32px;
}

/* ─────────────────────────────────────────
   HOTEL CARD (.hcard) — ajustes de sitio
   Las clases base están en hoteles-mx.css;
   aquí manejamos la versión con summary y acciones.
───────────────────────────────────────── */

/* Placeholder de imagen (cuando no hay cover_image) */
.hcard-img-ph {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

/* Imagen real (cuando exista) */
.hcard-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

/* Wrap de título + destino */
.hcard-title-wrap {
  flex: 1;
  min-width: 0;
}

/* Resumen corto */
.hcard-summary {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Distancia (páginas de lugar/zona) */
.hcard-distance {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

/* Fila de acciones al fondo de la card */
.hcard-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* Variante pequeña del botón para las cards */
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  min-height: unset;
}

/* El botón de WhatsApp en la card lleva solo el ícono en móvil */
.hcard-btn-wa {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   DESTINO — HERO PANORÁMICO
───────────────────────────────────────── */

.dest-hero-section {
  padding-top: 24px;
  padding-bottom: 0;
}

/* Contenedor relativo del hero */
.dest-hero {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
}

/* Placeholder de foto */
.dest-hero-ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  aspect-ratio: unset;
  height: 100%;
}

/* Overlay oscuro */
.dest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 20, 16, 0.08) 0%,
    rgba(24, 20, 16, 0.50) 100%
  );
  z-index: 1;
}

/* Todo el contenido dentro del hero */
.dest-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  color: #fff;
}

/* Breadcrumbs blancos */
.dest-hero-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.dest-hero-crumbs a {
  color: inherit;
  transition: color 0.15s ease;
}
.dest-hero-crumbs a:hover { color: #fff; }
.dest-hero-crumbs .sep { opacity: 0.5; }

/* Bloque inferior dentro del hero */
.dest-hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Kicker rojo sobre el nombre */
.dest-hero-kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}

/* Nombre del destino en display gigante */
.dest-hero-headline {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
  color: #fff;
}

/* ─────────────────────────────────────────
   DESTINO — BLOQUE EDITORIAL
───────────────────────────────────────── */

.dest-editorial-section {
  padding: 64px 0;
}

/* Override del grid editorial de hoteles-mx.css si es necesario */
.dest-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Lado izquierdo: kicker + texto */
.dest-ed-left {}

.ed-kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 20px;
}

.ed-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 480px;
}

.ed-body p {
  margin: 0 0 18px;
}

/* Dropcap en el primer párrafo */
.ed-body p:first-child::first-letter {
  font-size: 56px;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin: 6px 10px 0 0;
  color: var(--red);
}

/* Lado derecho: foto + stats */
.dest-ed-right {}

.dest-ed-ph {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius);
}

/* Grid de stats (en lugar de clima/vuelo que no existen en BD) */
.dest-meta-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.dest-meta-stat {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.dest-meta-stat:nth-child(odd) {
  padding-right: 16px;
}

.dest-meta-stat:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.dm-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 4px;
}

.dm-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* ─────────────────────────────────────────
   DESTINO — FILTRO DE HOSPEDAJE
───────────────────────────────────────── */

.dest-lodging-wrap {
  padding-bottom: 0;
}

/* ─────────────────────────────────────────
   DESTINO — CIUDADES / ZONAS RELACIONADAS
───────────────────────────────────────── */

.dest-related-section {
  background: var(--paper);
  padding: 56px 0;
  margin: 40px 0;
}

.dest-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.dest-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  transition: border-color 0.15s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.dest-related-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.dest-related-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.dest-related-card-meta {
  font-size: 13px;
  color: var(--mute);
}

.dest-related-card-arrow {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mute);
  transition: color 0.15s ease;
}

.dest-related-card:hover .dest-related-card-arrow {
  color: var(--red);
}

/* ─────────────────────────────────────────
   CIUDAD — Explorar (zonas + lugares, dos columnas)
───────────────────────────────────────── */

.dest-explore-section {
  padding: 64px 0;
}

.dest-explore-section .section-head {
  margin-bottom: 36px;
}

.dest-explore-cols {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  align-items: start;
}

.dest-explore-cols--single {
  grid-template-columns: 1fr;
  max-width: 560px;
}

/* ── Header interno de cada columna ── */
.dest-explore-col-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  margin-bottom: 2px;
}

.dest-explore-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dest-explore-col-sub {
  font-size: 12px;
}

/* ── Columna ZONAS (fondo oscuro) ── */
.dest-explore-col--zones {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.dest-explore-col--zones .dest-explore-col-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dest-explore-col--zones .dest-explore-col-title {
  color: #fff;
}

.dest-explore-col--zones .dest-explore-col-sub {
  color: rgba(255, 255, 255, 0.38);
}

.dest-zone-list {
  display: flex;
  flex-direction: column;
}

.dest-zone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: padding-left 0.15s ease;
}

.dest-zone-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dest-zone-row:hover {
  padding-left: 5px;
}

.dest-zone-row-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.dest-zone-row-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.dest-zone-row-arrow {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.15s ease;
}

.dest-zone-row:hover .dest-zone-row-count {
  color: rgba(255, 255, 255, 0.7);
}

.dest-zone-row:hover .dest-zone-row-arrow {
  color: var(--red);
}

/* ── Columna LUGARES (fondo claro) ── */
.dest-explore-col--places {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.dest-explore-col--places .dest-explore-col-header {
  border-bottom: 1px solid var(--line);
}

.dest-explore-col--places .dest-explore-col-title {
  color: var(--ink);
}

.dest-explore-col--places .dest-explore-col-sub {
  color: var(--mute);
}

.dest-place-list {
  display: flex;
  flex-direction: column;
}

.dest-place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.15s ease;
}

.dest-place-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dest-place-row:hover {
  padding-left: 5px;
}

.dest-place-row-type {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(31, 77, 63, 0.08);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.dest-place-row-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.dest-place-row-arrow {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
  transition: color 0.15s ease;
}

.dest-place-row:hover .dest-place-row-arrow {
  color: var(--green);
}

/* ─────────────────────────────────────────
   DESTINO — NAVEGACIÓN ASCENDENTE
───────────────────────────────────────── */

.dest-parent-nav {
  padding: 40px 0 64px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.dest-parent-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dest-parent-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dest-parent-link:hover {
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(24, 20, 16, 0.08);
}

.dest-parent-link-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
}

.dest-parent-link-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.dest-parent-link-arrow {
  font-size: 14px;
  color: var(--mute);
  transition: color 0.15s ease;
}

.dest-parent-link:hover .dest-parent-link-arrow {
  color: var(--red);
}

/* ─────────────────────────────────────────
   LISTING / SEARCH — BANDA SUPERIOR
───────────────────────────────────────── */

.listing-top-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

/* Select dentro del searchbar (en la banda de listing) */
.searchbar .sb-select {
  all: unset;
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  cursor: pointer;
}

.searchbar .sb-select option {
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
}

/* ─────────────────────────────────────────
   LISTING — CABECERA Y CONTROLES
───────────────────────────────────────── */

.listing-page {
  padding: 40px 0 80px;
}

.search-page {
  padding: 40px 0 80px;
}

/* Breadcrumbs estilo búsqueda (crumbs del mockup) */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 12px;
}

.crumbs a {
  color: var(--mute);
  transition: color 0.15s ease;
}
.crumbs a:hover { color: var(--red); }
.crumbs .sep { opacity: 0.5; }

/* H1 de listado */
.listing-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0 0 8px;
  color: var(--ink);
}

.listing-h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--ink-2);
}

.listing-subtitle {
  font-size: 15px;
  color: var(--mute);
  margin: 0;
}

.listing-clear-link {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s ease;
}
.listing-clear-link:hover { color: var(--red-deep); }

/* Fila de cabecera (h1 izquierda + sort derecha) */
.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Controles de orden */
.listing-sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.listing-sort-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
}

.listing-sort-form {
  display: flex;
  margin: 0;
}

.sort-select {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.sort-select:focus { outline: none; border-color: var(--ink-2); }

/* Chips de filtros activos */
.active-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* ─────────────────────────────────────────
   LISTING — LAYOUT 2 COLUMNAS
───────────────────────────────────────── */

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ─────────────────────────────────────────
   FILTER RAIL — ajustes de sitio
   (estilos base en hoteles-mx.css)
───────────────────────────────────────── */

/* Opciones de filtro como links (sin JS de checkbox) */
.filter-radio-label {
  display: block;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease;
}

.filter-radio-label.is-active .filter-option-link {
  color: var(--red);
  font-weight: 700;
}

.filter-option-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: background 0.12s ease, color 0.12s ease;
}

.filter-option-link:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.filter-count {
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
  margin-left: auto;
}

/* ─────────────────────────────────────────
   LISTING — RESULTADOS
───────────────────────────────────────── */

.listing-results .grid-3 {
  gap: 20px;
}

.listing-empty {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─────────────────────────────────────────
   SEARCH — ESTADOS ESPECIALES
───────────────────────────────────────── */

.search-empty-state {
  padding: 48px 0;
}

.search-empty-state p {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 28px;
}

.search-suggestions {
  margin-top: 24px;
}

.search-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-no-results {
  padding: 48px 0;
}

.search-no-results-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.search-no-results-hint {
  font-size: 15px;
  color: var(--mute);
  margin: 0;
}

/* ─────────────────────────────────────────
   PAGINACIÓN — nueva versión con .btn
───────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  min-height: unset;
  border-radius: 999px;
}

.pagination-btn--current {
  pointer-events: none;
}

.pagination-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.pagination-ellipsis {
  padding: 0 6px;
  color: var(--mute);
  font-weight: 600;
  font-size: 14px;
  align-self: center;
}

/* ─────────────────────────────────────────
   HAMBURGER + MOBILE NAV
───────────────────────────────────────── */

/* Botón hamburguesa — oculto en desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.14s ease;
  margin-left: auto; /* empuja a la derecha */
}

.menu-toggle:hover {
  background: var(--paper-3);
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

/* Transformación a X cuando nav-open */
.nav-open .menu-toggle .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .menu-toggle .menu-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .menu-toggle .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav móvil: panel que baja desde arriba */
@media (max-width: 660px) {
  .menu-toggle {
    display: flex;
  }

  .header-actions {
    display: none; /* la nav los reemplaza en móvil */
  }

  .site-nav {
    display: flex; /* override del display:none anterior */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .nav-open .site-nav {
    transform: translateX(0);
    pointer-events: all;
  }

  .site-nav a {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a.is-active {
    color: var(--red);
  }

  .site-nav a::after {
    display: none; /* oculta el underline decorativo en móvil */
  }

  /* Botón CTA dentro del nav móvil — se agrega via JS si es necesario;
     o simplemente se pone un botón de contacto al final del nav */
  .site-nav .nav-cta {
    margin-top: 32px;
    font-size: 1rem;
    font-weight: 700;
    background: var(--red);
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    display: inline-block;
    width: auto;
    border-bottom: none;
  }

  /* Overlay semitransparente detrás del nav */
  .nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(24, 20, 16, 0.5);
    z-index: 299;
  }
}

/* ─────────────────────────────────────────
   FILTER DRAWER (listing)
───────────────────────────────────────── */

/* Botón "Filtros" — oculto en desktop */
.filter-toggle-row {
  display: none;
  margin-bottom: 16px;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.filter-toggle-btn:hover {
  background: var(--paper-3);
  border-color: var(--line-dark, #D0C5B0);
}

.filter-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Overlay oscuro cuando el drawer está abierto */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 16, 0.5);
  z-index: 249;
}

/* Cabecera del drawer — solo visible en drawer */
.filter-drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.filter-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--mute);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.filter-close-btn:hover {
  color: var(--ink);
}

/* En móvil: el filter-rail se convierte en drawer lateral */
@media (max-width: 900px) {
  .filter-toggle-row {
    display: block;
  }

  .filter-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .filters-open .filter-overlay {
    opacity: 1;
    pointer-events: all;
  }

  .filter-rail {
    display: flex; /* override del display:none */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 90vw);
    z-index: 250;
    background: #fff;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--line);
    padding: 0;
  }

  .filters-open .filter-rail {
    transform: translateX(0);
  }

  .filter-drawer-head {
    display: flex;
  }

  .filter-group {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }

  .filter-group h4 {
    margin-bottom: 12px;
  }

  .filter-option-link {
    padding: 10px 8px;
    font-size: 15px;
  }

  .filter-rail .btn-block {
    margin: 16px 20px;
    width: calc(100% - 40px);
  }
}

/* ─────────────────────────────────────────
   HOTEL DETAIL — ficha individual
───────────────────────────────────────── */

/* Encabezado: breadcrumbs + título */
.hotel-head-wrap {
  padding-top: 32px;
  padding-bottom: 0;
}

.hotel-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 32px;
}

.hotel-title-copy {
  flex: 1;
  min-width: 0;
}

.hotel-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hotel-display-h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 12px;
}

.hotel-location-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--mute);
  font-weight: 500;
}

.hotel-location-line svg {
  flex-shrink: 0;
  color: var(--mute);
}

.hotel-title-actions {
  flex-shrink: 0;
}

.hotel-share-btn {
  font-size: 13px;
  font-weight: 600;
}

/* Galería */
.hotel-gallery-wrap {
  padding-bottom: 40px;
}

.hotel-gallery-ph {
  aspect-ratio: 21 / 7;
  border-radius: var(--radius-lg);
  width: 100%;
}

/* Layout principal: 2 columnas */
.hotel-main-outer {
  padding-bottom: 80px;
}

.hotel-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

/* Columna izquierda */
.hotel-info-col {
  min-width: 0;
}

.hotel-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.hotel-section:last-child,
.hotel-section--no-divider {
  border-bottom: none;
}

.hotel-body-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 18px;
}

.hotel-body-text p:last-child {
  margin-bottom: 0;
}

/* Mapa placeholder */
.hotel-map-ph {
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Footer de ubicación */
.hotel-location-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hotel-location-address {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hotel-location-addr-text {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

.hotel-zone-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  background: var(--paper-3);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hotel-dest-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

.hotel-dest-link:hover {
  text-decoration: underline;
}

/* Explorar: zona / ciudad / estado */
.hotel-explore-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.hotel-explore-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.14s ease, border-color 0.14s ease;
  text-decoration: none;
}

.hotel-explore-card:hover {
  background: var(--paper-3);
  border-color: var(--line-dark, #D0C5B0);
}

.hotel-explore-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

.hotel-explore-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-explore-arrow {
  color: var(--mute);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Booking Card ── */
.booking-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.bc-hotel-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.bc-location {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}

.bc-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

/* WhatsApp primary CTA */
.bc-wa-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 16px;
}

.bc-wa-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mute);
  margin-top: 10px;
  font-weight: 500;
}

.bc-wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
  flex-shrink: 0;
  animation: bc-pulse 2s ease-in-out infinite;
}

@keyframes bc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Site secondary CTA */
.bc-site-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.bc-site-url {
  text-align: center;
  font-size: 11px;
  color: var(--mute);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Comisión */
.bc-commission {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
}

.bc-commission svg {
  color: #22B573;
  flex-shrink: 0;
}

.bc-commission strong {
  color: var(--ink);
  font-weight: 700;
}

/* Nota calidad */
.bc-quality-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
}

/* Sección hoteles relacionados */
.hotel-related-section {
  background: var(--paper-2);
  padding: 64px 0;
}

.hotel-related-section .section-head {
  margin-bottom: 32px;
}

/* ─────────────────────────────────────────
   FOOTER — ajustes específicos del sitio
   (las clases base vienen de hoteles-mx.css)
───────────────────────────────────────── */

/* Asegura que .shell funcione dentro del footer */
.footer .shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo en footer */
.footer-logo {
  display: inline-block;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
}
.footer-logo span { color: var(--red); font-weight: 700; }

/* Descripción bajo el logo */
.footer-desc {
  color: var(--mute);
  font-size: 14px;
  max-width: 280px;
  margin: 0 0 20px;
  line-height: 1.65;
}

/* Chip "Hecho en México" */
.footer-badge {
  background: rgba(220, 8, 7, 0.15) !important;
  color: #ff7a7a;
  border: none;
}

/* Links de bottom row */
.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Footer: colapsa a 2 columnas */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  /* Home featured: sin márgenes laterales en tablet */
  .home-featured {
    margin: 0 16px;
  }

  /* Grids de 4 → 2 */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Listing: filter-rail más estrecho */
  .listing-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 32px);
  }

  /* Hero headline más pequeño */
  .hero-headline {
    font-size: 48px !important;
  }

  /* Buscador: apila los campos en 2 cols */
  .searchbar {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    gap: 0;
  }

  .searchbar .sb-field {
    flex: 1 1 calc(50% - 1px);
    border-left: none !important;
    border-bottom: 1px solid var(--line);
  }

  .searchbar .sb-btn {
    width: 100%;
    margin: 8px 0 0;
    border-radius: 999px;
  }

  /* Destinos: 2 columnas */
  .dest-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Home featured: sin margen lateral */
  .home-featured {
    margin: 0;
    border-radius: var(--radius);
  }

  /* Destino: hero más bajo en tablet */
  .dest-hero {
    aspect-ratio: 16 / 9;
  }

  .dest-hero-headline {
    font-size: clamp(2.4rem, 6vw, 4.5rem) !important;
  }

  .dest-hero-content {
    padding: 28px 32px;
  }

  /* Destino editorial: 1 columna */
  .dest-editorial {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dest-ed-ph {
    aspect-ratio: 16 / 9;
  }

  /* Listing: oculta filter rail en desktop, drawer lo reemplaza */
  .listing-layout {
    grid-template-columns: 1fr;
  }

  /* Listing: grid de 3 → 2 */
  .listing-results .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Listing: cabecera apila */
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .listing-sort-controls {
    width: 100%;
    justify-content: flex-start;
  }

  /* Section-head: apila en tablet */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Header: oculta "Para hoteleros", CTA sigue visible */
  .header-hoteleros-link {
    display: none;
  }

  .header-inner {
    gap: 16px;
    padding: 14px 0;
  }

  /* Nav compacta en tablet */
  .site-nav {
    gap: 18px;
  }

  .site-nav a.is-active::after {
    bottom: -14px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .tag-grid,
  .tag-grid-cities,
  .hotel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .detail-hero,
  .grid-two,
  .detail-grid-panels {
    grid-template-columns: 1fr;
  }

  .listing-filters {
    grid-template-columns: 1fr 1fr;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .lodging-filter-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hotel detail: colapsa a 1 columna */
  .hotel-layout {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
    order: -1; /* card primero en móvil (1024px aún es tablet) */
  }

  .hotel-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hotel-display-h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .hotel-gallery-ph {
    aspect-ratio: 16 / 7;
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .hero h1,
  .page-block h1 {
    font-size: 2rem;
  }

  /* Hero headline móvil */
  .hero-headline {
    font-size: 36px !important;
  }

  /* Buscador: 1 columna en móvil */
  .searchbar .sb-field {
    flex: 1 1 100%;
  }

  .home-searchbar-wrap {
    margin-top: -20px;
  }

  /* Destinos home: 1 columna en móvil */
  .dest-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Destino hero: más compacto */
  .dest-hero {
    aspect-ratio: 4 / 3;
  }

  .dest-hero-content {
    padding: 20px 24px;
  }

  .dest-hero-headline {
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }

  /* Stats 1 columna */
  .dest-meta-stats {
    grid-template-columns: 1fr;
  }

  .dest-meta-stat:nth-child(even) {
    border-left: none;
    padding-left: 0;
  }

  /* Related cards: 2 columnas */
  .dest-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Explorar ciudad: stack vertical en móvil */
  .dest-explore-cols {
    grid-template-columns: 1fr;
  }

  /* Parent links: stack */
  .dest-parent-links {
    flex-direction: column;
  }

  /* Grids de hoteles: 1 columna */
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Listing grid: 1 columna */
  .listing-results .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Cabecera del listing: vertical */
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Paginación: más compacta */
  .pagination-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Diff strip: 1 columna */
  .diff-strip {
    grid-template-columns: 1fr !important;
    padding: 32px 24px;
    gap: 28px;
  }

  /* Listing: sort full-width en móvil */
  .sort-select {
    width: 100%;
  }

  /* Búsqueda listing: 1 campo por línea */
  .listing-top-band .sb-field {
    flex: 1 1 100%;
  }

  /* Listing grid: 1 columna (override ya existe, refuerzo) */
  .listing-results .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Grid de destinos home: 2 columnas ajustadas */
  .dest-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Crumbs: sin overflow */
  .crumbs {
    flex-wrap: wrap;
    gap: 4px 0;
  }

  /* Cabecera de búsqueda: stack */
  .listing-header {
    flex-direction: column;
    gap: 8px;
  }

  .tag-grid,
  .tag-grid-cities,
  .hotel-grid {
    grid-template-columns: 1fr;
  }

  .listing-filters {
    grid-template-columns: 1fr;
  }

  .lodging-filter-list {
    grid-template-columns: 1fr;
  }

  .search-form-hero {
    flex-direction: column;
  }

  .search-form-hero input,
  .search-form-hero button {
    width: 100%;
  }

  /* Header: el menú de hamburguesa ya maneja la nav en ≤ 660px;
     aquí nos aseguramos de que .header-actions quede oculto para
     no duplicar el CTA de "Publicar hotel" en el fondo de pantalla */
  .header-actions {
    display: none;
  }

  /* Hotel detail: booking card fija al fondo en móvil */
  .booking-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: none;
    border-top: 1px solid var(--line);
    padding: 16px 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    /* Solo mostrar los CTAs en la barra fija */
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .bc-hotel-name,
  .bc-location,
  .bc-divider,
  .bc-wa-indicator,
  .bc-site-url,
  .bc-commission,
  .bc-quality-note {
    display: none;
  }

  .bc-wa-btn,
  .bc-site-btn {
    flex: 1;
    margin-top: 0;
    padding: 14px 16px;
    font-size: 14px;
  }

  /* Padding inferior al contenido para no quedar tapado por la barra */
  .hotel-main-outer {
    padding-bottom: 100px;
  }

  .hotel-gallery-ph {
    aspect-ratio: 4 / 3;
  }

  .hotel-explore-links {
    grid-template-columns: 1fr;
  }

  /* Footer: 1 columna en móvil */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}
