/* Grachtstay — styles */
:root {
  --ink: #172123;
  --deep: #14363A;
  --deep-2: #1E474C;
  --deep-3: #3E6266;
  --sand: #F4F1EA;
  --sand-2: #E5E1D8;
  --line: #D6D1C4;
  --white: #FFFFFF;
  --muted: #4B5A5C;
  --mist: #C9D6D3;
  --mint: #E6EEEC;
  --accent: #C2410C;
  --accent-2: #9A3412;
  --glow: #F59E5B;
  --ok: #15803D;
  --star: #B45309;
  --danger: #B42318;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(23, 33, 35, .12);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Unbounded, Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand); line-height: 1.45; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--deep); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 1180px; }
.page { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.h1 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.h3 { font-size: 20px; font-weight: 700; margin: 0; }
.h4 { font-size: 17px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: var(--display); letter-spacing: .02em; }
.ok { color: var(--ok); font-weight: 600; font-size: 13px; margin: 0; }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.lead { font-size: 15px; line-height: 1.6; color: #2E3B3D; margin: 0; }
.link-small { font-size: 14px; font-weight: 600; text-decoration: none; }
.icon { flex-shrink: 0; }
.icon-line { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.stars { color: var(--star); letter-spacing: 1px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--xl { min-height: 60px; padding: 0 36px; font-size: 17px; align-self: flex-start; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-2); color: var(--white); }
.btn--primary { background: var(--deep); color: var(--white); }
.btn--primary:hover { background: var(--deep-2); color: var(--white); }
.btn--outline { background: var(--white); color: var(--deep); border-color: var(--deep); }
.btn--ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn--light { background: var(--white); color: var(--deep); }
.is-static { cursor: default; }

/* Header */
.topbar { background: var(--deep); color: var(--sand); }
.topbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--sand); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo:hover { color: var(--sand); }
.topnav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.topnav a { color: var(--mist); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current] { color: var(--sand); }
.langs { display: flex; gap: 2px; background: var(--deep-2); padding: 3px; border-radius: 10px; }
.langs a { min-width: 40px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--mist); text-decoration: none; }
.langs a[aria-current] { background: var(--sand); color: var(--deep); }

/* Hero / search */
.hero { background: var(--deep); color: var(--sand); padding: 32px 0 72px; }
.hero__in { display: flex; flex-direction: column; gap: 28px; }
.hero__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 0; max-width: 760px; }
.hero__art { flex-shrink: 0; }
.searchbar { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.field { flex: 1 1 170px; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--sand); }
.field--small { flex: 0 1 120px; }
.field span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select { border: 0; background: transparent; font-size: 16px; font-weight: 600; padding: 0; min-height: 28px; outline: none; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.chip { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
.chip.is-on { background: var(--deep); color: var(--white); border-color: var(--deep); }
.chips--dark span { color: var(--mist); }
.chips--dark .chip { background: transparent; color: var(--sand); border-color: var(--deep-3); font-weight: 500; font-size: 14px; }
.chips--dark .chip.is-on { background: var(--sand); color: var(--deep); }

/* Layout */
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
main.layout { margin-top: -32px; padding-bottom: 64px; }
.sidebar { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 48px; }
.layout--hotel > .stack { flex: 999 1 600px; }
.layout--checkout > .stack { flex: 999 1 560px; }

.minimap { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 180px; border: 1px solid var(--mist); }
.minimap img { width: 100%; height: 100%; object-fit: cover; }
.minimap .btn { position: absolute; left: 12px; bottom: 12px; font-size: 14px; }

/* Filters */
.filters { background: var(--white); border-radius: var(--radius); padding: 20px; }
.filters summary { list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 17px; }
.filters summary::-webkit-details-marker { display: none; }
.filters__form { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input, .option input { width: 18px; height: 18px; accent-color: var(--deep); flex-shrink: 0; }
.filters__actions { display: flex; gap: 8px; }

/* Results */
.results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.results__head .muted { margin-top: 6px; font-size: 14px; }
.tabs { display: flex; gap: 4px; background: var(--sand-2); padding: 4px; border-radius: 12px; }
.tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs a[aria-current] { background: var(--white); color: var(--deep); }
.empty { background: var(--white); border-radius: var(--radius); padding: 24px; margin: 0; }

.card { background: var(--white); border-radius: var(--radius); padding: 14px; display: flex; flex-wrap: wrap; gap: 20px; }
.card__photo { position: relative; flex: 0 0 240px; height: 180px; border-radius: 12px; overflow: hidden; background: var(--deep-3); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--white); color: var(--deep); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.badge--inline { position: static; }
.fav { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav--text { position: static; width: auto; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink); }
.fav--text svg { color: var(--accent); }
.card__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.card__title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.card__title a { color: inherit; text-decoration: none; }
.card__side { flex: 0 1 200px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 14px; text-align: right; padding: 4px; }
.pills { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { font-size: 12px; font-weight: 600; color: var(--deep); background: var(--mint); padding: 5px 10px; border-radius: 999px; }
.score { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; }
.score small { display: block; color: var(--muted); }
.score__num { background: var(--deep); color: var(--white); font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 10px 10px 10px 2px; }
.score__num--sm { font-size: 12px; padding: 2px 6px; border-radius: 5px 5px 5px 2px; }
.score--big .score__num { font-size: 26px; padding: 10px 12px; }
.price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price strong { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.price small { font-size: 13px; color: var(--muted); }
.price--right strong { font-size: 22px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pager a { min-width: 44px; height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--white); text-decoration: none; font-weight: 600; }
.pager a[aria-current] { background: var(--deep); color: var(--white); }

/* Hotel */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.titlebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.titlebar > div { display: flex; flex-direction: column; gap: 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 10px; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--deep-3); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--main { grid-column: span 2; grid-row: span 2; }
.panel { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.panel__head .muted { font-size: 14px; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; font-size: 14px; }
.amenities li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--sand); border-radius: 10px; }
.amenities svg { color: var(--deep); }
.room { display: flex; flex-wrap: wrap; gap: 18px; padding: 14px; border-radius: 12px; border: 1px solid var(--sand-2); }
.room.is-on { border: 2px solid var(--deep); background: #F7FAF9; }
.room__img { flex: 0 0 150px; width: 150px; height: 110px; object-fit: cover; border-radius: 10px; }
.room__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.room__body .muted { font-size: 14px; }
.room__side { flex: 0 1 180px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; text-align: right; }
.reviews { display: flex; flex-wrap: wrap; gap: 28px; }
.reviews__score { flex: 0 0 200px; display: flex; flex-direction: column; gap: 10px; }
.reviews__list { flex: 1 1 320px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.stub { margin: 0; background: var(--sand); border-radius: 12px; padding: 16px; font-size: 14px; color: var(--muted); }
.locmap { position: relative; display: block; aspect-ratio: 1000 / 820; max-height: 340px; width: 100%; border-radius: 12px; overflow: hidden; }
.locmap .mapsvg { width: 100%; height: 100%; display: block; }
.nearby { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.nearby li { display: flex; gap: 6px; align-items: center; }
.summary { flex: 1 1 300px; max-width: 380px; background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 2px solid var(--deep); position: sticky; top: 16px; }
.summary--plain { border: 0; padding: 0; overflow: hidden; gap: 0; }
.summary__img { width: 100%; height: 170px; object-fit: cover; }
.summary__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.summary__body p { margin: 0; font-size: 14px; }
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
.dates > div { background: var(--sand); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.dates small { font-size: 12px; color: var(--muted); font-weight: 600; }
.lines { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lines > div { display: flex; justify-content: space-between; gap: 12px; }
.lines dt { margin: 0; }
.lines dd { margin: 0; white-space: nowrap; }
.lines__total { border-top: 1px solid var(--sand-2); padding-top: 10px; align-items: baseline; }
.lines__total dt { font-weight: 700; }
.lines__total dd { font-family: var(--display); font-size: 24px; font-weight: 600; }

/* Map pins & popups (shared by hotel page and map page) */
.pin { position: absolute; transform: translate(-50%, -50%); min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--white); color: var(--deep); border: 2px solid var(--deep); box-shadow: 0 2px 8px rgba(23, 33, 35, .25); text-decoration: none; white-space: nowrap; z-index: 1; }
.pin.is-on { background: var(--accent); color: var(--white); border-color: var(--white); transform: translate(-50%, -50%) scale(1.1); z-index: 3; }
.pin:hover { color: inherit; z-index: 2; }
.pin.is-on:hover { color: var(--white); }

/* Checkout */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 14px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.steps .is-done span { background: var(--deep-3); border-color: var(--deep-3); color: var(--white); }
.steps .is-current { color: var(--ink); font-weight: 600; }
.steps .is-current span { background: var(--glow); border-color: var(--glow); color: var(--deep); }
.steps__secure { margin-left: auto; }
.alert { background: #FDECEA; color: var(--danger); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.input { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input input, .input textarea, .input select { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 15px; color: var(--ink); background: var(--white); font-weight: 400; }
.input textarea { padding: 12px 14px; resize: vertical; }
.input--short { max-width: 280px; }
.has-error input { border-color: var(--danger); }
.option { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--sand-2); border-radius: 12px; font-size: 15px; cursor: pointer; }
.option__label { flex: 1; }
.js .js-hide { display: none; }
.paygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.paycard { position: relative; cursor: pointer; }
.paycard input { position: absolute; opacity: 0; inset: 0; }
.paycard > span { min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); height: 100%; }
.paycard small { color: var(--muted); font-size: 13px; }
.paycard input:checked + span { border: 2px solid var(--deep); background: #F7FAF9; }
.paycard input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 2px; }
.note { margin: 0; padding: 14px 16px; background: var(--mint); border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--deep); }
.note--green { margin: 16px 0 0; }
.check--terms { align-items: flex-start; line-height: 1.5; }
.check--terms.has-error span { color: var(--danger); }

/* Confirmation */
.banner { background: var(--deep); color: var(--sand); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.banner__text { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.banner__text p { margin: 0; color: var(--mist); font-size: 16px; }
.banner__check { width: 56px; height: 56px; border-radius: 50%; background: var(--glow); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.banner__ref { background: var(--deep-2); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.banner__ref small { color: var(--mist); font-size: 13px; }
.banner__ref strong { font-size: 26px; }
.layout--hotel > .panel:first-child { flex: 999 1 520px; min-width: 0; }
.layout--hotel > .panel:nth-child(2) { flex: 1 1 300px; max-width: 400px; }
.conf-hotel { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.conf-hotel img { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; }
.conf-hotel a { color: inherit; text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; font-size: 14px; }
.facts > div { background: var(--sand); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.facts small { color: var(--muted); font-size: 12px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.todo { display: flex; flex-direction: column; gap: 14px; }
.todo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.todo__card { background: var(--white); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; }
.todo__card img { width: 100%; height: 130px; object-fit: cover; margin-bottom: 8px; }
.todo__card strong, .todo__card small { padding: 0 16px; }
.todo__card small { color: var(--muted); }
.booking-row { flex-direction: row; align-items: center; text-decoration: none; color: var(--ink); padding: 14px; }
.booking-row img { width: 90px; height: 68px; object-fit: cover; border-radius: 10px; }
.booking-row span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.booking-row small { color: var(--muted); }

/* Map page */
.is-map .footer { display: none; }
.mappage { display: flex; flex-wrap: wrap; min-height: calc(100vh - 76px); }
.mappage__list { flex: 1 1 360px; max-width: 420px; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 76px); overflow-y: auto; }
.mappage__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mini { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--white); border: 2px solid transparent; text-decoration: none; color: var(--ink); }
.mini.is-on { border-color: var(--accent); }
.mini img { flex: 0 0 92px; width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.mini__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.mini__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.mini__price { font-family: var(--display); font-size: 17px; font-weight: 600; }
.mappage__map { flex: 999 1 560px; min-width: 0; background: #E9E4D8; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.mapbox { position: relative; width: 100%; max-width: calc((100vh - 76px) * 1000 / 820); aspect-ratio: 1000 / 820; }
.mapbox .mapsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.popup { position: absolute; z-index: 4; width: 300px; transform: translate(-50%, calc(-100% - 30px)); background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 28px rgba(23, 33, 35, .25); }
.popup--below { transform: translate(-50%, 30px); }
.popup > img { width: 100%; height: 140px; object-fit: cover; }
.popup__close { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.popup__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.popup__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.price-lg { font-family: var(--display); font-size: 20px; font-weight: 600; }
.legend { position: absolute; left: 16px; bottom: 16px; background: var(--white); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 12px; color: var(--muted); box-shadow: var(--shadow); }
.legend span { display: flex; gap: 6px; align-items: center; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw--water { background: #B9D3D4; }
.sw--park { background: #CFDDBF; }
.sw--cs { width: auto; height: auto; padding: 0 4px; background: var(--ink); color: var(--white); font-style: normal; font-weight: 700; font-size: 10px; }

/* Footer */
.footer { background: var(--ink); color: var(--mist); padding: 40px 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col strong { color: var(--sand); }
.footer__col a { color: var(--mist); }
.footer__col small { color: #9FB0AD; }
.footer__brand { font-family: var(--display); font-weight: 700; color: var(--sand); font-size: 18px; }
.bottomnav { display: none; }

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: 72px; }
  .wrap { padding: 0 16px; }
  .topnav { display: none; }
  .hero { padding: 20px 0 48px; }
  .hero__art { display: none; }
  .searchbar .btn { width: 100%; }
  .sidebar { max-width: none; }
  .minimap { display: none; }
  .filters:not([open]) { padding: 14px 16px; }
  .results { padding-top: 16px; }
  .card { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
  .card__photo { flex: 0 0 auto; height: 190px; border-radius: 0; }
  .card__body { padding: 14px 16px 0; }
  .card__side { flex-direction: row; align-items: flex-end; text-align: left; padding: 12px 16px 16px; flex-wrap: wrap; }
  .card__side .score { order: 2; }
  .card__side .price { align-items: flex-start; order: 1; }
  .card__side .btn { order: 3; width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .gallery__item:nth-child(n+4) { display: none; }
  .panel { padding: 18px; }
  .room__img { flex: 1 1 100%; width: 100%; height: 160px; }
  .room__side { flex: 1 1 100%; flex-direction: row; align-items: center; text-align: left; }
  .summary { max-width: none; position: static; }
  .grid2, .paygrid { grid-template-columns: 1fr; }
  .steps__secure { margin-left: 0; }
  .banner { padding: 24px; }
  .mappage__list { max-width: none; max-height: none; order: 2; }
  .mappage__map { order: 1; }
  .mapbox { max-width: none; }
  .popup, .popup--below { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; transform: none; display: flex; }
  .popup > img { width: 84px; height: auto; object-fit: cover; flex-shrink: 0; }
  .popup .meta, .popup__body > small { display: none; }
  .popup__body { flex: 1; min-width: 0; padding: 12px 44px 12px 12px; }
  .popup__foot { flex-wrap: wrap; }
  .mapbox .pin { font-size: 12px; min-height: 28px; padding: 0 8px; }
  .legend { display: none; }
  .bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border-top: 1px solid var(--sand-2); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .bottomnav a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .bottomnav a[aria-current] { color: var(--accent); }
}

/* Print (confirmation voucher) */
@media print {
  .topbar, .footer, .bottomnav, .actions, .todo, .skip { display: none !important; }
  body { background: #fff; }
  .banner { color: #000; background: #fff; border: 2px solid #000; }
  .banner__ref { background: #fff; border: 1px solid #000; }
  .banner__text p, .banner__ref small { color: #000; }
}
