/* ------------------------------------------------------------------
   checker.css — Revisor de disponibilidad
   La Finquita Cojimíes

   Se usa en las 7 páginas. Las variantes:
     .book-bar            → horizontal (hero de index.html)
     .book-bar.compact    → vertical, para el sidebar de las páginas
                            de alojamiento

   Depende de las variables del sistema Atardecer, con fallback por si
   la hoja principal no cargó: --navy, --sun-2, --cream, --ink, --ink-soft
   ------------------------------------------------------------------ */

.book-bar {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow, 0 24px 60px rgba(18,22,62,.16));
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
  position: relative;
  z-index: 2;
}

.checker-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.cf-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 120px; }

.cf-field label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft, #585C7C);
  font-weight: 700;
}

.cf-field input,
.cf-field select {
  border: 1px solid rgba(23,27,61,.15);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--ink, #171B3D);
  background: var(--cream, #FBF7EE);
  width: 100%;
}

.cf-field input:focus,
.cf-field select:focus { outline: 2px solid var(--sun-2, #F2994A); outline-offset: 1px; }

.checker-form button { flex-shrink: 0; white-space: nowrap; }

/* ---------- Resultado ---------- */

.cf-result {
  display: none;
  border-radius: 12px;
  padding: 22px 24px;
  font-size: 15.5px;
  color: var(--ink, #171B3D);
  margin-top: 14px;
  line-height: 1.5;
}
.cf-result.cf-ok   { background: rgba(62,160,91,.10);  border: 1px solid rgba(62,160,91,.30); }
.cf-result.cf-alt  { background: rgba(242,153,74,.10); border: 1px solid rgba(242,153,74,.30); }
.cf-result.cf-none { background: rgba(23,27,61,.06);   border: 1px solid rgba(23,27,61,.15); }

.cf-result .cf-price {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: var(--navy, #12163E);
  margin: 10px 0 6px;
}
.cf-result .cf-note { font-size: 13.5px; color: var(--ink-soft, #585C7C); margin: 0 0 16px; }
.cf-result .btn { margin-top: 6px; }

.cf-meal-options ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }

.cf-meal {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--ink, #171B3D);
  background: #fff;
  border: 1.5px solid rgba(23,27,61,.14);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.cf-meal:hover { border-color: rgba(242,153,74,.55); }
.cf-meal b { font-size: 15px; white-space: nowrap; }

.cf-meal.on {
  border-color: var(--sun-2, #F2994A);
  background: rgba(242,153,74,.09);
}
.cf-meal.on span::before {
  content: '✓ ';
  color: var(--sun-2, #F2994A);
  font-weight: 700;
}
.cf-meal:focus-visible { outline: 2px solid var(--sun-2, #F2994A); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .cf-meal { transition: none; } }

.cf-room-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(23,27,61,.12);
  border-radius: 11px;
  padding: 9px;
  margin-bottom: 14px;
}
.cf-room-link img { width: 62px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cf-room-link span { font-weight: 600; font-size: 14.5px; display: block; }
.cf-room-link small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-soft, #585C7C); margin-top: 2px; }

/* ---------- Variante compacta: sidebar de páginas de alojamiento ---------- */

.book-bar.compact {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 20px;
  box-shadow: 0 8px 26px rgba(18,22,62,.10);
  border: 1px solid rgba(23,27,61,.08);
}

.book-bar.compact .cf-title {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  color: var(--navy, #12163E);
  margin: 0 0 2px;
}
.book-bar.compact .cf-sub {
  font-size: 12.5px;
  color: var(--ink-soft, #585C7C);
  margin: 0 0 14px;
  line-height: 1.45;
}

/* Fechas lado a lado, personas y botón a lo ancho */
.book-bar.compact .checker-form { gap: 11px; }
.book-bar.compact .cf-field { flex: 1 1 calc(50% - 6px); min-width: 0; }
.book-bar.compact .cf-field.full { flex: 1 1 100%; }
.book-bar.compact .checker-form button { width: 100%; justify-content: center; }
.book-bar.compact .cf-result { padding: 18px; font-size: 14.5px; }
.book-bar.compact .cf-result .cf-price { font-size: 26px; }

/* En pantallas chicas el sidebar ya cae a una columna: nada extra que hacer,
   pero el hero horizontal sí necesita apilarse. */
@media (max-width: 860px) {
  .book-bar { padding: 20px; }
  .checker-form { gap: 11px; }
  .checker-form .cf-field { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .checker-form button { width: 100%; justify-content: center; }
}

/* Enlace discreto al carril de WhatsApp, siempre disponible */
/* Dos caminos: reservar en línea o escribir. Ninguno escondido. */
.cf-actions { display: grid; gap: 9px; margin-top: 6px; }
.cf-actions .btn { width: 100%; justify-content: center; }
.cf-actions .cf-go { font-size: 15px; }

@media (min-width: 620px) {
  .book-bar:not(.compact) .cf-actions { grid-template-columns: 1fr 1fr; }
}

.cf-escape {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft, #585C7C);
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cf-escape:hover { color: var(--sun-2, #F2994A); }
