/* BG Beach Homes — v1. Built for in-app browsers first: no live vh sections, no fixed blend overlays. */
:root {
  --bg: #F4F2EC;
  --paper: #FFFFFF;
  --ink: #0F2430;
  --ink-2: #45565F;
  --ink-3: #7A878D;
  --line: #DEDAD0;
  --line-2: #ECE8DF;
  --sea: #0B6E79;
  --sea-ink: #07525A;
  --sea-wash: #E1EEEC;
  --sun: #F15A22; /* logo orange */
  --sun-ink: #D2470F;
  --sun-wash: #FFE8DF;
  --sand: #EADFCB;
  --good: #1F8A4C;
  --r: 14px;
  --r-lg: 22px;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --vh: 1vh; /* locked by JS so in-app browser toolbars don't resize sections */
  --tabbar: 0px;
  --shadow: 0 1px 2px rgba(15, 36, 48, .06), 0 8px 24px -12px rgba(15, 36, 48, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* safety net only; real overflow sources are fixed at component level */
body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: var(--tabbar); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--sea); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
main { outline: none; min-height: calc(var(--vh) * 70); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(34px, 6.4vw, 76px); }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 12px var(--pad); background: rgba(244, 242, 236, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s, transform .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 44px; height: auto; display: block; }
.brand-name { font: 600 16px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; color: inherit; opacity: .82; white-space: nowrap; }
.nav a:hover { opacity: 1; background: rgba(15, 36, 48, .06); }
.nav a[aria-current="page"] { opacity: 1; background: var(--ink); color: #fff; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.saved-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; }
.saved-link svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.saved-link .saved-count, .tabbar .saved-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sun); color: #fff; font: 700 11px/18px var(--body); text-align: center; }
.lang { display: flex; border-radius: 999px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.lang button { border: 0; background: none; padding: 6px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 980px) {
  .nav { display: none; }
  .brand-name { font-size: 15px; }
}
@media (max-width: 520px) { .brand-name { display: none; } .lang button { padding: 6px 8px; } }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 980px) {
  :root { --tabbar: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; background: none; border: 0; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--ink-2); }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .tabbar [aria-current="page"] { color: var(--sea); }
  .tabbar .tab-match svg { fill: var(--sun); stroke: var(--sun); }
  .tabbar .saved-count { right: calc(50% - 22px); }
  .top-tools .saved-link { display: none; }
}

/* ---------- buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: var(--sun-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: rgba(15, 36, 48, .06); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: 12px; opacity: .6; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--sea-wash); color: var(--sea-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag.sun { background: var(--sun-wash); color: var(--sun-ink); }
.tag.grey { background: var(--line-2); color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--sea); outline: none; }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(22px, 5vw, 64px) 0 0; overflow: hidden; }
.hero-grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.7vw, 64px); }
.hero h1 em { font-style: normal; color: var(--sea); }
.hero .lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.ask { margin-top: 28px; background: var(--paper); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.ask-line { font: 500 clamp(19px, 2.1vw, 25px)/1.7 var(--display); letter-spacing: -.02em; }
.ask-line .pick { position: relative; display: inline-block; max-width: 100%; }
.ask-line select { appearance: none; -webkit-appearance: none; border: 0; border-bottom: 2.5px solid var(--sun); background: transparent; padding: 0 22px 2px 2px; font: inherit; color: var(--sea-ink); cursor: pointer; border-radius: 0; max-width: 100%; }
.ask-line .pick::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 2.5px solid var(--sun); border-bottom: 2.5px solid var(--sun); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.ask-go { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ask-go .tiny { margin-left: 4px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(31, 138, 76, .5); animation: pulse 2.2s infinite; vertical-align: middle; margin-right: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 138, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- coastline ---------- */
.coast { position: relative; aspect-ratio: 762 / 640; width: 100%; }
.coast svg { width: 100%; height: 100%; overflow: hidden; border-radius: 28px; }
.coast .sea-fill { fill: var(--sea-wash); }
.coast .shore { fill: none; stroke: var(--sea); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.coast .shore.isle { stroke-width: 1.4; }
.coast .ripple { fill: none; stroke: var(--sea); stroke-width: 1; opacity: .18; vector-effect: non-scaling-stroke; }
.coast .town { cursor: pointer; }
.coast .town circle.dot { fill: var(--sun); stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; transition: r .2s; }
.coast .town circle.halo { fill: var(--sun); opacity: .16; }
.coast .town.dim circle.dot { fill: var(--ink-3); }
.coast .town.dim circle.halo { opacity: 0; }
.coast .town text { font: 600 21px var(--display); fill: var(--ink); letter-spacing: -.02em; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.coast .town text.cnt { font: 600 16px var(--body); fill: var(--ink-2); }
.coast .town:hover circle.dot, .coast .town:focus circle.dot { r: 11; }
.coast .poi text { font: 700 17px var(--body); fill: var(--ink-2); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.coast .poi .mk { fill: var(--ink); }
.coast .poi.euro .mk { fill: #7B3FE4; }
.coast .poi.euro text { fill: #5B26B8; }
.coast-note { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 8vw, 104px) 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head > div { min-width: 0; }
.sec-head p { margin-top: 10px; max-width: 40em; }
@media (max-width: 560px) { .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .rail > :nth-child(n+9) { display: none; }
}
@media (max-width: 899px) { .rail { grid-auto-columns: 82%; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--paper); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line-2); }
.step b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun-wash); color: var(--sun-ink); font: 600 15px var(--display); margin-bottom: 18px; }
.step p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.towns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.town-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: end; padding: 20px; isolation: isolate; }
.town-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.town-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,36,48,.14) 0%, rgba(15,36,48,.28) 35%, rgba(15,36,48,.9) 100%); z-index: -1; }
.town-card:hover img { transform: scale(1.04); }
.town-card h3 { font-size: 22px; } .town-card h3, .town-card p { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.town-card p { font-size: 14px; opacity: .9; margin-top: 6px; }
.town-card .tc-stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.town-card .tc-stats span { background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
@media (max-width: 980px) { .towns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .towns { grid-template-columns: 1fr; } .town-card { min-height: 220px; } }
.band { border-radius: 28px; padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.band-euro { background: radial-gradient(120% 140% at 100% 0%, #FF5A36 0%, #C1306B 38%, #3B1E8C 78%); color: #fff; }
.band-euro .eyebrow { color: #FFD7C8; }
.band-euro p { opacity: .9; }
.band-match { background: var(--ink); color: #fff; }
.band-match .eyebrow { color: #9ED8D3; }
.band > * { min-width: 0; }
.band .btn { max-width: 100%; white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.band .dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.band .date { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.band .date b { display: block; font: 600 26px/1 var(--display); }
.band .date span { font-size: 12.5px; opacity: .85; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- listing card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-badges .tag { background: rgba(255,255,255,.94); }
.card-save { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; }
.card-save svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.9; }
.card-save[aria-pressed="true"] svg { fill: var(--sun); stroke: var(--sun); }
.card-count { position: absolute; right: 10px; bottom: 10px; background: rgba(15,36,48,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.card-price { font: 600 20px/1.2 var(--display); letter-spacing: -.02em; }
.card-price small { font: 500 13px var(--body); color: var(--ink-2); letter-spacing: 0; }
.card-title { font-weight: 600; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--ink-2); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 15px; height: 15px; fill: none; stroke: var(--sea); stroke-width: 2; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.fresh-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--good); }
.fresh-dot.old { background: #C9A227; }
.fresh-dot.stale { background: var(--ink-3); }
.why { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.match-score { position: absolute; left: 10px; bottom: 10px; background: var(--ink); color: #fff; font: 600 13px var(--display); padding: 6px 10px; border-radius: 999px; }

/* ---------- results ---------- */
.results-head { padding: 22px 0 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.results-head h1 { font-size: clamp(28px, 4.4vw, 52px); }
.filters { position: sticky; top: 64px; z-index: 30; background: rgba(244,242,236,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.filters-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--pad); margin: 0 calc(var(--pad) * -1); align-items: center; }
.filters-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filters-row { flex-wrap: wrap; overflow: visible; } .filters-row .sep { display: none; } }
.filters-row .sep { flex: 0 0 1px; height: 24px; background: var(--line); margin: 0 4px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; }
.filter-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.filter-btn .badge { background: var(--sun); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.res-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 14px; flex-wrap: wrap; }
.res-bar .count { font-weight: 600; }
.view-toggle { display: flex; padding: 3px; border-radius: 999px; background: var(--line-2); }
.view-toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.view-toggle button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sort { border: 0; background: transparent; font-weight: 600; font-size: 14px; padding: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.empty { padding: 48px 20px; text-align: center; background: var(--paper); border-radius: var(--r-lg); border: 1px dashed var(--line); }
.empty h3 { margin-bottom: 8px; }
.map-box { height: calc(var(--vh) * 70); min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sea-wash); }
.leaflet-container { font-family: var(--body); }
.leaflet-tile-pane { filter: saturate(.55) contrast(.95) brightness(1.03); }
.pin { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 8px; font: 700 12px/1 var(--body); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.18); transform: translate(-50%, -50%); width: max-content; }
.pin.approx { border-style: dashed; border-color: var(--ink-3); color: var(--ink-2); }
.pin.on { background: var(--sun); border-color: var(--sun); color: #fff; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.leaflet-popup-content-wrapper { border-radius: 16px; overflow: hidden; padding: 0; }
.pop img { width: 100%; height: 130px; object-fit: cover; }
.pop div { padding: 10px 12px 12px; }
.pop b { font: 600 16px var(--display); display: block; }
.pop a { color: var(--sea); font-weight: 600; }
.load-more { display: flex; justify-content: center; padding: 26px 0 0; }

/* ---------- filter sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(15, 36, 48, .45); }
.sheet-card { position: relative; width: min(640px, 100%); max-height: calc(var(--vh) * 88); overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
@media (min-width: 761px) { .sheet { align-items: center; } .sheet-card { border-radius: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-x { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--line-2); font-size: 24px; line-height: 1; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup h3 { font: 600 15px var(--body); margin-bottom: 10px; }
.fgroup .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-actions { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); display: flex; gap: 10px; padding: 14px 0 0; background: var(--bg); }
.sheet-actions .btn { flex: 1; }

/* ---------- listing page ---------- */
.detail > * { min-width: 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 36px; align-items: start; }
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; gap: 28px; } }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--sea); }
.detail h1 { font-size: clamp(28px, 4vw, 46px); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.fact { background: var(--paper); border-radius: var(--r); padding: 14px; border: 1px solid var(--line-2); }
.fact span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.fact b { display: block; font: 600 18px/1.25 var(--display); margin-top: 4px; letter-spacing: -.01em; }
.block { margin-top: 36px; }
.block h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.rates { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.rates th, .rates td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.rates th { font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.rates tr:last-child td { border-bottom: 0; }
.rates .booked { color: var(--ink-3); text-decoration: line-through; }
.near { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.near div { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line-2); }
.near svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--sea); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.near b { display: block; font-weight: 600; }
.near small { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 560px) { .near { grid-template-columns: 1fr; } }
.mini-map { height: 300px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
.orig { background: var(--paper); border-radius: var(--r); padding: 18px; border: 1px solid var(--line-2); white-space: pre-line; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.side { position: sticky; top: 84px; display: grid; gap: 14px; }
.panel { background: var(--paper); border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.panel .p-price { font: 600 30px/1.1 var(--display); letter-spacing: -.02em; }
.panel .p-price small { font: 500 15px var(--body); color: var(--ink-2); }
.panel form { display: grid; gap: 12px; margin-top: 16px; }
.panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-note { display: flex; gap: 10px; align-items: flex-start; background: var(--sea-wash); color: var(--sea-ink); border-radius: 12px; padding: 12px; font-size: 14px; margin-top: 14px; }
.check-note svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.receipt { text-align: center; padding: 8px 0; }
.receipt .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--sea-wash); display: grid; place-items: center; margin: 0 auto 12px; }
.receipt .ok svg { width: 28px; height: 28px; fill: none; stroke: var(--sea); stroke-width: 2.5; }
.receipt .ref { font: 600 22px var(--display); letter-spacing: .02em; margin: 6px 0; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: #081218; display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: calc(var(--vh) * 86); object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; }
.lightbox .lb-x { right: 16px; top: 16px; }
.lightbox .lb-p { left: 12px; top: 50%; }
.lightbox .lb-n { right: 12px; top: 50%; }
.lightbox .lb-i { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: .8; }
.mobile-cta { display: none; }
@media (max-width: 980px) {
  .side { position: static; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: var(--tabbar); z-index: 44; gap: 10px; align-items: center; justify-content: space-between; padding: 10px var(--pad); background: var(--paper); border-top: 1px solid var(--line); }
  .mobile-cta .p { font: 600 18px var(--display); }
  .mobile-cta .p small { font: 500 12.5px var(--body); color: var(--ink-2); display: block; }
  body.has-mcta { padding-bottom: calc(var(--tabbar) + 70px); }
}

/* ---------- matcher ---------- */
.matcher { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0 0; }
.m-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 28px; }
.m-progress b { display: block; height: 100%; background: var(--sun); transition: width .35s; }
.m-q h1 { font-size: clamp(28px, 4.6vw, 48px); }
.m-q p.muted { margin-top: 10px; }
.m-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 26px; }
.m-opt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 16px; min-height: 64px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; }
.m-opt .ic { font-size: 22px; }
.m-opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.m-opt .box { margin-left: auto; flex-shrink: 0; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 7px; display: grid; place-items: center; background: var(--paper); }
.m-opt.radio .box { border-radius: 50%; }
.m-opt .box svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; opacity: 0; }
.m-opt[aria-pressed="true"] .box { background: var(--sun); border-color: var(--sun); }
.m-opt[aria-pressed="true"] .box svg { opacity: 1; }
.m-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--sun-wash); color: var(--sun-ink); font-weight: 600; font-size: 14px; }
.m-count { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.near-head { margin: 40px 0 6px; }
.near-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.tag.miss { background: var(--sun-wash); color: var(--sun-ink); }
.m-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.m-budget { margin-top: 26px; display: grid; gap: 12px; }
.m-budget output { font: 600 clamp(30px, 5vw, 46px) var(--display); }
input[type=range] { width: 100%; accent-color: var(--sun); height: 32px; }
.brief { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px 20px; margin: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- article / pages ---------- */
.page-hero { padding: clamp(28px, 6vw, 72px) 0 10px; }
.page-hero p.lede { margin-top: 16px; font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-2); max-width: 38em; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); text-decoration: none; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card div { padding: 18px; display: grid; gap: 8px; }
.article { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0 0; }
.article h1 { font-size: clamp(30px, 5vw, 52px); margin-top: 12px; }
.article .meta { margin: 16px 0 26px; color: var(--ink-3); font-size: 14px; }
.article .cover { border-radius: var(--r-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 28px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(22px, 2.8vw, 30px); margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--paper); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.prose .tldr { background: var(--sea-wash); border-radius: 16px; padding: 18px 20px; font-size: 17px; }
.prose a { color: var(--sea); font-weight: 600; }
.euro-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.euro-town { background: var(--paper); border-radius: var(--r); padding: 16px; border: 1px solid var(--line-2); }
.euro-town b { font: 600 26px var(--display); display: block; margin: 6px 0 2px; }
.form-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 14px; }
.form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-card .row2, .panel .row2 { grid-template-columns: 1fr; } }

/* ---------- compare ---------- */
.compare { overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.compare table { border-collapse: separate; border-spacing: 0; min-width: 640px; width: 100%; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; font-size: 14.5px; }
.compare th { width: 150px; color: var(--ink-3); font-weight: 600; font-size: 13px; }
.compare img { width: 100%; max-width: 200px; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(64px, 10vw, 120px); background: var(--ink); color: #DCE4E6; padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot h3 { font: 600 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #8FB0B6; margin-bottom: 12px; }
.foot a { display: block; color: #fff; text-decoration: none; padding: 4px 0; }
.foot a:hover { text-decoration: underline; }
.foot .fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #8FA2A8; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; z-index: 80; box-shadow: var(--shadow); animation: up .25s; max-width: calc(100vw - 32px); }

/* ---------- feed: one home per screen, swipe up for the next, sideways for photos ---------- */
body.feed-mode .foot { display: none; }
body.feed-mode .mobile-cta { display: none; }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.feed-wrap { max-width: 520px; margin: 0 auto; padding: 0 var(--pad); }
.feed-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; height: 54px; }
.feed-brief { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--line-2); }
.feed { height: calc(var(--vh) * 100 - 65px - 54px - var(--tabbar) - 8px); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; border-radius: 22px; outline: none; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.fcard { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; overflow: hidden; margin-bottom: 10px; transition: opacity .25s, transform .25s; }
.fcard.gone { opacity: .25; transform: translateX(-24px); }
.fmedia { position: relative; flex: 1 1 auto; min-height: 0; background: #0B1A22; }
.fphotos { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fphotos::-webkit-scrollbar { display: none; }
.fphotos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; background: #0B1A22; }
.fdots { position: absolute; left: 0; right: 0; top: 10px; display: flex; gap: 4px; padding: 0 12px; pointer-events: none; }
.fdots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.fdots i.on { background: #fff; }
.fscore { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: #fff; font: 600 13px var(--display); padding: 6px 10px; border-radius: 999px; }
.finfo { flex: 0 0 auto; padding: 14px 16px 12px; display: grid; gap: 6px; }
.finfo .why { margin: 0; }
.factions { display: grid; grid-template-columns: 52px 52px 52px 1fr; gap: 8px; margin-top: 6px; }
.fbtn { display: grid; place-items: center; height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-size: 20px; line-height: 1; position: relative; }
.fbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fbtn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.9; }
.fbtn[aria-pressed="true"] svg { fill: var(--sun); stroke: var(--sun); }
.fbtn-main { background: var(--sun); border-color: var(--sun); color: #fff; font: 600 15px var(--body); padding: 0 12px; }
.fbtn-main:active, .fbtn:active { transform: scale(.97); }
.fend { justify-content: center; }
.fend-in { padding: 28px 24px; display: grid; gap: 12px; text-align: center; }
.fend-in h2 { font-size: clamp(24px, 6vw, 32px); }
@media (max-width: 980px) {
  .feed-wrap { padding: 0 8px; }
  .feed { height: calc(var(--vh) * 100 - 65px - 54px - var(--tabbar)); border-radius: 18px; }
}
html.in-tg .feed { height: calc(var(--vh) * 100 - 65px - 54px - var(--tabbar)); }

/* ---------- round 4: quiz groups, own wish, swipe photos, partner, packages ---------- */
.rail { overflow-y: hidden; overscroll-behavior-x: contain; }
.mini-map, .map-box { position: relative; z-index: 0; isolation: isolate; }
.m-sub { margin-top: 24px; font-weight: 600; color: var(--ink-2); }
.m-sub + .m-opts, .m-sub + .m-hint { margin-top: 10px; }
.m-own { display: grid; gap: 8px; margin-top: 22px; font-weight: 600; max-width: 560px; }
.fphotos { cursor: pointer; }
html.lb-open { overflow: hidden; }
.lb-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-cell { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox button, .lightbox .lb-i { z-index: 1; }
@media (pointer: coarse) { .lightbox .lb-p, .lightbox .lb-n { display: none; } }
.partner { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.partner img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.partner h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 6px; }
.partner-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .partner { grid-template-columns: auto 1fr; align-items: start; padding: 20px; } .partner img { width: 56px; height: 56px; } .partner .btn { grid-column: 1 / -1; } }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.pack { position: relative; display: block; text-align: left; padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1.5px solid var(--line); color: inherit; font: inherit; }
button.pack { cursor: pointer; }
button.pack[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.pack-top { border-color: var(--sun); }
.pack-badge { position: absolute; top: -11px; right: 16px; background: var(--sun); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pack-ic { font-size: 28px; }
.pack h3 { font: 600 20px/1.2 var(--display); margin: 10px 0 6px; }
.pack ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.pack li { display: flex; gap: 8px; align-items: flex-start; }
.pack li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--sea); }
.pack li.plus { font-weight: 600; color: var(--ink-2); }
#equiz .m-opts { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 16px; }
#equiz .packs { grid-template-columns: 1fr; }

/* ===== Round 5 ===== */
.btn-lg { padding: 15px 24px; font-size: 17px; }
.hero-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; margin-right: 8px; vertical-align: -4px; }
.hero-all { margin-top: 12px; font-size: 15px; }
.hero-all a { color: var(--sea); font-weight: 600; text-decoration: none; }
.ask { margin-top: 22px; }
.ask-quick { font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #6b6b6b); margin-bottom: 8px; }
.band-own { background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.foot-small { font-size: 12.5px !important; opacity: .7; }
.stay-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #EEF6F3; border: 1px solid #CFE5DD; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.stay-note[hidden] { display: none; }
.stay-note.warn { background: #FFF3EC; border-color: #F6C9B2; }
.m-guests { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 12px 16px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font: 600 24px/1 var(--body); color: var(--ink); cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font: 600 24px var(--display); }
.m-dates { margin-top: 18px; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 18px; }
.pick-card { display: grid; gap: 10px; align-content: start; }
.pick-ask { width: 100%; justify-content: center; }
.refine { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }

/* map view */
body.map-mode .results-head { display: none; }
body.map-mode .res-bar { padding: 8px 0; }
.mapview { display: block; }
.map-list { display: none; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 2px; }
.map-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sea-wash); }
.map-stage .map-box { position: absolute; inset: 0; height: auto; min-height: 0; border: 0; border-radius: 0; }
.map-ui { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 600; pointer-events: none; display: grid; gap: 6px; justify-items: start; }
.poi-chips { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; pointer-events: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.poi-chips::-webkit-scrollbar { display: none; }
.poi-chips .chip { white-space: nowrap; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.poi-chips .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-legend { font-size: 11.5px; line-height: 1.3; background: rgba(255, 255, 255, .92); padding: 3px 8px; border-radius: 8px; margin: 0; }
.map-cards { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 600; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.map-cards::-webkit-scrollbar { display: none; }
.mc { flex: 0 0 min(84vw, 320px); scroll-snap-align: center; display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); text-decoration: none; color: inherit; border: 2px solid transparent; min-height: 96px; }
.mc.sel { border-color: var(--sun); }
.mc img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.mc-t { display: grid; gap: 2px; align-content: center; min-width: 0; font-size: 13px; }
.mc-t b { font: 600 17px var(--display); }
.mc-t b small { font: 500 12px var(--body); }
.mc-t small { color: var(--ink-3, #6b6b6b); font-size: 12px; }
.card.sel { outline: 3px solid var(--sun); outline-offset: 2px; }
.pin { padding: 5px 9px; font-size: 13px; }
.cl-wrap { background: none; border: 0; }
.cl { width: 44px; height: 44px; border-radius: 50%; background: var(--sea); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font: 700 14px var(--body); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.poi { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--ink-2); font-size: 13px; line-height: 1; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); color: var(--ink); }
.poi::after { content: ""; position: absolute; inset: -9px; }
.poi-beach { border-color: #0B6E79; } .poi-shop { border-color: #F15A22; } .poi-bus { border-color: #3C3735; } .poi-landmark { border-color: #C1306B; color: #C1306B; font-weight: 700; } .poi-school { border-color: #3B1E8C; } .poi-pharmacy { border-color: #1F9D55; color: #1F9D55; font-weight: 700; }
.poi.on { background: var(--sun); color: #fff; border-color: var(--sun); }
.chip.on-chip { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-tap { position: absolute; inset: 0; z-index: 500; border: 0; background: rgba(0, 0, 0, .06); display: grid; align-items: end; justify-items: center; padding: 0 0 12px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
@media (min-width: 1024px) {
  .mapview { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); gap: 16px; }
  .map-list { display: block; }
  .map-list .grid { grid-template-columns: 1fr; gap: 14px; }
  .map-cards { display: none; }
}
.res-bar > div { min-width: 0; max-width: 100%; }
.res-bar .sort { max-width: 56vw; text-overflow: ellipsis; }
@media (min-width: 700px) { .res-bar .sort { max-width: 320px; } }
@media (min-width: 1024px) {
  .map-list .card { flex-direction: row; align-items: stretch; }
  .map-list .card-media { flex: 0 0 150px; aspect-ratio: auto; min-height: 150px; }
  .map-list .card-badges, .map-list .card-count { display: none; }
  .map-list .card-body { padding: 12px 14px; align-content: center; min-width: 0; }
  .map-list .card-price { font-size: 18px; }
  .map-list .why { display: none; }
}

/* property page: price block, contact methods, Telegram */
.pay-rows { margin: 0; display: grid; gap: 10px; }
.pay-rows > div { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.pay-rows dt { font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, #6b6b6b); }
.pay-rows dd { margin: 0; font-size: 15px; }
.pay-rows dd small { font-size: 13px; }
.pay-side { margin: 12px 0; }
.pay-side .pay-rows > div { padding: 9px 11px; }
.l-actions { margin-top: 12px; }
.l-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; vertical-align: -4px; }
.methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.methods .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tg-note { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #E8F4FB; font-size: 14px; }
.tg-note svg { width: 20px; height: 20px; flex: none; fill: #229ED9; }
.tg-form .field[hidden], .tg-form .cfield[hidden] { display: none; }
.in-tg .mobile-cta { display: none; }

/* owners + staff */
.own-hero { padding: clamp(22px, 5vw, 56px) 0 40px; }
.own-hero h1 { font-size: clamp(30px, 4.6vw, 56px); max-width: 18em; }
.own-promises { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 34em; }
.own-promises li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.own-promises svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--sea); stroke-width: 1.8; margin-top: 1px; }
.own-cta { margin: 26px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.own-cta .btn svg { width: 18px; height: 18px; fill: currentColor; margin-right: 8px; vertical-align: -3px; }
.own-h2 { margin: 36px 0 14px; font-size: clamp(22px, 3vw, 30px); }
.own-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; max-width: 760px; }
.plan { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 8px; align-content: start; }
.plan h3 { margin: 0; font-size: 19px; }
.plan p { margin: 0; color: var(--ink-2); font-size: 15px; }
.owner-wiz .m-q h1 { font-size: clamp(26px, 4.2vw, 40px); }
.own-pin { margin-top: 16px; display: grid; gap: 8px; }
.own-pin .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 6px; vertical-align: -4px; }
.own-pin .mini-map { height: 260px; }
.own-add { width: 100%; justify-content: center; }
.own-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); border: 1px solid var(--line-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(15, 36, 48, .75); color: #fff; font-size: 18px; line-height: 1; }
.ph-s { position: absolute; inset: auto 0 0 0; padding: 4px 6px; font-size: 11px; background: rgba(255, 255, 255, .92); }
.ph.err { border-color: #C1306B; cursor: pointer; } .ph.read { border-color: #C1306B; }
.own-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.own-months { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.plan-opt { text-align: left; align-items: flex-start; }
.plan-t { display: grid; gap: 4px; flex: 1; text-align: left; }
.plan-t small { font-weight: 400; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }
.own-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 1.35; }
.own-check input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--sun); }
.own-review { display: grid; gap: 10px; margin-top: 14px; }
.rv { display: grid; grid-template-columns: 90px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.rv span { font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, #6b6b6b); }
.rv b { font-weight: 600; word-break: break-word; }
.rv a { font-size: 14px; color: var(--sea); }
.own-receipt { max-width: 520px; margin: 40px auto; text-align: center; padding: 28px 20px; }
.staff { padding: 24px 0 60px; display: grid; gap: 14px; }
.staff-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-tabs .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.staff-list { display: grid; gap: 14px; }
.sc { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 6px; }
.sc.hl { outline: 3px solid var(--sun); }
.sc header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc header small { margin-left: auto; color: var(--ink-3, #6b6b6b); }
.sr { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 14.5px; }
.sr span { color: var(--ink-3, #6b6b6b); }
.sr a { color: var(--sea); }
.sc-st, .sc-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sc-st .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.sc-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.own-hero .lede { margin-top: 18px; max-width: 34em; }
.own-cta .btn { white-space: normal; text-align: left; justify-content: flex-start; }
@media (max-width: 560px) { .own-cta .btn { width: 100%; } .rv { grid-template-columns: 1fr auto; } .rv span { grid-column: 1 / -1; } }

/* touch targets: 44px on phones for everything new, 40px for the older filter chips */
@media (pointer: coarse), (max-width: 760px) {
  .chip { min-height: 40px; }
  .methods .chip, .poi-chips .chip, .sc-st .chip, .sc-tools .chip, .staff-tabs .chip { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .lang button { min-width: 40px; min-height: 36px; }
}
@media (max-width: 760px) {
  .m-results .page-hero { padding: 12px 0 0; }
  .m-results .page-hero h1 { font-size: 30px; margin-top: 6px !important; }
  .m-results .page-hero .lede { font-size: 15px; margin-top: 8px; }
  .m-results .brief { padding: 10px 12px; margin: 12px 0 14px; gap: 6px; }
  .m-results .brief .tag { font-size: 12.5px; }
  .m-results .picks { gap: 16px; }
}
.owner-wiz .m-q { margin-top: 10px; }

.tabbar a, .tabbar button { font-size: 10.5px; min-width: 0; }
.tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- WP1 mobile fixes (15 Nov walkthrough) ---------- */
.field { min-width: 0; }
.input { min-width: 0; max-width: 100%; }
/* iOS: native date inputs ignore width and push the layout wider than the viewport */
input[type="date"].input, input[type="month"].input { -webkit-appearance: none; appearance: none; display: block; min-width: 0; width: 100%; max-width: 100%; text-align: left; line-height: 1.2; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; min-width: 0; margin: 0; }
.sheet .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.panel .row2, .form-card .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form-card .row2, .panel .row2 { grid-template-columns: minmax(0, 1fr); } }
/* map overlays belong to the map: isolate so their z-index never climbs above sheets/lightbox */
.map-stage { isolation: isolate; }
/* sheet: close button stays reachable while the card scrolls; footer never wider than the card */
.sheet-card { overflow-x: hidden; }
.sheet-x { position: sticky; top: 0; display: block; margin: 0 -4px -40px auto; z-index: 3; right: auto; }
.sheet-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; white-space: normal; text-align: center; line-height: 1.2; }
.sheet-body > h2:first-child { padding-right: 48px; }

img.img-broken { visibility: hidden; }
.res-bar > * { min-width: 0; max-width: 100%; }
.res-bar .sort { max-width: 100%; }
.view-toggle { max-width: 100%; }
.view-toggle button { min-height: 44px; padding: 7px 14px; }
@media (max-width: 360px) { .view-toggle button { padding: 7px 10px; font-size: 13.5px; } }
.res-bar > div { flex-wrap: wrap; row-gap: 6px; }
.side { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.panel .p-price { overflow-wrap: anywhere; }

/* WP1 round 2: Leaflet ".poi" marker rule leaked onto the home coast SVG <g class="poi"> and moved the Arena Burgas / airport pins off-canvas */
.coast .poi { position: static; display: inline; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.coast .poi::after { content: none; }
.coast .poi.euro { cursor: pointer; }
.coast .poi.euro .mk { stroke: #fff; stroke-width: 2px; }
.matchb-h span { display: block; }
.matchb-h .acc { color: #FFB38A; }
.band-own .acc { font-style: normal; color: var(--sun); background: linear-gradient(transparent 62%, rgba(241, 90, 34, .16) 62%); padding: 0 .12em; border-radius: 4px; }

/* ---------- WP1 round 2: listing hero gallery (swipe + arrows, ordinary page scroll) ---------- */
.hero-gal { position: relative; background: #0B1A22; }
.hg-strip { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; height: clamp(240px, calc(var(--vh) * 46), 560px); touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.hg-strip::-webkit-scrollbar { display: none; }
.hg-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 0; border: 0; background: #0B1A22; position: relative; }
.hg-slide img { width: 100%; height: 100%; object-fit: cover; }
.hg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font-size: 28px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hg-nav.prev { left: 10px; } .hg-nav.next { right: 10px; }
.hg-count { position: absolute; left: 12px; bottom: 12px; background: rgba(11,26,34,.7); color: #fff; font: 600 13px var(--body); padding: 5px 10px; border-radius: 999px; }
.hg-all { position: absolute; right: 12px; bottom: 12px; min-height: 36px; background: rgba(255,255,255,.92); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 14px; font: 600 13px var(--body); }
.l-idrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.id-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed var(--ink-3, #6b6b6b); background: var(--paper); font-size: 13px; }
.id-chip span { color: var(--ink-2); font-weight: 600; } .id-chip b { font: 700 17px var(--display); letter-spacing: .02em; }
.l-idrow + div { margin-top: 12px; }
.pay-sub { font: 600 15px var(--body); margin: 22px 0 8px; }
.mobile-cta.is-off { display: none; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.chk input { width: 22px; height: 22px; accent-color: var(--sun); flex: none; }
@media (min-width: 981px) { .hg-strip { height: clamp(320px, calc(var(--vh) * 58), 620px); } .hg-slide { flex-basis: 100%; } }

/* ---------- WP1 round 2: full-screen map mode (phones) ---------- */
.map-bar { display: flex; gap: 8px; pointer-events: auto; align-items: center; flex-wrap: wrap; }
.mb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.96); box-shadow: 0 1px 6px rgba(0,0,0,.25); font: 600 14px var(--body); color: var(--ink); }
.mb svg { width: 18px; height: 18px; }
.mb-exit, .mb-fil { display: none; }
.mb-exit { width: 44px; padding: 0; justify-content: center; font-size: 22px; }
.map-tip { pointer-events: auto; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 13px; line-height: 1.3; margin: 0; max-width: 100%; }
.map-tip button { flex: none; min-height: 36px; border: 0; border-radius: 999px; padding: 0 12px; background: #fff; color: var(--ink); font-weight: 600; }
@media (min-width: 761px) { .mb-full, .map-tip { display: none; } }
@media (max-width: 760px) {
  body.map-full { overflow: hidden; }
  body.map-full .top, body.map-full .tabbar, body.map-full .res-bar, body.map-full .filters { display: none !important; }
  body.map-full .map-stage { position: fixed; inset: 0; z-index: 55; height: auto !important; border: 0; border-radius: 0; }
  body.map-full .map-ui { top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; }
  body.map-full .mb-exit, body.map-full .mb-fil { display: inline-flex; }
  body.map-full .mb-full, body.map-full .map-tip { display: none; }
  body.map-full .map-cards { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .map-legend { font-size: 11px; max-width: 80%; }
}
/* zoom buttons + attribution: quieter, never over the cards */
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 1px 6px rgba(0,0,0,.25) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 22px !important; color: var(--ink) !important; }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255,255,255,.7) !important; max-width: 60%; }
.map-stage .map-cards { bottom: 28px; }
@media (max-width: 760px) { body.map-full .map-stage .map-cards { bottom: calc(28px + env(safe-area-inset-bottom)); } }
.map-stage .leaflet-bottom { z-index: 400; }
.mb svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.leaflet-control-attribution { max-width: none !important; white-space: nowrap; }
.coast .poi.euro text { font-size: 22px; font-weight: 700; }
