:root {
  --navy: #082f8b;
  --navy-deep: #061e59;
  --red: #d61f2c;
  --red-dark: #ad1520;
  --ink: #172033;
  --muted: #687287;
  --paper: #f6f8fc;
  --white: #ffffff;
  --line: rgba(8, 47, 139, 0.13);
  --shadow: 0 24px 70px rgba(14, 33, 74, 0.13);
  --radius: 22px;
  --shell: min(1180px, calc(100vw - 36px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section { padding: 105px 0; }
.section-soft { background: var(--paper); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2, .page-hero h1, .hero h1, .listing-hero h1 { margin: 0 0 18px; font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.section-heading h2 { font-size: clamp(2.3rem, 5vw, 4.3rem); }
.section-heading p:last-child { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--line); }
.button-secondary:hover { border-color: var(--navy); }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 800; }
.text-link:hover { color: var(--red); }

.topbar { color: #dfe6fb; background: var(--navy-deep); font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.topbar a { font-weight: 800; color: var(--white); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(12, 31, 75, .08); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.logo img { width: 132px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a, .nav-listings > button { padding: 10px 0; color: #27334b; background: none; border: 0; font-size: .88rem; font-weight: 800; }
.site-nav > a:hover, .nav-listings > button:hover { color: var(--red); }
.nav-listings { position: relative; }
.nav-listings > button::after { margin-left: 7px; content: "▾"; font-size: .72rem; }
.listings-dropdown { position: absolute; top: calc(100% + 10px); left: -22px; width: 270px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
.listings-dropdown.is-open, .nav-listings:hover .listings-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.listings-dropdown a { display: block; padding: 11px 12px; border-radius: 10px; color: #344057; font-size: .85rem; font-weight: 700; }
.listings-dropdown a:hover { color: var(--navy); background: var(--paper); }
.listings-dropdown .menu-heading { margin: 6px 12px 4px; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.listings-dropdown .menu-all { color: var(--red); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 50%; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--navy); }

.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: linear-gradient(110deg, #f8faff 0%, #eef3ff 55%, #fff 100%); }
.hero::after { position: absolute; right: -180px; bottom: -230px; width: 560px; height: 560px; content: ""; background: radial-gradient(circle, rgba(214,31,44,.14), transparent 66%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr); gap: 74px; align-items: center; }
.hero h1 { max-width: 610px; font-size: clamp(3.6rem, 7vw, 6.4rem); color: var(--navy-deep); }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; color: #4d5870; font-size: .78rem; font-weight: 800; }
.hero-image { position: relative; }
.hero-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 32px 32px 8px 32px; box-shadow: var(--shadow); }
.hero-image-card { position: absolute; left: -35px; bottom: 28px; max-width: 240px; padding: 20px; color: var(--white); background: var(--navy); border-radius: 18px 18px 5px 18px; box-shadow: 0 18px 42px rgba(8,47,139,.25); }
.hero-image-card strong { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 1.5rem; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(14,33,74,.06); }
.service-card-icon { display: grid; width: 48px; height: 48px; margin-bottom: 28px; place-items: center; color: var(--white); background: var(--navy); border-radius: 14px; font-weight: 900; }
.service-card h3 { margin: 0 0 12px; color: var(--navy-deep); font-family: var(--serif); font-size: 1.75rem; }
.service-card p { color: var(--muted); }

.featured-listing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden; background: var(--navy-deep); border-radius: 28px; box-shadow: var(--shadow); }
.featured-image { position: relative; min-height: 530px; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.status-pill { display: inline-flex; padding: 7px 11px; color: var(--navy); background: #e9efff; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.featured-image .status-pill { position: absolute; top: 20px; left: 20px; }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 58px; color: var(--white); }
.featured-copy .eyebrow { color: #ff8b94; }
.featured-copy h2 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(2.3rem,4vw,4rem); line-height: 1.03; }
.featured-copy .listing-location { color: #aebee7; }
.featured-copy .listing-price { margin: 12px 0 18px; color: var(--white); font-size: 1.7rem; font-weight: 850; }
.featured-copy > p:not(.eyebrow,.listing-location,.listing-price) { color: #c5cde1; }
.featured-copy .button { align-self: flex-start; margin-top: 18px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: center; }
.split-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px 28px 8px 28px; box-shadow: var(--shadow); }
.split-copy h2 { margin: 0 0 20px; color: var(--navy-deep); font-family: var(--serif); font-size: clamp(2.4rem,5vw,4.4rem); line-height: 1.02; }
.split-copy p { color: var(--muted); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 28px 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; font-weight: 700; }
.check-list li::before { position: absolute; left: 0; color: var(--red); content: "✓"; }

.cta-band { padding: 58px 0; color: var(--white); background: var(--red); }
.cta-inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.cta-inner h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem,4vw,3.5rem); font-weight: 500; }
.cta-inner p { margin: 7px 0 0; color: #ffe4e6; }

.page-hero { padding: 82px 0 68px; color: var(--white); background: linear-gradient(120deg,var(--navy-deep),var(--navy)); }
.page-hero h1 { max-width: 800px; font-size: clamp(3rem,6vw,5.5rem); }
.page-hero p:last-child { max-width: 700px; color: #c9d4f0; }

.listings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.listing-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 45px rgba(14,33,74,.07); }
.listing-card-image { position: relative; display: block; height: 260px; overflow: hidden; }
.listing-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.listing-card:hover .listing-card-image img { transform: scale(1.035); }
.listing-card-image span { position: absolute; top: 15px; left: 15px; padding: 7px 10px; color: var(--navy); background: rgba(255,255,255,.92); border-radius: 999px; font-size: .68rem; font-weight: 850; }
.listing-card-body { padding: 26px; }
.listing-location { margin: 0 0 8px; color: var(--red); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.listing-card h2 { margin: 0 0 8px; color: var(--navy-deep); font-family: var(--serif); font-size: 1.75rem; line-height: 1.12; }
.listing-price { color: var(--navy); font-size: 1.25rem; font-weight: 850; }
.listing-card-body > p:not(.listing-location,.listing-price) { color: var(--muted); }
.empty-state { padding: 50px; text-align: center; background: var(--paper); border-radius: var(--radius); }

.listing-hero { padding: 70px 0 56px; background: var(--paper); }
.listing-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.listing-hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px 28px 8px 28px; box-shadow: var(--shadow); }
.listing-hero h1 { margin-top: 14px; font-size: clamp(2.8rem,5vw,5rem); color: var(--navy-deep); }
.listing-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.meta-card { min-width: 150px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.meta-card span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.meta-card strong { color: var(--navy-deep); }
.listing-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 70px; align-items: start; }
.listing-copy h2, .listing-gallery-section h2 { color: var(--navy-deep); font-family: var(--serif); font-size: 2.5rem; }
.listing-copy p { color: var(--muted); }
.listing-sidebar { position: sticky; top: 120px; padding: 28px; background: var(--paper); border-radius: var(--radius); }
.listing-sidebar h3 { margin-top: 0; color: var(--navy-deep); font-family: var(--serif); font-size: 1.8rem; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; margin-bottom: 6px; font-size: .76rem; font-weight: 800; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.form-field textarea { min-height: 115px; resize: vertical; }
.form-note { color: var(--muted); font-size: .72rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 190px; gap: 12px; }
.gallery-item { padding: 0; overflow: hidden; background: var(--paper); border: 0; border-radius: 14px; }
.gallery-item-large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-dialog { width: min(94vw,1200px); height: min(90vh,900px); padding: 0; background: transparent; border: 0; }
.gallery-dialog::backdrop { background: rgba(4,10,28,.92); }
.gallery-dialog img { width: 100%; height: 100%; object-fit: contain; }
.gallery-dialog-close { position: fixed; top: 18px; right: 22px; z-index: 2; width: 48px; height: 48px; color: var(--white); background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 1.8rem; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.content-card { padding: 34px; background: var(--paper); border-radius: var(--radius); }
.content-card h2, .content-card h3 { color: var(--navy-deep); font-family: var(--serif); }
.content-card h2 { font-size: 2.4rem; }
.content-card p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.contact-details { display: grid; gap: 18px; }
.contact-detail { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-detail span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-detail strong { color: var(--navy); font-size: 1.05rem; }
.form-card { padding: 34px; background: var(--paper); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.site-footer { padding: 65px 0 24px; color: #c6d0e8; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 65px; padding-bottom: 44px; }
.footer-logo { width: 140px; padding: 10px; background: var(--white); border-radius: 10px; }
.footer-grid p { max-width: 370px; color: #9eabd0; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links strong { color: var(--white); margin-bottom: 4px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: .75rem; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 122px 16px auto; display: none; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; gap: 4px; }
  .site-nav > a, .nav-listings > button { width: 100%; padding: 12px; text-align: left; }
  .listings-dropdown { position: static; display: none; width: auto; margin-top: 4px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .listings-dropdown.is-open { display: block; }
  .nav-listings:hover .listings-dropdown:not(.is-open) { display: none; }
  .hero-grid, .split, .featured-listing, .listing-hero-grid, .listing-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 52px; }
  .hero-image-card { left: 18px; }
  .featured-image { min-height: 420px; }
  .listing-sidebar { position: static; }
  .service-grid, .listings-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100vw - 28px); }
  .topbar-inner { min-height: 42px; font-size: .7rem; }
  .topbar-inner span { display: none; }
  .header-inner { min-height: 76px; }
  .logo img { width: 112px; }
  .site-nav { inset: 118px 14px auto; }
  .hero { padding: 70px 0 64px; }
  .hero h1 { font-size: clamp(3rem,15vw,4.6rem); }
  .hero-image-card { position: relative; left: auto; bottom: auto; max-width: none; margin-top: -18px; border-radius: 0 0 18px 18px; }
  .section { padding: 76px 0; }
  .service-grid, .listings-grid, .content-grid, .form-row { grid-template-columns: 1fr; }
  .featured-copy { padding: 34px 26px; }
  .cta-inner { display: block; }
  .cta-inner .button { margin-top: 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 145px; }
  .gallery-item-large { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { display: grid; gap: 6px; }
}


/* Listing facts, source attribution, and social links */
.featured-facts { margin: -8px 0 12px; color: #ffffff !important; font-size: .88rem; font-weight: 800; }
.listing-card-facts { margin: -4px 0 14px; color: var(--navy) !important; font-size: .82rem; font-weight: 800; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.listing-source-note { margin: 14px 0 0; color: var(--muted); font-size: .76rem; }
.gallery-photo-note { margin-top: 18px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social-icon-link { display: grid; width: 42px; height: 42px; place-items: center; color: var(--white); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transition: color .18s ease, background .18s ease, transform .18s ease; }
.social-icon-link:hover { color: var(--navy-deep); background: var(--white); transform: translateY(-2px); }
.social-icon-link svg { width: 20px; height: 20px; fill: currentColor; }
