/* ============================================================
   NEXORA Properties — Design System & Global Styles
   Premium Real-Estate Platform | Saudi Arabia & GCC
   Elementor-Ready: Flex Containers Only, No CSS Grid
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary: #0B1F33;
  --color-secondary: #F5F1E8;
  --color-accent: #C9A45C;
  --color-accent-hover: #b8933f;
  --color-accent-light: rgba(201, 164, 92, 0.12);
  --color-slate: #5E6B78;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-border: #E6E1D8;
  --color-border-light: #F0ECE4;
  --color-text-dark: #0B1F33;
  --color-text-body: #3A4550;
  --color-text-muted: #8A939C;
  --color-overlay: rgba(11, 31, 51, 0.65);
  --color-overlay-dark: rgba(11, 31, 51, 0.82);
  --color-success: #2E8B57;
  --color-error: #C0392B;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes (fluid clamp) */
  --fs-display: clamp(2.5rem, 4.5vw, 4rem);
  --fs-h1: clamp(2rem, 3.5vw, 3rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-tag: 0.75rem;

  /* Line Heights */
  --lh-heading: 1.2;
  --lh-body: 1.7;
  --lh-tight: 1.4;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 900px;
  --header-height: 80px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 31, 51, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 31, 51, 0.1);
  --shadow-xl: 0 16px 48px rgba(11, 31, 51, 0.12);
  --shadow-card: 0 2px 12px rgba(11, 31, 51, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(11, 31, 51, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   2. Reset & Base Styles
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .section-label {
  letter-spacing: 0;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] .top-bar-right,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .search-tabs,
html[dir="rtl"] .filter-tabs {
  direction: rtl;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: var(--lh-heading);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-lg); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--space-md); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--space-sm); }

.display-heading {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-tag);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--color-slate);
  max-width: 640px;
  line-height: var(--lh-body);
}

.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.text-slate { color: var(--color-slate); }
.text-center { text-align: center; }
.text-italic { font-style: italic; }

/* ============================================================
   4. Layout System (Elementor Flex Containers)
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Flex Row System */
.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-start { align-items: flex-start; }
.flex-end { align-items: flex-end; }
.flex-stretch { align-items: stretch; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

/* Column widths for flex children */
.col-full { flex: 0 0 100%; }
.col-half { flex: 0 0 calc(50% - var(--space-xl) / 2); }
.col-third { flex: 0 0 calc(33.333% - var(--space-xl) * 2 / 3); }
.col-quarter { flex: 0 0 calc(25% - var(--space-xl) * 3 / 4); }
.col-two-thirds { flex: 0 0 calc(66.666% - var(--space-xl) / 3); }
.col-grow { flex: 1 1 0; min-width: 0; }

/* Property details read more naturally at full width; keep inquiry focused below. */
.property-details-layout > .col-two-thirds {
  flex: 0 0 100%;
}

.property-details-layout > .col-third {
  flex: 0 0 min(100%, 560px);
  margin-inline: auto;
}

/* Section Wrapper */
.section {
  padding: var(--space-section) 0;
}

.section-ivory {
  background-color: var(--color-secondary);
}

.section-navy {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--color-white);
}

.section-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   5. Buttons (Elementor Button Widget)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 164, 92, 0.35);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: #122d45;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--fs-body);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--fs-xs);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================
   6. Top Bar
   ============================================================ */
.top-bar {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.7);
}

.top-bar a:hover {
  color: var(--color-accent);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.top-bar-right a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   7. Header & Navigation
   ============================================================ */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-xl);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.logo svg {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.logo-text span {
  color: var(--color-accent);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.main-nav a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: var(--color-accent-light);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-white);
  z-index: 1050;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  flex-direction: column;
  gap: var(--space-xs);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--color-text-dark);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  display: block;
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

.mobile-nav .btn {
  margin-top: var(--space-lg);
  width: 100%;
  text-align: center;
}

/* ============================================================
   8. Hero Sections
   ============================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-5xl) 0;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
}

.hero .section-label {
  color: var(--color-accent);
}

/* Page Hero (Smaller) */
.page-hero {
  position: relative;
  padding: var(--space-4xl) 0 var(--space-3xl);
  background-color: var(--color-primary);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-lg);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero .breadcrumb a:hover {
  color: var(--color-accent);
}

.page-hero .breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   9. Search Widget (Hero Search)
   ============================================================ */
.search-widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  max-width: 900px;
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-border);
}

.search-tab {
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-slate);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.search-tab.active,
.search-tab:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
}

.search-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-field select,
.search-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--color-text-dark);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235E6B78' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.search-btn-wrap {
  flex: 0 0 auto;
}

/* ============================================================
   10. Property Cards (Elementor Listing Cards)
   ============================================================ */
.property-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.property-card-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.property-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: var(--space-xs);
}

.badge {
  font-size: var(--fs-tag);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-sale {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge-rent {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge-featured {
  background: var(--color-white);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.badge-verified {
  background: var(--color-success);
  color: var(--color-white);
}

.property-card-favorite {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.property-card-favorite:hover {
  background: var(--color-white);
  transform: scale(1.1);
}

.property-card-favorite svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-slate);
  stroke-width: 2;
}

.property-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.property-card-price {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-primary);
}

.property-card-price .currency {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-slate);
}

.property-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: var(--lh-tight);
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--color-slate);
}

.property-card-location svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.property-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--color-slate);
}

.spec-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.spec-item strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

.property-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.property-card-agent {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.property-card-agent img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.property-card-agent span {
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

/* ============================================================
   11. Stat Counters / Metrics
   ============================================================ */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  flex: 1 1 180px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-accent);
}

.section-navy .stat-number {
  color: var(--color-accent);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--color-slate);
  font-weight: 500;
}

.section-navy .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   12. Icon Boxes (Elementor Icon Box Widget)
   ============================================================ */
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.icon-box:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-box-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.icon-box-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--color-accent);
}

.icon-box h4 {
  margin-bottom: 0;
}

.icon-box p {
  font-size: var(--fs-small);
  color: var(--color-slate);
  line-height: var(--lh-body);
}

/* Centered variant */
.icon-box-centered {
  align-items: center;
  text-align: center;
}

/* Horizontal variant */
.icon-box-horizontal {
  flex-direction: row;
  align-items: flex-start;
}

.icon-box-horizontal .icon-box-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ============================================================
   13. Category Cards (Image + Overlay Text)
   ============================================================ */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 51, 0.85) 0%, rgba(11, 31, 51, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  transition: background var(--transition-base);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(11, 31, 51, 0.9) 0%, rgba(11, 31, 51, 0.2) 60%);
}

.category-card-overlay h3 {
  color: var(--color-white);
  font-size: var(--fs-h4);
  margin-bottom: 4px;
}

.category-card-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
}

.category-card-overlay .card-arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-base);
}

.category-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--color-white);
}

/* ============================================================
   14. Location Cards
   ============================================================ */
.location-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  flex: 1 1 200px;
  min-width: 180px;
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.location-card:hover img {
  transform: scale(1.06);
}

.location-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 51, 0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}

.location-card-overlay h4 {
  color: var(--color-white);
  font-size: var(--fs-h4);
  margin-bottom: 2px;
}

.location-card-overlay p {
  color: var(--color-accent);
  font-size: var(--fs-xs);
  font-weight: 500;
}

/* ============================================================
   15. Testimonial Cards (Elementor Testimonial Widget)
   ============================================================ */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

.testimonial-quote {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 0;
  position: relative;
  top: 14px;
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent-light);
}

.testimonial-info h5 {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

/* ============================================================
   16. Steps / How It Works
   ============================================================ */
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  flex: 1 1 250px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  border-radius: 50%;
}

.step-card h4 {
  margin-bottom: 0;
}

.step-card p {
  font-size: var(--fs-small);
  color: var(--color-slate);
  max-width: 280px;
}

/* Connector line between steps */
.steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  justify-content: center;
  position: relative;
  direction: rtl;
}

@media (min-width: 1025px) {
  .steps-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2xl);
    align-items: start;
  }

  .steps-row .step-card {
    min-width: 0;
  }
}

.steps-row .step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  inset-inline-end: calc(-1 * var(--space-2xl));
  width: var(--space-2xl);
  height: 2px;
  background: var(--color-border);
}

/* ============================================================
   17. CTA Banner
   ============================================================ */
.cta-banner {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #14324E 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 164, 92, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.cta-banner .flex-row {
  gap: var(--space-md);
}

/* ============================================================
   18. Development / Project Cards
   ============================================================ */
.dev-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.dev-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.dev-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.dev-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.dev-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.dev-card-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

.dev-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dev-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-text-dark);
}

.dev-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--fs-body-lg);
}

/* ============================================================
   19. Insight / Article Cards
   ============================================================ */
.article-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.article-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.article-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.article-card-category {
  font-size: var(--fs-tag);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-text-dark);
  line-height: var(--lh-tight);
}

.article-card-excerpt {
  font-size: var(--fs-small);
  color: var(--color-slate);
  line-height: var(--lh-body);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

/* ============================================================
   20. Forms (Elementor Form Widget)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  color: var(--color-text-dark);
  background: var(--color-white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235E6B78' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.form-row .form-group {
  flex: 1 1 250px;
}

/* ============================================================
   21. Accordion (Elementor Accordion Widget)
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  background: var(--color-white);
  transition: background var(--transition-fast);
  gap: var(--space-md);
}

.accordion-header:hover {
  background: var(--color-secondary);
}

.accordion-header h4 {
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  flex: 1;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--color-slate);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-body-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--fs-body);
  color: var(--color-slate);
  line-height: var(--lh-body);
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

/* ============================================================
   22. Star Rating (Elementor Star Rating Widget)
   ============================================================ */
.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating svg {
  width: 18px;
  height: 18px;
}

.star-filled { fill: var(--color-accent); }
.star-empty { fill: var(--color-border); }

/* ============================================================
   23. Gallery (Elementor Gallery Widget)
   ============================================================ */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-main {
  flex: 1 1 60%;
  min-width: 300px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  flex: 1 1 35%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.gallery-thumb {
  flex: 1 1 calc(50% - var(--space-sm) / 2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--fs-body-lg);
}

/* ============================================================
   24. Agent / Contact Sidebar Card
   ============================================================ */
.agent-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent-light);
}

.agent-info h4 {
  margin-bottom: 2px;
  font-family: var(--font-body);
}

.agent-info p {
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-tag);
  font-weight: 600;
  color: var(--color-success);
  background: rgba(46, 139, 87, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.agent-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.agent-buttons .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   25. Filter Bar (Properties Page)
   ============================================================ */
.filter-bar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.filter-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.filter-tab {
  padding: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-slate);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
}

.filter-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-field select,
.filter-field input {
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--color-text-dark);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.filter-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235E6B78' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.results-count {
  font-size: var(--fs-small);
  color: var(--color-slate);
  margin-bottom: var(--space-lg);
}

.results-count strong {
  color: var(--color-text-dark);
}

/* ============================================================
   26. Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  padding-top: var(--space-3xl);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--space-md);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================================
   27. Team Cards
   ============================================================ */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.team-card-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent-light);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  margin-bottom: 0;
  font-family: var(--font-body);
}

.team-card p {
  font-size: var(--fs-small);
  color: var(--color-accent);
  font-weight: 500;
}

/* ============================================================
   28. Value / Feature Cards
   ============================================================ */
.value-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.value-card h4 {
  margin-bottom: 0;
}

.value-card p {
  font-size: var(--fs-small);
  color: var(--color-slate);
  line-height: var(--lh-body);
}

/* ============================================================
   29. Newsletter / Subscription
   ============================================================ */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-width: 480px;
}

.newsletter-form input {
  flex: 1 1 250px;
  padding: 14px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: var(--fs-small);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
}

/* Ivory variant */
.newsletter-form-light {
  max-width: 480px;
}

.newsletter-form-light input {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-text-dark);
}

.newsletter-form-light input::placeholder {
  color: var(--color-text-muted);
}

/* ============================================================
   30. Footer
   ============================================================ */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-5xl);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-col.footer-brand {
  flex: 1 1 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-logo .logo-text {
  color: var(--color-white);
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-col p {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  font-size: var(--fs-xs);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ============================================================
   31. Contact Info Cards
   ============================================================ */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
  padding: var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-accent);
}

.contact-card-icon.contact-icon-email svg,
.contact-card-icon.contact-icon-hours svg {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h4 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: var(--fs-small);
  color: var(--color-slate);
  overflow-wrap: anywhere;
}

.contact-card > div:last-child {
  min-width: 0;
}

.contact-card a {
  color: var(--color-accent);
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ============================================================
   32. Map Placeholder
   ============================================================ */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.map-container .map-placeholder {
  text-align: center;
  color: var(--color-slate);
}

.map-container .map-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* ============================================================
   33. Spec Strip (Property Details)
   ============================================================ */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-strip-item {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--color-border);
}

.spec-strip-item:last-child {
  border-right: none;
}

.spec-strip-item svg {
  width: 22px;
  height: 22px;
  fill: var(--color-accent);
  margin-bottom: 4px;
}

.spec-strip-item strong {
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--color-text-dark);
}

.spec-strip-item span {
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

/* ============================================================
   34. Feature Tags (Amenities)
   ============================================================ */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  color: var(--color-text-body);
  font-weight: 500;
}

.feature-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
}

/* ============================================================
   35. Tab Navigation (FAQ, Filters)
   ============================================================ */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
}

.tab-nav-item {
  padding: 10px 24px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-slate);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-nav-item.active,
.tab-nav-item:hover {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================================
   36. Listing Process Steps (List Your Property)
   ============================================================ */
.process-step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.process-step h4 {
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: var(--fs-small);
  color: var(--color-slate);
}

/* ============================================================
   37. Partner / Tier Cards
   ============================================================ */
.tier-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  transition: all var(--transition-base);
}

.tier-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.tier-card.featured {
  border-color: var(--color-accent);
  position: relative;
}

.tier-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--fs-tag);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.tier-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 50%;
}

.tier-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
  width: 100%;
}

.tier-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text-body);
}

.tier-feature svg {
  width: 16px;
  height: 16px;
  fill: var(--color-success);
  flex-shrink: 0;
}

/* ============================================================
   38. Utility Classes
   ============================================================ */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   39. Animations & Scroll Reveals
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   40. Responsive Breakpoints
   ============================================================ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .col-half,
  .col-third,
  .col-quarter {
    flex: 0 0 calc(50% - var(--space-xl) / 2);
  }

  .col-two-thirds {
    flex: 0 0 100%;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .top-bar {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

  .steps-row .step-card::after {
    display: none;
  }

  .footer-col {
    flex: 1 1 45%;
  }

  .spec-strip-item {
    flex: 1 1 33%;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-section: 3.5rem;
  }

  .container,
  .container-wide,
  .container-narrow {
    padding: 0 var(--space-md);
  }

  .col-half,
  .col-third,
  .col-quarter {
    flex: 0 0 100%;
  }

  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .search-widget {
    padding: var(--space-md);
  }

  .search-fields {
    flex-direction: column;
  }

  .search-field {
    flex: 0 0 100%;
  }

  .search-btn-wrap {
    width: 100%;
  }

  .search-btn-wrap .btn {
    width: 100%;
  }

  .flex-row {
    gap: var(--space-lg);
  }

  .property-card,
  .location-card,
  .article-card {
    flex: 0 0 100%;
  }

  .category-card {
    aspect-ratio: 16 / 9;
  }

  .gallery-main {
    flex: 0 0 100%;
  }

  .gallery-thumbs {
    flex: 0 0 100%;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .filter-fields {
    flex-direction: column;
  }

  .filter-field {
    flex: 0 0 100%;
  }

  .footer-main {
    gap: var(--space-2xl);
  }

  .footer-col {
    flex: 0 0 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner {
    text-align: center;
  }

  .cta-banner .flex-row {
    justify-content: center;
  }

  .stat-item {
    flex: 0 0 calc(50% - var(--space-xl) / 2);
  }

  .process-step {
    flex-direction: column;
    gap: var(--space-md);
  }

  .tab-nav {
    gap: 6px;
  }

  .tab-nav-item {
    padding: 8px 16px;
    font-size: var(--fs-xs);
  }

  .page-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .spec-strip-item {
    flex: 0 0 50%;
  }

  .agent-card {
    position: static;
  }

  .team-card-image {
    width: 120px;
    height: 120px;
  }

  .tier-card {
    padding: var(--space-2xl) var(--space-lg);
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .stat-item {
    flex: 0 0 100%;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: var(--fs-small);
  }

  .search-tabs {
    flex-direction: column;
    gap: 0;
  }

  .search-tab {
    text-align: center;
    border-bottom: none;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: var(--fs-xs);
  }
}

/* Print Styles */
@media print {
  .top-bar,
  .site-header,
  .site-footer,
  .mobile-toggle,
  .mobile-nav,
  .search-widget,
  .cta-banner {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: none;
  }
}
