@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* KazMPIRE — editorial cinema interface
   Sand, ink, cinema red. One warm palette, one warm dark mode. */

:root {
  color-scheme: light;
  --sand: #faf8f5;
  --panel: #ffffff;
  --panel-2: #f4efe8;
  --ink: #1a1614;
  --ink-soft: #3d352f;
  --muted: #5c544e;
  --line: #e4ddd3;
  --line-strong: #d3c8ba;
  --red: #b3261e;
  --red-deep: #8c1c16;
  --gold: #a9781f;
  --gold-soft: #f3e6cd;
  --palm: #2f6b4f;
  --royal: #2246a8;
  --selected: #f6ecdc;
  --on-accent: #fffaf5;

  --radius-outer: 24px;
  --radius-inner: 17px;
  --shadow: 0 1px 2px rgba(26, 22, 20, .05), 0 12px 32px -18px rgba(26, 22, 20, .28);

  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--sand);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sand: #121110;
  --panel: #1e1d1b;
  --panel-2: #262421;
  --ink: #f7f2ea;
  --ink-soft: #ddd4c8;
  --muted: #b3a99e;
  --line: #3a352f;
  --line-strong: #4a443c;
  --red: #e2685a;
  --red-deep: #f08a7d;
  --gold: #e0b25e;
  --gold-soft: #3a3122;
  --palm: #7fc3a1;
  --royal: #9db4f0;
  --selected: #332e27;
  --on-accent: #1a1614;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); }

header, main, footer { width: min(1080px, calc(100% - 32px)); margin: auto; }
header, .header-actions, .brand { display: flex; align-items: center; gap: 12px; }
header {
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand img { border-radius: 10px; box-shadow: var(--shadow); }
.header-actions { font-size: .85rem; color: var(--muted); }

#theme-toggle {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
#theme-toggle:hover { border-color: var(--line-strong); }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

main { padding: clamp(28px, 5vw, 64px) 0; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.hero img {
  width: 100%;
  max-width: 380px;
  justify-self: end;
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow);
}
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  letter-spacing: -.045em;
  line-height: .98;
  margin: .18em 0 .3em;
  font-weight: 800;
}
h1 em { display: block; font-style: normal; color: var(--red); }
.intro { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }

p, footer { color: var(--muted); line-height: 1.6; }

/* Buttons */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--on-accent);
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
button:hover, .button:hover { background: var(--red-deep); color: var(--on-accent); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: default; transform: none; }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
}

/* Cards */
.card {
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: auto;
}
.card:has(.table) { max-width: none; }
.card h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); letter-spacing: -.04em; }
.card h2 { margin-top: 0; letter-spacing: -.03em; font-size: 1.25rem; }

/* Forms */
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; }
input, select {
  font: inherit;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
}
input:focus, select:focus { border-color: var(--red); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: .92rem; }

.date-grid, .payment-grid { display: grid; gap: 8px; }
.date-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.choice { position: relative; display: block; }
.choice input, .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%);
}
.choice > span {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 64px;
  padding: 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-inner);
  font-size: .78rem;
  line-height: 1.25;
  cursor: pointer;
  background: var(--panel);
  transition: border-color .15s ease, background .15s ease;
}
.choice strong { font-size: 1.35rem; line-height: 1.1; letter-spacing: -.03em; }
.choice input:checked + span {
  background: var(--selected);
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.choice input:focus-visible + span { outline: 2px solid var(--royal); outline-offset: 2px; }
.choice input:disabled + span { opacity: .5; cursor: default; }
.choice > span:hover { border-color: var(--red); }

/* Summary */
#summary {
  padding: 16px;
  border-radius: var(--radius-inner);
  background: var(--gold-soft);
  border: 1px solid var(--line);
}
#summary div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#summary strong { font-size: 1.5rem; letter-spacing: -.04em; color: var(--ink); }
#summary p { margin: 6px 0 0; font-size: .85rem; }

/* Tables */
.table { overflow: auto; }
td, th { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
code { overflow-wrap: anywhere; }

footer {
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { justify-self: start; max-width: 240px; }
  .date-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* Editorial layout */
.hero-copy { max-width: 34rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 26px 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-meta div { min-width: 96px; }
.hero-meta dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 4px 0 0; font-weight: 700; font-size: .98rem; color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-quiet { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.link-quiet:hover { border-color: var(--red); }
.poster { margin: 0; position: relative; }
.poster img { display: block; width: 100%; border-radius: var(--radius-outer); box-shadow: var(--shadow); }
.poster figcaption { margin-top: 12px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 clamp(32px, 5vw, 56px); }
.strip article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-outer); padding: 22px; box-shadow: var(--shadow); }
.strip h3 { margin: 6px 0 8px; font-size: 1.12rem; letter-spacing: -.02em; }
.strip p { margin: 0; font-size: .9rem; }
.strip-kicker { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.booking { max-width: 760px; }
.booking h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0 22px; }
.notice { background: var(--gold-soft); border: 1px solid var(--line); border-radius: var(--radius-inner); padding: 12px 14px; color: var(--ink-soft); font-size: .9rem; }
.price-line { font-weight: 600; color: var(--ink); margin: 0; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }

.choice > span { gap: 2px; }
.choice small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.choice input:checked + span small { color: var(--red); }

.night { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); margin: clamp(40px, 6vw, 72px) 0; align-items: start; }
.night h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.03em; margin: 6px 0 12px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.timeline span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.timeline p { margin: 4px 0 0; color: var(--ink-soft); }

.finding { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-outer); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); margin-bottom: clamp(36px, 5vw, 64px); }
.finding h2 { margin: 6px 0 10px; letter-spacing: -.03em; }
.finding-actions { display: grid; gap: 12px; align-content: start; }
.finding-actions p { margin: 0; font-size: .9rem; color: var(--muted); }
.finding-actions strong { color: var(--ink); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.button.ghost { background: transparent; color: var(--red); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--selected); color: var(--red-deep); }

.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { letter-spacing: -.03em; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; }

.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.detail h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

@media (max-width: 820px) {
  .strip { grid-template-columns: 1fr; }
  .night, .finding, .detail { grid-template-columns: 1fr; }
  .poster { order: -1; }
}

/* Programme */
.programme { margin: 0 0 clamp(34px, 5vw, 56px); }
.programme-head { max-width: 46rem; margin-bottom: 18px; }
.programme-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.035em; margin: 6px 0 8px; }
.programme-head p { margin: 0; }
.night-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.night-card { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-outer); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.night-card:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); }
.night-date { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.night-card h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.02em; }
.night-meta { margin: 0; font-size: .86rem; }
.night-cta { margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--red); }
.night-card.is-out { opacity: .62; }
.night-card.is-out .night-cta { color: var(--muted); }

@media (max-width: 900px) { .night-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .night-grid { grid-template-columns: 1fr; } }

/* Airbnb-style media and detail */
.hero-media { margin: 0; }
.hero-media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-media figcaption { margin-top: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.night-card { padding: 0; overflow: hidden; gap: 0; }
.card-media { margin: 0; overflow: hidden; }
.card-media img { display: block; width: 100%; height: 168px; object-fit: cover; transition: transform .3s ease; }
.night-card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 16px 18px 20px; display: grid; gap: 6px; }

.detail-body { margin-top: 8px; }
.detail-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-outer); box-shadow: var(--shadow); margin-bottom: 30px; }
.detail-columns { display: grid; grid-template-columns: 1.45fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.detail-columns h2 { font-size: 1.3rem; letter-spacing: -.025em; margin: 26px 0 8px; }
.detail-columns h2:first-of-type { margin-top: 0; }
.includes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.includes li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.includes li::before { content: "✓"; position: absolute; left: 0; color: var(--palm); font-weight: 700; }
.booking-aside { position: sticky; top: 18px; }
.booking-aside .card { margin: 0; }
.booking-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.booking-head .eyebrow { margin: 0; }
.booking-price { margin: 0; }
.booking-price strong { font-size: 1.6rem; letter-spacing: -.04em; color: var(--ink); }
.booking-price span { margin-left: 6px; font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
  .detail-columns { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .detail-media img { aspect-ratio: 16 / 10; }
}

.host-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; }
.host-avatar { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); }
.host-name { margin: 0; font-weight: 700; color: var(--ink); }
.detail-actions { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 22px; }
.detail-actions .link-quiet { background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0 0 2px; font: inherit; font-weight: 600; color: var(--red); cursor: pointer; }
.center { text-align: center; }

.steps { margin: 0 auto clamp(36px, 5vw, 60px); max-width: 900px; }
.steps h2 { letter-spacing: -.03em; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-outer); padding: 20px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--selected); color: var(--red); font-weight: 800; font-size: .8rem; margin-bottom: 10px; }
.steps strong { display: block; color: var(--ink); }
.steps p { margin: 6px 0 0; font-size: .9rem; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } }
