/* ==========================================================================
   Town Square Realtors — Global Stylesheet
   Palette: warm neutrals + a single elegant accent (deep bronze/gold)
   ========================================================================== */

:root {
  --ev-ink: #14171a;
  --ev-ink-soft: #3d444b;
  --ev-muted: #6b7480;
  --ev-line: #e6e3dd;
  --ev-bg: #ffffff;
  --ev-bg-alt: #f7f5f1;
  --ev-bg-deep: #10161c;
  --ev-accent: #b08347;
  --ev-accent-dark: #8f6832;
  --ev-accent-soft: rgba(176, 131, 71, 0.12);
  --ev-radius: 14px;
  --ev-radius-lg: 22px;
  --ev-shadow-sm: 0 2px 10px rgba(20, 23, 26, 0.05);
  --ev-shadow: 0 12px 34px rgba(20, 23, 26, 0.09);
  --ev-shadow-lg: 0 26px 60px rgba(20, 23, 26, 0.16);
  --ev-transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  color: var(--ev-ink-soft);
  background: var(--ev-bg);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-brand {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  color: var(--ev-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p {
  text-align: justify;
}

#about-us p.lead {
  text-align: justify;
}

#sell-rent .col-lg-8 p {
  text-align: justify;
}

main p.text-muted,
main p.text-muted-2,
main p.section-sub {
  color: #000 !important;
}

a { color: var(--ev-accent-dark); text-decoration: none; transition: color var(--ev-transition); }
a:hover { color: var(--ev-accent); }

img { max-width: 100%; }

::selection { background: var(--ev-accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ev-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--ev-bg-alt); }
#why-choose-us {
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80") center / cover fixed;
}
#why-choose-us > .container > .text-center h2 { color: #fff; }
#why-choose-us > .container > .text-center .section-sub {
  color: #fff !important;
  text-align: center;
}
.section-dark { background: var(--ev-bg-deep); color: rgba(255, 255, 255, 0.78); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 20px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--ev-accent);
  margin-bottom: 0.85rem;
}

.section-sub { color: var(--ev-muted); }
.text-muted-2 { color: var(--ev-muted) !important; }
.text-accent { color: var(--ev-accent) !important; }
.bg-soft { background: var(--ev-bg-alt); }

/* ---------- How it works ---------- */
.how-it-works { padding: clamp(3rem, 6vw, 5rem) 0; }
.how-it-works-heading {
  color: #111;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 3.5rem;
}
.how-it-works-step {
  height: 100%;
  padding: 0 1.5rem;
}
.how-it-works-step > i {
  color: var(--ev-ink);
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
.how-it-works-step h3 {
  color: var(--ev-ink);
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.how-it-works-step p {
  color: var(--ev-muted);
  line-height: 1.65;
  margin-bottom: 0;
}
@media (min-width: 992px) {
  .how-it-works-step { padding: 0 1.5rem; }
  .how-it-works-steps > div + div .how-it-works-step { border-left: 1px solid #d5d5d5; }
  .how-it-works-steps > div:first-child .how-it-works-step { padding-left: 0; }
}
@media (max-width: 991.98px) {
  .how-it-works-steps { row-gap: 2rem; }
  .how-it-works-step { padding: 0; }
}
.lifestyle-enquiry {
  margin: 0 1rem 2rem;
  overflow: hidden;
  border-radius: 6px;
  background: #303b34 url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.lifestyle-enquiry-overlay {
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: linear-gradient(90deg, rgba(13, 20, 17, 0.48), rgba(13, 20, 17, 0.16));
}
.lifestyle-enquiry-copy { color: #fff; max-width: 540px; }
.lifestyle-enquiry-copy h2 {
  color: #fff;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}
.lifestyle-enquiry-copy p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  /* max-width: 470px; */
}
.lifestyle-enquiry-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 224, 0.94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
.lifestyle-enquiry-card h3 {
  color: #111820;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.lifestyle-enquiry-card > p {
  color: var(--ev-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.lifestyle-enquiry-card form { display: grid; gap: 1rem; }
.lifestyle-enquiry-card .form-control {
  min-height: 49px;
  border-color: #e4e4e4;
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}
.lifestyle-enquiry-card .form-control:focus {
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 0.2rem rgba(176, 131, 71, 0.16);
}
.lifestyle-enquiry-submit {
  justify-self: start;
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  border-radius: 0;
  background: #f27b50;
  color: #fff;
}
.lifestyle-enquiry-submit:hover,
.lifestyle-enquiry-submit:focus-visible {
  background: #d96138;
  color: #fff;
}
.lifestyle-enquiry-status { color: var(--ev-accent-dark); font-size: 0.85rem; }
@media (min-width: 992px) {
  .lifestyle-enquiry-actions {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }
  .lifestyle-enquiry-actions .btn {
    flex: 0 0 auto;
    padding: 0.65rem 0.8rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}
@media (max-width: 991.98px) {
  .lifestyle-enquiry-overlay { min-height: 0; }
  .lifestyle-enquiry-copy { max-width: 650px; }
}
@media (max-width: 575.98px) {
  .lifestyle-enquiry { margin: 0 0.5rem 1.5rem; }
  .lifestyle-enquiry-overlay { padding: 2rem 0; }
  .lifestyle-enquiry-copy h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
}
@media (max-width: 767.98px) {
  #why-choose-us { background-attachment: scroll; }
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.6rem;
  transition: all var(--ev-transition);
}
.btn-ev {
  background: var(--ev-accent);
  border: 1px solid var(--ev-accent);
  color: #fff;
}
.btn-ev:hover, .btn-ev:focus {
  background: var(--ev-accent-dark);
  border-color: var(--ev-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(176, 131, 71, 0.32);
}
.btn-ev-outline {
  background: transparent;
  border: 1px solid var(--ev-line);
  color: var(--ev-ink);
}
.btn-ev-outline:hover {
  border-color: var(--ev-accent);
  color: var(--ev-accent-dark);
  background: var(--ev-accent-soft);
}
.btn-ev-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ev-light:hover { background: #fff; color: var(--ev-ink); }
.btn-sm { padding: 0.45rem 1.05rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; }

/* ---------- Navbar ---------- */
.ev-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  padding: 1.1rem 0;
  transition: background var(--ev-transition), padding var(--ev-transition), box-shadow var(--ev-transition);
  background: transparent;
}
.ev-navbar .navbar-brand { display: flex; align-items: center; gap: 0.65rem; }
.ev-brand-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  height: 70px;
  flex: none;
}
.ev-navbar .ev-brand-logo-solid { display: none; }
.ev-navbar.is-solid .ev-brand-logo-light { display: none; }
.ev-navbar.is-solid .ev-brand-logo-solid { display: block; }
.ev-footer .ev-brand-logo {
  width: min(250px, 100%);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.ev-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ev-accent);
  color: #fff;
  font-size: 1.05rem;
  flex: none;
}
.ev-brand-text { line-height: 1.1; }
.ev-brand-text strong {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.18rem;
  color: #fff;
  display: block;
  transition: color var(--ev-transition);
}
.ev-brand-text span {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ev-transition);
}
.ev-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.95rem !important;
  position: relative;
  transition: color var(--ev-transition);
}
.ev-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.15rem;
  height: 2px;
  background: var(--ev-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ev-transition);
}
.ev-navbar .nav-link:hover, .ev-navbar .nav-link.active { color: #fff; }
.ev-navbar .nav-link.active::after { transform: scaleX(1); }
.ev-navbar .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  color: #fff;
}
.ev-navbar .navbar-toggler:focus { box-shadow: none; }
.ev-navbar .dropdown-menu {
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow);
  padding: 0.5rem;
  margin-top: 0.6rem;
}
.ev-navbar .dropdown-item {
  border-radius: 9px;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ev-ink-soft);
}
.ev-navbar .dropdown-item:hover { background: var(--ev-accent-soft); color: var(--ev-accent-dark); }
@media (min-width: 992px) {
  .ev-navbar .nav-item.dropdown { position: relative; }
  .ev-navbar .nav-item.dropdown:hover > .dropdown-menu,
  .ev-navbar .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
  }
  .ev-navbar .dropdown-menu { top: 100%; margin-top: 0; }
}

/* Solid state (scrolled or inner pages) */
.ev-navbar.is-solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--ev-shadow-sm);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ev-line);
}
.ev-navbar.is-solid .ev-brand-text strong { color: var(--ev-ink); }
.ev-navbar.is-solid .ev-brand-text span { color: var(--ev-muted); }
.ev-navbar.is-solid .nav-link { color: var(--ev-ink-soft); }
.ev-navbar.is-solid .nav-link:hover, .ev-navbar.is-solid .nav-link.active { color: var(--ev-ink); }
.ev-navbar.is-solid .navbar-toggler { border-color: var(--ev-line); color: var(--ev-ink); }

@media (max-width: 991.98px) {
  .ev-navbar .navbar-collapse {
    background: #fff;
    margin-top: 0.9rem;
    padding: 1rem;
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    border: 1px solid var(--ev-line);
  }
  .ev-navbar .nav-link, .ev-navbar.is-solid .nav-link { color: var(--ev-ink-soft); }
  .ev-navbar .nav-link::after { display: none; }
  .ev-navbar .nav-link.active { color: var(--ev-accent-dark); }
}

/* Offset for pages without hero */
.page-offset { padding-top: 96px; }
.property-detail-header { padding-top: 120px; }

/* ---------- Hero ---------- */
.ev-hero {
  position: relative;
  min-height: 700px;
  height: auto;
  display: flex;
  align-items: center;
  padding: clamp(7.5rem, 10vw, 9rem) 0 clamp(4.5rem, 7vw, 6rem);
  background: #0d1216 center/cover no-repeat;
  color: #fff;
  transition: background-image 0.45s ease;
}
.ev-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 13, 17, 0.84) 0%, rgba(9, 13, 17, 0.6) 48%, rgba(9, 13, 17, 0.52) 100%);
  pointer-events: none;
}
.ev-hero > .container { position: relative; z-index: 2; }
.ev-hero h1 {
  color: #fff !important;
  font-family: "Lora", Georgia, serif;
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  max-width: none;
}
.ev-hero p.lead { color: rgba(255, 255, 255, 0.82) !important; max-width: 72ch; }
.about-floating-card {
  animation: about-card-float 4s ease-in-out infinite;
}
.about-brand-card {
  animation-delay: -2s;
}
@keyframes about-card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.hero-property-slider {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--ev-radius-lg);
  background: rgba(12, 18, 22, 0.6);
  box-shadow: var(--ev-shadow-lg);
  animation: hero-property-float 4.5s ease-in-out infinite;
}
@keyframes hero-property-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-property-image,
.hero-property-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-property-image {
  z-index: -2;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 5s ease;
}
.hero-property-image.is-changing {
  opacity: 0.45;
  transform: scale(1.03);
}
.hero-property-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 13, 17, 0.04) 28%, rgba(9, 13, 17, 0.88) 100%);
  pointer-events: none;
}
.hero-property-caption {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  left: 1rem;
}
.hero-property-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #f0c879;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.hero-property-title {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}
.hero-property-location {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.hero-property-controls {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-property-count {
  margin-right: 0.3rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.hero-property-control {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(15, 20, 24, 0.4);
  color: #fff;
  transition: background var(--ev-transition), border-color var(--ev-transition);
}
.hero-property-control:hover,
.hero-property-control:focus-visible {
  border-color: var(--ev-accent);
  background: var(--ev-accent);
  color: #fff;
}

.page-hero {
  position: relative;
  padding: 11rem 0 4.5rem;
  background: #0d1216 center/cover no-repeat;
  color: #fff;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 17, 0.85), rgba(9, 13, 17, 0.7));
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.breadcrumb-ev { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); font-size: 0.9rem; }
.breadcrumb-ev .breadcrumb-item, .breadcrumb-ev .breadcrumb-item a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb-ev .breadcrumb-item.active { color: var(--ev-accent); }

/* ---------- Search panel ---------- */
.search-panel {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--ev-radius-lg);
  box-shadow: var(--ev-shadow-lg);
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.home-search-section {
  position: relative;
  z-index: 3;
  background: #f4f6f5;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.home-search-panel {
  padding: 1.5rem;
  border-color: var(--ev-accent);
  transform: translateY(-44px);
  margin-bottom: -44px;
  box-shadow: 0 14px 34px rgba(20, 23, 26, 0.1);
}
.home-search-panel .form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #46505a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.home-search-panel .form-select {
  min-height: 52px;
}
.home-search-panel form button[type="submit"] {
  min-height: 52px;
  border-radius: 11px;
  font-weight: 700;
}
.search-panel h2 {
  color: #111820 !important;
}
.search-panel .form-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ev-muted);
  margin-bottom: 0.3rem;
}
.form-control, .form-select {
  border-radius: 11px;
  border: 1px solid var(--ev-line);
  padding: 0.62rem 0.85rem;
  color: var(--ev-ink);
  background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 3px var(--ev-accent-soft);
}
.ev-toggle-group .btn-check:checked + .btn {
  background: var(--ev-ink);
  border-color: var(--ev-ink);
  color: #fff;
}

/* ---------- Property cards ---------- */
.property-card {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--ev-transition), box-shadow var(--ev-transition), border-color var(--ev-transition);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ev-shadow);
  border-color: transparent;
}
.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ev-bg-alt);
}
.property-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.property-card:hover .property-media img { transform: scale(1.07); }
.badge-stack { position: absolute; top: 0.9rem; left: 0.9rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ev-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ev-ink);
}
.ev-badge.accent { background: var(--ev-accent); color: #fff; }
.ev-badge.dark { background: rgba(16, 22, 28, 0.85); color: #fff; }
.fav-btn {
  position: absolute; top: 0.8rem; right: 0.8rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ev-ink-soft);
  display: grid; place-items: center;
  transition: all var(--ev-transition);
}
.fav-btn:hover { background: #fff; color: var(--ev-accent); transform: scale(1.08); }
.fav-btn.is-active { background: var(--ev-accent); color: #fff; }
.property-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.property-title { font-size: 1.12rem; margin: 0.35rem 0 0.25rem; }
.property-title a { color: var(--ev-ink); }
.property-title a:hover { color: var(--ev-accent-dark); }
.property-loc { font-size: 0.9rem; color: var(--ev-muted); }
.property-specs {
  display: flex; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--ev-line);
  margin-top: 1rem; padding-top: 0.9rem;
  font-size: 0.86rem; color: var(--ev-muted);
}
.property-specs i { color: var(--ev-accent); margin-right: 0.35rem; }

/* List view */
.view-list .property-col { width: 100%; }
@media (min-width: 768px) {
  .view-list .property-card { flex-direction: row; }
  .view-list .property-media { width: 42%; aspect-ratio: auto; min-height: 240px; flex: none; }
}

/* ---------- Generic cards ---------- */
.ev-card {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius-lg);
  padding: 1.8rem;
  height: 100%;
  transition: transform var(--ev-transition), box-shadow var(--ev-transition);
}
.ev-card:hover { transform: translateY(-5px); box-shadow: var(--ev-shadow); }
.ev-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--ev-accent-soft);
  color: var(--ev-accent-dark);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

/* ---------- Stats / counters ---------- */
.stat-value {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ev-accent);
  font-weight: 600;
  line-height: 1;
}
.stat-label { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ev-muted); }
.section-dark .stat-label { color: rgba(255, 255, 255, 0.6); }

/* ---------- Location cards ---------- */
.location-card {
  position: relative;
  display: block;
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  min-height: 300px;
  color: #fff;
}
.location-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.location-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,13,17,0.3) 0%, rgba(9,13,17,0.6) 45%, rgba(9,13,17,0.92) 100%);
}
.location-card:hover img { transform: scale(1.08); }
.location-card .loc-body { position: relative; z-index: 2; padding: 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.location-card h3 { color: #fff; margin-bottom: 0.15rem; }
.location-card p { color: rgba(255, 255, 255, 0.75) !important; font-size: 0.9rem; margin: 20px; }
#prime-locations .location-card .loc-body > .btn { align-self: center; }

/* ---------- Agents ---------- */
.agent-card {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--ev-transition), box-shadow var(--ev-transition);
}
.agent-card:hover { transform: translateY(-6px); box-shadow: var(--ev-shadow); }
.agent-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ev-bg-alt); }
.agent-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.agent-card:hover .agent-media img { transform: scale(1.06); }
.agent-social {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(9,13,17,0), rgba(9,13,17,0.8));
  transform: translateY(100%);
  transition: transform var(--ev-transition);
}
.agent-card:hover .agent-social, .agent-card:focus-within .agent-social { transform: translateY(0); }
.agent-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92); color: var(--ev-ink);
  font-size: 0.85rem;
}
.agent-social a:hover { background: var(--ev-accent); color: #fff; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius-lg);
  padding: 2rem;
  height: 100%;
}
.stars { color: var(--ev-accent); font-size: 0.9rem; letter-spacing: 0.1em; }
.testi-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.carousel-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ev-line); background: #fff; color: var(--ev-ink);
  transition: all var(--ev-transition);
}
.carousel-nav-btn:hover { background: var(--ev-accent); border-color: var(--ev-accent); color: #fff; }

/* ---------- Blog ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform var(--ev-transition), box-shadow var(--ev-transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--ev-shadow); }
.blog-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ev-bg-alt); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-meta { font-size: 0.8rem; color: var(--ev-muted); letter-spacing: 0.04em; }
.article-body { font-size: 1.03rem; }
.article-body h2, .article-body h3 { margin: 2rem 0 0.85rem; }
.article-body blockquote {
  border-left: 3px solid var(--ev-accent);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.8rem 0;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  color: var(--ev-ink);
}

/* ---------- Gallery / lightbox ---------- */
.gallery-main {
  position: relative;
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ev-bg-alt);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.92); color: var(--ev-ink);
  display: grid; place-items: center;
  transition: all var(--ev-transition);
}
.gallery-arrow:hover { background: var(--ev-accent); color: #fff; }
.gallery-arrow.prev { left: 1rem; }
.gallery-arrow.next { right: 1rem; }
.thumb-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 0.7rem; }
.thumb-strip button {
  border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; background: none;
}
.thumb-strip button img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip button.is-active { border-color: var(--ev-accent); }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 11, 14, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff;
}

/* ---------- Feature list ---------- */
.feature-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--ev-line);
  border-radius: 12px;
  font-size: 0.92rem;
  background: #fff;
}
.feature-item i { color: var(--ev-accent); }

.spec-box {
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  padding: 1rem;
  text-align: center;
  background: #fff;
}
.spec-box i { color: var(--ev-accent); font-size: 1.1rem; }
.spec-box strong { display: block; color: var(--ev-ink); font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; margin-top: 0.35rem; }
.spec-box span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ev-muted); }

.map-placeholder {
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ev-line);
  min-height: 340px;
  background:
    radial-gradient(circle at 30% 40%, rgba(176,131,71,0.14), transparent 55%),
    repeating-linear-gradient(45deg, #f2efe9 0 22px, #eeeae2 22px 44px);
  display: grid; place-items: center; text-align: center; color: var(--ev-muted);
}
.map-placeholder iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  height: 100%;
  border: 0;
}

.sticky-side { position: sticky; top: 110px; }
#propertyDetail .row.g-4 > aside { align-self: flex-start; }
#pdAgent.ev-card { height: auto; }
#propertyDetail form.ev-card { height: auto; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  background: #10161c center/cover no-repeat;
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(9, 13, 17, 0.78); }
.cta-band > .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { text-align: center; }

.cta-conversation-section {
  position: relative;
  background-image: url('../images/conversation-cta-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-conversation-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 18, 14, 0.85) 0%, rgba(7, 18, 14, 0.45) 50%, rgba(7, 18, 14, 0.05) 85%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 991.98px) {
  .cta-conversation-section::after {
    background: rgba(7, 18, 14, 0.75);
  }
}
.cta-conversation-section > .container {
  position: relative;
  z-index: 2;
}

/* ---------- Footer (White Background) ---------- */
.ev-footer {
  background: #ffffff !important;
  color: #4b5563;
  padding-top: 4.5rem;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
}
.ev-footer h5 {
  color: #111820 !important;
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ev-footer a {
  color: #4b5563;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color var(--ev-transition);
}
.ev-footer a:hover {
  color: var(--ev-accent);
}
.ev-footer p {
  color: #555e68;
}
.ev-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ev-footer li + li {
  margin-top: 0.55rem;
}
.ev-footer .text-white {
  color: #111820 !important;
}
.ev-footer strong {
  color: #111820;
}
.ev-footer .badge.bg-secondary {
  background: #f1f3f5 !important;
  color: #212529 !important;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}
.ev-footer .badge.bg-secondary:hover {
  background: var(--ev-accent) !important;
  color: #fff !important;
  border-color: var(--ev-accent);
}
.footer-bottom {
  border-top: 1px solid #e9ecef;
  margin-top: 3rem;
  padding: 1.3rem 0;
  font-size: 0.87rem;
  color: #6c757d;
}
.social-row {
  display: flex;
  gap: 0.55rem;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f5f7;
  color: #111820;
  border: 2px solid #343a40;
  transition: all var(--ev-transition);
}
.social-row a:hover {
  background: var(--ev-accent);
  color: #fff;
  border-color: var(--ev-accent);
  transform: translateY(-3px);
}
.newsletter-form .form-control {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #111820;
}
.newsletter-form .form-control::placeholder {
  color: #94a3b8;
}

/* ---------- Floating buttons ---------- */
.float-stack {
  position: fixed; right: 1.1rem; bottom: 1.4rem; z-index: 1050;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: none; display: grid; place-items: center;
  box-shadow: var(--ev-shadow);
  color: #fff; font-size: 1.1rem;
  transition: transform var(--ev-transition), opacity var(--ev-transition);
}
.float-btn:hover { transform: translateY(-3px); color: #fff; }
.float-call { background: #0a0f22;
    color: #ffff; }
.float-whatsapp { background: #027220; }
.float-label { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Alerts ---------- */
.ev-alert {
  border-radius: 12px;
  border: 1px solid var(--ev-line);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  display: none;
}
.ev-alert.show { display: block; }
.ev-alert.ok { background: #eef7f0; border-color: #c8e5cf; color: #1f6b38; }
.ev-alert.err { background: #fdf0ef; border-color: #f3cfcb; color: #983029; }
.invalid-feedback.d-block { font-size: 0.83rem; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--ev-line); border: 0; opacity: 1; }
.rounded-ev { border-radius: var(--ev-radius-lg); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.ratio-portrait { aspect-ratio: 3 / 4; }
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 1.85rem; margin-bottom: 0.65rem; }
.list-check li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 0.15rem; color: var(--ev-accent); font-size: 0.82rem;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--ev-ink); color: #fff; padding: 0.75rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Town Square Realtors Styles
   ========================================================================== */
.ts-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ts-badge-gold {
  background: var(--ev-accent-soft);
  color: var(--ev-accent-dark);
  border: 1px solid rgba(176, 131, 71, 0.35);
}
.ts-badge-avail {
  background: rgba(37, 163, 102, 0.12);
  color: #1a7a4c;
  border: 1px solid rgba(37, 163, 102, 0.35);
}
.ts-bg-commitment {
  background-color: #0b1a13 !important;
  background-image: url('../images/commitment-bg.jpg') !important;
  background-position: right center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.btn-whatsapp {
  background: #25a366;
  border: 1px solid #25a366;
  color: #fff;
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
  background: #1f8a55;
  border-color: #1f8a55;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 163, 102, 0.32);
}

/* Category cards */
.ts-cat-card {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--ev-transition), box-shadow var(--ev-transition), border-color var(--ev-transition);
}
.ts-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ev-shadow);
  border-color: var(--ev-accent);
}
.ts-cat-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ev-bg-alt);
}
.ts-cat-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ts-cat-card:hover .ts-cat-media img {
  transform: scale(1.08);
}
.ts-cat-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ts-cat-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Featured property cards with full specs */
.ts-featured-card {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--ev-transition), box-shadow var(--ev-transition);
}
.ts-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ev-shadow);
}
.ts-featured-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--ev-bg-alt);
}
.ts-featured-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ts-featured-card:hover .ts-featured-media img {
  transform: scale(1.08);
}
.ts-featured-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ts-asking-price {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ev-accent-dark);
}
.ts-amenity-pill {
  font-size: 0.78rem;
  background: var(--ev-bg-alt);
  color: var(--ev-ink-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--ev-line);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* FAQ Accordion */
.ts-accordion .accordion-item {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius) !important;
  margin-bottom: 0.95rem;
  overflow: hidden;
  box-shadow: var(--ev-shadow-sm);
  transition: border-color var(--ev-transition), box-shadow var(--ev-transition);
}
.ts-accordion .accordion-item:hover {
  border-color: rgba(176, 131, 71, 0.45);
  box-shadow: var(--ev-shadow);
}
.ts-accordion .accordion-button {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ev-ink);
  background: #fff;
  padding: 1.25rem 1.4rem;
  box-shadow: none;
}
.ts-accordion .accordion-button:not(.collapsed) {
  color: var(--ev-accent-dark);
  background: var(--ev-accent-soft);
}
.ts-accordion .accordion-button:focus {
  box-shadow: none;
}
.ts-accordion .accordion-body {
  padding: 1.25rem 1.4rem 1.4rem;
  color: var(--ev-ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* Commitment Box */
.ts-commitment-card {
  background: linear-gradient(135deg, #10161c 0%, #1a232c 100%);
  color: #fff;
  border-radius: var(--ev-radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--ev-shadow-lg);
}
.ts-commitment-card h1,
.ts-commitment-card h2,
.ts-commitment-card h3,
.ts-commitment-card h4 {
  color: #ffffff !important;
}
.ts-commitment-card p.lead {
  color: rgba(255, 255, 255, 0.9) !important;
}
.ts-commitment-card p {
  color: rgba(255, 255, 255, 0.75);
}
.ts-commitment-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 131, 71, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

/* Redesigned Commitment Pillars */
.commitment-pillar-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(176, 131, 71, 0.22) !important;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--ev-radius-lg);
}
.commitment-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(16, 24, 32, 0.08) !important;
  border-color: rgba(176, 131, 71, 0.55) !important;
}
.commitment-pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b08347, #d4a366);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.commitment-pillar-card:hover::before {
  opacity: 1;
}

/* Quick Search Filters */
.ts-search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.ts-search-pill-btn {
  border: 1px solid var(--ev-line);
  background: #fff;
  color: var(--ev-ink-soft);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ev-transition);
}
.ts-search-pill-btn:hover, .ts-search-pill-btn.active {
  background: var(--ev-accent);
  border-color: var(--ev-accent);
  color: #fff;
}

/* ---------- Responsive layout ---------- */
@media (max-width: 991.98px) {
  .page-hero {
    padding: 9.5rem 0 3.5rem;
  }

  .hero-property-slider {
    aspect-ratio: 16 / 10;
  }

  .sticky-side {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3.25rem 0;
  }

  #prime-locations .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }

  .ev-hero {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }

  .ev-hero .display-4 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.12;
  }

  .hero-property-slider {
    aspect-ratio: 16 / 10;
  }

  .ev-hero .d-flex.flex-wrap.gap-3 > .btn {
    flex: 1 1 100%;
  }

  .search-panel {
    padding: 1rem;
  }

  .page-hero {
    padding: 8rem 0 2.75rem;
  }

  .ev-card,
  .testimonial-card {
    padding: 1.35rem;
  }

  .property-body,
  .ts-featured-body,
  .ts-cat-body {
    padding: 1.15rem;
  }

  .property-specs {
    gap: 0.65rem 1rem;
  }

  .property-results-toolbar {
    align-items: flex-start !important;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .float-stack {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  h1,
  .display-1,
  .display-2,
  .display-3,
  .display-4 {
    font-size: clamp(1.65rem, 7vw, 2.1rem) !important;
  }

  h2,
  .display-5,
  .display-6 {
    font-size: clamp(1.4rem, 5.8vw, 1.8rem) !important;
  }

  h3 {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem) !important;
  }

  .float-stack {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    flex-direction: row;
    gap: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
  }

  .float-btn {
    width: 50%;
    height: 58px;
    border-radius: 0;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: none;
    font-size: 0.9rem;
  }

  .float-btn:hover {
    transform: none;
  }

  .float-call {
    background: #0a0f22;
    color: #ffff;
  }

  .float-call:hover {
    color: #17202a;
  }

  .float-label {
    display: inline;
    font-weight: 700;
  }

  .ev-hero .badge,
  #about-us .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
  }

  .hero-property-slider {
    aspect-ratio: 16 / 10;
  }

  .hero-property-caption {
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
  }

  .hero-property-controls {
    right: 0.7rem;
    top: 0.7rem;
    gap: 0.3rem;
  }

  .hero-property-control {
    width: 34px;
    height: 34px;
  }

  .hero-property-title {
    font-size: 1.1rem;
  }

  .page-offset {
    padding-top: 82px;
  }
  .property-detail-header {
    padding-top: 110px;
  }

  .page-hero .breadcrumb {
    font-size: 0.8rem;
  }

  .ev-navbar .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ev-mark {
    width: 36px;
    height: 36px;
  }

  .ev-navbar .ev-brand-logo {
    width: clamp(135px, 42vw, 165px);
    height: auto;
    object-fit: contain;
  }

  .ev-footer .ev-brand-logo {
    width: min(220px, 100%);
    height: auto;
  }

  .ev-brand-text strong {
    font-size: 1.05rem;
  }

  .ev-brand-text span {
    font-size: 0.6rem;
  }

  .ev-navbar .navbar-collapse {
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
  }

  .search-panel {
    border-radius: 16px;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
  }

  .ts-accordion .accordion-button {
    padding: 1rem;
    font-size: 1rem;
  }

  .ts-accordion .accordion-body {
    padding: 1rem;
  }

  .map-placeholder {
    min-height: 260px;
  }
  .map-placeholder iframe {
    min-height: 260px;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  #about-us .position-absolute.bottom-0.start-0 {
    max-width: calc(100% - 1rem) !important;
    transform: translate(-0.25rem, 0.75rem) !important;
  }

  .ev-footer {
    padding-top: 3rem;
  }

  .footer-bottom {
    text-align: center;
  }
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

@media (hover: none) {
  .agent-social {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  .btn.btn-lg {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .btn.btn-sm {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }
}

/* ---------- About page responsive layout ---------- */
body[data-page="about"] .page-hero {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: clamp(8.5rem, 15vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem);
  background-position: center;
}

body[data-page="about"] .page-hero h1 {
  max-width: 20ch;
  text-wrap: balance;
}

body[data-page="about"] .page-hero p {
  text-align: left;
}

body[data-page="about"] #main > .section p {
  text-align: left;
}

.about-cta-buttons .btn {
  min-height: 44px;
}

.about-story-images {
  align-items: center;
}

.about-story-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .about-story-image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575.98px) {
  body[data-page="about"] .page-hero {
    min-height: 0;
    padding: 7.5rem 0 2.75rem;
  }

  body[data-page="about"] .page-hero h1 {
    max-width: 17ch;
  }

  .about-story-images {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0;
  }

  .about-story-image-offset {
    padding-top: 0 !important;
  }

  .about-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-cta-buttons .btn {
    width: min(100%, 22rem);
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  main p:not(.text-center) {
    text-align: left;
  }

  main .text-center p {
    text-align: center;
  }

  #sell-rent .col-lg-8 p {
    text-align: left;
  }

  .btn {
    min-height: 44px;
  }

  .ev-navbar .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  .sell-rent-cta-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .sell-rent-cta-buttons .btn {
    width: min(100%, 22rem);
    justify-content: center;
  }
}
