/* ══════════════════════════════════════════════════════════
   COMPONENTS — reusable UI patterns shared across pages
   ══════════════════════════════════════════════════════════ */

/* ── SECTION LABEL ─────────────────────────────────────────── */
.sec-label {
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.sec-label::before {
  content: '';
  display: block;
  width: 1.5rem; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-fill, .btn-line, .btn-submit { font-family: var(--f); font-size: var(--t-micro); font-weight: 700; letter-spacing: var(--ls-ui); text-transform: uppercase; cursor: pointer; min-height: 44px; transition: background var(--ease-std), border-color var(--ease-std), color var(--ease-std); }
.btn-fill, .btn-line { padding: 1rem 2.5rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.btn-fill, .btn-submit { color: var(--bg); background: var(--plum); border: none; }
.btn-fill:hover, .btn-submit:hover { background: var(--plum-dark); }
.btn-line { font-weight: 600; color: var(--body-muted); background: none; border: 1px solid var(--border-gold); }
.btn-line:hover { border-color: var(--plum); color: var(--plum); }
.btn-submit { width: 100%; margin-top: 0.5rem; padding: 1.25rem; }

/* ── TICKER ────────────────────────────────────────────────── */
.ticker {
  background: var(--plum);
  padding: 0.85rem 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: tick 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--neutral);
  padding: 0 2.5rem;
}
.ticker-item.gold { color: var(--gold); }

/* ── STATS ─────────────────────────────────────────────────── */
.stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--f);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--plum);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--body-muted);
  margin-top: 0.4rem;
}

/* ── FORM ELEMENTS ─────────────────────────────────────────── */
.f-group { margin-bottom: 1.6rem; }


.f-input,
.f-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 0.9rem 0;
  outline: none;
  font-family: var(--f);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  color: var(--plum);
  transition: border-color var(--ease-std);
  min-height: 44px;
}
.f-input::placeholder {
  color: var(--body-muted);
  font-size: var(--t-sm);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
}
.f-input:focus,
.f-select:focus { border-bottom-color: var(--plum); }

.f-select {
  color: var(--body-muted);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  -webkit-appearance: none;
  cursor: pointer;
}
.f-select option { background: var(--bg); color: var(--ink); }

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 767px) {
  .f-row { grid-template-columns: 1fr; }
}

.f-note {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--body-muted);
}

/* ── SERVICE CHIPS (tags) ──────────────────────────────────── */
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.svc-tag {
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--body-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  background: var(--bg);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* ── SELECTION TRAY ────────────────────────────────────────── */
.tray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--plum);
  border-top: 1px solid var(--plum-dark);
  padding: 1.2rem var(--gutter);
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(110%);
  transition: transform var(--ease-in);
}
.tray.up { transform: none; }

.tray-info { min-width: 0; }
.tray-count {
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.tray-list {
  font-size: var(--t-sm);
  line-height: 1.5;
  color: rgba(227, 214, 201, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.tray-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-shrink: 0;
}
.tray-total {
  font-family: var(--f);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--bg);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tray-total .sub {
  display: block;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: rgba(227, 214, 201, .45);
  margin-top: 0.3rem;
  text-align: right;
}
.tray-reset {
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: rgba(227, 214, 201, .5);
  background: none; border: none;
  cursor: pointer;
  transition: color var(--ease-std);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.tray-reset:hover { color: var(--gold); }
.tray-book {
  font-family: var(--f);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--plum);
  background: var(--gold);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background var(--ease-std);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.tray-book:hover { background: var(--gold-pale); }

/* Tray responsive */
@media (max-width: 767px) {
  .tray {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  .tray-list { max-width: 100%; white-space: normal; }
  .tray-right { justify-content: space-between; gap: 1rem; }
  .tray-book { flex: 1; justify-content: center; }
}

/* ── FLOATING WHATSAPP BUTTON ──────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  right: 1.5rem;
  z-index: 94;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  text-decoration: none;
  transition: transform var(--ease-std), box-shadow var(--ease-std);
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Hide WA float when tray is open to avoid overlap */
.tray.up ~ .wa-float {
  bottom: calc(6rem + env(safe-area-inset-bottom));
}

/* ── COOKIE CONSENT BANNER (built by analytics.js) ──────────── */
.cc{position:fixed;left:0;right:0;bottom:0;z-index:300;background:var(--bg);border-top:1px solid var(--border-gold);box-shadow:0 -8px 32px rgba(0,0,0,.12);padding:1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem}
.cc[hidden],.cc-prefs[hidden]{display:none}
.cc-text{flex:1 1 28rem;font-size:var(--t-sm);color:var(--body-muted)}
.cc-text a{color:var(--plum)}
.cc-prefs{flex-basis:100%;display:flex;flex-wrap:wrap;gap:0 1.5rem;font-size:var(--t-sm);color:var(--plum)}
.cc-prefs label{display:flex;align-items:center;gap:.5rem;min-height:44px}
.cc-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.cc-actions button{padding:.75rem 1.25rem}
.tray :focus-visible,.ai-header :focus-visible{outline-color:var(--gold)}
