/* ============================================================
   HARMONY Residence — monochrome visual identity
   (tmavá #262626 / biela #FFFFFF; greys are tints of the dark)
   ============================================================ */

:root {
  /* palette */
  --paper:      #ffffff;   /* biela */
  --paper-2:    #f4f4f4;
  --card:       #ffffff;
  --ink:        #262626;   /* tmavá */
  --ink-soft:   #555555;
  --ink-faint:  #707070;
  --line:       #dcdcdc;
  --line-soft:  #e8e8e8;

  /* status colours stay functional, outside the brand palette */
  --avail:      #5e7b5a;   /* Voľný  */
  --avail-bg:   #e7eee2;
  --reserved:   #b07d24;   /* Rezervovaný */
  --reserved-bg:#f4ead2;
  --sold:       #a14b41;   /* Predaný */
  --sold-bg:    #f0ddd8;

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* metrics */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(38,38,38,.05), 0 14px 40px -18px rgba(38,38,38,.28);
  --shadow-lg: 0 30px 80px -30px rgba(38,38,38,.45);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
/* in-text links: the palette has no accent colour, so links are underlined */
.page-head a:not(.btn), .empty a, .page-head__sub a, .inq__dev a, .kontakt-info .spec a, .inqrow__contact a {
  color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px;
}

/* ---------- type scale ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -.018em;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -.015em; }
.eyebrow {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; color: var(--ink-soft);
}
.lede { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: var(--ink-soft); line-height: 1.5; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 132px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

/* ============================================================
   header
   ============================================================ */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--ink); padding-block: 14px;
}
/* Home page: header overlays the dark hero, so it goes transparent + absolute. */
body[data-path="/"] .site-header {
  position: absolute; background: transparent; padding-block: 0; padding-top: 22px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; color: #fff; }
.brand img { height: clamp(28px, 3vw, 36px); width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { color: #fff; font-size: .92rem; opacity: .9; position: relative; padding-block: 4px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: currentColor; transition: width .3s ease;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: #fff; padding: .72rem 1.35rem;
  border-radius: 999px; font-size: .92rem; font-weight: 600;
  border: 1px solid transparent; transition: background .25s ease, transform .25s ease;
  white-space: nowrap;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light, .nav a.btn--light { background: #fff; color: var(--ink); opacity: 1; }
.btn--light:hover { background: #e6e6e6; }
.nav-toggle { display: none; }

/* ============================================================
   hero
   ============================================================ */
.hero { position: relative; min-height: min(94vh, 920px); display: flex; align-items: flex-end; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(38,38,38,.46) 0%, rgba(38,38,38,.05) 32%, rgba(38,38,38,.62) 100%),
    linear-gradient(90deg, rgba(38,38,38,.4) 0%, rgba(38,38,38,0) 55%);
}
.hero__inner { width: 100%; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 140px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { font-size: clamp(3rem, 9vw, 7.6rem); margin-top: .35em; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.hero h1 em { font-style: italic; }
.hero__meta {
  margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  align-items: center; font-size: 1.02rem;
}
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; display: inline-block; margin-right: .7rem; vertical-align: middle; }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__side {
  position: absolute; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%) rotate(90deg);
  transform-origin: right center; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  opacity: .7;
}
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 24px; font-size: .68rem; letter-spacing: .26em;
  text-transform: uppercase; opacity: .75; display: flex; align-items: center; gap: .6rem;
}
.scroll-cue i { width: 28px; height: 1px; background: currentColor; display: inline-block; animation: cue 2.4s ease-in-out infinite; transform-origin: left; }
@keyframes cue { 0%,100% { transform: scaleX(.4); opacity:.4 } 50% { transform: scaleX(1); opacity:1 } }

/* ============================================================
   stats ribbon
   ============================================================ */
.stats { background: var(--ink); color: var(--paper); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 46px) clamp(14px, 2vw, 34px); border-left: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border-left: 0; }
.stat .n { font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.stat .n small { font-size: .42em; color: rgba(255,255,255,.6); margin-left: .2em; }
.stat .l { margin-top: .6rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* ============================================================
   intro (editorial split)
   ============================================================ */
.intro .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__statement { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.intro__statement .mark { font-style: italic; }
.intro__body p + p { margin-top: 1.1rem; color: var(--ink-soft); }
.intro__features { margin-top: 1.8rem; display: grid; gap: .1rem; }
.intro__features div { display: flex; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.intro__features b { font-family: var(--display); font-weight: 500; min-width: 2.4rem; color: var(--ink-faint); }

/* ============================================================
   availability
   ============================================================ */
.avail { background: var(--paper-2); }
.avail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 2.6rem; }
.avail__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.avail-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.avail-bar i { display: block; height: 100%; }
.avail-bar .available { background: var(--avail); }
.avail-bar .reserved { background: var(--reserved); }
.avail-bar .sold { background: var(--sold); }
.legend { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .92rem; }
.legend span { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-soft); }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* floor selector — building cross-section */
.floors { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 10px; }
.floor-row {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: clamp(14px,2.5vw,32px);
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 28px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.floor-row:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--ink); }
.floor-row__code { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.floor-row__name { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: .2rem; }
.floor-row__bars { display: flex; gap: 5px; flex-wrap: wrap; }
.unit-pip { width: 26px; height: 26px; border-radius: 3px; display: grid; place-items: center;
  font-size: .62rem; font-weight: 700; color: #fff; }
.unit-pip.available { background: var(--avail); }
.unit-pip.reserved { background: var(--reserved); }
.unit-pip.sold { background: var(--sold); opacity: .55; }
.floor-row__cta { font-size: .9rem; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.floor-row__cta .ar { transition: transform .25s ease; }
.floor-row:hover .ar { transform: translateX(4px); }

/* ============================================================
   gallery
   ============================================================ */
.gallery .wrap { max-width: 1400px; }
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery__grid figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.gallery__grid figure:hover img { transform: scale(1.06); }
.g-span-3 { grid-column: span 3; aspect-ratio: 16/10; }
.g-span-2 { grid-column: span 2; aspect-ratio: 4/3; }
.g-tall  { grid-row: span 2; aspect-ratio: 3/4; }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateY(6px);
  transition: .35s ease; text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* lightbox (JS-enhanced; figures only become clickable once JS adds the class) */
body.has-lightbox .gallery__grid figure { cursor: zoom-in; }
body.has-lightbox .gallery__grid figure:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body.lightbox-lock { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(14px, 4vw, 56px);
}
.lightbox.open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(38,38,38,.95); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__stage {
  position: relative; z-index: 1; margin: 0; max-width: min(1400px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: .9rem; animation: lbin .25s ease;
}
@keyframes lbin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--paper-2);
}
.lightbox__cap { color: var(--paper); font-size: .9rem; letter-spacing: .04em; text-align: center; opacity: .9; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; border: 0; color: #fff; line-height: 1;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  transition: background .2s ease; -webkit-tap-highlight-color: transparent;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: clamp(10px,2vw,22px); right: clamp(10px,2vw,22px); width: 44px; height: 44px; border-radius: 50%; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; }
.lightbox__close svg { width: 20px; height: 20px; display: block; }
.lightbox__nav svg { width: 24px; height: 24px; display: block; }
.lightbox__prev { left: clamp(8px,2vw,22px); }
.lightbox__next { right: clamp(8px,2vw,22px); }
.lightbox__count { position: absolute; bottom: clamp(10px,2vw,22px); left: 50%; transform: translateX(-50%); z-index: 2; color: var(--paper); font-size: .78rem; letter-spacing: .14em; opacity: .65; }
@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox__img { max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) { .lightbox__stage { animation: none; } }

/* ============================================================
   CTA + contact
   ============================================================ */
.cta { background: var(--paper-2); color: var(--ink); overflow: hidden; text-align: center; position: relative; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); position: relative; }
.cta p { max-width: 46ch; margin: 1.1rem auto 2rem; color: var(--ink-soft); position: relative; }
.cta .hero__actions { justify-content: center; position: relative; }

.contact { background: var(--ink); color: var(--paper); }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px,6vw,80px); align-items: start; }
.contact h2 { font-size: clamp(1.8rem,3.6vw,2.6rem); }
.contact__rows { margin-top: 1.6rem; display: grid; gap: .1rem; }
.contact__rows a, .contact__rows div { display: flex; justify-content: space-between; gap: 1rem;
  padding: .95rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact__rows .k { color: rgba(255,255,255,.6); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.contact__rows .v { font-family: var(--display); font-size: 1.15rem; }
.contact__card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: clamp(22px,3vw,34px); }

/* ============================================================
   footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding-block: 40px; font-size: .86rem;
  border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a:hover { color: #fff; }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* hero entrance (no JS dependency) */
.hero .reveal { animation: rise .9s cubic-bezier(.2,.7,.2,1) backwards; opacity: 1; transform: none; }
.hero .reveal[data-d="1"] { animation-delay: .1s; }
.hero .reveal[data-d="2"] { animation-delay: .24s; }
.hero .reveal[data-d="3"] { animation-delay: .4s; }
.hero .reveal[data-d="4"] { animation-delay: .56s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .intro .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.14); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .g-span-3, .g-span-2, .g-tall { grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); gap: 1.4rem; }
  .nav.open { transform: none; }
  .nav a { font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; z-index: 60; padding: 8px; }
  .nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__side { display: none; }
  .floor-row { grid-template-columns: 64px 1fr; }
  .floor-row__cta { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ============================================================
   interior pages — shared
   ============================================================ */
.page-head { padding-top: 130px; padding-bottom: 36px; border-bottom: 1px solid var(--line); background: var(--card); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: .2em; }
.page-head__sub { color: var(--ink-soft); margin-top: .6rem; max-width: 60ch; }
.page-head__name { color: var(--ink-faint); font-style: italic; }
.page-head--split .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head__price { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--ink); white-space: nowrap; }
.minihead { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-faint); margin-bottom: 1rem; }
.muted { color: var(--ink-faint); }
.empty { padding: 3rem 0; color: var(--ink-soft); }

/* badges & status */
.badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .28em .7em; border-radius: 999px; vertical-align: middle; }
.badge--available { background: var(--avail-bg); color: #3c5a39; }
.badge--reserved { background: var(--reserved-bg); color: #7a5410; }
.badge--sold { background: var(--sold-bg); color: #7e352c; }

.btn--sm { padding: .5rem .9rem; font-size: .82rem; border-radius: 8px; }

/* ============================================================
   filters
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: .4rem; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-faint); }
.filters select, .inq__form input, .inq__form textarea {
  font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  color: var(--ink); min-width: 180px; }
.filters__actions { display: flex; gap: 10px; }
.filters__count { margin-top: 1rem; color: var(--ink-soft); }
.filters__count b { color: var(--ink); }

/* ============================================================
   unit cards
   ============================================================ */
.ucard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ucard { display: flex; flex-direction: column; gap: .8rem; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-top: 3px solid var(--avail); }
.ucard--reserved { border-top-color: var(--reserved); }
.ucard--sold { border-top-color: var(--sold); opacity: .82; }
.ucard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.ucard__top { display: flex; justify-content: space-between; align-items: center; }
.ucard__code { font-family: var(--display); font-size: 1.5rem; }
.ucard__rooms { color: var(--ink-soft); font-size: .94rem; }
.ucard__specs { display: grid; gap: .35rem; margin: 0; }
.ucard__specs div { display: flex; justify-content: space-between; font-size: .9rem; border-top: 1px solid var(--line-soft); padding-top: .35rem; }
.ucard__specs dt { color: var(--ink-faint); }
.ucard__specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.ucard__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: .4rem; }
.ucard__price { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.ucard__go { font-size: .85rem; color: var(--ink-soft); }
.ucard:hover .ar { display: inline-block; transform: translateX(3px); transition: transform .25s; }

/* ============================================================
   schematic (interactive selector)
   ============================================================ */
.floor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.schematic svg { width: 100%; height: auto; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.sch-panel { fill: #fff; stroke: var(--line); stroke-width: 1; }
.sch-seclabel { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-faint); }
.sch-cell rect { stroke: rgba(0,0,0,.12); stroke-width: 1; transition: filter .2s ease, transform .2s ease; }
.sch-cell--available rect { fill: var(--avail); }
.sch-cell--reserved rect { fill: var(--reserved); }
.sch-cell--sold rect { fill: #b3b3b3; }
.sch-cell text { fill: #fff; pointer-events: none; }
.sch-code { font-family: var(--display); font-size: 24px; }
.sch-meta { font-size: 14px; opacity: .92; }
.sch-price { font-weight: 600; }
.sch-cell { cursor: pointer; }
.sch-cell:hover rect { filter: brightness(1.08); }
.sch-cell:hover { outline: none; }
.sch-cell.is-active rect { stroke: var(--ink); stroke-width: 3; filter: brightness(1.05); }
.sch-cell--sold { opacity: .85; }
.schematic__hint { margin-top: .8rem; font-size: .82rem; color: var(--ink-faint); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.schematic__hint .leg { display: inline-flex; align-items: center; gap: .4rem; }
.schematic__hint .leg i { width: 12px; height: 12px; border-radius: 3px; }
.schematic__hint .leg i.available { background: var(--avail); }
.schematic__hint .leg i.reserved { background: var(--reserved); }
.schematic__hint .leg i.sold { background: #b3b3b3; }

.planfig { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: #fff; }
.planfig img { width: 100%; }
.planfig--wide { margin-bottom: 1.4rem; }

/* ============================================================
   flat detail
   ============================================================ */
.flat-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.flat-schem { margin-top: 1.6rem; }
.minihead--sub { margin-top: 1.8rem; }

/* per-flat plan (high-res, click to pop out via the shared lightbox) */
.flat-plan { position: relative; margin: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: #fff; }
.flat-plan img { width: 100%; display: block; }
.flat-plan figcaption { font-size: .76rem; letter-spacing: .04em; color: var(--ink-faint); padding: .6rem .8rem; border-top: 1px solid var(--line-soft); }
.flat-plan__zoom {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  background: rgba(38,38,38,.62); color: #fff; opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
body.has-lightbox .flat-plan { cursor: zoom-in; }
body.has-lightbox .flat-plan:hover .flat-plan__zoom,
body.has-lightbox .flat-plan:focus-visible .flat-plan__zoom { opacity: 1; }
body.has-lightbox .flat-plan:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.spec { display: grid; gap: 0; margin: 0 0 1.4rem; }
.spec > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--ink-faint); }
.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.spec__price { font-family: var(--display); color: var(--ink); font-size: 1.2rem; }
.flat-desc { color: var(--ink-soft); margin-bottom: 1.4rem; }
.chiplist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; }
.chip { font-size: .82rem; padding: .4em .8em; border-radius: 999px; background: var(--avail-bg); color: #3c5a39; }
.chip--reserved { background: var(--reserved-bg); color: #7a5410; }
.chip--sold { background: var(--sold-bg); color: #7e352c; }
.related { margin-top: 3rem; }

/* ============================================================
   inquiry form
   ============================================================ */
.inq { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.inq--unavailable { background: var(--paper-2); }
.inq__intro { color: var(--ink-soft); margin-bottom: 1.2rem; }
.inq__form { display: grid; gap: 1rem; }
.inq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inq__form label { display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.inq__form input, .inq__form textarea { min-width: 0; text-transform: none; letter-spacing: normal; color: var(--ink); }
.inq__consent { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; text-transform: none !important; letter-spacing: normal !important; font-size: .85rem !important; color: var(--ink-soft) !important; }
.inq__consent input { min-width: auto; }
.inq__note { font-size: .78rem; color: var(--ink-faint); }
.inq__err { background: var(--sold-bg); color: #7e352c; padding: .8rem 1rem; border-radius: 8px; }
.inq__ok { background: var(--avail-bg); color: #34502f; padding: 1.2rem 1.4rem; border-radius: 8px; line-height: 1.6; }
.inq__dev { margin-top: .8rem; font-size: .82rem; word-break: break-all; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   parking
   ============================================================ */
.park-block { margin-bottom: 3rem; }
.park-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.park-block__counts { color: var(--ink-soft); font-size: .92rem; }
.park-block__counts b { color: var(--ink); }
.park-note { color: var(--ink-faint); font-size: .9rem; margin: .4rem 0 1.2rem; }
.park-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pspace { background: var(--card); border: 1px solid var(--line-soft); border-left: 4px solid var(--avail); border-radius: 6px; padding: 10px 12px; }
.pspace--reserved { border-left-color: var(--reserved); }
.pspace--sold { border-left-color: var(--sold); opacity: .7; }
.pspace:target { outline: 2px solid var(--ink); outline-offset: 2px; scroll-margin-top: 90px; }
.pspace__num { font-family: var(--display); font-size: 1.15rem; display: block; }
.pspace__meta { font-size: .74rem; color: var(--ink-faint); }
.pspace__price { display: block; font-size: .8rem; color: var(--ink); font-weight: 600; margin-top: .2rem; }
.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); padding: clamp(20px,3vw,32px); border-radius: var(--radius); }

/* ============================================================
   kontakt
   ============================================================ */
.kontakt-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px,5vw,64px); align-items: start; }
.kontakt-card { margin-top: 1.6rem; background: var(--paper-2); border-radius: var(--radius); padding: 22px; }

/* ============================================================
   admin
   ============================================================ */
.admin { padding-top: 110px; padding-bottom: 80px; min-height: 80vh; }
.admin__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin__bar h1 { font-size: 2rem; }
.admin__nav { display: flex; gap: 6px; }
.admin__nav a { padding: .5rem .9rem; border-radius: 8px; font-size: .9rem; color: var(--ink-soft); }
.admin__nav a.is-active { background: var(--ink); color: var(--paper); }
.admin__nav .pill { background: var(--sold); color: #fff; border-radius: 999px; padding: .1em .5em; font-size: .72rem; }
.admin__toast { background: var(--avail-bg); color: #34502f; padding: .8rem 1.2rem; border-radius: 8px; margin-bottom: 1.4rem; }
.admin__summary { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.admin__summary div { background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: .8rem 1.2rem; font-size: .9rem; color: var(--ink-soft); }
.admin__summary b { font-family: var(--display); font-size: 1.4rem; color: var(--ink); margin-right: .3rem; }
.admin__floor { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 1rem; padding: .4rem 1.2rem; }
.admin__floor summary { font-family: var(--display); font-size: 1.3rem; padding: .7rem 0; cursor: pointer; }
.admin__h2 { margin: 2.4rem 0 1rem; font-family: var(--display); }
.arows { display: grid; gap: 6px; padding-bottom: .8rem; }
.arow { display: grid; grid-template-columns: 70px 1.2fr 80px 150px 130px auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.arow--park { grid-template-columns: 70px 1.4fr 150px 110px 110px auto; }
.arow--head { color: var(--ink-faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; border-top: 0; }
.acode { font-family: var(--display); font-size: 1.05rem; }
.arow select, .arow input { font: inherit; padding: .45rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.st--available { border-color: var(--avail); }
.st--reserved { border-color: var(--reserved); }
.st--sold { border-color: var(--sold); }

.inqlist { display: grid; gap: 12px; }
.inqrow { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line-soft);
  border-left: 4px solid var(--ink-faint); border-radius: var(--radius); padding: 16px 20px; }
.inqrow--verified { border-left-color: var(--avail); }
.inqrow--unverified { border-left-color: var(--reserved); }
.inqrow--contacted { border-left-color: var(--ink); }
.inqrow--closed { opacity: .6; }
.inqrow__top { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.inqrow__contact { font-size: .9rem; margin-top: .3rem; }
.inqrow__msg { margin-top: .5rem; color: var(--ink-soft); font-size: .92rem; }
.inqrow__actions { display: flex; gap: 8px; align-items: center; }
.tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25em .6em; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.tag--verified { background: var(--avail-bg); color: #3c5a39; }
.tag--unverified { background: var(--reserved-bg); color: #7a5410; }
.tag--contacted { background: #e6e6e6; color: var(--ink); }
.tag--unit { background: var(--ink); color: var(--paper); }
.admin__filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin__filters a { padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; background: var(--card); border: 1px solid var(--line-soft); color: var(--ink-soft); }
.admin__filters a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   responsive — interior
   ============================================================ */
@media (max-width: 860px) {
  .floor-grid, .flat-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .arow, .arow--park { grid-template-columns: 60px 1fr 120px; row-gap: 6px; }
  .arow--head { display: none; }
  .arow > button { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .inq__row { grid-template-columns: 1fr; }
  .filters select { min-width: 140px; }
}

/* ============================================================
   building picker (facade floor selector)
   ============================================================ */
.bpick { position: relative; max-width: 1000px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #e8e8e8; line-height: 0; }
.bpick__img { width: 100%; height: auto; }
.bpick__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bband { cursor: pointer; }
.bband__hit { fill: rgba(38,38,38,0); stroke: rgba(255,255,255,0); stroke-width: 2; transition: fill .2s ease; }
.bband + .bband {}
.bband:hover .bband__hit { fill: rgba(38,38,38,.32); stroke: #fff; }
.bband:focus-visible .bband__hit { fill: rgba(38,38,38,.32); stroke: #fff; }
.bband__pill { fill: rgba(38,38,38,.85); opacity: .9; transition: opacity .2s ease; }
.bband:hover .bband__pill { fill: #000; opacity: 1; }
.bband__code { fill: #fff; font-family: var(--display); font-size: 19px; dominant-baseline: alphabetic; }
.bband__name { fill: rgba(255,255,255,.8); font-family: var(--sans); font-size: 12px; }
.bband__cnt  { fill: #fff; font-family: var(--sans); font-size: 12px; font-weight: 700; }
/* hairline separators between floors */
.bpick__svg .bband__hit { vector-effect: non-scaling-stroke; }
.bpick__hint { text-align: center; color: var(--ink-faint); font-size: .85rem; margin-top: .9rem; }

@media (max-width: 560px) {
  .bband__pill { width: 150px; }
  .bband__name { display: none; }
}

/* picker label hover swap */
.bband__go { fill: #fff; font-family: var(--sans); font-size: 12px; font-weight: 700; opacity: 0; }
.bband:hover .bband__cnt { opacity: 0; }
.bband:hover .bband__go { opacity: 1; }

/* ============================================================
   plan map (clickable flat zones on the pôdorys)
   ============================================================ */
.pmap { position: relative; max-width: 1100px; margin: 0 auto; border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; background: #fff; line-height: 0; }
.pmap__img { width: 100%; height: auto; }
.pmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pmap__zone { cursor: pointer; }
.pmap__zone polygon { opacity: .28; stroke: rgba(38,38,38,.4); stroke-width: 1.5;
  vector-effect: non-scaling-stroke; transition: opacity .2s ease; }
/* available reads as selectable; reserved/sold are dimmed ('taken') */
.pmap__z-available polygon { fill: var(--avail); }
.pmap__z-reserved  polygon { fill: var(--reserved); opacity: .50; }
.pmap__z-sold      polygon { fill: #999999; opacity: .70; }
.pmap__code { fill: var(--ink); font-family: var(--display); font-size: 22px; opacity: 0; transition: opacity .2s ease; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
/* default: faint zones; show code on hover/active */
.pmap__zone:hover polygon { opacity: .5; }
.pmap__zone:hover .pmap__code { opacity: 1; }
/* when a flat is active (flat detail): dim others, highlight active */
.pmap.has-active .pmap__zone polygon { opacity: .09; }
.pmap.has-active .pmap__z-reserved polygon,
.pmap.has-active .pmap__z-sold polygon { opacity: .05; }
.pmap.has-active .pmap__zone:hover polygon { opacity: .5; }
.pmap__zone.is-active polygon { opacity: .52 !important; stroke: var(--ink); stroke-width: 2.5; }
.pmap__zone.is-active .pmap__code { opacity: 1; }
.pmap__hint { text-align: center; color: var(--ink-faint); font-size: .82rem; margin-top: .9rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.pmap__hint .leg { display: inline-flex; align-items: center; gap: .4rem; }
.pmap__hint .leg i { width: 11px; height: 11px; border-radius: 3px; }
.pmap__hint .leg i.available { background: var(--avail); }
.pmap__hint .leg i.reserved { background: var(--reserved); }
.pmap__hint .leg i.sold { background: #b3b3b3; }
