/* Kerege Resort · подбор апартаментов + 360°
   Two surfaces from one palette: paper (подбор, планировка — plans are white drawings, shown in a lit office or on a TV)
   and dark glass over the panoramas. */
:root {
  --ink: #0A192C;            /* Kerege navy, from the logo */
  --ink-2: #4A5566;          /* secondary text on paper, 7:1 */
  --ivory: #F2ECE0;
  --paper: #F7F4EE;
  --paper-2: #EEE9DF;
  --sheet: #FFFDF9;
  --rule: rgba(10, 25, 44, .12);
  --rule-2: rgba(10, 25, 44, .26);
  --sage: #CFE3C2;
  --teal: #1E4F78;           /* links and focus: lake blue */
  --sand: #C9A46A;           /* brand sand: counters and the active switch */
  --glass: rgba(10, 25, 44, .62);
  --line: rgba(242, 236, 224, .24);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --gut: max(20px, env(safe-area-inset-left));
  --top: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 16px; -webkit-font-smoothing: antialiased; }
body[data-mode="pano"] { background: var(--ink); color: var(--ivory); }
::selection { background: var(--ink); color: var(--ivory); }
button, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
body[data-mode="pano"] :focus-visible { outline-color: var(--sage); }
svg { flex: none; }

#pano { position: fixed; inset: 0; visibility: hidden; }
body[data-mode="pano"] #pano { visibility: visible; }

/* ── header ─────────────────────────────────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--top); display: flex; align-items: center; gap: 28px;
  padding: max(0px, env(safe-area-inset-top)) var(--gut) 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
body[data-mode="pano"] .top { background: linear-gradient(rgba(14,35,38,.66), rgba(14,35,38,0)); border-bottom-color: transparent; height: 96px; align-items: flex-start; padding-top: max(16px, env(safe-area-inset-top)); }
.top { transition: background .25s var(--ease), border-color .25s var(--ease); }
/* on the photo band the header has no plate of its own; it gets one once the list scrolls under it */
body[data-mode="pick"]:not(.scrolled) .top { background: linear-gradient(rgba(247,244,238,.7), rgba(247,244,238,0)); border-bottom-color: transparent; }
.brand { display: block; text-decoration: none; flex: none; }
.logo { display: block; height: 52px; width: auto; }
.logo-light, body[data-mode="pano"] .logo-dark { display: none; }
body[data-mode="pano"] .logo-light { display: block; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
body[data-mode="pano"] .tabs { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 500;
  color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--ink); color: var(--ivory); }
body[data-mode="pano"] .tab { color: rgba(242,236,224,.82); }
body[data-mode="pano"] .tab:hover { color: var(--ivory); }
body[data-mode="pano"] .tab.on { background: var(--ivory); color: var(--ink); }
.tab b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 600;
  background: var(--sand); color: var(--ink); }
.tools { display: flex; gap: 8px; margin-left: auto; }
.tool { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-2); cursor: pointer; background: var(--sheet);
  display: grid; place-items: center; transition: background .2s, border-color .2s; }
.tool:hover { border-color: var(--ink); }
.tool.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body[data-mode="pano"] .tool { background: var(--glass); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body[data-mode="pano"] .tool:hover { border-color: var(--ivory); }
body[data-mode="pano"] .tool.on { background: var(--ivory); color: var(--ink); }
body:not([data-mode="pano"]) .pano-only { display: none; }

/* ── screens on paper ───────────────────────────────────── */
.screen { position: fixed; inset: var(--top) 0 0; overflow-y: auto; overscroll-behavior: contain; display: none; background: var(--paper); }
body[data-mode="pick"] #pick { display: block; inset: 0; }
body[data-mode="detail"] #detail { display: grid; }
body[data-mode="pano"] .screen { display: none; }
body:not([data-mode="pano"]) .pano-ui { display: none !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.col { flex-direction: column; align-items: flex-start; }
.chip { min-height: 44px; border: 1px solid var(--rule-2); background: var(--sheet); border-radius: 999px; padding: 10px 18px; font-size: .9375rem; cursor: pointer;
  text-align: left; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip b { font-weight: 600; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--rule-2); background: var(--sheet);
  border-radius: 999px; padding: 10px 20px; font-size: .9375rem; font-weight: 500; cursor: pointer; text-decoration: none; text-align: center;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; border-color: var(--rule-2); }
.btn.primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.primary:hover { background: #16304F; }
.btn.big { width: 100%; min-height: 58px; font-size: 1.0625rem; font-weight: 600; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link-btn { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9375rem; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.back:hover { color: var(--ink); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 1. подбор */
.hero { position: relative; height: clamp(380px, 48vh, 560px); overflow: hidden; background: #BFD3DA; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,244,238,.78), rgba(247,244,238,.25) 45%, rgba(247,244,238,0) 70%),
              linear-gradient(rgba(247,244,238,0) 55%, rgba(247,244,238,.9) 92%, var(--paper)); }
.hero-in { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: 108px; max-width: 760px; }
.pick-title { font-family: var(--serif); font-weight: 500; font-size: 4.25rem; line-height: .98; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }
.pick-lead { margin: 0; max-width: 46ch; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; }
.filters { position: relative; z-index: 2; margin: -72px var(--gut) 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 0;
  padding: 22px 28px; border-radius: 20px; background: rgba(255,253,249,.94); border: 1px solid var(--rule);
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); box-shadow: 0 24px 60px -32px rgba(10,25,44,.45); }
.fgroup { border: 0; margin: 0; padding: 0 24px 0 0; min-width: 0; }
.filters .fgroup + .fgroup { padding-left: 24px; border-left: 1px solid var(--rule); }
.flabel { padding: 0; margin: 0 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.switch { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; border: 0; background: none; padding: 0; cursor: pointer; font-size: .9375rem; font-weight: 500; }
.switch-track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule-2); transition: background .2s var(--ease); }
.switch-track i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(10,25,44,.3);
  transition: transform .22s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--ink); border-color: var(--ink); }
.switch[aria-checked="true"] .switch-track i { transform: translateX(22px); }
.pick-note { margin: 36px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); max-width: 80ch; }
body.sel-view .filters { display: none; }
body.sel-view .hero-in { bottom: 56px; }
.pick-main { padding: 34px var(--gut) 56px; min-width: 0; }
.pick-bar { display: flex; align-items: center; gap: 16px 28px; margin-bottom: 22px; flex-wrap: wrap; }
.pick-bar .switch { margin-left: auto; }
body.sel-view .pick-bar .switch, body.sel-view #fReset { display: none; }
.pick-count { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 2rem; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.sort select { min-height: 44px; border: 1px solid var(--rule-2); border-radius: 999px; padding: 0 36px 0 16px; background: var(--sheet); color: var(--ink); cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A192C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
body.sel-view .sort { display: none; }
.sel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 20px; margin-bottom: 20px;
  border-radius: 14px; background: var(--sheet); border: 1px solid var(--rule); }
.sel-bar p { margin: 0; max-width: 60ch; color: var(--ink-2); line-height: 1.5; }
.sel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { position: relative; border-radius: 18px; background: var(--sheet); border: 1px solid var(--rule); transition: border-color .2s var(--ease), box-shadow .25s var(--ease); }
.card:hover { border-color: var(--rule-2); box-shadow: 0 18px 40px -22px rgba(10,25,44,.4); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: 14px; }
.card-img { height: 250px; display: grid; place-items: center; padding: 22px 22px 8px; }
.card-img img { max-width: 100%; max-height: 220px; width: auto; height: auto; transition: transform .4s var(--ease); }
.card:hover .card-img img { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--rule); }
.card-title { font-family: var(--serif); font-weight: 500; font-size: 1.625rem; line-height: 1.1; margin-bottom: 4px; }
.card-title b { font-weight: 600; white-space: nowrap; }
.card-meta { font-size: .875rem; color: var(--ink-2); }
.tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  color: var(--ivory); background: var(--ink); }
.card-star { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--sheet);
  display: grid; place-items: center; cursor: pointer; transition: border-color .18s, background .18s, transform .18s var(--ease); }
.card-star:hover { border-color: var(--ink); transform: scale(1.06); }
.star-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.star-i .fill, .on > .star-i path { fill: currentColor; }
.card-star.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.empty { grid-column: 1 / -1; padding: 48px 0; font-size: 1.0625rem; color: var(--ink-2); }

/* 2. планировка */
.detail { grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); }
.d-plan { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 28px var(--gut); min-height: calc(100vh - var(--top)); }
.d-img { position: relative; flex: 1; min-height: 360px; display: grid; place-items: center; padding: 36px; border-radius: 16px; background: var(--sheet);
  border: 1px solid var(--rule); cursor: zoom-in; }
.d-img img { position: absolute; inset: 36px; width: calc(100% - 72px); height: calc(100% - 72px); object-fit: contain; }
.d-zoom-hint { position: absolute; right: 16px; bottom: 14px; font-size: .8125rem; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--paper); }
.d-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--ink-2); }
.d-info { padding: 32px var(--gut) 40px 12px; display: flex; flex-direction: column; gap: 18px; }
.d-title { font-family: var(--serif); font-weight: 500; font-size: 2.75rem; line-height: 1.02; margin: 6px 0 0; outline: none; }
.d-title b { font-weight: 600; white-space: nowrap; }
.d-place { margin: -8px 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.d-cta { display: flex; flex-direction: column; gap: 10px; }
.d-no360 { margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--paper-2); color: var(--ink-2); }
.d-facts { margin: 0; border-top: 1px solid var(--rule); }
.d-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.d-facts dt { color: var(--ink-2); }
.d-facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.star.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.d-where .flabel { margin-bottom: 12px; }
.d-schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.scheme { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--rule); background: var(--sheet); cursor: zoom-in; font-size: .8125rem;
  color: var(--ink-2); transition: border-color .18s; }
.scheme:hover { border-color: var(--rule-2); }
.scheme img { width: 100%; height: auto; display: block; }

/* zoom */
.zoom { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(8,20,22,.9);
  transition: opacity .2s var(--ease), visibility .2s; }
.zoom.off { opacity: 0; visibility: hidden; }
.zoom figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.zoom img { display: block; max-width: min(1100px, calc(100vw - 48px)); max-height: calc(100vh - 120px); border-radius: 12px; background: var(--sheet); padding: 18px; }
.zoom figcaption { font-size: 1rem; color: var(--ivory); text-align: center; }
.zoom > .tool { position: absolute; top: max(16px, env(safe-area-inset-top)); right: var(--gut); background: var(--glass); border-color: var(--line); color: var(--ivory); }

.legal { position: fixed; left: var(--gut); bottom: 8px; margin: 0; font-size: .625rem; opacity: .6; z-index: 6; pointer-events: none; }
body:not([data-mode="pano"]) .legal { display: none; }
.hint { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px; z-index: 6;
  background: rgba(14,35,38,.66); color: var(--ivory); font-size: .875rem; pointer-events: none; transition: opacity .5s; }
.hint.off { opacity: 0; }
.toast { z-index: 40; top: calc(var(--top) + 16px); transform: translateX(-50%); background: var(--ink); color: var(--ivory); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  max-width: calc(100vw - 32px); overflow-wrap: anywhere; user-select: all; }

/* ── 360° on dark glass ─────────────────────────────────── */
body[data-mode="pano"]::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 380px; z-index: 3; pointer-events: none;
  background: linear-gradient(rgba(14,35,38,0), rgba(14,35,38,.35) 45%, rgba(14,35,38,.72)); }
.caption { position: fixed; left: var(--gut); bottom: 150px; z-index: 4; max-width: min(560px, calc(100vw - 32px)); pointer-events: none;
  text-shadow: 0 1px 18px rgba(14,35,38,.7); }
.caption .back.pill { pointer-events: auto; margin-bottom: 14px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--ivory); color: var(--ink);
  text-shadow: none; font-weight: 600; box-shadow: 0 10px 26px -12px rgba(0,0,0,.5); }
.caption .back.pill:hover { background: #fff; }
.caption-title { font-family: var(--serif); font-weight: 500; font-size: 3.25rem; line-height: 1; margin: 0 0 8px; }
.caption-sub { margin: 0; font-size: 1rem; opacity: .92; }
.time { pointer-events: auto; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); cursor: pointer; font-size: .875rem; text-shadow: none; color: var(--ivory); }
.time i { width: 22px; height: 22px; border-radius: 50%; display: block; transition: opacity .3s; }
.time-sun { background: radial-gradient(circle, #F6D88F 40%, rgba(246,216,143,.25) 42%); }
.time-moon { margin-left: -30px; opacity: 0; background: radial-gradient(circle at 65% 35%, transparent 38%, var(--ivory) 40%); }
.time.on .time-sun { opacity: 0; }
.time.on .time-moon { opacity: 1; }
.time::after { content: "переключить"; opacity: .6; font-size: .75rem; }

.cta { position: fixed; right: var(--gut); bottom: 150px; z-index: 6; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; background: var(--ivory); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .875rem; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: 12px; overflow-x: auto;
  padding: 14px var(--gut) max(30px, calc(env(safe-area-inset-bottom) + 22px)); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-group { flex: 0 0 auto; align-self: flex-start; writing-mode: vertical-rl; transform: rotate(180deg); height: 80px;
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; text-align: center; }
.thumb { flex: 0 0 auto; width: 148px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; opacity: .75; transition: opacity .2s; color: var(--ivory); }
.thumb:hover, .thumb.on { opacity: 1; }
.thumb img { display: block; width: 148px; height: 74px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.thumb.on img { border-color: var(--ivory); }
.thumb span { display: block; margin-top: 6px; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.map { position: fixed; top: 96px; right: var(--gut); z-index: 4; width: min(340px, calc(100vw - 32px)); padding: 8px; border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  transition: opacity .25s, transform .25s; }
.map.off { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.map-inner { position: relative; border-radius: 8px; overflow: hidden; }
.map-inner img { display: block; width: 100%; user-select: none; }
.dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--ivory);
  background: rgba(14,35,38,.6); cursor: pointer; padding: 0; }
.dot.on { background: var(--ivory); }
.cone { position: absolute; width: 0; height: 0; pointer-events: none; }
.cone::before { content: ""; position: absolute; left: 0; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 60deg, rgba(242,236,224,.55) 0 60deg, transparent 60deg); transform: translate(-50%, 0); }

.hs { width: 0; height: 0; }
.hs-in { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.hs-ring { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ivory); background: rgba(14,35,38,.35);
  display: grid; place-items: center; transition: transform .2s, background .2s; box-shadow: 0 0 0 6px rgba(242,236,224,.14); }
.hs-ring::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); }
.hs-in:hover .hs-ring { transform: scale(1.1); background: rgba(14,35,38,.6); }
.hs-label { white-space: nowrap; font-size: .8125rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; color: var(--ivory);
  background: rgba(14,35,38,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hs-label small { opacity: .7; margin-left: 6px; font-weight: 400; }
.hs.small .hs-ring { width: 30px; height: 30px; }
.hs.small .hs-ring::after { width: 8px; height: 8px; }
.hs.small .hs-label { font-size: .75rem; padding: 4px 10px; }
.pnlm-load-box { background: rgba(14,35,38,.7) !important; font-family: var(--sans); border-radius: 12px !important; }
.pnlm-about-msg { display: none !important; }

.walk { width: 0; height: 0; }
.walk i { position: absolute; left: 0; top: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; cursor: pointer;
  transform: scale(var(--s)) perspective(300px) rotateX(64deg); border: 2.5px solid rgba(242,236,224,.92);
  background: radial-gradient(circle, rgba(242,236,224,.5) 0 13%, rgba(14,35,38,.18) 15% 100%);
  box-shadow: 0 0 0 5px rgba(242,236,224,.16), 0 6px 18px rgba(0,0,0,.25); transition: background .2s, box-shadow .2s; }
.walk:hover i { background: radial-gradient(circle, var(--ivory) 0 18%, rgba(242,236,224,.3) 20% 100%);
  box-shadow: 0 0 0 8px rgba(242,236,224,.28), 0 6px 18px rgba(0,0,0,.25); }

.fplan { position: fixed; top: 96px; right: var(--gut); z-index: 4; width: max-content; min-width: 200px; max-width: calc(100vw - 32px); padding: 10px; border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); color: var(--ivory);
  transition: opacity .25s, transform .25s; display: none; }
body.in-flat .fplan { display: block; }
body.in-flat .map { display: none; }
.fplan.off { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.fplan.big .fplan-inner img { max-width: min(620px, calc(100vw - 52px)); max-height: calc(100vh - 240px); }
.fplan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 600; margin: 0 2px 8px; }
.fplan-size { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.fplan-size svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fplan-inner { position: relative; border-radius: 8px; overflow: hidden; width: fit-content; margin: 0 auto; }
.fplan-inner img { display: block; width: auto; height: auto; max-width: 300px; max-height: min(46vh, 430px); user-select: none; }
.fplan-note { margin: 8px 2px 0; font-size: .75rem; opacity: .75; max-width: 300px; }
.step { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid var(--ivory); background: rgba(14,35,38,.55); transition: transform .15s; z-index: 2; }
.step:hover { transform: scale(1.35); }
.step.on { background: var(--ivory); transform: scale(1.3); z-index: 3; }
.room { position: absolute; transform: translate(-50%, -190%); font-size: .625rem; letter-spacing: .06em; white-space: nowrap; pointer-events: none;
  padding: 2px 7px; border-radius: 999px; background: rgba(14,35,38,.62); z-index: 1; }
.room.below { transform: translate(-50%, 90%); }
.cone.big { z-index: 2; }
.cone.big::before { top: -34px; width: 68px; height: 68px; background: conic-gradient(from 60deg, rgba(242,236,224,.6) 0 60deg, transparent 60deg); }
.walk-hint { top: auto; bottom: 236px; transform: translateX(-50%); }

/* ── smaller screens ───────────────────────────────────── */
@media (min-width: 1600px) { .logo { height: 64px; } }
@media (max-width: 1100px) {
  .pick-title { font-size: 3.25rem; }
  .filters .fgroup + .fgroup { padding-left: 0; border-left: 0; }
  .fgroup { padding-right: 28px; }
  body[data-mode="detail"] #detail { display: block; }
  .d-plan { min-height: 0; padding-right: var(--gut); }
  .d-img { flex: none; min-height: 0; height: 58vh; }
  .d-info { padding: 8px var(--gut) 40px; max-width: 720px; }
}
@media (max-width: 760px) {
  :root { --top: 112px; }
  .top { flex-wrap: wrap; height: var(--top); gap: 10px 14px; align-content: center; }
  body[data-mode="pano"] .top { height: 120px; }
  .logo { height: 40px; }
  .tabs { order: 3; width: 100%; justify-content: space-between; }
  .tab { flex: 1; justify-content: center; padding: 9px 8px; font-size: .8125rem; }
  .tool { width: 40px; height: 40px; }
  .hero { height: 330px; }
  .hero::after { background: linear-gradient(rgba(247,244,238,.55), rgba(247,244,238,.1) 40%, rgba(247,244,238,.92) 88%, var(--paper)); }
  .hero-in { bottom: 52px; }
  .pick-title { font-size: 2.375rem; }
  .pick-lead { font-size: .9375rem; }
  .filters { margin: -28px var(--gut) 0; padding: 18px; gap: 16px; border-radius: 16px; }
  .fgroup { padding-right: 0; width: 100%; }
  .pick-main { padding: 20px var(--gut) 40px; }
  .pick-bar { flex-wrap: wrap; }
  .pick-count { font-size: 1.0625rem; }
  .sort { font-size: 0; gap: 0; }
  .pick-bar .switch { margin-left: 0; }
  .sort select { font-size: .875rem; }
  .grid { grid-template-columns: 1fr; }
  .card-img { height: 220px; }
  .card-img img { max-height: 190px; }
  .d-plan { padding: 16px var(--gut) 0; }
  .d-img { height: 46vh; padding: 18px; }
  .d-img img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }
  .d-nav .btn { padding: 8px 14px; }
  .d-title { font-size: 2.125rem; }
  .caption { bottom: 196px; }
  .caption-title { font-size: 2.125rem; }
  .caption-sub { font-size: .875rem; }
  .cta { left: var(--gut); right: var(--gut); bottom: 128px; justify-content: center; }
  .map, .fplan { top: 128px; }
  .map { width: 210px; }
  .map.off { transform: none; }
  .fplan { min-width: 0; padding: 6px; }
  .fplan-inner img { max-width: 150px; max-height: 30vh; }
  .fplan-head span { display: none; }
  .fplan-note, .room { display: none; }
  .thumb { width: 112px; }
  .thumb img { width: 112px; height: 56px; }
  .walk-hint { bottom: 300px; width: calc(100vw - 48px); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
