/* ============================================================
   Generator Euro Pass — styles
   Palette:  Magenta #E6007E · Ink #0E0E10 · Paper #F6F5F3
             Signal Yellow #FFE14D · Soft Pink #FFE9F4
   Type:     Archivo (display) · Inter (body) · Space Mono (tokens)
   ============================================================ */

:root {
  --magenta: #E6007E;
  --magenta-deep: #B00062;
  --magenta-glow: #FF3DA5;
  --ink: #0E0E10;
  --ink-70: #43434a;
  --ink-45: #7c7c85;
  --paper: #f6f5f3;
  --white: #ffffff;
  --teal: #43c0b9;
  --teal-deep: #2f9c96;
  --soft-pink: #ffe9f4;
  --line: #e7e5e1;
  --line-strong: #d8d5cf;
  --green: #00a86b;

  --radius: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 2px 8px rgba(14,14,16,.06);
  --shadow-md: 0 14px 34px rgba(14,14,16,.12);
  --shadow-pass: 0 22px 60px rgba(230,0,126,.30);

  --font-display: 'Saira SemiCondensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --wrap: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.94;
}

.mono { font-family: var(--font-mono); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--magenta-glow); outline-offset: 3px; }

.btn--primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); box-shadow: 0 8px 22px rgba(67,192,185,.4); }

.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ink:hover { background: #26262b; border-color: #26262b; }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--teal { background: var(--teal); border-color: var(--ink); color: var(--ink); }
.btn--teal:hover { box-shadow: 0 10px 24px rgba(67,192,185,.5); }

.btn--lg { padding: 13px 24px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.link-underline { border-bottom: 2px solid var(--magenta); padding-bottom: 1px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,243,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0; text-transform: lowercase; color: var(--ink); }
.brand b { color: var(--magenta); }
.brand .brand-dot { color: var(--magenta); }

/* The Generator symbol, recoloured via CSS mask so one asset works on any
   background. Colour follows `currentColor` of the wrapper. */
.gen-mark {
  display: inline-block;
  width: var(--mark-size, 30px);
  aspect-ratio: 77 / 64;
  background-color: currentColor;
  -webkit-mask: url(../assets/genlogo.svg) center / contain no-repeat;
  mask: url(../assets/genlogo.svg) center / contain no-repeat;
  flex-shrink: 0;
}
.brand .gen-mark { color: var(--magenta); }
.on-dark .gen-mark, .gen-mark--light { color: var(--white); }
/* keep the mark white on dark surfaces (beats `.brand .gen-mark`) */
.site-footer .brand .gen-mark, .auth-aside .brand .gen-mark, .pass-card .gen-mark { color: var(--white); }

/* symbol-only variant (no "GENERATOR" wordmark) — used in the header */
.gen-mark--icon {
  -webkit-mask-image: url(../assets/genlogo-mark.svg);
  mask-image: url(../assets/genlogo-mark.svg);
  aspect-ratio: 40 / 41;
}
/* header logo fills the nav height for clarity */
.site-header .brand .gen-mark { height: 52px; width: auto; }

/* ---------- Icons ---------- */
.ico {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em;
  flex-shrink: 0;
}
.ico--inline { vertical-align: -0.18em; }

/* flag chips — real SVG flags (emoji flags don't render on Windows) */
.flag-ico {
  display: inline-block; width: 26px; aspect-ratio: 3 / 2;
  border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.28);
  line-height: 0; vertical-align: middle;
}
.flag-ico svg { width: 100%; height: 100%; display: block; }

.vc-ico { color: var(--magenta); }
.value-card.dark .vc-ico { color: var(--teal); }
.c-ico { color: var(--magenta); }
.mock-note .ico, .prefill-note .ico { color: var(--magenta-deep); width: 1.3em; height: 1.3em; }

.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a {
  padding: 8px 14px; border-radius: 2px; font-weight: 600; font-size: 14px; color: var(--ink-70);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--soft-pink); color: var(--magenta-deep); }
.nav a.active { background: var(--ink); color: var(--white); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* token balance chip in the header */
.token-chip {
  display: none; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--ink);
  border-radius: 2px; padding: 6px 8px 6px 14px; font-weight: 700; font-size: 14px;
}
.token-chip.show { display: inline-flex; }
.token-chip .tok-coin {
  display: inline-flex; align-items: center;
  color: var(--teal); font-size: 20px;
}
.token-chip .tok-num { font-family: var(--font-mono); color: var(--magenta-deep); }

/* ---------- View machinery ---------- */
.view { display: none; }
.view.active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* vertical-only longhands so this never overrides .wrap's horizontal padding
   when combined as `.wrap.section` (equal specificity, source order) */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--magenta-deep); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); }

/* ============================================================
   HERO / LANDING
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(230,0,126,.55), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(124,77,255,.35), transparent 60%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.3); border-radius: 2px; padding: 7px 14px; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(44px, 8vw, 104px); }
.hero h1 .em { color: var(--magenta-glow); }
.hero h1 .highlight { position: relative; white-space: nowrap; }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.78); max-width: 44ch; margin: 24px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stats .stat .n { font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.hero-stats .stat .l { font-size: 13px; color: rgba(255,255,255,.6); }

/* ============================================================
   THE PASS CARD — signature element
   ============================================================ */
.pass-card {
  position: relative;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-deep) 60%, #6a0140 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-pass);
  overflow: hidden;
  aspect-ratio: 1.6 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pass-card::after {   /* glossy sheen */
  content: ''; position: absolute; top: -40%; left: -20%; width: 80%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  transform: rotate(18deg);
}
.pass-card .pc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.pass-card .pc-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.pass-card .pc-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
.pass-card .pc-chip { width: 42px; height: 30px; border-radius: 3px; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); position: relative; }
.pass-card .pc-chip::before { content: ''; position: absolute; inset: 6px 8px; border: 1px solid rgba(0,0,0,.25); border-radius: 3px; }

.pass-card .pc-tokens { position: relative; z-index: 1; }
.pass-card .pc-tokens .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
.pass-card .pc-tokens .big { font-family: var(--font-mono); font-weight: 700; font-size: 46px; line-height: 1; margin-top: 4px; }
.pass-card .pc-tokens .big small { font-size: 20px; opacity: .7; }

.pass-card .pc-foot { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.pass-card .pc-code { font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; }
.pass-card .pc-name { font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }

.pass-card.floaty { transform: rotate(-4deg); }
.pass-card.floaty:hover { transform: rotate(-2deg) translateY(-6px); transition: transform .4s var(--ease); }

/* token meter (dots) */
.token-meter { display: flex; gap: 5px; flex-wrap: wrap; }
.token-meter .pip {
  width: 15px; height: 15px; border-radius: 2px;
  background: var(--teal); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12);
  transition: transform .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
}
.token-meter .pip.spent { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.token-meter .pip.pop { animation: pip-pop .4s var(--ease); }
@keyframes pip-pop { 0%{ transform: scale(1);} 40%{ transform: scale(1.5);} 100%{ transform: scale(1);} }

/* ---------- "How it works" strip ---------- */
.how { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-step { position: relative; padding-top: 20px; border-top: 3px solid var(--ink); }
.how-step .num { font-family: var(--font-mono); font-size: 13px; color: var(--magenta-deep); letter-spacing: .1em; }
.how-step h3 { font-size: 22px; margin: 10px 0 8px; }
.how-step p { color: var(--ink-70); margin: 0; font-size: 15px; }

/* ---------- Value / gift split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.value-card.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.value-card .vc-ico { font-size: 30px; }
.value-card h3 { font-size: 24px; }
.value-card p { color: var(--ink-70); margin: 0; }
.value-card.dark p { color: rgba(255,255,255,.72); }
.value-card ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-70); }
.value-card.dark ul { color: rgba(255,255,255,.8); }
.value-card li { margin-bottom: 6px; }

/* ============================================================
   GENERIC PAGE + CARD SURFACES
   ============================================================ */
.page-head { padding: 48px 0 8px; }
.page-head .section-title { font-size: clamp(30px, 5vw, 52px); }
.page-head p { color: var(--ink-70); font-size: 17px; max-width: 56ch; margin: 14px 0 0; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-45); font-family: var(--font-mono); }
.crumbs button { background: none; border: none; color: var(--ink-45); padding: 0; font: inherit; }
.crumbs button:hover { color: var(--magenta-deep); }
.crumbs .sep { opacity: .5; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 10px; margin: 6px 0 34px; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 10px; }
.stepper .bullet {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  border: 2px solid var(--line-strong); color: var(--ink-45); background: var(--white);
}
.stepper .step.done .bullet { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stepper .step.current .bullet { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.stepper .lbl { font-size: 13px; font-weight: 600; color: var(--ink-45); }
.stepper .step.current .lbl, .stepper .step.done .lbl { color: var(--ink); }
.stepper .bar { flex: 1; height: 2px; background: var(--line-strong); min-width: 20px; }

/* ---------- Buy layout ---------- */
.buy-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 34px; align-items: start; }
@media (max-width: 900px){ .buy-grid { grid-template-columns: 1fr; } }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice {
  border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 22px; background: var(--white);
  cursor: pointer; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.choice.selected { border-color: var(--magenta); box-shadow: 0 0 0 4px var(--soft-pink); }
.choice .c-ico { font-size: 26px; }
.choice h4 { font-size: 19px; }
.choice p { margin: 0; font-size: 14px; color: var(--ink-70); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 2px solid var(--line-strong); border-radius: 3px;
  font-family: inherit; font-size: 15px; background: var(--white); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--soft-pink);
}
.field .hint { font-size: 12px; color: var(--ink-45); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.mock-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-70);
  background: var(--soft-pink); border-radius: 3px; padding: 12px 14px; margin-top: 4px;
}
.mock-note b { color: var(--magenta-deep); }

/* order summary */
.summary { position: sticky; top: 96px; }
.summary .sum-body { padding: 24px; }
.summary h3 { font-size: 20px; margin-bottom: 16px; }
.sum-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.sum-line .k { color: var(--ink-70); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 6px; }
.sum-total .k { font-weight: 700; }
.sum-total .v { font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.sum-tokens { display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); border-radius: 3px; padding: 12px 14px; margin: 16px 0; font-size: 14px; }
.sum-tokens .st-num { font-family: var(--font-mono); color: var(--teal); font-size: 20px; font-weight: 700; }

/* ============================================================
   LOGIN
   ============================================================ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
/* On narrow screens the panel stacks above the form (a richer intro than a
   bare form). Trim its desktop 56px padding so it sits well on a phone. */
/* On narrow screens the panel stacks above the form (a richer intro than a
   bare form). Trim its desktop 56px padding so it sits well on a phone.
   Qualified with .auth-wrap to beat the base .auth-aside rule declared below,
   since media queries add no specificity and it appears later in source. */
@media (max-width: 820px){
  .auth-wrap { grid-template-columns: 1fr; min-height: 0; }
  .auth-wrap .auth-aside { padding: 40px 24px; gap: 28px; justify-content: flex-start; }
  .auth-wrap .auth-aside h2 { font-size: 34px; }
}
.auth-aside { background: var(--ink); color: var(--white); position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 20%, rgba(230,0,126,.55), transparent 60%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { font-size: 40px; margin-bottom: 12px; }
.auth-aside p { color: rgba(255,255,255,.75); max-width: 38ch; }

.auth-form { padding: 56px; display: flex; align-items: center; }
.auth-form .inner { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-form h2 { font-size: 34px; margin-bottom: 6px; }
.auth-form .sub { color: var(--ink-70); margin-bottom: 28px; }

.prefill-note { display: flex; gap: 10px; align-items: center; background: var(--soft-pink); border-radius: 3px; padding: 12px 14px; font-size: 13px; margin-bottom: 22px; }
.prefill-note b { color: var(--magenta-deep); }

.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-45); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   WALLET
   ============================================================ */
.wallet-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
@media (max-width: 900px){ .wallet-grid { grid-template-columns: 1fr; } }

.wallet-pass-col { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.wallet-pass-col .pass-card { aspect-ratio: 1.6/1; }

.balance-line { display: flex; align-items: baseline; justify-content: space-between; }
.balance-line .big { font-family: var(--font-mono); font-weight: 700; font-size: 40px; }
.balance-line .big small { font-size: 18px; color: var(--ink-45); }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.stat-box { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 16px; text-align: center; }
.stat-box .n { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.stat-box .l { font-size: 12px; color: var(--ink-45); }

.booking-item { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); margin-bottom: 12px; }
.booking-item .bi-thumb { width: 58px; height: 58px; border-radius: 3px; flex-shrink: 0; }
.booking-item .bi-main { flex: 1; min-width: 0; }
.booking-item .bi-city { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.booking-item .bi-meta { font-size: 13px; color: var(--ink-70); }
.booking-item .bi-tok { font-family: var(--font-mono); font-weight: 700; color: var(--magenta-deep); text-align: right; }
.booking-item .bi-tok small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-45); font-size: 11px; }
.booking-item .bi-remove {
  flex-shrink: 0; display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; font-size: 17px;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--white); color: var(--ink-45);
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.booking-item .bi-remove:hover { color: #c81e4a; border-color: #c81e4a; background: #fff0f3; transform: translateY(-1px); }
.booking-item .bi-remove:focus-visible { outline: 3px solid var(--magenta-glow); outline-offset: 2px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-45); }
.empty-state .es-ico { font-size: 40px; margin-bottom: 10px; }

/* ============================================================
   EXPLORE — property grid
   ============================================================ */
.explore-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input { width: 100%; padding: 13px 15px 13px 42px; border: 2px solid var(--line-strong); border-radius: 2px; font-size: 15px; font-family: inherit; }
.search-box input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--soft-pink); }
.search-box .s-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--ink-45); line-height: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .card-grid { grid-template-columns: 1fr; } }

.prop-card {
  border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prop-poster {
  position: relative; aspect-ratio: 4/3; display: flex; align-items: flex-end; padding: 16px;
  color: var(--white); overflow: hidden;
}
.prop-poster .watermark {
  position: absolute; right: -6px; bottom: -18px; font-family: var(--font-display); font-weight: 800;
  font-size: 96px; text-transform: uppercase; color: rgba(255,255,255,.14); line-height: .8; letter-spacing: -.04em;
  pointer-events: none;
}
.prop-poster .flag { position: absolute; top: 14px; left: 14px; font-size: 22px; }
.prop-poster .rate-badge {
  position: absolute; top: 12px; right: 12px; background: rgba(14,14,16,.55); backdrop-filter: blur(4px);
  border-radius: 2px; padding: 5px 10px; font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.prop-poster .p-city { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: -.02em; }
.prop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prop-body .p-area { font-size: 13px; color: var(--ink-45); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.prop-body .p-blurb { font-size: 14px; color: var(--ink-70); flex: 1; }
.prop-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
.prop-foot .from { font-size: 13px; color: var(--ink-70); }
.prop-foot .from b { font-family: var(--font-mono); color: var(--magenta-deep); font-size: 15px; }

/* ============================================================
   PROPERTY DETAIL
   ============================================================ */
.prop-hero { border-radius: var(--radius-lg); overflow: hidden; position: relative; color: var(--white); min-height: 300px; display: flex; align-items: flex-end; padding: 34px; }
.prop-hero .watermark { position: absolute; right: -10px; bottom: -30px; font-family: var(--font-display); font-weight: 800; font-size: 210px; color: rgba(255,255,255,.12); text-transform: uppercase; line-height: .7; letter-spacing: -.05em; }
.prop-hero .ph-inner { position: relative; z-index: 1; }
.prop-hero .ph-flag { font-size: 30px; }
.prop-hero h1 { font-size: clamp(40px, 7vw, 76px); text-transform: uppercase; letter-spacing: -.02em; }
.prop-hero .ph-area { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin-top: 8px; opacity: .9; }

.detail-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 34px; align-items: start; margin-top: 30px; }
@media (max-width: 900px){ .detail-grid { grid-template-columns: 1fr; } }

/* date picker */
.datebar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.datebar .field { margin: 0; }
.nights-badge { background: var(--soft-pink); color: var(--magenta-deep); border-radius: 3px; padding: 13px 16px; font-family: var(--font-mono); font-weight: 700; }

.room {
  display: flex; gap: 18px; align-items: center; padding: 20px; border: 2px solid var(--line-strong);
  border-radius: var(--radius); background: var(--white); margin-bottom: 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.room.selected { border-color: var(--magenta); box-shadow: 0 0 0 4px var(--soft-pink); }
.room.soldout { opacity: .55; }
.room .r-ico { width: 54px; height: 54px; border-radius: 3px; background: var(--soft-pink); display: grid; place-items: center; font-size: 26px; color: var(--magenta); flex-shrink: 0; }
.room .r-main { flex: 1; min-width: 0; }
.room .r-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.room .r-desc { font-size: 13px; color: var(--ink-70); }
.room .r-cash { font-size: 12px; color: var(--ink-45); margin-top: 3px; }
.room .r-price { text-align: right; flex-shrink: 0; }
.room .r-tok { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--magenta-deep); }
.room .r-tok small { font-family: var(--font-body); font-weight: 400; color: var(--ink-45); font-size: 12px; }
.room .r-btn { margin-top: 8px; }
.soldout-tag { font-family: var(--font-mono); font-size: 12px; color: var(--ink-45); text-transform: uppercase; letter-spacing: .08em; }

/* booking rail */
.book-rail { position: sticky; top: 96px; padding: 24px; }
.book-rail h3 { font-size: 20px; margin-bottom: 4px; }
.book-rail .br-city { color: var(--ink-45); font-size: 14px; margin-bottom: 18px; }
.br-line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.br-line .k { color: var(--ink-70); }
.br-cost { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; padding: 16px; background: var(--ink); color: var(--white); border-radius: 3px; }
.br-cost .lbl { font-size: 13px; color: rgba(255,255,255,.7); }
.br-cost .amt { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--teal); }
.br-cost .amt small { font-size: 14px; opacity: .8; }
.br-balance { font-size: 13px; color: var(--ink-70); text-align: center; }
.br-balance b { color: var(--magenta-deep); font-family: var(--font-mono); }
.br-warn { background: #fff3cd; color: #8a6d00; border-radius: 3px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }

/* ============================================================
   CONFIRMATION
   ============================================================ */
.confirm { text-align: center; max-width: 620px; margin: 0 auto; padding: 56px 0; }
.confirm .tick {
  width: 84px; height: 84px; border-radius: 50%; background: var(--magenta); color: var(--white);
  display: grid; place-items: center; font-size: 42px; margin: 0 auto 24px; box-shadow: var(--shadow-pass);
  animation: pop-in .5s var(--ease);
}
@keyframes pop-in { 0%{ transform: scale(.4); opacity: 0; } 60%{ transform: scale(1.1); } 100%{ transform: scale(1); opacity: 1; } }
.confirm h1 { font-size: clamp(34px, 6vw, 56px); }
.confirm .c-sub { color: var(--ink-70); font-size: 18px; margin: 14px 0 30px; }
.confirm-card { text-align: left; padding: 24px; margin: 0 auto 26px; max-width: 460px; }
.confirm-card .cc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.confirm-card .cc-row:last-child { border-bottom: none; }
.confirm-card .cc-row .k { color: var(--ink-70); }
.confirm-card .cc-row .v { font-weight: 600; }
.confirm-card .cc-row .v.mono { font-family: var(--font-mono); color: var(--magenta-deep); }
.confirm-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.gift-preview { background: linear-gradient(135deg, var(--magenta), var(--magenta-deep)); color: var(--white); border-radius: var(--radius); padding: 26px; text-align: left; margin: 0 auto 26px; max-width: 460px; }
.gift-preview .gp-to { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.gift-preview .gp-msg { font-size: 17px; margin: 10px 0; font-style: italic; }
.gift-preview .gp-from { font-size: 14px; opacity: .9; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--ink); color: var(--white); padding: 13px 20px; border-radius: 2px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  animation: toast-in .3s var(--ease);
}
.toast .t-tok { font-family: var(--font-mono); color: var(--teal); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 44px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { color: var(--white); }
.site-footer .disclaimer { font-size: 12px; max-width: 46ch; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px){
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .how-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 620px){
  .choice-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .auth-form { padding: 32px 20px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
}
/* Room rows: on narrow phones let the price + CTA wrap to a full-width line
   under the name, rather than squeezing three columns into ~330px. */
@media (max-width: 560px){
  .room { flex-wrap: wrap; gap: 12px 14px; }
  .room .r-ico { width: 46px; height: 46px; font-size: 22px; }
  .room .r-main { flex: 1 1 140px; }
  .room .r-price {
    flex: 1 1 100%; text-align: left;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--line);
  }
  .room .r-btn { margin-top: 0; }
  /* keep the removed-stay row from crowding once it gains a 4th control */
  .booking-item { gap: 12px; padding: 14px; }
  .booking-item .bi-thumb { width: 48px; height: 48px; }
}

/* Accessibility: honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
