/* ============================================================
   components.css — reusable UI. Depends on tokens.css + base.css.
   Every interactive element meets --tap-min (48px).
   ============================================================ */

/* ---- header / nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--maroon);
  border-bottom: 1px solid rgba(250,247,240,0.14);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 64px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 600;
  color: var(--ivory); text-decoration: none; white-space: nowrap;
}
.site-logo span { color: var(--saffron); }

.site-nav ul { list-style: none; display: flex; gap: var(--space-6); }
.site-nav a {
  color: rgba(250,247,240,0.85); text-decoration: none;
  font-size: var(--text-sm); padding-block: var(--space-2);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--saffron); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: var(--tap-min); height: var(--tap-min);
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ivory); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; inset: 64px 0 auto 0;
    background: var(--maroon); display: none;
    border-bottom: 1px solid rgba(250,247,240,0.14);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: var(--space-2) var(--gutter) var(--space-4); }
  .site-nav a { display: block; padding: var(--space-3) 0; min-height: var(--tap-min); }
}

/* ---- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-min); padding: var(--space-3) var(--space-6);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.btn--primary   { background: var(--saffron); color: var(--ink); }
/* The darker hover needs light text: ink on --saffron-deep is only 2.73:1,
   ivory is 5.32:1. */
.btn--primary:hover { background: var(--saffron-deep); color: var(--ivory); }
.btn--secondary { background: transparent; color: var(--maroon); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-alt); }
.btn--on-dark   { background: var(--ivory); color: var(--maroon); }
.btn--wa        { background: var(--wa-green); color: #06351B; }
.btn--block     { width: 100%; }

/* ---- cards -------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card__title { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card__meta  { font-size: var(--text-sm); color: var(--ink-muted); }

/* hotel / stay card — built now, populated when real data exists.
   Deliberately has no rating or review slot: there is no review
   source, and inventing one is not an option. */
.hotel-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.hotel-card__media { aspect-ratio: 3 / 2; background: var(--surface-alt); }
.hotel-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hotel-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.hotel-card__name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--maroon); }
.hotel-card__dist { font-size: var(--text-sm); color: var(--ink-muted); }
.hotel-card__band { font-weight: 600; }          /* price BAND, never a fixed price */
.hotel-card__cta  { margin-top: auto; }

/* area card — the honest alternative while hotel data is missing */
.area-card__best  { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em;
                    text-transform: uppercase; color: var(--saffron-deep); }
.area-card__catch { font-size: var(--text-sm); color: var(--ink-muted); }

/* ---- table -------------------------------------------------------- */
.fact-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.fact-table th, .fact-table td { padding: var(--space-3); text-align: left; border-bottom: 1px solid var(--border); }
.fact-table th { background: var(--maroon); color: var(--ivory); font-weight: 600; }
/* No nowrap: a long value (a full address) would force the table wider than
   a phone screen, and body{overflow-x:hidden} would then CLIP it unreachably. */
.fact-table td:last-child { font-variant-numeric: tabular-nums; }

/* ---- accordion ----------------------------------------------------- */
.accordion__item { border-top: 1px solid var(--border); }
.accordion__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-4) 0; min-height: var(--tap-min);
  font-family: var(--font-display); font-size: var(--text-base);
  color: var(--maroon); text-align: left;
}
.accordion__icon { flex: none; transition: transform .2s ease; color: var(--saffron-deep); }
.accordion__q[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__a { padding-bottom: var(--space-4); }
.accordion__a[hidden] { display: none; }

/* ---- disclosure ------------------------------------------------------ */
.disclosure {
  font-size: var(--text-sm); color: var(--ink-muted);
  background: var(--surface-alt); border-left: 3px solid var(--saffron);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}

/* ---- footer ----------------------------------------------------------- */
.site-footer { background: var(--maroon); color: rgba(250,247,240,0.78); padding-block: var(--space-12); }
.site-footer a { color: rgba(250,247,240,0.88); text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-sm); }
.site-footer__legal { font-size: var(--text-xs); color: rgba(250,247,240,0.55); }

/* ---- mobile action bar -------------------------------------------------- */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 999; display: none; }
.mobile-bar__inner { display: flex; }
.mobile-bar .btn { flex: 1; border-radius: 0; min-height: 56px; }
@media (max-width: 768px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 56px; }
}
