/* ---------- Design tokens ---------- */
:root {
  --navy: #0b2545;
  --blue: #1f5aa6;
  --blue-dark: #164380;
  --blue-light: #eaf1fb;
  --sky: #e8f2ff;
  --gold: #c9a24b;
  --ink: #16202c;
  --gray-900: #1c2733;
  --gray-700: #465366;
  --gray-500: #6b7889;
  --gray-300: #d7dde5;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 32, 55, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 32, 55, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 32, 55, 0.16);
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: #201a06; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.pill-new { background: #e3f5e9; color: #157347; }
.pill-open { background: #fdecd2; color: #9a6400; }
.pill-price { background: var(--navy); color: #fff; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-title { font-size: 32px; line-height: 1.2; margin: 8px 0 12px; color: var(--navy); }
.section-sub { color: var(--gray-700); font-size: 16px; max-width: 640px; margin: 0 0 32px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head .section-sub { margin-bottom: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f7;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}
.topbar a { color: #cfe0f7; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-links { display: flex; gap: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-300);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); }
.logo .mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.logo .sub { display: block; font-size: 11px; font-weight: 600; color: var(--gray-500); letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--gray-900);
}
.main-nav a:hover { background: var(--gray-100); }
.main-nav a.active { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(9,26,50,.55), rgba(9,26,50,.78)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=70') center/cover no-repeat;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero-eyebrow { color: #a9c9f5; text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; font-weight: 700; }
.hero h1 { font-size: 46px; line-height: 1.12; margin: 14px 0 16px; max-width: 720px; }
.hero p.lead { font-size: 18px; color: #dbe7f8; max-width: 560px; margin: 0 0 32px; }

.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-width: 760px;
}
.search-tabs { display: flex; gap: 4px; padding: 8px 8px 0; }
.search-tabs button {
  border: none; background: transparent; padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--gray-500);
  cursor: pointer;
}
.search-tabs button.active { background: var(--blue-light); color: var(--blue-dark); }
.search-row { display: flex; gap: 8px; padding: 8px; }
.search-row input {
  flex: 1;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
}
.search-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.search-row .btn { padding: 14px 28px; }

.hero-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; }
.hero-stats div span { font-size: 13px; color: #b9cdec; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-bottom: 1px solid var(--gray-300);
  background: var(--gray-100);
}
.trust-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gray-700); font-weight: 600; min-width: 200px; }
.trust-item .ico {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* ---------- Filter chips ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--gray-300);
  background: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
}
.chip.active, .chip:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-light); }

/* ---------- Listing grid & cards ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card-fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.card-body { padding: 16px 18px 18px; }
.card-price { font-size: 21px; font-weight: 800; color: var(--navy); }
.card-specs { display: flex; gap: 14px; color: var(--gray-700); font-size: 13.5px; margin: 6px 0 10px; font-weight: 600; }
.card-addr { font-size: 14px; color: var(--gray-700); line-height: 1.4; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-300);
  font-size: 12px; color: var(--gray-500);
}

/* ---------- Split map layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}
.map-panel {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  height: 620px;
  background: linear-gradient(160deg, #dbe9fb 0%, #eef4fc 55%, #e3edf9 100%);
}
.map-panel svg { width: 100%; height: 100%; }
.map-pin {
  fill: var(--navy);
  cursor: pointer;
}
.map-pin.gold { fill: var(--gold); }
.split .listing-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Sell CTA ---------- */
.sell-cta {
  background: linear-gradient(120deg, var(--navy), var(--blue-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.sell-cta h2 { font-size: 30px; margin: 10px 0 14px; }
.sell-cta p { color: #cdddf5; font-size: 15.5px; line-height: 1.6; margin-bottom: 24px; max-width: 480px; }
.value-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.value-card label { font-size: 13px; font-weight: 700; color: var(--gray-700); display: block; margin-bottom: 6px; }
.value-card input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 14px; font-family: var(--font);
}
.value-card .estimate { font-size: 13px; color: var(--gray-500); margin-top: 10px; text-align: center; }

/* ---------- Why us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); background: var(--white); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-light); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.feature p { font-size: 14.5px; color: var(--gray-700); line-height: 1.55; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--gray-100); border-radius: var(--radius-lg); padding: 26px; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 14px; }
.testimonial p { font-size: 14.5px; color: var(--gray-900); line-height: 1.6; margin: 0 0 16px; }
.testimonial .who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.testimonial .who span { display: block; font-weight: 500; color: var(--gray-500); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cdec; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; color: #90a8ca; flex-wrap: wrap; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 14px; }

/* ---------- Property detail page ---------- */
.breadcrumb { font-size: 13px; color: var(--gray-500); padding: 18px 0; }
.breadcrumb a:hover { text-decoration: underline; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; height: 460px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-main { grid-row: 1 / 3; }
.gallery-wrap { position: relative; }
.gallery-count {
  position: absolute; right: 20px; bottom: 20px;
  background: rgba(9,26,50,.75); color: #fff; padding: 8px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
}
.pd-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 32px; align-items: start; }
.pd-price { font-size: 34px; font-weight: 800; color: var(--navy); }
.pd-addr { font-size: 18px; color: var(--gray-700); margin: 6px 0 18px; }
.pd-specs { display: flex; gap: 28px; padding: 20px 0; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); margin-bottom: 24px; }
.pd-specs div strong { display: block; font-size: 22px; color: var(--navy); }
.pd-specs div span { font-size: 13px; color: var(--gray-500); }
.pd-section { margin-bottom: 32px; }
.pd-section h2 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.pd-section p { color: var(--gray-700); line-height: 1.7; font-size: 15px; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.fact-grid div { display: flex; justify-content: space-between; font-size: 14.5px; padding: 10px 0; border-bottom: 1px dashed var(--gray-300); }
.fact-grid div b { color: var(--gray-900); font-weight: 700; }
.fact-grid div span { color: var(--gray-500); }

.agent-card {
  position: sticky; top: 96px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.agent-card .agent { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.agent-card .agent .avatar { width: 52px; height: 52px; font-size: 18px; }
.agent-card .agent strong { display: block; font-size: 15px; color: var(--navy); }
.agent-card .agent span { font-size: 13px; color: var(--gray-500); }
.agent-card input, .agent-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; margin-bottom: 10px;
}
.agent-card textarea { resize: vertical; min-height: 90px; }
.agent-card .disclaimer { font-size: 11.5px; color: var(--gray-500); margin-top: 10px; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .map-panel { position: static; height: 340px; }
  .split .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .sell-cta { grid-template-columns: 1fr; padding: 36px; }
  .feature-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .agent-card { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery .g-main { grid-row: auto; grid-column: 1 / 3; height: 280px; }
  .gallery img { height: 160px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 22px; }
  .search-row { flex-direction: column; }
  .listing-grid, .feature-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .wrap { flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-main { grid-column: 1; height: 220px; }
  .gallery img { height: 120px; }
}

/* ---------- Rentals additions ---------- */
.mo { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.avail-line { font-size: 12.5px; color: var(--gray-500); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #2e9e63; display: inline-block; }
.pill-storage { background: #e7e9f5; color: #3a4480; }
.hero-compact { min-height: 380px; }
.hero-compact h1 { font-size: 40px; }
