/* Intergaj Stanovi
   Clean base: white pages, the logo's navy for type, Intergaj red only for
   actions and highlights, one typeface. Status colours are shared by the
   building view, badges and the admin. */

:root {
  --red: #d81f26;
  --red-dark: #b3171d;

  --ink: #142235;
  --ink-soft: #526077;
  --ink-faint: #8a94a5;

  --paper: #ffffff;
  --card: #ffffff;
  --line: #e2e6ec;
  --wash: #f4f6f9;
  --night: #0c1218;
  --night-line: rgba(232, 238, 242, .2);
  --navy: #0c1218;
  /* Intergaj group blue, from the INTERGAJ wordmark */
  --blue: #0054a5;
  --blue-deep: #003a78;

  --available: #1d7a4b;
  --available-tint: #e5f3ea;
  --reserved: #a8680b;
  --reserved-tint: #fcf0da;
  --sold: #9aa3b1;
  --sold-tint: #eef1f5;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 34, 53, .06);
  --shadow-sm: 0 1px 2px rgba(20, 34, 53, .06), 0 2px 6px rgba(20, 34, 53, .04);
  --shadow-md: 0 2px 4px rgba(20, 34, 53, .05), 0 12px 28px -8px rgba(20, 34, 53, .14);
  --shadow-lg: 0 4px 10px rgba(20, 34, 53, .06), 0 28px 56px -18px rgba(20, 34, 53, .28);
  --shadow-lift: var(--shadow-lg);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.muted { color: var(--ink-soft); }
.muted a { color: var(--ink); }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.display--md { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.display--sm { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; letter-spacing: -.015em; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.eyebrow--light { color: #ff8a8e; }

.lede {
  font-size: clamp(17px, 1.5vw, 18px);
  color: var(--ink-soft);
  max-width: 36em;
  margin-top: 16px;
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- buttons, fields, chips, badges ---------- */

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font: 700 15px/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); transition-duration: .08s; }
.button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* a soft sheen that crosses the button on hover */
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.button:hover::after { transform: translateX(120%); }
.button--primary {
  background: linear-gradient(180deg, #e6333a 0%, var(--red) 55%, #c41a21 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -6px rgba(216, 31, 38, .6);
}
.button--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 28px -10px rgba(216, 31, 38, .7); }
.button--ghost { border-color: var(--line); color: var(--ink); background: linear-gradient(180deg, #fff, #f7f9fb); box-shadow: var(--shadow-sm); }
.button--ghost:hover { border-color: #c5cdd8; box-shadow: var(--shadow-md); }
.button--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.button--light:hover { box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .button:hover { transform: none; } .button::after { display: none; } }
.button--block { width: 100%; }

.field { display: grid; gap: 6px; min-width: 0; }
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23142235' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: 600 15px var(--font);
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}
.field select { transition: border-color .2s, box-shadow .2s; }
.field select:hover { border-color: var(--ink-faint); box-shadow: var(--shadow-sm); }
.field select:focus-visible { outline: 3px solid rgba(216, 31, 38, .35); border-color: var(--red); }
@media (max-width: 480px) { .field select { font-size: 14px; padding: 0 30px 0 10px; background-position: right 10px center; } }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--night-line);
  color: rgba(232, 238, 242, .8);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { border-color: rgba(232, 238, 242, .5); color: #fff; }
.chip.is-on { background: #fff; border-color: #fff; color: var(--ink); }
/* a chip that switches something on rather than picking one of a set */
.chip--toggle::before {
  content: "";
  width: 15px; height: 15px; margin-right: 9px;
  border: 1.5px solid currentColor; border-radius: 5px; opacity: .55;
  background-position: center; background-repeat: no-repeat; background-size: 10px;
}
.chip--toggle.is-on::before {
  opacity: 1;
  border-color: var(--red);
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 4.7 9 10 3.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--available { background: var(--available-tint); color: var(--available); }
.badge--reserved { background: var(--reserved-tint); color: var(--reserved); }
.badge--sold { background: var(--sold-tint); color: #6d7686; }
.badge--lg { font-size: 14px; padding: 6px 12px; }

.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--wash); color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.tag--live { background: #fdeceb; color: var(--red); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- save for comparison ---------- */

.fav {
  position: relative; /* keeps its visually-hidden label inside scroll containers */
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.fav:hover { color: var(--red); border-color: var(--red); }
.fav:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.fav__icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav[aria-pressed="true"] { color: var(--red); border-color: var(--red); background: #fdeceb; }
.fav[aria-pressed="true"] .fav__icon { fill: currentColor; }
.fav--wide { display: inline-flex; gap: 8px; width: 100%; height: auto; min-height: 46px; padding: 0 16px; border-radius: var(--radius-sm); font: 700 14px var(--font); color: var(--ink); }
.fav--wide .fav__icon { color: var(--red); }

.tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(12, 18, 24, .96);
  backdrop-filter: blur(8px);
  color: #e8eef2;
}
.tray__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.tray__count { font-size: 14px; color: rgba(232, 238, 242, .7); }
.tray__count strong { color: #fff; font-size: 16px; }
.tray__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.tray__chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 6px; background: rgba(232, 238, 242, .1); font-size: 13px; font-weight: 600; }
.tray__chip button { width: 26px; height: 26px; border: 0; border-radius: 4px; background: transparent; color: rgba(232, 238, 242, .7); font-size: 18px; line-height: 1; cursor: pointer; }
.tray__chip button:hover { background: rgba(232, 238, 242, .15); color: #fff; }
.tray__note { width: 100%; order: 5; font-size: 13px; color: #ff9a9e; }
.tray__go { min-height: 44px; }
.tray__go.is-waiting { background: rgba(232, 238, 242, .12); color: rgba(232, 238, 242, .75); cursor: default; }
@media (max-width: 640px) {
  .tray__chips { display: none; }
  .tray__inner { justify-content: space-between; }
}
body.has-tray { padding-bottom: 72px; }

.site-nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  vertical-align: 1px;
}
.site-nav__count[hidden] { display: none; }

/* ---------- chrome ---------- */


.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px -18px rgba(20, 34, 53, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

/* Client logo, drawn from the #logo symbol. */
.logo {
  --logo-accent: #e9222a;
  --logo-ink: var(--ink);
  display: block;
  height: 38px;
  width: auto;
  aspect-ratio: 322.25 / 78.63;
  overflow: visible;
}
.logo--light { --logo-ink: #fff; }
.brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: 6px; }
.brand:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
@media (max-width: 600px) { .site-header .logo { height: 32px; } }

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.site-nav a { position: relative; text-decoration: none; transition: color .2s; }
.site-nav a:not(.site-nav__phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:not(.site-nav__phone):hover::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--red); }
/* Projekti: a panel that drops on hover, and on keyboard focus with it */
.site-nav__group { position: relative; display: flex; align-items: center; }
.site-nav__group > a { display: inline-flex; align-items: center; gap: 7px; }
.caret { transition: transform .25s var(--ease); }
.site-nav__group:hover .caret, .site-nav__group:focus-within .caret { transform: rotate(180deg); }
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(600px, 88vw);
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(20, 34, 53, .55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .25s;
}
/* the gap between the link and the panel stays hoverable */
.submenu::before { content: ""; position: absolute; inset: -16px 0 100%; }
.site-nav__group:hover .submenu, .site-nav__group:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu__item { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; transition: background .2s; }
.submenu__item:hover, .submenu__item:focus-visible { background: var(--wash); }
.submenu__item strong { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); }
.submenu__item strong::after { content: "→"; color: var(--red); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease); }
.submenu__item:hover strong::after { opacity: 1; transform: translateX(0); }
.submenu__item span { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--ink-soft); }
.site-nav__group > a::after { bottom: -6px; }

.site-nav__phone { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(20, 34, 53, .7); transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.site-nav__phone:hover { color: #fff !important; background: #1d3050; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(20, 34, 53, .8); }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), background .2s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; box-shadow: 0 24px 40px -24px rgba(20, 34, 53, .35); }
.mobile-menu__inner { display: grid; padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; text-decoration: none; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.mobile-menu__group > summary::-webkit-details-marker { display: none; }
.mobile-menu__group[open] > summary .caret { transform: rotate(180deg); }
.mobile-menu__group > a { display: block; padding: 12px 0 12px 18px; font-size: 16px; color: var(--ink-soft); }
.mobile-menu__group > a:last-child { border-bottom: 1px solid var(--line); }
.mobile-menu:not([hidden]) { animation: menu-in .3s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1080px) {
  .site-nav { gap: 10px; }
  .site-nav a:not(.site-nav__phone), .site-nav__group { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

.site-footer { background: var(--navy); color: #e8eef2; padding: 64px 0 28px; }
.site-footer__inner { display: grid; gap: 36px; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer .logo { height: 44px; }
.site-footer__lede { margin-top: 16px; max-width: 30em; color: rgba(232, 238, 242, .62); }
.site-footer__social { display: flex; gap: 10px; margin-top: 22px; }
.site-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(232, 238, 242, .28); border-radius: 50%; color: #fff; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.site-footer__social a:hover { background: #fff; border-color: #fff; color: var(--navy); transform: translateY(-2px); }
.site-footer__social a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(232, 238, 242, .5); margin-bottom: 4px; }
.site-footer__col a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer__col a:hover { color: #ff8a8e; }
.site-footer__col span { color: rgba(232, 238, 242, .75); }
.site-footer__base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(232, 238, 242, .14); font-size: 13px; color: rgba(232, 238, 242, .5); }
.site-footer__group { display: block; width: auto; height: 24px; justify-self: center; }
.site-footer__credit { justify-self: end; }
@media (max-width: 700px) {
  .site-footer__base { grid-template-columns: 1fr; justify-items: center; }
  .site-footer__credit { justify-self: center; }
}
/* the Blink wordmark is black; turn it white to sit with the footer text */
.site-footer__blink { display: inline-block; vertical-align: baseline; opacity: .75; transition: opacity .2s; }
.site-footer__blink:hover { opacity: 1; }
.site-footer__blink img { display: inline-block; width: auto; height: 1.35em; vertical-align: -0.28em; filter: brightness(0) invert(1); }

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section--tight { padding: 44px 0; }
.section--wash { background: linear-gradient(180deg, var(--wash) 0%, #fbfcfd 100%); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }

.empty { text-align: center; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; padding: 40px 0; }

/* ---------- home: hero + finder ---------- */

.hero { position: relative; display: flex; align-items: end; min-height: var(--hero-min, 86svh); background: var(--navy); color: #fff; overflow: hidden; }
@property --zoom { syntax: "<number>"; inherits: false; initial-value: 1; }
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: contents; }
.hero__bg { position: absolute; inset: -40px 0 0; width: 100%; height: calc(100% + 40px); object-fit: cover; object-position: 56% 60%; transform: translate3d(0, var(--drift, 0px), 0) scale(var(--zoom)); will-change: transform; }
/* every photo drifts out of its own zoom while it is the one on screen, not only the first */
.hero__media .hero__bg.is-on { animation: hero-zoom 5.6s linear both; }
/* the hero walks through the buildings on offer: only the one on show is drawn */
.hero__media .hero__bg { opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__media .hero__bg.is-on { opacity: 1; }
.hero__credit { position: absolute; right: 16px; top: 96px; z-index: 1; display: grid; gap: 1px; padding: 8px 14px; border-radius: 999px; background: rgba(12, 18, 24, .5); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 700; text-align: right; animation: rise .6s var(--ease) both; }
.hero__credit[hidden] { display: none; }
.hero__credit small { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .75); }
@media (min-width: 720px) { .hero__credit { right: 32px; top: 128px; } }
@keyframes hero-zoom { from { --zoom: 1.12; } to { --zoom: 1; } }
/* wide screens: the hero is tall enough to show the whole building above the finder */
@media (min-width: 1000px) {
  .hero__bg { object-position: 50% 30%; }
  .hero__media .hero__bg.is-on { animation-name: hero-zoom-soft; }
  .hero .hero__inner { flex: 1; padding-top: 52px; padding-bottom: 56px; }
}
@keyframes hero-zoom-soft { from { --zoom: 1.06; } to { --zoom: 1; } }
.hero__title { animation: rise .9s var(--ease) .12s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__inner { position: relative; z-index: 1; width: 100%; padding: 96px 16px 32px; }
@media (min-width: 720px) { .hero__inner { padding: 120px 32px 44px; } }
/* the headline speaks in a serif, so the hero does not read like a spreadsheet */
.hero__title {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.005em;
  max-width: 16ch;
  margin-bottom: 26px;
  text-wrap: balance;
}


.finder { background: #fff; border-radius: var(--radius); }
.finder--hero {
  max-width: 760px;
  margin-inline: auto;
  color: var(--ink);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .5);
  backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -28px rgba(12, 18, 24, .55);
  animation: rise 1s var(--ease) .38s both;
}
.finder--hero .field select, .finder--hero .check, .finder--hero .finder__submit { min-height: 42px; }
.finder--hero .field select { padding-top: 0; padding-bottom: 0; }
.finder--hero .finder__fields { gap: 10px; }
.finder__fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.finder__fields .check, .finder__submit { grid-column: span 2; }
/* results page on a phone: the place gets a whole line above the other four lists */
@media (max-width: 899px) {
  .finder--bar .finder__fields > .field:first-child { grid-column: span 2; }
}
/* phones: place and size side by side, the place a little wider so "Intergaj Račanska" fits */
@media (max-width: 479px) {
  .finder--hero { padding: 14px; }
  .finder--hero .finder__fields { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
  .finder--hero .field select { padding: 0 26px 0 10px; background-position: right 9px center; }
}
@media (min-width: 900px) {
  /* results page: five lists across, the checkbox and the button on a line below */
  .finder__fields { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }
  .finder__fields .check { grid-column: 1 / 4; }
  .finder__submit { grid-column: 5; }
  /* home: where and how big, then the button */
  .finder--hero .finder__fields { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .finder--hero .finder__submit { grid-column: auto; }
}
.finder__submit { min-height: 48px; padding: 0 24px; }
.finder--bar { margin-top: 24px; padding: 16px; border: 1px solid var(--line); background: var(--wash); }

/* ---------- home: projects ---------- */

.projects { display: grid; gap: 24px; }
.project { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) {
  .project { grid-template-columns: 1.25fr 1fr; }
  .project:nth-child(even) .project__media { order: 2; }
}
.project__media { position: relative; display: block; min-height: 280px; overflow: hidden; background: var(--wash); }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 18, 24, .28)); opacity: .7; transition: opacity .45s; }
.project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }
.project:hover .project__media::after { opacity: 1; }
.project__body { display: grid; align-content: center; gap: 10px; padding: 28px; }
@media (min-width: 900px) { .project__body { padding: 40px 44px; } }
.project__body .tag { justify-self: start; }
.project__title { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.project__title a { text-decoration: none; }
.project__title a:hover { color: var(--red); }
.project__place { color: var(--ink-soft); font-weight: 600; }
.project__intro { color: var(--ink-soft); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--line); }
.project__facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.project__facts div:nth-child(odd) { padding-right: 16px; }
.project__facts dt { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.project__facts dd { margin: 2px 0 0; font-weight: 700; }
.project__buildings { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.project__buildings a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.project__buildings a:hover span:first-child { color: var(--red); }
.project__buildings .muted { font-weight: 600; font-size: 14px; }
.project__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* a settlement: the whole naselje first, then each building as its own project */
.estate {
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid #dde6f1;
  border-radius: 20px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(0, 84, 165, .07), transparent 70%),
    linear-gradient(180deg, #f3f7fc 0%, #fbfcfe 100%);
}
@media (min-width: 900px) { .estate { padding: 36px 40px 40px; } }
.estate__head { display: grid; gap: 18px; align-items: end; }
@media (min-width: 900px) { .estate__head { grid-template-columns: 1fr auto auto; gap: 40px; } }
.estate__lead { display: grid; gap: 8px; justify-items: start; }
.estate__title { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.estate__place { color: var(--ink-soft); font-weight: 600; }
.estate__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.estate__facts dt { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.estate__facts dd { margin: 2px 0 0; font-weight: 700; }
.estate__more { justify-self: start; color: var(--blue); }
.estate__buildings { display: grid; gap: 18px; }
@media (min-width: 700px) { .estate__buildings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .estate__buildings--3 { grid-template-columns: repeat(3, 1fr); } }

.lamela { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.lamela:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.lamela__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.lamela__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1.2s var(--ease); }
.lamela:hover .lamela__media img { transform: scale(1.05); }
.lamela__placeholder { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .8); font-size: 22px; font-weight: 800; background: linear-gradient(135deg, #16263d, var(--navy)); }
.lamela__body { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 20px 22px 22px; }
.lamela__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.lamela__title a { text-decoration: none; }
.lamela__title a:hover { color: var(--red); }
.lamela__place { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.lamela__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; width: 100%; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.lamela__facts dt { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.lamela__facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.lamela__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }

/* phones: the settlement keeps its tint but as a band from edge to edge, not a framed box, and
   there is no button inside each building. A building is one photo you tap, its name laid over
   the bottom of the picture. */
@media (max-width: 699px) {
  .estate { gap: 18px; margin-inline: -16px; padding: 28px 16px; border: 0; border-radius: 0; }
  /* the bands meet, a hairline between two settlements */
  .projects:has(> .estate) { gap: 0; }
  .estate + .estate { border-top: 1px solid #dde6f1; }
  /* the last band runs down to the next section instead of leaving a white strip */
  .section:has(> .wrap > .projects > .estate:last-child) { padding-bottom: 0; }
  .projects > .estate:last-child { padding-bottom: 56px; }
  /* and when the bands open a section (the Projekti page), the first one starts right under the header */
  .section:has(> .wrap > .projects:first-child > .estate:first-child) { padding-top: 0; }
  /* the heading lines up with the building names inside the photos */
  .estate__head { gap: 12px; padding-inline: 18px; }
  .estate__buildings { gap: 14px; }
  .lamela { position: relative; display: block; border: 0; border-radius: 14px; box-shadow: var(--shadow-md); }
  .lamela:hover { transform: none; }
  .lamela__media { aspect-ratio: 16 / 10; }
  .lamela__body { position: absolute; left: 0; right: 0; bottom: 0; gap: 2px; padding: 48px 18px 16px; background: linear-gradient(180deg, transparent, rgba(12, 18, 24, .78)); color: #fff; pointer-events: none; }
  .lamela__title { font-size: 22px; color: #fff; }
  .lamela__title a { pointer-events: auto; color: inherit; }
  .lamela__title a::after { content: ""; position: absolute; inset: 0; }
  .lamela__title a::before { content: "→"; float: right; margin-left: 12px; font-weight: 700; transition: transform .25s var(--ease); }
  .lamela__title a:hover { color: #fff; }
  .lamela__place { color: rgba(255, 255, 255, .8); }
  .lamela__facts, .lamela__actions { display: none; }
}

/* ---------- završeni projekti ---------- */

.portfolio { display: grid; gap: 22px; }
@media (min-width: 860px) { .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portfolio-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.portfolio-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.portfolio-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.portfolio-card__placeholder { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .8); font-size: 22px; font-weight: 800; background: linear-gradient(135deg, #16263d, var(--navy)); }
.portfolio-card__body { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 22px 24px 24px; }
.portfolio-card__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.portfolio-card__place { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.portfolio-card__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 24px; width: 100%; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.portfolio-card__facts dt { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.portfolio-card__facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.portfolio-card .link-arrow { margin-top: 10px; color: var(--blue); font-size: 14px; }

/* ---------- home: about ---------- */

/* O nama: the photo runs off the right edge, the figures carry the section */
.about { position: relative; overflow-x: clip; padding: 88px 0; background: linear-gradient(180deg, var(--wash) 0%, #fbfcfd 62%, #fff 100%); }
.about__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; }
}
.about__text { display: grid; gap: 16px; }
.about__text .display { margin-bottom: 4px; }
.about__text p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; max-width: 34em; }
.about__media { position: relative; margin: 0; }
.about__media img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) {
  .about__media img { border-radius: 18px 0 0 18px; }
  /* reach past the wrap's right gutter, out to the edge of the screen */
  .about__media { margin-right: calc(-32px - max(0px, (100vw - var(--max)) / 2)); }
}

.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; margin: 44px 0 0; }
@media (min-width: 800px) { .figures { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 88px; } }
/* the number sits above its label; both rows start at the top, so a label that runs to two
   lines never drags its number out of line with the one beside it */
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .figures div { padding: 4px 28px 6px 0; border-top: 0; } }
@media (min-width: 800px) { .figures div + div { border-left: 1px solid var(--line); padding-left: 22px; } }
/* the company's mark and the three words it has always sold on */
.about__seal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.about__seal img { width: auto; height: 26px; }
.about__values { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.about__values span { display: inline-flex; align-items: center; }
/* the dot trails its own word, so a wrapped line never starts with one */
.about__values span:not(:last-child)::after { content: ""; width: 5px; height: 5px; margin-left: 16px; border-radius: 50%; background: var(--red); }

.figures dd {
  margin: 0;
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .95;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(170deg, var(--ink) 25%, #3a4d6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.figures dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }

/* what comes with every flat, as a checklist on its own panel */
.about__standards { margin-top: 44px; padding: 28px 22px 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .about__standards { padding: 34px 40px 16px; } }
.about__standards h3, .about__standards h2 { margin-bottom: 16px; font-size: 18px; font-weight: 800; }
.standards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 700px) { .standards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .standards { grid-template-columns: repeat(3, 1fr); } }
.standards li { position: relative; padding: 13px 0 13px 42px; border-top: 1px solid var(--line); font-weight: 600; transition: color .2s; }
.standards li::after { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fdeceb; }
.standards li::before { content: ""; z-index: 1; position: absolute; left: 8px; top: 50%; width: 11px; height: 6px; margin-top: -5px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.standards li:hover { color: var(--red); }

/* ---------- contact ---------- */

.contact { padding: 88px 0; }
/* phones: a lighter rhythm, and the contact card follows the section before it closely
   instead of stacking two full paddings */
@media (max-width: 719px) {
  .section, .about { padding: 56px 0; }
  .contact { padding: 8px 0 56px; }
}
.contact__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 36px;
  padding: 36px 24px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(216, 31, 38, .35), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(58, 90, 140, .45), transparent 65%),
    linear-gradient(135deg, #16263d 0%, #0c1218 100%);
  box-shadow: 0 50px 100px -40px rgba(12, 18, 24, .6);
}
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 56px 60px; } }
.contact__inner .eyebrow { color: #ff8a8e; }
.contact__text { margin-top: 14px; color: rgba(232, 238, 242, .78); font-size: 17px; max-width: 30em; }
.contact__list { margin: 0; border-top: 1px solid rgba(232, 238, 242, .16); }
/* on a phone the label sits above its value, so a long e-mail still fits */
.contact__list div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(232, 238, 242, .16); }
@media (min-width: 480px) { .contact__list div { grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; align-items: baseline; } }
.contact__list dt { color: rgba(232, 238, 242, .6); font-weight: 600; font-size: 14px; }
.contact__list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: #ff8a8e; }
.contact__phone { font-size: clamp(21px, 6vw, 24px); letter-spacing: -.02em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- search results ---------- */

.page-head--search { padding-bottom: 8px; }
/* search results are split per building, each behind its own divider */
.flat-group + .flat-group { margin-top: 44px; }
.flat-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.flat-group__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.flat-group__title a { text-decoration: none; }
.flat-group__title a:hover { color: var(--red); }
.flat-group__place { color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.flat-group__head .link-arrow { margin-left: auto; font-size: 14px; }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sort { display: flex; flex-wrap: wrap; gap: 4px; }
.sort a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.sort a:hover { color: var(--ink); background: var(--wash); }
.sort a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- building page ---------- */

.page-head { padding: 36px 0 44px; }
.page-head__street { font-size: 18px; font-weight: 600; margin-top: 8px; color: var(--ink-soft); }
/* a building's page shows its render beside the name (under it on a phone) */
.page-head__grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .page-head--cover .page-head__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 56px; }
}
.page-head__cover { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--wash); box-shadow: var(--shadow-md); }
.page-head__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--ink); }
.crumbs a:hover { color: var(--red); }

.explorer { background: var(--night); color: #fff; padding: 64px 0; }
.explorer__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .explorer__inner { grid-template-columns: .9fr 1.1fr; } }
.explorer__copy { display: grid; gap: 18px; align-content: start; }
.explorer .eyebrow { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
/* on a phone a group of chips stays on one line and scrolls, instead of stacking three deep */
@media (max-width: 899px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; overscroll-behavior-x: contain; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
}

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: rgba(232, 238, 242, .8); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .unit { width: 16px; height: 16px; min-height: 0; border-radius: 4px; }

/* the tower */
.tower { --gap: 6px; display: grid; gap: var(--gap); width: 100%; }
.tower__roof { height: 12px; margin: 0 0 4px 34px; border-radius: 6px 6px 0 0; background: #1e2a38; }
.tower__floor { display: grid; grid-template-columns: 28px 1fr; gap: var(--gap); align-items: stretch; }
.tower__label { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #7d8a9b; }
.tower__flats { display: grid; grid-template-columns: repeat(var(--cols), minmax(40px, 1fr)); gap: var(--gap); }
.explorer__tower-wrap { min-width: 0; }
/* a floor is wider than a phone, so it scrolls — the fade at the edge says so */
.explorer__tower { min-width: 0; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
@media (max-width: 899px) {
  .explorer__tower { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
.explorer__hint { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: rgba(232, 238, 242, .6); }
@media (min-width: 900px) { .explorer__hint { display: none; } }
.tower__ground { height: 6px; margin-left: 34px; border-radius: 3px; background: #2a3747; }

.unit {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 58px;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.1;
  transition: transform .15s, opacity .2s, box-shadow .15s;
}
.unit--available { background: var(--available); color: #fff; }
.unit--reserved { background: var(--reserved); color: #fff; }
.unit--sold { background: repeating-linear-gradient(135deg, #1f2a36 0 6px, #19232e 6px 12px); color: #6f7c8d; }
a.unit { position: relative; }
a.unit.is-saved::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px #fff;
}
a.unit:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px #fff; }
a.unit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.unit.is-dim { opacity: .18; }
.unit__no { font-weight: 800; font-size: 16px; }
.unit__m2 { font-size: 11px; opacity: .85; }
@media (max-width: 480px) {
  .tower { --gap: 4px; }
  .tower__flats { grid-template-columns: repeat(var(--cols), minmax(46px, 1fr)); }
  .unit { min-height: 50px; }
  .unit__no { font-size: 15px; }
  .unit__m2 { font-size: 10px; letter-spacing: -.01em; }
}
.legend .unit--sold { background: #2a3747; }

/* ---------- flat cards (search results, building page) ---------- */

/* two cards to a row even on a phone, then as many as fit */
.similar__lede { margin: 6px 0 20px; }
.flat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .flat-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

/* list view: a row per flat that opens to show the plan and the rooms */
.views { display: flex; gap: 6px; }
.views a { display: inline-flex; align-items: center; min-height: 40px; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink-soft); transition: background .2s, color .2s; }
.views a:hover { background: var(--wash); color: var(--ink); }
.views a[aria-current] { background: var(--ink); color: #fff; }
.views svg { width: 15px; height: 15px; fill: currentColor; }

.flat-list { border-top: 1px solid var(--line); }

/* building page: the flats split floor by floor, lowest first */
.floor-group + .floor-group { margin-top: 40px; }
.floor-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.floor-group__head span { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink-faint); }
.floor-group__head + .flat-grid { margin-top: 16px; }
.floor-group__head + .flat-list { border-top: 0; }
.flat-row { border-bottom: 1px solid var(--line); }
.flat-row__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 6px;
  cursor: pointer;
  list-style: none;
  transition: background .2s;
}
.flat-row__head::-webkit-details-marker { display: none; }
.flat-row__head:hover { background: var(--wash); }
.flat-row[open] .flat-row__head { background: var(--wash); }
@media (min-width: 760px) { .flat-row__head { grid-template-columns: minmax(0, 1.6fr) 1fr 1.2fr auto 110px 24px; } }
.flat-row__no { display: grid; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.flat-row__building { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.flat-row__cell { color: var(--ink-soft); font-size: 14px; }
.flat-row__m2 { font-weight: 800; white-space: nowrap; }
.flat-row .badge { justify-self: start; }
@media (min-width: 760px) { .flat-row .badge { justify-self: end; } }
.flat-row__toggle { position: relative; width: 22px; height: 22px; justify-self: end; border-radius: 50%; background: var(--wash); }
.flat-row__toggle::before, .flat-row__toggle::after { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.flat-row__toggle::after { transform: rotate(90deg); }
.flat-row[open] .flat-row__toggle::after { transform: rotate(0); }
.flat-row__head:hover .flat-row__toggle { background: #fff; }

.flat-row__body { display: grid; gap: 22px; padding: 6px 6px 26px; }
@media (min-width: 760px) { .flat-row__body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; } }
.flat-row__plan { display: grid; place-items: center; min-height: 190px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(120% 100% at 50% 0%, #fbfcfd 0%, var(--wash) 70%); }
.flat-row__plan > svg, .flat-row__plan > img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.flat-row__plan--render { position: relative; height: 280px; padding: 0; container-type: size; }
.flat-row__plan .plan-lines line, .flat-row__plan .plan-lines path, .flat-row__plan .plan-tag,
.flat-row__plan .plan-cursor, .flat-row__plan .plan-select { display: none; }
.flat-row__plan .plan-room__floor { fill: var(--room); fill-opacity: .5; }
.flat-row__plan .plan-walls { fill: #fff; }
.flat-row__facts { display: grid; gap: 16px; align-content: start; }
.flat-row__same { color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.flat-row__rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
@media (min-width: 520px) { .flat-row__rooms { grid-template-columns: repeat(2, 1fr); } }
.flat-row__rooms li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flat-row__rooms li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--room); flex: none; }
.flat-row__rooms span { flex: 1; color: var(--ink-soft); }
.flat-row__rooms b { font-weight: 700; white-space: nowrap; }
.flat-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flat-row__actions .fav { position: relative; }
.flat-card { position: relative; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.flat-card:hover { transform: translateY(-4px); border-color: #d3d9e2; box-shadow: var(--shadow-md); }
.flat-card__link { display: grid; text-decoration: none; border-radius: inherit; }
.flat-card__link:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.flat-card .fav { position: absolute; top: 12px; right: 12px; }
.flat-card__plan { position: relative; display: block; height: 150px; container-type: size; background: radial-gradient(120% 100% at 50% 0%, #fbfcfd 0%, var(--wash) 70%); border-radius: 14px 14px 0 0; }
.flat-card__plan svg, .flat-card__plan > img, .plan-crop { transition: transform .5s var(--ease); }
.flat-card__plan > img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; }
.flat-card:hover .flat-card__plan > img, .flat-card:hover .plan-crop { transform: scale(1.04); }
/* the 3D render, as large as fits the card's plan area at the flat's own proportions */
.plan-crop { position: absolute; inset: 0; margin: auto; width: min(100cqw - 28px, (100cqh - 28px) * var(--ratio)); aspect-ratio: var(--ratio); overflow: hidden; }
.plan-crop img { position: absolute; max-width: none; height: auto; }
.flat-card:hover .flat-card__plan svg { transform: scale(1.04); }
.flat-card__plan svg { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); overflow: visible; }
.flat-card__body { display: grid; gap: 2px; padding: 12px 13px 14px; }
.flat-card__building { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.flat-card__no { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.flat-card__meta { color: var(--ink-soft); font-size: 13px; }
.flat-card__same { color: var(--ink-faint); font-size: 12px; font-weight: 600; }
.flat-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.flat-card__m2 { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
@media (min-width: 620px) {
  .flat-card__plan { height: 210px; }
  .flat-card__body { gap: 2px; padding: 16px 18px 18px; }
  .flat-card__building { font-size: 13px; }
  .flat-card__no { font-size: 20px; }
  .flat-card__meta { font-size: 14px; }
  .flat-card__same { font-size: 13px; }
  .flat-card__foot { margin-top: 12px; gap: 8px; }
  .flat-card__m2 { font-size: 18px; }
}

/* plans drawn small in cards: soft room colours on the light panel */
.flat-card__plan .hatch-ground { fill: var(--wash); }
.flat-card__plan .hatch-line { fill: var(--ink); fill-opacity: .45; }
.flat-card__plan .plan-walls { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.flat-card__plan .plan-cut { fill: var(--wash); }
.flat-card__plan .plan-room__floor { fill: #fff; }
.flat-card__plan .plan-room__edge { fill: var(--room); fill-opacity: .5; stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; vector-effect: non-scaling-stroke; }
.flat-card__plan .plan-window { fill: #fff; stroke: var(--ink); stroke-width: .8; vector-effect: non-scaling-stroke; }
.flat-card__plan .plan-lines line, .flat-card__plan .plan-lines path, .flat-card__plan .plan-tag,
.flat-card__plan .plan-cursor, .flat-card__plan .plan-select, .flat-card__plan .plan-render, .flat-card__plan .plan-room__deck { display: none; }

/* ---------- flat page ---------- */

/* on a phone the call and the enquiry stay within reach, however far down the plan you are */
.flat-bar { display: none; }
@media (max-width: 719px) {
  .flat-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
  }
  .flat-bar .button { width: 100%; min-height: 46px; }
  body[data-page="flat"] { padding-bottom: 74px; }
  /* the compare tray owns the bottom of the screen while it is up */
  body:has([data-tray]:not([hidden])) .flat-bar { display: none; }
}

.page-head--flat { padding-bottom: 20px; }
.flat-head { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .flat-head { grid-template-columns: 1fr 340px; } }

.facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; display: grid; }
.facts strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.facts span { font-size: 13px; color: var(--ink-soft); }

.flat-status { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; justify-items: start; }
.flat-status__price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; }

.flat-body { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .flat-body { grid-template-columns: 1.1fr .9fr; } }

.plan { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.plan img { border-radius: 8px; cursor: zoom-in; }
.plan figcaption { font-size: 13px; color: var(--ink-soft); padding: 12px 4px 2px; }
.plan__missing { aspect-ratio: 1; display: grid; place-items: center; color: var(--ink-faint); }

.rooms { display: grid; gap: 18px; }
.rooms__table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rooms__table th, .rooms__table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rooms__table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.rooms__table td:first-child { display: flex; gap: 12px; align-items: center; }
.rooms__table .num { text-align: right; white-space: nowrap; font-weight: 700; }
.rooms__table tfoot th, .rooms__table tfoot td { border-bottom: 0; background: var(--ink); color: #fff; font-size: 17px; }
.rooms__table tfoot .rooms__sum th, .rooms__table tfoot .rooms__sum td { background: var(--wash); color: var(--ink-soft); font-size: 14px; border-bottom: 1px solid var(--line); }
.rooms__no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--wash); font-size: 13px; font-weight: 800; }
.rooms__name { display: grid; font-weight: 600; }
.rooms__name small { font-weight: 500; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- position on floor + same layout elsewhere ---------- */

.whereabouts { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .whereabouts { grid-template-columns: 1.45fr .55fr; } }
.keyplan .display { margin-bottom: 8px; }
.keyplan img { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.siblings .display { margin-bottom: 18px; }
.siblings__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sibling {
  display: grid;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.3;
}
.sibling__floor { font-weight: 700; }
.sibling--available .sibling__status { color: var(--available); font-weight: 600; }
.sibling--reserved .sibling__status { color: var(--reserved); font-weight: 600; }
.sibling--sold .sibling__status { color: var(--ink-faint); }
.sibling:hover { border-color: var(--ink); }
.sibling.is-current { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* ---------- interactive plan sheet ("Nacrt") ---------- */

.nacrt {
  --plan-ground: #0c1218;
  --plan-line: #e8eef2;
  --plan-dim: rgba(232, 238, 242, .58);
  --plan-faint: rgba(232, 238, 242, .22);
  --plan-grip: #2b3bd6;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  color: var(--plan-line);
  font-family: var(--mono);
}
/* full-bleed dark band that carries the sheet */
.nacrt-band { margin-top: 20px; padding: 16px; background: var(--navy); }
@media (min-width: 720px) { .nacrt-band { padding: 32px 28px; } }
.nacrt__head,
.nacrt__body,
.nacrt__titleblock { border: 1px solid rgba(232, 238, 242, .32); }
.nacrt__body { border-top: 0; border-bottom: 0; }

.nacrt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}
.nacrt__sheet { margin-left: auto; font-size: 12px; letter-spacing: .14em; color: var(--plan-dim); }
.nacrt__model { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: #142235; font-size: 13px; font-weight: 700; text-decoration: none; }
.nacrt__model::after { content: "→"; }
.nacrt__model:hover { background: #e9edf3; }
.nacrt__views { display: inline-flex; border: 1px solid var(--plan-faint); border-radius: 999px; padding: 3px; }
.nacrt__view {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font: 600 12px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--plan-dim);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}
.nacrt__view:hover { color: var(--plan-line); }
.nacrt__view.is-on { background: var(--plan-line); color: var(--plan-ground); }
.nacrt__view:focus-visible { outline: 2px solid var(--plan-line); outline-offset: 2px; }
@media (max-width: 720px) {
  .nacrt__sheet { order: 3; width: 100%; }
}

/* the sheet is tall on a phone, so the drawing and the schedule take turns */
.nacrt__view--spec { display: none; }
/* side by side on a wide screen there is nothing to switch, so the switch goes */
@media (min-width: 980px) { .nacrt__views { display: none; } }
@media (max-width: 979px) {
  .nacrt__view--spec { display: inline-flex; }
  .nacrt[data-pane="spec"] .nacrt__drawing, .nacrt[data-pane="plan"] .nacrt__spec { display: none; }
}
.nacrt__body { position: relative; display: grid; gap: 28px; padding: 24px 20px; }
@media (min-width: 980px) {
  .nacrt__body { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 48px; padding: 32px 36px; }
}
@media (min-width: 1400px) {
  .nacrt__body { grid-template-columns: minmax(0, 1fr) 500px; gap: 72px; padding: 40px 56px; }
}

.nacrt__drawing { position: relative; display: grid; justify-items: center; align-content: start; gap: 14px; }
.nacrt__svg { display: block; width: 100%; height: auto; max-height: 74vh; overflow: visible; touch-action: manipulation; }


.nacrt__readout { min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: .45em; padding: 0 48px; font-size: 13px; letter-spacing: .06em; color: var(--plan-dim); text-align: center; }
@media (max-width: 720px) { .nacrt__readout { padding: 0; } }
.nacrt__readout b { color: var(--room); font-weight: 600; }
.nacrt__readout strong { color: var(--plan-line); font-weight: 600; }

/* drawing */
.nacrt .hatch-ground { fill: var(--plan-ground); }
.nacrt .hatch-line { fill: var(--plan-line); fill-opacity: .42; }
.plan-walls { stroke: var(--plan-line); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.plan-cut { fill: var(--plan-ground); }
.plan-window { fill: var(--plan-ground); stroke: var(--plan-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-window__pane { stroke: var(--plan-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-door__leaf { stroke: var(--plan-line); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.plan-door__swing { fill: none; stroke: var(--plan-line); stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.plan-lines { pointer-events: none; }

.plan-room { cursor: pointer; outline: none; }
.plan-room__floor { fill: var(--plan-ground); }
.plan-room__deck { pointer-events: none; }
.plan-room__edge {
  fill: var(--room);
  fill-opacity: .1;
  stroke: var(--room);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity .18s, stroke-opacity .18s;
}
.nacrt.has-active .plan-room:not(.is-active) .plan-room__edge { fill-opacity: .03; stroke-opacity: .4; }
.plan-room.is-active .plan-room__edge { fill-opacity: .3; stroke-width: 2.4; stroke-dasharray: 9 6; }

.plan-tag { pointer-events: none; }
.plan-tag circle { fill: var(--plan-ground); stroke: var(--room); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: fill .18s; }
.plan-tag text { fill: var(--room); font-family: var(--mono); font-weight: 600; text-anchor: middle; transition: fill .18s; }
.plan-tag.is-active circle { fill: var(--room); }
.plan-tag.is-active text { fill: var(--plan-ground); }
.nacrt.has-active .plan-tag:not(.is-active) { opacity: .45; }

.plan-select rect { fill: var(--plan-grip); stroke: var(--plan-line); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.plan-cursor { display: none; pointer-events: none; }
.nacrt.is-pointing .plan-cursor { display: inline; }
.plan-cursor line, .plan-cursor rect { stroke: var(--plan-line); stroke-opacity: .75; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }

.plan-render { display: none; }
.nacrt[data-view="render"] .plan-render { display: inline; }
.nacrt[data-view="render"] .plan-lines,
.nacrt[data-view="render"] .plan-tag,
.nacrt[data-view="render"] .plan-room__deck { display: none; }
.nacrt[data-view="render"] .nacrt__svg--relabel .plan-tag { display: inline; opacity: 1; }
.nacrt[data-view="render"] .plan-room__floor { fill: transparent; }
.nacrt[data-view="render"] .plan-room__edge { fill-opacity: 0; stroke-opacity: 0; }
.nacrt[data-view="render"] .plan-room.is-active .plan-room__edge { fill-opacity: .42; stroke-opacity: 1; }

/* area schedule */
.nacrt__spec { display: grid; align-content: start; }
.nacrt__spec-head {
  display: flex;
  justify-content: space-between;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--plan-faint);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--plan-dim);
}
.nacrt__rows { list-style: none; margin: 0; padding: 8px 0; display: grid; gap: 2px; }
.spec-row {
  display: grid;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--plan-line);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background .18s;
}
.spec-row__line { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.spec-row__no { flex: none; font-size: 14px; font-weight: 600; color: var(--room); }
.spec-row__name { font: 600 clamp(17px, 1.7vw, 21px)/1.1 var(--cond); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-row__dots { flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--plan-faint); transform: translateY(-4px); }
.spec-row__m2 { flex: none; font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; }
.spec-row__more { display: none; margin: 6px 0 0 34px; font-size: 12.5px; line-height: 1.45; color: var(--plan-dim); }
.spec-row:hover, .spec-row.is-active { background: color-mix(in srgb, var(--room) 15%, transparent); }
.spec-row.is-active .spec-row__more { display: block; }
.spec-row[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--room); }
.spec-row:focus-visible { outline: 2px solid var(--room); outline-offset: 1px; }

.nacrt__total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 6px;
  padding: 14px 0 0 12px;
  border-top: 1px solid var(--plan-faint);
}
.nacrt__sum { display: grid; grid-template-columns: 1fr auto; margin-top: 6px; padding: 12px 0 0 12px; border-top: 1px solid var(--plan-faint); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--plan-dim); }
.nacrt__sum strong { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; padding-right: 18px; }
.nacrt__sum + .nacrt__total { margin-top: 0; border-top: 0; }
.nacrt__total > span { font-size: 12px; letter-spacing: .16em; color: var(--plan-dim); }
.nacrt__total strong { font-size: 28px; font-weight: 600; padding: 8px 18px; border: 1.5px solid var(--red); border-radius: 8px; }
.nacrt__note { margin: 16px 12px 0; font-size: 12px; line-height: 1.5; color: var(--plan-dim); }

/* title block */
.nacrt__titleblock { display: grid; grid-template-columns: repeat(2, 1fr); border-radius: 0 0 12px 12px; }
.nacrt__titleblock > div { display: grid; gap: 4px; padding: 14px 20px; min-width: 0; }
.nacrt__titleblock > div:nth-child(even) { border-left: 1px solid var(--plan-faint); }
.nacrt__titleblock > div:nth-child(n + 3) { border-top: 1px solid var(--plan-faint); }
.nacrt__titleblock > div:nth-child(3) { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .nacrt__titleblock { grid-template-columns: 1fr 1.5fr 1.2fr; }
  .nacrt__titleblock > div:nth-child(3) { grid-column: auto; }
  .nacrt__titleblock > div + div { border-left: 1px solid var(--plan-faint); }
  .nacrt__titleblock > div:nth-child(n + 3) { border-top: 0; }
}
.nacrt__titleblock span { font-size: 11px; letter-spacing: .16em; color: var(--plan-dim); }
.nacrt__titleblock strong { font: 600 19px/1.15 var(--cond); }

.nacrt__leader { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; display: none; }
.nacrt__leader path { fill: none; stroke: var(--leader, var(--plan-line)); stroke-width: 1.3; stroke-opacity: .85; }
.nacrt__leader circle { fill: var(--leader, var(--plan-line)); }
@media (min-width: 980px) { .nacrt.has-leader .nacrt__leader { display: block; } }
.nacrt[data-view="render"] .nacrt__leader { display: none !important; }

/* ---------- compare ---------- */

.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.compare { position: relative; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
.compare__table {
  width: 100%;
  min-width: calc(150px + var(--cols) * 220px);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  table-layout: fixed;
}
.compare__table th,
.compare__table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table tbody th {
  width: 170px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card);
}
.compare__table tbody th small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-faint); }
.compare__corner { width: 170px; }
.compare__head { vertical-align: bottom; }
.compare__head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.compare__building { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.compare__flat { display: block; font: 800 24px/1.1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.compare__flat:hover { color: var(--red); }
.compare__remove { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.compare__remove:hover { color: var(--red); }

.compare__plans td { vertical-align: bottom; }
.compare-plan { display: block; }
.compare-plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.compare-plan .plan-crop { position: relative; inset: auto; display: block; width: 100%; }

.compare__key strong { font: 800 20px/1.1 var(--display); letter-spacing: -.02em; }
.compare__table td.is-best { background: #eef6f0; }
.compare__table td.is-best strong,
.compare__table td.is-best .compare__m2 { color: var(--available); }
.compare__group th {
  position: static;
  padding-top: 22px;
  font-size: 12px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red) !important;
  background: var(--card);
}
.compare__room th { display: table-cell; }
.compare__swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--room); vertical-align: 0; }
.compare__m2 { font-weight: 700; }
.compare__bar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--room) var(--share), var(--wash) var(--share)); }
.compare__none { color: var(--ink-faint); }
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__more { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* the same plan drawing, in light "anatomy" colours for the white table */
.compare-plan {
  --plan-ground: #fff;
  --plan-line: var(--ink);
}
.compare-plan .hatch-ground { fill: #fff; }
.compare-plan .hatch-line { fill: var(--ink); fill-opacity: .5; }
.compare-plan .plan-room { cursor: pointer; }
.compare-plan .plan-room__floor { fill: #fff; }
.compare-plan .plan-room__edge { fill-opacity: .55; stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; }
.compare-plan .plan-tag,
.compare-plan .plan-cursor,
.compare-plan .plan-select,
.compare-plan .plan-render { display: none; }

.pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 36px; font-weight: 700; font-size: 15px; }
.pager a { text-decoration: none; }
.pager a:hover { color: var(--red); }

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

/* ---------- page heads for projects and contact ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  background:
    radial-gradient(40% 90% at 95% 0%, rgba(216, 31, 38, .09), transparent 70%),
    radial-gradient(50% 80% at 70% 100%, rgba(58, 90, 140, .08), transparent 70%),
    linear-gradient(180deg, var(--wash), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero .display { max-width: 16ch; }

.standards-band { display: grid; gap: 28px; }
@media (min-width: 900px) { .standards-band { grid-template-columns: .8fr 1.2fr; align-items: start; } .standards-band .standards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- enquiry form bits the side panel shares ---------- */

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  /* if the script never runs, show everything anyway */
  animation: reveal-fallback 0s 3s forwards;
}
.js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
  .hero__bg, .hero__media .hero__bg.is-on, .hero__title, .finder--hero { animation: none; }
  .project:hover, .flat-card:hover { transform: none; }
}

/* ---------- život u naselju ---------- */

.eyebrow--on-blue { color: #a9d2ff; }

/* the brand blue, with a faint set of walking-distance rings in the corner */
.naselje-band, .page-hero--blue {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(92, 170, 255, .34), transparent 62%),
    radial-gradient(45% 70% at 0% 100%, rgba(0, 18, 52, .5), transparent 62%),
    linear-gradient(135deg, #0a62bd 0%, var(--blue) 45%, var(--blue-deep) 100%);
}
.naselje-band::before, .page-hero--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 88% 22%, rgba(255, 255, 255, .09) 0 1px, transparent 1.5px 72px);
  -webkit-mask-image: radial-gradient(60% 90% at 88% 22%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 90% at 88% 22%, #000 20%, transparent 75%);
}
.naselje-band { padding: 96px 0; }
.naselje-band__grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 960px) { .naselje-band__grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; } }
.naselje-band__text { display: grid; gap: 16px; justify-items: start; }
.naselje-band__text p:not(.eyebrow) { color: rgba(255, 255, 255, .84); font-size: 17px; max-width: 32em; }
.naselje-band__text .button { margin-top: 8px; }

.naselje-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 540px) { .naselje-cards { grid-template-columns: repeat(2, 1fr); } }
.naselje-card a {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 22px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 24px 40px -28px rgba(0, 12, 36, .7);
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.naselje-card a:hover { transform: translateY(-4px); background: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .09)); border-color: rgba(255, 255, 255, .38); box-shadow: 0 30px 50px -26px rgba(0, 12, 36, .8); }
.naselje-card a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.naselje-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: #fff; color: var(--blue); box-shadow: 0 8px 18px -10px rgba(0, 12, 36, .6); }
.naselje-card__icon .icon { width: 22px; height: 22px; }
.naselje-card__time { display: flex; align-items: baseline; gap: 6px; }
.naselje-card__time strong { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.naselje-card__time small { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.naselje-card__approx { margin-right: 3px; font-weight: 600; opacity: .7; }
.naselje-card__title { margin-top: 6px; font-weight: 800; }
.naselje-card__text { color: rgba(255, 255, 255, .76); font-size: 14px; line-height: 1.45; }

/* page */
.page-hero--blue { border-bottom: 0; padding-bottom: 64px; }
.page-hero--blue .page-hero__inner { position: relative; }
.page-hero--blue .crumbs, .page-hero--blue .crumbs a { color: rgba(255, 255, 255, .78); }
.page-hero--blue .crumbs a:hover { color: #fff; }
.page-hero--blue .lede { color: rgba(255, 255, 255, .86); }
.on-site { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }
.on-site__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.on-site__label .icon { width: 20px; height: 20px; }
.on-site__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.on-site__list li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; font-weight: 700; }

.naselje__filters { display: flex; gap: 8px; margin: 0 -16px 20px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; }
.naselje__filters::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .naselje__filters { flex-wrap: wrap; margin: 0 0 24px; padding: 0; overflow: visible; } }
/* the category chips on this page are their own thing: light, round and on a white band,
   unlike the chips on the dark building panel */
.naselje__filters .chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.naselje__filters .chip .icon { width: 18px; height: 18px; color: var(--cat, var(--ink)); transition: color .2s; }
.naselje__filters .chip:hover { transform: translateY(-1px); border-color: #c5cdd8; }
.naselje__filters .chip.is-on { background: var(--cat, var(--ink)); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -12px var(--cat, var(--ink)); }
.naselje__filters .chip.is-on .icon { color: #fff; }
.naselje__filters .chip:focus-visible { outline: 3px solid var(--cat, var(--ink)); outline-offset: 2px; }

.naselje__layout { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .naselje__layout { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 36px; }
  .naselje__map-wrap { position: sticky; top: 104px; }
}
.naselje__map { position: relative; z-index: 0; height: 380px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--wash); box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .naselje__map { height: clamp(460px, calc(100vh - 170px), 680px); } }
.naselje__map .leaflet-tile-pane { filter: grayscale(.9) contrast(.96) brightness(1.04); }
.naselje__map .leaflet-control-attribution { font-size: 11px; }
.naselje__note { margin-top: 10px; font-size: 12px; color: var(--ink-faint); }

.naselje__list { display: grid; gap: 30px; }
.place-group[hidden] { display: none; }
.place-group__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 18px; font-weight: 800; }
.place-group__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--cat) 12%, #fff); color: var(--cat); }
.place-group__icon .icon { width: 20px; height: 20px; }
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.place {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 12px 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s;
}
.place::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--cat); transform: scaleY(0); transition: transform .25s var(--ease); }
.place:hover, .place.is-active { background: color-mix(in srgb, var(--cat) 7%, #fff); }
.place:hover::before, .place.is-active::before { transform: scaleY(1); }
.place:focus-visible { outline: 3px solid var(--cat); outline-offset: -3px; }
.place--here { cursor: default; }
.place__body { display: grid; gap: 2px; min-width: 0; }
.place__body strong { font-weight: 800; }
.place__body span { color: var(--ink-soft); font-size: 14px; }
.place__near { flex: none; display: grid; justify-items: end; gap: 2px; text-align: right; }
.place__near b { color: var(--cat); font-size: 14px; white-space: nowrap; }
.place__near small { color: var(--ink-faint); font-size: 12px; }

/* map markers */
.map-pin span { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #fff; border-radius: 50%; background: var(--cat); color: #fff; box-shadow: 0 4px 10px rgba(12, 18, 24, .35); transition: transform .2s var(--ease), box-shadow .2s; }
.map-pin .icon { width: 17px; height: 17px; }
.map-pin.is-active span { transform: scale(1.25); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cat) 28%, transparent), 0 6px 14px rgba(12, 18, 24, .4); }
.map-home span { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 14px; background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(216, 31, 38, .45); }
.map-home .icon { width: 24px; height: 24px; }
.leaflet-tooltip.map-tip { padding: 6px 10px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--font); font-size: 13px; box-shadow: var(--shadow-md); }
.leaflet-tooltip.map-tip strong { display: block; font-weight: 800; }
.leaflet-tooltip.map-tip span { color: rgba(255, 255, 255, .75); }
.leaflet-tooltip-top.map-tip::before { border-top-color: var(--ink); }
.leaflet-tooltip.map-tip--home { background: var(--red); font-weight: 800; }
.leaflet-tooltip-top.map-tip--home::before { border-top-color: var(--red); }

/* ---------- enquiry side panel ---------- */

.site-footer__enquire { align-self: start; margin-top: 14px; }
.site-footer__col a.site-footer__enquire:hover { color: #fff; }

.has-drawer, .has-drawer body { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(12, 18, 24, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s var(--ease); }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  padding: 28px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(255, 255, 255, .14), transparent 70%),
    linear-gradient(160deg, #e0262d 0%, var(--red) 45%, #a8151b 100%);
  box-shadow: -30px 0 60px -20px rgba(12, 18, 24, .45);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
/* the same walking-distance rings as the blue sections, faint in the corner */
.drawer__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .08) 0 1px, transparent 1.5px 64px);
  -webkit-mask-image: radial-gradient(70% 60% at 100% 100%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 100% 100%, #000 10%, transparent 75%);
}
@media (min-width: 720px) { .drawer__panel { padding: 40px 48px 32px; } }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s, transform .3s var(--ease); }
.drawer__close::before, .drawer__close::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.drawer__close::after { transform: rotate(-45deg); }
.drawer__close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }
.drawer__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.drawer__logo { position: relative; align-self: flex-start; height: 40px; width: 164px; margin-bottom: 32px; --logo-accent: #fff; }
.drawer__body, .drawer__done { position: relative; }
.drawer__title { font-size: clamp(30px, 4vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.drawer__lede { margin-top: 10px; font-size: 17px; color: #fff; max-width: 30em; }
.drawer__about[hidden] { display: none; }
.drawer__about { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14px; }

.drawer__form { display: grid; gap: 14px; margin-top: 26px; }
.drawer__field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.drawer__field small { font-weight: 500; }
.drawer__field input, .drawer__field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.drawer__field textarea { resize: vertical; min-height: 88px; }
.drawer__field ::placeholder { color: rgba(255, 255, 255, .7); }
.drawer__field input:hover, .drawer__field textarea:hover { border-color: #fff; }
.drawer__field input:focus, .drawer__field textarea:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
.drawer__field [aria-invalid="true"] { border-color: #fff; border-width: 2px; }
.drawer__error { justify-self: start; padding: 4px 10px; border-radius: 6px; background: #fff; color: var(--red-dark); font-size: 13px; font-weight: 700; }
.drawer__alert { padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--red-dark); font-weight: 700; }
.drawer__alert[hidden] { display: none; }
.drawer__send { margin-top: 6px; color: var(--red-dark); }
.drawer__send:disabled { opacity: .75; cursor: progress; transform: none; }
.drawer__note { font-size: 13px; color: #fff; opacity: .92; }

.drawer__done { display: grid; justify-items: start; gap: 6px; margin-top: 8px; outline: none; }
.drawer__done[hidden] { display: none; }
.drawer__done .button { margin-top: 18px; color: var(--red-dark); }
.drawer__done-icon { position: relative; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: #fff; animation: pop .6s var(--ease) both; }
.drawer__done-icon::after { content: ""; position: absolute; left: 21px; top: 20px; width: 22px; height: 12px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

.drawer__call { position: relative; margin-top: auto; padding-top: 28px; font-size: 15px; }
.drawer__call a { color: #fff; font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .5); }
.drawer__call a:hover { border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .drawer__scrim, .drawer__panel, .drawer__close { transition: none; }
}
