@import url("./search-controls.css");

/* ============================================================================
   REVALHOME BOOKING — booking.revalhome.ee
   Kodulehe disainisüsteemi jätk (website/assets/css/styles.css tokenid) +
   broneerimiskomponendid. Vt booking/docs/02-DISAINISYSTEEM.md.
   ========================================================================== */

:root {
  --cream: #f6f0e6;
  --cream-2: #ece2d2;
  --ink: #143b42;
  --ink-soft: #3a565b;
  --muted: #6e7f7c;
  --line: #ddd2bf;
  --clay: #dc8a3c;
  --clay-dark: #c0712a;
  --white: #ffffff;
  --ok: #2e7d5b;
  --warn: #b4552d;
  --overlay: rgba(20, 59, 66, .55);
  --shadow-sm: 0 2px 10px rgba(33,27,22,.06);
  --shadow-md: 0 18px 50px rgba(33,27,22,.14);
  --shadow-lg: 0 40px 90px rgba(33,27,22,.20);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* `hidden` peab ALATI peitma. Brauseri oma reegel on ainult `[hidden]{display:none}`
   ja iga meie klass, mis annab `display: grid/flex`, võidab selle spetsiifilisuselt —
   siis jääb `el.hidden = true` VAIKSELT mõjuta (JS ütleb hidden:true, ekraanil paistab).
   Nii jäid pikaajalise üüri paneelile alles lühiajalise hinnaklasside kaardid
   (.rate-cards, display:grid). Ära lisa klassipõhiseid `[hidden]` erandeid — see rida katab kõik. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--cream);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

/* ---------- demo banner ---------- */
.demo-banner {
  background: var(--clay); color: #fff; text-align: center;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 12px;
}

/* ---------- header ---------- */
.bk-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.bk-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; }
.logo .logo-home { color: var(--clay); }
.bk-header .spacer { flex: 1; }
.lang { display: flex; gap: 4px; }
.lang button {
  padding: 6px 10px; border-radius: 100px; font-size: .8rem; font-weight: 600;
  color: var(--ink-soft);
}
.lang button.active { background: var(--ink); color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: .96rem;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 10px 26px rgba(194,104,60,.35); }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(194,104,60,.45); }
.btn-primary:disabled { opacity: .55; transform: none; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- search section ---------- */
/* NB: ainult vertikaalne padding — .wrap külgpadding (24px) peab alles jääma,
   muidu nihkub pealkiri/otsinguriba ülejäänud sisust vasakule (bug 2026-07-19) */
.search-wrap { padding-top: 26px; padding-bottom: 10px; }
.search-head { margin-bottom: 14px; }
.search-head h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1;
}
.search-head p { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.search-head .trust { color: var(--ink-soft); font-size: .88rem; }
.search-head .trust b { color: var(--ink); }
.search-head .trust .star { color: var(--clay); }

.search-bar {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px; gap: 0; box-shadow: var(--shadow-sm);
}
.search-field {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6px 18px; border-right: 1px solid var(--line); min-width: 0;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.search-field input, .search-field .rh-select-btn {
  border: none; background: none; font-family: inherit; font-size: .98rem; font-weight: 600;
  color: var(--ink); width: 100%; outline: none; padding: 2px 0; cursor: pointer;
}
.search-bar .btn { align-self: center; margin-left: 8px; }

/* ---------- tulemused + kaart ---------- */
.results-layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px; align-items: start; padding: 18px 0 60px;
}
.results-layout.map-hidden { grid-template-columns: 1fr; }
.results-layout.map-hidden .bk-map-col { display: none; }

.results-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.results-head .count { font-weight: 600; font-size: .95rem; }
.results-head .spacer { flex: 1; }
.map-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--white);
  font-weight: 600; font-size: .85rem; color: var(--ink);
}
.map-toggle:hover { border-color: var(--clay); color: var(--clay); }

.bk-prop { margin-bottom: 34px; }
.bk-prop-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bk-prop-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.bk-prop-head .addr { color: var(--muted); font-size: .85rem; }
.bk-prop-head .rating { margin-left: auto; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.bk-prop-head .rating .star { color: var(--clay); }
.bk-prop-head .rating .rc { color: var(--muted); font-weight: 500; font-size: .8rem; }

/* Vertikaalne kaart (bob w muster): suur foto üleval, sisu all, hind eraldi real */
.bk-room {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.bk-room:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--clay); }

.bk-carousel {
  position: relative; aspect-ratio: 3 / 1.9; overflow: hidden; background: var(--cream-2);
  border-radius: var(--r-md) var(--r-md) 0 0; display: block;
}
.bk-carousel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); }
.bk-carousel img.cur { opacity: 1; }
.bk-carousel .car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s; box-shadow: var(--shadow-sm); font-size: 1rem;
}
.bk-carousel:hover .car-btn { opacity: 1; }
.bk-carousel .car-btn.prev { left: 8px; }
.bk-carousel .car-btn.next { right: 8px; }
.bk-carousel .car-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 3; }
.bk-carousel .car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.bk-carousel .car-dots i.cur { background: #fff; }
.scarcity {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: var(--warn); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; padding: 4px 10px; border-radius: 100px;
}

.bk-room-body { padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bk-room-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.25; }
.bk-room-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); font-size: .84rem; }
.bk-room-facts span { display: inline-flex; align-items: center; gap: 5px; }
.bk-room-facts svg { width: 14px; height: 14px; color: var(--clay); flex: 0 0 auto; }
.bk-room-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-room-tags span {
  background: var(--cream); border: 1px solid var(--line); border-radius: 100px;
  font-size: .74rem; font-weight: 600; color: var(--ink-soft); padding: 3px 10px;
}

/* bob w muster: hind virnas (märgis / hind / kokku), mitte kõik ühel real */
.bk-room-price {
  padding: 12px 20px 16px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 2px; border-top: 1px dashed var(--line);
}
.bk-room-price .pn { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.bk-room-price .pn small { font-family: var(--sans); font-weight: 500; font-size: .78rem; color: var(--muted); }
.bk-room-price .pt { font-size: .86rem; color: var(--ink-soft); }
.bk-room-price .vat { font-size: .74rem; color: var(--muted); }
.bk-room-price .btn { margin-top: 8px; min-width: 150px; } /* ainult avavaate "Otsi" nupp */
.bk-room-link { cursor: pointer; }

/* kaart */
.bk-map-col { position: sticky; top: 84px; height: calc(100vh - 110px); min-height: 420px; }
.bk-map { width: 100%; height: 100%; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); }
.map-pin {
  background: var(--white); border: 1.5px solid var(--ink); color: var(--ink);
  font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 100px;
  box-shadow: var(--shadow-sm); cursor: pointer; white-space: nowrap;
}
.map-pin.active { background: var(--clay); border-color: var(--clay); color: #fff; }
.maplibregl-popup-content {
  font-family: var(--sans); background: var(--cream); border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); padding: 12px 14px; color: var(--ink);
}
.maplibregl-popup-content h4 { font-family: var(--serif); font-size: .98rem; margin-bottom: 2px; }
.maplibregl-popup-content .p { font-size: .82rem; color: var(--ink-soft); }

/* tühi olek */
.bk-empty { text-align: center; padding: 48px 20px; }
.bk-empty h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 8px; }
.bk-empty p { color: var(--ink-soft); margin-bottom: 22px; }
.alt-dates { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.alt-date {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 18px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease);
  text-align: left;
}
.alt-date:hover { border-color: var(--clay); transform: translateY(-2px); }
.alt-date .d { font-weight: 600; font-size: .92rem; }
.alt-date .f { font-size: .8rem; color: var(--ink-soft); }

/* naaberkuupäevade riba tulemuste kohal (bob w Explore alternate dates) */
.alt-strip { margin: 0 0 18px; }
.alt-strip .alt-title {
  display: block; font-size: .8rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.alt-strip .alt-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.alt-strip .alt-date { flex: 0 0 auto; min-width: 150px; }
.alt-date.cur {
  border-color: var(--clay); background: var(--white); cursor: default;
  box-shadow: inset 0 0 0 1px var(--clay);
}
.alt-date.cur:hover { transform: none; }
.alt-date.cur .f { color: var(--clay); font-weight: 600; }

/* skeleton */
.skel { border-radius: var(--r-md); background: linear-gradient(100deg, var(--cream-2) 40%, #f2ead9 50%, var(--cream-2) 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite; height: 180px; margin-bottom: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- detailvaade ---------- */
.room-hero { padding-top: 22px; padding-bottom: 8px; } /* külgpadding .wrap-ist */
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--clay); }
.room-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
.room-hero .sub { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }

/* Galerii: FIKSEERITUD reakõrgused (muidu venitab grid pildid paigast ja
   object-fit kärbib koledalt — omaniku bug-raport 2026-07-19). Paigutus
   kohandub fotode arvuga (vt room.js: data-count). */
.bk-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 232px 232px; gap: 10px; border-radius: var(--r-md); overflow: hidden; margin: 16px 0; position: relative; }
.bk-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: filter .2s; border-radius: 2px; }
.bk-gallery img:hover { filter: brightness(.92); }
.bk-gallery .g-main { grid-row: 1 / 3; }
.bk-gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 464px; }
.bk-gallery[data-count="2"] { grid-template-columns: 2fr 1fr; grid-template-rows: 464px; }
.bk-gallery[data-count="2"] .g-main { grid-row: 1; }
.bk-gallery[data-count="3"] { grid-template-columns: 2fr 1fr; }
.gallery-all {
  position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.95);
  border-radius: 100px; padding: 8px 16px; font-weight: 600; font-size: .84rem;
  box-shadow: var(--shadow-sm);
}
.gallery-all:hover { background: #fff; }

.room-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px; align-items: start; padding: 8px 0 60px; }
.room-main section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.room-main section:last-child { border-bottom: none; }
.room-main h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 12px; }
.room-main p { color: var(--ink-soft); font-size: .96rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.spec { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.spec .k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec .v { font-weight: 600; font-size: .92rem; margin-top: 2px; }
.ame-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ame-list span { background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font-size: .86rem; font-weight: 500; color: var(--ink-soft); }
.mini-map { height: 260px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }

.bk-panel {
  position: sticky; top: 84px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 22px;
}
.bk-panel .ph { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.bk-panel .ph .pn { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
.bk-panel .ph small { color: var(--muted); font-size: .82rem; }
.bk-panel .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .92rem; }
.bk-panel .row .k { color: var(--ink-soft); }
.bk-panel .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.02rem; }
.bk-panel .btn { width: 100%; margin-top: 14px; }
.bk-panel .note { font-size: .76rem; color: var(--muted); margin-top: 10px; text-align: center; }
.bk-panel .warn { color: var(--warn); font-size: .84rem; font-weight: 600; }
.panel-dates {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line);
  border-radius: var(--r-sm); margin-bottom: 10px;
  /* NB: MITTE overflow:hidden — see lõikas külaliste dropdowni ära (bug 2026-07-19) */
}
.panel-dates .rh-select-btn {
  border: none; background: none; font-family: inherit; font-size: .98rem; font-weight: 600;
  color: var(--ink); width: 100%; padding: 2px 0; cursor: pointer;
}
.panel-dates .rh-select-menu { left: auto; right: 0; min-width: 210px; }
.panel-dates > div { padding: 10px 12px; cursor: pointer; }
.panel-dates > div:first-child { border-right: 1px solid var(--line); }
.panel-dates label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.panel-dates input { border: none; background: none; font: inherit; font-weight: 600; color: var(--ink); width: 100%; outline: none; cursor: pointer; }
.panel-guests { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 4px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-btn.prev { left: 22px; } .lightbox .lb-btn.next { right: 22px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 1rem; }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: .85rem; font-weight: 600; }

/* ---------- checkout ---------- */
.co-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px; align-items: start; padding: 6px 0 60px; }
.co-main h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.co-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 18px; }
.co-card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.f-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.f-field input {
  width: 100%; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-weight: 500; color: var(--ink); padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.f-field input:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(220,138,60,.15); background: #fff; }
.f-field .hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.phone-row { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }
.checkline { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .9rem; cursor: pointer; }
.checkline input { accent-color: var(--clay); width: 17px; height: 17px; }

.bk-extra { display: grid; grid-template-columns: 96px 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bk-extra:last-child { border-bottom: none; }
.bk-extra .ximg { grid-row: 1 / span 4; width: 96px; height: 76px; object-fit: cover; border-radius: var(--r-sm); }
/* transferi suund + kellaaeg (nähtav pärast "Lisa" vajutust).
   Väljad on samad teemastatud rhSelect-dropdownid mis otsingurbal — natiivne
   <select>/<input type="time"> nägi seadmeti katkine välja (omanik 2026-07-25). */
.bk-extra .xtransfer { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.bk-extra .xfield { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.bk-extra .xlbl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Kiri on väiksem kui kaardi põhitekst (omanik 2026-07-26: dropdownides oli
   tekst liiga suur) — nupp ja menüü hoiavad SAMA suurust, muidu "hüppab". */
.bk-extra .xtransfer .rh-select-btn {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font: inherit; font-size: .86rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.bk-extra .xtransfer .rh-select.open .rh-select-btn { border-color: var(--clay); }
/* Lennunumber on vabatekst, mitte valik — aga peab NÄGEMA VÄLJA sama moodi
   nagu kõrvalolevad dropdownid, muidu paistab kaardi sees kaks eri vormistiili. */
.bk-extra .xtransfer .xflight {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font: inherit; font-size: .86rem; font-weight: 500; color: var(--ink);
  text-transform: uppercase; width: 100%;
}
.bk-extra .xtransfer .xflight:focus { outline: none; border-color: var(--clay); }
/* selgitus („juht jälgib lendu") ja viga terve rea laiuselt väljade all */
.bk-extra .xtransfer .xflightwhy { flex-basis: 100%; grid-column: auto; margin-top: -4px; }
.bk-extra .xtransfer .xerr { flex-basis: 100%; margin-top: 0; }
/* 96 kellaaega ei mahu ekraanile — menüü kerib */
.bk-extra .xtransfer .rh-select-menu { max-height: 260px; overflow-y: auto; min-width: 100%; left: 0; top: calc(100% + 6px); }
.bk-extra .xtransfer .rh-option { font-size: .86rem; padding: 8px 12px; }
.bk-extra .xn { font-weight: 600; font-size: .96rem; }
.bk-extra .xd { grid-column: 2; font-size: .84rem; color: var(--ink-soft); }
.bk-extra .xnote { grid-column: 2; font-size: .76rem; color: var(--clay); font-weight: 600; }
.bk-extra .xp { grid-row: 1; grid-column: 3; font-weight: 600; font-size: .92rem; text-align: right; white-space: nowrap; }
.bk-extra .xp small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
/* Nupp on ALATI real 2 (hinna all). Ilma grid-row'ta paigutab grid ta
   automaatselt järgmisele vabale reale — ja .xnote'iga kaardil (transfer)
   lükkus ta reale 3 ehk teistest kaartidest madalamale. */
.bk-extra .xbtn { grid-column: 3; grid-row: 2; justify-self: end; align-self: start; }
.bk-extra .xbtn .btn-sm.added { background: var(--clay); color: #fff; border-color: var(--clay); }
.x-times { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
.x-time { border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font-size: .84rem; font-weight: 600; background: var(--white); }
.x-time.sel { background: var(--clay); border-color: var(--clay); color: #fff; }

/* hinnavalija — bob w Inner Circle muster: 2 peret × (nonref +€0 / flex +€X) */
.rate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.rate-family {
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 16px; transition: border-color .2s, background .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.rate-family .rf-price { margin-top: auto; } /* hind+eelised joonduvad alla, kastid võrdsed */
.rate-family.sel { border-color: var(--clay); background: #fdf3e4; box-shadow: 0 0 0 3px rgba(220,138,60,.12); }
.rate-family .rf-head { margin-bottom: 10px; }
.rate-family .rf-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.rate-family .rf-sub { display: block; font-size: .8rem; color: var(--ink-soft); }
.rate-opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent;
  transition: background .15s, border-color .15s; margin-bottom: 4px;
}
.rate-opt:hover:not([disabled]) { background: rgba(255,255,255,.7); }
.rate-opt.sel { background: var(--white); border-color: var(--clay); }
.rate-opt[disabled] { opacity: .55; cursor: not-allowed; }
.rate-opt .rc-dot {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--muted);
  flex: 0 0 auto; margin-top: 3px; transition: border-color .2s, box-shadow .2s;
}
.rate-opt.sel .rc-dot { border-color: var(--clay); box-shadow: inset 0 0 0 3.5px var(--clay); }
.rate-opt .ro-body { flex: 1; min-width: 0; }
.rate-opt .ro-body b { display: block; font-size: .9rem; }
.rate-opt .ro-desc { display: block; font-size: .76rem; color: var(--ink-soft); line-height: 1.45; }
.rate-opt .ro-add { font-weight: 700; font-size: .86rem; white-space: nowrap; }
.rf-price { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: .9rem; }
.rf-price b { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.rf-price small { color: var(--muted); }
.rf-perks { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.rf-perks li { font-size: .8rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.rf-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.rf-perks.struck li { text-decoration: line-through; color: var(--muted); }
.rf-perks.struck li::before { content: "✕"; color: var(--muted); }
.rf-note { margin-top: 8px; font-size: .76rem; color: var(--muted); }
.rate-family.sel .rf-note { color: var(--ink-soft); }
/* kompaktne variant detailvaate paneelis: pered üksteise all */
.bk-panel .rate-cards { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
.bk-panel .rate-family { padding: 12px; }
.bk-panel .rf-perks { display: none; } /* eelised checkoutis, paneel kompaktne */
.bk-panel .rf-note { font-size: .74rem; } /* aga "konto luuakse automaatselt" selgitus jääb nähtavale */

/* klubihinna märgis tulemuste kaardil */
.club-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay);
}

/* mitme toa märgis tulemuste kaardil (grupp, mis ei mahu ühte tuppa) */
.rooms-chip {
  display: inline-block; align-self: flex-end;
  background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; padding: 3px 10px; border-radius: 100px;
}

/* PAKETIKAART — mitmest toatüübist (või kahest kõrvutimajast) kokku pandud
   tellimus. Sama kere mis tavalisel majagrupil, aga eristuva raami ja
   koosseisu-nimekirjaga: külaline peab kohe nägema, MIS toad ta ostab. */
.bk-pkg { border: 2px solid var(--clay); border-radius: var(--r-md); padding: 0 0 4px; }
.bk-pkg .bk-prop-head { padding-left: 14px; padding-right: 14px; }
.bk-pkg .bk-room { border-bottom: 0; }
.pkg-sub { font-size: .86rem; color: var(--muted); margin: 6px 0 8px; max-width: 52ch; }
.pkg-legs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.pkg-legs li {
  font-size: .82rem; font-weight: 600;
  background: var(--cream-2); border-radius: 100px; padding: 4px 12px;
}
.pkg-where { font-weight: 500; color: var(--muted); }
.bk-pkg .bk-room-price .btn { margin-top: 8px; }

/* tubade arvu valik toa paneelis (grupibroneering) */
.panel-rooms {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 10px; padding: 10px 12px;
}
.panel-rooms label {
  display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.panel-rooms .rh-select-btn {
  border: none; background: none; font-family: inherit; font-size: .98rem; font-weight: 600;
  color: var(--ink); width: 100%; padding: 2px 0; cursor: pointer;
}
.panel-rooms .note { text-align: left; margin-top: 6px; }
/* Toakaardi suur number on INSIDERI hind (omanik 2026-07-27), tavahind selle
   ees läbi kriipsutatuna — hinnavalija vaikimisi valik on siiski tavahind. */
.bk-room-price .pn s { color: var(--muted); font-weight: 400; font-size: .95rem; margin-right: 4px; }

/* PIKENDAJA PRAEGUNE TOATÜÜP — kaart tuleb tulemustes esimesena ja saab
   märgise, et külaline ei valiks kogemata teist tüüpi tuba (`?room=` URL-is,
   vt index.js). `same-room-note` on sama muster tühjaks jäänud juhuks: toatüüp
   on välja müüdud ja allolevad kaardid tähendavad kolimist. */
.bk-room.same-room { background: var(--cream-2); }
.same-room-chip {
  align-self: flex-start;
  background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
}
/* toa lehel (pikenduslink) on märgis pealkirja kohal, mitte flex-kaardis */
.room-hero .same-room-chip { display: inline-block; margin-bottom: 8px; }
.same-room-note {
  background: var(--cream-2); border-left: 3px solid var(--clay);
  border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 22px;
}
.same-room-note h3 { font-family: var(--serif); font-weight: 600; font-size: 1.04rem; margin-bottom: 5px; }
.same-room-note p { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; max-width: 62ch; }

/* Insideri selgituskaart tulemuste voos (bob w "Join Inner Circle" bänneri muster) */
.insider-note {
  background: var(--cream-2); border-radius: var(--r-md);
  padding: 18px 20px; margin: 0 0 34px;
}
.insider-note h3 { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; margin: 4px 0 6px; }
.insider-note p { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; max-width: 62ch; }

/* checkouti pea (pealkiri gridi kohal, et kokkuvõte joonduks Vali hind kaardiga) */
.co-head { padding-top: 22px; }
.co-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.co-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.co-card-head h2 { margin-bottom: 0; }
.voucher-row { display: flex; gap: 8px; margin-bottom: 14px; }
.voucher-row input {
  flex: 1; background: var(--cream); border: 1px solid var(--line); border-radius: 100px;
  font: inherit; font-weight: 500; color: var(--ink); padding: 9px 16px; outline: none;
}
.voucher-row input:focus { border-color: var(--clay); }
.co-summary .row.disc, .bk-panel .row.disc { color: var(--ok); font-weight: 600; }
.co-terms { font-size: .8rem; color: var(--muted); padding-top: 12px; text-align: center; }
.co-terms a { text-decoration: underline; }
.co-terms a:hover { color: var(--clay); }

/* tagasi-nupp (toa- ja checkout-lehel) */
.back-link {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
  font-weight: 600; font-size: .88rem; color: var(--ink-soft);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--white);
  transition: border-color .2s, color .2s;
}
.back-link:hover { border-color: var(--clay); color: var(--clay); }

.demo-note {
  background: #fdf3e4; border: 1px solid var(--clay); border-radius: var(--r-sm);
  color: var(--ink); padding: 12px 16px; font-size: .87rem; margin: 12px 0;
}
.co-summary { position: sticky; top: 84px; }
.co-summary .co-card { box-shadow: var(--shadow-md); }
.co-summary img { border-radius: var(--r-sm); aspect-ratio: 3/2; object-fit: cover; margin-bottom: 12px; }
.co-summary .sum-title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.co-summary .sum-sub { color: var(--muted); font-size: .84rem; margin-bottom: 10px; }
.co-summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .92rem; }
.co-summary .row .k { color: var(--ink-soft); }
.co-summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }
.co-summary .row.total .v { font-family: var(--serif); font-size: 1.3rem; }
.co-summary .policy { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ---------- kinnitus ---------- */
.confirm-wrap { max-width: 640px; margin: 0 auto; text-align: center; padding: 60px 24px 80px; }
.confirm-wrap .tick {
  width: 74px; height: 74px; border-radius: 50%; background: var(--clay); color: #fff;
  font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  box-shadow: 0 16px 40px rgba(194,104,60,.4);
}
.tick.cancel { background: var(--warn); }
.confirm-wrap h1 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin-bottom: 6px; }
.confirm-wrap .bno { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; color: var(--clay); margin: 10px 0 4px; }
.confirm-wrap .sub { color: var(--ink-soft); }
.next-steps { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin: 28px 0; }
.next-steps h2 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 12px; }
.next-steps ol { list-style: none; counter-reset: n; }
.next-steps li { counter-increment: n; display: flex; gap: 12px; padding: 8px 0; font-size: .93rem; color: var(--ink-soft); }
.next-steps li::before {
  content: counter(n); flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--cream-2); color: var(--ink); font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------- footer ---------- */
/* ---------- külaliste arvustused (päris Booking.com tsitaadid) ---------- */
.bk-reviews { background: var(--cream-2); padding: 52px 0 58px; }
.rv-title { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; }
.rv-sub { color: var(--ink-soft); font-size: .92rem; margin: 4px 0 24px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.review-score {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--cream); border-radius: 100px; padding: 5px 13px; margin-bottom: 14px;
}
.review-score b { color: var(--clay); font-size: 1rem; }
.review-stars { color: var(--clay); letter-spacing: 2px; font-size: .8rem; }
.review-card blockquote { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; margin-bottom: 16px; flex: 1; }
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.review-who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.review-who .flag { font-size: 1.2rem; }
.review-src { font-size: .78rem; color: var(--muted); }

.bk-footer { border-top: 1px solid var(--line); padding: 30px 0 36px; color: var(--muted); font-size: .84rem; }
.bk-footer .wrap { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 24px 38px; align-items: start; }
.footer-company, .footer-links, .footer-contact { display: flex; flex-direction: column; gap: 7px; }
.footer-company strong { color: var(--ink-soft); font-weight: 600; }
.footer-links, .footer-contact { min-width: max-content; }
.bk-footer a:hover { color: var(--clay); }

@media (max-width: 760px) {
  .bk-footer .wrap { grid-template-columns: 1fr; gap: 22px; }
  .footer-links, .footer-contact { min-width: 0; }
}

/* ---------- toast ---------- */
/* Keskel all, ikooniga — mitte nurgas (omaniku tagasiside 2026-07-21) */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  transform: translate(-50%, 12px); width: max-content; max-width: min(440px, calc(100vw - 40px));
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--ink); color: #fff;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 59, 66, .35); padding: 13px 18px;
  font-size: .92rem; line-height: 1.45; opacity: 0; transition: all .28s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .toast-ico { flex: 0 0 auto; margin-top: 1px; }
.toast .toast-ico::before { content: "✓"; color: #8fd4b4; font-weight: 700; }
.toast.error .toast-ico::before { content: "!"; }
.toast.error .toast-ico {
  width: 18px; height: 18px; border-radius: 50%; background: var(--warn);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
}
.toast.error .toast-ico::before { color: #fff; }

/* Makseviisi valik */
.pm-cards { display: grid; gap: 10px; margin-bottom: 14px; }
.pm-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.pm-card:hover { border-color: var(--clay); }
.pm-card.selected { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.pm-radio {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); position: relative;
}
.pm-card.selected .pm-radio { border-color: var(--clay); }
.pm-card.selected .pm-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--clay);
}
.pm-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pm-body b { font-size: .95rem; }
.pm-sub { font-size: .82rem; color: var(--muted); }
.pm-ico { flex: 0 0 22px; display: flex; color: var(--muted); }
.pm-ico svg { width: 22px; height: 22px; }
.pm-card.selected .pm-ico { color: var(--clay); }

/* Vormivälja inline-viga */
.f-field.invalid input { border-color: var(--warn); background: #fbf1ec; }
.f-field.invalid label { color: var(--warn); }
.f-err {
  color: var(--warn); font-size: .82rem; margin-top: 5px; display: flex; gap: 5px;
  align-items: baseline;
}
.f-err::before { content: "↳"; opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .results-layout { grid-template-columns: 1fr; }
  /* mobiilis avaneb kaart NIMEKIRJA KOHALE, mitte lehe lõppu (omanik 2026-07-19) */
  .bk-map-col { position: static; height: 380px; display: none; order: -1; margin-bottom: 18px; }
  .results-layout.map-open .bk-map-col { display: block; }
  .room-layout, .co-layout { grid-template-columns: 1fr; }
  .room-layout aside { order: -1; } /* mobiilis broneerimiskast kõige üles (omanik 2026-07-19) */
  .bk-panel, .co-summary { position: static; }
}
@media (max-width: 860px) {
  .search-bar { grid-template-columns: 1fr 1fr; border-radius: var(--r-md); gap: 4px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .search-bar .btn { grid-column: 1 / -1; margin: 6px; }
  .bk-carousel { aspect-ratio: 3 / 2; }
  .bk-room-price .btn { min-width: 0; align-self: stretch; } /* avavaate "Otsi" nupp täislaiuseks */
  .bk-gallery, .bk-gallery[data-count] { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 130px; grid-auto-rows: 130px; }
  .bk-gallery .g-main, .bk-gallery[data-count] .g-main { grid-column: 1 / -1; grid-row: 1; }
  .form-grid, .rate-cards { grid-template-columns: 1fr; }
}

/* ---------- pikaajaline üür (alates 1 kuust) — Larseni-stiilis paneel ---------- */
.lt-hint { margin: 2px 0 10px; font-size: .8rem; color: var(--muted); }
/* "Kuumakse kokku" — paksem kui tavarida, aga mitte lõpusumma (see on
   "Esimene makse" / "Maksa kohe"). Kaks rasket rida ühes paneelis vajavad
   selget hierarhiat, muidu ei tea külaline, kumb number on see, mida ta maksab. */
.bk-panel .row.strong, .co-summary .row.strong {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700;
}
/* Ploki vahepealkiri paneelis/kokkuvõttes (nt "Maksa kohe"). */
.bk-panel .row-head, .co-summary .row-head {
  margin: 16px 0 2px; font-size: .7rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.lt-flag { margin-bottom: 8px; display: inline-block; }
.lt-offers { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.lt-offer {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff;
  padding: 10px 12px; font: inherit; transition: border-color .15s, background .15s;
}
.lt-offer:hover { border-color: var(--clay); }
.lt-offer.sel { border-color: var(--ink); background: var(--cream); }
.lt-offer:disabled { cursor: not-allowed; opacity: .65; }
.lt-offer:disabled:hover { border-color: var(--line); }
.lt-offer .lt-line { display: flex; flex-direction: column; gap: 1px; }
.lt-offer .lt-line b { font-size: .92rem; }
.lt-offer .lt-sub { font-size: .78rem; color: var(--muted); }
.lt-offer .lt-price { font-weight: 700; white-space: nowrap; }
.lt-offer .lt-price small { font-weight: 400; color: var(--muted); }
.lt-save {
  position: absolute; top: -9px; left: 10px; background: var(--ok, #2c7a4b); color: #fff;
  font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.lt-note { margin-top: 10px; }

/* Lepingu eelvaate modal (checkout) */
.lease-modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 43, 46, .55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.lease-modal-box {
  position: relative; width: min(820px, 100%); height: min(86vh, 900px);
  background: #fff; border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
}
.lease-modal-box iframe { width: 100%; height: 100%; border: 0; }
.lease-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; border: 0; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 1rem; line-height: 1;
}
