/* Base */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
:root {
  --primary: #144E98;
  --secondary: #0f172a;
  --accent: #10b981;
  --muted: #f8fafc;
  --text: #0f172a;
  --text-light: #475569;
  --white: #fff;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  --home-hero-height: 300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #000;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Theme: same background and layout on all main pages (body.theme-main) */
.main-content-block,
body.theme-main .main-content-block {
  background: #e4e8f0;
  border-radius: 0;
  overflow: hidden;
  min-height: 40vh;
  padding: 0 24px 32px;
}
.main-content-block:has(.buy-calculator-section) {
  overflow-x: visible;
}
/* Other pages: one white block like home, headings inside white, content properly spread */
body:not(:has(#featured)) .main-content-block > main {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 32px 24px 40px;
  margin-top: 20px;
  overflow-x: hidden;
}
body:not(:has(#featured)) .main-content-block > main:has(.buy-calculator-section) {
  overflow-x: visible;
}
/* Same text length as bottom sections: container uses full main width so all text matches */
body:not(:has(#featured)) .main-content-block > main .container {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
/* Remove double white: inner content boxes blend into main white */
body:not(:has(#featured)) .main-content-block > main .container div[style*="box-shadow"] {
  background: transparent !important;
  box-shadow: none !important;
}
body:not(:has(#featured)) .main-content-block > main .container div[style*="background: white"],
body:not(:has(#featured)) .main-content-block > main .container div[style*="background:white"] {
  background: transparent !important;
}
/* Stretch light grey section backgrounds to 100% of white area on all pages */
body:not(:has(#featured)) .main-content-block > main .container div[style*="background: #f8fafc"][style*="padding: 30px"],
body:not(:has(#featured)) .main-content-block > main .container div[style*="background: #f8fafc"][style*="padding: 40px"],
body:not(:has(#featured)) .main-content-block > main .container div[style*="background:#f8fafc"][style*="padding: 30px"],
body:not(:has(#featured)) .main-content-block > main .container div[style*="background:#f8fafc"][style*="padding: 40px"] {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding-left: max(24px, calc((100vw - min(1200px, 92vw)) / 2)) !important;
  padding-right: max(24px, calc((100vw - min(1200px, 92vw)) / 2)) !important;
}
/* Keep mortgage calculator payment panel constrained instead of stretching full width */
.mortgage-calc-wrapper .mortgage-calc-layout > div[style*="background: #f8fafc"],
.mortgage-calc-wrapper .mortgage-calc-layout > div[style*="background:#f8fafc"] {
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Topbar (dark on black background for visibility) */
 .topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to right, #144E98, #144E98);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
}
/* Center header menu on non-home pages (pages with page-hero) */
body:has(.page-hero) .topbar {
  border-bottom: none;
}
body:has(.hero) .topbar {
  border-bottom: none;
}
body:has(.page-hero) .topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}
body:has(.page-hero) .topbar .brand { justify-self: start; }
body:has(.page-hero) .topbar .nav { justify-self: center; }
body:has(.page-hero) .topbar .nav-actions { justify-self: end; }
/* Bottom-of-topbar fade removed so no blur/band between topbar and header */
body:has(.page-hero) .topbar::after,
body:has(.hero) .topbar::after {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
}
.brand i { font-size: 22px; }

.nav ul { list-style: none; display: flex; gap: 18px; align-items: center; }
.nav a {
  padding: 6px 10px;
  font-weight: 500;
  color: #e2e8f0;
  transition: color 0.2s;
}
.nav a.active { color: #fff; }
.nav a:hover { color: #fff; }

/* Dropdown Menu */
.nav li {
  position: relative;
}
.nav li.has-dropdown > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 6px;
  font-size: 12px;
}
.nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.nav li:hover .dropdown,
.nav li.dropdown-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .dropdown li {
  display: block;
}
.nav .dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.nav .dropdown a:hover {
  background: #f8fafc linear-gradient(to right, #144E98, #144E98);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(to right, #144E98, #144E98);
  color: var(--white);
  box-shadow: var(--shadow);
}
#mortgage .btn[href="mortgage.html"] {
  padding: 12px 28px;
  font-size: 1rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(15,23,42,0.15);
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: none;
}
.topbar .nav-actions .btn.ghost {
  font-weight: 500;
}
.btn.ghost:hover {
  color: #fff;
  border-color: #fff;
}
.btn.full { width: 100%; }
/* Contact page Send Message + Get Pre-Approved page CTA: taller, more substantial */
#contactForm button[type="submit"],
#form .btn.full {
  padding: 16px 28px !important;
  font-size: 17px !important;
  font-weight: 600;
  min-height: 52px;
}
.btn.secondary { background: #64748b; color: #fff; }
.btn.danger { background: #dc2626; color: #fff; }
/* All primary buttons: same blue gradient across pages (override inline styles) */
.lead-capture-form button[type="submit"],
.lead-capture-form .btn.full { background: linear-gradient(to right, #144E98, #144E98) !important; color: #fff !important; }
#floatingSearchBtn { background: linear-gradient(to right, #144E98, #144E98) !important; color: #fff !important; }
.email-agent-btn { background: linear-gradient(to right, #144E98, #144E98) !important; color: #fff !important; }

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  box-sizing: border-box;
}
.hamburger span {
  display: block;
  width: 22px;
  min-width: 22px;
  height: 2px;
  min-height: 2px;
  background: currentColor;
  border-radius: 999px;
}

/* Floating search: desktop – show dropdown, hide hamburger; mobile overrides in media query */
.floating-search-bar {
  background: linear-gradient(to right, #144E98, #144E98) !important;
}
.floating-search-bar .floating-search-type {
  display: inline-block !important;
  min-width: 70px;
  max-width: 90px;
}
.floating-search-bar .floating-search-menu {
  display: none !important;
}

/* Floating search: input hidden until search icon clicked */
.floating-search-bar .floating-search-input-wrap {
  display: none !important;
}
.floating-search-bar .floating-search-input-wrap.show {
  display: block !important;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.floating-search-bar .brand img {
  height: 42px !important;
}

.floating-search-bar .nav ul li a {
  font-size: 16px !important;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  padding: 80px 0 60px;
  min-height: 500px;
  overflow: hidden;
  border-radius: 0px 0px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,1.00),
    rgba(0,0,0,0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 35%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 35%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.page-hero {
  position: relative;
  min-height: calc(var(--home-hero-height) * 1.5);
  height: auto;
  overflow: hidden;
  border-radius: 0;
  background-image: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1920');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
}
.page-hero .banner-slider {
  display: none;
}
.page-hero .container.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-hero .hero-copy .pill {
  margin-bottom: 0;
}
.page-hero .hero-copy h1 {
  margin-bottom: 0;
}
.page-hero .hero-copy p {
  margin-bottom: 0;
}
.page-hero .search-box {
  margin-top: 4px;
}
.page-hero .quick-links {
  margin-top: 4px;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,1.00),
    rgba(0,0,0,0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 35%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 35%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Remove top-edge overlay on header images so no blur/band is visible */
.hero::before,
.page-hero::before {
  display: none;
}

.page-hero::after {
  display: none;
}

.page-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,0.6) 100%
    );
  pointer-events: none;
}

.page-banner {
  position: absolute;
  inset: 0;
  background-image: url('https://i.imgur.com/CBpjYxB.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  display: none;
}



.banner-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.banner-slide.active {
  opacity: 1;
  animation: heroZoom 5s ease-in-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,0.4), rgba(29,78,216,0.4));
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 28px;
}
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
}
.hero-copy .pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 14px;
  font-weight: 600;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
}
@media (min-width: 769px) {
  .hero h1 { white-space: nowrap; }
}
.hero p {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
  text-align: center;
}

/* Header search: match propsolv1 .search-box structure and styles */
.search-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
  margin: 18px auto;
  gap: 10px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  color: var(--text);
}
.search-tabs { display: flex; gap: 8px; }
.search-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.search-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
/* Search row: input right = inward (concave), button left = outward (convex), touch smoothly */
.search-input {
  display: flex;
  max-width: 600px;
  width: 100%;
  gap: 0;
  background: transparent;
  overflow: visible;
}
.search-input input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  box-shadow: none;
  clip-path: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><clipPath id="inp" clipPathUnits="objectBoundingBox"><path d="M 0 0 L 1 0 Q 0.97 0.5 1 1 L 0 1 Z"/></clipPath></svg>#inp');
}
.search-input button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #144E98, #144E98);
  color: #fff;
  border: none;
  border-radius: 50px 50px 50px 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-left: -18px;
}
.search-input button:hover {
  background: linear-gradient(to right, #144E98, #144E98);
}
.quick-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.quick-links a { color: rgba(255,255,255,0.95); font-weight: 600; }

.stats { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 22px; }
.stats span { color: rgba(255,255,255,0.8); font-size: 14px; }

.hero-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 200px 1fr;
}
.card-image { background-size: cover; background-position: center; }
.card-body { padding: 16px; display: grid; gap: 8px; }
.label { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.label.sale { background: var(--primary); color: var(--white); }
.label.rent { background: var(--primary); color: var(--white); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; color: var(--text-light); font-size: 14px; }
.pill-row .card-share-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pill-row .card-share-link:hover { text-decoration: underline; }
.price { font-weight: 800; font-size: 20px; color: #000; }

/* Sections */
.section { padding: 40px 0; }
#mortgage.section {
  padding-top: 10px;
  padding-bottom: 10px;
  
}
.section.muted { background: var(--muted); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}
.section-header--centered {
  justify-content: center;
  text-align: center;
}
.section-header--centered > div {
  max-width: 640px;
  margin: 0 auto;
}

/* Home listings: remove background around listing cards except For Sale section */
body:has(#featured) .section.muted:has(.cards-grid) {
  background: transparent;
}
/* Home page featured block: match white curved card style used on buy.html */
body:has(#featured) #featured {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 32px 24px 40px;
  margin-top: 20px;
  overflow-x: hidden;
}
body:has(#featured) #sale ~ section.section.muted {
  background: #fff;
  border-radius: 0 0 24px 24px;
  padding: 32px 24px 40px;
  margin-top: 0;
  overflow-x: hidden;
}
.section-header h2 { font-size: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-weight: 700; }
.link { background: linear-gradient(to right, #144E98, #144E98); background-clip: text; -webkit-background-clip: text; color: transparent; font-weight: 700; }

/* Featured section: "See all for sale" as button */
#featured .section-header .link {
  display: inline-block;
  background: var(--primary) !important;
  background-clip: unset;
  -webkit-background-clip: unset;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(20, 78, 152, 0.25);
}
#featured .section-header .link:hover {
  box-shadow: 0 6px 20px rgba(20, 78, 152, 0.4);
  transform: translateY(-2px);
}

/* Listing pages: eyebrow = large font, rotating via JS; subtitle (h2) = 2x font */
body:has(.cards-grid) .eyebrow {
  font-size: 24px;
  font-weight: 800;
  color: #001550;
  display: inline-block;
}
body:has(.cards-grid) .section-header h2 {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
}
body:has(#featured) #featured .section-header h2,
body:has(#featured) #sale .section-header h2,
body:has(#featured) #sale ~ section.section.muted .section-header h2 {
  color: #64748b;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  body:has(#featured) #featured,
  body:has(#featured) #sale,
  body:has(#featured) #sale ~ section.section.muted {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }
  body:has(#featured) #featured .cards-grid .card .thumb,
  body:has(#featured) #sale .cards-grid .card .thumb,
  body:has(#featured) #sale ~ section.section.muted .cards-grid .card .thumb {
    min-height: 220px;
    background-size: cover;
    background-position: center;
  }
  body:has(#featured) #featured .cards-grid .card .thumb img,
  body:has(#featured) #sale .cards-grid .card .thumb img,
  body:has(#featured) #sale ~ section.section.muted .cards-grid .card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
body:has(#featured) #featured .section-header .eyebrow,
body:has(#featured) #sale .section-header .eyebrow,
body:has(#featured) #sale ~ section.section.muted .section-header .eyebrow {
    font-size: 19px;
    white-space: nowrap;
  }
  body:has(#featured) #featured .section-header h2,
  body:has(#featured) #sale .section-header h2,
  body:has(#featured) #sale ~ section.section.muted .section-header h2 {
    color: #64748b;
    font-size: 16px;
  }
  body:has(#featured) #featured .container {
    max-width: 100%;
    box-sizing: border-box;
  }
  body:has(#featured) #featured .cards-grid {
    min-width: 0;
  }
  body:has(#featured) #featured .cards-grid .card {
    min-width: 0;
  }
  body:has(#featured) #sale .container {
    max-width: 100%;
    box-sizing: border-box;
  }
  body:has(#featured) #sale .cards-grid {
    min-width: 0;
  }
  body:has(#featured) #sale .cards-grid .card {
    min-width: 0;
  }
  body:has(#featured) #sale ~ section.section.muted .container {
    max-width: 100%;
    box-sizing: border-box;
  }
  body:has(#featured) #sale ~ section.section.muted .cards-grid {
    min-width: 0;
  }
  body:has(#featured) #sale ~ section.section.muted .cards-grid .card {
    min-width: 0;
  }
  /* Other pages mobile: white background 100% width, content aligned like desktop */
  body:not(:has(#featured)) .main-content-block > main {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    padding: 32px 24px 40px;
  }
  body:not(:has(#featured)) .main-content-block > main .container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }
  /* Mortgage calculator mobile: inputs side by side, results below */
  .main-content-block > main .container > div:has(#results) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .main-content-block > main .container > div:has(#results) > div:first-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }
  .main-content-block > main .container > div:has(#results) > div:first-child > h3,
  .main-content-block > main .container > div:has(#results) > div:first-child > button {
    grid-column: 1 / -1 !important;
  }
  .listing-see-all-btn {
    font-size: 0.9375rem;
    padding: 13px 28px;
  }
}
.mortgage-calc-btn {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  font-size: 1rem;
}
.mortgage-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
}
/* Small spacing between mortgage breakdown labels and values */
#principalInterest,
#totalInterest,
#totalAmount {
  margin-left: 4px;
}
@media (max-width: 900px) {
  .mortgage-calc-layout {
    grid-template-columns: 1fr;
  }
  .mortgage-calc-layout > div:first-child {
    order: 1;
  }
  .mortgage-calc-layout > div:last-child {
    order: 2;
  }
}
@media (min-width: 901px) {
  /* Keep Payment Breakdown text on a single line on desktop */
  .mortgage-calc-wrapper .mortgage-calc-layout > div:last-child h3,
  .mortgage-calc-wrapper .mortgage-calc-layout > div:last-child span {
    white-space: nowrap;
  }
}
.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.cards-grid .card {
  border: none;
  box-shadow: none;
  border-radius: 6px;
  overflow: hidden;
}
.card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  height: auto;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: background-size 1s ease-in-out, filter 1s ease-in-out;
}
.cards-grid .card .thumb {
  border-radius: 8px;
}
.cards-grid .card:hover .thumb:not(:has(img)) {
  background-size: 115%;
  filter: brightness(1.12);
}
.card .thumb img,
.card .thumb .card-thumb-img {
  image-rendering: -webkit-optimize-contrast;
  transition: transform 1s ease-in-out, filter 1s ease-in-out;
  transform-origin: center center;
}
.cards-grid .card .thumb img,
.cards-grid .card .thumb .card-thumb-img {
  border-radius: 14px;
}
.cards-grid .card:hover .thumb img,
.cards-grid .card:hover .thumb .card-thumb-img {
  transform: scale(1.12);
  filter: brightness(1.12);
}
.card .thumb .label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  z-index: 10;
  text-transform: uppercase;
}
.card .body { padding: 14px; display: grid; gap: 6px; }
.card .body .label { display: none; }
.card .body h3 { color: #144E98; }
.card .meta { color: var(--text-light); font-size: 13px; }
.card .price { color: #144E98; font-weight: 800; font-size: 18px; }

/* See all listings button (footer gradient) at bottom of each listing category */
.listing-category-cta {
  margin-top: 24px;
  text-align: center;
}
.listing-see-all-btn {
  display: inline-block;
  background: linear-gradient(to right, #144E98, #144E98);
  color: #fff !important;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: 0 4px 14px rgba(18, 52, 88, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.listing-see-all-btn:focus {
  outline: none;
}
.listing-see-all-btn:hover {
  box-shadow: 0 6px 20px rgba(18, 52, 88, 0.45);
  transform: translateY(-1px);
}
body:has(#featured) #sale .listing-see-all-btn,
body:has(#featured) #sale ~ section.section.muted .listing-see-all-btn {
  color: #fff !important;
}
body:has(#featured) #featured .eyebrow,
body:has(#featured) #sale .eyebrow,
body:has(#featured) #sale ~ section.section.muted .eyebrow { background: linear-gradient(to right, #144E98, #144E98); background-clip: text; -webkit-background-clip: text; color: transparent; }
body:has(#featured) #sale {
  background: #fff;
  border-radius: 0;
  overflow-x: hidden;
  padding: 32px 24px 40px;
}
body:has(#featured) #sale .cards-grid .card {
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}

/* Full-width background for everything after For Rent (mortgage, contact, CTA) */
body:has(#featured) .main-content-block #mortgage,
body:has(#featured) .main-content-block #contact,
body:has(#featured) .main-content-block > section:last-of-type {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

/* Blue theme background for Financing + We're here to help sections */
body:has(#featured) .main-content-block #mortgage,
body:has(#featured) .main-content-block #contact {
  background: linear-gradient(to right, #144E98, #144E98);
}

/* Make text on blue Financing / Contact backgrounds white */
body:has(#featured) .main-content-block #mortgage,
body:has(#featured) .main-content-block #mortgage h2,
body:has(#featured) .main-content-block #mortgage p,
body:has(#featured) .main-content-block #mortgage .eyebrow,
body:has(#featured) .main-content-block #mortgage .pill-row,
body:has(#featured) .main-content-block #mortgage .pill-row span,
body:has(#featured) .main-content-block #mortgage .pill-row i,
body:has(#featured) .main-content-block #contact,
body:has(#featured) .main-content-block #contact h2,
body:has(#featured) .main-content-block #contact p,
body:has(#featured) .main-content-block #contact .eyebrow {
  color: #ffffff;
}
body:has(#featured) .main-content-block #mortgage .financing-benefits,
body:has(#featured) .main-content-block #mortgage .financing-benefits li,
body:has(#featured) .main-content-block #mortgage .financing-benefits li i {
  color: #ffffff;
}

/* Financing heading + subtext + pills: custom light grey on blue */
body:has(#featured) .main-content-block #mortgage h2,
body:has(#featured) .main-content-block #mortgage p,
body:has(#featured) .main-content-block #mortgage .pill-row,
body:has(#featured) .main-content-block #mortgage .pill-row span,
body:has(#featured) .main-content-block #mortgage .pill-row i {
  color: #d7dadd;
}

.mortgage-cta {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}
#mortgage .mortgage-cta > div:last-child {
  justify-self: end;
  margin-right: -24px;
}
#mortgage .mortgage-cta > div > p:nth-of-type(2) {
  font-size: 20px;
}
body:has(#featured) .mortgage-cta .eyebrow {
  background: linear-gradient(to right, #144E98, #144E98);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.mortgage-cta .pill-row { display: flex; gap: 10px; flex-wrap: wrap; color: var(--text-light); }
.mortgage-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.mortgage-card ul { list-style: none; display: grid; gap: 10px; margin: 10px 0; }
.mortgage-card li { display: flex; justify-content: space-between; }

/* Home contact: enhanced styling for Today's rates card */
.rates-card {
  background: radial-gradient(circle at top right, rgba(148, 163, 184, 0.18), #ffffff);
  position: relative;
  overflow: hidden;
}
.rates-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.rates-card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.rates-card-badge i {
  font-size: 10px;
}
.rates-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: #4b5563;
}
.rates-card-meta i {
  margin-right: 4px;
  color: #0f172a;
}
.rates-card-footnote {
  margin-top: 8px;
  font-size: 11px;
  color: #4b5563;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.rates-card-footnote i {
  margin-top: 2px;
  color: #0f172a;
}

/* Ensure mortgage rate texts are solid black for contrast */
#mortgage .mortgage-card h3,
#mortgage .mortgage-card li span,
#mortgage .mortgage-card li strong {
  color: #000000;
}

 .financing-benefits {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
}
#mortgage .financing-benefits {
  font-size: 20px;
}
.financing-benefits li i {
  color: var(--primary);
  margin-right: 6px;
}

/* (financing-map-note and special #mortgage button styles were removed on revert) */

/* List with us form (sell page) */
.section-header-desc { color: var(--text-light); max-width: 560px; margin-top: 12px; line-height: 1.6; }
.sell-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}
.sell-intro-heading .eyebrow { margin-bottom: 4px; }
.sell-intro-heading h2 { font-size: 28px; margin-bottom: 8px; }
.sell-intro-heading p { color: var(--text-light); line-height: 1.6; }
.sell-intro-side {
  background: linear-gradient(135deg, rgba(20, 78, 152, 0.06) 0%, rgba(20, 78, 152, 0.02) 100%);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 12px rgba(20, 78, 152, 0.08);
}
.sell-intro-side-text {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
.sell-intro-side-text a { color: var(--primary); font-weight: 600; }
.sell-intro-side-text a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .sell-intro { grid-template-columns: 1fr; gap: 20px; }
  .sell-intro-side { border-left-width: 4px; border-radius: 12px; }
}
.list-with-us-get-started-heading { text-align: center; margin-bottom: 24px; font-size: 28px; font-weight: 700; color: var(--text); }
.list-with-us-wrap { margin-top: 24px; }
.list-with-us-form { display: flex; flex-direction: column; gap: 0; }
.list-with-us-section {
  background: var(--muted);
  padding: 28px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border-left: 4px solid var(--primary);
}
.list-with-us-section:last-child { margin-bottom: 0; }
.list-with-us-section-accent {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  border-left-width: 4px;
  border-left-color: rgba(255,255,255,0.4);
  box-shadow: 0 4px 14px rgba(20, 78, 152, 0.25);
}
.list-with-us-section-accent .list-with-us-label,
.list-with-us-section-accent .list-with-us-hint,
.list-with-us-section-accent .list-with-us-contact-pref { color: rgba(255,255,255,0.95); }
.list-with-us-section-accent .list-with-us-input { background: transparent; border-bottom-color: rgba(255,255,255,0.6); color: var(--white); }
.list-with-us-section-accent .list-with-us-input::placeholder { color: rgba(255,255,255,0.5); }
.list-with-us-section-title {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.list-with-us-section-accent .list-with-us-section-title { border-bottom-color: rgba(255,255,255,0.25); }
.list-with-us-num { font-weight: 700; opacity: 0.95; font-size: 22px; }
.list-with-us-hint { font-size: 14px; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
.list-with-us-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.list-with-us-row.list-with-us-full { grid-column: 1 / -1; }
.list-with-us-row { display: flex; flex-direction: column; gap: 6px; }
.list-with-us-label { font-size: 14px; font-weight: 600; }
.list-with-us-input {
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.list-with-us-input:focus { outline: none; border-bottom-color: var(--primary); }
.list-with-us-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.list-with-us-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 78, 152, 0.12); }
.list-with-us-contact-pref { margin-top: 18px; margin-bottom: 10px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.list-with-us-checkrow { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.list-with-us-checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 22px; }
.list-with-us-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.list-with-us-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.list-with-us-section-accent .list-with-us-check { color: var(--white); }
.list-with-us-section-next {
  background: linear-gradient(135deg, #fef9e7 0%, #fef3c7 100%);
  border-color: #e2e8f0;
  border-left-color: var(--primary);
}
.list-with-us-next-text { margin-bottom: 12px; color: var(--text); line-height: 1.6; }
.list-with-us-docs { margin: 12px 0 20px; padding-left: 24px; color: var(--text); line-height: 1.6; }
.list-with-us-submit {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(20, 78, 152, 0.3);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.list-with-us-submit:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(20, 78, 152, 0.35); }
.list-with-us-message { margin-bottom: 12px; padding: 12px; border-radius: 8px; display: none; }
.list-with-us-message.show { display: block; }
.list-with-us-message.success { background: #d1fae5; color: #065f46; }
.list-with-us-message.error { background: #fee2e2; color: #991b1b; }
@media (max-width: 768px) {
  .list-with-us-section { padding: 20px 20px; }
  .list-with-us-section-title { font-size: 18px; }
  .list-with-us-num { font-size: 18px; }
  .list-with-us-fields { grid-template-columns: 1fr; }
  .list-with-us-checkgrid { grid-template-columns: 1fr; }
  /* Pre-approval page: form fill screen on mobile like List with us */
  .main-content-block main .container:has(#preApprovalForm) {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .main-content-block main .container div:has(#preApprovalForm) {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
}

/* Buy page sections */
.buy-browse-section { padding-top: 32px; }
.buy-section-title { text-align: center; font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.buy-section-subtitle { text-align: center; color: var(--text-light); font-size: 16px; margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }
.buy-browse-grid.cards-grid { margin-bottom: 20px; }
.buy-view-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: 8px;
  background: #fff; color: var(--text); font-weight: 600; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.buy-view-more-btn:hover { color: var(--primary); }
.listing-category-cta { text-align: center; margin-top: 16px; }

.buy-journey-section { background: var(--muted); padding: 48px 0; }
.buy-journey-steps {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px 16px; margin-top: 40px;
}
.buy-journey-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 260px;
}
.buy-journey-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px;
}
.buy-journey-img {
  width: 240px; height: 240px; border-radius: 50%; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(20, 78, 152, 0.18); border: 3px solid rgba(20, 78, 152, 0.18);
  flex-shrink: 0;
  background: rgba(20, 78, 152, 0.06);
}
.buy-journey-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.buy-journey-step-title { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; max-width: 220px; }
.buy-journey-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 78, 152, 0.12) 0%, rgba(20, 78, 152, 0.06) 100%);
  color: var(--primary); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(20, 78, 152, 0.2);
  box-shadow: 0 2px 8px rgba(20, 78, 152, 0.08);
}
@media (max-width: 768px) {
  .buy-journey-arrow { display: none; }
  .buy-journey-steps { gap: 24px; }
}

.buy-calculator-cta {
  position: relative; min-height: 280px; display: flex; align-items: center; padding: 48px 0;
  overflow: hidden;
}
.buy-calculator-cta-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.buy-calculator-cta-overlay {
  position: absolute; inset: 0; background: rgba(20, 78, 152, 0.85);
}
.buy-calculator-cta-inner { position: relative; z-index: 1; }
.buy-calculator-cta-title {
  font-size: clamp(22px, 4vw, 28px); font-weight: 700; color: #fff; max-width: 480px; margin-bottom: 24px; line-height: 1.3;
}
.buy-calculator-cta-btn {
  background: #fff !important; color: var(--primary) !important; padding: 14px 28px; font-weight: 700; border: none; border-radius: 8px;
}
.buy-calculator-cta-btn:hover { filter: brightness(0.96); }

.buy-calculator-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 24px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.buy-calculator-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=1920');
  background-size: cover;
  background-position: center;
}
.buy-calculator-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 78, 152, 0.85);
}
.buy-calculator-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
.buy-calculator-copy {
  max-width: 600px;
}
.buy-calculator-title {
  font-size: clamp(28px, 5.5vw, 40px);
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.25;
}
.buy-calculator-widget {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 32px;
  max-width: 560px;
  margin-left: auto;
}
.buy-calculator-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
.buy-calculator-inner > div {
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
}
.buy-calculator-inner > div:first-child {
  background: #fff;
  border: 1px solid #e2e8f0;
}
.buy-calculator-disclaimer {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.buy-calculator-disclaimer a {
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 900px) {
  .buy-calculator-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .buy-calculator-copy {
    max-width: none;
  }
  .buy-calculator-title { text-align: center; }
  .buy-calculator-widget {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}
@media (max-width: 768px) {
  .buy-calculator-inner {
    grid-template-columns: 1fr;
  }
}

.buy-why-section { padding: 56px 0; }
.buy-why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.buy-why-content .buy-section-title { text-align: left; }
.buy-why-content .buy-section-subtitle { text-align: left; margin-left: 0; margin-right: 0; margin-bottom: 28px; }
.buy-why-list { list-style: none; margin: 0; padding: 0; }
.buy-why-list li {
  display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start;
}
.buy-why-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: rgba(20, 78, 152, 0.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.buy-why-item-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.buy-why-item-desc { font-size: 15px; color: var(--text-light); line-height: 1.5; margin: 0; }
.buy-why-image { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.buy-why-image img { width: 100%; height: auto; display: block; object-fit: cover; min-height: 360px; }
@media (max-width: 900px) {
  .buy-why-grid { grid-template-columns: 1fr; }
  .buy-why-image { order: -1; max-height: 320px; }
  .buy-why-image img { min-height: 280px; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.contact-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--text);
  font-weight: 600;
}
.contact-form {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
}
.contact-form textarea { resize: vertical; }
.contact-form button { border: none; }

.contact-visual {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 0;
}
.contact-photo-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.contact-photo-small {
  width: 160px;
  height: 110px;
}
.contact-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.mortgage-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mortgage-photo img {
  width: 115%;
  max-width: none;
  margin-left: -7%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 960px) {
  .contact-visual {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

/* Footer */
.footer { background: linear-gradient(to right, #144E98, #144E98); color: #e2e8f0; padding: 40px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.footer h4 { margin-bottom: 10px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer .brand img { height: 30px; max-height: 30px; width: auto; max-width: 120px; vertical-align: middle; margin-right: 8px; object-fit: contain; }
.social { display: flex; gap: 10px; }
.social a { color: #e2e8f0; font-size: 18px; }
.footer-contact-p { margin-top: 10px; font-size: 0.9rem; }
.footer-contact-p a { color: rgba(255,255,255,0.8); }
.footer-bottom { text-align: center; margin-top: 16px; color: #94a3b8; font-size: 14px; }

/* Lead capture section background: full width on all pages */
section:has(.lead-capture-form) {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: #f8fafc !important;
  color: var(--text);
  padding-top: 36px !important;
}
body:has(#featured) section:has(.lead-capture-form) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
section:has(.lead-capture-form) > .container > div > h2 {
  color: #144E98 !important;
}
section:has(.lead-capture-form) > .container > div > p:first-of-type {
  color: #000 !important;
}
/* No space between lead capture and footer: remove main-content-block bottom padding */
.main-content-block:has(.lead-capture-form) {
  padding-bottom: 0 !important;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  overflow-y: auto;
}
.modal.show { display: flex; }
.modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  background: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover {
  background: #cbd5e1;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}
.modal-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-right {
  display: flex;
  flex-direction: column;
}
.modal-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.nav-btn {
  flex: 1;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--primary);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.modal-image {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin: 10px 0;
}
.modal-header h3 { margin: 4px 0; }

/* Booking Form */
.booking-form {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.booking-form h3 {
  margin: 0 0 16px 0;
  background: linear-gradient(to right, #144E98, #144E98);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-form h3 i {
  font-size: 18px;
}
.booking-form .form-group {
  margin-bottom: 16px;
}
.booking-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.booking-form input,
.booking-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}
.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.booking-form textarea {
  resize: vertical;
  min-height: 100px;
}
.booking-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}
.booking-form button[type="submit"]:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
}
.booking-form button[type="submit"]:active {
  transform: translateY(0);
}
.modal-mortgage-calc button[type="button"] {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  box-sizing: border-box;
  background: #144E98;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.booking-form .form-success {
  display: none;
  padding: 12px;
  background: #ecfdf3;
  border: 1px solid #15803d;
  border-radius: 8px;
  color: #15803d;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}
.booking-form .form-success.show {
  display: block;
}
.booking-form .form-error {
  display: none;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #dc2626;
  border-radius: 8px;
  color: #dc2626;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}
.booking-form .form-error.show {
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .mortgage-cta, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 30px;
  }
  .hero .container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .hero-grid {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .hero-copy .pill {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .hero-copy h1 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
  }
  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
    width: 100%;
  }
  .search-box {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .search-input button {
    padding: 1rem 1.25rem;
  }
  .search-tabs {
    justify-content: center;
    display: flex;
  }
  .quick-links {
    justify-content: center;
    display: flex;
    width: 100%;
  }
  .stats {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: 100%;
  }
}

/* Mobile Dropdown Menu */
@media (max-width: 900px) {
  /* Topbar: overlay over header image with logo + menu only (pages with hero) */
  body:has(.hero) .topbar,
  body:has(.page-hero) .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none !important;
    z-index: 101;
  }
  body:has(.page-hero) .topbar::after,
  body:has(.hero) .topbar::after {
    display: none;
  }
  body:has(.hero) .topbar-inner,
  body:has(.page-hero) .topbar-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
  }
  body:has(.hero) .topbar .nav,
  body:has(.page-hero) .topbar .nav {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    overflow: visible;
  }
  body:has(.hero) .topbar .nav-actions .btn.ghost,
  body:has(.hero) .topbar .nav-actions a:first-child {
    display: none;
  }
  body:has(.hero) .topbar .brand img,
  body:has(.page-hero) .topbar .brand img {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  }
  body:has(.hero) .topbar .hamburger,
  body:has(.page-hero) .topbar .hamburger {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
  }
  /* Hero / page-hero: padding-top so content clears overlay topbar */
  .hero,
  .page-hero {
    padding-top: 72px;
  }
  .hero .container,
  .page-hero .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Mobile: hide pill on other pages (page-hero only) */
  .page-hero .hero-copy .pill {
    display: none;
  }
  /* Floating search bar: mobile – hamburger instead of dropdown, button icon only */
  .floating-search-bar .floating-search-type {
    display: none !important;
  }
  .floating-search-bar .floating-search-menu {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 10px;
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    background: transparent;
    border-radius: 10px;
  }
  .floating-search-bar .floating-search-menu span {
    display: block !important;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }
  .floating-search-bar .floating-search-btn-text {
    display: none;
  }
  .floating-search-bar #floatingSearchBtn {
    padding: 10px 12px;
  }
  .floating-search-bar #floatingSearchBtn .fa-search {
    margin: 0;
  }
  /* Mobile: no curve on home page header image */
  .hero {
    border-radius: 0;
  }
  /* Mobile: reduce curve on main content to 30px – home and non-home */
  /* Search: padding left/right, centralize, reduce height */
  .search-box {
    padding: 10px 20px 12px;
    margin: 10px 0 8px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    box-sizing: border-box;
  }
  .search-box .search-tabs {
    margin-bottom: 6px;
    gap: 6px;
  }
  .search-box .search-tab {
    padding: 6px 8px;
    font-size: 13px;
  }
  .search-box .search-input {
    flex-direction: row;
    padding: 6px 8px;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }
  .search-box .search-input input {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
  }
  .search-box .search-input button {
    flex: 0 0 auto;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 50px 50px 50px 50px;
    justify-content: center;
    background: linear-gradient(to right, #144E98, #144E98);
    color: #fff;
  }
  .search-box .search-input button:hover {
    background: linear-gradient(to right, #144E98, #144E98);
  }
  .search-box .quick-links {
    margin-top: 6px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 11px;
  }
  .search-box .quick-links a {
    font-size: 11px;
    white-space: nowrap;
  }
  .search-box .quick-links a:last-child {
    flex-basis: 100%;
    text-align: center;
  }
  .nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  .nav li.has-dropdown > a::after {
    display: none;
  }
  .nav ul.show .dropdown {
    display: block;
  }
  .nav .dropdown li {
    padding-left: 20px;
  }
  .nav .dropdown a {
    padding: 8px 16px;
    font-size: 14px;
  }
  .modal-content {
    max-width: 100%;
    padding: 16px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .modal-image {
    height: 250px;
  }
  .booking-form {
    padding: 16px;
  }
  /* Mobile hamburger dropdown (top header only) */
  .topbar .nav ul { position: absolute; top: 68px; right: 16px; background: var(--white); flex-direction: column; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; display: none; box-shadow: var(--shadow); width: 250px; max-height: 80vh; overflow-y: auto; }
  .topbar .nav ul.show { display: flex; }
  .topbar .nav ul a { color: var(--text); }
  .topbar .nav ul a:hover,
  .topbar .nav ul a.active { background: linear-gradient(to right, #144E98, #144E98); background-clip: text; -webkit-background-clip: text; color: transparent; }
  .hamburger { display: inline-flex; }
  .topbar .nav { width: auto; flex: 0 0 auto; }
  .topbar-inner { flex-wrap: nowrap; }
  .topbar .brand { flex-shrink: 0; }
  .topbar .nav-actions { flex-shrink: 0; }
  
  /* Mobile dropdown menu styles */
  .topbar .nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 8px 0 0 0;
    background: transparent;
    display: none;
  }
  .topbar .nav ul.show .has-dropdown.active .dropdown,
  .topbar .nav .has-dropdown:hover .dropdown {
    display: block;
  }
  .topbar .nav .dropdown li {
    padding-left: 20px;
  }
  .topbar .nav .dropdown a {
    padding: 8px 16px;
    font-size: 14px;
  }
  .hero .container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .hero-grid {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .hero-copy .pill {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .hero-copy h1 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
  }
  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
    width: 100%;
  }
  .search-box {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .search-input button {
    padding: 1rem 1.25rem;
  }
  .search-tabs {
    justify-content: center;
    display: flex;
  }
  .quick-links {
    justify-content: center;
    display: flex;
    width: 100%;
  }
  .stats {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: 100%;
  }
  
  /* Floating search bar mobile fixes */
  .floating-search-bar {
    max-width: 100% !important;
    width: 95% !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    opacity: 0.90;
    border-radius: 18px;
    padding: 30px 0;
  }
  .floating-search-bar .container {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 0 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .floating-search-bar .brand {
    width: auto;
    text-align: left;
  }
  .floating-search-bar .nav {
    width: 1%;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    overflow: visible !important;
  }
  .floating-search-bar .nav ul {
    justify-content: flex-start;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }
  .floating-search-bar .nav ul li a {
    font-size: 11px !important;
  }
  /* Floating search bar: mobile – nav menu same as header hamburger dropdown */
  .floating-search-bar #floatingNavMenu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 8px;
    flex-direction: column;
    padding: 14px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 1002;
    width: 250px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .floating-search-bar #floatingNavMenu.show {
    display: flex !important;
  }
  .floating-search-bar #floatingNavMenu li {
    display: block;
    width: 100%;
  }
  .floating-search-bar #floatingNavMenu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px !important;
    color: var(--text) !important;
    border-radius: 0;
  }
  .floating-search-bar #floatingNavMenu li a:hover,
  .floating-search-bar #floatingNavMenu li a.active {
    background: linear-gradient(to right, #144E98, #144E98) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
  }
  .floating-search-bar .nav::-webkit-scrollbar { display: none; }
  .floating-search-bar .nav { scrollbar-width: none; }
  .floating-search-bar > .container > div:last-child {
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .floating-search-bar > .container > div:last-child > div:first-child {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .floating-search-bar input {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .floating-search-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
  }
  
  /* Lead capture section background: black on mobile */
  section:has(.lead-capture-form) {
  }
  /* Lead capture form mobile fixes */
  .lead-capture-form {
    padding: 20px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  .lead-capture-form > div:first-child {
    grid-template-columns: 1fr !important;
  }
  .lead-capture-form input,
  .lead-capture-form select,
  .lead-capture-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ========== FAQ page ========== */
.faq-item { margin-bottom: 15px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.faq-question { padding: 20px; background: #f8fafc; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-question:hover { background: #f1f5f9; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active .faq-answer { padding: 20px; max-height: 500px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* ========== Admin page ========== */
body:has(.admin-wrap),
body:has(.login-box) { background: #f8fafc; }
.admin-wrap { max-width: 1100px; margin: 40px auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 24px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-header h1 { margin: 0; color: #0f172a; }
.login-box { max-width: 400px; margin: 120px auto; background: #fff; padding: 24px; border-radius: 12px; box-shadow: var(--shadow); }
.admin-wrap input,
.admin-wrap textarea,
.admin-wrap select,
.login-box input,
.login-box textarea,
.login-box select { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.admin-wrap label,
.login-box label { font-weight: 600; margin-top: 10px; display: block; color: #0f172a; }
.admin-wrap button,
.login-box button { border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.admin-wrap .btn,
.login-box .btn { background: var(--primary); color: #fff; }
.admin-wrap .btn.secondary,
.login-box .btn.secondary { background: #64748b; color: #fff; }
.admin-wrap .btn.danger,
.login-box .btn.danger { background: #dc2626; color: #fff; }
.admin-wrap .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.admin-wrap .card-box { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; background: #fff; }
.admin-wrap .card-box h4 { margin: 0 0 6px; }
.admin-wrap .flex,
.login-box .flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-wrap .mt,
.login-box .mt { margin-top: 14px; }
.admin-wrap .hidden,
.login-box .hidden { display: none; }

/* ========== Booking calendar page ========== */
body:has(.calendar-container) { color: #fff; }
body:has(.calendar-container) .calendar-header h1 { color: #fff !important; }
body:has(.calendar-container) .calendar-month { color: #fff; }
body:has(.calendar-container) .calendar-day-header { color: #fff; }
body:has(.calendar-container) .stat-card,
body:has(.calendar-container) .calendar-grid .calendar-day,
body:has(.calendar-container) .bookings-list { color: var(--text); }
body:has(.calendar-container) .stat-card .stat-card-label { color: var(--text-light); }
body:has(.calendar-container) .stat-card .stat-card-number { background: linear-gradient(to right, #144E98, #144E98); background-clip: text; -webkit-background-clip: text; color: transparent; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
}
.modal-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: min(520px, 100%);
  padding: 24px;
  position: relative;
}
.modal-card h3 {
  margin: 0 0 16px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
}
.modal-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.modal-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}
.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}
.modal-form textarea { min-height: 90px; resize: vertical; }
.modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.calendar-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 20px;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}
.calendar-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.calendar-nav button {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.calendar-nav button:hover {
  background: var(--primary);
}
.calendar-month {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}
.calendar-day-header {
  text-align: center;
  font-weight: 700;
  color: var(--text-light);
  padding: 10px;
  font-size: 14px;
}
.calendar-day {
  aspect-ratio: 1;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  position: relative;
}
.calendar-day:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.calendar-day.other-month {
  opacity: 0.3;
  background: #f8fafc;
}
.calendar-day.today {
  border-color: var(--primary);
  background: #eff6ff;
}
.calendar-day.has-booking {
  background: #fef3c7;
  border-color: #f59e0b;
}
.calendar-day-number {
  font-weight: 600;
  margin-bottom: 5px;
}
.calendar-day-booking-count {
  font-size: 11px;
  color: #f59e0b;
  font-weight: 600;
}
.bookings-list {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.bookings-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
.bookings-list-header .btn {
  background: var(--primary);
}
body:has(.calendar-container) .bookings-list-header .btn {
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
}
.bookings-list h2 {
  color: var(--secondary);
  font-size: 24px;
}
.booking-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s;
}
.booking-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}
.booking-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.booking-actions button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
}
.booking-actions button.edit { background: linear-gradient(to right, #144E98, #144E98); background-clip: text; -webkit-background-clip: text; color: transparent; border-color: #bfdbfe; }
.booking-actions button.delete { color: #dc2626; border-color: #fecaca; }
.booking-date-time {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(to right, #144E98, #144E98);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.booking-property {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  margin: 5px 0;
}
.booking-details {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
  margin-top: 10px;
  color: var(--text-light);
  font-size: 14px;
}
.booking-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-detail-item i {
  background: linear-gradient(to right, #144E98, #144E98);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card-number {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(to right, #144E98, #144E98);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 10px 0;
}
.stat-card-label {
  color: var(--text-light);
  font-size: 14px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}
@media (max-width: 768px) {
  .calendar-container {
    margin: 20px auto;
    padding: 16px 8px;
  }
  .calendar-grid {
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .calendar-day {
    padding: 5px;
    font-size: 12px;
  }
  .calendar-day-number {
    font-size: 14px;
  }
}

/* Our Agents page: showcase with circular photos, alternating layout */
.agents-showcase {
  padding: 48px 0 56px;
}
.agents-showcase .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}
.agent-row:last-child {
  margin-bottom: 0;
}
.agent-row--left {
  flex-direction: row;
}
.agent-row--right {
  flex-direction: row-reverse;
}
.agent-photo-wrap {
  flex-shrink: 0;
  position: relative;
}
.agent-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 16px 48px rgba(20, 78, 152, 0.18), 0 0 0 4px rgba(255,255,255,0.9), 0 0 0 6px rgba(20, 78, 152, 0.12);
  border: 3px solid rgba(20, 78, 152, 0.15);
}
.agent-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #0f172a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.agent-row--left .agent-badge,
.agent-row--right .agent-badge {
  left: 50%;
  transform: translateX(-50%);
}
.agent-bio {
  flex: 1;
  min-width: 0;
}
.agent-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.agent-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
  margin: 0 0 14px;
}
.agent-desc:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .agent-row,
  .agent-row--right {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }
  .agent-photo {
    width: 200px;
    height: 200px;
  }
  .agent-name {
    font-size: 22px;
    text-align: center;
  }
  .agent-bio {
    text-align: center;
  }
}

/* Properties Across Trinidad & Tobago: full-width background */
body:has(#featured) .section.muted:has(.regions-map-block) {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
body:has(#featured) .section.muted:has(.regions-map-block)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(https://www.propsolvrealty.com/uploads/Trinidad_and_Tobago.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
body:has(#featured) .section.muted:has(.regions-map-block) > .container.regions-map-block {
  position: relative;
  z-index: 1;
}
body:has(#featured) .section.muted:has(.regions-map-block) .regions-map-title,
body:has(#featured) .section.muted:has(.regions-map-block) .regions-map-eyebrow,
body:has(#featured) .section.muted:has(.regions-map-block) .regions-map-meta,
body:has(#featured) .section.muted:has(.regions-map-block) .regions-map-desc {
  color: #ffffff !important;
}
body:has(#featured) .section.muted:has(.regions-map-block) .regions-map-highlight-pills span {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
}
body:has(#featured) .section.muted:has(.regions-map-block) .regions-map-highlight-pills span i {
  color: #e2e8f0;
}
body:has(#featured) .section.muted:has(.regions-map-block) .regions-map-desc {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.85));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.55);
}

/* Explore by Regions: inside listings section (same curved background) */
.regions-map-block {
  margin-top: 48px;
}
.regions-map-header {
  text-align: left;
  margin-bottom: 28px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(37, 99, 235, 0.3));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}
.regions-map-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.regions-map-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.regions-map-desc {
  font-size: 15px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}
.regions-map-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}
.regions-map-highlight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.regions-map-highlight-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 78, 152, 0.06);
  color: var(--text);
}
.regions-map-highlight-pills span i {
  color: var(--primary);
}
.regions-map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
  position: relative;
}
.regions-compass-wrap {
  position: absolute;
  left: calc(100% - 340px - 80px - 80px);
  top: calc(50% + 50px);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.regions-compass-wrap .regions-compass {
  pointer-events: auto;
}
.regions-compass {
  cursor: default;
  transition: transform 0.4s ease;
}
.regions-compass:hover {
  transform: scale(1.08);
}
.regions-compass:hover .regions-compass-needle {
  animation: compass-spin 3s linear infinite;
}
.regions-compass-svg {
  display: block;
}
.regions-compass-ring {
  transition: stroke-opacity 0.3s ease;
}
.regions-compass:hover .regions-compass-ring {
  stroke-opacity: 1;
}
.regions-compass-needle {
  transform-origin: 50% 50%;
  transition: transform 0.6s ease;
  animation: compass-spin 3s linear infinite;
}
@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.regions-map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.regions-map-img-wrap {
  position: relative;
  width: 100%;
  display: block;
}
.regions-map-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.regions-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.regions-map-overlay .region-area {
  pointer-events: auto;
  cursor: pointer;
}
.regions-map-overlay .region-area .region-path {
  fill: transparent;
  transition: fill 0.2s ease;
  cursor: pointer;
}
.regions-map-overlay .region-area:hover .region-path {
  fill: rgba(255, 255, 255, 0.45);
}
.regions-map-overlay .region-area:focus .region-path {
  fill: rgba(255, 255, 255, 0.35);
}
.regions-map-overlay .region-area.is-active .region-path {
  fill: rgba(255, 255, 255, 0.55);
  stroke: #ffffff;
  stroke-width: 1.5;
}

.region-popup {
  position: absolute;
  z-index: 3;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.region-popup.visible {
  opacity: 1;
  transform: translate(-50%, -14px) scale(1);
}
.region-popup strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.region-popup span {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}

.regions-side-panel {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}
.regions-count-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.regions-count-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 20px;
}
.regions-count-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.regions-map-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
}
.region-count-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.region-count-card:hover {
  box-shadow: 0 8px 24px rgba(20, 78, 152, 0.12);
  border-color: var(--primary);
}
.region-count-card.is-active {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.3);
  transform: translateY(-2px);
}
.region-count-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.region-count-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Region-specific colors for Listings by Region cards */
.region-count-card {
  color: #ffffff;
}
.region-count-card .region-count-num,
.region-count-card .region-count-label {
  color: #ffffff;
}
.region-count-card[data-region="North West"] {
  background: #144E98;
}
.region-count-card[data-region="South West"] {
  background: #043A77;
}
.region-count-card[data-region="North East"] {
  background: #043A77;
}
.region-count-card[data-region="South East"] {
  background: #144E98;
}
.region-count-card[data-region="Central"] {
  background: #A0A0A0;
}
.region-count-card[data-region="Tobago"] {
  background: #A0A0A0;
}
@media (max-width: 900px) {
  .regions-map-layout {
    grid-template-columns: 1fr;
  }
  .regions-compass-wrap {
    display: none;
  }
  .regions-side-panel {
    order: -1;
  }
  .regions-count-grid {
    grid-template-columns: 1fr;
  }
}

.reviews-marquee-section {
  width: 100vw;
  position: relative;
  left: 0;
  right: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: transparent;
  overflow: hidden;
  padding: 18px 0;
}
.reviews-marquee-track {
  display: inline-flex;
  align-items: stretch;
  gap: 16px;
  animation: reviews-marquee 55s linear infinite;
}
.reviews-marquee-track:hover {
  animation-play-state: paused;
}
.review-pill {
  min-width: 260px;
  max-width: 320px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}
.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.reviewer-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(248, 250, 252, 0.9);
}
.reviewer-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reviewer-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.reviewer-extra {
  font-size: 13px;
  color: var(--text-light);
}
.review-stars {
  margin: 4px 0 8px;
  font-size: 14px;
  color: #facc15;
}
.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.reviews-marquee-section .fa-star {
  color: #facc15;
}

@keyframes reviews-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== Listings filter bar (buy, rent, listings pages) – professional ========== */
.listings-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
  letter-spacing: 0.01em;
}
.listings-filter-view-toggle {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
}
.listings-filter-view-toggle button {
  padding: 11px 16px;
  border: none;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.2s ease;
}
.listings-filter-view-toggle button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 78, 152, 0.35);
}
.listings-filter-view-toggle button:hover:not(.active) {
  background: #f1f5f9;
  color: var(--primary);
}
.listings-filter-drop {
  position: relative;
}
.listings-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.listings-filter-btn:hover {
  border-color: rgba(20, 78, 152, 0.4);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(20, 78, 152, 0.1);
}
.listings-filter-btn.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(20, 78, 152, 0.1) 0%, rgba(20, 78, 152, 0.06) 100%);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(20, 78, 152, 0.15);
}
.listings-filter-btn i.fa-chevron-down {
  font-size: 10px;
  opacity: 0.85;
  transition: transform 0.25s ease;
}
.listings-filter-drop:has(.listings-filter-panel.open) .listings-filter-btn i.fa-chevron-down {
  transform: rotate(180deg);
}
.listings-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  z-index: 100;
  padding: 20px;
  display: none;
  animation: listingsPanelFade 0.2s ease;
}
@keyframes listingsPanelFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.listings-filter-panel.open {
  display: block;
}
.listings-filter-panel h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.listings-filter-price-slider {
  margin: 14px 0;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  position: relative;
}
.listings-filter-price-slider .track {
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(20, 78, 152, 0.5) 100%);
  opacity: 0.4;
}
.listings-filter-price-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.listings-filter-price-inputs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}
.listings-filter-price-inputs input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.listings-filter-price-inputs input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 78, 152, 0.12);
}

@media (max-width: 768px) {
  /* Mobile: show all filter panels as popout modals, keep bar layout */
  .listings-filter-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    top: auto;
    width: calc(100vw - 32px);
    max-width: 480px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    z-index: 1100;
  }
  /* Ensure Property Type panel also behaves as a full popout */
  #listPanelPropertyType {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    top: auto;
    width: calc(100vw - 32px);
    max-width: 480px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1100;
  }
  /* Mobile: adjust Price Min/Max layout and slider usability */
  .listings-filter-price-slider {
    height: 24px;
  }
  .listings-filter-price-slider input[type="range"] {
    opacity: 1;
    height: 24px;
  }
  /* Mobile: in any Price panel, stack Max below Min */
  .listings-filter-price-inputs {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 8px;
  }
  .listings-filter-price-inputs input {
    flex: 1 1 auto;
    width: 100%;
  }
  .listings-filter-price-inputs span {
    display: none;
  }
}
.listings-filter-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.listings-filter-type-btn {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.listings-filter-type-btn:hover {
  border-color: rgba(20, 78, 152, 0.5);
  color: var(--primary);
  background: rgba(20, 78, 152, 0.04);
}
.listings-filter-type-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #0d3a7a 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(20, 78, 152, 0.3);
}
.listings-filter-beds-baths {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.listings-filter-beds-baths .row-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.listings-filter-beds-baths .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.listings-filter-beds-baths .chip {
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.listings-filter-beds-baths .chip:hover {
  border-color: rgba(20, 78, 152, 0.5);
  color: var(--primary);
  background: rgba(20, 78, 152, 0.04);
}
.listings-filter-beds-baths .chip.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(20, 78, 152, 0.14) 0%, rgba(20, 78, 152, 0.08) 100%);
  color: var(--primary);
  box-shadow: 0 1px 6px rgba(20, 78, 152, 0.15);
}
.listings-filter-panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.listings-filter-panel-actions button {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.listings-filter-panel-actions .reset-btn {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.listings-filter-panel-actions .reset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(20, 78, 152, 0.04);
}
.listings-filter-panel-actions .done-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3a7a 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 78, 152, 0.35);
}
.listings-filter-panel-actions .done-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(20, 78, 152, 0.4);
}
.listings-filter-more {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.listings-filter-more:hover {
  border-color: rgba(20, 78, 152, 0.4);
  color: var(--primary);
  background: #f8fafc;
}
.listings-sort-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.listings-sort-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}
.listings-sort-wrap select {
  padding: 10px 14px 10px 36px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat left 12px center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.listings-sort-wrap select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 78, 152, 0.1);
}

