@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================
   DESIGN TOKENS & VARIABLES
   ========================================== */
:root {
  /* Color Palette */
  --color-primary: #0a0e17;       /* Rich Black-Slate */
  --color-primary-light: #121b2d; /* Slate Navy */
  --color-accent: #c5a880;        /* Warm Metallic Gold */
  --color-accent-hover: #e5c59e;  /* Lighter Gold */
  --color-accent-dark: #9a7c56;   /* Deep Gold */
  
  --color-bg-light: #f8fafc;      /* Soft Light Gray */
  --color-bg-white: #ffffff;      /* Pure White */
  
  --color-text-dark: #0f172a;     /* Dark Slate Text */
  --color-text-light: #f8fafc;    /* Off-White Text */
  --color-text-muted-dark: #64748b; /* Slate Gray Muted */
  --color-text-muted-light: #94a3b8; /* Slate Blue Muted */
  
  --color-border-light: #e2e8f0;  /* Subtle Light Border */
  --color-border-dark: #1e293b;   /* Subtle Dark Border */
  
  /* Fonts */
  --font-headings: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-premium: 0 20px 40px -10px rgba(10, 14, 23, 0.15);
  --shadow-gold: 0 4px 14px 0 rgba(197, 168, 128, 0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transition */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

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

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

ul {
  list-style: none;
}

/* ==========================================
   REUSABLE UTILITIES & LAYOUT
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-bg-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.section-bg-light {
  background-color: var(--color-bg-light);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: inherit;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-bg-dark .section-title {
  color: var(--color-text-light);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-dark:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-nav.scrolled {
  background-color: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  box-shadow: var(--shadow-premium);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.header-nav.scrolled .nav-container {
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.8);
  letter-spacing: 1px;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-light);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
  padding: 10px 20px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-light);
  transition: var(--transition-smooth);
}

/* ==========================================
   HERO / WELCOME BANNER
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 14, 23, 0.7) 0%, rgba(10, 14, 23, 0.85) 100%);
  z-index: 2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom-out-slow 20s ease-out infinite alternate;
}

@keyframes zoom-out-slow {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  color: var(--color-text-light);
  padding-top: 80px;
}

.hero-tagline {
  font-family: var(--font-body);
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s 0.2s forwards;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.15;
  margin-bottom: 30px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s 0.4s forwards;
}

.hero-headline span {
  color: var(--color-accent);
  display: block;
  font-family: var(--font-headings);
  font-size: 4rem;
  font-weight: 800;
  margin-top: 10px;
}

.hero-search-container {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 1s 0.6s forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   DYNAMIC PROPERTY SEARCH BAR
   ========================================== */
.search-widget {
  background: rgba(18, 27, 45, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-premium);
  max-width: 900px;
  margin-top: 40px;
}

.search-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.search-tab {
  background: none;
  border: none;
  color: var(--color-text-muted-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  position: relative;
  transition: var(--transition-smooth);
}

.search-tab.active {
  color: var(--color-accent);
}

.search-tab.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
}

.search-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
}

.search-select, .search-input {
  background-color: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-select:focus, .search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.2);
}

.search-btn {
  align-self: flex-end;
  height: 48px;
  width: 100%;
}

/* ==========================================
   PROPERTY LISTING GRID
   ========================================== */
.listing-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.listing-count {
  font-weight: 500;
  color: var(--color-text-muted-dark);
}

.listing-count span {
  color: var(--color-primary);
  font-weight: 700;
}

.listing-sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  outline: none;
  font-family: var(--font-body);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  transition: var(--transition-smooth);
}

.listings-grid.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.listing-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(197, 168, 128, 0.3);
}

.listing-img-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.listing-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent);
  z-index: 2;
}

.listing-price-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-text-light);
  padding: 8px 16px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  z-index: 2;
}

.listing-body {
  padding: 24px;
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing-location svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.listing-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-specs {
  display: flex;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted-dark);
}

.spec-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.listing-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted-dark);
  letter-spacing: 1px;
}

.listing-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.listing-link:hover {
  color: var(--color-accent-dark);
}

.listing-link svg {
  width: 14px;
  height: 14px;
  transition: var(--transition-smooth);
}

.listing-link:hover svg {
  transform: translateX(4px);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-light);
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* ==========================================
   LIFESTYLE / GALLERY SECTION
   ========================================== */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lifestyle-card {
  position: relative;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.lifestyle-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 14, 23, 0.1) 0%, rgba(10, 14, 23, 0.8) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

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

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

.lifestyle-card:hover::after {
  background: linear-gradient(to bottom, rgba(10, 14, 23, 0.2) 0%, rgba(10, 14, 23, 0.9) 100%);
}

.lifestyle-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 3;
  color: var(--color-text-light);
}

.lifestyle-title {
  font-size: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.lifestyle-count {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ==========================================
   CALL-TO-ACTION BANNER
   ========================================== */
.cta-banner {
  background-color: var(--color-primary-light);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(197, 168, 128, 0.1) 100%);
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 40px;
}

.cta-text {
  flex: 1;
  min-width: 300px;
}

.cta-title {
  font-size: 2.2rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.cta-description {
  color: var(--color-text-muted-light);
  font-size: 1.1rem;
}

/* ==========================================
   TESTIMONIALS SLIDER
   ========================================== */
.testimonials-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 10px;
}

.testimonial-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.testimonial-quote-icon {
  width: 48px;
  height: 48px;
  fill: rgba(197, 168, 128, 0.15);
  margin: 0 auto 24px;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-dark);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-client {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.client-role {
  font-size: 0.8rem;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  z-index: 10;
}

.slider-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

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

.slider-prev {
  left: -24px;
}

.slider-next {
  right: -24px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-border-light);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: var(--color-accent);
  width: 24px;
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(197, 168, 128, 0.4);
}

.faq-header {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  outline: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  fill: var(--color-accent);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--color-text-muted-dark);
  line-height: 1.7;
}

/* ==========================================
   ABOUT PAGE TEMPLATE
   ========================================== */
.about-hero {
  height: 60vh;
  min-height: 450px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  position: relative;
}

.about-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 14, 23, 0.9) 30%, rgba(10, 14, 23, 0.5) 100%);
  z-index: 2;
}

.about-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-text-light);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.about-intro-img::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--color-accent);
  border-radius: calc(var(--radius-lg) - 5px);
  pointer-events: none;
  z-index: 2;
}

.about-intro-img img {
  transition: var(--transition-slow);
}

.about-intro-img:hover img {
  transform: scale(1.03);
}

.about-intro-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-intro-text p {
  color: var(--color-text-muted-dark);
  margin-bottom: 20px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 128, 0.4);
}

.value-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--color-accent-dark);
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.value-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.value-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.value-desc {
  color: var(--color-text-muted-dark);
  font-size: 0.95rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-img-wrap {
  height: 320px;
  overflow: hidden;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.04);
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-name {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ==========================================
   CONTACT PAGE TEMPLATE & FORM
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.contact-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
}

/* ==========================================
   CONTACT PAGE — INFO COLUMN
   ========================================== */
.contact-section {
  padding-top: 160px;
}

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

.realtor-profile-card {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.realtor-profile-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  flex-shrink: 0;
}

.realtor-profile-card h4 {
  color: var(--color-accent-dark);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.realtor-profile-card p {
  color: var(--color-text-muted-dark);
  font-size: 0.85rem;
}

.contact-headline {
  font-size: 2.4rem;
  margin-bottom: 20px;
  margin-top: 4px;
}

.contact-desc {
  color: var(--color-text-muted-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.contact-method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 168, 128, 0.35);
}

.contact-method-card svg {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 12px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  fill: var(--color-accent-dark);
}

.contact-method-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-method-card p {
  color: var(--color-text-muted-dark);
  font-size: 0.9rem;
  word-break: break-word;
}

@media (max-width: 768px) {
  .contact-section {
    padding-top: 120px;
  }
  .contact-headline {
    font-size: 1.9rem;
  }
  .contact-desc {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .realtor-profile-card {
    flex-direction: column;
    text-align: center;
  }
  .contact-method-card {
    flex-direction: column;
    text-align: center;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.info-details p, .info-details a {
  color: var(--color-text-muted-dark);
}

.info-details a:hover {
  color: var(--color-accent-dark);
}

/* Map Placeholder */
.map-container {
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Forms */
.form-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-light);
}

.form-input, .form-select, .form-textarea {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

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

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

/* Validation styling */
.form-field.error .form-input, .form-field.error .form-select {
  border-color: #ef4444;
}

.form-field .error-message {
  font-size: 0.8rem;
  color: #ef4444;
  display: none;
}

.form-field.error .error-message {
  display: block;
}

/* Form success animation */
.form-submit-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: scale-up 0.5s ease-out forwards;
}

@keyframes scale-up {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  margin-bottom: 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.form-submit-success h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-submit-success p {
  color: var(--color-text-muted-dark);
  max-width: 400px;
  margin-bottom: 24px;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h3 {
  color: var(--color-text-light);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1.5px;
  background-color: var(--color-accent);
}

.footer-about p {
  color: var(--color-text-muted-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted-light);
  font-size: 0.9rem;
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted-light);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
}

.footer-copyright a {
  color: var(--color-text-light);
  margin-left: 15px;
}

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

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 2.8rem;
  }
  .hero-headline span {
    font-size: 3.2rem;
  }
  .search-fields {
    grid-template-columns: 1fr 1fr;
  }
  .search-btn {
    grid-column: span 2;
  }
  .lifestyle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .values-grid, .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Nav switches to the mobile hamburger earlier (tablets + small laptops)
   to avoid the full desktop menu wrapping/overflowing at in-between widths */
@media (max-width: 1080px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-menu.open {
    left: 0;
  }
  .header-nav.scrolled .nav-container {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-headline span {
    font-size: 2.5rem;
  }
  .search-fields {
    grid-template-columns: 1fr;
  }
  .search-btn {
    grid-column: span 1;
  }
  .lifestyle-grid {
    grid-template-columns: 1fr;
  }
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  .cta-btn {
    width: 100%;
  }
  .values-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   DROPDOWN NAVIGATION (DESKTOP)
   ========================================== */
.nav-item {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-primary-light);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  min-width: 230px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.85);
  padding: 10px 24px;
  transition: var(--transition-smooth);
  text-transform: none;
  letter-spacing: 0.5px;
  display: block;
}

.dropdown-item:hover {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.03);
}

/* Mobile-specific Dropdown Arrow Indicator */
.nav-link.has-dropdown-toggle::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

/* ==========================================
   MORTGAGE CALCULATOR LAYOUT
   ========================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.calc-panel {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.calc-results-panel {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  position: sticky;
  top: 100px;
  border-left: 4px solid var(--color-accent);
}

.calc-slider-group {
  margin-bottom: 30px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-light);
}

.calc-value-display {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border-light);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.calc-slider::-webkit-slider-thumb:hover {
  background: var(--color-accent-hover);
  transform: scale(1.15);
}

.calc-result-main {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.calc-result-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted-light);
  margin-bottom: 8px;
}

.calc-result-price {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.15;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.calc-breakdown-row span:first-child {
  color: var(--color-text-muted-light);
}

.calc-breakdown-row span:last-child {
  font-weight: 600;
  color: var(--color-text-light);
}

/* ==========================================
   MOBILE DROPDOWN & CALCULATOR OVERRIDES
   ========================================== */
@media (max-width: 1080px) {
  .nav-menu {
    overflow-y: auto;
  }
  
  .nav-item {
    display: block;
    width: 100%;
    text-align: left;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.02);
    border: none;
    border-left: 2px solid var(--color-accent);
    box-shadow: none;
    min-width: 100%;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .nav-item.mobile-open .dropdown-menu {
    max-height: 500px;
    padding: 10px 0;
    margin-top: 10px;
  }
  
  .nav-item.mobile-open .nav-link.has-dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-results-panel {
    position: static;
  }
}

/* ==========================================
   SOCIAL REVIEW LINKS (Homepage)
   ========================================== */
.social-review-section {
  margin-top: 50px;
  text-align: center;
  border-top: 1px solid var(--color-border-light);
  padding-top: 45px;
}

.social-review-heading {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-review-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-review-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.social-review-btn svg {
  width: 20px;
  height: 20px;
}

.social-review-btn span {
  font-weight: 600;
  font-size: 0.9rem;
}

.social-review-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

@media (max-width: 480px) {
  .social-review-links {
    flex-direction: column;
    align-items: stretch;
  }
  .social-review-btn {
    justify-content: center;
  }
}

/* ==========================================
   FINE-TUNED SMALL PHONE OVERRIDES (≤480px)
   ========================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 48px 0;
  }
  .hero {
    height: auto;
    min-height: 0;
    padding: 130px 0 60px;
  }
  .hero-headline {
    font-size: 1.85rem;
  }
  .hero-headline span {
    font-size: 2.1rem;
  }
  .search-widget {
    padding: 20px;
  }
  .search-tabs {
    gap: 10px;
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }
  .listing-img-container {
    height: 200px;
  }
  .contact-card {
    padding: 24px;
  }
  .form-group-row {
    gap: 12px;
  }
  .cta-title {
    font-size: 1.7rem;
  }
  .testimonial-card {
    padding: 28px 22px;
  }
  .section-title {
    font-size: 1.9rem;
  }
}

/* ==========================================
   EDITORIAL PROMOTION PANELS
   ========================================== */
.editorial-promo-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  margin-top: 20px;
}

.editorial-promo-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.editorial-promo-img-wrap {
  height: 400px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-light);
}

.editorial-promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-promo-card:hover .editorial-promo-img-wrap img {
  transform: scale(1.04);
}

.editorial-promo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 60px;
  background-color: var(--color-bg-white);
}

.editorial-promo-badge {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.editorial-promo-title {
  font-family: var(--font-headings);
  font-size: 1.65rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.editorial-promo-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-dark);
  font-style: italic;
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin: 0;
}

/* Alternating rows for desktop */
.editorial-promo-card:nth-child(even) .editorial-promo-img-wrap {
  order: 2;
}

.editorial-promo-card:nth-child(even) .editorial-promo-info {
  order: 1;
}

@media (max-width: 992px) {
  .editorial-promo-card {
    grid-template-columns: 1fr 1fr;
  }
  .editorial-promo-info {
    padding: 35px 40px;
  }
}

@media (max-width: 768px) {
  .editorial-promo-card {
    grid-template-columns: 1fr;
  }
  
  .editorial-promo-img-wrap {
    height: 280px;
  }
  
  .editorial-promo-card:nth-child(even) .editorial-promo-img-wrap {
    order: 1;
  }
  
  .editorial-promo-card:nth-child(even) .editorial-promo-info {
    order: 2;
  }
}



/* ==========================================
   INDEX PAGE ENHANCEMENTS
   Hero layout, trust bar, features, favorites,
   back-to-top — with full mobile/tablet support
   ========================================== */

/* ---- Hero two-column layout (replaces inline styles) ---- */
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
  padding: 150px 0 80px;
  color: var(--color-text-light);
}

.hero-left {
  max-width: 580px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

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

.search-widget-hero {
  width: 100%;
  margin-top: 0;
}

.search-fields-compact {
  grid-template-columns: 1fr 1fr;
}

.search-btn-full {
  grid-column: span 2;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
}

/* Hero slide indicator dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.hero-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: var(--radius-full);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 130px 0 60px;
    gap: 34px;
  }
  .hero-left {
    max-width: 100%;
  }
  .hero-badges {
    justify-content: center;
  }
  .search-widget-hero {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .search-fields-compact {
    grid-template-columns: 1fr;
  }
  .search-btn-full {
    grid-column: span 1;
  }
  .hero-badges {
    gap: 8px;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 7px 12px;
  }
}

/* ---- Hero prev/next arrows ---- */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 14, 23, 0.45);
  border: 1px solid rgba(197, 168, 128, 0.3);
  color: #fff;
  width: 46px;
  height: 46px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-arrow:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.hero-arrow-left { left: 24px; }
.hero-arrow-right { right: 24px; }

@media (max-width: 768px) {
  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
  .hero-arrow-left { left: 12px; }
  .hero-arrow-right { right: 12px; }
}

@media (max-width: 480px) {
  .hero-arrow { display: none; }
}

/* ---- Trust / Stats bar ---- */
.stats-bar {
  background: var(--color-primary);
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
  .stat-number {
    font-size: 1.7rem;
  }
}

/* ---- Why Choose Us / Features section ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 32px 26px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(197, 168, 128, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(197, 168, 128, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted-dark);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Listing card: favorite/save button ---- */
.listing-favorite {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition-smooth);
  padding: 0;
}

.listing-favorite:hover {
  background: rgba(10, 14, 23, 0.8);
}

.listing-favorite svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.listing-favorite.active svg {
  fill: #e15c5c;
  stroke: #e15c5c;
}

/* ---- Back to top button ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 576px) {
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}

/* ---- Meet the realtor section (replaces inline styles) ---- */
.realtor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
}

.realtor-portrait {
  position: relative;
  text-align: center;
  justify-self: center;
}

.realtor-portrait-frame {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  z-index: 1;
  max-width: 420px;
  display: inline-block;
}

.realtor-portrait img {
  position: relative;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border: 1px solid var(--color-border-light);
}

.realtor-copy {
  padding-left: 10px;
}

.realtor-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 600;
  font-family: var(--font-headings);
}

.realtor-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted-dark);
  margin-bottom: 30px;
}

.realtor-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-realtor-outline {
  border: 1px solid var(--color-border-light);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--color-bg-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
}

.btn-realtor-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .realtor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .realtor-copy {
    padding-left: 0;
  }
  .realtor-copy .section-subtitle,
  .realtor-copy .section-title {
    text-align: center;
  }
  .realtor-actions {
    justify-content: center;
  }
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; /* Default bottom position when standalone */
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #25D366; /* Official WhatsApp Green */
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999; /* Higher than chatbot so it is accessible and clickable */
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  background-color: #20ba5a;
  box-shadow: var(--shadow-premium);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Offset: Stack above back-to-top button when it is present (and no chatbot launcher) */
body:has(#back-to-top):not(:has(.chatbot-launcher)) .whatsapp-float {
  bottom: 96px;
}

/* Parallel: Position horizontally next to the Chatbot launcher when it is present */
body:has(.chatbot-launcher) .whatsapp-float {
  right: 98px; /* 24px (chatbot right) + 62px (chatbot width) + 12px (gap) */
  bottom: 31px; /* Align vertically with the center of the chatbot launcher */
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
  
  body:has(#back-to-top):not(:has(.chatbot-launcher)) .whatsapp-float {
    bottom: 76px;
  }
}

@media (max-width: 480px) {
  body:has(.chatbot-launcher) .whatsapp-float {
    right: 90px; /* 16px (chatbot right) + 62px (chatbot width) + 12px (gap) */
    bottom: 25px; /* Align vertically with the center of the chatbot launcher */
  }
}


