/* Intergaj Stanovi
   "Naselje": warm neutrals, rounded cards, Intergaj red for calls to action.
   Status colours are shared by the tower, badges and the admin grid. */

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

  --ink: #2a2723;
  --ink-soft: #6f665c;
  --ink-faint: #9a9186;

  --paper: #f4f1ec;
  --card: #ffffff;
  --line: #e6e0d7;
  --wash: #ebe6de;
  --night: #24211e;
  --night-line: #3a3530;
  --navy: #0c1218;

  --available: #2f7d4f;
  --available-tint: #e3f1e8;
  --reserved: #b07a12;
  --reserved-tint: #fbefd6;
  --sold: #b9b1a6;
  --sold-tint: #efebe5;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 39, 35, .05), 0 8px 24px rgba(42, 39, 35, .06);
  --shadow-lift: 0 2px 4px rgba(42, 39, 35, .06), 0 18px 44px rgba(42, 39, 35, .13);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1180px;
}

*, *::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.55;
  color: var(--ink);
  background: var(--paper);
}
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 28px; } }

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

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

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.display--md { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; }
.display--sm { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }

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

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 20px;
}

/* ---------- buttons & chips ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--red); color: #fff; }
.button--primary:hover { background: var(--red-dark); }
.button--ghost { border-color: var(--ink); color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: #fff; }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: var(--paper); }
.button--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  color: #d9d2c8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { border-color: #8a8177; color: #fff; }
.chip.is-on { background: #fff; border-color: #fff; color: var(--ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge::before { content: ""; width: 7px; height: 7px; 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: #7d756b; }
.badge--lg { font-size: 14px; padding: 7px 14px; }

.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: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.fav:hover { color: var(--red); border-color: var(--red); }
.fav:active { transform: scale(.94); }
.fav:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.fav__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav[aria-pressed="true"] { color: var(--red); border-color: var(--red); background: #fdecec; }
.fav[aria-pressed="true"] .fav__icon { fill: currentColor; }
.fav--wide { display: inline-flex; gap: 8px; width: 100%; height: auto; min-height: 44px; padding: 0 16px; 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;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
}
.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: 999px; background: rgba(232, 238, 242, .1); font-size: 13px; font-weight: 600; }
.tray__chip button { width: 26px; height: 26px; border: 0; border-radius: 999px; 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 ---------- */

.preview-bar {
  background: var(--night);
  color: #d9d2c8;
  font-size: 12.5px;
  text-align: center;
  padding: 8px 16px;
}

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 236, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

/* Client logo, drawn from the #logo symbol. The building mark and INTERGAJ keep the
   brand red; "Stanovi" takes the site ink so it sits with the rest of the type. */
.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: 22px; font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--red); }
.site-nav__phone { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
.site-nav__phone:hover { background: var(--red); color: #fff !important; }
@media (max-width: 600px) {
  .site-nav a:not(.site-nav__phone) { display: none; }
}

.site-footer { margin-top: 96px; background: var(--navy); color: #e8eef2; padding: 56px 0 28px; }
.site-footer__inner { display: grid; gap: 36px; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr; } }
.site-footer .logo { height: 48px; }
.site-footer__lede { margin-top: 14px; max-width: 30em; color: rgba(232, 238, 242, .62); }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__col h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 238, 242, .5); margin-bottom: 6px; }
.site-footer__col a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer__col a:hover { color: #ff8a8e; }
.site-footer__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(232, 238, 242, .14); font-size: 13px; color: rgba(232, 238, 242, .5); }

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

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--wash { background: var(--wash); }
.section__head { margin-bottom: 32px; }

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

/* ---------- home ---------- */

.hero { padding: 48px 0 64px; overflow: hidden; }
.hero__inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr .85fr; padding-top: 24px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__plan {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.5deg);
  transition: transform .3s;
  max-width: 460px;
  justify-self: center;
  text-decoration: none;
}
.hero__plan:hover { transform: rotate(0deg) translateY(-4px); }
.hero__plan img { border-radius: 12px; }
.hero__plan-tag {
  position: absolute;
  left: -14px;
  bottom: 30px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.hero__plan-tag strong { display: block; font-family: var(--display); font-size: 18px; }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.stats__inner { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats__inner { grid-template-columns: repeat(4, 1fr); } }
.stats__inner > div { padding: 26px 8px; display: grid; gap: 2px; text-align: center; }
.stats strong { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; }
.stats span { color: var(--ink-soft); font-size: 14px; }

.projects { display: grid; gap: 18px; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects { grid-template-columns: repeat(4, 1fr); } }

.project {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.project__visual {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 26px;
  background: var(--night);
}
.project__soon { color: #a79f94; font-size: 14px; text-align: center; line-height: 1.4; }
.project__body { padding: 20px 22px 22px; display: grid; gap: 2px; }
.project__place { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.project h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.project__street { color: var(--ink-soft); font-size: 15px; }
.project__link { margin-top: 12px; font-weight: 700; color: var(--red); font-size: 15px; }

.standards { display: grid; gap: 32px; }
@media (min-width: 860px) { .standards { grid-template-columns: 1fr 1fr; align-items: start; } }
.standards__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.standards__list li {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 46px;
  position: relative;
  font-weight: 600;
}
.standards__list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(-45deg);
}

.cta {
  margin-top: 72px;
  display: grid;
  gap: 22px;
  align-items: center;
  background: var(--red);
  color: #fff;
  border-radius: 24px;
  padding: 36px 28px;
}
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.cta p { margin-top: 8px; color: #ffd9da; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .button--primary { background: var(--ink); }
.cta .button--primary:hover { background: #000; }

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

.page-head { padding: 36px 0 44px; }
.page-head__street { font-size: 18px; font-weight: 600; margin-top: 10px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 26px; 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; }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: #d9d2c8; }
.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: 14px;
  margin: 0 0 4px 34px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#3a3530, #332e2a);
}
.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: #8a8177; }
.tower__flats { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.tower__ground { height: 6px; margin-left: 34px; border-radius: 3px; background: #4a443e; }

.unit {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 58px;
  border-radius: 8px;
  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, #3f3a35 0 6px, #37322e 6px 12px);
  color: #8a8177;
}
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; }
  .unit { min-height: 48px; }
  .unit__m2 { display: none; }
}

.tower--mini { --gap: 3px; max-width: 150px; }
.tower--mini .tower__roof { margin-left: 0; height: 8px; }
.tower--mini .tower__ground { margin-left: 0; height: 4px; }
.tower--mini .tower__floor { grid-template-columns: 1fr; }
.tower--mini .unit { min-height: 14px; border-radius: 3px; }
.legend .unit--sold, .tower--mini .unit--sold { background: #4a443e; }

.flat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.flat-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.flat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.flat-card__link { display: grid; gap: 2px; padding: 18px 20px; text-decoration: none; border-radius: inherit; }
.flat-card__link:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.flat-card .badge { justify-self: start; margin-bottom: 10px; }
.flat-card .fav { position: absolute; top: 12px; right: 12px; }
.flat-card__no { font-family: var(--display); font-size: 24px; font-weight: 600; }
.flat-card__meta { color: var(--ink-soft); font-size: 14px; }
.flat-card__m2 { font-weight: 800; font-size: 18px; margin-top: 8px; }

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

.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: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { background: var(--card); border-radius: var(--radius-sm); padding: 12px 18px; display: grid; box-shadow: var(--shadow); }
.facts strong { font-size: 20px; }
.facts span { font-size: 13px; color: var(--ink-soft); }

.flat-status { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 10px; justify-items: start; }
.flat-status__price { font-family: var(--display); font-size: 24px; font-weight: 600; 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; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.plan img { border-radius: 12px; 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; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.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: .1em; 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__no {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  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-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.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: 1.5px 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 { font-size: 12px; letter-spacing: .14em; color: var(--plan-dim); }
.nacrt__views { display: inline-flex; border: 1px solid var(--plan-faint); border-radius: 999px; padding: 3px; }
.nacrt__view {
  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%; }
}

.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__ucs { position: absolute; left: 0; bottom: 0; width: 40px; height: 40px; }
.nacrt__ucs path, .nacrt__ucs rect { fill: none; stroke: var(--plan-dim); stroke-width: 1.6; }
.nacrt__ucs text { fill: var(--plan-dim); font: 13px var(--mono); }
@media (max-width: 720px) { .nacrt__ucs { display: none; } }

.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"] .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__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);
  box-shadow: var(--shadow);
  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: 600 26px/1.1 var(--display); 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__key strong { font: 600 22px/1.1 var(--display); }
.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; }
}
