/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #1a1a28;
  --accent:  #d94f3a;
  --text:    #1a1a1a;
  --muted:   #6b6b6b;
  --border:  #e5e0da;
  --bg:      #ffffff;
  --bg-soft: #f7f5f2;
  --radius:  16px;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: #0d2247; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--sans); cursor: pointer; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 0 48px; height: 72px; gap: 16px;
  overflow: hidden;
}
#navAuthWrap { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; overflow: hidden; }
#navAuthWrap .nav-desktop { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.1); border-radius: 40px; padding: 6px 6px 6px 18px; }
#navAuthWrap .nav-mobile-btn { display: none; position: relative; }
.nav-dropdown {
  display: none; position: fixed; top: 60px; right: 16px;
  background: #1a1a28; border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: 6px; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 200;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a, .nav-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 500; cursor: pointer;
  background: none; border: none; border-radius: 8px;
  font-family: inherit; text-decoration: none; transition: background .15s;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: rgba(255,255,255,.08); }
.nav-dropdown .nav-dd-divider { height: 1px; background: rgba(255,255,255,.1); margin: 4px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-icon { font-size: 16px; color: var(--accent); }
.logo-text { font-family: var(--serif); font-size: 15px; font-weight: 600; color: #fff; }
.logo-wordmark { font-family: var(--serif); font-size: 30px; font-weight: 700; color: #0d2247; letter-spacing: -.02em; }
.logo-nu { color: #5e17eb; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: rgba(0,0,0,.6); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: #000; }
.nav-back-btn { color: rgba(0,0,0,.6); font-size: 14px; font-weight: 500; transition: color .2s; margin-left: auto; }
.nav-back-btn:hover { color: #000; }
.nav-auth-btn {
  background: rgba(0,0,0,.06); color: #1a1a1a;
  border: 1px solid rgba(0,0,0,.12); border-radius: 20px;
  padding: 8px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.nav-auth-btn:hover { background: #0d2247; color: #fff; border-color: #0d2247; }
.nav-auth-logout {
  background: transparent; color: rgba(0,0,0,.45);
  border: none; border-radius: 20px;
  padding: 8px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: color .15s;
}
.nav-auth-logout:hover { color: #c0392b; }
.nav-exit, .nav-link-plain { color: rgba(0,0,0,.6); font-size: 14px; transition: color .2s; }
.nav-exit:hover, .nav-link-plain:hover { color: #000; }
.lang-toggle {
  background: rgba(0,0,0,.06); color: #1a1a1a; border: 1px solid rgba(0,0,0,.12);
  border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .2s; white-space: nowrap; margin-left: auto;
}
.lang-toggle:hover { background: rgba(0,0,0,.12); }

/* ===== TYPOGRAPHY HELPERS ===== */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.center { text-align: center; }
em { font-style: italic; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; letter-spacing: -.01em; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff; border: none;
  border-radius: 50px; padding: 13px 28px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #2d2d3f; transform: translateY(-1px); }
.btn-primary.btn-large { padding: 16px 36px; font-size: 16px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 12px 26px; font-size: 14px; font-weight: 500;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--dark); background: var(--bg-soft); }
.btn-white {
  display: inline-flex; align-items: center;
  background: #fff; color: var(--dark); border: none;
  border-radius: 50px; padding: 16px 36px;
  font-size: 16px; font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-white:hover { background: #f0ece8; transform: translateY(-1px); }

/* ===== HOMEPAGE ===== */

/* Hero */
.home-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.home-hero-image {
  position: absolute; inset: 0; z-index: 0;
  background: #0d2247;
}
.home-hero-image img { display: none; }
.home-hero-image::after { display: none; }
.home-hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 48px 80px 80px;
}
.home-hero-content h1 {
  font-size: clamp(44px, 5.5vw, 72px); font-weight: 700;
  color: #fff; margin-bottom: 24px;
}
.home-hero-content h1 em { color: var(--accent); }
.hero-slogan {
  font-size: clamp(42px, 5vw, 76px) !important;
  font-weight: 700; line-height: 1.05 !important;
  letter-spacing: -.02em; color: #fff; margin-bottom: 32px !important;
}
.hero-slogan { position: relative; z-index: 1; }
.hero-slogan em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.75); max-width: 440px; line-height: 1.7; margin-bottom: 36px; }
.home-hero-content .eyebrow { color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.home-hero-content .hero-quiz-link { color: rgba(255,255,255,.65); font-size: 16px; }
.home-hero-content .hero-quiz-link a { color: #fff; font-weight: 600; text-decoration: underline; }
.home-hero-content .free-input { background: rgba(255,255,255,.95); }

/* Hero text wrapper — contains eyebrow → city select */
.hero-text-wrap {
  position: relative;
  margin-bottom: 24px;
}

/* Hero background image (square) */
.hero-bg-img {
  position: absolute;
  inset: -16px;
  border-radius: 20px;
  overflow: hidden;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
}
.hero-bg-img img { width: 100%; height: 100%; object-fit: cover; }

/* Hero right panel */
.hero-right-panel { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 60px 60px 60px 40px; }

/* ── Nearest widget (3-step flow) ── */
.nearest-widget {
  background: rgba(255,255,255,.1); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 24px;
  padding: 26px; width: 100%; max-width: 480px;
  transform: translateZ(0);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

/* Step wrapper */
.nw-step { animation: nwFadeIn .22s ease; }
@keyframes nwFadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }

/* ── Step 1 ── */
.nw-s1-top { text-align: center; margin-bottom: 20px; }
.nw-brand-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 4px; letter-spacing: -.3px; }
.nw-brand-sub { font-size: 11px; color: rgba(255,255,255,.45); margin: 0; text-transform: uppercase; letter-spacing: .07em; }

/* Search input */
.nw-search-wrap { position: relative; margin-bottom: 14px; }
.nw-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .45; pointer-events: none; }
.nw-input {
  width: 100%; padding: 11px 14px 11px 38px; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1);
  color: #fff; font-size: 14px; font-family: var(--sans); outline: none;
  transition: border-color .2s; box-sizing: border-box;
}
.nw-input::placeholder { color: rgba(255,255,255,.38); }
.nw-input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.14); }

/* Category pills — 2-col grid of colored buttons */
.nw-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.nw-pill {
  padding: 13px 10px; border-radius: 50px; border: none;
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: filter .15s, transform .15s; font-family: var(--sans);
  text-align: center; letter-spacing: .01em;
}
.nw-pill:hover { filter: brightness(1.12); transform: translateY(-1px); }
.nw-pill.active { filter: brightness(1.15); box-shadow: 0 0 0 3px rgba(255,255,255,.3); }

/* Footer: city + find button */
.nw-s1-footer { display: flex; gap: 8px; align-items: center; }
.nw-city-sel {
  flex: 1; padding: 10px 28px 10px 12px; border-radius: 50px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8); font-size: 13px; font-family: inherit;
  cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.nw-city-sel option { background: #1a1a28; }
.nw-find-btn {
  flex-shrink: 0; padding: 10px 18px; border-radius: 50px; border: none;
  background: rgba(255,255,255,.95); color: #0d2247; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--sans); transition: opacity .15s; white-space: nowrap;
}
.nw-find-btn:hover { opacity: .88; }

/* ── Step 2 ── */
.nw-back {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 500;
  cursor: pointer; padding: 0; margin-bottom: 12px; font-family: var(--sans); transition: color .15s;
}
.nw-back:hover { color: rgba(255,255,255,.9); }
.nw-s2-card {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 14px;
}
.nw-s2-sub { font-size: 11px; color: rgba(255,255,255,.45); margin: 0 0 3px; text-transform: uppercase; letter-spacing: .06em; }
.nw-s2-cat { font-size: 20px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -.2px; }

/* Intent grid — 2 cols, big icon top + label below (Figma style) */
.nw-intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nw-icard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07); cursor: pointer; transition: all .18s; font-family: var(--sans);
}
.nw-icard:hover, .nw-icard.active {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-2px);
}
.nw-icard-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.nw-icard-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); line-height: 1.3; text-align: left; }

/* ── Step 3 ── */
.nw-results-heading { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; }
.nw-results-list { display: flex; flex-direction: column; gap: 9px; max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }

/* Result cards */
.nw-result-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px; overflow: hidden; transition: background .15s;
}
.nw-result-card:hover { background: rgba(255,255,255,.11); }
.nw-result-top { display: flex; gap: 11px; padding: 12px 12px 6px; align-items: flex-start; }
.nw-result-img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.nw-result-img--placeholder { width: 58px; height: 58px; border-radius: 10px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.nw-result-info { flex: 1; min-width: 0; }
.nw-result-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; flex-wrap: wrap; }
.nw-result-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.nw-result-type { font-size: 11px; color: rgba(255,255,255,.4); display: block; margin-bottom: 2px; }
.nw-result-stars { font-size: 11px; color: #f5c518; letter-spacing: 1px; display: block; margin-bottom: 2px; }
.nw-result-addr { font-size: 10px; color: rgba(255,255,255,.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nw-result-desc { font-size: 11.5px; color: rgba(255,255,255,.55); line-height: 1.45; margin: 0; padding: 0 12px 8px; }
.nw-result-actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.nw-btn-plan {
  flex: 1; padding: 8px 10px; border-radius: 50px; font-size: 12px; font-weight: 700;
  background: #5e17eb; color: #fff; border: none; cursor: pointer; font-family: var(--sans); transition: opacity .15s;
}
.nw-btn-plan:hover { opacity: .85; }
.nw-btn-maps {
  padding: 8px 13px; border-radius: 50px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.14); text-decoration: none; transition: background .15s; white-space: nowrap;
}
.nw-btn-maps:hover { background: rgba(255,255,255,.18); color: #fff; }
.nw-hint { font-size: 13px; color: rgba(255,255,255,.4); text-align: center; padding: 20px 0; margin: 0; }

/* Badge colours (shared) */
.smart-badge { font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px; flex-shrink: 0; white-space: nowrap; }
.smart-badge--best { background: #5e17eb; color: #fff; }
.smart-badge--cheap { background: #1a7a4a; color: #fff; }
.smart-badge--popular { background: #c0392b; color: #fff; }
.smart-badge--date { background: #8e24aa; color: #fff; }
.smart-badge--friends { background: #1565c0; color: #fff; }
.smart-badge--work { background: #00695c; color: #fff; }

/* How it works */
.how-it-works { background: #0d2247; padding: 100px 80px; }

/* Examples background image */
.examples { position: relative; overflow: hidden; }
.examples-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .12;
  pointer-events: none;
}
.examples-bg-img img { width: 100%; height: 100%; object-fit: cover; }
.examples-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0d2247 0%, transparent 30%, transparent 70%, #0d2247 100%);
  z-index: 1;
  opacity: 8;
}
.examples > *:not(.examples-bg-img) { position: relative; z-index: 1; }
.how-it-works .eyebrow { color: rgba(255,255,255,.5); }
.section-heading { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; margin-bottom: 56px; color: #fff; }
.steps-row { display: flex; align-items: center; gap: 0; max-width: 900px; margin: 0 auto; }
.step-card { flex: 1; text-align: center; padding: 0 24px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 12px; color: #fff; }
.step-card p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; }
.step-connector { font-size: 28px; color: rgba(255,255,255,.3); flex-shrink: 0; padding: 0 8px; margin-bottom: 40px; }

/* Examples */
.examples { padding: 100px 80px; background: #0d2247; }
.examples .eyebrow { color: rgba(255,255,255,.5); }
.examples .section-heading { color: #fff; }
.example-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.example-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.example-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.3); background: rgba(255,255,255,.13); }
.example-emoji { font-size: 36px; display: block; margin-bottom: 16px; }
.example-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; color: #fff; }
.example-tag { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 500; margin-bottom: 14px; letter-spacing: .02em; }
.example-card > p:last-child { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* Home CTA */
.home-cta { background: #0d2247; padding: 100px 80px; text-align: center; }
.home-cta-inner { max-width: 560px; margin: 0 auto; }
.home-cta h2 { font-size: clamp(32px, 4vw, 52px); color: #fff; margin-bottom: 16px; }
.home-cta p { font-size: 16px; color: rgba(255,255,255,.6); margin-bottom: 36px; }

/* Footer */
.footer { background: #fff; border-top: 1px solid rgba(0,0,0,.08); padding: 40px 80px; }
.footer-inner.simple { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo .logo-text { color: #1a1a1a !important; }
.footer-note { font-size: 13px; color: rgba(0,0,0,.4); }

/* ===== QUIZ PAGE ===== */
.quiz-page { background: var(--bg-soft); min-height: 100vh; }
.quiz-container { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }

.quiz-progress { margin-bottom: 48px; }
.quiz-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; visibility: hidden;
  transition: color .15s;
}
.quiz-back-btn:hover { color: var(--text); }
.progress-bar { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; background: var(--dark); border-radius: 4px; transition: width .4s ease; width: 0%; }
.progress-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.quiz-steps { position: relative; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp .35s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.quiz-question { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--text); margin-bottom: 36px; }
.quiz-hint { font-size: 14px; color: var(--muted); margin-top: -24px; margin-bottom: 28px; }

/* Option grids */
.option-grid { display: grid; gap: 16px; }
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.option-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.option-card:hover { border-color: #aaa; transform: translateY(-2px); }
.option-card.selected { border-color: var(--dark); background: var(--dark); }
.option-card.selected .option-label,
.option-card.selected .option-sub { color: #fff; }
.option-emoji { font-size: 32px; line-height: 1; }
.option-label { font-size: 15px; font-weight: 600; color: var(--text); }
.option-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* City input */
.city-input-wrap { position: relative; }
.city-input {
  width: 100%; padding: 16px 20px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: 16px; color: var(--text);
  background: #fff; outline: none;
  transition: border-color .2s;
}
.city-input:focus { border-color: var(--dark); }
.city-input::placeholder { color: var(--muted); }

.skip-link { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.skip-link a { color: var(--muted); text-decoration: underline; }
.skip-link a:hover { color: var(--text); }

.city-input-wrap { position: relative; }
.city-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 10;
  overflow: hidden;
}
.city-dropdown:empty { display: none; }
.city-dropdown-item {
  padding: 12px 16px; font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.city-dropdown-item:hover { background: var(--bg-soft); }

/* ===== LOADING ===== */
.loading-screen, .error-screen {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.loading-inner, .error-inner { max-width: 420px; }
.loading-spinner {
  width: 48px; height: 48px; border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-inner h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 12px; color: #fff; }
.loading-inner p { font-size: 14px; color: rgba(255,255,255,.6); }
.error-inner h2 { font-family: var(--serif); font-size: 26px; margin: 16px 0 12px; color: #fff; }
.error-inner p { font-size: 14px; color: rgba(255,255,255,.6); }

.dots span { animation: blink 1.4s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: 0; } 40% { opacity: 1; } }

/* ===== RESULTS PAGE ===== */
.results-page { padding: 0 0 100px; }
.results-header { text-align: center; padding: 72px 24px 56px; }
.results-header h1 { font-size: clamp(32px, 4.5vw, 54px); font-weight: 700; margin-bottom: 16px; color: #fff; }
.results-sub { font-size: 16px; color: rgba(255,255,255,.6); }
.results-header .eyebrow { color: rgba(255,255,255,.5); }

.results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 40px;
}

/* Result card */
.result-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.result-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }

.result-card-top { padding: 28px 28px 20px; flex: 1; }
.result-card-emoji { font-size: 40px; margin-bottom: 16px; display: block; }
.result-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.result-card-tagline { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 20px; font-family: var(--serif); }

.why-box {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 14px 16px; margin-bottom: 20px;
}
.why-box p { font-size: 13px; color: var(--text); line-height: 1.6; }

.result-stats {
  display: flex; gap: 0; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-bottom: 20px;
}
.stat-item { flex: 1; padding: 10px 8px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-label { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }
.stat-value { font-size: 13px; font-weight: 600; color: var(--text); }

.highlights { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.highlights li { font-size: 13px; color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.highlights li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.good-for-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pill {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 500; color: var(--muted);
}

.result-card-footer { padding: 0 28px 28px; }
.btn-view-plan {
  display: block; width: 100%; text-align: center;
  background: var(--dark); color: #fff; border: none;
  border-radius: 50px; padding: 14px 20px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .2s; text-decoration: none;
}
.btn-view-plan:hover { background: #2d2d3f; }

.results-footer { text-align: center; margin-top: 56px; }
.results-footer p { font-size: 15px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.results-footer a { color: #fff; }

/* ===== PLAN DETAIL PAGE ===== */
.plan-page { }
.plan-back-wrap { position: sticky; top: 60px; z-index: 90; padding: 12px 80px; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,.08); }
.plan-back-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s; }
.plan-back-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
@media (max-width: 600px) { .plan-back-wrap { padding: 10px 20px; } }

.plan-hero {
  background: var(--dark); padding: 72px 80px 64px;
  text-align: center; color: #fff;
}
.plan-emoji { font-size: 56px; display: block; margin-bottom: 20px; }
.plan-hero h1 { font-size: clamp(32px, 4.5vw, 56px); color: #fff; margin-bottom: 16px; }
.plan-tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: rgba(255,255,255,.7); margin-bottom: 32px; }

.plan-stats {
  display: inline-flex; gap: 32px; align-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px; padding: 14px 32px;
}
.plan-stat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.plan-stat-icon { font-size: 16px; }
.plan-stat-sep { color: rgba(255,255,255,.25); }

.plan-body { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.plan-section { margin-bottom: 64px; }
.plan-section h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 24px; color: #fff; }
.map-note { font-size: 14px; color: rgba(255,255,255,.6) !important; margin-bottom: 20px; }
.plan-actions .btn-secondary {
  color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); background: transparent;
}
.plan-actions .btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }

/* Why quote */
.why-quote {
  background: var(--bg-soft); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 20px 24px;
  font-size: 16px; color: var(--text); line-height: 1.7; font-style: normal;
}

/* Good for tags */
.good-for-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.good-for-tag {
  background: var(--dark); color: #fff;
  border-radius: 20px; padding: 6px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step {
  display: flex; gap: 24px; position: relative;
}
.timeline-step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 20px; top: 56px; bottom: -24px;
  width: 2px; background: var(--border);
}
.step-num-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  position: relative; z-index: 1; margin-top: 6px;
}
.step-content {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 24px 20px;
  flex: 1; margin-bottom: 24px;
}
.step-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.step-name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.step-type-badge {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 12px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  white-space: nowrap; flex-shrink: 0; margin-top: 4px;
}
.step-activity { font-size: 14.5px; color: var(--text); margin-bottom: 14px; line-height: 1.6; }
.step-meta { display: flex; gap: 20px; font-size: 12px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.step-meta span { display: flex; align-items: center; gap: 5px; }
.step-tip {
  background: #fffbf0; border: 1px solid #f0e6c0;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #7a6520; line-height: 1.5; margin-bottom: 16px;
}
.step-tip::before { content: '💡 Tip: '; font-weight: 600; }
.step-map-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--dark); font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 8px 16px; transition: border-color .2s, background .2s;
}
.step-map-link:hover { border-color: var(--dark); background: var(--bg-soft); }

/* Place modal */
.place-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 1100; align-items: center; justify-content: center; padding: 20px; }
.place-modal-overlay.open { display: flex; }
.place-modal { background: #fff; border-radius: 20px; overflow: hidden; max-width: 460px; width: 100%; position: relative; box-shadow: 0 32px 80px rgba(0,0,0,.4); }
.place-modal-close { position: absolute; top: 12px; right: 14px; background: rgba(0,0,0,.45); border: none; color: #fff; font-size: 22px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; line-height: 1; z-index: 1; display: flex; align-items: center; justify-content: center; }
.place-modal-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.place-modal-body { padding: 24px; }
.place-modal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.place-modal-top h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 0; }
.place-modal-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.place-modal-type { font-size: 13px; color: var(--muted); font-weight: 500; display: block; margin-bottom: 12px; }
.place-modal-desc { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 14px; }
.place-modal-addr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 20px; transition: color .15s; }
.place-modal-addr:hover { color: var(--dark); }
.place-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.place-modal-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.place-modal-btn:hover { opacity: .8; }
.place-modal-btn--primary { background: var(--dark); color: #fff; }
.place-modal-btn--ig { background: #f9f0f5; color: #e1306c; }
.place-modal-btn--fb { background: #f0f2fa; color: #4267b2; }
.place-modal-btn--phone { background: var(--bg-soft); color: var(--dark); }

/* Nearby sponsors */
/* Sponsor modal */
.sponsor-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.sponsor-modal-overlay.open { display: flex; }
.sponsor-modal { background: #fff; border-radius: 16px; overflow: hidden; max-width: 420px; width: 100%; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.sponsor-modal-close { position: absolute; top: 12px; right: 14px; background: rgba(0,0,0,.4); border: none; color: #fff; font-size: 20px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; line-height: 1; z-index: 1; }
.sponsor-modal-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.sponsor-modal-body { padding: 20px 24px 24px; }
.sponsor-modal-body h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--dark); }
.sponsor-modal-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.modal-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.modal-rating-num { font-size: 14px; font-weight: 600; color: var(--dark); }
.sponsor-modal-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.modal-cat-tag { background: var(--light); color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 20px; text-transform: capitalize; }
.sponsor-modal-row { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.sponsor-modal-row a { color: var(--dark); text-decoration: none; }
.sponsor-modal-btn { display: block; margin-top: 16px; background: var(--dark); color: #fff; text-align: center; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.sponsor-modal-btn:hover { opacity: .85; }

.nearby-heading { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.85); margin: 28px 0 14px; letter-spacing: .01em; }
.nearby-sponsors { display: flex; gap: 12px; flex-wrap: wrap; }
.nearby-card { display: flex; flex-direction: column; width: 140px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15); border-radius: 12px; overflow: hidden; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; text-align: left; }
.nearby-card:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.nearby-img { width: 100%; height: 90px; object-fit: cover; display: block; }
.nearby-info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.nearby-name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; }
.nearby-cats { font-size: 11px; color: rgba(255,255,255,.5); text-transform: capitalize; }
@media (max-width: 600px) { .nearby-card { width: 120px; } .nearby-img { height: 75px; } }

/* Free text input */
.free-input-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.hero-city-row { margin-bottom: 10px; }
.hero-city-select {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px; color: #fff; font-size: 14px; font-family: inherit;
  cursor: pointer; outline: none; appearance: none;
  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='white' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.hero-city-select:focus { border-color: rgba(255,255,255,.5); }
.hero-city-select option { background: #1a1a28; color: #fff; }
.free-input {
  width: 100%; padding: 16px 20px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: #fff; outline: none; resize: none; line-height: 1.5;
  transition: border-color .2s;
}
.free-input:focus { border-color: var(--dark); }
.free-input::placeholder { color: var(--muted); }
.hero-quiz-link { font-size: 16px; color: var(--muted); margin-top: 4px; }
.hero-quiz-link a { color: var(--muted); text-decoration: underline; font-weight: 600; }
.hero-quiz-link a:hover { color: var(--text); }

/* Map */
.map-note { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.map-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.map-link-btn {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
  font-size: 14px; color: var(--text); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.map-link-btn:hover { border-color: var(--dark); background: #f0ece8; }
.map-link-btn strong { font-weight: 600; }
.map-link-btn span { font-size: 12px; color: var(--muted); }
.map-link-icon { color: var(--muted); font-size: 16px; }
.map-container { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* Plan actions */
.plan-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== PLACE CARD ===== */
.place-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; margin-top: 14px;
  overflow: hidden;
}
.place-image {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
}
.place-info { flex: 1; min-width: 0; }
.place-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.place-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-badge {
  background: var(--dark); color: #fff;
  border-radius: 4px; padding: 2px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; flex-shrink: 0;
}
.place-address { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.place-desc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.place-link {
  font-size: 12px; font-weight: 600; color: var(--dark);
  text-decoration: none; transition: opacity .2s;
}
.place-link:hover { opacity: .65; }
.sponsored-badge {
  background: #1a1a28 !important; color: #fff !important;
}
.sponsored-card {
  border-color: #1a1a28;
  background: #f9f8ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .navbar { padding: 0 32px; }
  .home-hero-content { padding: 60px 40px; }
  .how-it-works, .examples, .home-cta, .footer { padding-left: 40px; padding-right: 40px; }
  .results-grid { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .plan-hero { padding: 56px 40px 48px; }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 16px; height: 56px; }
  .nav-links { display: none; }
  .lang-toggle { font-size: 13px; padding: 6px 10px; }
  #navAuthWrap .nav-desktop { display: none; }
  #navAuthWrap .nav-mobile-btn { display: block; }
  .nav-dropdown { top: 56px; }

  /* Prevent iOS zoom on input focus */
  input, textarea, select { font-size: 16px !important; }

  .hero-right-panel { display: block; position: relative; z-index: 1; padding: 0 20px 32px; }
  .hero-feature-card { min-width: unset; }
  .hero-sponsor-panel { width: 100%; }
  .hero-sponsor-panel .nearby-img { height: 100px; }
  .hero-sponsor-panel .nearby-name { font-size: 12px; }
  .hero-sponsor-panel .nearby-cats { font-size: 10px; }

  /* Hero — image as background on mobile */
  .home-hero { display: block; min-height: auto; position: relative; }
  .home-hero-image { position: absolute; inset: 0; height: 100%; z-index: 0; }
  .home-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .home-hero-image::after { display: none; }
  .home-hero-content { position: relative; z-index: 1; padding: 56px 20px 44px; background: transparent; }
  .home-hero-content h1 { font-size: 30px; line-height: 1.25; margin-bottom: 12px; color: #fff; }
  .home-hero-content h1 em { color: var(--accent); }
  .eyebrow { font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
  .hero-sub { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 20px; line-height: 1.6; }
  .hero-quiz-link { color: rgba(255,255,255,.6); }
  .hero-quiz-link a { color: rgba(255,255,255,.9); }
  .free-input { background: rgba(255,255,255,.95); }
  .nearby-heading { color: rgba(255,255,255,.85); }

  /* Free input */
  .free-input { font-size: 14px; padding: 14px 16px; }
  .free-submit-btn { width: 100%; justify-content: center; }
  .hero-quiz-link { font-size: 13px; }

  /* Nearby sponsors */
  .nearby-heading { font-size: 14px; margin: 20px 0 10px; }
  .nearby-sponsors { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .nearby-card { width: 120px; flex-shrink: 0; }
  .nearby-img { height: 72px; }
  .nearby-name { font-size: 12px; }
  .nearby-cats { font-size: 10px; }

  /* Sections */
  .how-it-works, .examples, .home-cta { padding: 52px 20px; }
  .section-heading { font-size: clamp(24px, 6vw, 36px); margin-bottom: 40px; }
  .steps-row { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
  .example-cards { grid-template-columns: 1fr; }
  .footer { padding: 36px 20px; }
  .footer-inner.simple { flex-direction: column; text-align: center; }

  /* Quiz */
  .option-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .option-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }

  /* Results */
  .results-grid { grid-template-columns: 1fr; padding: 0 16px; }

  /* Plan */
  .plan-back-wrap { padding: 10px 16px; }
  .plan-hero { padding: 40px 20px 32px; }
  .plan-stats { flex-direction: column; gap: 12px; padding: 16px 20px; border-radius: 16px; }
  .plan-stat-sep { display: none; }
  .plan-body { padding: 32px 16px 60px; }

  /* Sponsor modal */
  .sponsor-modal { max-width: 100%; margin: 0; border-radius: 16px 16px 0 0; position: fixed; bottom: 0; left: 0; right: 0; }
  .sponsor-modal-overlay { align-items: flex-end; padding: 0; }
  .sponsor-modal-img { height: 160px; }
}
