/* Public website — Afaq Al-Abraj. Logical properties throughout so layout is native RTL. */

.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: .75rem; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.65); }

/* ---------- Type ---------- */
.h1, .h2, .h3, h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: 0; }
.h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); position: relative; padding-block-end: .6rem; margin-block-end: 1.5rem; }
.h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 3.5rem; height: 3px; background: linear-gradient(to left, var(--gold-light), var(--gold)); }
.h2--light { color: #fff; }
.h3 { font-size: 1.15rem; margin-block-end: .75rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin: .25rem 0 0; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1rem; }
.note { font-size: .875rem; color: var(--muted); margin: .75rem 0 0; }
.stamp { font-size: .8rem; color: var(--muted); margin: .25rem 0 0; display: block; }
.na { color: var(--faint); font-size: .9em; }
.pre { white-space: pre-line; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--navy); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.2rem; border: 1px solid var(--bd); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { filter: brightness(1.08); }
.btn--sm { min-height: 38px; padding: .35rem .9rem; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: .75rem 1.6rem; font-size: 1.05rem; }
.btn--navy { --bg: var(--navy); }
.btn--gold { --bg: var(--gold); --fg: var(--navy-deep); }
.btn--wa { --bg: var(--wa); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--navy); filter: none; }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }
.btn--ghost-light:hover { --bd: #fff; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-col { display: grid; gap: .6rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; }
.icon-btn--wa { color: var(--wa); }
.icon-btn--light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.link-arrow:hover { border-bottom-color: var(--gold); }
.link-arrow .icon { color: var(--gold-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand img { height: 70px; width: auto; }
.nav { display: flex; gap: .25rem; margin-inline-start: auto; }
.nav a { padding: .5rem .85rem; text-decoration: none; font-weight: 500; color: var(--muted); border-radius: var(--r-sm); position: relative; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: .85rem; bottom: .2rem; height: 2px; background: var(--gold); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 44px; height: 44px; place-items: center; color: var(--navy); cursor: pointer; }
.preview-bar { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #EBD3A3; padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; font-size: .9rem; }
.preview-bar a { font-weight: 700; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.hero::before { /* the logo's parallel tower strokes, as a quiet texture */
  content: ""; position: absolute; inset: 0; opacity: .05;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 22px); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; padding-block: clamp(3rem, 7vw, 6rem) 2.5rem; }
.hero__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.3; color: #fff; }
.hero__sub { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 46ch; margin: 1.25rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__visual { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; min-height: 260px; margin-bottom: -1px; }
.hero__frame { margin: 0; width: 100%; border: 1px solid rgba(191,159,102,.5); padding: .6rem; }
.hero__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.towers-svg { width: 100%; max-width: 420px; height: auto; display: block; }
.towers-svg .t { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s cubic-bezier(.3,.6,.2,1) forwards; }
.towers-svg .t2 { animation-delay: .15s; } .towers-svg .t3 { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__index { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.hero__index a { display: grid; gap: .1rem; padding: 1.1rem 0 1.4rem; padding-inline-end: 1.5rem; text-decoration: none; border-inline-start: 0; }
.hero__index a + a { padding-inline-start: 1.5rem; border-inline-start: 1px solid rgba(255,255,255,.18); }
.hero__index-name { font-family: var(--font-display); font-weight: 700; color: #fff; }
.hero__index-loc { font-size: .85rem; color: var(--gold-light); }
.hero__index a:hover .hero__index-name { color: var(--gold-light); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--line { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-block-end: 1.5rem; }
.section-head .h2 { margin: 0; }
.compare-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.compare-cta .h2 { margin-block-end: .75rem; }
.about__in { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.band { background: var(--navy); color: #fff; padding-block: 3rem; }
.band__in { display: grid; gap: .5rem; justify-items: start; }
.band__in p { margin: 0 0 1rem; color: rgba(255,255,255,.75); }
.band__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Placeholders (no fabricated imagery) ---------- */
.ph { position: relative; display: grid; place-items: end center; width: 100%; height: 100%; min-height: 180px; background: #E9EBF0; color: var(--muted); overflow: hidden; }
.ph__lines { position: absolute; inset: 18% 0 22%; background: url("../img/tower.png") center / contain no-repeat; opacity: .22; }
.ph__text { position: relative; margin-top: auto; align-self: end; margin-bottom: 1rem; text-decoration: none; background: rgba(255,255,255,.88); padding: .25rem .75rem; font-size: .85rem; border-radius: var(--r-sm); }
.ph--wide { min-height: clamp(200px, 30vw, 360px); }
.ph--thumb { min-height: 90px; height: 90px; }

/* ---------- Project cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.pcard__media { text-decoration: none; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #E9EBF0; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.pcard__loc { margin: 0; font-size: .875rem; color: var(--gold-ink); display: flex; align-items: center; gap: .3rem; }
.pcard__title { font-size: 1.25rem; }
.pcard__title a { text-decoration: none; }
.pcard__title a:hover { color: var(--navy-soft); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.pcard__sum { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__facts { margin: .25rem 0 0; display: grid; gap: .25rem; font-size: .9rem; }
.pcard__facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-block: .2rem; }
.pcard__facts dt { color: var(--muted); }
.pcard__facts dd { margin: 0; font-weight: 600; text-align: end; }
.pcard__actions { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.chip { display: inline-block; font-size: .8rem; padding: .1rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: var(--paper); }
.chip--light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.cmp-toggle { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted); cursor: pointer; user-select: none; }
.cmp-toggle input { width: 18px; height: 18px; accent-color: var(--navy); }
.cmp-toggle--light { color: #fff; }
.cmp-toggle--light input { accent-color: var(--gold); }

/* ---------- Page head / breadcrumbs ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 1.5rem 2rem; margin-block-end: 2rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); margin-block-end: .75rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: .9em; height: .9em; opacity: .6; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); margin-block-end: 1.5rem; }
.filters label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.filters select, .inline-filter select { min-height: 40px; min-width: 150px; padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.filters__btns { display: flex; gap: .5rem; }
.empty { padding: 3rem 1.5rem; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); display: grid; gap: 1rem; justify-items: center; }
.empty p { margin: 0; }
.empty--left { text-align: start; justify-items: start; }

/* ---------- Project page ---------- */
.phead { background: var(--navy-deep); color: #fff; padding-block: 1.5rem 2rem; }
.phead .crumbs { color: rgba(255,255,255,.65); }
.phead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.phead__loc { margin: .4rem 0 .6rem; color: var(--gold-light); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.phead__loc a { color: #fff; }
.phead__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.pcover { background: linear-gradient(var(--navy-deep) 50%, var(--paper) 50%); }
.pcover__img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.pcover__img img { width: 100%; max-height: 560px; aspect-ratio: 16 / 8; object-fit: cover; }
.pcover__count { position: absolute; inset-inline-end: 1rem; bottom: 1rem; background: rgba(31,32,53,.85); color: #fff; padding: .3rem .75rem; border-radius: var(--r-sm); font-size: .85rem; display: inline-flex; gap: .35rem; align-items: center; }
.snav { position: sticky; top: 84px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); margin-block-start: 1.5rem; }
.snav__in { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.snav__in::-webkit-scrollbar { display: none; }
.snav a { white-space: nowrap; padding: .75rem .9rem; text-decoration: none; color: var(--muted); font-size: .9rem; border-bottom: 2px solid transparent; }
.snav a:hover, .snav a.is-on { color: var(--navy); border-bottom-color: var(--gold); }
.pbody { padding-block: 1rem 3rem; }
.psec { padding-block: 2.25rem; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.psec:last-child { border-bottom: 0; }
.overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); padding: .5rem 1.25rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: end; }
.facts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 2rem; }
.facts--grid div { border-bottom: 1px solid var(--line) !important; }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-end: 1rem; }
.tab { border: 1px solid var(--line-strong); background: var(--surface); padding: .35rem .9rem; border-radius: 999px; cursor: pointer; font-size: .875rem; color: var(--muted); }
.tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; }
.gallery li { position: relative; }
.gallery button { display: block; padding: 0; border: 0; width: 100%; cursor: zoom-in; background: #E9EBF0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__cap { display: block; font-size: .85rem; color: var(--muted); padding-top: .3rem; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .6rem 1.5rem; }
.ticks li { display: flex; gap: .5rem; align-items: flex-start; }
.ticks .icon { color: var(--gold-ink); margin-top: .3rem; }
.ticks--sm { grid-template-columns: 1fr; font-size: .9rem; gap: .3rem; }

.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.type { background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.type header { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.type h3 { font-size: 1.1rem; }
.type p { margin: 0; color: var(--muted); }
.type footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: .75rem; display: grid; gap: .4rem; }
.specline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; }
.specline li { display: inline-flex; align-items: center; gap: .3rem; }
.specline .icon { color: var(--gold-ink); }
.price { margin: 0; display: flex; align-items: baseline; gap: .5rem; }
.price span { color: var(--muted); font-size: .9rem; }
.price strong { font-size: 1.2rem; color: var(--navy); }

.units-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; margin-block-end: 1rem; }
.units-head p { margin: 0; }
.inline-filter { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--muted); }
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; }
.units th, .units td { padding: .7rem .9rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.units thead th { font-size: .82rem; color: var(--muted); font-weight: 600; background: var(--paper); }
.units tbody th a { font-weight: 700; color: var(--navy); }
.units tbody tr:hover { background: #FAFAFC; }
.units__act { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; }
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge--available { background: var(--ok-bg); color: var(--ok); }
.badge--reserved { background: var(--warn-bg); color: var(--warn); }
.badge--sold { background: #ECEDF1; color: var(--muted); }
.badge--unavailable { background: #ECEDF1; color: var(--muted); }

.docgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.docgrid a { display: grid; gap: .5rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: .6rem; height: 100%; }
.docgrid a:hover { border-color: var(--gold); }
.docgrid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.docgrid__icon { display: grid; place-items: center; aspect-ratio: 1; background: var(--paper); color: var(--navy); }
.docgrid__icon .icon { width: 3rem; height: 3rem; stroke-width: 1.2; }
.docgrid__icon small { font-weight: 700; color: var(--gold-ink); }
.docgrid__title { font-size: .9rem; font-weight: 600; }

.spec-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1.5rem 2.5rem; }
.spec-group h3 { font-size: 1rem; color: var(--gold-ink); margin-bottom: .4rem; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 1rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; }
.amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .75rem; }
.amen li { background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); padding: .75rem 1rem; display: grid; }
.amen span { color: var(--muted); font-size: .9rem; }

.warranties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.warranty { background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; }
.warranty h3 { font-size: 1.05rem; display: flex; gap: .4rem; align-items: center; }
.warranty h3 .icon { color: var(--gold-ink); }
.warranty p { margin: .5rem 0 0; }
.warranty__dur { font-weight: 700; color: var(--navy); }
.warranty details { margin-top: .75rem; font-size: .9rem; }
.warranty summary { cursor: pointer; color: var(--navy); font-weight: 600; }

.doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.doclist li { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); padding: .75rem 1rem; }
.doclist__icon { color: var(--navy); }
.doclist__icon .icon { width: 1.8rem; height: 1.8rem; stroke-width: 1.3; }
.doclist__main { display: grid; flex: 1; }
.doclist__main small { color: var(--muted); }

.location { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; align-items: start; }
.location__info p { display: flex; gap: .4rem; align-items: flex-start; margin: 0 0 1rem; }
.map { aspect-ratio: 16 / 10; background: #E3E6EE; border: 1px solid var(--line); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; gap: .3rem; justify-items: center; background: repeating-linear-gradient(45deg, #E3E6EE 0 12px, #E8EAF1 12px 24px); border: 0; cursor: pointer; font-weight: 600; color: var(--navy); }
.map__load small { font-weight: 400; color: var(--muted); }

.pcontact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.pcontact__direct p { margin: 0 0 1rem; color: var(--muted); max-width: 46ch; }

/* ---------- Inquiry form ---------- */
.inq { background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; display: grid; gap: .9rem; }
.inq h3, .inq .h3 { margin: 0; font-size: 1.05rem; }
.field { display: grid; gap: .3rem; margin: 0; border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: .9rem; padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: var(--focus); }
.field--inline { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.field--inline legend { margin-bottom: .3rem; width: 100%; }
.field--inline label { font-weight: 400; display: inline-flex; gap: .35rem; align-items: center; }
.field__err { color: var(--bad); font-size: .85rem; margin: 0; min-height: 0; }
.field__err:empty { display: none; }
.opt { font-weight: 400; color: var(--faint); }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .35rem; accent-color: var(--navy); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq__status { margin: 0; font-weight: 600; }
.inq__status.is-ok { color: var(--ok); }
.inq__status.is-err { color: var(--bad); }

/* ---------- Unit page / contact page ---------- */
.unit-page, .contact-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; padding-block-end: 3rem; }
.unit-page__main .h3 { margin-top: 2rem; }
.unit-page__side { display: grid; gap: 1rem; position: sticky; top: 90px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.25rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.contact-list li, .contact-list a { display: inline-flex; gap: .45rem; align-items: center; text-decoration: none; }
.contact-list--dark { margin-top: 1.5rem; color: var(--muted); }

/* ---------- Comparison ---------- */
.compare-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.25rem; margin-block-end: 1.5rem; }
.compare-pick fieldset { border: 0; padding: 0; margin: 0; flex: 1; }
.compare-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.compare-pick__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .85rem; cursor: pointer; font-size: .9rem; }
.pick:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.pick input { accent-color: var(--gold); }
.cmp-wrap { margin-block-end: .5rem; }
.cmp { table-layout: fixed; min-width: calc(160px + var(--cols, 3) * 220px); }
.cmp th, .cmp td { padding: .8rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.cmp tbody th { width: 160px; color: var(--muted); font-weight: 600; font-size: .9rem; background: var(--paper); position: sticky; inset-inline-start: 0; z-index: 1; }
.cmp thead th { font-family: var(--font-display); font-size: 1rem; }
.cmp thead th img, .cmp thead .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: .5rem; height: auto; }
.cmp thead th a { text-decoration: none; color: var(--navy); }
.cmp thead td { width: 160px; background: var(--paper); position: sticky; inset-inline-start: 0; }
.cell-list { margin: 0; padding-inline-start: 1.1rem; font-size: .92rem; }
.cmp__cta td { display: table-cell; }
.cmp__cta .btn { margin: 0 0 .4rem; }

/* ---------- Compare tray ---------- */
.compare-tray { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--navy-deep); color: #fff; border-top: 2px solid var(--gold); }
.compare-tray__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .7rem; }
.compare-tray__label { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.compare-tray__actions { display: flex; gap: .5rem; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,16,28,.96); color: #fff; }
.lightbox::backdrop { background: rgba(15,16,28,.9); }
.lightbox__top { position: absolute; inset-inline: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; z-index: 2; }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 4rem 4.5rem 3rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; }
.lightbox figcaption { margin-top: .75rem; color: rgba(255,255,255,.8); text-align: center; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__prev { inset-inline-start: 1rem; transform: scaleX(-1); }
.lightbox__next { inset-inline-end: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding-block: 3rem 2rem; }
.site-footer__brand img { height: 110px; width: auto; }
.site-footer__brand p { margin: 1rem 0 0; font-size: .9rem; max-width: 36ch; }
.site-footer h2 { font-size: .95rem; color: var(--gold-light); margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.1rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.contact-bar { display: none; }

.consent { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 60; max-width: 520px; background: var(--navy-deep); color: #fff; padding: 1rem 1.25rem; border: 1px solid var(--gold); display: grid; gap: .75rem; }
.consent p { margin: 0; font-size: .92rem; }

/* ---------- Error ---------- */
.errpage { padding-block: 5rem; }
.errpage__in { display: grid; gap: 1rem; justify-items: start; }
.errpage__code { margin: 0; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .overview, .location, .pcontact__grid, .unit-page, .contact-page { grid-template-columns: 1fr; }
  .unit-page__side { position: static; }
  .about__in { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { min-height: 0; }
  .towers-svg { max-width: 260px; margin-inline: auto; }
  .hide-sm { display: none; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 700px) {
  body { padding-bottom: 64px; }
  .contact-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .compare-tray { bottom: 60px; }
  .header-actions .btn--wa span { display: none; }
  .header-actions .btn--wa { padding: .35rem .6rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__index { grid-template-columns: 1fr; }
  .hero__index a + a { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .hero__index a { padding: .9rem 0; }
  .phead__cta .btn { flex: 1; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { padding: .9rem; }
  .filters label { flex: 1 1 140px; }
  .filters select { min-width: 0; width: 100%; }
  /* units table → stacked cards */
  .table-wrap:has(.units) { background: none; border: 0; overflow: visible; }
  .units thead { display: none; }
  .units, .units tbody, .units tr, .units th, .units td { display: block; }
  .units tr { background: var(--surface); border: 1px solid var(--line); margin-bottom: .75rem; padding: .5rem 1rem; }
  .units tbody th, .units td { border: 0; padding: .3rem 0; white-space: normal; display: flex; justify-content: space-between; gap: 1rem; }
  .units td::before, .units tbody th::before { content: attr(data-label); color: var(--muted); font-weight: 400; font-size: .85rem; }
  .units__act { justify-content: flex-start !important; padding-top: .5rem !important; border-top: 1px solid var(--line) !important; margin-top: .3rem; }
  .units__act::before { display: none; }
  .lightbox figure { padding: 4rem .5rem 4.5rem; }
  .lightbox__nav { top: auto; bottom: 1rem; translate: none; }
  .spec div { grid-template-columns: 1fr; gap: 0; }
}
@media print {
  .site-header, .contact-bar, .compare-tray, .snav, .phead__cta, .site-footer, .pcontact { display: none !important; }
  body { background: #fff; }
}
