/* Palette and type from prototype/index.html */
:root {
  color-scheme: dark;
  --lime: #c8e21f;
  --lime-dim: #9fb318;
  --bg: #1f2123;
  --panel: #2a2c2e;
  --panel-2: #333538;
  --line: #45484c;
  --text: #ecece8;
  --muted: #8f9396;
  --busy: #3a3c3f;
  --danger: #e0533d;
  --ok: #57c26b;
  --font-head: Oswald, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.45; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 120px; }
.h { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; font-weight: 600; }
h1.h { font-size: 32px; margin: 20px 0 8px; }
.lime { color: var(--lime); }
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(31, 33, 35, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: stretch; gap: 12px; line-height: 1.1; font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.brand small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.logo { width: 22px; min-height: 30px; border: 4px solid var(--lime); flex: none; }
.tabs { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tab { font-family: var(--font-head); text-transform: uppercase; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.tab.on { color: #111; background: var(--lime); border-color: var(--lime); }

/* hero and rooms */
.hero { position: relative; margin: 20px 0 8px; border: 1px solid var(--line); overflow: hidden; }
.hero p { color: #cfd0cc; margin-top: 6px; max-width: 480px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 20px; }
.room { border: 1px solid var(--line); background: var(--panel); }
.room img { width: 100%; height: 150px; object-fit: cover; filter: grayscale(.4); }
.room .body { padding: 10px 12px 12px; }
.room .name { font-family: var(--font-head); font-size: 20px; text-transform: uppercase; }
.room .meta { color: var(--muted); font-size: 13px; }
.room .price { margin-top: 6px; font-family: var(--font-head); font-size: 16px; color: var(--lime); }
.room.off { opacity: .55; }
.rooms.compact { grid-template-columns: 1fr; gap: 6px; }
.rooms.compact .body { padding: 10px 12px; }
.rooms.compact .name { font-size: 18px; }
.room.off .pick { cursor: default; }
.room.off .price { color: var(--muted); font-family: inherit; font-size: 13px; }

/* forms */
.stack { display: grid; gap: 10px; }
.field label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.field input, .field select { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 12px; outline: none; }
.field input, .field select { box-sizing: border-box; height: 48px; font: inherit; color-scheme: dark; }
.field select, .chips select { appearance: none; padding-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8e21f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.9); cursor: pointer; }
.field input:focus, .field select:focus { border-color: var(--lime); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #cfd0cc; cursor: pointer; }
.check input { accent-color: var(--lime); width: 18px; height: 18px; }
.btn { background: var(--lime); color: #111; border: 0; padding: 14px 18px; font-family: var(--font-head); text-transform: uppercase; font-size: 16px; cursor: pointer; font-weight: 600; }
.btn:disabled { background: #4a4d50; color: #7d8083; cursor: not-allowed; }
.btn.ghost { background: none; color: var(--text); border: 1px solid var(--line); }

/* dates */
.dates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-top: 12px; }
.date { flex: none; width: 58px; padding: 8px 0; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: center; }
.date small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.date b { font-family: var(--font-head); font-size: 22px; font-weight: 500; }
.date.on { background: var(--lime); border-color: var(--lime); color: #111; }
.date.on small { color: #333; }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; }
.toast { background: #182533; border: 1px solid #22303c; color: #e9eef3; padding: 10px 14px; font-size: 13px; }
.toast.alert { border-color: var(--danger); }
.flash { border-left: 3px solid var(--lime); background: var(--panel); padding: 10px 14px; margin-top: 16px; font-size: 14px; }
.flash.alert { border-color: var(--danger); }

@media (max-width: 520px) {
  h1.h { font-size: 26px; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .room img { height: 110px; }
  .tab { padding: 6px 7px; font-size: 12px; }
  .brand small { display: none; }
}

/* booking page */
.slider { position: relative; height: 260px; }
.slider .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); opacity: 0; transition: opacity .8s; }
.slider .slide.on { opacity: 1; }
.slider .dots { position: absolute; top: 12px; right: 12px; display: flex; gap: 10px; }
.slider .dot { width: 12px; height: 12px; padding: 0; border: 1px solid var(--lime); background: none; cursor: pointer; }
.slider .dot.on { background: var(--lime); }
.hero .over { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 21, 22, .1), rgba(20, 21, 22, .92)); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.hero .over h1 { font-size: 40px; font-weight: 700; margin: 0; }
.route-btn { margin-top: 12px; background: none; border: 1px solid var(--lime); color: var(--lime); padding: 8px 12px; font-family: var(--font-head); text-transform: uppercase; cursor: pointer; align-self: flex-start; }
.step { margin-top: 28px; }
/* steps open one after another (steps controller); the server renders the later ones hidden */
.step[hidden], .starts-step[hidden] { display: none; }
turbo-frame[busy] .starts, turbo-frame[busy] .rooms { opacity: .5; }
.step-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.step-title .num { font-family: var(--font-head); color: var(--lime); font-size: 14px; }
.step-title h2 { font-size: 24px; }
.sub { font-size: 20px; margin-top: 28px; }
.muted { color: var(--muted); }
.danger { color: var(--danger); }
.lb { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; }
.err { color: var(--danger); font-size: 13px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

/* radio choices: the input is hidden, its label is the control */
.room input, .seg input, .dates input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.room { position: relative; }
.room .pick { display: block; cursor: pointer; }
.room:has(input:checked) { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.room:has(input:checked) img { filter: none; }
.gbtn { position: absolute; top: 8px; right: 8px; background: rgba(20, 21, 22, .82); color: var(--text); border: 1px solid var(--line); padding: 5px 9px; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; cursor: pointer; }
.gbtn b { color: var(--lime); font-weight: 500; }
.seg { display: flex; border: 1px solid var(--line); position: relative; }
.seg label { flex: 1; color: var(--muted); padding: 12px 8px; cursor: pointer; }
.seg label + input + label { border-left: 1px solid var(--line); }
.seg label b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--text); font-weight: 600; text-transform: uppercase; }
.seg input:checked + label { background: var(--lime); color: #222; }
.seg input:checked + label b { color: #111; }
.people { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.stepper button { width: 44px; height: 44px; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }
.stepper input { width: 56px; text-align: center; font-family: var(--font-head); font-size: 22px; background: none; border: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.dates { position: relative; }
.dates input:checked + .date { background: var(--lime); border-color: var(--lime); color: #111; }
.dates input:checked + .date small { color: #333; }
.date { cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; position: relative; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 9px 12px; font-size: 14px; cursor: pointer; font-family: var(--font-head); }
.chips input:checked + .chip, .chip.on { background: var(--lime); color: #111; border-color: var(--lime); }
.chips select { padding-right: 32px; background-position: right 10px center; color-scheme: dark; border-radius: 0; }
.chips select:focus { border-color: var(--lime); outline: none; }
.starts { margin-top: 2px; }
.offer { border: 1px solid var(--lime); padding: 12px 14px; margin-top: 16px; font-size: 14px; }
.offer .btn { margin-top: 10px; }
.offer.advice .btn { display: inline-block; }
.series { margin-top: 14px; }
.series .row a { color: var(--text); text-decoration: none; }
.series .row.this a { color: var(--lime); }
.more { margin-top: 18px; }
.more .repeat { display: flex; gap: 8px; align-items: center; }
.more .repeat .chip { height: 48px; }
.series-head { margin-bottom: 8px; }
.rules { border-left: 3px solid var(--lime); padding: 10px 14px; background: var(--panel); font-size: 13px; color: #cfd0cc; margin-top: 14px; }
.rules b { font-family: var(--font-head); text-transform: uppercase; color: var(--lime); font-weight: 500; }
.check { margin-top: 12px; align-items: flex-start; }
.check + .field { margin-top: 10px; }
.check input { flex: none; margin-top: 2px; }

/* sticky price bar */

/* gallery dialog */
.gal { border: 0; padding: 0; background: rgba(12, 13, 14, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); width: 100vw; height: 100vh; max-width: none; max-height: none; }
.gal::backdrop { background: transparent; }
.gal-in { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; height: 100%; }
.gal-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.gal-top .ttl { font-family: var(--font-head); text-transform: uppercase; font-size: 18px; flex: 1; }
.gal-n { font-family: var(--font-head); color: var(--muted); font-size: 14px; }
.gal-x { background: none; border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; font-size: 20px; cursor: pointer; }
.gal-stage { position: relative; flex: 1; min-height: 0; display: flex; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.gal-stage figure { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.gal-stage figure[hidden] { display: none; }
.gal-stage img, .gal-stage video { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.gal-stage figcaption { text-align: center; color: #cfd0cc; font-size: 13px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(0, 0, 0, .45); color: var(--text); font-size: 34px; line-height: 1; cursor: pointer; }
.gal-nav.prev { left: 16px; }
.gal-nav.next { right: 16px; }

/* own booking page */
.login { max-width: 360px; margin: 40px auto 0; }
.login .btn { margin-top: 6px; }
.login .switch { margin-top: 16px; font-size: 14px; color: var(--muted); }
.login .switch a { color: var(--lime); }
.account h1 { font-size: 30px; margin: 20px 0 6px; }
.account .sub { margin-top: 24px; }
.account .list a { color: inherit; text-decoration: none; }
.account .list a:hover span:last-child { color: var(--lime); }
.account .row span:last-child { flex: none; text-align: right; }
.account .muted { font-size: 14px; }
.account .good { color: var(--lime); }
.account .warn { color: var(--danger); }
.docs { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.docs a { color: var(--text); }
.upload { margin-top: 12px; display: grid; gap: 10px; }
.upload input[type="file"] { color: var(--muted); font-size: 14px; }
.seg input:disabled + label { opacity: .4; cursor: not-allowed; }
.sheet { border-top: 3px solid var(--lime); padding: 22px 0; margin-top: 20px; }
.sheet h1 { font-size: 30px; margin: 0 0 10px; }
.row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; gap: 10px; }
.row span:first-child { color: var(--muted); }
.kaspi { display: flex; align-items: center; gap: 12px; padding: 14px; background: #f14635; color: #fff; margin: 14px 0; font-size: 13px; }
.kaspi .k { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: .02em; flex: none; }
.timer { font-family: var(--font-head); font-size: 34px; color: var(--lime); }
.paid { text-align: center; padding: 10px 0; }
.paid .big { font-size: 64px; color: var(--lime); font-family: var(--font-head); line-height: 1; }
.note { color: #cfd0cc; margin-top: 14px; }
.actions { margin-top: 20px; }
.actions .btn { display: inline-block; }

@media (max-width: 520px) {
  .hero img { height: 200px; }
  .hero .over h1 { font-size: 30px; }
}

/* packages */
.lead { color: #cfd0cc; margin-bottom: 8px; }
.br::before { content: "[ "; color: var(--text); font-weight: 400; }
.br::after { content: " ]"; color: var(--text); font-weight: 400; }
.pk { border: 1px solid var(--line); background: var(--panel); padding: 16px; margin-top: 12px; position: relative; }
.pk h2 { font-size: 26px; }
.pk p { color: #cfd0cc; font-size: 14px; margin: 6px 0 12px; }
.pk table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pk th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; padding: 4px 0; }
.pk td { padding: 8px 4px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.pk td > b { font-family: var(--font-head); font-size: 18px; font-weight: 500; }
.pk input { position: absolute; opacity: 0; pointer-events: none; }
.plan { display: block; cursor: pointer; padding: 6px; border: 1px solid transparent; }
.plan b { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 500; }
.plan small { display: block; color: var(--muted); font-size: 11px; margin: 2px 0 6px; }
.plan .buy { display: inline-block; border: 1px solid var(--lime); color: var(--lime); padding: 5px 10px; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; }
.pk input:checked + .plan { border-color: var(--lime); }
.pk input:checked + .plan .buy { background: var(--lime); color: #111; }

@media (max-width: 520px) {
  .pk td > b { font-size: 15px; }
  .plan b { font-size: 16px; }
}

/* own booking actions */
.own-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.own-actions .btn { display: inline-block; }
.btn.danger { border-color: var(--danger); color: var(--danger); }

/* date picker: month tabs over a Monday-first calendar */
.months { margin-top: 12px; }
.month-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.month-tabs .typed { margin-left: auto; }
/* typed date and time next to the calendar and the grid */
.typed { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 6px 10px; height: 36px; box-sizing: border-box; color-scheme: dark; font-family: var(--font-head); font-size: 15px; }
.typed:focus { border-color: var(--lime); outline: none; }
.typed-time { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cal[hidden] { display: none; }
.cal { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; color: var(--muted); font-size: 11px; text-transform: uppercase; padding: 4px 0; }
.cal input { position: absolute; opacity: 0; pointer-events: none; }
.cal .date { width: auto; padding: 10px 0; font-family: var(--font-head); font-size: 18px; cursor: pointer; }
.cal .date.today { border-color: var(--lime); }
.cal .date.off { color: #555; border-color: transparent; background: none; cursor: default; }
.cal input:checked + .date, .cal .date.on { background: var(--lime); border-color: var(--lime); color: #111; }
.cal a.date { text-decoration: none; }

/* time grid: start chips light up the half-hours they take; short gaps and taken slots stay inert */
.starts { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.starts .chip { text-align: center; padding: 10px 0; }
.starts .chip.in { background: var(--lime); border-color: var(--lime); color: #111; }
.starts .chip.short { border-style: dashed; color: var(--muted); }
.starts .chip.busy { color: #555; border-color: transparent; background: none; text-decoration: line-through; cursor: default; }

/* anchors and focus land below the sticky header and above the price bar, without a jump */
html { scroll-behavior: smooth; scroll-padding: 72px 0 110px; }

/* select lists in our colours where the browser allows it (Chrome 135+); others keep the native list */
.field select, .chips select, .field select::picker(select), .chips select::picker(select) { appearance: base-select; }
.field select::picker-icon, .chips select::picker-icon { display: none; }
.field select selectedcontent, .chips select selectedcontent { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field select::picker(select), .chips select::picker(select) { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 4px; margin-top: 4px; max-height: 320px; }
.field select option, .chips select option { padding: 10px 12px; font: inherit; cursor: pointer; }
.field select option::checkmark, .chips select option::checkmark { display: none; }
.field select option:hover, .chips select option:hover, .field select option:focus-visible, .chips select option:focus-visible { background: var(--panel-2); outline: none; }
.field select option:checked, .chips select option:checked { background: var(--lime); color: #111; }
