:root {
  --navy: #07131e;
  --navy-soft: #0d1e2c;
  --gold: #cfa85d;
  --gold-dark: #b48d46;
  --cream: #f7f4ed;
  --white: #ffffff;
  --ink: #17202a;
  --muted: #68717a;
  --line: #e5e1d9;
  --shadow: 0 24px 70px rgba(7, 19, 30, 0.12);
  --radius: 4px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3rem, 6vw, 5.8rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); letter-spacing: -0.03em; }
.eyebrow { margin-bottom: 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 700; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--white); background: var(--gold); }
.button-gold:hover { background: var(--gold-dark); }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
  background: rgba(7, 19, 30, 0.96);
  transition: box-shadow 180ms ease, background 180ms ease;
}
.site-header.scrolled { background: rgba(7, 19, 30, 0.99); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.nav-wrap { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); flex-shrink: 0; }
.brand-mark { width: 43px; color: var(--gold); }
.brand-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; letter-spacing: 0.03em; }
.brand small { display: block; color: var(--gold); letter-spacing: 0.16em; font-size: 0.52rem; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
.main-nav a { position: relative; font-size: 0.78rem; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -17px; height: 2px; background: var(--gold); transition: right 180ms ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.header-cta { min-height: 46px; padding-inline: 26px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--white); transition: transform 180ms ease, opacity 180ms ease; }

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: url("hero.jpg") center/cover no-repeat;
  margin-top: 102px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 10, 17, .88) 0%, rgba(2, 10, 17, .54) 42%, rgba(2, 10, 17, .12) 76%); }
.hero-content { position: relative; z-index: 1; padding-block: 90px 150px; }
.hero h1 { max-width: 720px; margin-bottom: 22px; }
.hero-copy { max-width: 460px; margin-bottom: 30px; font-size: 1.07rem; color: rgba(255,255,255,.86); }

.property-search { position: relative; z-index: 5; margin-top: -105px; }
.search-shell { color: var(--white); background: rgba(7, 19, 30, .98); box-shadow: var(--shadow); }
.search-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.16); }
.search-tab { min-width: 118px; padding: 18px 24px; border: 0; color: var(--white); background: transparent; text-transform: uppercase; font-weight: 700; font-size: .78rem; position: relative; }
.search-tab::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px; background: transparent; }
.search-tab.active { color: var(--gold); }
.search-tab.active::after { background: var(--gold); }
.search-form { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr) auto; gap: 14px; align-items: end; padding: 25px 24px 28px; }
.search-form label > span { display: block; margin-bottom: 8px; font-size: .73rem; }
.search-form input, .search-form select {
  width: 100%; min-height: 47px; border: 1px solid rgba(255,255,255,.23); border-radius: 2px; color: var(--white); background: #0a1824; padding: 0 13px; outline: none;
}
.search-form select option { color: var(--ink); background: var(--white); }
.search-form input:focus, .search-form select:focus { border-color: var(--gold); }
.field-wrap { position: relative; }
.field-wrap input { padding-left: 36px; }
.field-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gold); z-index: 1; }
.search-button { min-width: 145px; height: 47px; min-height: 47px; }
.search-message { display: none; margin: -10px 24px 22px; color: var(--gold); font-size: .86rem; }
.search-message.show { display: block; }

.section { padding: 100px 0; }
.properties-section { background: var(--white); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading-row h2 { margin-bottom: 0; }
.text-link { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.property-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.property-card { border: 1px solid var(--line); background: var(--white); transition: transform 180ms ease, box-shadow 180ms ease; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(7,19,30,.1); }
.property-card.filtered-out { display: none; }
.property-image { position: relative; aspect-ratio: 1.28; overflow: hidden; background: #ddd; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.property-card:hover img { transform: scale(1.045); }
.badge { position: absolute; left: 12px; top: 12px; padding: 7px 10px; color: var(--white); background: var(--navy); text-transform: uppercase; font-size: .62rem; font-weight: 700; }
.badge-rent { background: var(--gold); }
.favourite { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: var(--white); background: rgba(7,19,30,.25); font-size: 1.3rem; line-height: 1; }
.favourite.saved { color: var(--gold); background: var(--white); }
.property-body { padding: 18px 16px 20px; }
.property-body h3 { margin-bottom: 3px; font-size: 1rem; }
.location { min-height: 42px; margin-bottom: 11px; color: var(--muted); font-size: .78rem; }
.property-meta { display: flex; flex-wrap: wrap; gap: 11px; padding: 0; margin: 0 0 13px; list-style: none; color: var(--muted); font-size: .72rem; }
.property-meta li:not(:last-child)::after { content: "•"; margin-left: 11px; color: #bab4aa; }
.price { margin: 0; color: var(--gold-dark); font-size: 1.05rem; font-weight: 700; }
.price small { font-size: .68rem; }

.about-section { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.05fr .82fr 1.35fr; min-height: 560px; }
.about-copy { padding: 70px 55px 55px 0; }
.about-copy > p:not(.eyebrow) { max-width: 470px; color: var(--muted); }
.about-image { min-height: 100%; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.benefit-list { display: grid; gap: 17px; margin: 28px 0 30px; }
.benefit { display: flex; gap: 15px; align-items: start; }
.benefit-icon { color: var(--gold); font-size: 1.8rem; line-height: 1; }
.benefit strong, .benefit small { display: block; }
.benefit strong { font-size: .9rem; }
.benefit small { color: var(--muted); font-size: .76rem; }
.valuation-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 70px 60px; color: var(--white); background: var(--navy); }
.valuation-card::after { content: "⌂"; position: absolute; right: -32px; bottom: -120px; color: rgba(207,168,93,.08); font-size: 22rem; line-height: 1; }
.valuation-card > * { position: relative; z-index: 1; }
.valuation-card h2 { font-size: clamp(2.35rem, 3.6vw, 4rem); }
.valuation-card p:not(.eyebrow) { max-width: 490px; color: rgba(255,255,255,.72); }
.valuation-card .button { align-self: flex-start; margin-top: 18px; }

.stats-section { padding: 34px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; justify-content: center; gap: 17px; padding: 8px 25px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat > span { color: var(--gold); font-size: 2.4rem; }
.stat strong, .stat small { display: block; }
.stat strong { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; }
.stat strong[data-count]::after { content: "+"; }
.stat small { color: var(--muted); font-size: .72rem; }

.services-section { padding: 100px 0; background: var(--white); }
.section-heading.centered { max-width: 650px; margin: 0 auto 48px; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.services-grid article { padding: 34px; border: 1px solid var(--line); background: var(--cream); }
.services-grid article > span { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.services-grid h3 { margin: 18px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; }
.services-grid p { margin-bottom: 0; color: var(--muted); }

.newsletter { color: var(--white); background: #0a1824; border-bottom: 1px solid rgba(255,255,255,.12); }
.newsletter-row { position: relative; min-height: 115px; display: grid; grid-template-columns: .8fr 1.1fr; align-items: center; gap: 40px; }
.newsletter h2 { margin: 0 0 3px; font-size: 1.65rem; }
.newsletter p { margin: 0; color: rgba(255,255,255,.68); font-size: .8rem; }
.newsletter-form { display: flex; }
.newsletter-form input { flex: 1; min-width: 0; height: 48px; border: 1px solid rgba(255,255,255,.25); color: var(--white); background: transparent; padding: 0 15px; outline: 0; }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form .button { min-height: 48px; }
.newsletter-message { position: absolute; right: 0; bottom: 7px; color: var(--gold) !important; }

.site-footer { color: rgba(255,255,255,.72); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); gap: 42px; padding: 58px 0 45px; }
.footer-brand p { max-width: 245px; margin-top: 20px; font-size: .8rem; }
.footer-grid h3 { margin-bottom: 18px; color: var(--white); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.footer-grid > div:not(.footer-brand) a, .footer-grid > div:not(.footer-brand) p { display: block; margin-bottom: 9px; font-size: .78rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 24px; }

.back-to-top { position: fixed; z-index: 20; right: 22px; bottom: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--white); background: var(--gold); opacity: 0; visibility: hidden; transform: translateY(10px); transition: 180ms ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 1100px) {
  .header-cta { display: none; }
  .search-form { grid-template-columns: repeat(3, 1fr); }
  .search-button { width: 100%; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr .8fr; }
  .valuation-card { grid-column: 1 / -1; min-height: 390px; }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-wrap { min-height: 82px; }
  .hero { margin-top: 82px; min-height: 610px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 82px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 24px 30px; background: var(--navy); transform: translateX(100%); transition: transform 220ms ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .search-form { grid-template-columns: repeat(2, 1fr); }
  .search-button { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .newsletter-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0 38px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  .brand strong { font-size: .92rem; }
  .hero { min-height: 570px; }
  .hero-content { padding-block: 70px 145px; }
  .hero-copy { font-size: .95rem; }
  .property-search { margin-top: -115px; }
  .search-tabs { justify-content: stretch; }
  .search-tab { min-width: 0; flex: 1; }
  .search-form { grid-template-columns: 1fr; padding: 22px 17px; }
  .search-button { grid-column: auto; }
  .section { padding: 75px 0; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { display: inline-block; margin-top: 12px; }
  .property-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { padding: 65px 20px 48px 0; }
  .about-image { min-height: 390px; }
  .valuation-card { padding: 60px 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 30px; }
  .stat:last-child { border-bottom: 0; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

/* CMS-powered property states */
.view-all-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.properties-loading, .properties-status { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); text-align: center; }
.property-card .property-description { margin: 0 0 12px; color: var(--muted); font-size: .76rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-card .featured-marker { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; color: var(--navy); background: rgba(255,255,255,.92); font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
