/* =========================================================
   Velmora Estates — stylesheet
   ========================================================= */
:root {
  --ink: #0f1c2e;
  --ink-2: #182a42;
  --gold: #c8a45c;
  --gold-d: #a98640;
  --gold-soft: #f3ead7;
  --bg: #fbfaf7;
  --cream: #f4efe6;
  --card: #ffffff;
  --line: #e8e2d6;
  --text: #1b2433;
  --muted: #6b7180;
  --ok: #2e8b57;
  --danger: #c0303b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(15, 28, 46, .35);
  --shadow-lg: 0 30px 60px -30px rgba(15, 28, 46, .45);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --header-h: 84px;
  color-scheme: light;
}
html[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: inherit; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 40px); }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }
.i { flex-shrink: 0; }
[dir="rtl"] .i-arrow, [dir="rtl"] .i-chevron { transform: scaleX(-1); }
[hidden] { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.light { color: #e9cf96; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d6b574; box-shadow: 0 12px 24px -12px var(--gold); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-d); }
.link-arrow .i { transition: transform .25s; }
.link-arrow:hover .i { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .i { transform: scaleX(-1) translateX(4px); }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; min-width: 42px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; cursor: pointer;
  font-size: 13px; font-weight: 700; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--gold); }
.badge-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 11px; line-height: 18px; text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; transition: background .3s, color .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled, .solid-header .site-header, .site-header.menu-open {
  background: rgba(255,255,255,.96); color: var(--ink); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line); --header-h: 74px;
}
.site-header.scrolled .icon-btn, .solid-header .site-header .icon-btn, .site-header.menu-open .icon-btn { border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand-mark { width: 40px; height: 40px; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: "Playfair Display", serif; font-size: 21px; font-weight: 600; letter-spacing: .2em; }
.brand-text small { margin-top: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .5em; color: var(--gold); }
html[lang="ar"] .brand-text strong { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 700; letter-spacing: 0; font-size: 20px; }
html[lang="ar"] .brand-text small { letter-spacing: .05em; font-size: 12px; margin-top: 2px; }
.brand-light { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { position: relative; font-weight: 600; font-size: 15px; opacity: .88; transition: opacity .2s; }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -8px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s;
}
.main-nav a.active::after, .main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn, .only-mobile { display: none !important; }

/* Language menu */
.lang { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 180px; margin: 0; padding: 6px;
  list-style: none; background: #fff; color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
  border: 0; border-radius: 10px; background: none; cursor: pointer; font-weight: 600; text-align: start;
}
.lang-menu button:hover { background: var(--cream); }
.lang-menu button.active { color: var(--gold-d); }
.lang-menu small { color: var(--muted); font-size: 11px; font-weight: 800; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 56px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: zoom 20s ease-out both; }
@keyframes zoom { from { transform: scale(1.12); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,18,32,.55) 0%, rgba(10,18,32,.25) 40%, rgba(10,18,32,.85) 100%);
}
.hero-content { max-width: 1240px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); max-width: 880px; font-weight: 600; }
.hero-lead { font-size: clamp(16px, 1.6vw, 20px); max-width: 620px; opacity: .88; }

.search-box {
  margin-top: 34px; max-width: 980px; background: #fff; color: var(--text);
  border-radius: 20px; padding: 8px; box-shadow: var(--shadow-lg);
}
.search-tabs { display: flex; gap: 4px; padding: 6px 6px 10px; }
.search-tabs button {
  border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted);
}
.search-tabs button.active { background: var(--ink); color: #fff; }
.search-fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; align-items: stretch; }
.search-fields .field { padding: 10px 16px; border-radius: 14px; background: var(--bg); }
.search-submit { border-radius: 14px; padding-inline: 30px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 48px; list-style: none; padding: 0; margin: 44px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--gold); line-height: 1.1; }
.hero-stats span { font-size: 14px; opacity: .8; }

.page-hero { min-height: 440px; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 56px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.page-hero p { max-width: 640px; opacity: .88; font-size: 18px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 18px; opacity: .85; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb.dark { color: var(--muted); opacity: 1; }
.breadcrumb.dark span:last-child { color: var(--text); font-weight: 600; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .field > span:first-child { letter-spacing: 0; font-size: 13px; }
.field select, .field input, .field textarea {
  width: 100%; border: 0; background: transparent; font-weight: 600; font-size: 15px; outline: none; padding: 2px 0;
}
.field select { cursor: pointer; }

input:not([type=checkbox]):not([type=range]), textarea, select { accent-color: var(--gold); }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea,
.enquiry input, .enquiry textarea, .calc .field input {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 12px 14px; font-weight: 500; transition: border-color .2s, box-shadow .2s;
}
.contact-form .field input:focus, .contact-form .field select:focus, .contact-form .field textarea:focus,
.enquiry input:focus, .enquiry textarea:focus, .calc .field input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,164,92,.15); outline: none;
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; }
.form-ok { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ok); font-weight: 700; }
.form-ok.big { padding: 18px; border-radius: 12px; background: #eaf6ef; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); max-width: 720px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 620px; }
.section-head.center { text-align: center; }
.section-head.center h2, .section-head.center p { margin-inline: auto; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.split h2 { margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* Intro / story */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-media { position: relative; }
.intro-media > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; }
.intro-badge {
  position: absolute; bottom: 32px; inset-inline-end: -28px; width: 180px; padding: 22px;
  background: var(--ink); color: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.intro-badge strong { display: block; font-family: var(--font-display); font-size: 52px; color: var(--gold); line-height: 1; }
.intro-badge span { font-size: 14px; opacity: .85; }
.intro-media.stack { display: grid; grid-template-columns: 1fr .75fr; gap: 18px; align-items: end; }
.intro-media.stack img { width: 100%; object-fit: cover; border-radius: 20px; }
.intro-media.stack img:first-child { aspect-ratio: 3/4; }
.intro-media.stack img:last-child { aspect-ratio: 3/4; margin-bottom: -60px; }
.intro-copy h2 { font-size: clamp(30px, 3.6vw, 46px); }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-d); font-size: 13px; font-weight: 800;
}
.founder-quote { margin: 28px 0 0; padding: 24px 28px; border-inline-start: 3px solid var(--gold); background: var(--cream); border-radius: 0 14px 14px 0; }
[dir="rtl"] .founder-quote { border-radius: 14px 0 0 14px; }
.founder-quote p { font-family: var(--font-display); font-size: 20px; font-style: italic; margin-bottom: 8px; }
html[lang="ar"] .founder-quote p { font-style: normal; }
.founder-quote cite { font-style: normal; font-weight: 700; color: var(--gold-d); font-size: 14px; }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prop-card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.prop-card:hover .prop-media img { transform: scale(1.06); }
.tags { position: absolute; top: 16px; inset-inline-start: 16px; display: flex; gap: 6px; }
.tags.static { position: static; margin-bottom: 14px; }
.tag {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: #fff; color: var(--ink);
}
.tag-sale { background: var(--ink); color: #fff; }
.tag-rent { background: var(--gold); color: var(--ink); }
.tag-featured { background: rgba(255,255,255,.92); }
.tag-type { background: var(--cream); }
.fav-btn {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: rgba(255,255,255,.92); color: var(--ink);
  cursor: pointer; transition: transform .2s, color .2s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active, .fav-toggle.active { color: #d64550; }
.fav-btn.active .i, .fav-toggle.active .i { fill: currentColor; }
.prop-body { padding: 22px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.prop-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.prop-type { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
html[lang="ar"] .prop-type { letter-spacing: 0; font-size: 13px; }
.prop-price { font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.prop-body h3 { font-size: 21px; margin-bottom: 6px; }
.prop-body h3 a:hover { color: var(--gold-d); }
.prop-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.prop-specs {
  display: flex; gap: 18px; list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 700;
}
.prop-specs li { display: flex; align-items: center; gap: 6px; }
.prop-specs .i { color: var(--gold-d); }
.prop-specs span { font-weight: 500; color: var(--muted); }

/* ---------- Areas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 20px; }
.area-card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.area-card.area-wide { grid-column: span 2; grid-row: span 2; }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.area-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(10,18,32,.85)); }
.area-card:hover img { transform: scale(1.07); }
.area-info { position: absolute; bottom: 22px; inset-inline-start: 22px; display: flex; flex-direction: column; }
.area-info strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.area-wide .area-info strong { font-size: 34px; }
.area-info small { opacity: .8; font-size: 14px; }
.area-go {
  position: absolute; bottom: 22px; inset-inline-end: 22px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--ink);
  transform: scale(.6); opacity: 0; transition: .3s;
}
.area-card:hover .area-go { transform: none; opacity: 1; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  display: flex; flex-direction: column; padding: 34px 28px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); transition: background .3s, border-color .3s;
}
.service:hover { background: rgba(255,255,255,.06); border-color: rgba(200,164,92,.5); }
.service-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px;
  background: rgba(200,164,92,.14); color: var(--gold);
}
.service h3 { font-size: 22px; }
.service p { color: rgba(255,255,255,.7); flex: 1; }
.section-dark .link-arrow { color: var(--gold); }

/* ---------- Agents ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.agent-grid.three { grid-template-columns: repeat(3, 1fr); }
.agent-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.agent-photo { aspect-ratio: 4/4.4; overflow: hidden; background: var(--cream); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; filter: grayscale(.15); }
.agent-card:hover .agent-photo img { transform: scale(1.05); filter: none; }
.agent-body { padding: 20px 22px 22px; }
.agent-body h3 { font-size: 20px; margin-bottom: 2px; }
.agent-body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.agent-links { display: flex; align-items: center; gap: 8px; }
.agent-links a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: .2s;
}
.agent-links a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.agent-langs { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: var(--gold-d); letter-spacing: .08em; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; padding: 34px; background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); }
.stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 18px; }
.review blockquote { margin: 0 0 24px; font-size: 17px; flex: 1; }
.review figcaption { display: flex; flex-direction: column; padding-top: 18px; border-top: 1px solid var(--line); }
.review figcaption span { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta-banner { position: relative; border-radius: 26px; overflow: hidden; color: #fff; isolation: isolate; }
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,18,32,.92) 0%, rgba(10,18,32,.55) 60%, rgba(10,18,32,.2)); }
[dir="rtl"] .cta-banner::after { background: linear-gradient(-90deg, rgba(10,18,32,.92) 0%, rgba(10,18,32,.55) 60%, rgba(10,18,32,.2)); }
.cta-inner { padding: clamp(40px, 7vw, 90px); max-width: 680px; }
.cta-inner h2 { font-size: clamp(30px, 4vw, 48px); }
.cta-inner p { opacity: .85; font-size: 18px; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 40px 48px; border-radius: 22px; background: var(--ink); color: #fff;
  background-image: radial-gradient(circle at 100% 0%, rgba(200,164,92,.25), transparent 50%);
}
.cta-strip h3 { font-size: 28px; margin-bottom: 6px; }
.cta-strip p { margin: 0; opacity: .75; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 70px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(38px, 5vw, 56px); color: var(--gold); line-height: 1.1; font-weight: 600; }
.stats span { opacity: .75; }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.value:hover { border-color: var(--gold); transform: translateY(-4px); }
.value-num { display: block; font-family: var(--font-display); font-size: 40px; color: var(--gold); margin-bottom: 12px; line-height: 1; }
.value h3 { font-size: 21px; }
.value p { color: var(--muted); margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 58px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 32px; padding: 0 0 40px; }
.timeline li::before {
  content: ""; position: absolute; top: 8px; inset-inline-start: 52px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px var(--cream);
}
.timeline .year { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--gold-d); padding-inline-end: 44px; }
.timeline h3 { font-size: 22px; margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Listings ---------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin-top: -100px; position: relative; z-index: 2;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
}
.filters .field { flex: 1 1 120px; padding: 8px 14px; border-radius: 12px; background: var(--bg); }
.filters .search-field { flex: 1.6 1 190px; flex-direction: row; align-items: center; gap: 8px; }
.filters .search-field .i { color: var(--muted); }
.seg { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 12px; }
.seg button { border: 0; background: none; padding: 12px 16px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--ink); color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 36px 0 24px; }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--text); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 700; color: var(--text); cursor: pointer; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; }
.empty.tall { padding: 120px 20px; }
.empty .i { color: var(--gold); margin-bottom: 14px; }
.empty h1, .empty h3 { color: var(--text); font-size: 28px; }

/* ---------- Property page ---------- */
.property-page { padding-top: calc(var(--header-h) + 32px); }
.prop-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 28px; }
.prop-header h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px; }
.prop-header .prop-loc { margin: 0; font-size: 15px; }
.prop-header-side { text-align: end; }
.big-price { display: block; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.prop-actions { display: flex; gap: 8px; justify-content: flex-end; }
.prop-actions .btn { padding: 10px 18px; font-size: 14px; }

.gallery { position: relative; display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; border-radius: 22px; overflow: hidden; }
.gallery-3 { grid-template-columns: 2fr 1fr; }
.gallery-4 .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--cream); }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-more {
  position: absolute; bottom: 18px; inset-inline-end: 18px; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow);
}

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; margin: 44px 0 90px; align-items: start; }
.key-facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0 0 12px; }
.key-facts li {
  flex: 1 1 120px; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.key-facts .i { color: var(--gold-d); margin-bottom: 6px; }
.key-facts strong { font-size: 20px; }
.key-facts span { font-size: 13px; color: var(--muted); }
.block { padding: 36px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 26px; margin-bottom: 18px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 700; text-align: end; }
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.amenities li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.amenities .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-d); }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.calc-inputs { display: grid; gap: 22px; align-content: start; }
.range { display: grid; gap: 10px; }
.range > span { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.range output { color: var(--gold-d); font-weight: 800; }
.range input { width: 100%; accent-color: var(--gold); }
.calc .field > span:first-child { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.calc-result { padding: 28px; border-radius: 18px; background: var(--ink); color: #fff; }
.calc-result > span { opacity: .7; font-size: 14px; }
.calc-result > strong { display: block; font-family: var(--font-display); font-size: 36px; color: var(--gold); margin: 4px 0 18px; font-weight: 600; }
.calc-result dl { margin: 0 0 16px; display: grid; gap: 8px; }
.calc-result dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.calc-result dt { opacity: .7; }
.calc-result dd { margin: 0; font-weight: 700; }
.calc-result small { opacity: .55; font-size: 12px; }

.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map iframe, .map-full iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-full iframe { height: 440px; filter: grayscale(.4) contrast(1.05); }

.prop-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.agent-box { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.agent-head { display: flex; gap: 16px; align-items: center; }
.agent-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.agent-head small { color: var(--gold-d); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.agent-head strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.agent-head span { color: var(--muted); font-size: 14px; }
.agent-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 16px 0; }
.agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.agent-actions .btn { padding: 12px; font-size: 14px; }
.enquiry { display: grid; gap: 10px; margin-top: 22px; }
.enquiry h3 { font-size: 20px; margin: 0 0 4px; }
.enquiry textarea { resize: vertical; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,20,.94); display: grid; place-items: center; }
.lightbox img { max-width: min(1400px, 90vw); max-height: 84vh; border-radius: 12px; object-fit: contain; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.15); }
.lb-close { top: 24px; inset-inline-end: 24px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 24px; }
.lb-next { inset-inline-end: 24px; }
.lb-prev .i-chevron { transform: scaleX(-1); }
[dir="rtl"] .lb-prev .i-chevron { transform: none; }
.lb-count { position: absolute; bottom: 24px; color: rgba(255,255,255,.75); font-weight: 700; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); z-index: 300;
  padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700;
  opacity: 0; transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.contact-form-wrap h2 { font-size: clamp(28px, 3vw, 40px); }
.contact-form { display: grid; gap: 18px; margin-top: 28px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .field { gap: 8px; }
.contact-form .btn { justify-self: start; }
.contact-side { display: grid; gap: 18px; }
.office-card { padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.office-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.office-card h3 { font-size: 22px; }
.office-card p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; color: var(--muted); }
.office-card.dark p { color: rgba(255,255,255,.75); }
.office-card p .i { margin-top: 4px; color: var(--gold-d); }
.office-card.dark p .i { color: var(--gold); }
.office-card a:hover { color: var(--gold-d); }
.office-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 6px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--gold); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--gold-d); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Form feedback ---------- */
.form-error {
  display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px;
  background: #fdecec; color: var(--danger); font-weight: 600; font-size: 14px;
}
.news-form ~ .form-error { background: rgba(214,69,80,.18); color: #ffb4ba; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.prop-grid.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }
.load-more { display: flex; justify-content: center; margin-top: 40px; }
.load-more:has([hidden]) { display: none; }

/* ---------- Sign in / register ---------- */
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; padding-top: 74px; }
.auth-media { position: relative; background: var(--ink); }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-panel { display: grid; place-items: center; padding: 56px 24px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: clamp(30px, 3.4vw, 42px); }
.auth-card .contact-form { margin-top: 24px; }
.auth-card .contact-form .btn { justify-self: stretch; }
.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--gold-d); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

/* ---------- Account ---------- */
.account-page { padding: calc(var(--header-h) + 48px) 0 100px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.account-head h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 6px; }
.account-head p { margin: 0; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.account-main, .account-side { display: grid; gap: 24px; }
.panel { padding: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.panel h2 { font-size: 24px; margin-bottom: 18px; }
.panel .contact-form { margin-top: 0; }
.panel-dark { background: var(--ink); color: #fff; border-color: var(--ink); background-image: radial-gradient(circle at 100% 0%, rgba(200,164,92,.25), transparent 55%); }
.panel-dark p { font-family: var(--font-display); font-size: 30px; color: var(--gold); margin-bottom: 12px; }
.panel-dark .link-arrow { color: var(--gold); }
.enq-list { list-style: none; margin: 0; padding: 0; display: grid; }
.enq-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.enq-list li:first-child { border-top: 0; padding-top: 0; }
.enq-list li:last-child { padding-bottom: 0; }
.enq-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.enq-top a:hover { color: var(--gold-d); }
.enq-list p { margin: 0 0 6px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status { flex-shrink: 0; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--gold-soft); color: var(--gold-d); }
.status-in_progress { background: #e6eefb; color: #2a5db0; }
.status-closed { background: #eaf6ef; color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 84px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1.4fr; gap: 40px; padding-bottom: 60px; }
.footer-brand p { margin: 22px 0; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.site-footer a:not(.brand):not(.btn) { display: block; padding: 5px 0; transition: color .2s; }
.site-footer a:not(.brand):hover { color: var(--gold); }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact p a { padding: 0 !important; }
.footer-contact .i { margin-top: 4px; color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; border: 1px solid rgba(255,255,255,.18); padding: 0 !important; }
.socials a:hover { background: var(--gold); color: var(--ink) !important; border-color: var(--gold); }
.news-form { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.news-form input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; padding: 0 14px; outline: none; }
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form .btn { padding: 10px 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-legal a { display: inline !important; }
.footer-note { padding-bottom: 26px; font-size: 12px; opacity: .5; }
.footer-note p { margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .services, .values { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}

@media (max-width: 960px) {
  .main-nav {
    position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; background: #fff; color: var(--ink); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav .btn { margin-top: 16px; border-bottom: 0; }
  .menu-btn { display: inline-flex !important; }
  .only-mobile { display: inline-flex !important; }
  .hide-mobile { display: none !important; }

  .section { padding: 80px 0; }
  .intro, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .auth-page, .account-grid { grid-template-columns: 1fr; }
  .auth-media { display: none; }
  .intro-badge { inset-inline-end: 16px; }
  .intro-media.stack img:last-child { margin-bottom: 0; }
  .prop-grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-submit { padding: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .prop-layout { grid-template-columns: 1fr; }
  .prop-aside { position: static; }
  .gallery { grid-template-rows: 200px 200px; }
  .prop-header-side { text-align: start; }
  .prop-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .container, .container.narrow { width: calc(100% - 32px); }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 17px; }
  .header-actions { gap: 6px; }
  .icon-btn { height: 38px; min-width: 38px; }
  .hero { padding-bottom: 40px; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 30px; }
  .search-fields { grid-template-columns: 1fr; }
  .prop-grid, .reviews, .agent-grid, .agent-grid.three, .services, .values { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .area-card.area-wide { grid-column: auto; grid-row: span 1; }
  .gallery, .gallery-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .gallery-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery-item:nth-child(n+4) { display: none; }
  .gallery-4 .gallery-item:nth-child(4) { grid-column: auto; }
  .details, .calc, .contact-form .row { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .filters { margin-top: -70px; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .cta-strip { padding: 32px 24px; }
  .panel { padding: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact, .footer-news { grid-column: 1 / -1; }
  .timeline::before { inset-inline-start: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-inline-start: 32px; }
  .timeline li::before { inset-inline-start: 0; }
  .timeline .year { padding: 0; }
  .page-hero { min-height: 360px; }
}
