/* Landing page. Same tokens and type as liteapi-money-flow.html:
   indigo --accent for interface, brass --money for prices.
   The site is dark only, never light (the user's rule, 2026-11-16): one set of colours,
   no prefers-color-scheme or data-theme switch. */
:root {
  color-scheme: dark;
  --paper: #0F1220;
  --paper-edge: #070910;
  --surface: #171B2E;
  --ink: #E8EAF4;
  --muted: #9AA0BA;
  --line: #2A3049;
  --accent: #8C9BFF;
  --accent-bg: #1F2547;
  --money: #F0B54A;
  --money-bg: #2E2513;
  --good: #5CCB92;
  --warn: #F08A72;
  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 12px;
  --shadow: none;
  /* card borders, one colour per feed */
  --c-featured: #3E9B6B; --c-activity: #9A6BD8; --c-reviews: #C9922F; --c-posts: #4F88D6;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239AA0BA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Every page darkens towards the window's edges (keep it: the user's rule, 2026-11-16).
   The gradient starts at the content's edge (--page-w), so the middle stays plain, but
   always covers at least --fade on each side, so pages as wide as the window (the members
   area is 1440px, hotel and checkout 1320px) still show it.  --fade is 0 at phone widths. */
body {
  --page-w: 1180px;
  --fade: clamp(0px, 12vw - 60px, 170px);
  margin: 0;
  background: var(--paper) fixed linear-gradient(to right,
    var(--paper-edge), var(--paper) max(var(--fade), calc(50% - var(--page-w) / 2)),
    var(--paper) min(calc(100% - var(--fade)), calc(50% + var(--page-w) / 2)), var(--paper-edge));
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
}
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: 1.6rem; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 500 0.75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.muted { color: var(--muted); }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font: 700 1.25rem/1 var(--f-display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
/* Dev only (account.js); the auto margin keeps it beside the brand, not centred. */
.env-badge { margin-right: auto; margin-left: -6px; font: 500 0.68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--money); background: var(--money-bg); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.head-nav { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; }
.btn-link { font: 600 0.9rem/1 var(--f-body); color: var(--surface); background: var(--accent); padding: 10px 14px; border-radius: 8px; text-decoration: none; white-space: nowrap; }

main { display: grid; gap: 56px; padding-block: 36px 80px; }
.intro { display: grid; gap: 10px; }
.intro p { color: var(--muted); max-width: 62ch; }

/* ---------- feeds: 2 x 2 (or 3 across) on desktop, stacked on mobile ---------- */
.feeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; scroll-margin-top: 16px; }
/* Three feeds (Community posts switched off, posts::ENABLED): three across on wide
   screens; in between, the third takes the whole second row. */
.feeds > .feed:nth-child(3):last-child { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .feeds:not(:has(> .feed:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feeds > .feed:nth-child(3):last-child { grid-column: auto; }
}
.feed { display: grid; gap: 10px; min-width: 0; align-content: start; }
.feed-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feed-bar h2 { font-size: 1.1rem; display: flex; align-items: baseline; gap: 8px; }
.feed-bar small { font: 500 0.68rem/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.feed-tools { display: flex; gap: 8px; }
.pause, .expand { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.pause:hover, .expand:hover { border-color: var(--accent); color: var(--accent); }
.pause:focus-visible, .expand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pause svg, .expand svg { width: 14px; height: 14px; fill: currentColor; }
.pause .i-play, .pause[aria-pressed="true"] .i-pause { display: none; }
.pause[aria-pressed="true"] .i-play { display: block; }
.pause[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.expand svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.expand .i-collapse, .expand[aria-pressed="true"] .i-expand { display: none; }
.expand[aria-pressed="true"] .i-collapse { display: block; }
/* Full screen: the feed itself covers the window (feeds.js), so its ticker keeps
   running and taking new items; the cards stay a readable column in the middle. */
.feed.expanded {
  --page-w: 860px;
  position: fixed; inset: 0; z-index: 40; grid-template-rows: auto minmax(0, 1fr); gap: 14px;
  padding: 20px max(20px, (100vw - var(--page-w)) / 2) 24px;
  background: var(--paper) linear-gradient(to right,
    var(--paper-edge), var(--paper) calc(50% - var(--page-w) / 2),
    var(--paper) calc(50% + var(--page-w) / 2), var(--paper-edge));
  animation: feed-open .22s ease-out;
}
.feed.expanded .feed-bar h2 { font-size: 1.4rem; }
.feed.expanded .ticker { height: auto; }
:root.feed-open { overflow: hidden; }
@keyframes feed-open { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .feed.expanded { animation: none; } }
.ticker {
  position: relative; height: 420px; overflow: hidden; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); padding-inline: 10px;
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: grid; padding-top: 10px; will-change: transform; }
.ticker-empty { padding: 40px 12px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.ticker-empty p { margin: 0; }
.ticker-empty .ticker-hint { margin-top: 10px; color: var(--ink); }
.ticker-hint a { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ticker { cursor: grab; touch-action: pan-x; user-select: none; -webkit-user-select: none; }
  .ticker.dragging { cursor: grabbing; }
}
@media (prefers-reduced-motion: reduce) { .ticker { overflow-y: auto; -webkit-mask-image: none; mask-image: none; } }

.card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
#ticker-featured .card { border-color: var(--c-featured); }
#ticker-activity .card { border-color: var(--c-activity); }
#ticker-reviews .card { border-color: var(--c-reviews); }
#ticker-posts .card { border-color: var(--c-posts); }
.card.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); } }
@media (prefers-reduced-motion: reduce) { .card.fresh { animation: none; } }
.thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--accent-bg); }
.card-body { display: grid; gap: 3px; min-width: 0; align-content: start; }
.card-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
/* Featured cards: the name links to the hotel page, stretched over the whole card. */
.card:has(.card-link) { position: relative; transition: border-color 0.15s; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.card-link:hover) .card-link, .card-link:focus-visible { text-decoration: underline; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-text { font-size: 0.86rem; line-height: 1.45; }
.card-text b { font-weight: 600; }
.card-meta { font-size: 0.76rem; color: var(--muted); }
.card-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 0.8rem; }
.price { font: 600 0.95rem/1 var(--f-mono); color: var(--money); font-variant-numeric: tabular-nums; }
.tag { width: fit-content; font: 500 0.64rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 6px; border-radius: 4px; color: var(--accent); background: var(--accent-bg); }
.tag.sponsored { color: var(--money); background: var(--money-bg); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 0.85rem/1 var(--f-display); color: #fff; }
.avatar.anon { background: var(--line); color: var(--muted); }
.card.act, .card.post { grid-template-columns: 40px minmax(0, 1fr); }
.score { width: 44px; height: 44px; border-radius: 10px 10px 10px 2px; display: grid; place-items: center; font: 600 0.95rem/1 var(--f-mono); color: var(--surface); background: var(--accent); }
.card.review { grid-template-columns: 44px minmax(0, 1fr); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Community posts: name · time, text with "Read all", the member's photo, link chips. */
.post-head { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; }
.post-time { font-weight: 400; font-size: 0.76rem; color: var(--muted); }
.post-text { white-space: pre-line; overflow-wrap: anywhere; }
.read-all { justify-self: start; padding: 0; border: 0; background: none; font: 600 0.78rem/1.4 var(--f-body); color: var(--accent); cursor: pointer; }
.read-all:hover { text-decoration: underline; }
.post-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-top: 4px; background: var(--accent-bg); }
.post-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.link-chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.74rem; color: var(--accent); text-decoration: none; }
.link-chip:hover { border-color: var(--accent); }

/* ---------- search ---------- */
/* Welcome banner (the user's banner.png): the photo is cropped from it, the text is real.
   Dark, like the photo. */
.welcome {
  --w-bg: #0E1021; --w-violet: #9D6BFF;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: center; gap: 14px; min-height: 320px;
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 56px);
  border-radius: 18px; background: var(--w-bg); color: #fff;
}
.welcome-photo {
  position: absolute; z-index: -2; top: 0; right: 0; width: 64%; height: 100%;
  object-fit: cover; object-position: 30% center;
}
/* Fade the photo into the dark side, with a violet glow behind the headline. */
.welcome::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 22% 30%, rgba(109, 52, 230, .38), transparent 70%),
    linear-gradient(90deg, var(--w-bg) 0%, var(--w-bg) 37%, rgba(14, 16, 33, .8) 48%, rgba(14, 16, 33, .25) 66%, transparent 82%);
}
.welcome-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font: 500 0.8rem/1 var(--f-body); letter-spacing: 0.3em; text-transform: uppercase; color: #C2B2FF;
}
.welcome-eyebrow::after { content: ""; width: 56px; height: 2px; background: var(--w-violet); }
.welcome h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; }
.welcome h1 span {
  color: var(--w-violet);
  background: linear-gradient(90deg, #8B5CF6, #B98AFF); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.welcome-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #CBCDE3; max-width: 46ch; }
.welcome-perks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 12px; }
.welcome-perks li { display: flex; align-items: center; gap: 10px; padding-inline: 18px; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.welcome-perks li:first-child { padding-left: 0; }
.welcome-perks li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.welcome-perks svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--w-violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.welcome + .search { margin-top: -20px; }

.search { display: grid; gap: 22px; scroll-margin-top: 16px; }
.search-head { display: grid; gap: 8px; }
.search-head p { color: var(--muted); }
.modes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.modes legend { padding: 0; margin-bottom: 10px; }

/* Mode cards: a photo background (static/img/modes/, cropped from the user's booking-assets.png)
   with a scrim behind the text and a sheen on hover. --img-1x/--img-2x change per breakpoint. */
.mode {
  --g1: #3346C9; --g2: #7B3FE4; --g3: #E0559A;
  --img-1x: url("/img/modes/hotel-md.webp"); --img-2x: url("/img/modes/hotel-lg.webp");
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  display: grid; align-content: end; gap: 4px; min-height: 150px; padding: 18px;
  border-radius: 16px; color: #fff;
  background-color: var(--g2);
  background-image:
    linear-gradient(90deg, rgba(10,12,40,.38), rgba(10,12,40,.12) 45%, transparent 70%),
    var(--img-1x);
  background-image:
    linear-gradient(90deg, rgba(10,12,40,.38), rgba(10,12,40,.12) 45%, transparent 70%),
    image-set(var(--img-1x) 1x, var(--img-2x) 2x);
  background-size: cover; background-position: right 30%; background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px -12px var(--g2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.mode.location {
  --g1: #0E7C86; --g2: #2463EB; --g3: #5B8DEF;
  --img-1x: url("/img/modes/location-md.webp"); --img-2x: url("/img/modes/location-lg.webp");
}
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode-title { font: 700 1.35rem/1.1 var(--f-display); letter-spacing: -0.01em; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.mode-sub { font-size: 0.86rem; opacity: .95; max-width: 24ch; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.mode::after {
  /* the sheen */
  content: ""; position: absolute; inset: -40% -60%; z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.38) 50%, transparent 60%);
  transform: translateX(-60%);
}
.mode .check { position: absolute; top: 14px; left: 18px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); display: grid; place-items: center; }
.mode .check::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s ease; }
.mode:has(input:checked) { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--g2), 0 14px 30px -12px var(--g2); }
.mode:has(input:checked) .check::after { transform: scale(1); }
.mode:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.modes:has(input:checked) .mode:not(:has(input:checked)) { filter: saturate(.55) brightness(.92); }
@media (prefers-reduced-motion: no-preference) {
  .mode:hover { transform: translateY(-2px); }
  .mode:hover::after, .mode:has(input:checked)::after { transition: transform .9s ease; transform: translateX(60%); }
}

.form-slot:empty::before { content: "Choose Hotel name or Location to start."; display: block; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.search-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1.3fr)) repeat(3, minmax(0, 1fr)); gap: 14px; }
.ages { border: 0; margin: 0; padding: 0; }
.ages[hidden] { display: none; }
.ages legend { padding: 0; margin-bottom: 6px; }
.age-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.85rem; color: var(--muted); }
.field input, .field select {
  font: 500 1rem/1.2 var(--f-body); color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); width: 100%; min-width: 0; min-height: 46px;
}
/* Draw our own chevron so it sits 12px in from the right, like the date inputs' calendar icon. */
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-bg); }
.check-field { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.search-btn {
  font: 600 1rem/1 var(--f-body); color: #fff; border: 0; border-radius: 10px; padding: 14px 26px; cursor: pointer; min-width: 140px;
  background: linear-gradient(135deg, #3346C9, #7B3FE4);
}
.search-btn[disabled] { opacity: .65; cursor: progress; }
.form-error { color: var(--warn); font-size: 0.9rem; min-height: 1.3em; }

/* combobox */
.combo { position: relative; }
.combo input { padding-right: 40px; }
.combo[data-busy="true"]::after {
  content: ""; position: absolute; right: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.listbox {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.18);
  max-height: 320px; overflow-y: auto;
}
.listbox[hidden] { display: none; }
.option { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.option[aria-selected="true"] { background: var(--accent-bg); }
.option b { display: block; font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option span { display: block; font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option svg { color: var(--muted); }
.listbox .none { padding: 10px; color: var(--muted); font-size: 0.9rem; }

/* results */
.results { display: grid; gap: 14px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.results-head h2 { font-size: 1.3rem; }
.result {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
}
.result.exact { border-color: var(--accent); }
/* The whole card opens the hotel page: the name's link stretches over it. */
.result { position: relative; transition: border-color .15s; }
.result:hover { border-color: var(--accent); }
.result-link { color: inherit; text-decoration: none; }
.result-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.result-link:focus-visible { outline: none; }
.result-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.see-rooms { margin-top: 6px; font-weight: 600; font-size: 0.88rem; color: var(--accent); }
.others-head { font-size: 1.05rem; margin-top: 8px; }
.result-list { display: grid; gap: 14px; }

/* sort and filter bar */
.result-tools { display: grid; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tools-label { font: 500 0.7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); min-width: 52px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  font: 500 0.88rem/1 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
button.chip:hover { border-color: var(--accent); }
/* An active direction sort shows a × inside its right edge that turns it off. */
.sort-chip { position: relative; display: inline-flex; }
.sort-chip:has(.chip-x:not([hidden])) .chip { padding-right: 36px; }
.chip-x {
  position: absolute; right: 5px; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--accent); background: transparent;
}
.chip-x[hidden] { display: none; }
.chip-x:hover, .chip-x:focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
.chip[aria-pressed="true"] { color: var(--accent); background: var(--accent-bg); border-color: var(--accent); font-weight: 600; }
.chip[aria-pressed="false"] svg { opacity: 0.45; }
.chip:focus-visible, .chip:has(:focus-visible) { outline: none; box-shadow: 0 0 0 3px var(--accent-bg); border-color: var(--accent); }
.chip.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.chip.check:has(input:checked) { color: var(--good); border-color: var(--good); background: color-mix(in srgb, var(--good) 13%, transparent); }
.chip.select select { font: 600 0.88rem/1 var(--f-body); color: var(--ink); background-color: var(--paper); border: 0; padding: 0 2px; cursor: pointer; }
/* The open list takes its colours from the options, not the page, so set them for the dark page. */
.chip.select option, .field select option { color: var(--ink); background-color: var(--paper); }
.chip.select select:focus { outline: none; }
.chip.range input { width: 140px; accent-color: var(--accent); }
.chip.range span { min-width: 92px; font-variant-numeric: tabular-nums; }
.tools-foot { display: flex; gap: 12px; align-items: center; min-height: 1.2em; font-size: 0.86rem; }
.tools-foot:not(:has(:not([hidden]):not(:empty))) { display: none; }
.link-btn { font: 500 0.86rem/1 var(--f-body); color: var(--accent); background: none; border: 0; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn[hidden] { display: none; }
.result img, .result .noimg { width: 180px; height: 130px; border-radius: 10px; object-fit: cover; background: var(--accent-bg); }
.result-main { display: grid; gap: 6px; align-content: start; min-width: 0; }
.result-main h3 { font-size: 1.12rem; }
.stars { color: var(--money); letter-spacing: 1px; font-size: 0.85rem; }
.rating { font: 600 0.8rem/1 var(--f-mono); color: var(--surface); background: var(--accent); border-radius: 6px 6px 6px 2px; padding: 4px 6px; }
.room { font-size: 0.88rem; }
/* Refund terms must be unmissable, non-refundable most of all. */
.refund { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 600; font-size: 0.86rem; padding: 5px 9px; border-radius: 6px; }
.refund.yes { color: var(--good); background: color-mix(in srgb, var(--good) 13%, transparent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.meal, .pets { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.86rem; padding: 5px 9px; border-radius: 6px; color: var(--accent); background: var(--accent-bg); }
.refund.no { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.result-price { display: grid; gap: 4px; justify-items: end; align-content: start; text-align: right; }
.result-price .price { font-size: 1.45rem; }
.result-price small { color: var(--muted); font-size: 0.8rem; }
/* priceHtml(): "$109/night before tax" over "$243.87 total incl. $25.20 taxes & fees". */
.price.nightly .per { font: 500 0.78rem/1 var(--f-body); color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.total-line { color: var(--muted); }
.fees { color: var(--muted); }
.skeleton { height: 160px; border-radius: 14px; background: linear-gradient(90deg, var(--surface), var(--accent-bg), var(--surface)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton, .combo[data-busy="true"]::after { animation: none; } }
.notice { padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); }

.site-foot { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 0.85rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
.check-field a { color: var(--accent); }

/* ---------- Terms of use and Privacy policy (terms.html, privacy.html) ---------- */
.legal article { max-width: 760px; display: grid; gap: 28px; }
.legal-head { display: grid; gap: 10px; }
.legal-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal-lead { font-size: 1.05rem; }
.legal section { display: grid; gap: 12px; scroll-margin-top: 16px; }
.legal h2 { font-size: 1.3rem; }
.legal h3 { font-size: 1rem; margin: 6px 0 0; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal code { font: 0.88em var(--f-mono); background: var(--accent-bg); padding: 1px 5px; border-radius: 4px; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 28px; }
.legal-toc li { padding-block: 3px; break-inside: avoid; }
.legal-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.legal th { font: 600 0.8rem/1.2 var(--f-body); color: var(--muted); }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { white-space: nowrap; }
/* A placeholder still to be filled in before launch. */
.legal mark.fill { background: var(--money-bg); color: var(--money); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  .modes { grid-template-columns: 1fr; }
  .mode { min-height: 170px; --img-1x: url("/img/modes/hotel-lg.webp"); }
  .mode.location { --img-1x: url("/img/modes/location-lg.webp"); }
  /* Dates share one row, then adults, children and rooms share the next. */
  .fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fields > .field { grid-column: span 2; }
  .fields > .field:has(input[type="date"]) { grid-column: span 3; }
  .fields > .field.wide { grid-column: 1 / -1; }
  .result { grid-template-columns: 140px minmax(0, 1fr); }
  .result img, .result .noimg { width: 140px; height: 110px; }
  /* The price lines stack on the left, "See rooms" sits beside them. */
  .result-price { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; justify-items: start; text-align: left; column-gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
  .result-price > :not(.see-rooms) { grid-column: 1; }
  .result-price .see-rooms { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  main { gap: 44px; padding-top: 24px; }
  /* The banner: photo across the whole card, darkened under the text; perks two by two. */
  .welcome { min-height: 0; align-content: end; padding: 150px 20px 22px; }
  .welcome-photo { width: 100%; height: 240px; object-position: 45% center; }
  .welcome::before { background: linear-gradient(180deg, transparent 0%, rgba(14, 16, 33, .6) 100px, var(--w-bg) 200px); }
  .welcome-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .welcome-perks li, .welcome-perks li + li { padding: 0; border: 0; font-size: 0.9rem; }
  .welcome + .search { margin-top: -12px; }
  /* Mobile: four feeds stacked, each its own vertical scroller. Shorter, so the page
     can still be scrolled between them. */
  .feeds { grid-template-columns: 1fr; gap: 26px; }
  .ticker { height: 300px; }
  .tools-label { flex-basis: 100%; }
  .chip.range { flex: 1 1 100%; }
  .chip.range input { flex: 1; width: auto; }
  .modes { gap: 12px; }
  .mode { min-height: 128px; padding: 14px; }
  .mode .check { left: 14px; }
  .mode { --img-1x: url("/img/modes/hotel-sm.webp"); --img-2x: url("/img/modes/hotel-lg.webp"); }
  .mode.location { --img-1x: url("/img/modes/location-sm.webp"); --img-2x: url("/img/modes/location-lg.webp"); }
  .mode-title { font-size: 1.12rem; }
  .mode-sub { font-size: 0.78rem; }
  .search-form { padding: 16px; }
  .search-btn { width: 100%; }
  .result { grid-template-columns: 1fr; }
  .result img, .result .noimg { width: 100%; height: 170px; }
  .env-badge .env-more { display: none; }
}

/* ---------- account (js/account.js, signup.html) ---------- */
.account { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.account:empty { display: none; }
.account-in, .account-dash, .account-out { font: 600 0.9rem/1 var(--f-body); color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.account-dash { background: var(--accent-bg); }
.account-in:hover, .account-dash:hover, .account-out:hover { border-color: var(--accent); }
/* Google's button guidelines: white (or dark) surface, the four-colour G, "Continue with Google". */
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid #747775; background: #fff; color: #1f1f1f; font: 600 1rem/1 var(--f-body); text-decoration: none; justify-self: start; }
.google-btn:hover { background: #f2f2f2; }
.google-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.signup-page { padding-block: 32px 64px; }
.signup-card { max-width: 560px; margin: 0 auto; }
.signup-card h1 { font-size: 1.6rem; }
.signup-card .check-field { display: flex; gap: 10px; align-items: flex-start; }
.signup-card .check-field input { margin-top: 4px; flex: none; }
.privacy-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.privacy-choice legend { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; padding: 0; }
.signin-card .google-btn { margin-top: 4px; }
@media (max-width: 720px) {
  .account-out { display: none; }
  .google-btn { width: 100%; }
}

/* ---------- saved hotels: the heart (js/saved.js) ---------- */
.save-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.save-btn:hover { color: var(--warn); border-color: var(--warn); }
.save-btn[aria-pressed="true"] { color: var(--warn); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.save-btn[data-busy] { opacity: .6; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: 0.92rem; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast[hidden] { display: none; }
/* On a search result the card's link covers the card; the heart sits above it, on the photo. */
.result > .save-btn { position: absolute; top: 22px; left: 22px; z-index: 2; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
/* Our own reviews come from guests who booked and stayed (reviews.rs). */
.card .verified { color: var(--good); font-weight: 600; }
