/* hoteles.css — búsqueda de hoteles y resultados */

/* Franja de búsqueda: papel blanco con tira naranja, como un boleto */
.finder {
  position: relative; border-radius: var(--radius-lg); padding: var(--space-6);
  background: var(--bg); border: 1px solid var(--line-strong); border-top: 5px solid var(--cta);
  box-shadow: var(--shadow-sm);
}
.finder h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; max-width: 26ch; text-wrap: balance; }
.finder-sub { color: var(--ink-2); margin-top: var(--space-2); max-width: 52ch; }
.finder-form { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.finder-row--3 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) auto !important; }
.finder-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .9fr) auto; gap: var(--space-3); align-items: end; }

.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > label, .fld > .lbl { font-size: var(--text-sm); font-weight: 700; color: var(--ink-2); }
.fld input, .fld select {
  min-height: 48px; padding: 0 var(--space-4); width: 100%;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font-weight: 600; border-color: var(--line-strong);
}
.fld input::placeholder { color: var(--ink-3); font-weight: 500; }
.fld input:focus, .fld select:focus { outline: 3px solid rgba(11,122,117,.35); outline-offset: 0; border-color: var(--accent); }
.fld input[type="date"] { color-scheme: light; }
.btn-search { min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-sm); font-size: var(--text-md); }
.btn-search svg { width: 18px; height: 18px; }

/* Tras buscar, la franja se compacta para dejar los resultados a la vista */
.finder--compact { padding: var(--space-4) var(--space-5); }
.finder--compact h1, .finder--compact .finder-sub { display: none; }
.finder--compact .finder-form { margin-top: 0; }

/* Habitaciones */
.rooms { display: flex; flex-direction: column; gap: var(--space-2); }
.rooms-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.room {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--bg-subtle); border: 1px solid var(--line-strong);
}
.room-name { font-weight: 700; min-width: 108px; }
.stepper { display: inline-flex; align-items: center; gap: var(--space-2); }
.stepper > span.lbl { color: var(--ink-2); font-size: var(--text-sm); margin-right: 2px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--bg-sunken); font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0;
}
.stepper button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ages { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.ages select { min-height: 34px; padding: 0 8px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-strong); color: var(--ink); font-size: var(--text-sm); }
.room-remove { margin-left: auto; }
.text-btn { background: none; border: 0; padding: 6px 8px; border-radius: 8px; color: var(--accent); font-weight: 700; font-size: var(--text-sm); }
.text-btn:hover { background: var(--accent-soft); }
.text-btn[disabled] { opacity: .4; cursor: not-allowed; }
.text-btn--quiet { color: var(--ink-3); }
.text-btn--quiet:hover { color: var(--bad-fg); background: var(--bad-bg); }

/* Resumen + filtros */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.results-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; }
.results-meta { color: var(--ink-3); font-size: var(--text-sm); margin-top: 2px; }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.tool-input, .tool-select { min-height: 36px; padding: 0 var(--space-3); border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-sunken); color: var(--ink); font-size: var(--text-sm); }
.tool-input { min-width: 220px; }
.tool-input:focus, .tool-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Aviso de autobús */
.bus-note {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg); border: 1px solid rgba(11,122,117,.45);
  background: linear-gradient(100deg, rgba(11,122,117,.10), rgba(11,122,117,.14));
}
.bus-note svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--accent); }
.bus-note strong { display: block; }
.bus-note small { color: var(--ink-2); font-size: var(--text-sm); }
.bus-note--none { background: var(--bg); border-color: var(--line-strong); }
.bus-note--none svg { color: var(--ink-3); }
.bus-price { margin-left: auto; text-align: right; white-space: nowrap; }
.bus-price b { font-family: var(--font-display); font-size: var(--text-xl); color: var(--sol); font-variant-numeric: tabular-nums; }

/* Resultados: filtros a la izquierda, tarjetas a la derecha */
.results-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.results-main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.filters { position: sticky; top: calc(var(--header-h) + var(--space-4)); display: flex; flex-direction: column; gap: var(--space-2); max-height: calc(100vh - var(--header-h) - 2 * var(--space-4)); overflow-y: auto; }
.filters-sum { background: var(--bg); border: 1px solid var(--line-strong); border-left: 4px solid var(--cta); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.filters-sum strong { font-family: var(--font-display); font-size: var(--text-lg); }
.filters-sum span { font-weight: 700; color: var(--sol); }
.fgroup { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); font-weight: 700; color: var(--ink); }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: "+"; width: 22px; height: 22px; border-radius: 50%; background: var(--cta); color: var(--on-cta); display: grid; place-items: center; font-size: 16px; font-weight: 800; line-height: 1; }
.fgroup[open] > summary::after { content: "–"; }
.fgroup-body { padding: 0 var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.fcheck { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--ink-2); cursor: pointer; }
.fcheck input { accent-color: var(--accent); width: 16px; height: 16px; }
.fcheck em { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: var(--text-xs); }
.fscroll { max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.frange { display: flex; align-items: center; gap: var(--space-2); }
.frange .tool-input { min-width: 0; width: 100%; }

/* Tarjeta de hotel: una postal con talón de boleto a la derecha */
.hotels { display: flex; flex-direction: column; gap: var(--space-4); }
.hotel { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.hotel:hover { box-shadow: 0 14px 30px -18px rgba(20, 38, 45, .5); transform: translateY(-1px); }
.hotel-main { display: grid; grid-template-columns: 280px minmax(0, 1fr) 236px; }
.hotel-photo { position: relative; min-height: 220px; background: var(--bg-sunken); }
.hotel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotel-stars { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: var(--text-sm); font-weight: 700; line-height: 1.2; }
.hotel-stars i { font-style: normal; color: var(--star); letter-spacing: 1px; }
.hotel-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); min-width: 0; }
.hotel-body h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; overflow-wrap: anywhere; }
.hotel-zone { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--ink-3); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.hotel-zone svg { width: 14px; height: 14px; color: var(--cta-hover); fill: none; stroke: currentColor; stroke-width: 2; }
.hotel-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Talón: línea punteada con muescas, como un boleto */
.hotel-stub { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); background: var(--bg-subtle); border-left: 2px dashed var(--line-strong); }
.hotel-stub::before, .hotel-stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-subtle); border: 1px solid var(--line-strong); }
.hotel-stub::before { top: -11px; clip-path: inset(50% 0 0 0); }
.hotel-stub::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.price { line-height: 1.1; }
.price small { display: block; color: var(--ink-3); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.price b { display: block; font-family: var(--font-ui); font-size: 1.85rem; font-weight: 800; color: var(--sol); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { display: block; color: var(--ink-3); font-size: var(--text-xs); margin-top: 2px; }
.hotel-toggle { min-height: 42px; padding: 0 var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--cta-hover); background: var(--cta); color: var(--on-cta); box-shadow: 0 2px 0 var(--cta-hover); font-weight: 800; font-size: var(--text-sm); display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.hotel-toggle:hover:not([disabled]) { background: var(--cta-hover); }
.hotel-toggle[disabled] { background: var(--bg-sunken); border-color: var(--line-strong); color: var(--ink-3); box-shadow: none; cursor: default; }
.hotel-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s var(--ease); }
.hotel-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hotel--off { opacity: .6; }

/* Tarifas desplegadas: tabla de habitaciones */
.rates { border-top: 1px solid var(--line-strong); background: var(--bg); padding: 0 0 var(--space-3); }
.rate { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 92px; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); }
.rate:nth-child(even) { background: var(--bg-subtle); }
.rate:last-of-type { border-bottom: 0; }
.rate-name { font-weight: 700; overflow-wrap: anywhere; }
.rate-sub { color: var(--ink-3); font-size: var(--text-xs); }
.rate-price { font-size: var(--text-lg); font-weight: 800; color: var(--sol); font-variant-numeric: tabular-nums; text-align: right; }
.rates-more { margin: var(--space-2) var(--space-5) 0; }

/* Carga */
.loading { display: flex; flex-direction: column; gap: var(--space-4); }
.loading-msg { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sk-card { height: 210px; border-radius: var(--radius-lg); }

.empty { text-align: center; padding: var(--space-7) var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-2); }
.empty h2 { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); margin-bottom: var(--space-2); }

@media (max-width: 1000px) {
  .finder-row, .finder-row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .finder-row .fld:first-child { grid-column: 1 / -1; }
  .finder-row .btn-search { grid-column: 1 / -1; }
  .finder-row .fld--fechas, .finder-row .fld--regimen { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .finder { padding: var(--space-5) var(--space-4); }
  .hotel-main { grid-template-columns: minmax(0, 1fr); }
  .hotel-photo { min-height: 170px; }
  .rate { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--space-4); padding-right: var(--space-4); }
  .rate .chip { grid-column: 1; justify-self: start; }
  .rate-pick { grid-column: 1 / -1; }
  .tool-input { min-width: 0; flex: 1; }
  .bus-note { flex-wrap: wrap; }
  .bus-price { margin-left: 0; text-align: left; }
}

.rate-pick { min-height: 38px; }
.no-scroll { overflow: hidden; }

/* Panel lateral de reserva */
.drawer-overlay { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(520px, 100vw);
  display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop); animation: drawer-in .22s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.drawer-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-sunken); font-size: 22px; line-height: 1; }
.drawer-close:hover { border-color: var(--accent); color: var(--accent); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.drawer-foot { display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); background: var(--bg-subtle); }
.btn-reservar { min-height: 46px; padding: 0 var(--space-5); }
.btn-reservar[disabled] { filter: grayscale(.6); }

.sum-hotel { padding: var(--space-4); border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-sunken); display: flex; flex-direction: column; gap: var(--space-2); }
.sum-hotel h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.sum-line { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; justify-content: space-between; font-weight: 600; }

.guests { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.guests legend { font-weight: 700; margin-bottom: var(--space-2); padding: 0; }
.guest { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2); align-items: center; }
.guest-tag { font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); }
.inp { min-height: 44px; width: 100%; padding: 0 var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg-sunken); color: var(--ink); }
.inp:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.bus-card { border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-sunken); overflow: hidden; }
.bus-card.is-on { border-color: rgba(11,122,117,.6); background: linear-gradient(100deg, rgba(11,122,117,.08), rgba(11,122,117,.12)); }
.bus-card-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); flex-wrap: wrap; }
.bus-card-head > svg { width: 24px; height: 24px; color: var(--accent); flex: 0 0 auto; }
.bus-card-head > div { flex: 1; min-width: 160px; }
.bus-card-head strong { display: block; }
.bus-card-head small { color: var(--ink-2); font-size: var(--text-sm); }
.bus-card-body { padding: 0 var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.bus-line { display: flex; justify-content: space-between; gap: var(--space-3); font-weight: 600; }
.bus-line b { color: var(--sol); font-family: var(--font-display); font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.lap { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line-strong); }
.check { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.drawer-totals { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.tot-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.tot-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tot-sum { font-size: var(--text-lg); }
.tot-sum span, .tot-sum b { color: var(--sol); font-family: var(--font-display); font-weight: 700; }

.working { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-6) 0; }
.working p { margin-top: 4px; }
.res-ok { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid rgba(52,211,153,.4); background: var(--ok-bg); }
.res-ok h3 { font-family: var(--font-display); font-size: var(--text-xl); }
.res-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; }
.res-line { display: flex; justify-content: space-between; gap: var(--space-4); padding: 6px 0; border-bottom: 1px solid var(--line); }
.res-line:last-child { border-bottom: 0; }
.res-line b { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.res-bus { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius); border: 1px solid rgba(11,122,117,.5); background: rgba(11,122,117,.1); }
.res-bus--bad { border-color: rgba(255,107,107,.5); background: var(--bad-bg); align-items: flex-start; }

@media (max-width: 560px) {
  .guest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .guest-tag { grid-column: 1 / -1; }
  .drawer-foot { flex-direction: column-reverse; }
  .drawer-foot .btn { width: 100%; }
}

/* Interruptor "Con charter" */
.switch { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 40px; padding: 0 var(--space-3); border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-sunken); color: var(--ink-2); font-weight: 600; font-size: var(--text-sm); margin-left: auto; }
.switch i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); transition: background .15s; flex: 0 0 auto; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] i { background: var(--accent); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); }
.switch[aria-checked="true"] { color: var(--ink); border-color: var(--accent); }

/* Espera útil: captura del cliente, cotización */
.cliente { border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg-raised, var(--bg-sunken)); padding: var(--space-3) var(--space-5); }
.cliente summary { cursor: pointer; padding: var(--space-2) 0; }
.cliente-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-3); padding: var(--space-3) 0 var(--space-2); }
.pill.fav { min-height: 28px; font-size: var(--text-xs); }
.cot-bar { position: sticky; bottom: var(--space-4); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-3) var(--space-5); border: 1px solid var(--accent); border-radius: 16px; background: var(--bg-sunken); box-shadow: var(--shadow-pop); }
.cot-bar[hidden] { display: none; }
.cot-list { display: flex; flex-direction: column; gap: var(--space-3); }
.cot-item { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: 12px; }
.cot-text { font-family: inherit; font-size: var(--text-sm); resize: vertical; width: 100%; }

/* Cotizaciones guardadas */
.cot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--space-4); }
.cot-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
.cot-card h3 { margin: 0; font-family: var(--font-display); font-size: var(--text-lg, 1.1rem); }
.cot-card-top { display: flex; justify-content: space-between; gap: var(--space-4); }
.cot-desde { text-align: right; display: flex; flex-direction: column; }
.cot-desde b { font-size: var(--text-xl); color: var(--accent); }
.cot-names { font-size: var(--text-sm); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cot-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); flex-wrap: wrap; margin-top: auto; }
.cot-foot { flex-wrap: wrap; }

.pill.fav-rate { margin-top: var(--space-2); }

/* Mapa de asientos */
.seat-sum { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-weight: 600; }
.seatmap { display: flex; flex-direction: column; gap: var(--space-3); }
.seat-legend { display: flex; gap: var(--space-4); font-size: var(--text-xs); color: var(--ink-3); }
.seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.seat-key { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--bg-sunken); display: inline-block; }
.seat-front { text-align: center; font-size: var(--text-xs); color: var(--ink-3); border-bottom: 1px dashed var(--line-strong); padding-bottom: var(--space-2); }
.seat-grid { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding: var(--space-2) 0; align-items: center; }
.seat-row { display: flex; gap: 6px; }
.seat-aisle { width: 34px; }
.seat-row { justify-content: center; }
.seat-wc { width: 86px; height: 36px; border-radius: 8px; border: 1px dashed var(--line-strong); color: var(--ink-3); font-size: var(--text-xs); font-weight: 600; display: grid; place-items: center; }
.seat-front--duo { display: flex; justify-content: space-between; padding: 0 var(--space-4) var(--space-2); }
.seat-rear { text-align: center; font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); border-top: 1px dashed var(--line-strong); padding-top: var(--space-2); }
.seat { width: 40px; height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-sunken); color: var(--ink-2); font-size: var(--text-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.seat:hover:not(:disabled) { border-color: var(--accent); }
.seat.is-taken, .seat-key.is-taken { background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(20,38,45,.08) 4px 8px); color: var(--ink-3); opacity: .55; cursor: not-allowed; }
.seat.is-picked, .seat-key.is-picked { background: var(--accent); border-color: var(--accent); color: #fff; }
.seat-count { font-size: var(--text-sm); color: var(--ink-2); text-align: center; }
.seat-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

/* Ventana flotante centrada (cancelar reserva) */
.drawer.drawer--center {
  top: 50%; left: 50%; right: auto; bottom: auto; width: min(560px, calc(100vw - 2 * var(--space-4))); max-height: calc(100vh - 2 * var(--space-5));
  transform: translate(-50%, -50%); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; animation: modal-in .18s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }

@media (max-width: 1100px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; }
  .hotel-main { grid-template-columns: 220px minmax(0, 1fr); }
  .hotel-stub { grid-column: 1 / -1; flex-direction: row; align-items: center; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .hotel-stub::before, .hotel-stub::after { display: none; }
  .hotel-toggle { width: auto; min-width: 150px; }
}
@media (max-width: 640px) {
  .hotel-main { grid-template-columns: minmax(0, 1fr); }
  .hotel-photo { min-height: 170px; }
}

/* ── Selector de rango de fechas ── */
.fld--fechas { position: relative; }
.drp { position: relative; }
.drp-trigger { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.drp-trigger svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }
.drp-trigger--vacio .drp-text { color: var(--ink-3); font-weight: 500; }
.drp-trigger:focus-visible, .drp-trigger[aria-expanded="true"] { outline: 3px solid rgba(11,122,117,.35); outline-offset: 0; border-color: var(--accent); }
.drp-vals { display: flex; align-items: baseline; gap: var(--space-3); min-width: 0; white-space: nowrap; }
.drp-sub { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.drp-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: max-content; max-width: calc(100vw - 32px); background: var(--bg-raised, #fff); border: 1px solid var(--line-strong); border-radius: var(--radius-lg, 16px); box-shadow: 0 18px 50px rgba(43,23,0,.22); padding: var(--space-4); }
.drp-pop[hidden] { display: none; }
.drp-nav { position: absolute; z-index: 1; left: var(--space-4); right: var(--space-4); top: var(--space-4); display: flex; justify-content: space-between; pointer-events: none; }
.drp-arrow { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.drp-arrow:disabled { opacity: .3; cursor: default; }
.drp-months { display: flex; gap: var(--space-5); }
.drp-month { width: 280px; }
.drp-title { text-align: center; font-weight: 800; font-family: var(--font-display); height: 34px; line-height: 34px; margin-bottom: var(--space-2); }
.drp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.drp-head span { text-align: center; font-size: var(--text-sm); font-weight: 700; color: var(--ink-3); padding: 6px 0; }
.drp-day { height: 38px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 0; position: relative; }
.drp-day--vacio { cursor: default; }
.drp-day:disabled { color: var(--ink-3); text-decoration: line-through; opacity: .5; cursor: default; }
.drp-day:not(:disabled):not(.drp-day--vacio):hover { background: rgba(255,159,28,.2); border-radius: 10px; }
.drp-day:focus-visible { outline: 3px solid rgba(11,122,117,.5); outline-offset: -2px; border-radius: 10px; }
.drp-day--hoy::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.drp-day--en, .drp-day--previa { background: rgba(255,159,28,.18); }
.drp-day--ini, .drp-day--fin { background: var(--cta, #FF9F1C); color: #2B1700; border-radius: 10px; font-weight: 800; }
.drp-day--ini:not(.drp-day--fin) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.drp-day--fin:not(.drp-day--ini) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.drp-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); flex-wrap: wrap; }
.drp-hint { font-weight: 600; color: var(--ink-2); font-size: var(--text-sm); }
.drp-acc { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
@media (max-width: 760px) {
  .drp-pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-height: 85vh; overflow: auto; }
  .drp-months { flex-direction: column; gap: var(--space-4); }
  .drp-month { width: 100%; }
  .drp-month + .drp-month .drp-title { margin-top: 0; }
  .drp-nav { position: static; margin-bottom: var(--space-2); }
}

/* ── Tabla de varias habitaciones (como XPC) ── */
.matriz { border-top: 1px solid var(--line); }
.matriz-wrap { overflow-x: auto; }
.matriz-tabla { width: 100%; border-collapse: collapse; min-width: 560px; }
.matriz-tabla th, .matriz-tabla td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.matriz-tabla thead th { background: var(--bg-sunken); font-size: var(--text-sm); color: var(--ink-2); }
.matriz-tabla thead .mx-col { text-align: center; }
.matriz-tabla thead .mx-col b { display: block; color: var(--ink); }
.matriz-tabla thead .mx-col span { font-weight: 600; font-size: var(--text-sm); }
.mx-tipo { width: 38%; font-weight: 600; }
.mx-tipo .chip { margin-top: 6px; }
.mx-row--on { background: rgba(255,159,28,.08); }
.mx-celda { text-align: center !important; }
.mx-celda--no span { color: var(--ink-3); font-size: var(--text-sm); }
.mx-pick { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 128px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.mx-pick b { font-family: var(--font-display); color: var(--price, #C2371B); }
.mx-pick span { font-size: var(--text-sm); font-weight: 700; color: var(--ink-2); }
.mx-pick:hover:not(:disabled) { border-color: var(--accent); }
.mx-pick:disabled { opacity: .45; cursor: not-allowed; }
.mx-pick--on { background: var(--cta, #FF9F1C); border-color: var(--cta, #FF9F1C); }
.mx-pick--on b, .mx-pick--on span { color: #2B1700; }
.matriz-pie { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4); background: var(--bg-sunken); }
.mx-total { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.mx-total small { color: var(--ink-2); font-weight: 700; }
.mx-total b { font-family: var(--font-display); font-size: var(--text-xl); color: var(--price, #C2371B); }
.mx-acc { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }

/* ── Encabezado con banners (Buscar hoteles) ── */
.buscador { display: flex; flex-direction: column; }
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: clamp(240px, 32vw, 400px); isolation: isolate; background: #2B1700; }
.hero--base { background: linear-gradient(135deg, #FF6A00 0%, #FF9F1C 55%, #FFD36B 100%); display: flex; align-items: flex-start; }
.hero-texto { position: relative; z-index: 2; padding: var(--space-7) var(--space-7) calc(var(--space-7) + 70px); max-width: 640px; color: #2B1700; }
.hero-texto h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.hero-texto p { margin-top: var(--space-3); font-weight: 600; max-width: 46ch; }
.hero-pista, .hero-slide { position: absolute; inset: 0; }
.hero-slide { margin: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.on img { transform: scale(1); }
.hero-slide figcaption { position: absolute; left: var(--space-7); bottom: calc(var(--space-6) + 60px); max-width: 60%; padding: 10px 16px; border-radius: 12px; background: rgba(43,23,0,.62); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); backdrop-filter: blur(4px); }
.hero-puntos { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(var(--space-6) + 56px); display: flex; gap: 8px; }
.hero-punto { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.65); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: width .2s, background .2s; }
.hero-punto.on { width: 28px; border-radius: 6px; background: var(--cta, #FF9F1C); }
/* El buscador se encima sobre el borde inferior del banner */
.buscador .finder { margin: -86px var(--space-6) 0; z-index: 4; }
/* Con resultados a la vista el banner se oculta y el buscador queda compacto */
.buscador:has(.finder--compact) .hero { display: none; }
.buscador:has(.finder--compact) .finder { margin: 0; }
@media (max-width: 760px) {
  .hero { min-height: 220px; }
  .hero-texto { padding: var(--space-5) var(--space-5) 100px; }
  .buscador .finder { margin: -70px 0 0; }
  .hero-slide figcaption { left: var(--space-4); max-width: 80%; font-size: var(--text-base); bottom: 100px; }
  .hero-puntos { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide img { transition: none; transform: none; } }
/* ── Sugerencias de destino (las que da XPC) ── */
.dest { position: relative; }
.dest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(11, 60, 58, .16); max-height: 296px; overflow-y: auto;
}
.dest-list[hidden] { display: none; }
.dest-op { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--ink); line-height: 1.25; }
.dest-op:hover, .dest-op--on { background: rgba(11, 122, 117, .10); color: var(--accent); }
.dest-aviso { padding: 10px 12px; color: var(--ink-3); font-size: var(--text-sm); font-weight: 600; }

/* ── "Mientras buscamos…": minijuego opcional del autobús ── */
.jb { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-4); }
.jb-oferta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.jb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.jb-canvas { display: block; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 640 / 170; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; touch-action: manipulation; cursor: pointer; }
.jb-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.jb-nota { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--ink-3); text-align: center; }
.jb-nota:empty { display: none; }

/* Tiempo límite bajo demanda en cada tarifa */
.rate-tl-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 8px; }
.rate-tl { font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.rate-tl-wrap .text-btn { font-size: var(--text-xs); }

/* Búsquedas recientes */
.recientes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: var(--space-3) 0 var(--space-4); }
.recientes-t { font-size: var(--text-sm); font-weight: 700; color: var(--ink-2); }
.recientes-l { display: flex; flex-wrap: wrap; gap: 8px; }
.rec { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface, #fff); overflow: hidden; }
.rec-ir { all: unset; cursor: pointer; padding: 6px 4px 6px 12px; font-size: var(--text-sm); color: var(--ink); }
.rec-ir:focus-visible, .rec-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rec-x { all: unset; cursor: pointer; padding: 6px 10px 6px 6px; color: var(--ink-3); font-size: 16px; line-height: 1; }
.rec-x:hover { color: var(--bad-fg, #C8372D); }
.rec-edad { color: var(--ink-3); }
.rec--vieja { border-style: dashed; }
.rec--vieja .rec-ir { color: var(--ink-2); }

/* Políticas de tarifas charter */
.rate-pol { margin: 4px 0 0; padding-left: 1.1rem; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.45; }
.notice .rate-pol { color: inherit; font-size: var(--text-sm); margin-top: 2px; }
.notice--info { background: #DCEBFA; color: #1B568F; }
