/* app.css — Voyageur PWA
   Design system: L'Art de Vivre — Stitch × Monpazier
   Primary: climbing rose #B84A4A | Background: warm cream #F9F7F2
   Typography: Noto Serif + Plus Jakarta Sans
   ──────────────────────────────────────────────────────── */

/* ── Material Symbols ───────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── Design tokens ─────────────────────────────────────── */
:root {
  /* Primary — climbing rose */
  --primary:          #B84A4A;
  --primary-mid:      #C86060;
  --primary-light:    #E8C4C4;
  --primary-pale:     #F5E8E8;
  --on-primary:       #FFFFFF;

  /* Background & surfaces — Stitch cream */
  --bg:               #F9F7F2;
  --surface:          #F9F7F2;
  --surface-low:      #F5F3EE;
  --surface-container:#F0EEE9;
  --surface-high:     #EAE8E3;
  --surface-highest:  #E4E2DD;
  --surface-card:     #FFFFFF;

  /* Text */
  --text:             #1B1C19;
  --text-mid:         #56423D;
  --text-muted:       #89726C;

  /* Borders */
  --border:           #DCC0BA;
  --border-mid:       #E8E4D8;

  /* Secondary — deep olive */
  --secondary:        #52652A;
  --secondary-container: #D4ECA2;
  --on-secondary:     #FFFFFF;

  /* Tertiary — sunflower */
  --tertiary:         #775600;
  --tertiary-fixed:   #F8BD37;

  /* Dark surface */
  --shadow:           #30312E;
  --shadow-mid:       #56423D;

  /* Functional */
  --white:            #FFFFFF;
  --error:            #BA1A1A;
  --error-bg:         #FFDAD6;
  --error-border:     #E8AAAA;
  --success:          #3B6D11;
  --success-bg:       #EAF3DE;
  --success-border:   #97C459;

  /* Legacy aliases — keep existing components working */
  --parchment:        #F9F7F2;
  --parchment-2:      #F0EEE9;
  --parchment-3:      #E4E2DD;
  --stone:            #DCC0BA;
  --stone-mid:        #89726C;
  --stone-dark:       #56423D;
  --rose:             #B84A4A;
  --rose-mid:         #C86060;
  --rose-light:       #E8C4C4;
  --rose-pale:        #F5E8E8;
  --sky:              #4A7EA8;
  --sky-light:        #C8DCF0;
  --sky-pale:         #EBF4FB;
  --sage:             #52652A;
  --sage-light:       #D4ECA2;
  --sage-pale:        #EAF2E4;
  --bg-2:             #F0EEE9;
  --bg-card:          #FFFFFF;
  --text-mid:         #56423D;
  --border-light:     #E4E2DD;

  /* Typography */
  --font-serif: 'Noto Serif', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  /* Safe area insets */
  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);
}

/* ── Base ───────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ── Screen base ────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen--cream     { background: var(--parchment); color: var(--text); }
.screen--parchment { background: var(--parchment); color: var(--text); }
.screen--navy      { background: var(--shadow);    color: var(--parchment); }
.screen--shadow    { background: var(--shadow);    color: var(--parchment); }

.screen-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--parchment);
  will-change: transform, opacity;
}

/* Scrollable content area — fills remaining height above bottom nav */
.home-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* ── Top bar — back button only, shown on detail screens ─── */
.top-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: calc(52px + var(--sat));
  padding-top: var(--sat);
  padding-left: 8px;
  background: rgba(249,247,242,0.97);
  border-bottom: 1px solid var(--border-mid);
}

.top-bar__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.15s;
}

.top-bar__back:active { background: var(--primary-pale); }

/* ── Bottom navigation bar ──────────────────────────────── */
.bottom-nav {
  order: 100;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  height: calc(60px + var(--sab));
  padding-bottom: var(--sab);
  background: rgba(249,247,242,0.97);
  user-select: none;
  -webkit-user-select: none;
  border-top: 1px solid var(--border-mid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.bottom-nav__tab .material-symbols-outlined { font-size: 24px; }

.bottom-nav__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bottom-nav__tab:active { color: var(--primary); }

.bottom-nav__tab.is-active { color: var(--primary); }

/* ── Typography ─────────────────────────────────────────── */
.t-display { font-family: var(--font-sans); font-weight: 400; line-height: 1.15; }

.t-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Form elements ──────────────────────────────────────── */
.form-group { margin-bottom: 16px; position: relative; }

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder { color: var(--stone-mid); }

.form-input:focus {
  border-color: var(--stone-dark);
  box-shadow: 0 0 0 3px rgba(86,66,61,0.1);
}

.form-input.is-error { border-color: var(--error); }
.form-input--password { padding-right: 48px; }

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A8B6A' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.form-error { font-family: var(--font-sans); font-size: 12px; color: var(--error); margin-top: 6px; display: none; }
.form-error.visible { display: block; }
.form-hint { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  -webkit-appearance: none;
  text-decoration: none;
}

.btn:active:not(:disabled) { transform: scale(0.98); opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary  { background: var(--rose); color: var(--white); }
.btn--primary:hover:not(:disabled) { background: var(--rose-mid); }

.btn--outline  { background: transparent; border: 1.5px solid var(--stone); color: var(--text); }
.btn--outline:hover:not(:disabled) { background: var(--parchment-2); }

.btn--ghost    { background: none; border: none; color: var(--rose); font-weight: 600; font-size: 10px; padding: 7px; width: auto; }

.btn--sm { padding: 8px 14px; font-size: 10px; border-radius: 7px; }

/* ── Spinner ────────────────────────────────────────────── */
.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

.spinner--dark { border-color: rgba(58,46,30,0.15); border-top-color: var(--shadow); }
.btn--outline .spinner { border-color: rgba(58,46,30,0.15); border-top-color: var(--shadow); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted);
  font-size: 12px; font-family: var(--font-sans);
}

.divider::before, .divider::after {
  content: ''; flex: 1; height: 0.5px;
  background: var(--stone); opacity: 0.6;
}

/* ── Alert ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; font-family: var(--font-sans);
  line-height: 1.5; margin-bottom: 20px; display: none;
}

.alert.visible { display: block; }
.alert--error   { background: var(--error-bg);   color: var(--error);   border: 1px solid var(--error-border); }
.alert--success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }

/* ── Checkbox ───────────────────────────────────────────── */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--rose); cursor: pointer; }
.checkbox-group label { font-size: 13px; font-family: var(--font-sans); color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.checkbox-group a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }

/* ── Plan badge ─────────────────────────────────────────── */
.plan-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.plan-badge--demo     { background: var(--parchment-2); color: var(--stone-dark); }
.plan-badge--voyageur { background: var(--sky-pale);    color: var(--sky); }
.plan-badge--premium  { background: var(--rose-pale);   color: var(--rose); }

/* ── Splash ─────────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; background: var(--parchment);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.4s ease;
}

#splash.hidden { opacity: 0; pointer-events: none; }

.splash-logo { display: flex; align-items: center; justify-content: center; animation: splashPulse 1.8s ease-in-out infinite; }

@keyframes splashPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(0.96); }
}

.splash-loader { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
.splash-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); animation: pulse 1.2s ease-in-out infinite; }
.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1); }
}

/* ── Auth screens ───────────────────────────────────────── */
/* Auth screens scroll themselves (no top nav, no inner scroll container) */
.auth-screen { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--sat) + 28px) 28px calc(var(--sab) + 20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }

.auth__logo-wrap { display: flex; justify-content: center; margin-bottom: -20px; }
.auth__logo-img { width: 192px; height: 192px; border-radius: 44px; }

.auth__heading { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 6px; }

.auth__sub { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }

.auth .form-group { margin-bottom: 10px; }
.auth .form-input { padding: 9px 12px; font-size: 14px; }

.auth__footer { margin-top: 16px; text-align: center; }
.auth__footer p { font-size: 13px; color: var(--text-muted); font-family: var(--font-sans); }
.auth__footer a, .auth__link { color: var(--rose); font-weight: 600; text-decoration: none; background: none; border: none; cursor: pointer; font-size: inherit; font-family: inherit; }

/* ── Update / Offline banners ───────────────────────────── */
/* Fixed container stacks banners above the bottom nav */
#banner-stack {
  position: fixed;
  bottom: calc(60px + var(--sab));
  left: 0;
  right: 0;
  z-index: 300;
}

#update-banner,
#offline-banner {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease;
  pointer-events: none;
}

#update-banner.visible,
#offline-banner.visible {
  max-height: 60px;
  padding-top: 12px;
  padding-bottom: 12px;
  pointer-events: auto;
}

#update-banner {
  background: var(--surface-card);
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

#update-banner.visible {
  border-top: 1px solid var(--border-mid);
}

#offline-banner {
  background: var(--shadow);
  color: var(--parchment);
  justify-content: center;
  font-size: 12px;
}

/* Transient toast (e.g. Stripe purchase confirmation on return) */
.wif-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--sab, 0px));
  transform: translate(-50%, 16px);
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  background: #042C53;
  color: var(--parchment, #F7EADF);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 9999;
  pointer-events: none;
}

.wif-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#update-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  background: none;
  border: 1.5px solid var(--stone);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

#update-btn:active { background: var(--parchment-2); }

/* ── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(58,46,30,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1000; padding: 0 0 var(--sab);
}

.modal { background: var(--parchment); border-radius: 24px 24px 0 0; padding: 24px 24px calc(var(--sab) + 24px); width: 100%; max-height: 90vh; overflow-y: auto; }
.modal__heading { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.modal__sub { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* ── Bottom nav and top bar — defined above, no overrides needed ─ */

/* ── Home screen ────────────────────────────────────────── */
.home-header { display: flex; align-items: flex-start; justify-content: space-between; padding: calc(var(--sat) + 20px) 24px 16px; }
.home-header__wordmark { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--stone-mid); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.home-header__greeting { font-family: var(--font-sans); font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.15; }
.home-gens { padding: 0 24px 16px; }
.gens-text { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); }
.gens-text--empty { color: var(--rose); font-weight: 700; }
.home-cta { padding: 0 24px 20px; }
.home-cta__btn { background: var(--rose); color: var(--white); }

.home-seasonal { margin: 0 24px 24px; background: var(--parchment-2); border-radius: 14px; padding: 14px 16px; border-left: 3px solid var(--rose); }
.home-seasonal__label { display: block; font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); margin-bottom: 4px; }
.home-seasonal__text { font-family: var(--font-sans); font-size: 13px; color: var(--text-mid); line-height: 1.5; }

.home-section { margin-bottom: 24px; }
.home-section__header { display: flex; align-items: center; justify-content: space-between; padding: 0 24px 12px; }
.home-section__heading { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text); }
.home-section__link { font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--rose); background: none; border: none; cursor: pointer; }

/* ── Region grid ────────────────────────────────────────── */
.home-regions-toggle { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--stone); border-radius: 20px; padding: 5px 12px; font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.home-regions-toggle:active { background: var(--parchment-2); }
.home-regions-toggle__icon { transition: transform 0.3s ease; flex-shrink: 0; }
.home-regions-toggle__icon.is-open { transform: rotate(180deg); }

.regions-grid-wrap { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1); }
.regions-grid-wrap.is-open { max-height: 2000px; }

.regions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 24px 4px; }

.region-card { display: flex; flex-direction: column; background: var(--bg-card); border: 0.5px solid var(--stone); border-radius: 16px; cursor: pointer; text-align: left; overflow: hidden; transition: transform 0.15s, border-color 0.15s; opacity: 0; transform: translateY(12px); }
.region-card.is-revealed { opacity: 1; transform: translateY(0); transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.15s; }
.region-card:active { transform: scale(0.97); }

.region-card__photo-wrap { width: 100%; height: 80px; overflow: hidden; background: var(--parchment-2); position: relative; flex-shrink: 0; }
.region-card__photo { width: 100%; height: 100%; object-fit: cover; }
.region-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--stone) 0%, var(--stone-dark) 100%); color: rgba(255,255,255,0.4); }

.region-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.region-card__name { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.2; }
.region-card__sub { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); line-height: 1.35; }

/* ── Walking tours ──────────────────────────────────────── */
.tours-row { display: flex; gap: 12px; padding: 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tours-row::-webkit-scrollbar { display: none; }

.tour-card { display: flex; gap: 12px; background: var(--bg-card); border: 0.5px solid var(--stone); border-radius: 14px; padding: 14px; cursor: pointer; flex-shrink: 0; width: 220px; align-items: flex-start; text-align: left; }
.tour-card--soon { opacity: 0.7; }
.tour-card__icon { width: 36px; height: 36px; background: var(--rose-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--rose); flex-shrink: 0; }
.tour-card__name { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.tour-card__meta { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.tour-card__badge { display: inline-block; font-family: var(--font-sans); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tour-card__badge--available { background: var(--sage-pale);  color: var(--sage); }
.tour-card__badge--soon      { background: var(--parchment-2); color: var(--stone-dark); }

/* ── Region detail screen ───────────────────────────────── */
.region-screen { display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.region-hero { position: relative; width: 100%; height: 52vw; max-height: 280px; min-height: 200px; flex-shrink: 0; overflow: hidden; background: var(--shadow); }
.region-hero__img { width: 100%; height: 100%; object-fit: cover; }
.region-hero__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--shadow-mid) 0%, var(--shadow) 100%); }

.region-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(58,46,30,0.25) 0%, rgba(58,46,30,0.55) 60%, rgba(58,46,30,0.88) 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--sat) + 14px) 20px 20px;
}

.region-hero__back { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(245,237,216,0.15); border: none; border-radius: 50%; cursor: pointer; color: var(--parchment); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); align-self: flex-start; }
.region-hero__text { margin-top: auto; }
.region-hero__tagline { font-family: var(--font-sans); font-size: 11px; color: rgba(245,237,216,0.7); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.region-hero__name { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--parchment); line-height: 1.1; }

.region-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; padding: 28px 24px calc(var(--sab) + 32px); background: var(--parchment); }
.region-copy { margin-bottom: 28px; }
.region-copy p { font-family: var(--font-sans); font-size: 15px; color: var(--text-mid); line-height: 1.75; }

.region-highlights { background: var(--parchment-2); border-radius: 16px; padding: 4px 0; margin-bottom: 28px; overflow: hidden; }
.region-highlight { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-bottom: 0.5px solid var(--border-light); }
.region-highlight:last-child { border-bottom: none; }
.region-highlight__label { font-family: var(--font-sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.region-highlight__value { font-family: var(--font-sans); font-size: 14px; color: var(--text); line-height: 1.5; }
.region-cta { display: flex; flex-direction: column; }

/* ── Wizard ─────────────────────────────────────────────── */
.wizard { background: var(--parchment); }

.wizard-header { padding: calc(var(--sat) + 12px) 24px 0; flex-shrink: 0; }
.wizard-header__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wizard-header__back { background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; display: flex; align-items: center; }
.wizard-header__step { font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; }
.wizard-header__cancel { font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--rose); background: none; border: none; cursor: pointer; }
.wizard-progress-track { height: 3px; background: var(--parchment-3); border-radius: 2px; margin-bottom: 14px; overflow: hidden; }
.wizard-progress-bar { height: 100%; background: var(--rose); border-radius: 2px; transition: width 0.35s ease; }
.wizard-header__label { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; line-height: 1.25; }
.wizard-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 24px; }
.wizard-step-content { padding-bottom: 12px; }
.wizard-footer { padding: 12px 24px calc(var(--sab) + 16px); flex-shrink: 0; }
.wizard-footer__error { font-family: var(--font-sans); font-size: 13px; color: var(--error); margin-bottom: 10px; padding: 0; background: none; border: none; display: none; }
.wizard-footer__error.visible { display: block; }
.wizard-footer__btn { background: var(--rose); color: var(--white); }

/* ── Wizard: dates ──────────────────────────────────────── */
.wiz-dates { display: flex; flex-direction: column; gap: 0; }
.wiz-date-card { background: var(--bg-card); border: 1px solid var(--stone); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.wiz-date-field { padding: 14px 16px; }
.wiz-date-divider { height: 0.5px; background: var(--stone); opacity: 0.5; }
.wiz-date-input { border: none; background: transparent; font-size: 16px; font-family: var(--font-sans); color: var(--text); width: 100%; outline: none; -webkit-appearance: none; padding: 6px 0 0; }
.wiz-nights-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--rose-pale); color: var(--rose); font-family: var(--font-sans); font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 20px; margin-bottom: 12px; }
.wiz-date-hint { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); line-height: 1.55; padding: 4px 0; }

/* ── Wizard: regions ────────────────────────────────────── */
.wiz-regions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.wiz-region-card { display: flex; flex-direction: column; gap: 3px; background: var(--bg-card); border: 1.5px solid var(--stone); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; }
.wiz-region-card.is-selected { border-color: var(--rose); background: var(--rose-pale); }
.wiz-region-card__name { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text); }
.wiz-region-card__sub { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.wiz-surprise__btn { width: 100%; background: var(--parchment-2); border: 1.5px dashed var(--stone); border-radius: 12px; padding: 13px; font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--text-mid); cursor: pointer; transition: background 0.15s; }
.wiz-surprise__btn.is-selected { background: var(--rose-pale); border-color: var(--rose); color: var(--rose); }

/* ── Wizard: hubs ───────────────────────────────────────── */
.wiz-hubs { display: flex; flex-direction: column; gap: 0; }
.wiz-hubs .form-group { margin-bottom: 16px; }
.wiz-hubs__group { display: flex; flex-direction: column; }
.wiz-hubs__or { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; }
.wiz-hubs__or-line { flex: 1; height: 1px; background: var(--border); }
.wiz-hubs__or-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.wiz-hubs__prompt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 24px; border: 1px dashed var(--border); border-radius: 12px; background: var(--cream, #F7EADF); }
.wiz-hubs__prompt-icon { font-size: 40px; color: var(--text-muted); }
.wiz-hubs__prompt-text { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0; max-width: 320px; }
.pac-container { z-index: 9999 !important; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.1); font-family: var(--font-sans); }
.wiz-car-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--stone); border-radius: 12px; overflow: hidden; }
.wiz-car-opt { padding: 12px 10px; background: var(--bg-card); border: none; font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); cursor: pointer; text-align: center; transition: background 0.15s, color 0.15s; border-right: 0.5px solid var(--stone); line-height: 1.3; }
.wiz-car-opt:last-child { border-right: none; }
.wiz-car-opt.is-active { background: var(--shadow); color: var(--parchment); }
.wiz-info-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--sky-pale); border-radius: 10px; margin-top: 4px; }
.wiz-info-box p { font-family: var(--font-sans); font-size: 13px; color: var(--sky); line-height: 1.5; }

/* ── Wizard: accommodation ─────────────────────────────── */
.wiz-accom__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.wiz-accom__card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s; }
.wiz-accom__card.is-selected { border-color: var(--shadow); background: var(--parchment); }
.wiz-accom__card-icon { font-size: 22px; color: var(--text-muted); }
.wiz-accom__card.is-selected .wiz-accom__card-icon { color: var(--shadow); }
.wiz-accom__card-label { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.wiz-accom__card-desc { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.wiz-accom__address-wrap { margin-top: 4px; }
.wiz-accom__address-wrap .form-hint { display: block; font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }

/* ── Wizard: companions ─────────────────────────────────── */
.wiz-companions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.wiz-companion-card { display: flex; flex-direction: column; gap: 3px; background: var(--bg-card); border: 1.5px solid var(--stone); border-radius: 12px; padding: 13px 12px; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; }
.wiz-companion-card.is-selected { border-color: var(--rose); background: var(--rose-pale); }
.wiz-companion-card__label { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text); }
.wiz-companion-card__desc { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); }

.wiz-travellers { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--stone); border-radius: 12px; padding: 12px 16px; }
.wiz-travellers__label { font-family: var(--font-sans); font-size: 14px; color: var(--text-mid); font-weight: 600; }
.wiz-travellers__control { display: flex; align-items: center; gap: 16px; }
.wiz-travellers__btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--stone); background: var(--parchment); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); transition: background 0.15s; }
.wiz-travellers__btn:active { background: var(--parchment-2); }
.wiz-travellers__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wiz-travellers__count { font-family: var(--font-sans); font-size: 20px; font-weight: 500; color: var(--text); min-width: 24px; text-align: center; }

/* ── Wizard: interests ──────────────────────────────────── */
.wiz-interests__hint { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz-chip { background: var(--bg-card); border: 1.5px solid var(--stone); border-radius: 20px; padding: 9px 16px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text-mid); cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.wiz-chip.is-selected { background: var(--rose-pale); border-color: var(--rose); color: var(--rose); font-weight: 700; }

/* ── Wizard: pace and budget ────────────────────────────── */
.wiz-pace-budget { display: flex; flex-direction: column; gap: 0; }
.wiz-pace-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.wiz-pace-card { display: flex; flex-direction: column; gap: 5px; background: var(--bg-card); border: 1.5px solid var(--stone); border-radius: 14px; padding: 16px 14px; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; }
.wiz-pace-card.is-selected { background: var(--shadow); border-color: var(--shadow); }
.wiz-pace-card__name { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--text); }
.wiz-pace-card.is-selected .wiz-pace-card__name { color: var(--parchment); }
.wiz-pace-card__desc { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.wiz-pace-card.is-selected .wiz-pace-card__desc { color: var(--stone); }

.wiz-budget { display: flex; flex-direction: column; gap: 8px; }
.wiz-budget-card { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1.5px solid var(--stone); border-radius: 14px; padding: 14px 16px; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; }
.wiz-budget-card.is-selected { background: var(--shadow); border-color: var(--shadow); }
.wiz-budget-card__sym { font-family: var(--font-sans); font-size: 20px; color: var(--stone-mid); min-width: 46px; text-align: center; flex-shrink: 0; }
.wiz-budget-card.is-selected .wiz-budget-card__sym { color: var(--stone); }
.wiz-budget-card__label { display: block; font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.wiz-budget-card.is-selected .wiz-budget-card__label { color: var(--parchment); }
.wiz-budget-card__sub { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.wiz-budget-card.is-selected .wiz-budget-card__sub { color: var(--stone); }

/* ── Generation screen ──────────────────────────────────── */
.wizard-gen { background: var(--shadow); display: flex; flex-direction: column; }
.wizard-gen__inner { flex: 1; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 60px) 28px calc(var(--sab) + 32px); }
.wizard-gen__icon { width: 80px; height: 80px; border-radius: 50%; background: var(--shadow-mid); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; flex-shrink: 0; transition: background 0.4s; }
.wizard-gen__logo { width: 56px; height: 56px; border-radius: 12px; display: block; }
@keyframes wif-logo-pulse { 0%, 100% { opacity: 0.72; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
.wizard-gen__icon--pulse { background: transparent; }
.wizard-gen__icon--pulse .wizard-gen__logo { animation: wif-logo-pulse 2.4s ease-in-out infinite; }
.wizard-gen__heading { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--parchment); text-align: center; line-height: 1.25; margin-bottom: 20px; }
.wizard-gen__scroll-wrap { width: 100%; height: 180px; overflow-y: auto; overflow-x: hidden; border-top: 0.5px solid var(--shadow-mid); border-bottom: 0.5px solid var(--shadow-mid); margin: 0 0 20px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.wizard-gen__scroll-wrap::-webkit-scrollbar { display: none; }
.wizard-gen__scroll { display: flex; flex-direction: column; padding: 10px 0 4px; }
.wizard-gen__scroll-line { font-family: var(--font-sans); font-size: 12px; color: var(--stone); padding: 5px 0; border-bottom: 0.5px solid rgba(90,74,50,0.3); opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; line-height: 1.4; }
.wizard-gen__scroll-line.is-visible { opacity: 1; transform: translateY(0); }
.wizard-gen__scroll-line--done { color: var(--parchment); font-weight: 700; border-bottom: none; }
.wizard-gen__ready { display: none; flex-direction: column; align-items: center; gap: 12px; animation: screenFadeIn 0.3s ease forwards; width: 100%; }
.wizard-gen__ready-sub { font-family: var(--font-sans); font-size: 13px; color: var(--stone-mid); text-align: center; }
.wizard-gen__see-it { display: flex; align-items: center; gap: 10px; background: var(--parchment); color: var(--text); border: none; border-radius: 14px; padding: 15px 28px; font-family: var(--font-sans); font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity 0.15s, transform 0.1s; width: 100%; justify-content: center; }
.wizard-gen__see-it:active { transform: scale(0.98); }
.wizard-gen__error { text-align: center; padding: 0 12px; }
.wizard-gen__error p { font-family: var(--font-sans); font-size: 14px; color: var(--stone); margin-bottom: 16px; line-height: 1.5; }
.wizard-gen__retry { background: var(--shadow-mid); color: var(--parchment); border: none; border-radius: 12px; padding: 12px 24px; font-family: var(--font-sans); font-size: 14px; font-weight: 700; cursor: pointer; width: auto; }


/* ── Top app bar ─────────────────────────────────────────── */
.itin-top-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border-mid); flex-shrink: 0; }
.itin-top-bar__left { display: flex; align-items: center; gap: 12px; }
.itin-top-bar__back { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: none; border-radius: 50%; cursor: pointer; color: var(--primary); transition: background 0.15s; }
.itin-top-bar__back:active { background: var(--primary-pale); }
.itin-top-bar__wordmark { font-family: var(--font-sans); font-style: italic; font-weight: 700; font-size: 20px; color: var(--primary); }
.itin-top-bar__right { display: flex; align-items: center; gap: 8px; }
.itin-top-bar__icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: none; border-radius: 50%; cursor: pointer; color: var(--text-mid); }
.itin-top-bar__save-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(184,74,74,0.35); border-radius: 9999px; background: none; color: var(--primary); font-family: var(--font-sans); font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.15s; }
.itin-top-bar__save-btn.is-saved { background: var(--primary-pale); border-color: var(--primary); }
.itin-top-bar__save-btn:active { background: var(--primary-pale); }

/* ── Itinerary screen ─────────────────────────────────────── */
.itin-screen { background: var(--surface); }
.itin-save-error { background: var(--error-bg); color: var(--error); font-family: var(--font-sans); font-size: 13px; padding: 10px 20px; flex-shrink: 0; }
.itin-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; padding: 0 0 calc(var(--sab) + 24px); }

.itin-trip-header { padding: 20px 20px 24px; }
.itin-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.itin-chip { padding: 5px 12px; border-radius: 9999px; font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.itin-chip--region  { background: var(--secondary-container); color: var(--secondary); }
.itin-chip--neutral { background: var(--surface-high); color: var(--text-mid); }
.itin-title { font-family: var(--font-sans); font-size: 32px; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.01em; }
.itin-summary { font-family: var(--font-sans); font-size: 16px; color: var(--text-mid); line-height: 1.6; }

/* Day accordion */
.itin-days { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
.itin-day { background: var(--surface-card); border-radius: 16px; box-shadow: 0 4px 20px rgba(184,74,74,0.06); border: 1px solid rgba(220,192,186,0.35); overflow: hidden; }
.itin-day__header { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: none; border: none; text-align: left; cursor: pointer; transition: background 0.15s; }
.itin-day__header:active { background: var(--surface-container); }
.itin-day__num-wrap { flex-shrink: 0; }
.itin-day__num { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-high); color: var(--text-mid); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-weight: 700; font-size: 15px; transition: background 0.2s, color 0.2s; }
.itin-day__num.is-open { background: var(--primary); color: var(--on-primary); }
.itin-day__info { flex: 1; min-width: 0; }
.itin-day__title { font-family: var(--font-sans); font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.2; }
.itin-day__date { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.itin-day__chevron { color: var(--primary); flex-shrink: 0; font-size: 24px; }
.itin-day__header:not(.is-open) .itin-day__chevron { color: var(--text-muted); }
.itin-day__body { padding: 0 20px 20px; }

/* Maps button */
.itin-maps-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface-card); color: var(--text-mid); font-family: var(--font-sans); font-size: 13px; font-weight: 700; text-decoration: none; margin-bottom: 16px; transition: background 0.15s; }
.itin-maps-btn:active { background: var(--surface-container); }

/* Timeline */
.itin-timeline { position: relative; border-left: 2px solid rgba(82,101,42,0.2); margin-left: 8px; padding-left: 24px; padding-top: 4px; display: flex; flex-direction: column; gap: 20px; }
.itin-tl-item { position: relative; }
.itin-tl-dot { position: absolute; left: -33px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-card); box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.itin-tl-dot--primary   { background: var(--tertiary-fixed); }
.itin-tl-dot--secondary { background: var(--secondary); }
.itin-tl-content { display: flex; flex-direction: column; gap: 4px; }
.itin-tl-time { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--secondary); }
.itin-tl-text { font-family: var(--font-sans); font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.itin-tl-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.itin-tl-attraction-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; }
.itin-tl-attraction-link:hover { text-decoration: underline; }

/* Drive segment */
.itin-drive { display: flex; align-items: center; gap: 12px; background: var(--surface-low); border-radius: 10px; padding: 10px 14px; margin-left: -32px; }
.itin-drive__text { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.itin-drive__route { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text); }
.itin-drive__meta { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Food recommendation */
.itin-food-card { background: rgba(82,101,42,0.05); border-left: 4px solid var(--secondary); border-radius: 0 12px 12px 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.itin-food-card__header { display: flex; align-items: center; gap: 6px; }
.itin-food-card__label { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--secondary); }
.itin-food-card__name { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.2; }
.itin-food-card__name--link { display: block; text-decoration: underline; text-underline-offset: 3px; color: var(--primary); }
.itin-food-card__location { display: flex; align-items: center; gap: 4px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--primary); }
.itin-food-card__note { font-family: var(--font-sans); font-size: 13px; font-style: italic; color: var(--text-mid); line-height: 1.5; }

/* Accommodation */
.itin-accom-section { margin-top: 20px; }
.itin-accom-label { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.itin-accom-card { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.itin-accom-card__img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.itin-accom-card__img { width: 100%; height: 100%; object-fit: cover; }
.itin-accom-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); display: flex; align-items: flex-end; padding: 16px; }
.itin-accom-card__meta-row { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; }
.itin-accom-card__type { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 3px; }
.itin-accom-card__name { font-family: var(--font-sans); font-size: 20px; font-weight: 600; color: #fff; line-height: 1.2; }
.itin-accom-card__stars { display: flex; gap: 1px; color: var(--tertiary-fixed); margin-top: 4px; }
.itin-accom-card__price-wrap { text-align: right; }
.itin-accom-card__price { font-family: var(--font-sans); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.itin-accom-card__book { display: inline-block; background: var(--primary); color: #fff; font-family: var(--font-sans); font-size: 13px; font-weight: 700; padding: 7px 18px; border-radius: 9999px; text-decoration: none; }
.itin-accom-card__no-img { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--shadow); gap: 12px; }
.itin-accom-card__type-dark { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.itin-accom-card__name-dark { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--surface); }
.itin-accom-card__desc { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.45; }
.itin-accom-card__price-dark { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--surface); margin-bottom: 6px; }
.itin-accom-card__book-dark { display: inline-block; background: var(--primary); color: #fff; font-family: var(--font-sans); font-size: 13px; font-weight: 700; padding: 7px 18px; border-radius: 9999px; text-decoration: none; }
.itin-accom-more { margin-top: 8px; display: flex; flex-direction: column; gap: 0; background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.itin-accom-more__item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 0.5px solid var(--surface-high); gap: 12px; }
.itin-accom-more__item:last-child { border-bottom: none; }
.itin-accom-more__name { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text); }
.itin-accom-more__type { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); }
.itin-accom-more__link { font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }

/* Events During Your Stay */
.itin-events-section { padding: 0 20px 8px; }
.itin-events__heading { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.itin-events__list { display: flex; flex-direction: column; gap: 10px; }
.itin-event-card { background: rgba(119,86,0,0.06); border-left: 4px solid var(--tertiary); border-radius: 0 12px 12px 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.itin-event-card__dates { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tertiary); }
.itin-event-card__name { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.2; margin: 0; }
.itin-event-card__name--link { display: block; text-decoration: underline; text-underline-offset: 3px; color: var(--tertiary); }
.itin-event-card__location { display: flex; align-items: center; gap: 4px; font-family: var(--font-sans); font-size: 13px; color: var(--text-mid); }
.itin-event-card__desc { font-family: var(--font-sans); font-size: 13px; font-style: italic; color: var(--text-mid); line-height: 1.5; margin: 0; }

/* Practical + Actions */
.itin-practical { margin: 20px 20px 0; padding: 20px; background: var(--surface-card); border-radius: 16px; border: 1px solid rgba(220,192,186,0.35); border-left: 4px solid var(--primary); }
.itin-practical__heading { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.itin-practical__item { margin-bottom: 12px; }
.itin-practical__item:last-child { margin-bottom: 0; }
.itin-practical__label { display: block; font-family: var(--font-sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--primary); margin-bottom: 3px; }
.itin-practical__item p { font-family: var(--font-sans); font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.itin-actions { padding: 24px 20px 0; display: flex; flex-direction: column; }
.itin-empty-note { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); padding: 8px 0; }

/* ── My Trips ────────────────────────────────────────────── */
.mytrips-header { padding: calc(var(--sat) + 20px) 24px 8px; }
.mytrips-heading { font-family: var(--font-sans); font-size: 28px; font-weight: 400; color: var(--text); }
.mytrips-loading { display: flex; justify-content: center; padding: 60px 0; }
.mytrips-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 32px; gap: 14px; }
.mytrips-empty__icon { width: 64px; height: 64px; background: var(--rose-pale); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--rose); margin-bottom: 4px; }
.mytrips-empty__text { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 260px; }
.mytrips-list { padding: 8px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.mytrips-card { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 0.5px solid var(--stone); border-radius: 16px; padding: 16px; cursor: pointer; transition: background 0.1s, opacity 0.2s; text-align: left; width: 100%; }
.mytrips-card:active { background: var(--parchment-2); }
.mytrips-card__body { flex: 1; min-width: 0; }
.mytrips-card__title { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.3; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mytrips-card__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.mytrips-card__tag { font-family: var(--font-sans); font-size: 11px; background: var(--parchment-2); color: var(--text-muted); padding: 3px 8px; border-radius: 6px; }
.mytrips-card__date { font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); }
.mytrips-card__right { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.mytrips-card__chevron { color: var(--stone); }
.mytrips-card__delete { background: none; border: none; cursor: pointer; color: var(--stone-mid); padding: 4px; display: flex; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.mytrips-card__delete:active { color: var(--error); background: var(--error-bg); }

/* ── Profile ─────────────────────────────────────────────── */
.profile-header { display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 32px) 24px 24px; text-align: center; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--shadow); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 26px; font-weight: 500; color: var(--parchment); margin-bottom: 12px; }
.profile-avatar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.profile-display-name { font-family: var(--font-sans); font-size: 22px; font-weight: 400; color: var(--text); margin-bottom: 2px; }
.profile-email { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.profile-edit-btn { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--stone); border-radius: 20px; padding: 5px 12px; font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: background 0.15s; }
.profile-edit-btn:active { background: var(--parchment-2); }

.profile-plan-card { margin: 0 24px 20px; background: var(--shadow); border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.profile-plan-card__label { font-family: var(--font-sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone); margin-bottom: 4px; }
.profile-plan-card__tier { font-family: var(--font-sans); font-size: 18px; font-weight: 400; color: var(--parchment); }
.profile-plan-card__gens { text-align: center; }
.profile-plan-card__gen-count { font-family: var(--font-sans); font-size: 36px; font-weight: 400; color: var(--parchment); line-height: 1; }
.profile-plan-card__gen-label { font-family: var(--font-sans); font-size: 10px; color: var(--stone); line-height: 1.3; }

.profile-section { margin-bottom: 8px; }
.profile-section__heading { font-family: var(--font-sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0 24px 8px; }
.profile-section__group { background: var(--bg-card); border-top: 0.5px solid var(--stone); border-bottom: 0.5px solid var(--stone); }
.profile-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 24px; background: none; border: none; border-bottom: 0.5px solid var(--parchment-3); cursor: pointer; text-align: left; color: var(--text); font-family: var(--font-sans); font-size: 14px; text-decoration: none; transition: background 0.15s; }
.profile-row:last-child { border-bottom: none; }
.profile-row:active { background: var(--parchment-2); }
.profile-row span { flex: 1; }
.profile-row__chevron { color: var(--stone); }

.edit-profile-modal { max-height: 90vh; overflow-y: auto; }
.edit-avatar-section { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.edit-avatar-preview { width: 64px; height: 64px; border-radius: 50%; background: var(--shadow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.edit-avatar-actions { display: flex; flex-direction: column; gap: 4px; }

.activate-success { padding-top: 8px; }
.success-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 0 24px; }
.success-state__icon { width: 60px; height: 60px; background: var(--sage-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.success-state__heading { font-family: var(--font-sans); font-size: 22px; font-weight: 400; color: var(--text); margin-bottom: 6px; }
.success-state__text { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ── Onboarding ─────────────────────────────────────────── */
.ob-screen { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.ob-slide { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; background-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.72) 100%), url('/images/onboarding/slide1.jpg'); background-size: cover; background-position: center; }
.ob-slide__content { padding: 0 28px 20px; }
.ob-heading { font-family: var(--font-sans); font-size: 26px; font-weight: 400; color: var(--parchment); line-height: 1.2; margin-bottom: 12px; }
.ob-sub { font-family: var(--font-sans); font-size: 14px; color: rgba(245,237,216,0.8); line-height: 1.65; }
.ob-footer { padding: 16px 28px calc(var(--sab) + 20px); flex-shrink: 0; }
.ob-btn { width: 100%; background: var(--parchment); color: var(--text); border: none; border-radius: 14px; padding: 16px; font-family: var(--font-sans); font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity 0.15s; }
.ob-btn:active { opacity: 0.85; }

.ob-landing { display: none; opacity: 0; transition: opacity 0.35s ease; flex: 1; flex-direction: column; align-items: center; padding: calc(var(--sat) + 60px) 28px calc(var(--sab) + 28px); background-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%), url('/images/onboarding/landing.jpg'); background-size: cover; background-position: center; min-height: 100%; }
.ob-landing__logo { margin-bottom: 28px; }
.ob-landing__text { text-align: center; }
.ob-landing__heading { font-family: var(--font-sans); font-size: 32px; font-weight: 400; color: var(--parchment); line-height: 1.2; margin-bottom: 12px; }
.ob-landing__sub { font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--stone); line-height: 1.65; }
.ob-landing__spacer { flex: 1; }
.ob-landing__actions { width: 100%; padding-top: 28px; }
.ob-landing__btn { display: block; width: 100%; padding: 16px; border-radius: 14px; font-family: var(--font-sans); font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; border: none; transition: opacity 0.15s; }
.ob-landing__btn:active { opacity: 0.85; }
.ob-landing__btn--primary { background: var(--parchment); color: var(--text); margin-bottom: 12px; }
.ob-landing__btn--secondary { background: rgba(245,237,216,0.1); color: var(--parchment); border: 1.5px solid rgba(245,237,216,0.25); margin-bottom: 16px; }
.ob-landing__legal { font-family: var(--font-sans); font-size: 11px; color: rgba(201,185,138,0.5); text-align: center; line-height: 1.6; }
.ob-landing__legal a { color: rgba(201,185,138,0.8); text-decoration: none; }

/* ── Onboarding install banner ───────────────────────────── */
.ob-install {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.ob-install__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.ob-install__btn:active { background: rgba(255,255,255,0.25); }
.ob-install__btn .material-symbols-outlined { font-size: 18px; }
.ob-install__icon { font-size: 22px; color: rgba(255,255,255,0.75); flex-shrink: 0; }
.ob-install__text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  margin: 0;
}
.ob-install__text strong { color: #fff; font-weight: 700; }
.ob-install__dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.ob-install__dismiss:active { color: rgba(255,255,255,0.9); }
.ob-install__dismiss .material-symbols-outlined { font-size: 18px; }

/* ── Home screen — Stitch ─────────────────────────────────── */
.home-screen { background: var(--surface); overflow-y: auto; }

.home-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }

.home-hero { padding: calc(var(--sat) + 28px) 20px 24px; }
.home-hero__greeting { font-family: var(--font-sans); font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.15; margin-bottom: 10px; letter-spacing: -0.01em; }
.home-hero__status { font-family: var(--font-sans); font-size: 15px; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; }
.home-hero__gens { color: var(--primary); font-weight: 700; }

.home-cta-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--on-primary); border: none; border-radius: 9999px; padding: 10px 20px; font-family: var(--font-sans); font-size: 10px; font-weight: 700; cursor: pointer; letter-spacing: 0.05em; box-shadow: 0 3px 11px rgba(184,74,74,0.3); transition: transform 0.15s, box-shadow 0.15s; }
.home-cta-btn:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(184,74,74,0.2); }

.home-section { margin-bottom: 8px; }
.home-section__header { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 20px 14px; gap: 12px; }
.home-section__heading { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.home-section__sub { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.home-section__link { display: flex; align-items: center; gap: 3px; background: none; border: none; cursor: pointer; color: var(--primary); font-family: var(--font-sans); font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; padding-top: 2px; }

/* Walking tour cards */
.home-tours-scroll { display: flex; gap: 16px; padding: 0 20px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.home-tours-scroll::-webkit-scrollbar { display: none; }

.home-tour-card { flex-shrink: 0; width: 168px; background: var(--surface-card); border-radius: 11px; box-shadow: 0 3px 14px rgba(184,74,74,0.06); border: 1px solid rgba(220,192,186,0.3); overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.home-tour-card:active { transform: scale(0.98); }
.home-tour-card--soon { opacity: 0.75; }

.home-tour-card__img-wrap { position: relative; height: 98px; overflow: hidden; background: linear-gradient(135deg, var(--stone), var(--stone-dark)); }
.home-tour-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.home-tour-card:hover .home-tour-card__img { transform: scale(1.06); }
.home-tour-card__badge { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); border-radius: 9999px; padding: 4px 10px; font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
.home-tour-card__badge--available { color: var(--secondary); }
.home-tour-card__badge--soon { color: var(--text-muted); }

.home-tour-card__body { padding: 14px 16px; }
.home-tour-card__name { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.home-tour-card__meta { display: flex; align-items: center; gap: 16px; }
.home-tour-card__meta-item { display: flex; align-items: center; gap: 4px; font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); }

/* Region grid */
.home-region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; }

.home-region-card { display: block; background: none; border: none; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden; text-align: left; }
.home-region-card:active { opacity: 0.9; }

.home-region-card__img-wrap { position: relative; height: 77px; background: linear-gradient(135deg, var(--stone) 0%, var(--stone-dark) 100%); overflow: hidden; }
.home-region-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.home-region-card:hover .home-region-card__img { transform: scale(1.05); }
.home-region-card__gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(30,20,10,0.75) 100%); }
.home-region-card__text { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 10px 10px; }
.home-region-card__name { display: block; font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.home-region-card__sub { display: block; font-family: var(--font-sans); font-size: 10px; color: rgba(255,255,255,0.75); line-height: 1.3; }


.wiz-progress { padding: 12px 20px 0; }
.wiz-progress__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wiz-progress__step { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.wiz-progress__label { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.wiz-progress__track { height: 5px; background: var(--surface-container); border-radius: 9999px; overflow: hidden; }
.wiz-progress__bar { height: 100%; background: var(--primary); border-radius: 9999px; transition: width 0.35s ease; }

.wiz-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 20px 16px; }

.wiz-footer { padding: 12px 20px calc(var(--sab) + 16px); flex-shrink: 0; }
.wiz-footer__error { font-family: var(--font-sans); font-size: 13px; color: var(--error); margin-bottom: 8px; display: none; }
.wiz-footer__error.visible { display: block; }
.wiz-footer__btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 11px 14px; background: transparent; color: var(--text); border: 1.5px solid var(--stone); border-radius: 10px; font-family: var(--font-sans); font-size: 11px; font-weight: 700; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.wiz-footer__btn:active { transform: scale(0.98); background: var(--parchment-2); }
.wiz-footer__btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Stitch dates step ─────────────────────────────────────── */
.wiz-stitch-dates { padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }

.wiz-stitch__heading-wrap { }
.wiz-stitch__h2 { font-family: var(--font-sans); font-size: 32px; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.wiz-stitch__sub { font-family: var(--font-sans); font-size: 15px; color: var(--text-mid); line-height: 1.6; }

.wiz-stitch__date-card { background: var(--surface-card); border-radius: 16px; box-shadow: 0 4px 20px rgba(184,74,74,0.06); border: 1px solid var(--border-mid); overflow: hidden; }
.wiz-stitch__date-grid { display: grid; grid-template-columns: 1fr auto 1fr; }
.wiz-stitch__date-col { padding: 16px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; position: relative; transition: background 0.15s; }
.wiz-stitch__date-col:active { background: var(--surface-low); }
.wiz-stitch__date-divider { width: 1px; background: var(--border-mid); align-self: stretch; }
.wiz-stitch__date-label { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.wiz-stitch__date-val { display: flex; align-items: center; gap: 6px; }
.wiz-stitch__cal-icon { font-size: 20px; color: var(--primary); }
.wiz-stitch__date-text { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text); }
.wiz-stitch__date-text--empty { color: var(--text-muted); font-weight: 400; }
.wiz-stitch__date-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.wiz-stitch__nights-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(184,74,74,0.05); border-top: 1px solid var(--border-mid); }
.wiz-stitch__nights-left { display: flex; align-items: center; gap: 8px; }
.wiz-stitch__moon-icon { font-size: 20px; color: var(--primary); font-variation-settings: 'FILL' 1; }
.wiz-stitch__nights-text { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--primary); }
.wiz-stitch__trip-pill { background: var(--shadow); color: var(--surface); font-family: var(--font-sans); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 9999px; }

.wiz-stitch__hint { display: flex; align-items: flex-start; gap: 10px; background: rgba(82,101,42,0.1); border: 1px solid rgba(82,101,42,0.2); padding: 14px 16px; border-radius: 14px; }
.wiz-stitch__hint-icon { font-size: 22px; color: var(--secondary); flex-shrink: 0; font-variation-settings: 'FILL' 1; }
.wiz-stitch__hint-text { font-family: var(--font-sans); font-size: 14px; color: var(--secondary); line-height: 1.55; }
.wiz-stitch__hint-text strong { color: var(--secondary); }

.wiz-stitch__event-card { position: relative; height: 180px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--shadow-mid) 0%, var(--shadow) 100%); }
.wiz-stitch__event-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wiz-stitch__event-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.wiz-stitch__event-top { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.8); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.wiz-stitch__event-title { font-family: var(--font-sans); font-size: 20px; font-weight: 600; color: #fff; line-height: 1.25; }

/* ── Itinerary save bar (sits below top-nav) ─────────────── */
.itin-save-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px 4px;
  background: var(--surface);
  flex-shrink: 0;
}

/* ── Home hero image ─────────────────────────────────────── */
.home-hero-img-wrap {
  display: block;
  position: relative;
  margin: 0 20px 24px;
  border-radius: 11px;
  overflow: hidden;
  height: 140px;
  background: linear-gradient(135deg, var(--stone) 0%, var(--stone-dark) 100%);
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: calc(100% - 40px);
}

.home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Auth — missing classes ──────────────────────────────── */

/* Back button (forgot-password screen) */
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.auth__back:active { color: var(--text); }

/* Forgot password link */
.auth__forgot {
  display: block;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: -4px;
  margin-bottom: 20px;
  transition: opacity 0.15s;
}
.auth__forgot:active { opacity: 0.7; }

/* Footer text row */
.auth__footer-text {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Footer inline link button */
.auth__footer-link {
  color: var(--text-mid);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.auth__footer-link:active { opacity: 0.7; }

/* Social sign-in buttons (Google / Apple — disabled, "Coming soon") */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s;
  text-align: left;
}
.social-btn:last-of-type { margin-bottom: 0; }
.social-btn:disabled     { opacity: 0.5; cursor: not-allowed; }
.social-btn:not(:disabled):active { background: var(--parchment-2); }

.social-btn__badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--parchment-2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Wizard — step wrapper (steps 2–5 heading+content) ──── */
.wiz-step-wrap {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Spinner size variant ─────────────────────────────────── */
.spinner--lg { width: 28px; height: 28px; border-width: 3px; }

/* ── Shop — plan listing ─────────────────────────────────── */

.shop-hero {
  padding: calc(var(--sat) + 28px) 24px 4px;
  text-align: center;
}

.shop-hero__title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.shop-hero__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.shop-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-sans);
}

.shop-error {
  padding: 40px 24px;
  text-align: center;
}

.shop-error p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}

.shop-error .btn { max-width: 180px; margin: 16px auto 0; }

.shop-plans {
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-plan {
  background: var(--surface-card);
  border: 1.5px solid var(--border-mid);
  border-radius: 16px;
  padding: 24px 20px 20px;
  position: relative;
}

.shop-plan--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(184,74,74,0.12);
}

.shop-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

.shop-plan__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shop-plan__name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.shop-plan__price { display: flex; align-items: baseline; gap: 2px; }

.shop-plan__amount {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.shop-plan__period { font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); }

.shop-plan__desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.shop-plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.shop-plan__features li {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.shop-plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

/* ── Plan detail ──────────────────────────────────────────── */

.plan-detail { padding: 28px 24px 48px; }

.plan-detail__badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.plan-detail__name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-detail__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 18px; }

.plan-detail__amount {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.plan-detail__period { font-family: var(--font-sans); font-size: 16px; color: var(--text-muted); }

.plan-detail__desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.plan-detail__features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }

.plan-detail__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-mid);
}

.plan-detail__feature .material-symbols-outlined {
  font-size: 20px;
  color: var(--secondary);
  font-variation-settings: 'FILL' 1;
  flex-shrink: 0;
}

.plan-detail__actions { display: flex; flex-direction: column; gap: 12px; }

/* ── Cart / basket ───────────────────────────────────────── */

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 14px;
  padding: 40px 32px;
  text-align: center;
}

.cart-empty__icon { font-size: 48px; color: var(--border); }

.cart-empty__text { font-family: var(--font-sans); font-size: 15px; color: var(--text-muted); }

.cart-empty .btn { max-width: 200px; }

.cart-wrap { padding: 24px 20px 48px; }

.cart__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-mid);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.cart-item__info { flex: 1; min-width: 0; }

.cart-item__name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.cart-item__period { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); }

.cart-item__price {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.cart-item__remove:hover { color: var(--error); background: var(--error-bg); }
.cart-item__remove .material-symbols-outlined { font-size: 20px; }

.cart-summary { background: var(--surface-low); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}

.cart-summary__row--total {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border-mid);
}

.cart-trust {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  margin: 8px 0 4px;
}

.cart-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 18px;
}

/* ── Checkout ─────────────────────────────────────────────── */

.checkout-wrap { padding: 24px 20px 48px; }

.checkout__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-low);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.checkout-summary__plan { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--text); }

.checkout-summary__price { font-family: var(--font-sans); font-size: 18px; font-weight: 700; color: var(--primary); }

.checkout-summary__price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }

.checkout-stripe-wrap { margin-bottom: 20px; }

#stripe-payment-element { margin-bottom: 20px; }

/* ── Order confirmation ─────────────────────────────────────── */

.confirmation-wrap {
  text-align: center;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.confirmation-icon--success { background: var(--success-bg); color: var(--success); }
.confirmation-icon--error   { background: var(--error-bg);   color: var(--error);   }

.confirmation-icon .material-symbols-outlined {
  font-size: 40px;
  font-variation-settings: 'FILL' 1;
}

.confirmation__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}

.confirmation__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

/* ── Home hero — blog text overlay ────────────────────────── */
.home-hero-img-wrap:active { opacity: 0.9; }

.home-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(30,20,10,0.75) 100%);
}

.home-hero__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px 14px;
}

.home-hero__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.home-hero__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
}

/* ── Blog post screen ──────────────────────────────────────── */
.blog-post-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 14px;
}

.blog-post-loading p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}

.blog-post-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  gap: 14px;
  text-align: center;
}

.blog-post-error__icon {
  font-size: 40px;
  color: var(--text-muted);
}

.blog-post-error p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 280px;
}

.blog-post__hero {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--surface-high);
}

.blog-post__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post__body {
  padding: 24px 20px 48px;
}

.blog-post__date {
  margin-bottom: 10px;
}

.blog-post__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}

.blog-post__content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.blog-post__content p        { margin-bottom: 16px; }
.blog-post__content p:empty  { display: none; }

.blog-post__content h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.blog-post__content h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

.blog-post__content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0 16px;
  display: block;
}

.blog-post__content figure    { margin: 20px 0; }
.blog-post__content figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.blog-post__content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post__content ul,
.blog-post__content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.blog-post__content li { margin-bottom: 6px; }

.blog-post__content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 16px;
  color: var(--text-mid);
  font-style: italic;
  margin: 20px 0;
}

.blog-post__content iframe,
.blog-post__content video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 10px;
  margin: 8px 0 16px;
  display: block;
}

.blog-post__content .wp-block-embed {
  margin: 20px 0;
}

.blog-post__content .wp-block-embed__wrapper {
  position: relative;
}

.blog-post__content .wp-block-embed__wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* ── Top bar title (used by explore map view) ───────────────── */
.top-bar__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-left: 4px;
}

/* ── Explore — category picker ──────────────────────────────── */
.explore-cats {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 40px;
}

.explore-cats__heading-wrap {
  margin-bottom: 28px;
}

.explore-cats__h1 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.explore-cats__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.explore-cats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.explore-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}


.explore-cat-card:active {
  transform: scale(0.97);
}

.explore-cat-card__icon {
  width: 48px;
  height: 48px;
  color: var(--text);
}

.explore-cat-card__label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.explore-cat-card__sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Explore — map view ─────────────────────────────────────── */
.explore-map-screen {
  background: var(--parchment);
}

.explore-map-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.explore-map {
  width: 100%;
  height: 100%;
}

.explore-map__overlay {
  position: absolute;
  inset: 0;
  background: rgba(249,247,242,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
}

.explore-map__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.explore-map__overlay-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}

.explore-map__error-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Explore — manual location panel ───────────────────────── */
.explore-manual {
  position: absolute;
  inset: 0;
  background: rgba(249,247,242,0.97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  z-index: 20;
}

.explore-manual__inner {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.explore-manual__icon {
  font-size: 40px;
  color: var(--text-muted);
}

.explore-manual__text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.explore-manual__btn {
  width: 100%;
  margin-top: 4px;
}

/* ── Explore — detail sheet ─────────────────────────────────── */
.explore-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 50;
}

.explore-detail-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-card);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 51;
  max-height: 60%;
  overflow-y: auto;
  padding-bottom: var(--sab);
}

.explore-detail-sheet.is-open {
  transform: translateY(0);
}

.explore-detail__handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}

.explore-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.explore-detail__header-text { flex: 1; min-width: 0; }

.explore-detail__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
}

.explore-detail__town {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.explore-detail__dist {
  color: var(--text-muted);
}

.explore-detail__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.explore-detail__close .material-symbols-outlined { font-size: 18px; }

.explore-detail__desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  padding: 12px 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-detail__link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 16px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.explore-detail__link .material-symbols-outlined { font-size: 16px; }

.explore-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 16px 20px;
}

.explore-detail__link--secondary { color: var(--text-muted); }

.explore-event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
}

.explore-event-card__link--secondary { color: var(--text-muted); }

/* ── Explore — events list view ─────────────────────────────── */
.explore-events-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.explore-events-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explore-event-card {
  background: var(--surface-card);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explore-event-card__dates {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.explore-event-card__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.explore-event-card__town {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}

.explore-event-card__desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.explore-event-card__link .material-symbols-outlined { font-size: 14px; }

.explore-events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 32px;
  text-align: center;
  color: var(--text-muted);
}

.explore-events-empty .material-symbols-outlined { font-size: 40px; }

.explore-events-empty p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Privacy Policy screen ──────────────────────────────── */
.privacy-scroll { padding-bottom: 48px; }

.privacy-body {
  padding: 24px 24px 0;
}

.privacy-updated {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--stone);
  margin: 0 0 24px;
}

.privacy-section {
  margin-bottom: 28px;
}

.privacy-section h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--brown-dark);
  margin: 0 0 10px;
}

.privacy-section p,
.privacy-section li {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 8px;
}

.privacy-section ul {
  padding-left: 20px;
  margin: 0 0 8px;
}

.privacy-section a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Profile danger row ─────────────────────────────────── */
.profile-row--danger { color: #C0392B; }
.profile-row--danger .profile-row__chevron { color: #C0392B; }

/* ── Auth inline link (privacy in signup checkbox) ──────── */
.auth__inline-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

