/* =============================================================================
   HATTIBAN REAL ESTATE — MAIN STYLESHEET
   =============================================================================
   Table of Contents
   01. Design Tokens & Reset
   02. Typography & Base Elements
   03. Layout Utilities
   04. Site Header & Navigation
   05. Buttons
   06. Panels & Shared Cards
   07. Hero — Homepage
   08. Property Grid & Cards
   09. Mosaic Layout
   10. Split Highlight
   11. Services Luxury Section
   12. Stats Rows
   13. Team / Agent Cards
   14. Blog Grid & List
   15. Toolkit Section
   16. Value Banner
   17. Map & Neighborhood
   18. Dark Form Section
   19. Contact Section (Dark Background)
   20. Site Footer
   21. Property Single Page
   22. Buy / Rent Page
   23. Listing Page
   24. Blog Pages
   25. Agent Pages
   26. Sell Page
   27. Error & Policy Pages
   28. Floating UI (Contact, CTA, Valuation)
   29. Pagination
   30. Mobile Menu
   31. Emotion & Trust Strips
   32. Micro Components (Breadcrumb, Badges, etc.)
   33. Utility Classes
   34. WordPress Pagination Compatibility
   35. Responsive Overrides — Breakpoint 1180px
   36. Responsive Overrides — Breakpoint 1024px
   37. Responsive Overrides — Breakpoint 768px
   38. Responsive Overrides — Breakpoint 640px
   39. Responsive Overrides — Breakpoint 480px
   40. Accessibility & Motion
============================================================================= */

/* =============================================================================
   01. DESIGN TOKENS & RESET
============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --space-section: 124px;
  --space-section-mobile: 64px;
  --space-internal: 15px;

  --bg-left: #eceef0;
  --bg-mid: #f7f8f9;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #14161a;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #00aeef;
  --brand-strong: #0396cb;

  --shadow: 0 22px 34px rgba(12, 22, 36, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --wp--preset--font-size--small: 18px;
  --wp--preset--font-size--medium: 20px;
  --wp--preset--font-size--large: 36px;
  --wp--preset--font-size--x-large: 42px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================================================
   02. TYPOGRAPHY & BASE ELEMENTS
============================================================================= */

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: linear-gradient(
    90deg,
    var(--bg-left) 0%,
    var(--bg-mid) 11%,
    #ffffff 50%,
    var(--bg-mid) 89%,
    var(--bg-left) 100%
  );
}

/* Focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.45);
  outline-offset: 2px;
}

.section-title {
  margin: 0;
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: var(--space-internal) 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* =============================================================================
   03. LAYOUT UTILITIES
============================================================================= */

.container {
  width: min(1320px, calc(100% - 52px));
  margin: 0 auto;
}

.section {
  margin: 100px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-intro {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.text-link {
  font-size: 12px;
  font-weight: 700;
  color: #00a2dd;
}

.text-link:hover {
  color: var(--brand);
}

.muted {
  color: var(--muted);
}

/* =============================================================================
   04. SITE HEADER & NAVIGATION
============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.logo .site-logo-image {
  display: block;
  width: auto;
  max-width: 320px;
  max-height: 80px;
  object-fit: contain;
}

.mobile-menu-header .logo .site-logo-image {
  max-width: 270px;
  max-height: 66px;
}

.logo-mark {
  width: 14px;
  height: 14px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  position: relative;
}

.logo-mark::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  opacity: 0.88;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover,
.main-nav a.is-current {
  opacity: 1;
  color: #00aeef;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
}

/* =============================================================================
   05. BUTTONS
============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #00aeef;
  color: #fff;
}

.btn-primary:hover {
  background: #0396cb;
  color: #fff;
}

.btn-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111827;
}

.btn-small {
  padding: 8px 15px;
  font-size: 12px;
}

/* =============================================================================
   06. PANELS & SHARED CARDS
============================================================================= */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.breadcrumb strong {
  color: #1f2937;
}

/* =============================================================================
   07. HERO — HOMEPAGE
============================================================================= */

.hero-home {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  height: 90vh;
  height: 90dvh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  overflow-x: clip;
  --hero-page-gutter: max(26px, calc((100vw - 1320px) / 2));
}

.hero-home > .container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: center;
  justify-items: center;
  gap: clamp(12px, 2.2vh, 26px);
  position: relative;
}

.hero-home-wrap {
  width: 100%;
  max-width: none;
  height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  justify-content: start;
  gap: clamp(20px, 4vw, 56px);
  padding: 60px var(--hero-page-gutter);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.hero-home-wrap::before {
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.75) 0%,
    rgba(10, 37, 64, 0.5) 40%,
    rgba(10, 37, 64, 0.25) 70%,
    rgba(10, 37, 64, 0.1) 100%
  );
  z-index: 1;
}

.hero-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 680px;
  padding: 0;
  gap: 20px;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}

.hero-copy p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
  max-width: 60ch;
}

.hero-copy .btn {
  margin-bottom: 16px;
  padding: 14px 28px;
  font-size: 14px;
}

.hero-search {
  justify-self: center;
  align-self: center;
  width: min(430px, 100%);
  max-width: 100%;
  margin: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.25);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.hero-search h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
  color: #0a2540;
}

.hero-search .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
}

.hero-search .form-grid select {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.hero-search .form-grid button {
  grid-column: 1 / -1;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00aeef, #0396cb);
  color: #fff;
  border: none;
}

/* Hero background slider */
.hero-home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home-bg.swiper {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-home-bg .swiper-wrapper {
  height: 100%;
  width: 100%;
}

.hero-home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-home-bg-slide {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(4%);
  transition:
    opacity 0.75s ease,
    transform 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-home-bg-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.hero-home-bg-slide img,
.hero-home-bg-slide iframe,
.hero-home-bg-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-home-bg-slide.is-active img,
.hero-home-bg-slide.is-active iframe {
  animation: hero-home-drift 6.5s linear both;
}

@keyframes hero-home-drift {
  from {
    transform: translate(-52%, -50%) scale(1.05);
  }
  to {
    transform: translate(-48%, -50%) scale(1.05);
  }
}

/* Pagination dots */
.hero-home-bg-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hero-home-bg-dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  opacity: 1;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hero-home-bg-dots .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.hero-home-bg-dots .swiper-pagination-bullet-active {
  width: 28px;
  background: #00abea;
  border-color: #00abea;
  box-shadow: 0 0 0 3px rgba(0, 171, 234, 0.22);
}

.hero-home-bg-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

.hero-home-bg-dot.is-active {
  background: #fff;
}

/* Hero background meta overlay */
.hero-home-bg-meta {
  position: absolute;
  left: auto;
  right: 22px;
  bottom: 54px;
  z-index: 2;
  border: 0;
  border-radius: 0;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #fff;
  padding: 0;
  max-width: min(82%, 420px);
  display: grid;
  gap: 4px;
  text-align: right;
  opacity: 1;
}

.hero-home-bg-meta__name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.hero-home-bg-meta__location {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.35;
}

.hero-home-wrap .hero-home-bg-meta,
.hero-home-wrap .hero-home-bg-meta__name,
.hero-home-wrap .hero-home-bg-meta__location {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Hero outside navigation arrows */
.hero-home .container {
  position: relative;
}

.hero-home-outside-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-home-outside-nav__btn {
  --hero-nav-shift: 0px;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(11, 18, 32, 0.28);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(4, 14, 28, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(var(--hero-nav-shift));
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.hero-home-outside-nav__btn:hover,
.hero-home-outside-nav__btn:focus-visible {
  background: rgba(11, 18, 32, 0.44);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateX(var(--hero-nav-shift)) translateY(-1px);
}

.hero-home-outside-nav__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.hero-home-outside-nav__btn--prev {
  --hero-nav-shift: -24px;
}

.hero-home-outside-nav__btn--next {
  --hero-nav-shift: 24px;
}

/* Hero search form shared */
.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-grid input,
.form-grid select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  background: #fff;
}

/* =============================================================================
   08. PROPERTY GRID & CARDS
============================================================================= */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.property-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.property-card img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover img {
  transform: scale(1.05);
}

/* Stretched link */
.property-card .stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
  background-color: rgba(0, 0, 0, 0);
}

.property-card a:not(.stretched-link),
.property-card button,
.property-card .badge {
  position: relative;
  z-index: 2;
}

.property-body {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.price {
  margin: 5px 0 2px;
  color: #00a8e5;
  font-size: 16px;
  font-weight: 800;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.property-reference-id {
  margin-top: 8px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-card.is-hidden {
  display: none;
}

/* =============================================================================
   09. MOSAIC LAYOUT
============================================================================= */

.mosaic-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.mosaic-intro {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.mosaic-intro h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.mosaic-intro p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.mosaic-grid {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 138px;
  gap: 12px;
}

.mosaic-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
}

/* =============================================================================
   10. SPLIT HIGHLIGHT
============================================================================= */

.split-highlight {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.highlight-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.highlight-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.split-content h2 {
  margin: 0;
  font-size: 35px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.split-content p {
  margin: var(--space-internal) 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* =============================================================================
   11. SERVICES LUXURY SECTION
============================================================================= */

.services-luxury {
  margin: clamp(72px, 9vw, 120px) 0 clamp(70px, 8vw, 110px) !important;
}

.services-luxury .container {
  position: relative !important;
}

.services-luxury__title {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: clamp(0.12em, 0.32vw, 0.24em);
  font-size: clamp(19px, 2.1vw, 40px);
  font-weight: 500;
  color: #2f343b;
}

.services-luxury__grid {
  position: relative;
  margin-top: clamp(32px, 5vw, 58px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.services-luxury__grid::before {
  content: "hattiban" !important;
  position: absolute !important;
  left: 50% !important;
  top: 40% !important;
  transform: translate(-50%, -50%) !important;
  font-size: clamp(62px, 16vw, 240px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: rgba(32, 38, 46, 0.09) !important;
  text-transform: lowercase !important;
  pointer-events: none !important;
  z-index: 0 !important;
  white-space: nowrap !important;
}

.services-luxury__card {
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
}

.services-luxury__media {
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 9 !important;
  box-shadow: 0 14px 28px rgba(12, 22, 36, 0.14) !important;
  background: #0f1620 !important;
}

.services-luxury__media::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 34, 0.16) 0%,
    rgba(10, 20, 34, 0.42) 100%
  ) !important;
}

.services-luxury__media img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.35s ease !important;
}

.services-luxury__card:hover .services-luxury__media img {
  transform: scale(1.03);
}

.services-luxury__overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
}

.services-luxury__card-title {
  margin: 0 !important;
  color: #f7f9fc !important;
  font-size: clamp(17px, 1.45vw, 24px) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-wrap: balance !important;
}

.services-luxury__description {
  margin: 16px auto 0 !important;
  max-width: 28ch !important;
  color: #616875 !important;
  font-size: clamp(15px, 1.12vw, 20px) !important;
  line-height: 1.5 !important;
}

/* =============================================================================
   12. STATS ROWS
============================================================================= */

.stats-row {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-row-inline {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-item {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.stat-item span {
  font-size: 11px;
  color: var(--muted);
}

.stats-row-inline .stat-item:nth-child(5n) {
  border-right: 0;
}

/* =============================================================================
   13. TEAM / AGENT CARDS
============================================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.team-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.team-card-link:focus-visible {
  outline: none;
}

.team-card-link:focus-visible .team-card {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.team-card {
  --team-avatar-size: clamp(48px, 4.5vw + 16px, 68px);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 14px);
  padding: clamp(10px, 1.1vw, 14px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.team-card img {
  width: var(--team-avatar-size);
  height: var(--team-avatar-size);
  flex: 0 0 var(--team-avatar-size);
  object-fit: cover;
  border-radius: 50%;
}

.team-card h3,
.team-card h4 {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.team-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
}

/* Agent wall */
.agent-wall {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 16px;
  align-items: start;
}

.agent-wall-aside {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
}

.agent-wall-aside h3 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.agent-wall-aside p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.agent-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  text-align: center;
}

.agent-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.agent-card h4 {
  margin: 0;
  font-size: 14px;
}

.agent-card p {
  margin: 2px 0 0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.agent-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

/* =============================================================================
   14. BLOG GRID & LIST
============================================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.blog-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover img,
.blog-card:focus-within img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 11px 12px 13px;
}

.blog-card h3 {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.blog-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Blog list page */
.blog-layout {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 20px;
  align-items: start;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-list-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-list-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.blog-list-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.blog-list-body {
  padding: 16px;
}

.blog-body {
  padding: 16px;
}

.blog-list-body h2 {
  margin: 2px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

.blog-list-meta {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-list-body p,
.blog-body p {
  margin: 0;
  color: #475467;
  font-size: 13px;
}

.blog-list-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Blog detail */
.blog-details-layout {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: minmax(0, 2fr) 300px;
  gap: 22px;
  align-items: start;
}

.blog-article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 20px;
}

.blog-article img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.blog-article h1 {
  margin: 8px 0;
  font-size: 44px;
  line-height: 1.1;
}

.blog-article h2 {
  margin: 20px 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.blog-article p,
.blog-article li {
  color: #475467;
  font-size: 14px;
}

.blog-quote {
  border-left: 4px solid var(--brand);
  background: #f8fafc;
  padding: 10px 12px;
  margin: 12px 0;
  color: #334155;
  font-size: 13px;
}

.author-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}

.author-box h4 {
  margin: 0;
  font-size: 16px;
}

.author-box p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #475467;
}

.blog-post-nav {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.blog-post-nav__link {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.blog-post-nav__link span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post-nav__link strong {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.3;
}

.blog-post-nav__link.align-right {
  text-align: right;
}

.blog-post-nav__link.is-empty {
  background: transparent;
  border-style: dashed;
}

.blog-section-head {
  margin-bottom: var(--space-internal);
}

.blog-value-banner {
  margin-top: var(--space-internal);
}

.blog-category-list {
  display: grid;
  gap: 8px;
}

.blog-category-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #334155;
}

.blog-category-list li a {
  color: inherit;
}

/* =============================================================================
   15. TOOLKIT SECTION
============================================================================= */

.toolkit {
  background: #2f3338;
  color: #fff;
  padding: 52px 0;
  margin: 100px 0;
}

.toolkit h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.2;
}

.toolkit p {
  margin: var(--space-internal) 0 0;
  color: rgba(255, 255, 255, 0.83);
}

.toolkit-grid {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.toolkit-card {
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px;
  min-height: 104px;
}

.toolkit-card h3 {
  margin: 0;
  font-size: 15px;
}

.toolkit-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.content-panel .toolkit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 12px 20px rgba(12, 22, 36, 0.06);
  min-height: 140px;
}

.content-panel .toolkit-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  color: #00a2dd;
}

.content-panel .toolkit-card p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: #334155;
}

.sell-plan-panel > h2 {
  text-align: center;
}

.sell-plan-panel .toolkit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
}

.sell-plan-panel .toolkit-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sell-plan-panel .toolkit-card p {
  margin-left: auto;
  margin-right: auto;
  max-width: 24ch;
  text-wrap: balance;
}

@media (max-width: 1180px) {
  .sell-plan-panel .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sell-plan-panel .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .sell-plan-panel .toolkit-card p {
    max-width: none;
  }
}

.about-values-grid {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.about-value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 12px 22px rgba(12, 22, 36, 0.05);
  min-height: 170px;
}

.about-value-card h3 {
  margin: 0;
  color: #00a2dd;
  font-size: 22px;
  line-height: 1.25;
}

.about-value-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.about-market-grid {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-market-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.about-market-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.about-market-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.about-guidance-block {
  background: linear-gradient(135deg, #f2f9ff 0%, #ffffff 100%);
  border: 1px solid #dce8f3;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.about-guidance-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.about-guidance-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.about-guidance-item h3 {
  margin: 0;
  font-size: 17px;
}

.about-guidance-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* =============================================================================
   16. VALUE BANNER
============================================================================= */

.value-banner {
  margin-top: 22px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d7dee8;
  min-height: 220px;
  position: relative;
  background: url("https://main.houzez.co/wp-content/uploads/elementor/thumbs/AdobeStock_866670044-scaled-1-rdz82sevntammi6n8w0rhahhqv9z8psixo5svil09c.jpg")
    center / cover no-repeat;
}

.value-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 33, 0.5);
}

.value-banner-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 22px;
}

.value-banner h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

.value-banner p {
  margin: 10px auto 16px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

/* =============================================================================
   17. MAP & NEIGHBORHOOD
============================================================================= */

.map-and-neighborhood {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.map-panel {
  position: relative;
  min-height: 330px;
  border-radius: var(--radius-lg);
  border: 1px solid #d0dae6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    radial-gradient(
      circle at 20% 22%,
      #8cc2dd 0,
      #7fb5cf 30%,
      #86b8d1 50%,
      #d2e5ef 100%
    );
  background-size:
    48px 48px,
    48px 48px,
    cover;
  overflow: hidden;
}

.content-panel .map-panel {
  height: 400px;
  min-height: 220px;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 220px;
}

.content-panel .video-panel {
  height: 500px;
  min-height: 220px;
}

.video-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 220px;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 12px rgba(2, 132, 199, 0.3);
}

.map-pin:nth-child(1) {
  top: 40%;
  left: 30%;
}
.map-pin:nth-child(2) {
  top: 32%;
  left: 58%;
}
.map-pin:nth-child(3) {
  top: 52%;
  left: 67%;
}
.map-pin:nth-child(4) {
  top: 63%;
  left: 45%;
}

.neighborhood-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 18px;
}

.neighborhood-panel h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.neighborhood-panel p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.neighborhood-list {
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.neighborhood-list span {
  color: #0369a1;
  font-weight: 700;
}

/* =============================================================================
   18. DARK FORM SECTION
============================================================================= */

.dark-form {
  margin-top: 58px;
  background: linear-gradient(130deg, #2a2f35 0%, #1f252e 100%);
  color: #fff;
  padding: 60px 0;
}

.dark-form-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 30px;
  align-items: center;
}

.dark-form-copy h2 {
  margin: 0;
  font-size: 37px;
  line-height: 1.2;
}

.dark-form-copy p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

.dark-form-panel {
  background: #fff;
  color: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 16px;
}

.dark-form-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.dark-form-panel .btn {
  width: 100%;
  margin-top: 6px;
}

/* =============================================================================
   19. CONTACT SECTION (DARK BACKGROUND)
============================================================================= */

.section.section-dark {
  position: relative !important;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: clamp(44px, 6vw, 84px) 0 !important;
}

.section.section-dark .split-content h2,
.section.section-dark .split-content p {
  color: #ffffff !important;
}

.section.section-dark .split-content p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.section-dark .contact-form-overlay {
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(
    145deg,
    rgba(8, 16, 28, 0.74) 0%,
    rgba(20, 32, 48, 0.66) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 44px rgba(5, 10, 20, 0.32);
  backdrop-filter: blur(5px);
}

.section-dark .contact-form-overlay .form-grid {
  margin-top: 0;
}

.section-dark .contact-form-overlay .form-grid button[type="submit"] {
  justify-self: center;
  width: auto;
  padding: 9px 18px;
  font-size: 12px;
}

/* =============================================================================
   20. SITE FOOTER
============================================================================= */

.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-top {
  padding: 38px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) 1.4fr;
  gap: 20px;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col li {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}

.newsletter {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.newsletter p {
  margin: 0 0 9px;
  font-size: 12px;
  color: var(--muted);
}

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  flex-wrap: wrap;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #0f172a;
}

/* =============================================================================
   21. PROPERTY SINGLE PAGE
============================================================================= */

.property-head {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.property-title h1 {
  margin: 8px 0 0;
  font-size: 44px;
  line-height: 1.1;
}

.property-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.property-reference-chip {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 174, 239, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #045b79;
  background: #e6f7fd;
}

.property-price-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 16px;
  min-width: 180px;
  text-align: right;
}

.property-price-box strong {
  display: block;
  font-size: 28px;
}

.property-gallery-main img {
  display: block;
  margin-top: 10px;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.property-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.property-gallery-thumb {
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.property-gallery-thumb img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.property-gallery-thumb.is-active {
  border-color: var(--brand);
}

.property-gallery-thumb:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.two-col-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 22px;
  align-items: start;
}

.info-strip {
  margin: 0px 0px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-strip li {
  padding: 12px;
  border-right: 1px solid var(--line);
  font-size: 12px;
  color: #475467;
}

.info-strip li:last-child {
  border-right: 0;
}

.info-strip strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.15;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 20px;
  margin-bottom: 16px;
}

/* Subtle highlight on property description (first content panel) */
.single-property .content-panel:first-of-type {
  background: rgba(0, 174, 239, 0.02);
  border-left: 4px solid var(--brand);
  padding-left: 16px;
}

.content-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.content-panel p,
.content-panel li {
  color: #475467;
  font-size: var(--wp--preset--font-size--small);
}

/* Property details spec lists: balance panel density on desktop. */
.single-property .content-panel ul:not(.amenities-grid) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 8px;
}

.single-property .content-panel ul:not(.amenities-grid) li {
  margin: 0;
  line-height: 1.55;
}

.single-property .content-panel ul:not(.amenities-grid) li strong {
  color: #334155;
  font-weight: 700;
  margin-right: 4px;
}

@media (max-width: 768px) {
  .single-property .content-panel ul:not(.amenities-grid) {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.amenities-grid li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px 10px;
}

.sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 10px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.sidebar-card ul li {
  font-size: var(--wp--preset--font-size--small);
}

.sidebar-card h3 {
  font-size: var(--wp--preset--font-size--medium);
}

.price-widget {
  background: var(--brand);
  color: #fff;
}

.price-widget strong {
  display: block;
  font-size: 38px;
}

.price-widget .btn {
  width: 100%;
  background: #fff;
  color: #0f172a;
  margin-top: 8px;
}

.agent-mini {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.agent-mini img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.micro-testimonial {
  margin-top: 12px;
  border: 1px solid #d4ebf5;
  border-radius: 10px;
  background: #f4fbff;
  padding: 12px;
  color: #0f172a;
}

.micro-testimonial p {
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
}

.micro-testimonial span {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}

/* =============================================================================
   22. BUY / RENT PAGE
============================================================================= */

.buy-rent-hero {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  background: #f2f4f6;
  border: 1px solid var(--line);
  padding: 48px 32px;
}

.buy-rent-hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
}

.buy-rent-hero p {
  margin: 14px 0 0;
  color: var(--muted);
}

.segment-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 20px 0 12px;
}

.segment-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 12px;
}

.segment-tabs .is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.search-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(12, 22, 36, 0.04);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.search-row input:not([type="hidden"]),
.search-row select,
.search-row .btn,
.search-row button {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.search-row input:not([type="hidden"]),
.search-row select {
  border: 1px solid #cfd8e3;
  color: #111827;
  background: #fff;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-row .btn,
.search-row button {
  border: 0;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-row input:not([type="hidden"])::placeholder {
  color: #667085;
}

.search-row select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.search-row select option {
  color: #111827;
  background: #fff;
  font-weight: 400;
}

.search-row input:not([type="hidden"]):hover,
.search-row select:hover {
  border-color: #b8c4d4;
}

.search-row .btn:hover,
.search-row button:hover {
  background: var(--brand-strong);
}

.search-row input:not([type="hidden"]):focus,
.search-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
  outline: none;
}

/* =============================================================================
   23. LISTING PAGE
============================================================================= */

.listing-shell {
  margin-top: var(--space-internal);
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: var(--space-internal);
}

.listing-toolbar h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.listing-meta {
  color: var(--muted);
  font-size: 12px;
}

.listing-control-group {
  display: inline-flex;
  gap: 8px;
}

.listing-control-group select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  background: #fff;
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 20px;
  align-items: start;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.listing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.listing-card.is-hidden {
  display: none;
}

.listing-media {
  position: relative;
}

.listing-media img {
  width: 100%;
  height: 206px;
  object-fit: cover;
}

.listing-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  background: #2bbf4b;
  color: #fff;
  border-radius: 999px;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.listing-price {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
}

.listing-body {
  padding: 12px;
}

.listing-body h3 {
  margin: 0;
  font-size: 14px;
}

.listing-body p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.listing-spec {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #334155;
  font-size: 11px;
}

.listing-actions {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
}

/* Sidebar */
.filter-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  width: 300px;
}

.filter-box h3 {
  margin: 0;
  font-size: 14px;
}

.filter-box ul {
  margin-top: 9px;
  display: grid;
  gap: 6px;
}

.filter-box li {
  font-size: 12px;
  color: #334155;
  display: flex;
  justify-content: space-between;
}

.filter-box li span {
  color: var(--muted);
}

.recent-post {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.recent-post img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.recent-post h4 {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.recent-post p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.recent-post-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.recent-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.recent-post-card:last-child {
  margin-bottom: 0;
}

.recent-post-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.recent-post-card h4 {
  margin: 0;
  font-size: 14px;
}

.recent-post-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.recent-post-card span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
}

.no-results {
  border: 1px dashed #cfd4dc;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  color: #334155;
}

.is-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.segmented[data-listing-tabs] button {
  transition: 0.2s ease;
}

.segmented[data-listing-tabs] button.is-on {
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.22);
}

/* =============================================================================
   24. BLOG PAGES (already covered in Section 14)
============================================================================= */

/* =============================================================================
   25. AGENT PAGES
============================================================================= */

.agent-header {
  margin-top: var(--space-internal);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}

.agent-header img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.agent-header h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.agent-header .agent-sub {
  color: var(--muted);
  margin: 6px 0;
  font-size: 13px;
}

.agent-pill {
  display: inline-flex;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-top-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.chart-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.chart-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 8px auto;
  border: 12px solid #d1ecf9;
  border-top-color: #6ac8f2;
  border-right-color: #9ddaf5;
  border-bottom-color: #f7c0cf;
  border-left-color: #f6d58f;
}

.agent-main-layout {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 20px;
  align-items: start;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
}

.review-card h4 {
  margin: 0;
  font-size: 15px;
}

.review-card p {
  margin: 7px 0 0;
  color: #475467;
  font-size: 13px;
}

.agent-header-panel {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.agent-header-panel img {
  width: 100%;
  max-width: 400px;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
}

/* =============================================================================
   26. SELL PAGE
============================================================================= */

.sell-hero {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #00aeef 0%, #0187bc 100%);
  color: #fff;
  padding: 40px 36px;
}

.sell-hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
}

.sell-grid {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 20px;
  align-items: start;
}

.sell-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sell-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.sell-step strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8f7ff;
  color: #0369a1;
  margin-bottom: 8px;
}

.seller-outcome-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.seller-outcome {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.seller-outcome h4 {
  margin: 0;
  font-size: 14px;
}

.seller-outcome p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 12px;
}

/* =============================================================================
   27. ERROR & POLICY PAGES
============================================================================= */

.contact-grid {
  margin-top: var(--space-internal);
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 20px;
}

.contact-card,
.policy-wrap,
.error-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 20px;
}

.policy-wrap {
  margin-top: var(--space-internal);
}

.policy-wrap h1 {
  margin: 0;
  font-size: 48px;
}

.policy-wrap h2 {
  margin: 20px 0 8px;
  font-size: 30px;
}

.policy-wrap p,
.policy-wrap li {
  color: #475467;
  font-size: 14px;
}

.error-wrap {
  margin-top: 40px;
  text-align: center;
  padding: 48px 24px;
}

.error-code {
  font-size: 120px;
  line-height: 1;
  margin: 0;
  color: var(--brand);
}

.error-wrap h1 {
  margin: 10px 0 8px;
  font-size: 48px;
}

.error-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px auto;
  max-width: 820px;
}

.error-search {
  margin: 18px auto;
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* =============================================================================
   28. FLOATING UI (CONTACT, CTA, VALUATION)
============================================================================= */

.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.floating-contact a {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  border: 0;
  box-shadow: 0 15px 25px rgba(14, 116, 144, 0.2);
  display: grid;
  place-items: center;
  color: #0ea5e9;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.floating-contact a:hover {
  transform: translateY(-2px);
}

.floating-contact a:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.3);
  outline-offset: 2px;
}

.floating-contact a svg {
  display: block;
  width: 28px;
  height: 28px;
}

.floating-contact a.is-whatsapp {
  color: #25d366;
}
.floating-contact a.is-email {
  color: #0ea5e9;
}

.floating-contact a.is-whatsapp:hover {
  color: #ffffff;
  background: #25d366;
}

.floating-contact a.is-email:hover {
  color: #ffffff;
  background: #0ea5e9;
}

.floating-cta,
.floating-valuation {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 31;
  border: 1px solid #bde9fb;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0369a1;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 174, 239, 0.18);
}

@media (min-width: 1025px) {
  /* Pin floating buttons to the right and vertically center them on desktop */
  .floating-contact {
    right: 20px;
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .floating-cta,
  .floating-valuation {
    right: 20px;
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* =============================================================================
   29. PAGINATION
============================================================================= */

.pagination {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination a,
.pagination span {
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}

.pagination .current,
.pagination a.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* =============================================================================
   30. MOBILE MENU
============================================================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0a2540;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .logo {
  color: #fff;
}

.menu-close {
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
}

.mobile-menu-nav a {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav a:hover {
  color: #00aeef;
}

/* =============================================================================
   31. EMOTION & TRUST STRIPS
============================================================================= */

.emotion-strip {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.46);
  color: #e5edf7;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}

.emotion-strip strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

/* =============================================================================
   32. MICRO COMPONENTS
============================================================================= */

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}

.about-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-hero-image img {
  width: 100%;
  height: 418px;
  object-fit: cover;
}

.about-stats {
  margin-top: -34px;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 30px rgba(12, 22, 36, 0.1);
  position: relative;
  z-index: 2;
}

.about-stats .stat-item {
  padding: 15px 14px;
}

.feature-grid-3 {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.feature-card img {
  width: 100%;
  height: 182px;
  object-fit: cover;
}

.feature-card-body {
  padding: 12px;
}

.feature-card h3 {
  margin: 0;
  font-size: 16px;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.about-copy {
  margin-top: 22px;
}

.about-copy h2 {
  margin: 0;
  font-size: 37px;
  line-height: 1.2;
}

.about-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 980px;
}

.about-copy ul {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
}

/* News grid */
.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* =============================================================================
   33. UTILITY CLASSES
============================================================================= */

.hide-mobile {
  display: inline;
}

/* =============================================================================
   34. WORDPRESS PAGINATION COMPATIBILITY
============================================================================= */

.page-numbers:not(a):not(span),
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.page-numbers:not(a):not(span) a,
.page-numbers:not(a):not(span) span,
.nav-links a,
.nav-links span {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}

.page-numbers:not(a):not(span) .current,
.nav-links .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* =============================================================================
   35. RESPONSIVE — 1180px
============================================================================= */

@media (max-width: 1180px) {
  .container {
    width: min(1320px, calc(100% - 30px));
  }

  .main-nav {
    gap: 16px;
    font-size: 10px;
  }

  /* Hero */
  .hero-home,
  .hero-home > .container {
    padding: 0;
  }

  .hero-home > .container {
    gap: clamp(10px, 2vw, 18px);
  }

  .hero-home-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(14px, 3vw, 24px);
    padding: 0;
  }

  .hero-search {
    width: min(560px, 100%);
  }

  .hero-copy p {
    max-width: 100%;
  }

  .hero-home-bg-meta {
    bottom: 16px;
    right: 16px;
  }

  /* Multi-column layouts → single column */
  .split-highlight,
  .mosaic-layout,
  .map-and-neighborhood,
  .dark-form-grid,
  .about-hero,
  .agent-wall,
  .listing-layout {
    grid-template-columns: 1fr;
  }

  /* 4-col grids → 2-col */
  .news-grid-4,
  .toolkit-grid,
  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* About stats */
  .about-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-stats .stat-item:nth-child(3n) {
    border-right: 0;
  }

  /* Listing */
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  /* Search row */
  .search-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 3-col grids → 2-col */
  .sell-step-grid,
  .agent-top-grid,
  .error-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Sidebar layouts → single column */
  .two-col-layout,
  .blog-layout,
  .blog-details-layout,
  .agent-main-layout,
  .sell-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Other grids */
  .emotion-strip,
  .seller-outcome-grid {
    grid-template-columns: 1fr;
  }

  .floating-cta {
    display: none;
  }
}

/* =============================================================================
   36. RESPONSIVE — 1024px
============================================================================= */

@media (max-width: 1024px) {
  /* Show mobile menu toggle, hide desktop nav */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #14161a;
  }

  .main-nav {
    display: none;
  }

  /* Grids */
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Property single: sidebar becomes a 2-col row */
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .two-col-layout .sidebar {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    position: static;
  }

  /* Floating UI */
  .floating-valuation {
    display: none;
  }
}

/* Strong override: ensure floating buttons are centered on large screens
   This uses higher specificity and !important to beat conflicting styles. */
@media (min-width: 1025px) {
  body .floating-contact,
  body .floating-cta,
  body .floating-valuation {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}

/* =============================================================================
   37. RESPONSIVE — 768px
============================================================================= */

@media (max-width: 768px) {
  /* Header */
  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 62px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .main-nav {
    width: 100%;
    order: 3;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 9px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hide-mobile {
    display: none;
  }

  /* Hero */
  .hero-home-wrap {
    min-height: min(90vh, 1000px);
    padding: 0;
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: 1.5rem;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-copy .btn {
    padding: 12px 24px;
    font-size: 13px;
  }

  .hero-search {
    width: 100%;
    padding: 14px;
  }

  .hero-search .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-search .form-grid button {
    grid-column: 1 / -1;
  }

  .hero-home-bg-meta {
    left: auto;
    right: 14px;
    bottom: 40px;
    max-width: min(78%, 320px);
  }

  .hero-home-outside-nav {
    padding: 0;
  }

  .hero-home-outside-nav__btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .hero-home-outside-nav__btn--prev {
    --hero-nav-shift: -12px;
  }

  .hero-home-outside-nav__btn--next {
    --hero-nav-shift: 12px;
  }

  /* Section spacing */
  .section,
  .toolkit {
    margin: var(--space-section-mobile) 0;
  }

  /* Typography */
  .section-head h2,
  .split-content h2,
  .section-title,
  .about-copy h2,
  .value-banner h2,
  .agent-wall-aside h3 {
    font-size: 28px;
  }

  /* Stats */
  .stats-row {
    position: static;
    border-radius: 0;
    margin-top: -1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row-inline {
    margin-top: 24px;
    border-radius: var(--radius-md);
  }

  .stats-row .stat-item:nth-child(2n) {
    border-right: 0;
  }

  /* 1-col grids */
  .feature-grid-3,
  .agent-grid,
  .news-grid-4,
  .toolkit-grid,
  .about-values-grid,
  .about-market-grid {
    grid-template-columns: 1fr;
  }

  /* Mosaic */
  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
  }

  .mosaic-large {
    grid-column: span 2;
  }

  /* About */
  .about-stats {
    margin-top: 12px;
    grid-template-columns: 1fr;
  }

  .about-stats .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-stats .stat-item:last-child {
    border-bottom: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid .footer-col:first-child,
  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Floating */
  .floating-contact {
    right: 10px;
    bottom: 14px;
  }

  .floating-contact a {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  /* Team */
  .team-card {
    --team-avatar-size: clamp(46px, 12vw, 54px);
  }

  /* Search */
  .search-row,
  .sell-step-grid,
  .agent-top-grid,
  .error-actions,
  .info-strip {
    grid-template-columns: 1fr;
  }

  /* Page headings */
  .buy-rent-hero h1,
  .property-title h1,
  .blog-article h1,
  .agent-header h1,
  .error-wrap h1,
  .policy-wrap h1,
  .sell-hero h1 {
    font-size: 32px;
  }

  .error-code {
    font-size: 72px;
  }

  /* Info strip */
  .info-strip li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .info-strip li:last-child {
    border-bottom: 0;
  }

  /* Agent */
  .agent-header,
  .agent-header-panel {
    grid-template-columns: 1fr;
  }

  .agent-header-panel img {
    max-width: 100%;
    height: clamp(220px, 52vw, 320px);
  }

  /* Blog */
  .blog-post-nav {
    grid-template-columns: 1fr;
  }

  .blog-post-nav__link.align-right {
    text-align: left;
  }

  /* Section dark */
  .section.section-dark {
    padding: 32px 0 !important;
  }

  .section-dark .contact-form-overlay {
    padding: 18px;
    border-radius: 14px;
  }

  /* Section head */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Services luxury */
  .services-luxury__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .services-luxury__grid::before {
    top: 30% !important;
    font-size: clamp(48px, 24vw, 120px) !important;
  }

  .services-luxury__media {
    aspect-ratio: 16 / 9 !important;
  }

  .services-luxury__description {
    max-width: 34ch !important;
  }

  /* Property single */
  .property-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .property-price-box {
    text-align: left;
    min-width: unset;
    width: 100%;
  }

  .property-title h1 {
    font-size: 28px;
  }

  /* Pagination */
  .pagination a,
  .pagination span {
    min-width: 32px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* Floating valuation */
  .floating-valuation {
    display: none;
  }
}

/* =============================================================================
   38. RESPONSIVE — 640px
============================================================================= */

@media (max-width: 640px) {
  /* Property single: sidebar fully stacks */
  .two-col-layout .sidebar {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   39. RESPONSIVE — 480px
============================================================================= */

@media (max-width: 480px) {
  /* Hero */
  .hero-home-wrap,
  .hero-search {
    padding: 12px;
    margin-top: 12px;
  }

  .hero-search .form-grid {
    grid-template-columns: 1fr;
  }

  /* Property grid → single column */
  .property-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Team / blog */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Footer → single column */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid .footer-col:first-child,
  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }

  .newsletter-row {
    grid-template-columns: 1fr;
  }

  .newsletter-row button {
    width: 100%;
  }

  /* Services luxury */
  .services-luxury__grid {
    grid-template-columns: 1fr;
  }

  /* Property single: info strip 2×2 */
  .info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-strip li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .info-strip li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .info-strip li:nth-child(3),
  .info-strip li:nth-child(4) {
    border-bottom: 0;
  }

  /* Pagination */
  .pagination {
    gap: 6px;
  }
}

/* =============================================================================
   40. ACCESSIBILITY & MOTION
============================================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-home-bg-slide {
    transition: none;
    transform: none;
  }

  .hero-home-bg-slide.is-active img,
  .hero-home-bg-slide.is-active iframe {
    animation: none;
  }
}
