/* ═══════════════════════════════════════════════════════════════════════════════
   PRIME PROPERTY PARTNER - PREMIUM OPTIMIZED v3.0
   Zillow/Rightmove Inspired | Performance & UX Focused
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS & VARIABLES
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
  /* Brand Colors - Premium Real Estate */
  --primary: #006AFF;
  --primary-dark: #0052CC;
  --primary-light: #3B8FFF;
  --secondary: #0EA5E9;
  --accent: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  /* Neutrals - Professional Palette */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #10B981;
  --info: #0EA5E9;
  --error: #EF4444;
  
  /* Layout */
 --container-max: 1400px;
  --container-padding: clamp(1rem, 3vw, 2rem);
  
  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Shadows - Premium Depth */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 12px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODERN RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION - PREMIUM ALIGNED
   ═══════════════════════════════════════════════════════════════════════════════ */
   

header {
  position: relative;  /* Changed from sticky */
  z-index: var(--z-sticky);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}


header nav {
  background: white;
  position: relative;
  z-index: 1;
}

header nav .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 2rem;
  position: relative;
}

.brand-text {
  display: flex;
  align-items: center;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.brand-text:hover {
  transform: scale(1.02);
}

/* Center navigation group */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative; /* FIX: Create positioning context for dropdown */
  z-index: calc(var(--z-dropdown) + 5); /* FIX: Ensure it's above nav */
}
/* ✅ ADD THIS NEW RULE */
.header-right .relative[x-data] > div[x-show] {
  position: absolute;
  z-index: 1120;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
}

.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  position: relative;
  z-index: 10000;  /* Changed from calc(var(--z-modal) + 1) */
  flex-shrink: 0;
}

.mobile-menu-button:hover {
  background: var(--gray-100);
}

.mobile-menu-button:active {
  background: var(--gray-200);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE MENU - FIXED POSITIONING
   ═══════════════════════════════════════════════════════════════════════════════ */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;  /* Changed from var(--z-modal-backdrop) */
  overflow: hidden;
  isolation: isolate;  /* Added */
}

/* Mobile menu panel - Slide from left */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 400px);
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9999;  /* Changed from var(--z-modal) */
  isolation: isolate;  /* Added */
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.mobile-menu-panel.show {
  transform: translateX(0);
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Mobile menu close button */
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Mobile menu content */
.mobile-menu-content {
  padding: 1rem 0;
}

/* Mobile menu links */
.mobile-menu-overlay a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.mobile-menu-overlay a:hover,
.mobile-menu-overlay a:active {
  color: var(--gray-900);
  background: var(--gray-50);
  border-left-color: var(--primary);
}

.mobile-menu-overlay a.active {
  color: var(--primary);
  background: rgba(0, 106, 255, 0.05);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
}

/* Mobile menu sections */
.mobile-menu-section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-section:last-child {
  border-bottom: none;
}

/* Mobile menu section title */
.mobile-menu-section-title {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
}

/* Mobile menu with icons */
.mobile-menu-link-with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
}

.mobile-menu-link-with-icon i {
  width: 20px;
  text-align: center;
  color: var(--gray-500);
}

.mobile-menu-link-with-icon:hover i {
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DESKTOP NAVIGATION LINKS
   ═══════════════════════════════════════════════════════════════════════════════ */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition);
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex; /* FIX: Ensure inline-flex for alignment */
  align-items: center; /* FIX: Vertical center alignment */
  line-height: 1.5; /* FIX: Consistent line height */
}

.desktop-nav a:hover {
  color: var(--gray-900);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.desktop-nav a.active {
  color: var(--gray-900);
  font-weight: 600;
}

.desktop-nav a.active::after {
  width: 100%;
  background: var(--gray-900);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEARCH/FILTER BAR - PREMIUM CENTERED LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */
.property-search-container {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-header-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem var(--container-padding);
  max-width: 1400px; /* Match grid width */
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Premium spacing for search results */
.results-count-wrapper {
  background: white;
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem var(--container-padding);
}

.results-count {
  font-weight: 700; /* Changed from 500 - Good! */
  color: var(--gray-700);
}

/* Search Input Container */
.search-input-container {
  position: relative;
  flex: 1;
  min-width: min(280px, 100%);
  max-width: 400px;
}

.main-search-input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: white;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.main-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.1), var(--shadow);
}

.main-search-input::placeholder {
  color: var(--gray-400);
}

.search-icon-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: calc(var(--radius-md) - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.search-icon-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Filters Section */
.search-filters-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
  padding-bottom: 2px;
}

.search-filters-left::-webkit-scrollbar {
  height: 4px;
}

.search-filters-left::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.inline-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* Filter Buttons - Modern Chip Style */
.filter-btn-wrapper {
  position: relative;
  flex-shrink: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1rem;
  background: white;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.filter-btn .dropdown-icon {
  transition: transform var(--transition);
}

.filter-btn.active .dropdown-icon {
  transform: rotate(180deg);
}

.clear-filters-btn {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.clear-filters-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

/* Right Side Controls */
.search-filters-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* View Switcher - Premium Toggle */
.view-switcher {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.view-btn:hover {
  background: white;
  color: var(--gray-900);
  box-shadow: var(--shadow-xs);
}

.view-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.view-btn svg {
  width: 18px;
  height: 18px;
}

/* Sort Dropdown */
.sort-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  height: 40px;
  transition: all var(--transition-fast);
}

.sort-container:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow-xs);
}

.sort-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}

.sort-select {
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 1rem;
  min-width: 120px;
}

.sort-select:focus {
  outline: none;
}

/* Dropdown Panels - Improved Positioning */
.price-dropdown,
.home-type-dropdown,
.dropdown-content,
.language-currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: var(--z-dropdown);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  min-width: 320px;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  pointer-events: none;
}

.filter-btn.active ~ .price-dropdown,
.filter-btn.active ~ .home-type-dropdown,
.filter-btn.active ~ .dropdown-content,
.dropdown-content.show,
.language-currency-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown Content Styles */
.price-section-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.price-input-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%; /* FIX: Constrain to parent */
}

.price-input {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  background: white;
  transition: all var(--transition);
  max-width: 100%; /* FIX: Prevent overflow */
  min-width: 0; /* FIX: Allow flex shrinking */
}

.price-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.1);
}

.apply-btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.apply-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.type-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.type-checkbox-item:hover {
  background: var(--gray-50);
}

.type-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}

.type-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.type-checkbox.checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESULTS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.results-count-wrapper {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem var(--container-padding);
}

.results-count {
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROPERTY GRID - PREMIUM 3-COLUMN LAYOUT (ZILLOW STYLE)
   ═══════════════════════════════════════════════════════════════════════════════ */
.properties-grid,
.properties-container:not(.list-view) {
  display: grid;
  gap: 1.5rem;
  padding: 2rem var(--container-padding);
  max-width: 1400px; /* Wider container for better centering */
  margin: 0 auto;
  
  /* MOBILE: 1 column */
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (min-width: 768px) {
  .properties-grid,
  .properties-container:not(.list-view) {
    /* TABLET: 2 columns */
    grid-template-columns: repeat(2, minmax(320px, 400px));
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .properties-grid,
  .properties-container:not(.list-view) {
    /* DESKTOP: 3 columns MAXIMUM - Premium Look */
    grid-template-columns: repeat(3, minmax(340px, 420px));
    gap: 2rem;
    justify-content: center;
  }
}

/* Force single column when only 1-2 cards */
.properties-grid:has(.modern-property-card:nth-child(1):nth-last-child(1)) {
  grid-template-columns: minmax(340px, 420px);
  justify-content: center;
}

@media (min-width: 768px) {
  .properties-grid:has(.modern-property-card:nth-child(2):nth-last-child(1)) {
    grid-template-columns: repeat(2, minmax(340px, 400px));
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROPERTY CARD - PREMIUM PROPORTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.modern-property-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 420px; /* Prevent cards from being too wide */
  width: 100%;
}

/* ✅ FIX: Disable expensive effects on mobile */
@media (max-width: 768px) {
  .modern-property-card:hover {
    transform: none; /* Remove for performance */
    box-shadow: var(--shadow); /* Keep subtle effect */
  }
  
  /* Reduce motion */
  * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
  }
}

/* Premium image height */
.modern-property-card__image-container {
  position: relative;
  height: 260px; /* Taller for premium look */
  overflow: hidden;
  background: var(--gray-100);
}


.modern-property-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.modern-property-card:hover .modern-property-card__image {
  transform: scale(1.05);
}

/* Navigation Buttons */
.modern-property-card__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  color: var(--gray-700);
}

.modern-property-card:hover .modern-property-card__nav-btn {
  opacity: 1;
}

.modern-property-card__nav-btn:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.modern-property-card__nav-btn--prev {
  left: 12px;
}

.modern-property-card__nav-btn--next {
  right: 12px;
}

/* Image Indicators */
.modern-property-card__indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.modern-property-card__indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.modern-property-card__indicator--active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Badges */
.modern-property-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.modern-property-card__badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-property-card__badge--new {
  background: var(--success);
  color: white;
}

.modern-property-card__badge--price-drop {
  background: var(--danger);
  color: white;
}

/* Favorite Button */
.modern-property-card__favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  color: var(--gray-600);
}

.modern-property-card__favorite:hover {
  background: white;
  color: var(--danger);
  transform: scale(1.1);
}

.modern-property-card__favorite--active {
  background: white;
  color: var(--danger);
}

.modern-property-card__favorite--active svg {
  fill: var(--danger);
}

/* Price Section */
.modern-property-card__price-section {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border-left: 3px solid var(--primary);
  border-bottom: 1px solid var(--gray-200);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.price-per-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 12px;
  background: rgba(0, 106, 255, 0.1);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Card Header */
.modern-property-card__header {
  padding: 1rem 1.25rem;
  flex-grow: 1;
}

.modern-property-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--gray-900);
}

.modern-property-card__title a {
  transition: color var(--transition);
}

.modern-property-card__title a:hover {
  color: var(--primary);
}

.modern-property-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Stats Grid */
.modern-property-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.modern-property-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.modern-property-card__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--gray-300);
}

.modern-property-card__stat-value {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1.125rem;
  line-height: 1;
}

.modern-property-card__stat-label {
  font-size: 0.6875rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Action Buttons */
.modern-property-card__actions {
  display: flex;
  gap: 0.5rem;
  padding: 1.25rem;
  padding-top: 1rem;
}

.modern-property-card__btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

.modern-property-card__btn--primary {
  flex: 2;
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-sm);
}

.modern-property-card__btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.modern-property-card__btn--secondary {
  flex: 1;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.modern-property-card__btn--secondary:hover {
  background: #EFF6FF;
  border-color: var(--primary-dark);
}

/* Share Button */
.modern-property-card__share {
  position: relative;
  flex-shrink: 0;
}

.modern-property-card__share-btn {
  background: white;
  border: 2px solid var(--gray-300);
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modern-property-card__share-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

.modern-property-card__share-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 180px;
  z-index: var(--z-popover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  pointer-events: none;
}

.modern-property-card__share-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.modern-property-card__share-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--gray-700);
  text-align: left;
  transition: all var(--transition-fast);
}

.modern-property-card__share-option:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIST VIEW - IMPROVED LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */
.properties-container.list-view {
  display: block;
  padding: 1.5rem var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.properties-container.list-view .modern-property-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 280px;
}

.list-view .property-list-image-link {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.list-view .property-list-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.list-view .property-list-details {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.list-view .property-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.list-view .modern-property-card__price-section {
  border-left: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 0 1rem 0;
  background: transparent;
}

.list-view .modern-property-card__header {
  padding: 0;
}

.list-view .modern-property-card__stats {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.list-view .modern-property-card__stat {
  flex-direction: row;
  gap: 0.5rem;
  padding: 0;
  align-items: center;
  justify-content: flex-start;
}

.list-view .modern-property-card__stat::after {
  display: none;
}

.list-view .modern-property-card__stat-value {
  font-size: 1rem;
}

.list-view .modern-property-card__stat-label {
  font-size: 0.75rem;
  text-transform: none;
}

.list-view .modern-property-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  padding: 0;
  align-items: center;
}

.list-view .modern-property-card__btn {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  min-height: 40px;
}

.list-view .modern-property-card__share-btn {
  width: 40px;
  height: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION - PREMIUM REAL ESTATE
   ═══════════════════════════════════════════════════════════════════════════════ */
.hero-section-modern {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=2096&auto=format&fit=crop') center/cover;
  margin: 1.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-bg.active {
  opacity: 0.25;
  filter: brightness(1.05) contrast(0.9);
}

.hero-overlay-modern {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 40%, rgba(51, 65, 85, 0.6) 100%);
  z-index: 1;
  border-radius: inherit;
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3.5rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-title-modern {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-accent-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle-modern {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-search-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-xl);
  margin-bottom: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.hero-search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.hero-search-input {
  width: 100%;
  height: 56px;
  padding: 0 1.25rem 0 3.5rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition);
  background: white;
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.1);
}

.hero-search-input::placeholder {
  color: var(--gray-400);
}

.hero-search-select-wrapper {
  flex: 0.75;
  min-width: 160px;
}

.hero-search-select {
  width: 100%;
  height: 56px;
  padding: 0 3rem 0 1.25rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
}

.hero-search-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.1);
}

.hero-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2.5rem;
  height: 56px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  min-width: 160px;
}

.hero-search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-quick-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e5e7eb 0%, #ffffff 50%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: #f3f4f6;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 160px;
  height: 52px;
}

.hero-btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

.hero-btn-secondary:hover {
  background: #f8fafc;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTIONS & CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */
.trust-badges-section,
.section-spacing,
.services-section,
.hot-offers,
.testimonials-section {
  padding: 4rem var(--container-padding);
  margin: 1.5rem;
  border-radius: var(--radius-2xl);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title,
.why-choose-title,
.new-listing-title,
.discounted-properties-title,
.latest-news-title,
.testimonials-title,
.what-we-offer-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after,
.why-choose-title::after,
.new-listing-title::after,
.discounted-properties-title::after,
.latest-news-title::after,
.testimonials-title::after,
.what-we-offer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle,
.section-description {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust Badges */
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.trust-badge-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.trust-badge-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--success);
}

.trust-badge-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
}

.trust-badge-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.trust-badge-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SWIPER CAROUSELS
   ═══════════════════════════════════════════════════════════════════════════════ */
.property-swiper,
.offers-swiper,
.blog-swiper,
.testimonials-swiper {
  padding: 1.25rem 0 3.5rem;
  overflow: hidden;
  margin: 0 -0.5rem;
}

.property-card-enhanced-spacing {
  padding: 0 0.5rem;
  height: auto;
}

.swiper-button-next,
.swiper-button-prev {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  color: var(--primary);
  transition: all var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.25rem;
  font-weight: 700;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--gray-400);
  opacity: 1;
  transition: all var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  width: 32px;
  border-radius: 6px;
}

/* Blog Cards */
.blog-card-enhanced {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-enhanced:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */
.footer-main {
  margin: 2.5rem 1.5rem 0;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.footer-content {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2.5fr 1fr 1fr 2fr;
    gap: 3rem;
  }
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.footer-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--danger) 0%, var(--warning) 100%);
  border-radius: 2px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: all var(--transition);
  padding: 0.25rem 0;
  display: inline-block;
}

.footer-link:hover {
  color: white;
  padding-left: 0.5rem;
  transform: translateX(0.25rem);
}

.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.newsletter-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .newsletter-wrapper form {
    flex-direction: row;
  }
}

.newsletter-wrapper input {
  flex: 1;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background: white;
  color: var(--gray-700);
  font-size: 0.875rem;
  min-height: 48px;
  transition: all var(--transition);
}

.newsletter-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.1);
}

.newsletter-wrapper button {
  padding: 0.875rem 1.125rem;
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  min-height: 48px;
  cursor: pointer;
}

.newsletter-wrapper button:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright-text {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-link {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.legal-link:hover {
  color: white;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 4rem 0;
  flex-wrap: wrap;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.pagination__link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-50);
  transform: translateY(-2px);
}

.pagination__link--active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}




/* ═══════════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[x-cloak] {
  display: none !important;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}


/* Skip link for keyboard users */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}
/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Tablet & Below (1023px and down) */
@media (max-width: 1023px) {
  .search-header-inline {
    flex-wrap: wrap;
  }
  
  .search-input-container {
    width: 100%;
    max-width: none;
    order: 1;
  }
  
  .search-filters-left {
    width: 100%;
    order: 2;
    margin-top: 0.75rem;
  }
  
  .search-filters-right {
    order: 3;
    width: 100%;
    margin-top: 0.75rem;
    justify-content: space-between;
  }
  
  /* Dropdown positioning for mobile */
  .price-dropdown,
  .home-type-dropdown,
  .dropdown-content,
  .language-currency-dropdown {
    position: fixed;
    top: auto;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-height: calc(100vh - 8rem);
    transform: translateY(100%);
  }
  
  .filter-btn.active ~ .price-dropdown,
  .filter-btn.active ~ .home-type-dropdown,
  .filter-btn.active ~ .dropdown-content,
  .dropdown-content.show,
  .language-currency-dropdown.show {
    transform: translateY(0);
  }
  
  /* List view responsive */
  .properties-container.list-view .modern-property-card {
    grid-template-columns: 280px 1fr;
  }
  
  .list-view .modern-property-card__actions {
    grid-template-columns: 1fr 1fr;
  }
  
  .list-view .modern-property-card__share {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  
  .list-view .modern-property-card__share-btn {
    width: 100%;
  }
}

/* Mobile Landscape & Tablet Portrait (768px and down) */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
  .hero-section-modern {
    min-height: 500px;
    margin: 1rem;
    border-radius: var(--radius-xl);
  }
  
  .hero-content-modern {
    padding: 2.5rem 1.25rem 2rem;
  }
  
  .hero-search-container {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .hero-search-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-search-input-wrapper,
  .hero-search-select-wrapper,
  .hero-search-btn {
    width: 100%;
    min-width: 100%;
  }
  
  .hero-search-input,
  .hero-search-select,
  .hero-search-btn {
    height: 52px;
  }
  
  .hero-quick-stats {
    gap: 1.5rem;
    flex-wrap: nowrap;
    justify-content: space-around;
  }
  
  .stat-item {
    flex: 1;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.625rem;
  }
  
  .stat-divider {
    display: none;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
  }
  
  /* List view mobile */
  .properties-container.list-view .modern-property-card {
    grid-template-columns: 1fr;
  }
  
  .list-view .property-list-image-link {
    min-height: 240px;
  }
  
  .list-view .modern-property-card__actions {
    grid-template-columns: 1fr;
  }
  
  .list-view .modern-property-card__btn--primary,
  .list-view .modern-property-card__btn--secondary,
  .list-view .modern-property-card__share {
    grid-column: 1;
  }
  
  /* Card actions responsive */
  .modern-property-card__actions {
    flex-direction: column;
  }
  
  .modern-property-card__btn {
    width: 100%;
  }
  

  
  /* Section spacing */
  .trust-badges-section,
  .section-spacing,
  .services-section,
  .hot-offers,
  .testimonials-section {
    padding: 3rem 1rem;
    margin: 0.75rem;
    border-radius: var(--radius-xl);
  }
  
  /* Swiper navigation hide on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Mobile Portrait (640px and down) */
@media (max-width: 640px) {
  .modern-property-card__share {
    width: 100%;
  }
  
  .pagination {
    gap: 0.375rem;
  }
  
  .pagination__link {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }
  
  .price-amount {
    font-size: 1.375rem;
  }
  
  .price-per-unit {
    font-size: 0.6875rem;
    padding: 4px 8px;
  }
  
  /* Touch-friendly sizes */
  button,
  a,
  .filter-btn,
  .view-btn,
  .modern-property-card__btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .modern-property-card__header {
    padding: 1rem 1.25rem;
  }
  
  .modern-property-card__actions {
    padding: 1rem 1.25rem;
  }
  
  /* Sort container full width */
  .sort-container {
    width: 100%;
  }
  
  .sort-select {
    width: 100%;
  }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
  .inline-filters {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .filter-btn-wrapper {
    flex-shrink: 0;
  }
  
  .filter-btn {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 0 0.875rem;
  }
  
  .hero-section-modern {
    min-height: 450px;
  }
  
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Desktop Large (1280px and up) */
@media (min-width: 1280px) {
  .properties-grid,
  .properties-container:not(.list-view) {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }
  
  .search-header-inline {
    padding: 1rem 2rem;
  }
  
  /* Right-align last dropdowns */
  .filter-btn-wrapper:nth-last-child(-n+2) .price-dropdown,
  .filter-btn-wrapper:nth-last-child(-n+2) .home-type-dropdown,
  .filter-btn-wrapper:nth-last-child(-n+2) .dropdown-content {
    left: auto;
    right: 0;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & MOTION
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .filter-btn,
  .modern-property-card,
  .trust-badge-card {
    border-width: 2px;
  }
  
  .filter-btn.active {
    border-width: 3px;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode
  :root {
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-900: #f9fafb;
    --background: #0f172a;
  }
  */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
@media print {
  .search-form,
  .hero-section,
  .modern-property-card__actions,
  .modern-property-card__favorite,
  .modern-property-card__share,
  .pagination,
  .footer-main,
  .back-to-top,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  .modern-property-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    box-shadow: none;
    border: 1px solid var(--gray-300);
    page-break-inside: avoid;
  }
  
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
   body {
    background: white;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.modern-property-card,
.filter-btn,
.hero-btn-primary,
.hero-btn-secondary,
.trust-badge-card {
  will-change: transform;
}

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.modern-property-card__image-container,
.hero-bg {
  contain: layout style paint;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADDITIONAL UI COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Language & Currency Dropdowns */
.language-currency-wrapper {
  position: relative;
  z-index: var(--z-dropdown);
}

.language-currency-btn,
.dropdown-btn-wrapper button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: white;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
  min-width: 120px;
  height: 40px;
}

.language-currency-btn:hover,
.dropdown-btn-wrapper button:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.language-currency-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--gray-700);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
}

.language-currency-option:last-child {
  border-bottom: none;
}

.language-currency-option:hover {
  background: var(--gray-50);
  color: var(--primary);
}

/* Contact & Appointment Buttons */
.appointment-btn-wrapper button,
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  height: 44px;
  box-shadow: var(--shadow-sm);
}

.appointment-btn-wrapper button:hover,
.contact-button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.login-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  height: 44px;
  box-shadow: var(--shadow-sm);
}

.login-dashboard-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* No Results State */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.no-results .material-icons {
  font-size: 4rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.no-results p {
  font-size: 1rem;
  color: var(--gray-600);
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94a3b8;
  transition: all var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tooltips */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--gray-900);
  color: white;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--primary {
  background: rgba(0, 106, 255, 0.1);
  color: var(--primary);
}

.badge--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge--danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Dividers */
.divider {
  width: 1px;
  height: 24px;
  background: var(--gray-300);
}




/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ✅ SIMPLIFIED VERSION */
main {
  flex: 1 0 auto;
  background: #FAFBFC;
  width: 100%;
  position: relative;
}

/* Property detail pages exception */
.property-detail-page main,
.single-property-page main,
[data-page="property-detail"] main,
body:has(.property-detail-container) main {
  min-height: auto;
}
/* Properties section - Pure white */
.properties-container {
  background: transparent; /* Let parent control */
}

/* Remove colored backgrounds from sections */
.page-content {
  background: white;
  padding: 0;
  margin: 0;
}

/* Clean spacing between sections */
.section-spacing {
  background: white;
  margin: 2rem 0;
  padding: 3rem var(--container-padding);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PAGE LAYOUT - FOOTER FIX
   ═══════════════════════════════════════════════════════════════════════════════ */


main { 
  flex: 1 0 auto;          /* Grow to fill space */
}
footer { 
  flex-shrink: 0;          /* Don't shrink */
  margin-top: auto;        /* Push to bottom */
}

/* Property detail page specific fix */
.property-detail-page main,
.single-property-page main {
  min-height: auto; /* Override for property pages */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROPERTY DETAIL PAGE - LAYOUT FIX
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Property detail container */
.property-detail-container,
.single-property-container {
  min-height: calc(100vh - 200px);
  padding-bottom: 4rem;
}

/* Property content wrapper */
.property-content-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Property gallery */
.property-gallery {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Property info sections */
.property-info-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.property-info-section:last-child {
  border-bottom: none;
}



/* Mobile menu button - always visible on mobile */
@media (max-width: 1023px) {
  .mobile-menu-button {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-button {
    display: none;
  }
  
  .desktop-nav {
    display: flex;
  }
}


/* ✅ ADD TO END OF FILE */
@media print {
  /* Hide navigation elements */
  header, footer, .mobile-menu-overlay,
  .search-form, .filter-btn, 
  .back-to-top, .swiper-button-next,
  .swiper-button-prev, .swiper-pagination {
    display: none !important;
  }
  
  /* Optimize property cards for print */
  .modern-property-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1rem;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE MENU  contact modal
   ═══════════════════════════════════════════════════════════════════════════════ */

/* 2. Appointment/Contact Modal Above Mobile Menu */
#tour-form-wrapper,
#contact-form-wrapper {
    z-index: 10100;
}

/* 3. Disable Sticky Search Bar When Mobile Menu Open (Mobile Only) */
@media (max-width: 1023px) {
    body.mobile-menu-open .property-search-container {
        position: relative;
        top: 0;
    }
}


/* Fix Corporate Dropdown Z-Index Issue */
/* Add this to your main CSS file or in the layout head */

/* Ensure dropdown appears above all containers */
.corporate-dropdown,
[x-data*="corporate"] > div[x-show] {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Fix for property search page specifically */
.property-search-container {
    position: relative;
    z-index: 1;
}

/* Navigation should be higher than search */
nav, header, .navbar {
    position: relative;
    z-index: 1000;
}

/* Dropdown menu highest priority */
.dropdown-menu,
[role="menu"],
.nav-dropdown {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Alpine.js dropdown fix */
[x-cloak] { 
    display: none !important; 
}

/* Ensure dropdown doesn't get cut off */
.dropdown-parent {
    position: static !important;
}





/* ═══════════════════════════════════════════════════════════════════════════════
   END OF OPTIMIZED CSS v3.0
   ═══════════════════════════════════════════════════════════════════════════════ */