/* YukiHomes Top 10 — dark premium theme (from YukiHomes design system) */

:root {
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-surface: #0f3460;
  --primary: #e63946;
  --primary-dark: #c1121f;
  --accent: #457b9d;
  --accent-light: #a8dadc;
  --text-primary: #f1faee;
  --text-secondary: #a8dadc;
  --text-muted: #8899aa;
  --white: #ffffff;
  --divider: rgba(168, 218, 220, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Manrope', 'Avenir Next', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Arima', Georgia, serif; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(230, 57, 70, 0.16), transparent 60%),
    linear-gradient(170deg, #16213e 0%, #1a1a2e 60%);
  border-bottom: 1px solid var(--divider);
}
.hero-logo { width: 110px; height: auto; margin-bottom: 10px; }
.eyebrow {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero h1 { font-size: clamp(30px, 6vw, 52px); color: var(--white); }
.hero-sub {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2.6vw, 19px);
  color: var(--text-secondary);
}
.hero-sub strong { color: var(--white); }
.hero-teach {
  margin: 12px auto 22px;
  max-width: 560px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 15px 26px;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5); transform: translateY(-1px); }
.btn-listing {
  background: transparent;
  color: var(--accent-light);
  border: 1.5px solid var(--accent);
  padding: 12px 20px;
  font-size: 15px;
  width: 100%;
  text-align: center;
}
.btn-listing:hover { background: var(--bg-surface); color: var(--white); }
.btn-small { background: var(--primary); color: var(--white); padding: 9px 16px; font-size: 14px; }

/* ---------- Sticky bar ---------- */
.stickybar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(22, 33, 62, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}
.stickybar.show { transform: translateY(0); }
.stickybar img { border-radius: 8px; }
.stickybar span { font-weight: 700; font-size: 14px; color: var(--text-secondary); flex: 1; }

/* ---------- Cards ---------- */
.list {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.card-body { padding: 18px 18px 20px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price { color: var(--primary); font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.usd { color: var(--text-muted); font-size: 16px; font-weight: 700; }
.card h2 { font-size: 22px; color: var(--white); margin-bottom: 8px; }
.card h2 .loc { display: block; font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--text-muted); margin-top: 3px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips li {
  background: var(--bg-surface);
  color: var(--accent-light);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.station { color: var(--text-secondary); font-size: 14px; margin: 8px 0 6px; }
.blurb { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 14px; }

/* ---------- CTA bands ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.14), rgba(15, 52, 96, 0.6));
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 18px;
  padding: 28px 20px;
}
.cta-band h3 { font-size: 24px; color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--text-secondary); font-size: 15px; max-width: 460px; margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 36px 20px 46px;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
  font-size: 14.5px;
}
.footer img { margin-bottom: 10px; }
.footer p { margin-bottom: 8px; }
.footer a { color: var(--accent-light); }
.fineprint { color: var(--text-muted); font-size: 12.5px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Quiz ---------- */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 24, 0.66);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.quiz-overlay.on { opacity: 1; }
.quiz-overlay:not(.on) { pointer-events: none; }
.quiz-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 20px 20px 0 0;
  padding: 26px 20px 30px;
  width: 100%;
  max-width: 480px;
  transform: translateY(24px);
  transition: transform 0.25s ease;
}
.quiz-overlay.on .quiz-card { transform: translateY(0); }
.quiz-card h3 { font-size: 23px; color: var(--white); margin-bottom: 4px; padding-right: 30px; }
.quiz-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--divider);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.quiz-opt:hover { border-color: var(--primary); background: #143055; }
.quiz-later {
  display: block;
  margin: 6px auto 0;
  background: none;
  border: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
}
.quiz-x {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.quiz-x:hover { color: var(--white); }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .list { max-width: 980px; }
  .card { display: grid; grid-template-columns: 460px 1fr; }
  .card-media { aspect-ratio: auto; min-height: 100%; }
  .card-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
  .btn-listing { width: auto; align-self: flex-start; }
  .card:nth-child(even) { grid-template-columns: 1fr 460px; }
  .card:nth-child(even) .card-media { order: 2; }
  .quiz-overlay { align-items: center; }
  .quiz-card { border-radius: 20px; }
  .cta-band { padding: 36px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
