:root{
  --brand-blue:#1e3a8a;
  --brand-yellow:#f5c400;
  --text:#111827;
  --muted:#6b7280;
  --bg:#ffffff;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:14px;
  --maxw:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}
a{color:inherit}
img{max-width:100%;height:auto}
.container{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.small{font-size:.93rem;color:var(--muted)}

.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:12px;top:12px;width:auto;height:auto;padding:10px 12px;background:#fff;border:1px solid var(--border);border-radius:10px;z-index:9999}

/* Header */
.site-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:5px solid var(--border)}
.navbar{height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:220px}
.brand img{height:60px;width:auto;display:block}
.brand .name{font-size:1.75rem;font-weight:700;letter-spacing:.2px;color:var(--brand-blue);white-space:nowrap}
.nav-links{display:flex;align-items:center;gap:18px;list-style:none;margin:0;padding:0}
.nav-links a{text-decoration:none;color:var(--brand-blue);font-weight:600;font-size:.98rem;padding:10px;border-radius:10px}
.nav-links a:hover{background:rgba(30,58,138,.06)}
.nav-links a[aria-current="page"]{background:rgba(30,58,138,.10)}
.header-cta{text-decoration:none;background:var(--brand-yellow);color:var(--brand-blue);font-weight:800;padding:11px 16px;border-radius:12px;box-shadow:0 6px 16px rgba(245,196,0,.25);white-space:nowrap}
.header-cta:hover{filter:brightness(.96)}
.menu-btn{display:none;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 12px;color:var(--brand-blue);font:inherit;font-weight:800;cursor:pointer}

/* Mobile menu */
.mobile-drawer{display:none;border-top:1px solid var(--border);background:#fff}
.mobile-drawer.open{display:block}
.mobile-drawer a{display:block;padding:14px 22px;text-decoration:none;border-bottom:1px solid var(--border);color:var(--brand-blue);font-weight:650}
.mobile-drawer a.cta{background:rgba(245,196,0,.18);font-weight:800}

/* Main home page hero */
.hero{position:relative;min-height:78vh;display:flex;align-items:center;padding:64px 0;background-image:url("./assets/edmonton-hero.png");background-size:cover;background-position:center;background-repeat:no-repeat}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.50),rgba(0,0,0,.25))}
.hero .container{position:relative;z-index:2}
.hero-card{max-width:720px;color:#fff}
.hero h1{margin:0 0 14px;font-size:clamp(2rem,3.6vw,3.2rem);line-height:1.15;letter-spacing:-.4px}
.hero p{margin:0 0 18px;font-size:clamp(1.05rem,1.5vw,1.25rem)}
.hero .trust{font-size:1rem;opacity:.92;font-style:italic}
.hero .badge{color:#fff;border-color:var(--brand-yellow)}

/* Buttons */
.btn-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.btn{display:inline-block;text-decoration:none;padding:12px 18px;border-radius:12px;font-weight:800;border:1px solid transparent}
.btn.primary{background:var(--brand-yellow);color:var(--brand-blue)}
.btn.secondary{background:rgba(255,255,255,.90);color:var(--brand-blue);border-color:var(--border)}
.btn.ghost{background:transparent;border-color:rgba(255,255,255,.50);color:#fff}
.btn:hover{filter:brightness(.98)}

/* General sections */
.section{padding:20px 0}
#listings,#buyers,#sellers,#contact,#about,#overview,#features,#photos{scroll-margin-top:70px}
.section h1,.section h2{margin:0 0 10px;font-size:1.9rem;letter-spacing:-.2px}
.section h3{margin:18px 0 8px}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}
.card{background:#dbd9d9;border:5px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}
.card p{color:var(--muted)}
.listings{background:#fff;border:5px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:2px}
.kpi{display:flex;gap:10px;align-items:flex-start}
.kpi .dot{width:10px;height:10px;border-radius:999px;background:var(--brand-yellow);margin-top:7px}
.badge{display:inline-block;font-size:.82rem;padding:6px 10px;border:1px solid var(--border);border-radius:999px;color:var(--brand-blue);background:rgba(30,58,138,.04)}
.sold-listings-image{display:block;width:var(--listing-img-width,100%);max-width:100%;height:auto;object-fit:contain;margin-inline:auto;border-radius:16px}
.button-row{display:flex;align-items:center;justify-content:flex-end;width:100%;gap:12px}
.no-padding-section{padding:0;margin:0;text-align:center;color:var(--brand-yellow)}

/* Forms */
form{margin-top:14px}
label{display:block;font-weight:700;margin:12px 0 6px}
form input,form select,form textarea{width:100%;padding:10px 12px;border:1.5px solid #cfcfcf;border-radius:6px;font:inherit;font-size:16px;background-color:#fff;transition:border-color .2s ease,box-shadow .2s ease}
textarea{min-height:140px;resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-help{color:var(--muted);font-size:.92rem;margin-top:10px}
form input:focus,form select:focus,form textarea:focus{outline:none;border-color:#f2c94c;box-shadow:0 0 0 3px rgba(242,201,76,.25)}
.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.form-status{min-height:1.4em;margin-top:12px;font-size:.95rem;font-weight:600}
.form-status.is-success{color:#166534}
.form-status.is-error{color:#b91c1c}
button[disabled]{opacity:.7;cursor:not-allowed}

/* Individual listing page */
.listing-hero{position:relative;min-height:68vh;display:flex;align-items:flex-end;background-size:cover;background-position:center;background-repeat:no-repeat}
.listing-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75),rgba(0,0,0,.08))}
.listing-hero-content{position:relative;z-index:2;width:100%;color:#fff;padding-top:80px;padding-bottom:48px}
.listing-status{display:inline-block;margin-bottom:12px;padding:7px 13px;border-radius:999px;background:var(--brand-yellow);color:var(--brand-blue);font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.listing-hero h1{margin:0;font-size:clamp(2rem,5vw,4rem);line-height:1.05}
.listing-location{margin:10px 0 0;font-size:1.2rem}
.listing-price{margin:12px 0 0;font-size:clamp(1.6rem,3vw,2.5rem);font-weight:900;color:var(--brand-yellow)}
.listing-hero-link{display:block;text-decoration:none;color:inherit}

.listing-section-nav{position:sticky;top:78px;z-index:900;background:var(--brand-blue);box-shadow:0 8px 18px rgba(0,0,0,.12)}
.listing-section-nav-inner{display:flex;justify-content:center;gap:8px;overflow-x:auto}
.listing-section-nav a{display:block;padding:15px 18px;color:#fff;text-decoration:none;font-weight:800;white-space:nowrap}
.listing-section-nav a:hover{background:rgba(255,255,255,.12);color:var(--brand-yellow)}

.listing-heading{max-width:760px;margin-bottom:30px}
.listing-heading h2{margin-top:10px}
.listing-heading p{color:var(--muted)}
.listing-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:40px}
.listing-stat{padding:22px 14px;text-align:center;background:#fff;border:2px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.listing-stat strong{display:block;color:var(--brand-blue);font-size:1.9rem;line-height:1.1}
.listing-stat span{display:block;margin-top:6px;color:var(--muted);font-weight:700}
.listing-overview-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:28px;align-items:start}
.listing-description p{color:var(--muted)}
.listing-details-card{padding:24px;background:#fff;border:4px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.listing-details-card h3{margin-top:0;color:var(--brand-blue)}
.listing-details{margin:0}
.listing-details div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid var(--border)}
.listing-details dt{color:var(--muted);font-weight:700}
.listing-details dd{margin:0;text-align:right;font-weight:800}
.listing-light-section{padding:64px 0;background:#f8fafc;scroll-margin-top:125px}
.listing-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.listing-feature{position:relative;padding:18px 18px 18px 42px;background:#fff;border:2px solid var(--border);border-radius:12px;font-weight:750}
.listing-feature::before{content:"✓";position:absolute;left:17px;color:var(--brand-blue);font-weight:900}
.listing-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.listing-photo-grid a{display:block;overflow:hidden;border-radius:14px;box-shadow:var(--shadow)}
.listing-photo-grid img{display:block;width:100%;height:240px;object-fit:cover;transition:transform .25s ease}
.listing-photo-grid a:hover img{transform:scale(1.035)}
.listing-contact-section{padding:64px 0;background:var(--brand-blue);color:#fff;scroll-margin-top:125px}
.listing-contact-section h2{margin:10px 0}
.listing-contact-section p{color:rgba(255,255,255,.86)}
.listing-contact-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:28px;align-items:center}
.listing-agent-card{padding:24px;border:2px solid rgba(255,255,255,.22);border-radius:var(--radius);background:rgba(255,255,255,.08)}
.listing-agent-card h3{margin-top:0;color:var(--brand-yellow)}
.listing-agent-card a{color:#fff}
.listing-map{display:block;width:100%;height:420px;border:0}

/* Footer */
.site-footer{background:var(--brand-blue);color:#fff;padding:48px 0 18px;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:22px}
.footer-grid a{color:#fff}
.footer-grid ul{list-style:none;padding:0;margin:0}
.footer-grid li{margin:8px 0}
.footer-cta{display:inline-block;margin-top:10px;padding:10px 14px;background:var(--brand-yellow);color:var(--brand-blue);border-radius:12px;font-weight:900;text-decoration:none}
.site-footer .footer-cta{color:var(--brand-blue)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:28px;padding-top:14px;font-size:.82rem;opacity:.95}

/* Responsive */
@media (max-width:980px){
  .brand{min-width:auto}
  .nav-links{display:none}
  .header-cta{display:none}
  .menu-btn{display:inline-flex;align-items:center;gap:8px;color:var(--brand-blue);font-weight:800}
  .mobile-drawer.open{display:block}
  .footer-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .listing-section-nav-inner{justify-content:flex-start}
}

@media (min-width:981px){
  .mobile-drawer{display:none!important}
}

@media (max-width:800px){
  .listing-hero{min-height:52vh}
  .listing-stats{grid-template-columns:repeat(2,1fr)}
  .listing-overview-grid,.listing-contact-grid{grid-template-columns:1fr}
  .listing-features-grid,.listing-photo-grid{grid-template-columns:1fr 1fr}
  .listing-photo-grid img{height:190px}
}

@media (max-width:520px){
  .container{padding:0 16px}
  .navbar{height:72px}
  .brand img{height:54px}
  .listing-features-grid,.listing-photo-grid{grid-template-columns:1fr}
  .listing-photo-grid img{height:220px}
  .listing-details div{display:block}
  .listing-details dd{text-align:left;margin-top:2px}
}
.listings .listing-hero {
  border-radius: 10px;
  overflow: hidden;
}
.hero-listing-cta {
  display: inline-block;
  margin-bottom: 24px;
}