/* Plaza Coral · web de disponibilidad. Paleta «laguna»: espuma, laguna, verde vidrio de mar para lo libre, persianas
   para lo ocupado y coral solo para lo elegido. Tipos: Bricolage Grotesque (títulos y números), Figtree (texto), IBM
   Plex Mono (fechas y etiquetas). La pieza que se recuerda: el edificio dibujado piso a piso, que contesta. */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Hebrew: only downloaded when there are Hebrew letters on the page */
@font-face { font-family: "Heebo"; src: url("/fonts/heebo-hebrew.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --bg: #eaf2f0;
  --surface: #ffffff;
  --ink: #0c3b45;
  --ink-2: #4a666b;
  --line: #c9dad7;
  --free: #0b7f69;
  --free-strong: #13a487;
  --free-bg: #d3f0e8;
  --slat-a: #dde6e5;
  --slat-b: #c5d2d1;
  --coral: #ee5a55;
  --coral-ink: #ffffff;
  --coral-soft: #ffe3df;
  --water-a: #8fd8dc;
  --water-b: #5cc2c9;
  --shadow: 0 1px 2px rgb(12 59 69 / 0.06), 0 8px 24px rgb(12 59 69 / 0.08);
  --cta: #0c3b45;
  --cta-ink: #ffffff;
  --r: 18px;
  --disp: "Bricolage", "Heebo", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", "Heebo", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08181d; --surface: #0f252c; --ink: #e3f1ee; --ink-2: #93b1b2; --line: #21404a;
    --free: #55d9b8; --free-strong: #2fb795; --free-bg: #123f39; --slat-a: #17313a; --slat-b: #1f3e48;
    --coral: #ff776e; --coral-ink: #1a0b0a; --coral-soft: #3c2022; --water-a: #1b6c74; --water-b: #145860;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.35); --cta: #55d9b8; --cta-ink: #06231d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08181d; --surface: #0f252c; --ink: #e3f1ee; --ink-2: #93b1b2; --line: #21404a;
  --free: #55d9b8; --free-strong: #2fb795; --free-bg: #123f39; --slat-a: #17313a; --slat-b: #1f3e48;
  --coral: #ff776e; --coral-ink: #1a0b0a; --coral-soft: #3c2022; --water-a: #1b6c74; --water-b: #145860;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.35); --cta: #55d9b8; --cta-ink: #06231d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  padding-bottom: 24px;
}
body.with-bar { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; }
button, a, output { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ico { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.ico svg, .icon-btn svg { width: 100%; height: 100%; }
.fine { color: var(--ink-2); font-size: 0.88rem; margin: 0.6rem 0 0; }
.center { text-align: center; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ── top ─────────────────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  max-width: 1240px; margin: 0 auto;
}
.brand { direction: ltr; unicode-bidi: isolate; font: 800 1.15rem/1 var(--disp); letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: baseline; gap: 0.3em; }
.brand span { color: var(--coral); }
.spacer { flex: 1; }
.top-actions { display: flex; gap: 8px; }
.pill {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 12px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; min-height: 36px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; padding: 9px; flex: none;
}
.icon-btn.solid { background: var(--surface); border-color: var(--line); width: 52px; height: 52px; padding: 13px; }

/* ── layout ──────────────────────────────────────────────────────── */
main { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 1000px) {
  main { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; gap: 56px; align-items: start; padding: 0 28px; }
  .top { padding: 18px 28px; }
}

/* ── the question ────────────────────────────────────────────────── */
.ask { padding-top: 6px; scroll-margin-top: 8px; }
.ask .eyebrow { margin: 0; }
h1 {
  font: 800 clamp(3rem, 14.5vw, 5.4rem)/0.9 var(--disp); letter-spacing: -0.045em;
  margin: 0.1em 0 0.25em; text-wrap: balance;
}
@media (min-width: 1000px) { h1 { font-size: 4.2rem; } }
@media (min-width: 1000px) and (min-height: 940px) { .col-ask { position: sticky; top: 12px; } }
.lead { font-size: 1.06rem; color: var(--ink-2); margin: 0 0 18px; max-width: 34em; text-wrap: pretty; }
.query { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dates {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: left;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: 10px 14px; min-height: 68px;
  box-shadow: var(--shadow); position: relative;
}
.dates.set { border-color: var(--coral); }
.dates:not(.set) { grid-template-columns: 1fr; }
.dates:not(.set) .q-arrow, .dates:not(.set) .q + .q-arrow + .q { display: none; }
.q { display: grid; gap: 2px; min-width: 0; }
.q-lbl { color: var(--ink-2); font-size: 0.66rem; }
.q-val { font: 700 1.12rem/1.15 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-arrow { color: var(--ink-2); font-size: 1.1rem; }
.q-nights { position: absolute; inset-inline-end: 12px; top: -9px; background: var(--coral); color: var(--coral-ink); padding: 2px 8px; border-radius: 999px; font-size: 0.62rem; }
.q-nights:empty { display: none; }
.guests {
  display: grid; gap: 4px; align-content: center; background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--r); padding: 8px 10px; box-shadow: var(--shadow);
}
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg);
  font: 600 1.15rem/1 var(--body);
}
.stepper button:disabled { opacity: 0.35; }
.stepper output { min-width: 1.6em; text-align: center; font: 800 1.3rem/1 var(--disp); }
.hours { color: var(--ink-2); margin: 12px 0 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; text-transform: none; letter-spacing: 0.01em; font-size: 0.74rem; }
.hours .link { font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── the calendar, right on the page ──────────────────────────────── */
.cal { margin-top: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 8px 4px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 8px; }
.cal-prompt { margin: 0; font: 700 1.08rem/1.2 var(--disp); }
.cal-nav { display: flex; gap: 6px; }
.cal-nav .icon-btn { width: 36px; height: 36px; padding: 8px; }
.cal .dots-hint { padding: 0 8px; margin: 4px 0 0; font-size: 0.8rem; }
.cal-months { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cal-months::-webkit-scrollbar { display: none; }
.cal-months .month { flex: 0 0 100%; scroll-snap-align: start; padding: 0 4px; margin-bottom: 4px; }

/* ── the building: a dark live panel, an elevation in 3D ─────────── */
.tower { margin-top: 22px; scroll-margin-top: 8px; }
.panel {
  --p-ink: #d8f1eb; --p-dim: #84aaab;
  position: relative; overflow: hidden; border-radius: 22px; padding: 14px 12px 12px; color: var(--p-ink);
  background: radial-gradient(130% 90% at 75% 0%, #0f3a45 0%, #071d24 58%, #051419 100%);
  box-shadow: 0 22px 50px rgb(5 20 25 / 0.32), inset 0 0 0 1px rgb(120 220 205 / 0.16);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.panel .eyebrow { color: var(--p-dim); margin: 0; flex: none; }
.panel-count { margin: 0; font: 600 0.86rem/1.3 var(--body); color: var(--p-dim); text-align: end; }
.panel-count.on { color: #6ff5cf; }
.building { margin-top: 4px; }
.bld-svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-dot { fill: rgb(120 220 205 / 0.13); }
.ground { stroke: rgb(120 220 205 / 0.28); stroke-width: 1; }
.roof { fill: #17505c; stroke: rgb(120 220 205 / 0.4); stroke-width: 1; }
.side { fill: #0a2b34; stroke: rgb(120 220 205 / 0.22); stroke-width: 1; }
.slab { stroke: rgb(120 220 205 / 0.28); stroke-width: 1; }
.pool-water { fill: url(#pc-water); stroke: rgb(140 240 235 / 0.65); stroke-width: 1; }
.gw-a { stop-color: #1d97a3; } .gw-b { stop-color: #0b4f5a; }
.ripple { stroke: rgb(210 255 250 / 0.55); stroke-width: 1; stroke-dasharray: 10 8; fill: none; animation: ripple 4s linear infinite; }
.ripple.r2 { animation-duration: 5.5s; opacity: 0.6; }
@keyframes ripple { to { stroke-dashoffset: -72; } }
.pool-label { fill: rgb(220 255 250 / 0.75); font: 500 8px var(--mono); letter-spacing: 0.16em; }
.u { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.u-face { fill: #12363f; stroke: rgb(120 220 205 / 0.38); stroke-width: 1; transition: fill 0.3s, stroke 0.3s; }
.u-slats { fill: url(#pc-slats); opacity: 0; pointer-events: none; }
.slat { fill: rgb(255 255 255 / 0.07); }
.u-side { fill: #0d313a; }
.u-num { fill: var(--p-ink); font: 800 34px var(--disp); letter-spacing: -0.04em; }
.u-kind { fill: var(--p-ink); font: 600 12px var(--body); }
.u-cap { color: var(--p-dim); }
.u-cap circle, .u-cap path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.u-cap text { fill: currentColor; stroke: none; font: 500 10px var(--mono); letter-spacing: 0.03em; }
.u-band { fill: rgb(255 255 255 / 0.05); }
.u-chip { fill: var(--p-dim); font: 600 9px var(--mono); letter-spacing: 0.1em; }
.u.free .u-face, .u.extra .u-face { fill: url(#pc-free); stroke: #74f7d2; stroke-width: 1.4; filter: url(#pc-glow); }
.gf-a { stop-color: #1cc29b; } .gf-b { stop-color: #0b7a66; }
.u.free .u-side, .u.extra .u-side { fill: #0a6555; }
.u.free .u-num, .u.free .u-kind, .u.extra .u-num, .u.extra .u-kind, .u.free .u-chip, .u.extra .u-chip { fill: #ffffff; }
.u.free .u-cap, .u.extra .u-cap { color: #dcfff5; }
.u.free .u-band, .u.extra .u-band { fill: rgb(0 40 30 / 0.28); }
.u.busy .u-face, .u.nofit .u-face { fill: #0a1f26; stroke: rgb(120 220 205 / 0.12); }
.u.busy .u-slats { opacity: 1; }
.u.nofit .u-face { stroke-dasharray: 4 3; }
.u.busy .u-num, .u.busy .u-kind, .u.busy .u-cap, .u.nofit .u-num, .u.nofit .u-kind, .u.nofit .u-cap { opacity: 0.3; }
.u.loading .u-face { animation: breathe 1.4s ease-in-out infinite; }
.u.picked .u-face, .u:focus-visible .u-face { stroke: #ff7a70; stroke-width: 2.4; }
@media (hover: hover) { .u:hover .u-face { stroke: #a8fff0; } }
@keyframes breathe { 50% { opacity: 0.55; } }
.scan { fill: url(#pc-scan); opacity: 0; pointer-events: none; }
.gs-a { stop-color: rgb(110 245 210); stop-opacity: 0; } .gs-b { stop-color: rgb(110 245 210); stop-opacity: 0.55; }
.building.flip .scan { animation: scan 1.1s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
@keyframes scan { 0% { opacity: 0.9; transform: translateY(250px); } 85% { opacity: 0.5; } 100% { opacity: 0; transform: translateY(-8px); } }
.building.flip .u.free .u-face, .building.flip .u.extra .u-face { animation: lit 0.7s ease-out both; animation-delay: calc(var(--f) * 160ms + 160ms); }
@keyframes lit { from { fill-opacity: 0.1; stroke-opacity: 0.2; } to { fill-opacity: 1; stroke-opacity: 1; } }
.panel-foot { margin: 6px 4px 0; color: var(--p-dim); display: flex; align-items: center; gap: 8px; font-size: 0.6rem; min-height: 1em; }
.live { width: 7px; height: 7px; border-radius: 99px; background: #3ee8b5; flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(62 232 181 / 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgb(62 232 181 / 0); } }
#updated.warn { color: #ffd3cd; text-transform: none; letter-spacing: 0; font: 500 0.9rem/1.4 var(--body); }

/* ── the answer ──────────────────────────────────────────────────── */
.col-more { min-width: 0; }
.answer { margin-top: 34px; scroll-margin-top: 10px; }
@media (min-width: 1000px) { .answer { margin-top: 20px; } }
.answer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.answer-range { font: 700 1.35rem/1.2 var(--disp); letter-spacing: -0.01em; margin: 0; }
.banner { background: var(--surface); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; border-inline-start: 5px solid var(--coral); box-shadow: var(--shadow); }
.banner p { margin: 0; }
.banner.group { border-inline-start-color: var(--free-strong); }
.banner.warn { display: grid; gap: 12px; }
.banner .split { margin-top: 10px; color: var(--ink-2); }
.banner .fine { margin-top: 12px; }
.combos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.combos a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; font-weight: 600;
  background: var(--free-bg); border-radius: 12px; padding: 12px 14px;
}
.cards { display: grid; gap: 12px; }
.others { margin-top: 16px; }
.others summary {
  cursor: pointer; font-weight: 700; padding: 13px 16px; background: var(--surface); border-radius: 14px; border: 1.5px solid var(--line);
  list-style: none; display: flex; justify-content: space-between; gap: 10px;
}
.others summary::-webkit-details-marker { display: none; }
.others summary::after { content: "+"; font-weight: 800; color: var(--coral); }
.others[open] summary::after { content: "–"; }
.others .cards { margin-top: 12px; }
.btn.small { min-height: 42px; font-size: 0.88rem; padding: 0 14px; justify-self: start; margin-top: 4px; gap: 8px; }
.btn.small .ico { width: 1.1em; height: 1.1em; }
@media (min-width: 1200px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: grid; grid-template-columns: 34% 1fr; background: var(--surface); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); min-height: 168px;
}
.card.picked { box-shadow: 0 0 0 3px var(--coral), var(--shadow); }
.card-pic { position: relative; padding: 0; border: 0; background: var(--line); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-num {
  position: absolute; inset-inline-start: 8px; top: 6px; font: 800 2.2rem/1 var(--disp); color: #fff; letter-spacing: -0.04em;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
}
.card-body { padding: 12px 14px 12px; display: grid; align-content: start; gap: 6px; min-width: 0; }
.card h3 { margin: 0; font: 700 1.1rem/1.15 var(--disp); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.card-floor { color: var(--ink-2); font-size: 0.62rem; }
.tagline { margin: 0; color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; }
.status { margin: 2px 0 0; font-weight: 700; font-size: 0.95rem; }
.status.free { color: var(--free); }
.status.busy { color: var(--ink-2); }
.status.nofit { color: var(--ink-2); font-weight: 600; }
.note { margin: 0; font-size: 0.86rem; color: var(--free); }
.alt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; width: 100%;
  background: var(--coral-soft); color: var(--ink); border: 0; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 0.9rem;
}
.alt.none { background: var(--bg); font-weight: 500; }
.alt .ico { color: var(--coral); }
.banner .alt { margin-top: 10px; }
.see {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0;
  font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px;
}
.see .ico { width: 1em; height: 1em; }
.card.is-busy .card-pic img { filter: saturate(0.35); opacity: 0.8; }
.card.is-nofit { opacity: 0.62; }
.card.is-nofit .card-pic img { filter: grayscale(1); }

/* cards stacked on phones: photo on top, room for the button */
@media (max-width: 699px) {
  .card { grid-template-columns: 1fr; }
  .card-pic { aspect-ratio: 16 / 9; }
  .card-num { font-size: 2.6rem; inset-inline-start: 12px; top: 8px; }
  .card-body { padding: 14px 16px 16px; }
  .btn.small { justify-self: stretch; font-size: 0.95rem; min-height: 48px; }
}

/* ── the strips ──────────────────────────────────────────────────── */
.strips { margin-top: 40px; }
.strips-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 16px; }
.legend { color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin: 0; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 6px; }
.sw:first-child { margin-left: 0; }
.sw.free { background: var(--free-strong); }
.sw.busy { background: repeating-linear-gradient(180deg, var(--slat-a) 0 3px, var(--slat-b) 3px 4px); border: 1px solid var(--slat-b); }
.strips-scroll { overflow-x: auto; margin: 12px -18px 0; padding: 0 18px 6px; scrollbar-width: thin; }
.strips-inner { width: 1000px; display: grid; gap: 6px; }
@media (min-width: 1000px) { .strips-scroll { margin: 12px 0 0; padding: 0 0 6px; } .strips-inner { width: 100%; min-width: 640px; } }
.scale { position: relative; height: 16px; margin-left: 30px; }
.scale span { position: absolute; top: 0; color: var(--ink-2); font-size: 0.6rem; border-left: 1px solid var(--line); padding-left: 4px; }
.strip { display: grid; grid-template-columns: 30px 1fr; align-items: center; }
.strip-num { font: 800 1.2rem/1 var(--disp); }
.track { position: relative; height: 30px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg { position: absolute; top: 0; bottom: 0; border: 0; padding: 0; border-radius: 0; }
.seg.busy { background: repeating-linear-gradient(180deg, var(--slat-a) 0 5px, var(--slat-b) 5px 7px); }
.seg.free { background: var(--free-bg); box-shadow: inset 0 0 0 1px var(--free-strong); border-radius: 7px; }
.seg.free:hover { background: var(--free-strong); }

/* ── info ────────────────────────────────────────────────────────── */
.info { margin-top: 56px; }
.sec-title { font: 700 1.55rem/1.1 var(--disp); letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.sec-title.small { font-size: 1.15rem; margin-top: 26px; }
.info p { margin: 0 0 10px; max-width: 40em; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; }
.steps li::before { content: counter(s); font: 800 2rem/1 var(--disp); color: var(--coral); }
.place-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; }
.place-pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 4 / 3; }
.place-pics img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.points { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.points li { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.9rem; }
.know { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 8px; max-width: 42em; }
.know li::marker { color: var(--coral); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border-radius: 999px; border: 0; background: var(--cta); color: var(--cta-ink); font-weight: 700; text-decoration: none;
}
.btn:disabled { opacity: 0.4; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost .ico { width: 1em; height: 1em; }
.btn.wide { flex: 1; }
.foot { color: var(--ink-2); display: grid; gap: 6px; margin: 64px 0 24px; padding-top: 18px; border-top: 1.5px solid var(--line); font-size: 0.66rem; }
.foot a { text-decoration: none; }

/* ── sticky bar ──────────────────────────────────────────────────── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bar-in { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.bar .btn { font-size: 0.92rem; padding: 0 14px; gap: 8px; }
.bar .icon-btn.solid { width: 50px; height: 52px; }
.bar-note { text-align: center; color: var(--ink-2); margin: 6px 0 0; font-size: 0.58rem; }
.bar-note:empty { display: none; }

/* ── sheets ──────────────────────────────────────────────────────── */
.sheet {
  border: 0; padding: 0; background: var(--surface); color: var(--ink); width: 100%; max-width: 100%;
  margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; overflow: hidden; display: none; flex-direction: column;
}
.sheet[open] { display: flex; animation: up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet::backdrop { background: rgb(4 18 22 / 0.55); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) {
  .sheet { margin: auto; border-radius: 22px; width: 520px; max-height: 88vh; }
  .sheet.tall { width: 760px; }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 8px; }
.sheet-title { font: 700 1.25rem/1.2 var(--disp); margin: 0; }
.dots-hint { padding: 0 18px; margin: 0 0 4px; }
.months { overflow-y: auto; padding: 4px 14px 12px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.month { margin-bottom: 14px; }
.month-name { font: 700 1rem/1 var(--disp); margin: 12px 4px 8px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wd { text-align: center; color: var(--ink-2); font-size: 0.6rem; padding: 4px 0; }
.day {
  position: relative; height: 48px; border: 0; background: transparent; border-radius: 10px; padding: 4px 0 0;
  display: grid; justify-items: center; align-content: start; gap: 3px;
}
.dn { font-weight: 600; font-size: 0.98rem; }
.day.off { opacity: 0.28; }
.day.today .dn { text-decoration: underline; text-underline-offset: 3px; }
.day.none .dn { color: var(--ink-2); }
.dots { display: flex; gap: 2px; }
.dots i { width: 4px; height: 4px; border-radius: 99px; background: var(--free-strong); }
.day.in { background: var(--coral-soft); border-radius: 0; }
.day.start, .day.end { background: var(--coral); color: var(--coral-ink); }
.day.start { border-radius: 10px 0 0 10px; }
.day.end { border-radius: 0 10px 10px 0; }
.day.start:not(.in) + .day:not(.in):not(.end), .day.start:last-child { border-radius: 10px; }
.day.start .dots i, .day.end .dots i { background: currentColor; }
.day.u-busy { background: repeating-linear-gradient(180deg, var(--slat-a) 0 5px, var(--slat-b) 5px 7px); border-radius: 0; }
.day.u-busy .dn { color: var(--ink-2); }
.day.u-free::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 8px; height: 3px; border-radius: 3px; background: var(--free-strong); }
.day.start.u-busy, .day.end.u-busy { background: var(--coral); }

/* the apartment */
.sheet.tall { overflow-y: auto; display: none; }
.sheet.tall[open] { display: block; }
.d-top { position: relative; }
.pics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 2; background: var(--line); }
.pics::-webkit-scrollbar { display: none; }
.pic { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn.float { position: absolute; inset-inline-end: 12px; top: 12px; z-index: 2; background: rgb(255 255 255 / 0.92); color: #0c3b45; border: 0; }
.pic-nav { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px; }
.pic-count { color: var(--ink-2); min-width: 4em; text-align: center; }
.d-body { padding: 4px 20px 28px; }
.d-floor { color: var(--ink-2); margin: 0; }
.d-title { font: 800 2rem/1 var(--disp); letter-spacing: -0.03em; margin: 6px 0 8px; display: flex; align-items: baseline; gap: 10px; }
.d-num { color: var(--coral); }
.tag { display: inline-block; background: var(--coral-soft); color: var(--ink); padding: 5px 10px; border-radius: 999px; margin: 8px 0 0; }
.d-state { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); display: grid; gap: 6px; }
.d-state p { margin: 0; }
.d-state.free { background: var(--free-bg); }
.chips { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 0.86rem; }
.d-text { margin: 0 0 16px; }
.ess { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ess li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ess .ico { color: var(--free); width: 22px; height: 22px; }
.ess strong { font-weight: 600; text-align: end; }
.d-cal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-top: 8px; scrollbar-width: thin; }
.d-cal .month { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 760px) { .d-cal .month { flex-basis: calc(50% - 8px); } }
.d-cta { display: flex; gap: 8px; margin-top: 22px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; opacity: 0;
  pointer-events: none; transition: 0.2s; z-index: 30;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.noscript { text-align: center; padding: 20px; }

/* right to left (Hebrew): timelines, photo strips and the drawing keep their direction; months read right to left */
[dir="rtl"] .arr svg { transform: scaleX(-1); }
[dir="rtl"] .cal-months, [dir="rtl"] .d-cal, [dir="rtl"] .pics, [dir="rtl"] .strips-inner, [dir="rtl"] .cal-nav, [dir="rtl"] .pic-nav, [dir="rtl"] .bld-svg { direction: ltr; }
[dir="rtl"] .cal-months .month, [dir="rtl"] .d-cal .month { direction: rtl; }
[lang="he"] .mono { letter-spacing: 0; }
[lang="he"] h1 { letter-spacing: -0.01em; line-height: 1.05; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
