/* AM Holding showcase — direction "Facade band".
   Colours are taken from the building itself: facade white, the blue of its vertical band,
   sky blue, tree green (status only) and the grey of the window frames.
   The logo is the facade's blue band: it hangs from the top of the page on the home page
   and folds into the header once you scroll. Drawings always sit on white.
   Mobile first: base styles are for phones (designed at 360 px wide, checked at 412).
   Larger screens add on at four breakpoints: sm 600 · md 900 · lg 1200 · xl 1600. */
:root {
  /* Palette */
  --paper: #F4F5F2;      /* facade white — page background */
  --card: #FFFFFF;
  --line: #D8DDE3;       /* balcony slab edges — lines and borders */
  --line-strong: #BFC8D3; /* borders of cards, panels and controls */
  --r-sm: 4px;           /* corner radius: buttons, fields, small controls */
  --r-md: 8px;           /* corner radius: cards, panels, pictures */
  --img-frame: 1px solid rgba(30, 50, 82, 0.22);
  --shadow: 0 14px 34px -18px rgba(30, 50, 82, 0.45);
  --shadow-sm: 0 1px 2px rgba(30, 50, 82, 0.06), 0 10px 24px -18px rgba(30, 50, 82, 0.35);
  --sky: #8CC0EC;        /* sky — fills and highlights only, never text on white */
  --sky-fill: rgba(140, 192, 236, 0.45);
  --skywash: #E6F1FB;    /* pale sky — section backgrounds */
  --blue: #3D5A8C;       /* the facade's vertical band — brand colour */
  --blue-dark: #2F4A76;
  --deep: #1E3252;       /* shaded blue — headings, dark sections */
  --deep-2: #16263F;
  --deep-card: #27416B;
  --deep-line: #3A5580;
  --on-deep: #F4F5F2;
  --on-deep-muted: #BAC7D8;
  --ink: #252A30;        /* window frames — body text */
  --muted: #5B6572;
  --leaf: #4E7A2C;       /* tree green — "available" only */
  --warn: #B7791F;
  --sold: #7C8698;
  --cell-none: #EDF0F3;   /* grid cells and rows with no status */
  --cell-sold: #D5D9E0;   /* sold apartments in the grid */
  --render-bg: #1F2A36;  /* frame around apartment renders, matches their dark surroundings */
  --t1: #CFE3F6;  /* 1 bedroom */
  --t2: #8CC0EC;  /* 2 bedrooms */
  --t3: #3D5A8C;  /* 3 bedrooms */
  --ok: var(--leaf);

  /* Type: condensed Archivo for headings and figures (tall, like the tower), Instrument Sans for text */
  --display: 'Archivo', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --narrow: 75%;         /* width of the display face */

  /* Type scale — seven steps, fluid from 360 px to 1440 px wide */
  --fs-xs: clamp(13px, 10px + 0.208vw, 16px);                              /* tags, labels, small print · 14 at 1920 */
  /* each size grows along two lines: 360 → 1440 px wide, then faster from 1440 px so large screens keep the phone's sense of scale */
  --fs-sm: clamp(14px, max(13.67px + 0.093vw, 10.5px + 0.3125vw), 19px);   /* captions, buttons, form labels · 16.5 at 1920 */
  --fs-base: clamp(16px, max(15.67px + 0.093vw, 11px + 0.417vw), 22px);    /* body text · 19 at 1920 */
  --fs-lead: clamp(18px, max(17.33px + 0.185vw, 11px + 0.625vw), 27px);    /* intro paragraphs · 23 at 1920 */
  --fs-h3: clamp(22px, max(20px + 0.556vw, 10px + 1.25vw), 42px);          /* card and panel titles, figures · 34 at 1920 */
  --fs-h2: clamp(28px, max(22.67px + 1.481vw, 3.333vw - 4px), 80px);       /* section titles, key figures · 60 at 1920 */
  --fs-h1: clamp(38px, max(26.67px + 3.148vw, 8.333vw - 48px), 160px);     /* page titles, hero · 112 at 1920 */

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Layout — every page uses the same content column */
  --maxw: clamp(1200px, 100vw - 240px, 1760px);  /* content width without gutters: 1200 up to 1440 px wide, then growing (1680 at 1920) */
  --gutter: 16px;
  --band: var(--s7);     /* vertical padding of a section */
  --band-top: var(--s5); /* top padding of the first section on a page, under the header */
  --header-h: 60px;
  --logo-w: 52px;        /* the blue band logo */
  --overhang: 28px;      /* how far the band hangs below the header on the home page */
  --tap: 44px;           /* minimum touch target */
  --btn-h: 48px;         /* button height */
  color-scheme: light;
}
@media (min-width: 600px)  { :root { --gutter: 24px; --header-h: 64px; --logo-w: 56px; --overhang: 32px; } }
@media (min-width: 900px)  { :root { --gutter: 32px; --band: var(--s8); --band-top: var(--s6); --header-h: 72px; --logo-w: 64px; --overhang: 40px; } }
@media (min-width: 1200px) { :root {
  --gutter: clamp(48px, 3.333vw, 80px); --band: clamp(96px, 6.667vw, 144px); --band-top: clamp(48px, 3.333vw, 72px);
  --header-h: clamp(80px, 20px + 4.167vw, 112px); --logo-w: clamp(76px, 7.083vw - 26px, 132px); --overhang: clamp(52px, 4.167vw - 8px, 96px);
  --tap: clamp(44px, 20px + 1.667vw, 60px); --btn-h: clamp(48px, 24px + 1.667vw, 64px); } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--fs-base); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.band-navy :focus-visible, .foot :focus-visible, .lightbox :focus-visible, .av-bar :focus-visible { outline-color: var(--sky); }
h1, h2, h3 { font-family: var(--display); font-stretch: var(--narrow); font-weight: 600; line-height: 1.02; letter-spacing: 0.005em; margin: 0; color: var(--heading, var(--deep)); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; text-transform: uppercase; line-height: 0.95; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.h-sub { font-size: var(--fs-h3); }                         /* an h2 that sits under a section title */
.block-title { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.label-title { font-family: var(--body); font-stretch: normal; font-size: var(--fs-base); font-weight: 600; margin-bottom: var(--s2); }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { display: block; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.band-navy .kicker { color: var(--sky); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--btn-h); padding: 0 16px; border: 1.5px solid var(--blue); background: transparent; color: var(--blue); text-decoration: none; font-weight: 600; font-size: var(--fs-base); letter-spacing: 0.01em; white-space: nowrap; }
.btn:hover { background: var(--blue); color: var(--card); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: var(--card); }
.btn-solid:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--card); }
.btn-light { border-color: var(--on-deep); color: var(--on-deep); }
.btn-light:hover { background: var(--on-deep); color: var(--deep); }
.btn.btn-icon { width: var(--btn-h); padding: 0; }
.btn:disabled { opacity: 0.35; pointer-events: none; }
@media (min-width: 900px) { .btn { padding: 0 18px; } }
@media (min-width: 1200px) { .btn { padding: 0 clamp(24px, 1.667vw, 40px); } }

/* Header — white bar; the logo is the blue facade band, with thin lines for the floors.
   phone: band · name · SQ/EN · menu; md and up: full navigation */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--card); color: var(--deep); border-bottom: 1px solid var(--line-strong); }
.top .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); min-height: var(--header-h); }
.brand { order: 1; display: flex; align-items: center; min-height: var(--header-h); padding-left: calc(var(--logo-w) + var(--s3)); color: var(--deep); text-decoration: none; }
.brand-band { position: absolute; top: 0; left: var(--gutter); z-index: 1; width: var(--logo-w); height: var(--header-h); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding-bottom: 9px;
  background: var(--blue) repeating-linear-gradient(180deg, transparent 0 13px, rgba(255, 255, 255, 0.16) 13px 14px); color: var(--card); transition: height 0.3s ease; }
.top.hang .brand-band { height: calc(var(--header-h) + var(--overhang)); }
.brand-band b { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: calc(var(--logo-w) * 0.38); line-height: 1; letter-spacing: 0.02em; }
.brand-band small { font-family: var(--display); font-weight: 600; font-size: calc(var(--logo-w) * 0.12); line-height: 1; letter-spacing: 0.3em; margin-right: -0.3em; }
.brand-word { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.brand-word small { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.brand:hover .brand-word { color: var(--blue); }
.lang { order: 2; margin-left: auto; display: flex; border: 1px solid var(--line-strong); }
.lang button { width: var(--tap); height: var(--tap); border: 0; background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; }
.lang button[aria-pressed="true"] { background: var(--blue); color: var(--card); }
.menu-btn { order: 3; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line-strong); background: transparent; color: var(--deep); }
.nav { order: 4; width: 100%; display: flex; flex-direction: column; margin-bottom: var(--s3); }
.top.hang.open .brand-band { height: var(--header-h); }
.top:not(.open) .nav { display: none; }
.nav a { color: var(--deep); text-decoration: none; font-size: var(--fs-lead); font-weight: 600; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.nav a:hover { border-bottom-color: var(--sky); color: var(--deep); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--deep); }
@media (min-width: 600px) { .brand-word, .brand-word small { font-size: 15px; } }
@media (min-width: 1200px) { .brand-word, .brand-word small { font-size: clamp(15px, 1.042vw, 22px); } }
@media (min-width: 900px) {
  .top .wrap { flex-wrap: nowrap; gap: var(--s5); }
  .menu-btn { display: none; }
  .top .nav, .top:not(.open) .nav { order: 2; display: flex; flex-direction: row; align-items: center; gap: var(--s5); width: auto; margin: 0 0 0 auto; }
  .nav a { padding: 6px 0 5px; border-bottom: 3px solid transparent; font-size: clamp(var(--fs-base), 1.25vw, 22px); }  /* underline sits just under the word */
  .lang { order: 3; margin-left: 0; }
}
@media (min-width: 1200px) {
  .top .nav, .top:not(.open) .nav { gap: clamp(32px, 2.5vw - 4px, 56px); }
}

/* Sections */
.band { padding-block: var(--band); }
#view > .band:first-child { padding-top: var(--band-top); }
.band-sky { background: var(--skywash); }
.band-navy { background: var(--deep); color: var(--on-deep); --heading: var(--on-deep); }
.band-navy .muted { color: var(--on-deep-muted); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6); margin-bottom: var(--s5); }
.sec-head h2 { margin-top: var(--s2); }
.sec-head p { max-width: 60ch; }
.sec-head.later { margin-top: var(--s7); }
@media (min-width: 900px) { .sec-head { margin-bottom: var(--s6); } .sec-head.later { margin-top: var(--s8); } }

/* Balcony-slab lines: three short rules, the top one sky blue */
.slabs { display: grid; gap: 7px; }
.slabs i { display: block; width: 96px; height: 3px; background: var(--line); }
.slabs i:first-child { width: 128px; background: var(--sky); }

/* Hero — phone: picture full width (the logo band hangs over it), then the text;
   md and up: text and picture side by side inside the content column, centred against each other;
   the hero always ends above the fold so the key facts show in the first screen */
.hero { background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-img { order: -1; width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-copy { display: flex; flex-direction: column; gap: var(--s4); padding-block: var(--s6) var(--s7); }
.hero-copy p { font-size: var(--fs-lead); color: var(--muted); max-width: 40ch; }
.hero-copy .slabs { margin-top: var(--s3); }
@media (min-width: 600px) { .hero-img { aspect-ratio: 16 / 10; } }
@media (min-width: 900px) {
  .hero { padding-block: calc(var(--overhang) + var(--s6)) var(--s7); }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s7); }
  .hero-img { order: 0; width: 100%; margin-inline: 0; aspect-ratio: 4 / 3; max-height: calc(100vh - var(--header-h) - var(--overhang) - var(--s8)); }
  .hero-copy { padding-block: 0; }
}
@media (min-width: 1200px) {
  .hero { padding-block: 0; }
  .hero-grid { padding-block: var(--s6); }
  .hero-copy { padding: calc(var(--overhang) + var(--s4)) 0 var(--s4); }  /* clear of the logo band hanging below the header */
  /* 4:3, but never taller than the screen minus the header and a strip for the key facts below */
  .hero-img { max-height: calc(100vh - var(--header-h) - 2 * var(--s6) - 110px); max-height: calc(100svh - var(--header-h) - 2 * var(--s6) - 110px); }
}

/* Key facts under the hero: line icon on pale sky, title, one short line beneath.
   phone: two per row, icon above the text; md and up: four in a row, icon beside the text */
.facts { background: var(--card); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s5) var(--s4); border-left: 1px solid var(--line-strong); }
.fact:nth-child(odd) { border-left: 0; padding-left: 0; }
.fact:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
.fact-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: var(--skywash); color: var(--blue); }
.fact-icon svg { width: 26px; height: 26px; }
.fact p { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact b { font-family: var(--display); font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-h3); line-height: 1.1; color: var(--deep); }
.fact p span { font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 900px) {
  .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact, .fact:nth-child(odd) { flex-direction: row; align-items: center; gap: var(--s4); padding: var(--s6) var(--s5); border-left: 1px solid var(--line-strong); }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .fact:nth-child(-n+2) { border-bottom: 0; }
  .fact b { font-size: calc(var(--fs-h3) * 0.86); }  /* one line in a quarter-width column */
}
@media (min-width: 1200px) {
  .fact-icon { width: clamp(56px, 3.5vw, 80px); height: clamp(56px, 3.5vw, 80px); }
  .fact-icon svg { width: 55%; height: 55%; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; }
.split h2 { margin-block: var(--s3) var(--s4); }
.split img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); } }

/* Drawing paper */
.paper { background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); position: relative; }
.pad { padding: var(--s2); }
@media (min-width: 900px) { .pad { padding: var(--s3); } }
.plan { position: relative; width: 100%; aspect-ratio: 2400 / 910; }
.plan img, .plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan svg polygon { fill: rgba(30, 50, 82, 0.03); stroke: transparent; stroke-width: 12; cursor: pointer; transition: fill 0.15s; }
.plan svg polygon:hover { fill: rgba(140, 192, 236, 0.25); }
.plan svg polygon.on { fill: var(--sky-fill); stroke: var(--blue); stroke-width: 14; }
.plan svg polygon:focus-visible { outline: none; stroke: var(--deep); stroke-width: 16; }
.plan.static svg polygon { cursor: default; }
.plan.bordered { border: 1px solid var(--line-strong); }
.no-scroll { overflow: hidden; }
.tag { position: absolute; transform: translate(-50%, -50%); background: var(--deep); color: #FFFFFF; font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; padding: 1px 6px; pointer-events: none; font-variant-numeric: tabular-nums; }
.tag.on { background: var(--sky); color: var(--deep); }

.section-draw { position: relative; width: 100%; aspect-ratio: 1690 / 1380; }
.section-draw img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-btn { position: absolute; pointer-events: none; border: 1px solid transparent; background: transparent; padding: 0 var(--s2); display: flex; align-items: center; justify-content: flex-end; font-size: var(--fs-xs); font-weight: 600; color: transparent; }
.band-btn:hover { background: rgba(140, 192, 236, 0.2); border-color: rgba(61, 90, 140, 0.5); color: var(--blue); }
.band-btn.on { background: var(--sky-fill); border: 3px solid var(--blue); color: var(--deep); }
.band-btn:not(.on) { visibility: hidden; }
@media (min-width: 900px) { .band-btn { pointer-events: auto; } .band-btn:not(.on) { visibility: visible; } }

/* Apartment plan renders are floor plans: always shown whole, never cropped */
.render { width: 100%; aspect-ratio: 1100 / 1020; object-fit: contain; background: var(--render-bg); }

/* Floor explorer — phone: floor buttons, then plan and apartments, section drawing last;
   md and up: section drawing and floor buttons on the left, plan and apartments on the right */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "chips" "main" "section"; gap: var(--s4); align-items: start; }
.ex-chips { grid-area: chips; }
.ex-chips .level-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s1); }
.ex-chips .chip { min-width: 0; padding: 0; }
@media (min-width: 600px) and (max-width: 899.98px) { .ex-chips .level-chips { grid-template-columns: repeat(13, minmax(0, 1fr)); } }
.ex-section { grid-area: section; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; margin-top: var(--s4); }
.ex-main { grid-area: main; display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
@media (min-width: 900px) {
  .explorer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "section main" "chips main"; grid-template-rows: auto 1fr; gap: var(--s4) var(--s6); }
  .ex-section { margin-top: 0; }
}
.hint { margin-top: calc(-1 * var(--s2)); font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 900px) { .hint { display: none; } }
.legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.legend b { color: var(--deep); }
.level-chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { min-width: var(--tap); height: var(--tap); padding: 0 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--deep); font-weight: 600; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--card); }
.floor-head { display: flex; align-items: flex-end; gap: var(--s3); }
.floor-head > div { flex: 1; min-width: 0; }
.floor-head h2 { margin-top: var(--s1); }
.apt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
@media (min-width: 1200px) { .apt-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.apt-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px var(--s3); border: 1px solid var(--line-strong); background: var(--card); color: var(--deep); text-align: left; }
.apt-card:hover { border-color: var(--blue); }
.apt-card small { font-size: var(--fs-xs); font-weight: 600; }
.apt-card b { font-family: var(--display); font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-h3); line-height: 1.1; font-variant-numeric: tabular-nums; }
.apt-card span { font-size: var(--fs-xs); color: var(--muted); }
.apt-card[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--card); }
.apt-card[aria-pressed="true"] span { color: #DCE6F3; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding: var(--s4); }
.detail img { cursor: zoom-in; }
.detail .info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detail .row { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); color: var(--muted); font-size: var(--fs-sm); }
.detail .actions { margin-top: auto; padding-top: var(--s2); }
@media (min-width: 600px) { .detail { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s5); } }
.note-box { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }

/* Home: the six layouts — two per row on phones, three from sm */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 600px) { .types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .types { gap: var(--s5); } }
.type-card { display: flex; flex-direction: column; background: var(--deep-card); border: 1px solid var(--deep-line); color: var(--on-deep); text-decoration: none; }
.type-card:hover { border-color: var(--sky); color: var(--on-deep); }
.type-card .body { flex: 1; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) var(--s3) var(--s4); min-width: 0; }
.type-card b { font-family: var(--display); font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-h3); line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; }
.type-card .meta { font-size: var(--fs-sm); }
.type-card small { color: var(--on-deep-muted); font-size: var(--fs-xs); margin-top: auto; padding-top: var(--s2); }
@media (min-width: 900px) { .type-card .render { aspect-ratio: 4 / 3; } .type-card .body { padding: var(--s4) var(--s5) var(--s5); gap: var(--s2); } }

/* Home: floor teaser — phones show only the plan, the section drawing joins from md */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; }
.teaser-section { display: none; }
.teaser-side { display: flex; flex-direction: column; gap: var(--s4); }
@media (min-width: 900px) { .teaser { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s6); } .teaser-section { display: block; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.gallery.big { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 600px) { .gallery.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } .gallery:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); } }
.gallery button { padding: 0; border: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: var(--s2); color: inherit; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery img.render { aspect-ratio: 1100 / 1020; object-fit: contain; }
.gallery span { font-size: var(--fs-sm); }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(22, 38, 63, 0.95); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); color: var(--on-deep); }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100% - 90px); object-fit: contain; }
.lightbox .bar { display: flex; align-items: center; gap: var(--s3); }
.lightbox .bar span { min-width: 12ch; text-align: center; font-size: var(--fs-sm); }

/* Apartment view — the apartment card full screen on phones and tablets */
.av { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--paper);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.av-bar { flex: none; display: flex; align-items: center; gap: var(--s2); min-height: 60px; padding: var(--s2) var(--gutter); background: var(--deep); color: var(--on-deep); }
.av-bar span { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.av-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--gutter) var(--s6); }
.av-body .detail { max-width: 720px; margin-inline: auto; }

/* Apartment page */
.crumbs { display: flex; flex-wrap: wrap; gap: 0 var(--s5); font-size: var(--fs-sm); margin-bottom: var(--s3); }
#view > .band:first-child .crumbs { margin-top: calc((var(--fs-sm) * 1.55 - var(--tap)) / 2); }  /* tall tap areas, text aligned with other pages */
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
.apt-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .apt-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); } }
.apt-top > img { cursor: zoom-in; }
.apt-info { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: var(--line-strong); gap: 1px; }
@media (min-width: 600px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid div { background: var(--card); padding: var(--s3); display: flex; flex-direction: column; gap: 2px; }
.stat-grid b { font-family: var(--display); font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-h3); line-height: 1.05; color: var(--deep); font-variant-numeric: tabular-nums; }
.stat-grid span { font-size: var(--fs-xs); color: var(--muted); }
.stat-grid .val { font-size: var(--fs-sm); color: var(--ink); }
.kv { display: flex; justify-content: space-between; gap: var(--s3); padding-block: 10px; border-bottom: 1px solid var(--line); }
.kv:first-child { border-top: 1px solid var(--line); }
.rooms { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.rooms li { padding: 5px 10px; background: var(--card); border: 1px solid var(--line-strong); font-size: var(--fs-sm); }
.unit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.unit-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line-strong); background: var(--card); text-decoration: none; color: var(--deep); }
.unit-list a:hover { border-color: var(--blue); }
.unit-list a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--card); }
.unit-list a[aria-current="page"] span { color: #DCE6F3; }
.unit-list b { font-variant-numeric: tabular-nums; }
.unit-list span { font-size: var(--fs-xs); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; }
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.pill.available { color: var(--ok); } .pill.reserved { color: var(--warn); } .pill.sold { color: var(--sold); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.two.later { margin-top: var(--s7); }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); } .two.later { margin-top: var(--s8); } }

/* Availability */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); margin-bottom: var(--s5); }
@media (min-width: 600px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpis div { background: var(--card); padding: var(--s4); display: flex; flex-direction: column; gap: 2px; }
.kpis b { font-family: var(--display); font-stretch: var(--narrow); font-size: var(--fs-h3); font-weight: 600; color: var(--deep); font-variant-numeric: tabular-nums; line-height: 1.05; }
.kpis span { font-size: var(--fs-xs); color: var(--muted); }
.avail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (min-width: 1200px) { .avail { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } }
.avail-main { min-width: 0; }
.controls { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; margin-bottom: var(--s4); }
.control { display: flex; align-items: center; gap: 10px; }
.control > span { font-size: var(--fs-sm); color: var(--muted); }
.seg { display: flex; }
.seg button { height: var(--tap); padding: 0 var(--s4); border: 1px solid var(--line-strong); background: var(--card); color: var(--deep); font-size: var(--fs-sm); font-weight: 500; }
.seg button + button { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--card); }
.keys { display: flex; flex-wrap: wrap; gap: 6px var(--s4); font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }
.keys i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.grid-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-strong); padding: var(--s2); }
.ugrid { display: grid; grid-template-columns: 54px repeat(6, minmax(0, 1fr)); gap: 3px; }
.ugrid .h { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); padding-bottom: var(--s1); text-align: center; }
.ugrid .h small { display: none; font-size: inherit; }
.ugrid .lv { font-size: var(--fs-sm); color: var(--deep); display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.ugrid .lv .long { display: none; }  /* full floor names and elevations from sm */
.ugrid .lv small { font-weight: 400; font-size: var(--fs-xs); color: var(--muted); font-family: var(--mono); }
.ugrid .span { grid-column: 2 / -1; min-height: var(--tap); display: flex; align-items: center; padding: var(--s2) var(--s3); background: var(--cell-none); font-size: var(--fs-sm); line-height: 1.35; }
@media (min-width: 600px) {
  .grid-wrap { padding: var(--s3); }
  .ugrid { grid-template-columns: 96px repeat(6, minmax(56px, 1fr)); gap: var(--s1); }
  .ugrid .h { text-align: left; }
  .ugrid .h small { display: inline; }
  .ugrid .lv .long { display: inline; }
  .ugrid .lv .short { display: none; }
}
.ugrid .span.ph { background: repeating-linear-gradient(135deg, #F2F4F6 0 8px, #FFFFFF 8px 16px); border: 1px dashed #B8C0CC; color: var(--muted); }
.cell { height: var(--tap); border: 1px solid transparent; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; }
.cell.b1 { background: var(--t1); color: var(--deep); }
.cell.b2 { background: var(--t2); color: var(--deep); }
.cell.b3 { background: var(--t3); color: #FFFFFF; }
.cell.s-available { background: var(--ok); color: #FFFFFF; }
.cell.s-reserved { background: var(--warn); color: #FFFFFF; }
.cell.s-sold { background: var(--cell-sold); color: #3F4859; text-decoration: line-through; }
.cell.s-none { background: var(--cell-none); color: var(--muted); }
.cell.dim { opacity: 0.22; }
.cell.on { outline: 3px solid var(--ink); outline-offset: -3px; box-shadow: inset 0 0 0 5px var(--card); }
.side { display: flex; flex-direction: column; }
@media (min-width: 1200px) { .side { position: sticky; top: calc(var(--header-h) + var(--s4) + env(safe-area-inset-top, 0px)); } }
.side img { cursor: zoom-in; }
.side .body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.side-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.side-head span { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.msg { padding: var(--s3) 14px; background: var(--skywash); font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }

/* Contact */
.contact-loc { display: flex; flex-direction: column; gap: var(--s4); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.form .full { grid-column: 1 / -1; }
.form-title h2 { margin-top: var(--s2); }
@media (min-width: 600px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--on-deep-muted); }
/* 16 px minimum in form fields stops Android and iOS from zooming in on focus */
.field input, .field select, .field textarea { min-height: 48px; padding: 10px var(--s3); font-size: max(16px, var(--fs-base)); background: var(--deep-2); border: 1px solid #5E7AA6; color: var(--on-deep); }
.field textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-out { grid-column: 1 / -1; padding: 14px var(--s4); border: 1px solid var(--deep-line); background: var(--deep-card); display: flex; flex-direction: column; gap: 10px; }
.form-out .line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-out code { font-family: var(--mono); font-size: var(--fs-sm); user-select: all; }
.form-out button { height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--on-deep-muted); background: transparent; color: var(--on-deep); font-size: var(--fs-sm); }
.form-err { color: #F3B4A4; font-size: var(--fs-sm); }
.btn-accent { background: var(--sky); border-color: var(--sky); color: var(--deep); }
.btn-accent:hover { background: var(--card); border-color: var(--card); color: var(--deep); }
.map { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 260px; border: 1px solid var(--deep-line); background: var(--deep-card); }
@media (min-width: 600px) { .map iframe { aspect-ratio: 16 / 9; } }
@media (min-width: 900px) { .map iframe { aspect-ratio: 4 / 3; } }

.foot { background: var(--deep-2); color: var(--on-deep-muted); font-size: var(--fs-sm); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); justify-content: space-between; padding-block: var(--s6); }
.foot b { color: var(--on-deep); font-family: var(--display); font-stretch: var(--narrow); font-weight: 700; font-size: var(--fs-lead); letter-spacing: 0.12em; }

/* Direct contact in the contact section: WhatsApp and Viber on the sales number */
.direct { display: flex; flex-direction: column; gap: var(--s3); }
.direct p { color: var(--on-deep-muted); }
.direct p b { color: var(--on-deep); font-weight: 700; white-space: nowrap; }
.direct .or { margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--deep-line); font-size: var(--fs-sm); }
.btn-wa { background: #25D366; border-color: #25D366; color: var(--deep); }                 /* dark text: 6.5:1 */
.btn-wa:hover { background: #4BE08A; border-color: #4BE08A; color: var(--deep); }
.btn-vb { background: #5B4FC4; border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }   /* white text: 6.3:1 */
.btn-vb:hover { background: #6C61D6; border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }

/* Finish — slight rounding, stronger lines around cards and pictures, clearer selected states */
.btn, .lang, .menu-btn, .chip, .seg, .cell, .field input, .field select, .field textarea, .form-out button,
.rooms li, .msg, .ugrid .span, .plan.bordered, .fact-icon { border-radius: var(--r-sm); }
.tag, .keys i, .band-btn.on { border-radius: 3px; }
.paper, .apt-card, .unit-list a, .type-card, .kpis, .stat-grid, .grid-wrap, .form-out, .map iframe, .render, .lightbox img { border-radius: var(--r-md); }
.lang, .seg, .paper, .type-card, .kpis, .stat-grid { overflow: hidden; }
.type-card .render { border-radius: 0; }

/* Pictures: thin frame and a soft shadow so they sit clearly on the page (the phone hero runs edge to edge) */
.split img, .gallery img, .apt-top > img { border-radius: var(--r-md); border: var(--img-frame); box-shadow: var(--shadow); }
@media (min-width: 900px) { .hero-img { border-radius: var(--r-md); border: var(--img-frame); box-shadow: var(--shadow); } }

/* Selected floor, apartment and unit: a sky ring around the blue fill */
.chip[aria-pressed="true"], .apt-card[aria-pressed="true"], .unit-list a[aria-current="page"] { box-shadow: 0 0 0 2px var(--sky); }
