/* OFOQ REAL ESTATE · "dusk over the valley". Mobile-first, RTL, logical properties. */
@view-transition { navigation: auto; }

:root {
  --ink: #13212C;
  --ink-2: #1C2F3D;
  --mist: #EEF1EF;
  --paper: #FFFFFF;
  --line: #D5DDDB;
  --slate: #51606A;
  --horizon: #23566B;
  --horizon-2: #1A4456;
  --dawn: #E6A55B;
  --dawn-2: #F2BE7C;
  --wa: #157A45;
  --danger: #A63A2B;
  --ok: #1D6B45;
  --f-display: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-text: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
  --r-photo: 14px;
  --r-ui: 10px;
  --shadow: 0 1px 2px rgb(19 33 44 / .06), 0 8px 24px -12px rgb(19 33 44 / .22);
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1rem/1.75 var(--f-text); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--horizon); text-underline-offset: .2em; }
a:hover { color: var(--horizon-2); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--horizon); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--dawn); color: var(--ink); padding: 10px 16px; border-radius: var(--r-ui); font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
bdi { unicode-bidi: isolate; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .65em 1.4em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--horizon); color: #fff; }
.btn-primary:hover { background: var(--horizon-2); color: #fff; }
.btn-dawn { background: var(--dawn); color: var(--ink); }
.btn-dawn:hover { background: var(--dawn-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--horizon); border-color: currentColor; }
.btn-ghost:hover { background: rgb(35 86 107 / .08); }
.btn-light { background: rgb(255 255 255 / .92); color: var(--ink); border-color: rgb(19 33 44 / .1); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #10603a; color: #fff; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(19 33 44 / .94); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .06); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.logo-mark { width: 40px; height: 40px; color: #fff; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-ar { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; }
.brand-en { font-size: .62rem; letter-spacing: .18em; opacity: .75; direction: ltr; text-align: end; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgb(255 255 255 / .08); border: 0; color: #fff; cursor: pointer; }
.nav-toggle .ic { width: 26px; height: 26px; }
.site-nav { position: absolute; inset-inline: 0; top: 100%; background: var(--ink); padding: 8px var(--gut) 20px; display: none; border-bottom: 1px solid rgb(255 255 255 / .08); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; color: rgb(255 255 255 / .86); text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .07); }
.site-nav li a:hover, .site-nav a[aria-current="page"] { color: var(--dawn-2); }
.site-header :focus-visible { outline-color: var(--dawn); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 20px; padding: 0; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 4px; margin: 0; }
  .site-nav li a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
}

/* ---------- hero: the horizon ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 70% at 30% 100%, rgb(230 165 91 / .35), transparent 60%),
  linear-gradient(180deg, #13212C 0%, #1C3344 45%, #2D4C5E 75%, #6B6A66 100%); }
.hero-grid { display: grid; gap: 8px; padding-block: 36px 110px; }
.hero-kicker { color: var(--dawn-2); font-size: .95rem; margin-bottom: .4em; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 4.4vw, 4.2rem); line-height: 1.25; margin-bottom: .35em; }
.hero-lead { color: rgb(255 255 255 / .84); font-size: 1.08rem; max-width: 34em; }
.hero-meta { color: rgb(255 255 255 / .7); font-size: .9rem; margin-top: 14px; }
.hero :focus-visible { outline-color: var(--dawn); }

.search { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 10px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .5); max-width: 560px; }
.seg { display: inline-flex; gap: 4px; border: 0; margin: 0 0 10px; padding: 4px; background: var(--mist); border-radius: 999px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: .45em 1.15em; border-radius: 999px; font-size: .95rem; min-height: 40px; display: flex; align-items: center; color: var(--slate); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--horizon); outline-offset: 1px; }
.search-fields { display: grid; gap: 8px; }
.sf { display: grid; gap: 2px; background: var(--mist); border-radius: var(--r-ui); padding: 6px 12px 4px; }
.sf > span { font-size: .78rem; color: var(--slate); }
.sf select { border: 0; background: transparent; padding: 2px 0 6px; min-height: 32px; cursor: pointer; }
.sf select:focus-visible { outline: none; }
.sf:focus-within { box-shadow: 0 0 0 2px var(--horizon); }
.search-btn { min-height: 52px; border-radius: 12px; }
@media (min-width: 560px) { .search-fields { grid-template-columns: 1fr 1fr auto; align-items: stretch; } }

.hero-land { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: clamp(170px, 24vw, 340px); z-index: -1; }
.hero-copy { position: relative; }
.hero-scene { position: relative; height: 330px; perspective: 1100px; }
.deck { position: absolute; inset-inline: 0; top: 18px; margin-inline: auto; width: min(78%, 360px); aspect-ratio: 4 / 3.3; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -10deg)); transition: transform .5s var(--ease); }
.deck-card { position: absolute; inset: 0; border-radius: var(--r-photo); overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 30px 50px -20px rgb(0 0 0 / .7); background: var(--ink-2); outline-offset: 4px; }
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-0 { transform: translate3d(22%, -10%, -140px) rotate(5deg); filter: brightness(.7); }
.deck-1 { transform: translate3d(-20%, -4%, -70px) rotate(-4deg); filter: brightness(.82); }
.deck-2 { transform: translate3d(0, 6%, 0); }
.deck-card:hover { color: #fff; }
.deck-card:focus-visible { outline: 3px solid var(--dawn); }
.deck-cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 8px; padding: 34px 14px 12px; background: linear-gradient(transparent, rgb(19 33 44 / .85)); font-size: .9rem; }
.deck-price { font-weight: 600; font-size: 1.05rem; }
.deck-price .per { font-weight: 400; font-size: .8rem; }
.deck-0 .deck-cap, .deck-1 .deck-cap { opacity: 0; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: min(80vh, 700px); padding-block: 40px clamp(150px, 15vw, 230px); }
  .hero-scene { height: 100%; min-height: 460px; }
  .deck { top: 13%; width: min(78%, 400px); }
}

/* the one orchestrated moment: sun rises, horizon draws, deck lifts */
@media (prefers-reduced-motion: no-preference) {
  .sun { animation: rise 1.6s var(--ease) both; }
  .horizon { transform-origin: 720px 250px; animation: draw 1.2s .2s var(--ease) both; }
  .lights circle { animation: twinkle 3s ease-in-out infinite alternate; }
  .lights circle:nth-child(3n) { animation-delay: -1.2s; } .lights circle:nth-child(4n) { animation-delay: -2s; }
  .deck { animation: lift 1.2s .35s var(--ease) both; }
  .hero-copy > * { animation: fadeUp .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
}
@keyframes rise { from { transform: translateY(70px); opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes twinkle { to { opacity: .25; } }
@keyframes lift { from { opacity: 0; translate: 0 50px; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 14px; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: .3em; font-weight: 500; text-decoration: none; min-height: 44px; }
.link-more:hover { text-decoration: underline; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border-radius: calc(var(--r-photo) + 4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-link { display: block; color: inherit; text-decoration: none; padding: 8px; border-radius: inherit; }
.card-link:hover { color: inherit; }
.card-link:hover .card-title { color: var(--horizon); }
.card-media { position: relative; border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 4 / 3; background: #cfd8d6; transform: perspective(900px) rotateX(var(--tx, 0)) rotateY(var(--ty, 0)); transition: transform .4s var(--ease); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.card-link:hover .card-media img { scale: 1.04; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: .2em .8em; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--paper); color: var(--ink); }
.badge-rent { background: var(--ink); color: #fff; }
.badge-reserved { inset-inline-start: auto; inset-inline-end: 10px; background: var(--dawn); color: var(--ink); }
.detail-tags .badge { position: static; }
.card-body { padding: 14px 8px 8px; }
.card-price { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 2px; color: var(--ink); }
.per { font-family: var(--f-text); font-weight: 400; font-size: .85rem; color: var(--slate); }
.card-title { font-family: var(--f-text); font-weight: 500; font-size: 1.02rem; margin: 0 0 6px; transition: color .2s; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--slate); font-size: .9rem; margin: 0 0 12px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--slate); }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs .ic { color: var(--horizon); }

/* ---------- areas: neighbourhoods as type ---------- */
.section-areas { background: var(--paper); }
.areas-grid { display: grid; gap: 28px; }
.areas-intro p { color: var(--slate); max-width: 30em; }
.areas-list { list-style: none; margin: 0; padding: 0; columns: 1; }
.areas-list li { break-inside: avoid; border-top: 1px solid var(--line); }
.areas-list a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 14px 4px; color: inherit; text-decoration: none; }
.area-name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; transition: color .2s; }
.area-note { grid-row: 2; color: var(--slate); font-size: .9rem; }
.area-count { grid-row: 1 / span 2; align-self: center; font-size: .85rem; color: var(--horizon); white-space: nowrap; }
.areas-list a:hover .area-name { color: var(--horizon); }
@media (min-width: 900px) {
  .areas-grid { grid-template-columns: 1fr 2fr; gap: 56px; }
  .areas-intro { position: sticky; top: 100px; align-self: start; }
  .areas-list { columns: 2; column-gap: 40px; }
}

/* ---------- process ---------- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 18px 56px 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--dawn-2); font-family: var(--f-display); font-weight: 700; }
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--slate); margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; border-top: 2px solid var(--ink); }
  .steps li::before { top: -20px; }
}

/* ---------- owner band ---------- */
.owner { background: var(--ink); color: #fff; padding-block: 48px; position: relative; overflow: hidden; }
.owner::after { content: ""; position: absolute; inset-inline-start: -10%; bottom: -160px; width: 420px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgb(230 165 91 / .35), transparent); pointer-events: none; }
.owner-in { display: grid; gap: 20px; align-items: center; position: relative; z-index: 1; }
.owner p { color: rgb(255 255 255 / .8); margin: 0; max-width: 38em; }
.owner :focus-visible { outline-color: var(--dawn); }
@media (min-width: 800px) { .owner-in { grid-template-columns: 1fr auto; } }

/* ---------- contact + forms ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.contact-info > p { color: var(--slate); }
.info-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ic { color: var(--horizon); margin-top: .3em; }
.info-list div { display: grid; }
.info-list strong { font-weight: 500; }
.info-list span { color: var(--slate); }
.panel { background: var(--paper); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.form-title { font-size: 1.25rem; margin-bottom: .2em; }
.form-sub { color: var(--slate); font-size: .95rem; }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea, .fgroup input, .fgroup select, .range-row input {
  width: 100%; min-height: 48px; padding: .6em .85em; border: 1.5px solid #B9C4C2; border-radius: var(--r-ui); background: var(--paper); transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .fgroup input:focus-visible, .fgroup select:focus-visible, .range-row input:focus-visible { outline: 2px solid var(--horizon); outline-offset: 0; border-color: var(--horizon); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.hint { font-size: .85rem; color: var(--slate); margin: 0; }
.err { font-size: .88rem; color: var(--danger); margin: 0; font-weight: 500; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .82rem; color: var(--slate); margin: 12px 0 0; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-ui); font-size: .95rem; }
.form-status:focus { outline: none; }
.form-status.ok { background: #E3F1E8; color: var(--ok); }
.form-status.err-box { background: #F8E7E3; color: var(--danger); }
.form-status.demo { background: #FBF0E1; color: #6B4413; }
.form-status p { margin: 0 0 10px; }
.form-status p:last-child { margin: 0; }
.form-status .btn { margin-top: 4px; }
.lead-form.sent .field, .lead-form.sent .field-row, .lead-form.sent button[type="submit"], .lead-form.sent .form-privacy { display: none; }

/* ---------- listing page ---------- */
.page-head { background: var(--paper); padding-block: 22px 28px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--slate); margin: 0; max-width: 46em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 12px; font-size: .88rem; color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-inline-end: 4px; color: #9AA7A5; }
.crumbs a { color: var(--slate); }
.crumbs [aria-current] { color: var(--ink); max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing { display: grid; gap: 20px; padding-block: 24px 64px; }
.filters-wrap { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); }
.filters-toggle { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; cursor: pointer; font-weight: 500; list-style: none; }
.filters-toggle::-webkit-details-marker { display: none; }
.filters-active { background: var(--horizon); color: #fff; border-radius: 999px; padding: 0 .6em; font-size: .8rem; min-width: 1.6em; text-align: center; }
.filters { display: grid; gap: 16px; padding: 4px 18px 20px; }
.flabel { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.flabel-note { font-weight: 400; color: var(--slate); font-size: .8rem; }
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-full { display: flex; width: 100%; margin: 0; flex-wrap: wrap; }
.seg-full .flabel { width: 100%; }
.seg-full label { flex: 1; text-align: center; }
.seg-full span { justify-content: center; }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row label { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 .9em; border-radius: 999px; border: 1.5px solid #B9C4C2; font-size: .92rem; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--horizon); outline-offset: 2px; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.js .nojs-only { display: none; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.count { margin: 0; font-weight: 500; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--slate); }
.sort select { min-height: 44px; border: 1.5px solid #B9C4C2; border-radius: var(--r-ui); padding: 0 .7em; background: var(--paper); color: var(--ink); }
.empty { text-align: center; background: var(--paper); border-radius: 16px; padding: 40px 20px; box-shadow: var(--shadow); }
.empty p { color: var(--slate); max-width: 34em; margin-inline: auto; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (min-width: 1000px) {
  .listing { grid-template-columns: 300px 1fr; align-items: start; gap: 32px; }
  .filters-wrap { position: sticky; top: 88px; }
  .filters-toggle { pointer-events: none; }
  .grid-results { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1240px) { .grid-results { grid-template-columns: repeat(3, 1fr); } }

/* ---------- detail page ---------- */
.detail { padding-block: 20px 40px; }
.detail-head { display: grid; gap: 12px; margin-bottom: 20px; }
.detail-head h1 { margin-bottom: .2em; }
.detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail-tags .badge { border: 1px solid var(--line); }
.ref { font-size: .88rem; color: var(--slate); }
.detail-loc { display: flex; align-items: center; gap: 6px; color: var(--slate); margin: 0; }
.price-big { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0; line-height: 1.3; }
.price-big .per { font-size: 1rem; }
.price-approx { color: var(--slate); margin: 0; font-size: .92rem; }
@media (min-width: 800px) { .detail-head { grid-template-columns: 1fr auto; align-items: end; } .detail-price { text-align: end; } }

.gallery { position: relative; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; }
.g-item { position: relative; padding: 0; border: 0; background: #cfd8d6; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.g-item:hover img { scale: 1.03; }
.g-item:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.g-item:nth-child(n+4):not(:first-child) { display: none; }
.g-item:focus-visible { outline: 3px solid var(--dawn); outline-offset: -3px; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(19 33 44 / .55); color: #fff; font-weight: 600; font-size: 1.1rem; }
.g-all { position: absolute; bottom: 12px; inset-inline-end: 12px; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: min(62vh, 540px); }
  .g-item, .g-item:first-child { aspect-ratio: auto; }
  .g-item:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .g-item:nth-child(n+4):not(:first-child) { display: block; }
  .g-2 .g-item:first-child { grid-column: 1 / span 2; }
  .g-3 .g-item:nth-child(n+2) { grid-column: 2 / span 2; }
  .g-4 .g-item:nth-child(4) { grid-column: 2 / span 2; }
}
.g-item[hidden] { display: none !important; }

.detail-grid { display: grid; gap: 28px; margin-top: 28px; }
.detail-main section { margin-bottom: 36px; }
.detail-main h2 { font-size: 1.3rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--slate); }
.facts dd { margin: 0; font-weight: 500; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } .facts div:nth-child(odd) { border-inline-end: 0; } .facts div:not(:nth-child(3n)) { border-inline-end: 1px solid var(--line); } }
.prose { max-width: 68ch; }
.prose p { font-size: 1.04rem; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; }
.features li { display: flex; align-items: center; gap: 8px; }
.features .ic { color: var(--wa); }
.loc-card { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); padding: 18px; border-radius: 14px; box-shadow: var(--shadow); }
.loc-mini { flex: none; width: 76px; height: 76px; border-radius: 12px; background: linear-gradient(180deg, #1C3344, #2D4C5E); display: grid; place-items: center; }
.loc-mark { width: 48px; height: 48px; color: #fff; }
.loc-name { font-weight: 600; margin-bottom: .2em; }
.loc-card .hint { margin-bottom: 12px; }
.quick { display: grid; gap: 8px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
  .detail-side { position: sticky; top: 88px; }
}
.similar { padding-block: 24px 0; }
.sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.page-detail .site-footer { padding-bottom: 84px; }
@media (min-width: 1000px) { .sticky-cta { display: none; } .page-detail .site-footer { padding-bottom: 0; } }

/* lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 18 24 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(10 18 24 / .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.lb-count { margin: 0; font-size: .95rem; }
.lb-fig { margin: 0; display: grid; place-items: center; padding: 0 8px 24px; min-height: 0; touch-action: pan-y; }
.lb-fig img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; border-radius: 8px; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / .22); }
.lb-btn:focus-visible { outline: 3px solid var(--dawn); }
.lb-btn .ic { width: 26px; height: 26px; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: 12px; } .lb-next { inset-inline-end: 12px; }

/* ---------- floating WhatsApp ---------- */
.fab-wa { position: fixed; z-index: 30; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); transition: transform .2s var(--ease); }
.fab-wa:hover { color: #fff; transform: scale(1.06); }
.fab-wa .ic { width: 30px; height: 30px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .8); padding-top: 48px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--dawn-2); }
.site-footer :focus-visible { outline-color: var(--dawn); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.brand-foot { margin-bottom: 12px; color: #fff; }
.foot-note { max-width: 28em; }
.foot-h { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer nav a { display: inline-block; padding: 6px 0; text-decoration: none; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.foot-contact .ic { color: var(--dawn); margin-top: .3em; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 18px; font-size: .85rem; }
.foot-bottom p { margin: 0 0 4px; }
.demo-note { color: var(--dawn-2); }

/* ---------- misc pages ---------- */
.prose-page { padding-block: 24px 64px; }
.prose-page h2 { font-size: 1.2rem; margin-top: 1.4em; }
.nf { text-align: center; padding-block: 72px; }
.nf-code { font-family: var(--f-display); font-weight: 800; font-size: 5rem; line-height: 1; color: var(--horizon); margin-bottom: 8px; }
.nf p { color: var(--slate); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
