/* ==========================================================
   Your Realty template — styles
   Edit the colors in :root below to re-theme the whole site.
   ========================================================== */
:root {
  --color-primary: #1f4e5f;      /* deep teal: header, buttons, headings */
  --color-primary-dark: #153742;
  --color-accent: #c8873a;       /* warm gold: highlights, badges */
  --color-accent-light: #e9b872;
  --color-bg: #fbf9f5;           /* page background */
  --color-surface: #ffffff;      /* cards */
  --color-soft: #f1ece3;         /* alternating sections */
  --color-text: #1d2a30;
  --color-muted: #5d6b72;
  --color-border: #ddd6c9;
  --color-success: #2e7d4f;
  --color-danger: #b3362b;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(21, 55, 66, .10);
  --shadow-lg: 0 14px 40px rgba(21, 55, 66, .18);
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary-dark); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.soft { background: var(--color-soft); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--color-accent); margin-bottom: .6rem; display: block; }
.muted { color: var(--color-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-accent); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }

/* Template notice bar */
.template-bar { background: var(--color-primary-dark); color: #d8e6eb; font-size: .82rem; text-align: center; padding: .4rem 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid var(--color-primary); background: var(--color-primary); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #a96e28; border-color: #a96e28; }
.btn-outline { background: transparent; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--color-primary-dark); }
.btn-light:hover { background: var(--color-accent-light); border-color: var(--color-accent-light); color: var(--color-primary-dark); }
.btn-block { width: 100%; }

/* Header */
.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-primary-dark); text-decoration: none; }
.brand:hover { color: var(--color-primary); }
.brand-mark { width: 38px; height: 38px; }
.nav-list { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .5rem .9rem; text-decoration: none; color: var(--color-text); font-weight: 500; border-radius: 8px; }
.nav-list a:hover { background: var(--color-soft); color: var(--color-primary); }
.nav-list a[aria-current="page"] { color: var(--color-primary); font-weight: 700; box-shadow: inset 0 -3px 0 var(--color-accent); border-radius: 0; }
.nav-list .nav-cta a { background: var(--color-primary); color: #fff; border-radius: 999px; padding-inline: 1.2rem; margin-left: .4rem; box-shadow: none; }
.nav-list .nav-cta a:hover { background: var(--color-primary-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--color-border); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--color-primary-dark); position: relative; transition: transform .2s, opacity .2s; content: ""; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); display: none; padding: .5rem 1.25rem 1.25rem; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: .85rem .5rem; }
  .nav-list a[aria-current="page"] { box-shadow: none; background: var(--color-soft); border-radius: 8px; }
  .nav-list .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background:
  radial-gradient(900px 400px at 85% 10%, rgba(233,184,114,.28), transparent 60%),
  linear-gradient(135deg, #153742 0%, #1f4e5f 55%, #2e6a7d 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background:
  linear-gradient(to top, rgba(0,0,0,.18), transparent); pointer-events: none; }
.hero-skyline { position: absolute; right: -2%; bottom: 0; width: min(62%, 760px); opacity: .16; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 8rem); max-width: 800px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #d8e6eb; max-width: 560px; }
.hero .eyebrow { color: var(--color-accent-light); }
.search-card { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.1rem; margin-top: 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: .8rem; align-items: end; }
.search-card label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); display: block; margin-bottom: .3rem; }
@media (max-width: 960px) { .search-card { grid-template-columns: 1fr 1fr; } .search-card .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .search-card { grid-template-columns: 1fr; } }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-stats strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-accent-light); }
.hero-stats span { font-size: .85rem; color: #b9cfd6; }

/* Forms */
input, select, textarea { font: inherit; color: var(--color-text); width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--color-border); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,78,95,.18); }
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field .hint { font-size: .8rem; color: var(--color-muted); margin-top: .25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-notice { padding: .9rem 1rem; border-radius: 10px; background: #e8f4ec; border: 1px solid #b6d9c3; color: #1d5a37; margin-top: 1rem; font-size: .95rem; }
.form-notice[hidden] { display: none; }
.demo-note { font-size: .8rem; color: var(--color-muted); margin-top: .8rem; }

/* Cards / grid */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Listing card */
.listing-card { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-media { position: relative; aspect-ratio: 4 / 3; display: block; overflow: hidden; }
.listing-media svg { width: 100%; height: 100%; }
.badge { position: absolute; top: .8rem; left: .8rem; background: var(--color-accent); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .65rem; border-radius: 999px; }
.badge.sample { left: auto; right: .8rem; background: rgba(21,55,66,.82); }
.badge.sold { background: var(--color-danger); }
.badge.pending { background: #7a6a3a; }
.listing-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin: 0; }
.listing-price small { font-size: .75rem; color: var(--color-muted); font-family: var(--font-body); font-weight: 500; }
.listing-title { font-size: 1.05rem; margin: .2rem 0 .1rem; }
.listing-title a { text-decoration: none; color: var(--color-primary-dark); }
.listing-title a:hover { color: var(--color-accent); }
.listing-loc { color: var(--color-muted); font-size: .9rem; margin-bottom: .8rem; }
.listing-meta { margin-top: auto; display: flex; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--color-border); font-size: .9rem; color: var(--color-muted); list-style: none; padding-inline: 0; margin-bottom: 0; flex-wrap: wrap; }
.listing-meta strong { color: var(--color-text); }

/* Why us */
.feature { padding: 1.6rem; text-align: left; }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--color-soft); color: var(--color-primary); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .icon svg { width: 26px; height: 26px; }

/* Testimonials */
.quote { padding: 1.6rem; position: relative; }
.quote::before { content: "\201C"; font-family: var(--font-heading); font-size: 4rem; line-height: 1; color: var(--color-accent-light); position: absolute; top: .6rem; right: 1.2rem; }
.quote blockquote { margin: 0 0 1rem; font-style: italic; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote .tag { font-size: .75rem; color: var(--color-muted); }
.stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: .6rem; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)); color: #fff; text-align: center; border-radius: calc(var(--radius) * 1.6); padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.cta h2 { color: #fff; }
.cta p { color: #d8e6eb; max-width: 560px; margin-inline: auto; }
.cta .btn-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.cta .btn-outline { border-color: #fff; color: #fff; }
.cta .btn-outline:hover { background: #fff; color: var(--color-primary-dark); }

/* Page header */
.page-hero { background: linear-gradient(135deg, #153742, #1f4e5f); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .3rem; }
.page-hero p { color: #d8e6eb; margin: 0; max-width: 620px; }
.breadcrumb { font-size: .85rem; margin-bottom: .8rem; color: #b9cfd6; }
.breadcrumb a { color: #e9b872; }

/* Listings page */
.listings-layout { display: grid; grid-template-columns: 290px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .listings-layout { grid-template-columns: 1fr; } }
.filters { padding: 1.3rem; position: sticky; top: 90px; }
@media (max-width: 900px) { .filters { position: static; } }
.filters h2 { font-size: 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.link-btn { background: none; border: 0; color: var(--color-primary); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.results-bar select { width: auto; min-width: 210px; }
.empty-state { text-align: center; padding: 3rem 1rem; }

/* Property page */
.prop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.prop-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .2rem; }
.prop-price { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.prop-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.2rem; align-items: start; }
@media (max-width: 960px) { .prop-layout { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.gallery-main svg { width: 100%; height: 100%; }
.gallery-main .badge { z-index: 2; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--color-primary-dark); font-size: 1.4rem; cursor: pointer; z-index: 2; box-shadow: var(--shadow); }
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: .8rem; } .gallery-nav.next { right: .8rem; }
.gallery-count { position: absolute; bottom: .8rem; right: .8rem; background: rgba(21,55,66,.82); color: #fff; font-size: .8rem; padding: .2rem .7rem; border-radius: 999px; z-index: 2; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .7rem; }
.thumb { border: 3px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 4 / 3; background: none; }
.thumb[aria-current="true"] { border-color: var(--color-accent); }
.thumb svg { width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin: 1.8rem 0; }
.facts div { background: #fff; padding: 1rem; text-align: center; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
.facts dd { margin: .2rem 0 0; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-primary-dark); }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.feature-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { padding-left: 1.7rem; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 3px solid var(--color-accent); border-bottom: 3px solid var(--color-accent); transform: rotate(-45deg) scale(.8); }
.side-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.side-stack { position: sticky; top: 90px; }
@media (max-width: 960px) { .side-stack { position: static; } }
.calc-result { background: var(--color-soft); border-radius: 10px; padding: 1rem; text-align: center; margin-top: .5rem; }
.calc-result strong { display: block; font-family: var(--font-heading); font-size: 1.9rem; color: var(--color-primary); }
.calc-result small { color: var(--color-muted); }
.agent-mini { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }

/* Agents */
.agent-card { text-align: center; }
.agent-photo { aspect-ratio: 1; }
.agent-photo svg { width: 100%; height: 100%; }
.agent-body { padding: 1.2rem 1.2rem 1.5rem; }
.agent-body .role { color: var(--color-accent); font-weight: 600; font-size: .9rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.8rem; } }
.placeholder-block { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.placeholder-block svg { width: 100%; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats strong { display: block; font-family: var(--font-heading); font-size: 2.3rem; color: var(--color-primary); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--color-accent-light); }
.timeline li { margin-bottom: 1.4rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.4rem - 8px); top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--color-accent); border: 3px solid var(--color-bg); }
.timeline strong { color: var(--color-primary-dark); }

/* Contact */
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: .9rem; margin-bottom: 1.2rem; }
.contact-info .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-soft); display: grid; place-items: center; color: var(--color-primary); flex: none; }
.contact-info .icon svg { width: 22px; height: 22px; }
.contact-info strong { display: block; }
.map-ph { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem; }
.map-ph svg { width: 100%; height: 100%; }
.notice-box { background: #fff7e8; border: 1px dashed var(--color-accent); border-radius: 10px; padding: .9rem 1rem; font-size: .9rem; margin-bottom: 1.5rem; }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: #b9cfd6; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); }
.site-footer a { color: #d8e6eb; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent-light); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .83rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 2rem; } }
