/* ═══════════════════════════════════════════════════════════════════════════════
   DOMIREL - 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;
  --z-mobile-menu: 10000;        /* NEW: Mobile menu highest */
  --z-mobile-panel: 10001;       /* NEW: Panel above overlay */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   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: #ffffff;
  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
   ═══════════════════════════════════════════════════════════════════════════════ */
   

.site-header, #site-header, nav.header-main, .header-wrapper {
  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);
}



/* ✅ FIX: Ensure all desktop dropdowns are white and readable */
.desktop-nav .relative > div[x-show],
.nav-dropdown, 
[x-data*="corporate"] > div[x-show] {
    background-color: white !important;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    z-index: 1100 !important; /* Ensure it sits on top of everything */
    min-width: 220px; /* Ensure it's wide enough */
    border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   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: var(--z-mobile-menu);  /* ✅ Uses 10000 */
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;           /* ✅ Block all clicks */
}

/* 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: var(--z-mobile-panel);  /* ✅ Uses 10001 */
  isolation: isolate;
  transform: translateX(-100%);
  transition: transform var(--transition);
  pointer-events: auto;             /* ✅ Block clicks */
}

.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: #374151;
  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 */
html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Disable interactions on page content when menu open */
body.mobile-menu-open main,
body.mobile-menu-open header nav:not(.mobile-menu-overlay),
body.mobile-menu-open footer,
body.mobile-menu-open .property-search-container {
    pointer-events: none;
    user-select: none;
}

/* 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 {
 
  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: 100;
    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;
}



/* 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: 0.75rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.price-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    background: white;
    transition: all 0.2s ease;
    color: var(--gray-900);
}

.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 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 */
  }
  @media (max-width: 768px) {
  /* ... existing mobile card styles ... */
  
  /* Optimize hover effects */
  .modern-property-card:hover .modern-property-card__image {
    transform: none;  /* Disable image zoom - expensive on mobile */
  }
  
  /* Lighter overlay blur */
  .mobile-menu-overlay {
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.7);
  }
  
  /* Faster animations */
  * {
    animation-duration: 0.2s;
    transition-duration: 0.2s;
  }
  
  /* Reduce motion */
  .swiper-slide {
    transition-duration: 0.3s;
  }
}
  
 /* ✅ FIX: Indent and style nested mobile menu items (Corporate, etc.) */
.mobile-menu-overlay [x-collapse] a {
    padding-left: 2.5rem !important; /* Indent to show hierarchy */
    background-color: #f8fafc; /* Light gray background to distinguish */
    border-left: 3px solid #e2e8f0; /* Subtle border line */
    font-size: 0.9rem;
}

.mobile-menu-overlay [x-collapse] a:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}
  


  /* Fix for Cut-Off Dropdowns: Add breathing room at bottom of menu */
  .mobile-menu-overlay .overflow-y-auto {
    padding-bottom: 150px !important; /* Extra space for dropdowns to open */
  }
  
  /* 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);
}



/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION - PREMIUM REAL ESTATE (BEST UX/UI PRACTICES)
   Optimized for: Visual Hierarchy, Touch Targets, Accessibility, Responsiveness
   ═══════════════════════════════════════════════════════════════════════════════ */

.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);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEARCH CONTAINER - OPTIMIZED LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-search-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEARCH FORM - GRID LAYOUT (BEST PRACTICE)
   Balanced proportions: Location gets more space, filters are equal
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-search-form {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOCATION INPUT - PRIMARY FIELD
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-search-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
  width: 22px;
  height: 22px;
  z-index: 1;
}

.hero-search-input {
  width: 100%;
  height: 58px;
  padding: 0 1.25rem 0 3.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
  background: white;
  transition: all var(--transition);
}

.hero-search-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.hero-search-input:hover {
  border-color: var(--gray-400);
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FILTER SELECTS - EQUAL SIZING & PROMINENCE
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-search-select-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-search-select {
  width: 100%;
  height: 58px;
  padding: 0 3rem 0 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
  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='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.125rem center;
  background-size: 20px;
}

.hero-search-select:hover {
  border-color: var(--gray-400);
}

.hero-search-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

/* Style for default/placeholder option */
.hero-search-select option:first-child {
  color: var(--gray-400);
}

.hero-search-select:invalid {
  color: var(--gray-400);
}

.hero-search-select:valid {
  color: var(--gray-900);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEARCH BUTTON - PROMINENT CTA
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2.5rem;
  height: 58px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 106, 255, 0.3);
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

/* Hover effect with subtle shine */
.hero-search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-search-btn:hover::before {
  left: 100%;
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d99 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 106, 255, 0.4);
}

.hero-search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 106, 255, 0.3);
}

/* Icon inside button */
.hero-search-btn svg,
.hero-search-btn i {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FLOATING LABELS (OPTIONAL ENHANCEMENT)
   Uncomment if you want to add labels above inputs
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-search-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUICK STATS - BELOW SEARCH
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-quick-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  /* Luxury gradient: Deep black to sophisticated charcoal */
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  position: relative;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
  .stat-number {
    color: #1a1a1a;
    background: none;
  }
}

.stat-label {
  display: block;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  /* Sophisticated grey for luxury feel */
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  font-weight: 600;
  text-shadow: none;
}

.stat-divider {
  width: 1px;
  min-height: 50px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CTA BUTTONS - SECONDARY ACTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.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: 180px;
  height: 54px;
}

.hero-btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 106, 255, 0.3);
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 106, 255, 0.4);
}

.hero-btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.hero-btn-secondary:hover {
  background: #f8fafc;
  border-color: white;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS - MOBILE OPTIMIZATION
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .hero-search-form {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .hero-search-input-wrapper {
    grid-column: 1 / -1; /* Full width */
  }
  
  .hero-search-btn {
    grid-column: 1 / -1; /* Full width */
    min-width: 100%;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .hero-section-modern {
    min-height: auto;
    margin: 0;
    border-radius: 0 0 1.5rem 1.5rem;
    padding-bottom: 2rem;
  }
  
  .hero-content-modern {
    padding: 6rem 1rem 2rem;
  }
  
  .hero-search-container {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .hero-search-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Touch-friendly sizing */
  .hero-search-input,
  .hero-search-select,
  .hero-search-btn {
    height: 56px;
    font-size: 1rem;
  }
  
  /* Stats responsive layout */
  .hero-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
  }
  
  .stat-divider {
    display: none;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
    white-space: nowrap;
  }
  
  /* CTA buttons stack on mobile */
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .hero-search-container {
    padding: 1.25rem;
  }
  
  .hero-search-btn {
    padding: 0 1.5rem;
    font-size: 0.9375rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Focus visible states for keyboard navigation */
.hero-search-input:focus-visible,
.hero-search-select:focus-visible,
.hero-search-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-search-input,
  .hero-search-select,
  .hero-search-btn,
  .hero-btn-primary,
  .hero-btn-secondary {
    transition: none;
  }
  
  .hero-search-btn::before {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-search-input,
  .hero-search-select,
  .hero-search-btn {
    border-width: 3px;
  }
  
  .hero-search-btn {
    background: var(--primary);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOADING STATE (OPTIONAL)
   Add this class to button when searching
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-search-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.hero-search-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════════════════════════════════════════ */

[dir="rtl"] .hero-search-icon {
  left: auto;
  right: 1.25rem;
}

[dir="rtl"] .hero-search-input {
  padding: 0 3.75rem 0 1.25rem;
}

[dir="rtl"] .hero-search-select {
  padding: 0 1.25rem 0 3rem;
  background-position: left 1.125rem center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

@media print {
  .hero-section-modern {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .hero-search-container,
  .hero-cta-buttons,
  .hero-quick-stats {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTIONS & CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */
.trust-badges-section,
.section-spacing,
.services-section,
.hot-offers,
.testimonials-section {
  padding: 4rem var(--container-padding);
  margin: 0;
}

.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);
}

/* Stretched Link - Makes entire card clickable */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   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%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS & MOBILE FIXES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Mobile Landscape & Tablet Portrait (768px and down) */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
 /* --- HERO SECTION FIXES --- */
  .hero-section-modern {
    min-height: auto !important; /* Stop forcing 500px height */
    height: auto !important;     /* Let content decide height */
    margin: 0 !important;        /* Remove side margins so it fits screen */
    border-radius: 0 0 1.5rem 1.5rem; /* Round only bottom corners */
    padding-bottom: 2rem;
    overflow: visible;           /* Allow dropdowns to show */
  }
  
  .hero-content-modern {
    padding: 6rem 1rem 2rem; /* Add top padding so fixed header doesn't cover text */
  }

  .hero-search-container {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Fix: Stats overflow - Force 3 columns */
  .hero-quick-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 0.5rem;
    margin-top: 2rem;
    justify-items: center;
    text-align: center;
  }
  
  .stat-item {
    width: 100%;
    margin: 0;
    flex: auto; /* Reset flex */
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
    white-space: nowrap; /* Prevent text wrapping */
  }
  
  .stat-divider {
    display: none !important; /* Hide vertical lines on mobile */
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto 1rem;
    gap: 1rem;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
  }

  /* --- TRUST STRIP FIXES --- */
  /* Target the grid inside the section with aria-label="Trust indicators" */
  section[aria-label="Trust indicators"] > div > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* Force 2 columns */
    gap: 1.5rem 1rem;
    justify-items: start;
  }

  /* Ensure individual trust items align well */
  section[aria-label="Trust indicators"] .group {
    width: 100%;
    justify-content: flex-start;
  }



/* --- FOOTER FIXES --- */
  .footer-main {
    margin: 0 !important; /* Remove side margins */
    border-radius: 1.5rem 1.5rem 0 0;
  }
  
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 0; /* Remove gap, use padding instead */
  }

  .footer-section {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
  }
  
  .footer-title {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  
  .footer-newsletter {
    padding: 1.25rem;
    margin-top: 1rem;
  }

  /* Center the bottom legal text */
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    margin-top: 1rem;
    justify-content: center;
  }
  
  /* Section spacing */
  .trust-badges-section,
  .section-spacing,
  .services-section,
  .hot-offers,
  .testimonials-section {
    padding: 3rem 1rem;
    margin: 0;         /* Fix: Remove margin to prevent overflow */
    border-radius: 0;  /* Fix: Full width */
  }
  
  .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: auto; /* Ensure it stays auto on small screens */
  }
  
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}


  
  .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: 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 */
/* Contact modals should be BELOW mobile menu */
#tour-form-wrapper,
#contact-form-wrapper {
    z-index: var(--z-modal);  /* 1050 - below mobile menu */
}

/* When mobile menu is open, hide modals */
body.mobile-menu-open #tour-form-wrapper,
body.mobile-menu-open #contact-form-wrapper {
    display: none;
}

/* 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;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RTL CONFIGURATION (Paste at the bottom of custom.css)
   ═══════════════════════════════════════════════════════════════════════════════ */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* 1. Prevent Icons from Flipping (Keep them LTR) */
[dir="rtl"] .material-icons,
[dir="rtl"] .fa, 
[dir="rtl"] .fas, 
[dir="rtl"] .far, 
[dir="rtl"] .fab {
    direction: ltr;
    display: inline-block; /* Essential for transform */
    transform: scaleX(1); /* Ensure no mirroring */
}

/* 2. Fix Input Padding (Move icon space to the left) */
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="search"] {
    text-align: right;
}

/* If you have search icons inside inputs */
[dir="rtl"] .search-icon-btn {
    right: auto !important;
    left: 4px !important;
}
[dir="rtl"] .main-search-input {
    padding-right: 48px !important; /* Space for icon on right */
    padding-left: 1rem !important;
}

/* 3. Flip Margins and Paddings */
[dir="rtl"] .mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .mr-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }

/* 4. Fix Mobile Menu Slide Direction */
[dir="rtl"] .mobile-menu-panel {
    left: auto;
    right: 0;
    transform: translateX(100%); /* Start hidden on the right */
}
[dir="rtl"] .mobile-menu-panel.show {
    transform: translateX(0);
}

/* 5. Force English Numbers/Emails to LTR inside Arabic text */
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] .ltr-force {
    direction: ltr !important;
    text-align: left !important;
}


/* FIX: Dropdown Menu Positioning in RTL */
[dir="rtl"] .dropdown-menu,
[dir="rtl"] .dropdown-content,
[dir="rtl"] .absolute.z-50.bg-white, /* Tailwind absolute dropdowns */
[dir="rtl"] .filter-dropdown { 
    left: auto !important; 
    right: 0 !important;
    text-align: right !important;
    transform-origin: top right !important;
}

/* FIX: Search Filter Dropdowns specifically */
[dir="rtl"] .search-filters-left .relative > div[x-show],
[dir="rtl"] .search-filters-right .relative > div[x-show] {
    left: auto !important;
    right: 0 !important;
}

/* FIX: If a dropdown is on the far left edge of the screen, force it to align left instead */
/* This prevents the "More Filters" or last dropdown from going off-screen to the right */
[dir="rtl"] .search-filters-right .relative:last-child > div[x-show] {
    right: auto !important;
    left: 0 !important;
}

/* FIX: Search Input & Icon Order */
[dir="rtl"] .search-input-container {
    flex-direction: row-reverse; /* Flips the [Icon | Input] to [Input | Icon] */
}

/* FIX: Input Text Alignment */
[dir="rtl"] input, 
[dir="rtl"] select, 
[dir="rtl"] textarea {
    text-align: right !important;
    direction: rtl !important;
}

/* FIX: Placeholder Text Alignment */
[dir="rtl"] ::placeholder {
    text-align: right !important;
}

/* FIX: Select Dropdown Arrows */
/* Moves the arrow from Right to Left in Select boxes */
[dir="rtl"] select {
    background-position: left 0.5rem center !important;
    padding-left: 2rem !important;
    padding-right: 0.75rem !important;
}


/* BEST PRACTICE: Header Alignment */

/* 1. Force the Header Layout to remain LTR even in Arabic */
/* This keeps Logo on the Left and Menu on the Right */
[dir="rtl"] header nav .container,
[dir="rtl"] .header-top-bar .container {
    direction: ltr; 
}

/* 2. But ensure the TEXT inside the links reads Right-to-Left */
[dir="rtl"] header nav .container a,
[dir="rtl"] header nav .container span,
[dir="rtl"] .header-top-bar .container a,
[dir="rtl"] .header-top-bar .container span {
    direction: rtl; 
    unicode-bidi: embed; /* Ensures Arabic text punctuation handles correctly */
}

/* 3. Ensure the Logo Text specifically is always LTR */
[dir="rtl"] .brand-text {
    direction: ltr;
    text-align: left;
}


/* BEST PRACTICE: Icon Stability */

/* Use a specific selector to avoid !important */
html[dir="rtl"] .material-icons,
html[dir="rtl"] .fa, 
html[dir="rtl"] .fas, 
html[dir="rtl"] .far, 
html[dir="rtl"] .fab {
    direction: ltr; 
    display: inline-block;
    transform: scaleX(1); 
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RTL NAVIGATION FIXES (Clean Version)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* 1. Header Container Logic */
/* We keep the main header LTR so Logo stays Left and Nav stays Right */
html[dir="rtl"] header nav .container {
    direction: ltr;
    display: flex;
}

/* 2. Fix the Navigation Links Order */
/* Inside the Nav container, we set direction back to RTL so items flow Right-to-Left */
html[dir="rtl"] .desktop-nav {
    direction: rtl;
    
    flex-direction: row; /* Ensures standard flow: First item (Home) is on Right */
}

/* 3. Fix Dropdown Positioning */
/* In RTL, dropdowns should anchor to the Right edge of their parent */
html[dir="rtl"] .desktop-nav .absolute {
    left: auto;
    right: 0;
    text-align: right;
}

/* 4. Fix Chevron Icons */
/* Ensure icons don't touch the text */
html[dir="rtl"] .desktop-nav .fa-chevron-down {
    margin-right: 0.25rem;
    margin-left: 0;
}

/* 5. Fix Mobile Menu Slide */
html[dir="rtl"] .mobile-menu-panel {
    right: 0;
    left: auto;
    transform: translateX(100%); /* Start hidden off-screen to the right */
}
html[dir="rtl"] .mobile-menu-panel.show {
    transform: translateX(0);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE & RTL PERFORMANCE FIXES
   ═══════════════════════════════════════════════════════════════════════════════ */


/* 2. MOBILE DROPDOWN FIXES */
/* Forces dropdowns inside the mobile menu to expand INLINE (push content down) 
   instead of floating ABSOLUTE (which gets cut off or appears outside) */
.mobile-menu-panel .dropdown-btn-wrapper .absolute,
.mobile-menu-panel .dropdown-btn-wrapper [x-show] {
    position: static; /* Reset absolute positioning */
    width: 100%;
    transform: none;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    opacity: 1;
    visibility: visible;
}

/* 3. LOGO FITTING IN RTL MOBILE */
/* Arabic fonts are taller; we adjust line-height and size specifically for mobile RTL */
[dir="rtl"] .brand-text {
    font-size: 1.25rem; /* Slightly smaller on mobile to fit */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* 4. SWIPER RTL SUPPORT */
/* Ensures sliders work correctly in Arabic */
[dir="rtl"] .swiper-slide {
    direction: rtl;
}







/* ═══════════════════════════════════════════════════════════════════════════════
   PROFESSIONAL HERO SECTION - ZILLOW STYLE
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Hero Container */
.hero-section-professional {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    background-color: #f8fafc;
}

/* Background Layer */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-swiper,
.hero-background-static {
    width: 100%;
    height: 100%;
}

.hero-slide-image,
.hero-background-static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-image img,
.hero-background-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* Content Layer */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 4rem 1.5rem 3rem;
}

.hero-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Text Block */
.hero-text-block {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-main-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROFESSIONAL SEARCH CARD - ZILLOW INSPIRED
   ═══════════════════════════════════════════════════════════════════════════════ */

.search-card-container {
    margin-bottom: 2rem;
}

.search-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Main Search Input */
.search-input-main {
    grid-column: 1 / -1;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-label {
    position: absolute;
    left: 1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.search-icon {
    color: #64748b;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    height: 3.25rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.search-input:hover {
    border-color: #cbd5e1;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input-primary {
    font-size: 1.0625rem;
    font-weight: 500;
}

/* Filters Row */
.search-filters-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    grid-column: 1 / -1;
}

.search-select {
    width: 100%;
    height: 3rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #475569;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-select:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.search-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Button */
.search-submit-btn {
    grid-column: 1 / -1;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.search-submit-btn:active {
    transform: translateY(0);
}

.search-btn-icon {
    flex-shrink: 0;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .search-form {
        grid-template-columns: 2fr repeat(3, 1fr) auto;
        gap: 0.75rem;
        align-items: center;
    }
    
    .search-input-main {
        grid-column: 1 / 2;
    }
    
    .search-filters-group {
        display: contents;
    }
    
    .search-submit-btn {
        grid-column: auto;
        min-width: 140px;
        height: 3.25rem;
    }
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    min-height: 3rem;
}

.hero-cta-primary {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-slider-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slider-next {
    right: 1.5rem;
}

.hero-slider-prev {
    left: 1.5rem;
}

.hero-slider-nav svg {
    color: #1e293b;
}

.hero-slider-pagination {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 32px;
    border-radius: 5px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hero-section-professional {
        margin: 0;
        border-radius: 0 0 1.5rem 1.5rem;
        min-height: 500px;
    }
    
    .hero-content-wrapper {
        min-height: 500px;
        padding: 3rem 1rem 2rem;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-main-subtitle {
        font-size: 1rem;
    }
    
    .search-card {
        padding: 1rem;
    }
    
    .search-input,
    .search-select {
        height: 2.75rem;
        font-size: 0.9375rem;
    }
    
    .search-submit-btn {
        height: 3rem;
    }
    
    .hero-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-next {
        right: 1rem;
    }
    
    .hero-slider-prev {
        left: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-section-professional {
        min-height: auto;
    }
    
    .hero-content-wrapper {
        min-height: auto;
        padding: 2.5rem 1rem 2rem;
    }
    
    .hero-text-block {
        margin-bottom: 2rem;
    }
    
    .hero-main-title {
        font-size: 1.75rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta-btn {
        width: 100%;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
.search-input:focus-visible,
.search-select:focus-visible,
.search-submit-btn:focus-visible,
.hero-cta-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}



/* Testimonials Styling */
.testimonials-swiper .swiper-slide {
    height: auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GLOBAL LAYOUT STABILITY FIX */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

/* Ensure hidden modals take up zero space */
.gallery-overlay.hidden,
#contact-form-wrapper.hidden,
.modal.hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}




/* ═══════════════════════════════════════════════════════════════════════════════
   GALLERY MODE FIXES (Clean Specificity)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Container - Centers the content properly */
#your-gallery-id {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 2rem;
}

/* Image - Constrains size to viewport */
#your-gallery-id img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hidden State - ID selector + Class selector overrides display:flex */
#your-gallery-id.hidden {
    display: none;
}



/* ═══════════════════════════════════════════════════════════════════════════════
   1. DESKTOP GRID ALIGNMENT FIX (LTR & RTL)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Target the specific grid container inside the main content */
#main-content .properties-grid,
#main-content .grid-view {
    display: grid;
    /* Ensure a minimum width for cards to prevent squashing */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* Center the grid tracks within the container */
    justify-content: center;
    /* Logical margin handles both LTR and RTL automatically */
    margin-inline: auto;
    max-width: 1400px;
    width: 100%;
    gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. ARABIC SHARE LINK FIX
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Allow the dropdown to overflow the card boundary */
.modern-property-card {
    overflow: visible; 
}

/* Re-apply radius to image since parent overflow is now visible */
.modern-property-card__image-container {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Fix RTL Dropdown Positioning */
[dir="rtl"] .modern-property-card__share-dropdown {
    /* Reset LTR positioning */
    right: auto;
    /* Anchor to the left side of the button in Arabic */
    left: 0;
    /* Ensure it sits on top of adjacent cards */
    z-index: 50; 
    /* Slightly wider to accommodate Arabic text */
    min-width: 200px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. FILTER DROPDOWN OVERFLOW FIX
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Target filter dropdowns to prevent screen overflow */
.filter-dropdown-content,
[x-data*="filter"] .absolute {
    /* Constrain height and allow scrolling */
    max-height: 60vh;
    overflow-y: auto;
    /* Prevent body scroll when scrolling dropdown */
    overscroll-behavior: contain;
    /* Use logical width to prevent horizontal overflow */
    max-width: 90vw;
}

/* Ensure the last filter dropdown aligns to the edge so it doesn't flow out */
.search-filters-right .relative:last-child .absolute {
    right: 0;
    left: auto;
}

[dir="rtl"] .search-filters-right .relative:last-child .absolute {
    left: 0;
    right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. MOBILE GALLERY UX IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* 1. Remove excessive whitespace */
    #your-gallery-id {
        padding: 0;
        background-color: #000;
        /* Use SVH (Small Viewport Height) to ignore address bar */
        height: 100svh; 
    }

    /* 2. Image sizing for mobile */
    #your-gallery-id img {
        /* Reduce max-height to leave room for controls */
        max-height: 70svh;
        max-width: 100%;
        object-fit: contain;
        /* Remove margin to allow swipes */
        margin: 0;
    }

    /* 3. Move Navigation Arrows OUTSIDE the image */
    /* Create a bottom toolbar area for controls */
    #your-gallery-id .gallery-controls-mobile {
        position: absolute;
        bottom: 5%;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 2rem;
        z-index: 20;
    }

    /* Style the arrows for the bottom bar */
    #your-gallery-id .gallery-nav-btn {
        position: static; /* Reset fixed positioning */
        transform: none;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MORE FILTERS - PROPER STRUCTURE FIX
   ═══════════════════════════════════════════════════════════════ */

/* More Filters Dropdown Container */
.more-filters-dropdown {
    min-width: 360px;
    max-width: 440px;
    width: max-content;
    padding: 0;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

/* Scrollable Content Area */
.filters-scroll-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    max-height: calc(70vh - 100px);
}

/* Filter Section Spacing */
.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Mobile Header - Fixed */
.more-filters-dropdown .mobile-header {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--gray-200);
    background: var(--gray-50);
}

/* Apply Button - Fixed */
.more-filters-dropdown .apply-btn {
    flex-shrink: 0;
    margin: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Desktop: Align to right */
@media (min-width: 1024px) {
    .inline-filters > div:nth-last-child(3) .more-filters-dropdown {
        left: auto;
        right: 0;
    }
}

/* Mobile: Full height bottom sheet */
@media (max-width: 1023px) {
    .more-filters-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        max-height: 90vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    
    .filter-btn.active ~ .more-filters-dropdown {
        transform: translateY(0);
    }
    
    .filters-scroll-content {
        max-height: calc(90vh - 180px);
    }
}


/* ═══════════════════════════════════════════════════════════════
   Z-INDEX ORGANIZATION - PROPER STACKING
   ═══════════════════════════════════════════════════════════════ */

/* Layer 1: Base content */
.properties-container,
.property-card {
    position: relative;
    z-index: 1;
}

/* Layer 2: Results header (sort dropdown) */
.results-header {
    position: relative;
    z-index: 10;
}

.sort-container {
    position: relative;
    z-index: 10;
}

/* Layer 3: Search/Filter bar */
.property-search-container {
    position: sticky;
    z-index: 100;
}

.search-header-inline {
    position: relative;
    z-index: 100;
}

/* Layer 4: Filter buttons */
.inline-filters {
    position: relative;
    z-index: 100;
}

.filter-btn-wrapper {
    position: relative;
    z-index: 100;
}

/* Layer 5: Filter dropdowns (highest) */
.price-dropdown,
.home-type-dropdown,
.dropdown-content,
.more-filters-dropdown,
.language-currency-dropdown {
    z-index: 1000;
}

/* Backdrop when mobile filter is open */
@media (max-width: 1023px) {
    .filter-btn.active::before {
        z-index: 999;
    }
}



/* ═══════════════════════════════════════════════════════════════
   CONSISTENT SPACING SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* Section titles */
.price-section-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

/* Consistent vertical spacing */
.filter-section,
.mb-6 {
    margin-bottom: 1.25rem;
}

.filter-section:last-child,
.mb-6:last-child {
    margin-bottom: 0;
}

/* Consistent input heights */
.price-input,
.price-select,
.filter-btn,
.sort-container {
    height: 44px;
}

/* Consistent border radius */
.price-input,
.price-select,
.filter-btn {
    border-radius: 8px;
}

/* Consistent gaps */
.price-input-row {
    gap: 0.75rem;
}

.price-dropdowns {
    gap: 0.75rem;
}

.inline-filters {
    gap: 0.5rem;
}

/* Touch-friendly mobile sizing */
@media (max-width: 768px) {
    .price-input,
    .price-select,
    .filter-btn {
        height: 48px;
        font-size: 1rem;
    }
    
    .price-section-title {
        font-size: 1rem;
    }
}



/* Real Estate Bot - Enhanced Styling */
/* Add this to your main CSS file or in a <style> tag */

/* Screen reader only - for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Chat bubble animations */
.animate-in {
    animation: fadeIn 0.3s ease-out, slideInFromBottom 0.3s ease-out;
}

/* Typing indicator animation */
@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Notification badge scale */
.scale-125 {
    transform: scale(1.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Enhanced chat feed scrollbar */
#chat-feed {
    scroll-behavior: smooth;
    overflow-y: auto;
    overflow-x: hidden;
}

#chat-feed::-webkit-scrollbar {
    width: 6px;
}

#chat-feed::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

#chat-feed::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: background 0.2s;
}

#chat-feed::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Input focus effects */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Button active state */
button:active {
    transform: scale(0.98);
}

/* Message bubble hover effects */
.group:hover .bg-white {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile optimization */
@media (max-width: 640px) {
    /* Adjust chat window for mobile */
    .fixed.bottom-4 > div:first-child {
        max-height: calc(100vh - 100px) !important;
        min-height: 300px !important;
    }
    
    /* Optimize touch targets */
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Adjust font sizes for readability */
    .text-sm {
        font-size: 15px !important;
    }
    
    /* Optimize spacing */
    .space-y-5 > * + * {
        margin-top: 1rem !important;
    }
}

/* Tablet optimization */
@media (min-width: 641px) and (max-width: 1024px) {
    .fixed.bottom-4 {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    svg {
        shape-rendering: geometricPrecision;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* RTL (Right-to-Left) optimizations */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .rounded-tl-sm {
    border-top-left-radius: 0.125rem;
    border-top-right-radius: 1rem;
}

[dir="rtl"] .rounded-br-sm {
    border-bottom-right-radius: 0.125rem;
    border-bottom-left-radius: 1rem;
}

/* Loading skeleton (optional enhancement) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Floating action button shadow */
.fixed .group button {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.2);
}

.fixed .group button:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35),
                0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Ensure z-index hierarchy */
.z-\[9999\] {
    z-index: 9999;
}

.z-\[2147483647\] {
    z-index: 2147483647;
}

/* Smooth color transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Prevent text selection on buttons */
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve emoji rendering */
.emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Print styles (hide chat in print) */
@media print {
    .fixed.bottom-4 {
        display: none !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 896px) and (orientation: landscape) {
    .fixed.bottom-4 > div:first-child {
        max-height: 80vh !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #0066FF;
    outline-offset: 2px;
}

/* WhatsApp button hover effect */
button.bg-gradient-to-r.from-\[\#25D366\]:hover {
    filter: brightness(1.05);
}

/* Smooth transitions for all interactive elements */
button, input, a {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure text is readable on all backgrounds */
.text-white {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Optimize for touch devices */
@media (hover: none) and (pointer: coarse) {
    button:hover {
        transform: none;
    }
    
    button:active {
        transform: scale(0.95);
        transition-duration: 0.1s;
    }
}






/* ============================================
   BOT SETTINGS PAGE STYLES (Tailwind Compatible)
   ============================================ */

/* Settings Page Layout */
.settings-page {
    @apply bg-gradient-to-br from-indigo-500 via-purple-600 to-purple-700 min-h-screen py-10;
}

.settings-container {
    @apply max-w-screen-2xl mx-auto px-4;
}

.page-header {
    @apply bg-white rounded-3xl p-8 mb-8 shadow-2xl;
}

.page-title {
    @apply text-3xl font-bold text-gray-900 mb-2;
}

.page-subtitle {
    @apply text-gray-600 text-base;
}

.settings-layout {
    @apply grid lg:grid-cols-[280px_1fr] gap-8;
}

/* Sidebar Navigation */
.settings-sidebar {
    @apply bg-white rounded-3xl p-5 shadow-2xl h-fit sticky top-5;
}

.nav-section-title {
    @apply text-xs font-bold uppercase tracking-wider text-gray-400 px-4 pb-3 mb-3;
}

.settings-nav-item {
    @apply flex items-center px-4 py-3.5 rounded-xl mb-2 cursor-pointer transition-all duration-300 text-gray-600 no-underline font-medium text-[15px] hover:bg-gray-50 hover:text-indigo-600 hover:translate-x-1;
}

.settings-nav-item.active {
    @apply bg-gradient-to-r from-indigo-600 to-purple-600 text-white shadow-lg shadow-indigo-500/40;
}

.settings-nav-item i {
    @apply text-xl mr-3 w-6 text-center;
}

/* Main Content */
.settings-content {
    @apply bg-white rounded-3xl p-10 shadow-2xl;
}

.settings-section {
    @apply hidden;
    animation: fadeIn 0.5s ease;
}

.settings-section.active {
    @apply block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.section-header {
    @apply mb-8 pb-6 border-b-2 border-gray-200;
}

.section-title {
    @apply text-3xl font-bold text-gray-900 mb-2;
}

.section-description {
    @apply text-gray-600 text-base;
}

/* Form Elements */
.form-group {
    @apply mb-8;
}

.form-label {
    @apply block font-semibold text-gray-800 mb-3 text-[15px];
}

.form-control {
    @apply w-full border-2 border-gray-200 rounded-xl px-4 py-3 transition-all duration-300 text-[15px] bg-white focus:outline-none focus:border-indigo-600 focus:ring-4 focus:ring-indigo-500/10;
}

.form-hint {
    @apply block text-sm text-gray-500 mt-2;
}

.input-group {
    @apply flex gap-3;
}

.input-group .form-control {
    @apply flex-1;
}

.btn-icon {
    @apply bg-indigo-600 border-none text-white px-5 py-3 rounded-xl cursor-pointer transition-all duration-300 hover:bg-indigo-700 hover:-translate-y-0.5;
}

/* Toggle Switch */
.toggle-container {
    @apply flex items-center justify-between p-5 bg-gray-50 rounded-xl mb-4;
}

.toggle-info h4 {
    @apply text-base font-semibold text-gray-800 mb-1;
}

.toggle-info p {
    @apply text-sm text-gray-600 m-0;
}

.toggle-switch {
    @apply relative w-[60px] h-8 flex-shrink-0;
}

.toggle-switch input {
    @apply opacity-0 w-0 h-0;
}

.toggle-slider {
    @apply absolute cursor-pointer inset-0 bg-gray-300 transition-all duration-400 rounded-full;
}

.toggle-slider:before {
    @apply absolute content-[''] h-6 w-6 left-1 bottom-1 bg-white transition-all duration-400 rounded-full shadow-md;
}

.toggle-switch input:checked + .toggle-slider {
    @apply bg-gradient-to-r from-indigo-600 to-purple-600;
}

.toggle-switch input:checked + .toggle-slider:before {
    @apply translate-x-7;
}

/* Language Tabs */
.language-tabs {
    @apply flex gap-2 mb-8 flex-wrap;
}

.language-tab {
    @apply px-6 py-3 rounded-xl cursor-pointer transition-all duration-300 bg-gray-50 text-gray-600 font-semibold border-2 border-transparent hover:bg-gray-100 hover:-translate-y-0.5;
}

.language-tab.active {
    @apply bg-gradient-to-r from-indigo-600 to-purple-600 text-white border-indigo-600 shadow-lg shadow-indigo-500/30;
}

.language-content {
    @apply hidden;
}

.language-content.active {
    @apply block;
    animation: fadeIn 0.3s ease;
}

/* Property List Items */
.property-list {
    @apply grid gap-4;
}

.property-item {
    @apply flex items-center justify-between p-5 bg-gray-50 rounded-xl transition-all duration-300 hover:bg-gray-100 hover:translate-x-1;
}

.property-info h4 {
    @apply text-base font-semibold text-gray-800 mb-1;
}

.property-info p {
    @apply text-sm text-gray-600 m-0;
}

/* Buttons */
.btn-primary {
    @apply bg-gradient-to-r from-indigo-600 to-purple-600 text-white border-none px-8 py-3.5 rounded-xl font-semibold text-base cursor-pointer transition-all duration-300 inline-flex items-center gap-2 hover:-translate-y-0.5 hover:shadow-xl hover:shadow-indigo-500/40;
}

.btn-outline {
    @apply bg-transparent text-indigo-600 border-2 border-indigo-600 px-7 py-3 rounded-xl font-semibold cursor-pointer transition-all duration-300 w-full mt-4 hover:bg-indigo-600 hover:text-white hover:-translate-y-0.5;
}

/* Alert Boxes */
.alert {
    @apply p-4 rounded-xl mb-5 flex items-start gap-3;
}

.alert-warning {
    @apply bg-yellow-50 border-2 border-yellow-400 text-yellow-900;
}

.alert-info {
    @apply bg-blue-50 border-2 border-blue-400 text-blue-900;
}

/* Danger Zone */
.danger-zone {
    @apply mt-10 pt-8 border-t-2 border-red-200;
}

.danger-zone-title {
    @apply text-red-600 text-xl font-bold mb-3;
}

.danger-buttons {
    @apply grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-5;
}

.btn-danger {
    @apply bg-red-100 text-red-600 border-2 border-red-300 px-5 py-3 rounded-xl font-semibold cursor-pointer transition-all duration-300 hover:bg-red-600 hover:text-white hover:border-red-600;
}

.btn-warning {
    @apply bg-yellow-100 text-yellow-900 border-2 border-yellow-400 px-5 py-3 rounded-xl font-semibold cursor-pointer transition-all duration-300 hover:bg-yellow-500 hover:text-white hover:border-yellow-500;
}

.btn-secondary {
    @apply bg-gray-100 text-gray-700 border-2 border-gray-300 px-5 py-3 rounded-xl font-semibold cursor-pointer transition-all duration-300 hover:bg-gray-600 hover:text-white hover:border-gray-600;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .settings-layout {
        @apply grid-cols-1;
    }
    
    .settings-sidebar {
        @apply static;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Settings */
.settings-content::-webkit-scrollbar {
    @apply w-2;
}

.settings-content::-webkit-scrollbar-track {
    @apply bg-gray-100 rounded-full;
}

.settings-content::-webkit-scrollbar-thumb {
    @apply bg-indigo-500 rounded-full hover:bg-indigo-600;
}



/* ============================================
   RTL (Right-to-Left) Support for Arabic, Persian, Farsi
   Add this to resources/css/custom.css
   ============================================ */

/* RTL Direction */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* RTL Form Inputs */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}

/* RTL Margins and Padding */
[dir="rtl"] .mr-2 { margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] .mr-3 { margin-right: 0; margin-left: 0.75rem; }
[dir="rtl"] .mr-4 { margin-right: 0; margin-left: 1rem; }
[dir="rtl"] .ml-2 { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .ml-3 { margin-left: 0; margin-right: 0.75rem; }
[dir="rtl"] .ml-4 { margin-left: 0; margin-right: 1rem; }

/* RTL Padding */
[dir="rtl"] .pr-2 { padding-right: 0; padding-left: 0.5rem; }
[dir="rtl"] .pr-3 { padding-right: 0; padding-left: 0.75rem; }
[dir="rtl"] .pr-4 { padding-right: 0; padding-left: 1rem; }
[dir="rtl"] .pl-2 { padding-left: 0; padding-right: 0.5rem; }
[dir="rtl"] .pl-3 { padding-left: 0; padding-right: 0.75rem; }
[dir="rtl"] .pl-4 { padding-left: 0; padding-right: 1rem; }

/* RTL Flexbox */
[dir="rtl"] .flex-row-reverse {
    flex-direction: row;
}

/* RTL Icons - Mirror horizontally */
[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

/* RTL Checkbox and Radio Alignment */
[dir="rtl"] input[type="checkbox"],
[dir="rtl"] input[type="radio"] {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Text Alignment */
[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

/* RTL List Styles */
[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

/* RTL Border Radius */
[dir="rtl"] .rounded-l-lg {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

[dir="rtl"] .rounded-r-lg {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

/* RTL Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

[dir="rtl"] .animate-slide-in {
    animation: slideInLeft 0.3s ease-out;
}

[dir="ltr"] .animate-slide-in {
    animation: slideInRight 0.3s ease-out;
}

/* RTL Dropdown Menus */
[dir="rtl"] .dropdown-menu {
    right: auto;
    left: 0;
}

/* RTL Social Login Buttons - Icons position */
[dir="rtl"] .social-icon {
    margin-left: 0.75rem;
    margin-right: 0;
}

[dir="ltr"] .social-icon {
    margin-right: 0.75rem;
    margin-left: 0;
}


























/* ============================================
   BOT DASHBOARD - COMPLETE CSS
   Works with Tailwind CSS + custom.css
   No !important - Clean cascade
   ============================================ */

/* ============================================
   1. DASHBOARD PAGE STYLES
   ============================================ */

.bot-dashboard-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Welcome Card */
.welcome-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: #718096;
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.stat-card.blue {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

.stat-card.green {
    --gradient-start: #11998e;
    --gradient-end: #38ef7d;
}

.stat-card.orange {
    --gradient-start: #f2994a;
    --gradient-end: #f2c94c;
}

.stat-card.purple {
    --gradient-start: #7f00ff;
    --gradient-end: #e100ff;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.action-card.blue .action-icon {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    color: white;
}

.action-card.green .action-icon {
    --gradient-start: #11998e;
    --gradient-end: #38ef7d;
    color: white;
}

.action-card.orange .action-icon {
    --gradient-start: #f2994a;
    --gradient-end: #f2c94c;
    color: white;
}

.action-card.purple .action-icon {
    --gradient-start: #7f00ff;
    --gradient-end: #e100ff;
    color: white;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.action-description {
    font-size: 0.9rem;
    color: #718096;
}

.badge-alert {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   2. DATA TABLES
   ============================================ */

.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.table-container {
    padding: 20px 30px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.data-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f7fafc;
}

.data-table tbody td {
    padding: 15px;
    color: #2d3748;
    font-size: 0.95rem;
}

/* Badges */
.badge-modern {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-modern.status-new {
    background: #fef3c7;
    color: #92400e;
}

.badge-modern.status-contacted {
    background: #dbeafe;
    color: #1e40af;
}

.badge-modern.status-qualified {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-modern.status-converted {
    background: #d1fae5;
    color: #065f46;
}

.badge-modern.property-type {
    background: #e3f2fd;
    color: #1e88e5;
}

/* ============================================
   3. FILTERS & SEARCH
   ============================================ */

.filter-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn-filter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-reset {
    background: #f3f4f6;
    color: #4a5568;
    border: 2px solid #d1d5db;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #e5e7eb;
}

/* ============================================
   4. DETAILS PAGES
   ============================================ */

.details-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.btn-back {
    background: #f3f4f6;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th {
    padding: 12px 0;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    width: 40%;
}

.info-table td {
    padding: 12px 0;
    color: #2d3748;
}

/* Status Update Card */
.status-update-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.status-update-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
}

.status-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    margin-top: 10px;
}

.btn-update {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ============================================
   5. SETTINGS PAGE
   ============================================ */

.settings-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

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

.settings-sidebar {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0aec0;
    padding: 0 15px 10px 15px;
    margin-bottom: 10px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    border-radius: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.settings-nav-item:hover {
    background: #f7fafc;
    color: #667eea;
    transform: translateX(4px);
}

.settings-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.settings-nav-item i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.settings-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 6px;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 15px;
}

.toggle-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.toggle-info p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.4s;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

/* Language Tabs */
.language-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.language-tab {
    padding: 12px 24px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    border: 2px solid transparent;
}

.language-tab:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.language-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary i {
    font-size: 1rem;
}

/* ============================================
   6. ALERTS & NOTIFICATIONS
   ============================================ */

.alert-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    color: #1e3a8a;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   7. PAGINATION
   ============================================ */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li a,
.pagination li span {
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
}

.pagination li a:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

.pagination li.active span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   8. RESPONSIVE UTILITIES
   ============================================ */

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

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

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

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .settings-sidebar {
        position: static;
    }

    .status-update-grid {
        grid-template-columns: 1fr;
    }

    .page-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .welcome-card {
        padding: 25px;
    }

    .settings-content {
        padding: 25px;
    }
}

/* ============================================
   9. LOADING STATES
   ============================================ */

.loading-spinner {
    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 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   10. PRINT STYLES
   ============================================ */

@media print {
    .bot-dashboard-page,
    .details-page,
    .settings-page {
        background: white;
    }

    .settings-sidebar,
    .btn-back,
    .btn-filter,
    .btn-update,
    .btn-primary {
        display: none;
    }

    .modern-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}



/* ==========================================
   BOT MANAGEMENT - OPTIMIZED STYLES
   ========================================== */

/* CSS Variables for easy customization */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --success-gradient: linear-gradient(135deg, #11998e, #38ef7d);
    --warning-gradient: linear-gradient(135deg, #f2994a, #f2c94c);
    --danger-gradient: linear-gradient(135deg, #eb3349, #f45c43);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.12);
    
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Stats Cards */
.stat-mini {
    padding: 1.25rem;
    border-radius: var(--border-radius);
    background: var(--bg-gradient);
    color: white;
    text-align: center;
    transition: var(--transition);
}

.stat-mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-mini.blue { --bg-gradient: linear-gradient(135deg, #667eea, #764ba2); }
.stat-mini.green { --bg-gradient: linear-gradient(135deg, #11998e, #38ef7d); }
.stat-mini.orange { --bg-gradient: linear-gradient(135deg, #f2994a, #f2c94c); }
.stat-mini.purple { --bg-gradient: linear-gradient(135deg, #7f00ff, #e100ff); }
.stat-mini.red { --bg-gradient: linear-gradient(135deg, #eb3349, #f45c43); }

/* Border Accents */
.card.border-warning { border-left: 4px solid #f2c94c !important; }
.card.border-info { border-left: 4px solid #667eea !important; }
.card.border-primary { border-left: 4px solid #764ba2 !important; }
.card.border-success { border-left: 4px solid #38ef7d !important; }

/* ==========================================
   BADGES
   ========================================== */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
}

.badge.bg-warning { background: var(--warning-gradient) !important; }
.badge.bg-info { background: var(--primary-gradient) !important; }
.badge.bg-success { background: var(--success-gradient) !important; }
.badge.bg-primary { background: var(--primary-gradient) !important; }
.badge.bg-secondary { background: linear-gradient(135deg, #485563, #29323c) !important; }

/* ==========================================
   TABLES
   ========================================== */
.table thead {
    background: var(--primary-gradient);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #475569;
}

/* ==========================================
   FORMS
   ========================================== */
.form-control,
.form-select,
select.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.625rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 16px rgba(17, 153, 142, 0.4);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

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

.btn-sm { padding: 0.375rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* ==========================================
   PAGINATION
   ========================================== */
.page-link {
    border-radius: 6px;
    margin: 0 4px;
    border: 2px solid #e2e8f0;
    color: #667eea;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: #667eea;
}

/* ==========================================
   ALERTS
   ========================================== */
.alert-info {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border: none;
    border-left: 4px solid #0ea5e9;
    color: #0c4a6e;
}

/* ==========================================
   EXPORT PAGE
   ========================================== */
.tips-card ul {
    list-style: none;
    padding-left: 0;
}

.tips-card ul li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.tips-card ul li:last-child {
    border-bottom: none;
}

.tips-card ul li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .card-body { padding: 1rem; }
    .stat-mini { margin-bottom: 1rem; }
    .table { font-size: 0.875rem; }
    .btn { width: 100%; margin-bottom: 0.5rem; }
}



















/* ============================================================
   EMAIL TEMPLATES PAGE STYLES
   ============================================================ */

/* Modern Card Styling */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.card-header.bg-info {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%) !important;
}

.card-body {
    padding: 0;
}

/* Table Enhancements */
.table-responsive {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead.bg-light {
    background: #f8f9fa !important;
    border-bottom: 2px solid #e9ecef;
}

.table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a5568;
    padding: 1rem 1.5rem;
    border: none;
}

.table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid #f1f3f5;
    color: #2d3748;
}

.table-hover tbody tr {
    transition: background-color 0.15s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badge Styling */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(86, 171, 47, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 87, 108, 0.2);
}

/* Button Group */
.btn-group-sm .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    margin-right: 4px;
}

.btn-group-sm .btn:last-child {
    margin-right: 0;
}

.btn-info {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2ab8c4 0%, #4a75d4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(54, 209, 220, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #868f96 0%, #596164 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #757d84 0%, #485053 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(134, 143, 150, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #556bd9 0%, #653a91 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #df82ea 0%, #e4465b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(240, 147, 251, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #4a9a28 0%, #97cf52 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(86, 171, 47, 0.3);
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: 700;
    color: #2d3748;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Form Controls */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-group label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    box-shadow: 0 2px 8px rgba(114, 28, 36, 0.1);
}

/* Text Muted Enhancement */
.text-muted {
    color: #718096 !important;
    font-size: 0.875rem;
}

/* Help Card Special Styling */
.card-body ul {
    margin-bottom: 0;
}

.card-body code {
    background: #f1f3f5;
    color: #667eea;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* Page Header */
.h3.text-gray-800 {
    color: #2d3748 !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-header h5 {
        font-size: 1rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Smooth Scrolling for Table */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Focus States */
button:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Loading State (optional - for future use) */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Icon Alignment in Buttons */
.btn i.fas {
    font-size: 0.875rem;
}

/* Small Text in Modals */
.text-muted.small {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.text-muted.small i {
    margin-right: 0.25rem;
}

/* Container Spacing */
.container-fluid {
    padding: 2rem;
}

/* Hover Effects for Interactive Elements */
a:hover {
    text-decoration: none;
}

.close {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.close:hover {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════════════
   MIGRATED FROM premium.css — card-img-top alias
   Used by: blog-grid.blade.php, corporate/team.blade.php
   ═══════════════════════════════════════════════════════════════════════ */
.card-img-top {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md, 0.75rem) var(--radius-md, 0.75rem) 0 0;
    transition: transform 0.4s ease;
}
.card-img-top:hover {
    transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   END OF OPTIMIZED CSS v3.0
   ═══════════════════════════════════════════════════════════════════════════════ */
/* card-img-top — migrated from premium.css */
.card-img-top{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;border-radius:0.75rem 0.75rem 0 0;transition:transform 0.4s ease}
.card-img-top:hover{transform:scale(1.04)}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO CINEMATIC UPGRADE — Bayut-grade, mobile-first, RTL-ready
   All overrides scoped to .hero-section-professional — zero !important
   ═══════════════════════════════════════════════════════════════════════════ */

/* Full-viewport cinematic container */
.hero-section-professional {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    background-color: #0d1f3c;
}
@media (min-width: 1024px) {
    .hero-section-professional { min-height: calc(100vh - 120px); }
}

/* Richer bottom-heavy overlay for text legibility */
.hero-section-professional .hero-overlay {
    background: linear-gradient(
        175deg,
        rgba(13,31,60,.28) 0%,
        rgba(13,31,60,.12) 35%,
        rgba(13,31,60,.62) 70%,
        rgba(13,31,60,.90) 100%
    );
}

/* Content layer — bottom-aligned on mobile like Bayut */
.hero-section-professional .hero-content-wrapper {
    align-items: flex-end;
    min-height: 100svh;
    min-height: 100vh;
    padding: 7rem 1.25rem 3rem;
}
@media (min-width: 1024px) {
    .hero-section-professional .hero-content-wrapper {
        min-height: calc(100vh - 120px);
        padding: 5rem 2rem 4rem;
        align-items: center;
    }
}

/* Typography */
.hero-section-professional .hero-text-block {
    margin-bottom: 1.75rem;
    animation: hero-fade-up .8s cubic-bezier(.16,1,.3,1) both;
}
.hero-section-professional .hero-main-title {
    font-size: clamp(1.875rem, 5.5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-title-accent { color: #c9a84c; }
.hero-section-professional .hero-main-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* Live stat counters pill */
.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 1.5rem auto 1.75rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 100px;
    padding: .5rem .25rem;
    animation: hero-fade-up .8s .15s cubic-bezier(.16,1,.3,1) both;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .4rem 1.25rem;
    white-space: nowrap;
}
.hero-stat-divider {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,.2);
    flex-shrink: 0;
}
.hero-stat-value {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.hero-stat-label {
    font-size: .67rem;
    color: rgba(255,255,255,.62);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 3px;
    font-weight: 500;
}

/* Search card */
.hero-section-professional .search-card-container {
    margin-bottom: 1.5rem;
    animation: hero-fade-up .8s .25s cubic-bezier(.16,1,.3,1) both;
}
.hero-section-professional .search-card {
    background: rgba(255,255,255,.97);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
    border: 1px solid rgba(255,255,255,.5);
}
.hero-section-professional .search-input {
    height: 3.25rem;
    border-color: #e8edf2;
    background: #f8fafc;
}
.hero-section-professional .search-input:focus {
    background: #fff;
    border-color: #006AFF;
    box-shadow: 0 0 0 3px rgba(0,106,255,.1);
}
.hero-section-professional .search-select {
    height: 3.25rem;
    border-color: #e8edf2;
    background-color: #f8fafc;
}
.hero-section-professional .search-select:focus {
    border-color: #006AFF;
    box-shadow: 0 0 0 3px rgba(0,106,255,.1);
}
.hero-section-professional .search-submit-btn {
    background: linear-gradient(135deg, #006AFF 0%, #0052CC 100%);
    box-shadow: 0 4px 16px rgba(0,106,255,.4);
    border-radius: .75rem;
    height: 3.25rem;
}
.hero-section-professional .search-submit-btn:hover {
    background: linear-gradient(135deg, #0052CC 0%, #003EA6 100%);
    box-shadow: 0 6px 20px rgba(0,106,255,.5);
    transform: translateY(-1px);
}

/* CTA buttons */
.hero-section-professional .hero-cta-group {
    animation: hero-fade-up .8s .35s cubic-bezier(.16,1,.3,1) both;
    margin-top: 1.25rem;
}
.hero-section-professional .hero-cta-primary {
    background: #006AFF;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,106,255,.4);
}
.hero-section-professional .hero-cta-primary:hover {
    background: #0052CC;
    transform: translateY(-2px);
}
.hero-section-professional .hero-cta-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-section-professional .hero-cta-secondary:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

/* Slider nav */
.hero-section-professional .hero-slider-nav {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.hero-section-professional .hero-slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Entrance animation */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-section-professional { border-radius: 0; }
    .hero-section-professional .hero-content-wrapper { padding: 5.5rem 1rem 2.5rem; }
    .hero-section-professional .hero-cta-group { flex-direction: row; gap: .625rem; }
    .hero-section-professional .hero-cta-btn { flex: 1; padding: .75rem 1rem; font-size: .875rem; }
    .hero-section-professional .search-card { padding: .875rem; border-radius: .875rem; }
    .hero-stat-item { padding: .35rem .85rem; }
    .hero-stat-value { font-size: 1rem; }
    .hero-stat-label { font-size: .6rem; }
}
@media (max-width: 400px) {
    .hero-section-professional .hero-cta-group { flex-direction: column; }
    .hero-section-professional .hero-cta-btn { flex: none; width: 100%; }
}

/* RTL */
[dir="rtl"] .hero-section-professional .hero-slider-next { right: auto; left: .75rem; }
[dir="rtl"] .hero-section-professional .hero-slider-prev { left: auto; right: .75rem; }
[dir="rtl"] .hero-text-block, [dir="rtl"] .hero-stats-row { direction: rtl; }
[dir="rtl"] .hero-section-professional .search-label { left: auto; right: 1rem; }
[dir="rtl"] .hero-section-professional .search-input { padding: .75rem 3rem .75rem 1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM UPGRADE v2 — Mobile Bottom Nav + Typography + Micro-interactions
   ═══════════════════════════════════════════════════════════════════════════ */
:root{--font-display:'Playfair Display','Georgia',serif;--font-ui:'DM Sans','Plus Jakarta Sans',-apple-system,sans-serif;--gold:#c9a84c;--gold-light:#e8c96a;--navy:#0d1f3c;--blue-primary:#006AFF;--blue-dark:#0052CC;--surface:#ffffff;--surface-2:#f8fafc;--border:#e8edf2;--text-primary:#0d1f3c;--text-secondary:#4a5568;--text-muted:#8a9ab5;--radius-card:1rem;--radius-btn:.625rem;--shadow-card:0 2px 12px rgba(13,31,60,.08),0 1px 3px rgba(13,31,60,.05);--shadow-hover:0 8px 28px rgba(13,31,60,.13),0 2px 8px rgba(13,31,60,.07);--transition-ui:200ms cubic-bezier(0.4,0,0.2,1)}
body{font-family:var(--font-ui);color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.hero-main-title,.section-heading,.property-title,h1.page-title{font-family:var(--font-display)}
/* Mobile bottom nav */
.ppp-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;z-index:10500;background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -4px 20px rgba(13,31,60,.1);padding-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:767px){.ppp-bottom-nav{display:flex;align-items:stretch}}
.ppp-bottom-nav__item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px 10px;text-decoration:none;color:var(--text-muted);font-size:10px;font-weight:500;letter-spacing:.02em;border:none;background:none;cursor:pointer;transition:color var(--transition-ui);-webkit-tap-highlight-color:transparent;position:relative}
.ppp-bottom-nav__item:active{background:var(--surface-2)}
.ppp-bottom-nav__item--active{color:var(--blue-primary)}
.ppp-bottom-nav__item--active .ppp-bottom-nav__icon::after{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:24px;height:2.5px;background:var(--blue-primary);border-radius:0 0 2px 2px}
.ppp-bottom-nav__icon{position:relative;display:flex;align-items:center;justify-content:center;width:28px;height:28px}
.ppp-bottom-nav__label{line-height:1;white-space:nowrap}
.ppp-bottom-nav__item--cta{color:var(--surface);flex:1.1}
.ppp-bottom-nav__item--cta:active{background:transparent}
.ppp-bottom-nav__cta-bubble{display:flex;align-items:center;justify-content:center;width:46px;height:46px;background:#25d366;border-radius:50%;margin-top:-18px;box-shadow:0 4px 16px rgba(37,211,102,.4);color:#fff;transition:transform var(--transition-ui);border:3px solid var(--surface)}
.ppp-bottom-nav__item--cta:active .ppp-bottom-nav__cta-bubble{transform:scale(.94)}
.ppp-bottom-nav__item--cta .ppp-bottom-nav__label{color:var(--text-muted);margin-top:4px}
.ppp-bottom-nav-spacer{display:none;height:calc(64px + env(safe-area-inset-bottom,0px))}
@media(max-width:767px){.ppp-bottom-nav-spacer{display:block}}
[dir="rtl"] .ppp-bottom-nav{flex-direction:row-reverse}
/* Section headings */
.section-heading{font-family:var(--font-display);font-size:clamp(1.375rem,3vw,2rem);font-weight:700;color:var(--navy);line-height:1.2;letter-spacing:-.02em}
.section-heading::after{content:'';display:block;width:36px;height:3px;background:linear-gradient(90deg,var(--gold) 0%,var(--gold-light) 100%);border-radius:2px;margin-top:10px}
.section-view-all{font-size:.875rem;font-weight:600;color:var(--blue-primary);text-decoration:none;display:inline-flex;align-items:center;gap:4px;transition:gap var(--transition-ui),color var(--transition-ui)}
.section-view-all:hover{color:var(--blue-dark);gap:8px}
/* Property cards */
.property-card{border-radius:var(--radius-card);box-shadow:var(--shadow-card);transition:transform var(--transition-ui),box-shadow var(--transition-ui);background:var(--surface);overflow:hidden;border:1px solid var(--border)}
.property-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.badge-citizenship{background:linear-gradient(135deg,var(--gold) 0%,var(--gold-light) 100%);color:var(--navy);font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 8px;border-radius:4px}
.badge-new{background:var(--blue-primary);color:#fff;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 8px;border-radius:4px}
.property-price{font-family:var(--font-display);font-size:1.375rem;font-weight:700;color:var(--navy);letter-spacing:-.02em}
/* Header top bar */
.header-top-bar{background:var(--navy);color:rgba(255,255,255,.75);font-size:12.5px;border-bottom:1px solid rgba(255,255,255,.08);padding:7px 0}
.header-top-bar a{color:rgba(255,255,255,.75);text-decoration:none;transition:color var(--transition-ui)}
.header-top-bar a:hover{color:var(--gold)}
/* Footer */
.footer-main{background:var(--navy);border-top:1px solid rgba(201,168,76,.2)}
.footer-title{color:#fff;font-family:var(--font-display);font-size:1rem;font-weight:600;letter-spacing:-.01em}
.footer-link{color:rgba(255,255,255,.6);text-decoration:none;font-size:.875rem;line-height:2;transition:color var(--transition-ui),padding-inline-start var(--transition-ui);display:block}
.footer-link:hover{color:var(--gold);padding-inline-start:4px}
.social-link{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:rgba(255,255,255,.08);border-radius:8px;color:rgba(255,255,255,.7);text-decoration:none;transition:background var(--transition-ui),color var(--transition-ui),transform var(--transition-ui);font-size:14px}
.social-link:hover{background:var(--gold);color:var(--navy);transform:translateY(-2px)}
/* Utilities */
::selection{background:rgba(0,106,255,.15);color:var(--navy)}
:focus-visible{outline:2px solid var(--blue-primary);outline-offset:3px;border-radius:4px}
@media(max-width:420px){.hero-stats-row .hero-stat-item:last-child,.hero-stats-row .hero-stat-divider:last-of-type{display:none}}
.hero-stats-row{max-width:calc(100vw - 2rem);overflow:hidden}

/* ── FAB stack fixes ── */
/* Hide WhatsApp FAB on mobile — bottom nav handles it */
@media(max-width:767px){
    #whatsapp-fab{display:none}
}
/* Push bot above bottom nav on mobile */
@media(max-width:767px){
    .fixed.font-sans[style*="z-index: 99999"]{
        bottom:calc(64px + env(safe-area-inset-bottom,0px) + 0.75rem) !important;
    }
}

/* ── Mobile: hide bot toggle button on small screens ──
   Bottom nav WhatsApp bubble replaces this on mobile.
   Bot chat window still works if opened from desktop.    */
@media(max-width:767px){
    [wire\:id] > .fixed.font-sans > button:last-child,
    .bot-button{
        display:none;
    }
}

/* ── Bot button: smaller + above bottom nav on mobile ── */
@media(max-width:767px){
    /* Parent wrapper — push above 64px bottom nav */
    .fixed.font-sans.flex.flex-col{
        bottom:calc(64px + env(safe-area-inset-bottom,0px) + 0.5rem) !important;
    }
    /* Shrink button from 80px to 52px */
    .w-20.h-20{
        width:3.25rem !important;
        height:3.25rem !important;
    }
    /* Scale icon inside */
    .w-20.h-20 .w-10{
        width:1.5rem;
        height:1.5rem;
    }
    /* Hide ping animation on mobile — too distracting */
    .w-20.h-20 ~ div .animate-ping,
    .fixed.font-sans .animate-ping{
        display:none;
    }
}

/* ── Bot: mobile-optimised, above bottom nav ── */
@media(max-width:767px){
    .fixed.font-sans.flex.flex-col{
        bottom:calc(64px + env(safe-area-inset-bottom,0px) + 0.5rem) !important;
        right:0.875rem !important;
    }
    /* Shrink toggle button */
    button.w-20.h-20{
        width:46px !important;
        height:46px !important;
    }
    button.w-20.h-20 svg.w-10{
        width:22px !important;
        height:22px !important;
    }
    /* Hide ping ring on mobile */
    button.w-20.h-20 ~ div,
    .animate-ping{
        display:none !important;
    }
    /* Keep chat window usable */
    button.w-20.h-20 + div{
        display:block !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PROPERTY CARD — Bayut-grade upgrade
   Scoped to article[itemtype*="RealEstateListing"] — zero side effects
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Card container ── */
article[itemtype*="RealEstateListing"] {
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(13,31,60,.08), 0 1px 3px rgba(13,31,60,.04);
    border: 1px solid #edf0f5;
    transition: transform 220ms cubic-bezier(0.4,0,0.2,1),
                box-shadow 220ms cubic-bezier(0.4,0,0.2,1);
    background: #ffffff;
}

article[itemtype*="RealEstateListing"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(13,31,60,.13), 0 2px 8px rgba(13,31,60,.07);
}

/* ── Image: taller, better ratio ── */
article[itemtype*="RealEstateListing"] a.block.relative {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 200px;
}

article[itemtype*="RealEstateListing"] a.block.relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.4,0,0.2,1);
}

article[itemtype*="RealEstateListing"]:hover a.block.relative img {
    transform: scale(1.06);
}

/* ── Discount badge — bottom-left, gold ── */
article[itemtype*="RealEstateListing"] .absolute.top-2.left-2 {
    top: auto;
    bottom: 0.625rem;
    left: 0.625rem;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    color: #0d1f3c;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

/* ── New badge — bottom-right, brand blue ── */
article[itemtype*="RealEstateListing"] .absolute.top-2.right-2 {
    top: auto;
    bottom: 0.625rem;
    right: 0.625rem;
    background: #006AFF;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Card body ── */
article[itemtype*="RealEstateListing"] .p-4 {
    padding: 1rem 1.125rem 1.125rem;
}

/* ── Property type row — clean pill ── */
article[itemtype*="RealEstateListing"] .flex.items-center.gap-2.mb-2 {
    margin-bottom: 0.5rem;
}

article[itemtype*="RealEstateListing"] .flex.items-center.gap-2.mb-2 .w-2.h-2 {
    display: none;
}

article[itemtype*="RealEstateListing"] .flex.items-center.gap-2.mb-2 span {
    font-size: 11px;
    font-weight: 700;
    color: #006AFF;
    background: rgba(0,106,255,.08);
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Title ── */
article[itemtype*="RealEstateListing"] h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0d1f3c;
    line-height: 1.35;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
}

article[itemtype*="RealEstateListing"] h3:hover,
article[itemtype*="RealEstateListing"]:hover h3 {
    color: #006AFF;
}

/* ── Price — hide "Price:" label, make value prominent ── */
article[itemtype*="RealEstateListing"] .mb-3 > span.text-xs.text-gray-500 {
    display: none;
}

article[itemtype*="RealEstateListing"] .text-xl.font-bold.text-blue-600 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0d1f3c;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.02em;
    line-height: 1;
}

article[itemtype*="RealEstateListing"] .text-sm.text-gray-600 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #006AFF;
}

article[itemtype*="RealEstateListing"] .text-sm.text-gray-400.line-through {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* ── Stats row (beds/baths/area) ── */
article[itemtype*="RealEstateListing"] .flex.items-center.gap-3.mb-3 {
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom-color: #f1f4f8;
}

article[itemtype*="RealEstateListing"] .flex.items-center.gap-3.mb-3 .flex.items-center.gap-1 {
    gap: 4px;
    color: #4a5568;
    font-size: 0.8125rem;
}

article[itemtype*="RealEstateListing"] .flex.items-center.gap-3.mb-3 .w-4.h-4 {
    color: #006AFF;
    opacity: 0.8;
}

article[itemtype*="RealEstateListing"] .flex.items-center.gap-3.mb-3 .font-bold {
    font-weight: 700;
    color: #0d1f3c;
}

article[itemtype*="RealEstateListing"] .flex.items-center.gap-3.mb-3 .text-xs {
    font-size: 0.75rem;
    color: #64748b;
}

/* ── Features tags — subtle ── */
article[itemtype*="RealEstateListing"] .flex.flex-wrap.gap-1.mb-3 span {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e8edf2;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 4px;
}

/* ── Location ── */
article[itemtype*="RealEstateListing"] .text-xs.text-gray-600.mb-3 {
    color: #64748b;
    font-size: 0.8125rem;
}

article[itemtype*="RealEstateListing"] .text-xs.text-gray-600.mb-3 .w-4.h-4 {
    color: #c9a84c;
    flex-shrink: 0;
}

/* ── CTA Button — premium, not heavy ── */
article[itemtype*="RealEstateListing"] a.block.w-full.text-center {
    background: linear-gradient(135deg, #006AFF 0%, #0052CC 100%);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 10px rgba(0,106,255,.25);
    transition: box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

article[itemtype*="RealEstateListing"] a.block.w-full.text-center:hover {
    background: linear-gradient(135deg, #0052CC 0%, #003EA6 100%);
    box-shadow: 0 5px 16px rgba(0,106,255,.35);
    transform: translateY(-1px);
}

/* ── Mobile: slightly compact ── */
@media(max-width:640px){
    article[itemtype*="RealEstateListing"] a.block.relative {
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }
    article[itemtype*="RealEstateListing"] .text-xl.font-bold.text-blue-600 {
        font-size: 1.2rem;
    }
}


/* ── Hero full-bleed breakout from constrained <main> ── */
.hero-section-professional {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}


/* ── Hide mobile menu on desktop (md:hidden replacement) ── */
@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none;
    }
}

/* ── User account dropdown text fix ── */
.login-dashboard-btn {
    color: #1e293b;
}
header .absolute.right-0.top-full a,
header .absolute.right-0.top-full button {
    color: #334155;
}
header .absolute.right-0.top-full a:hover {
    background-color: #f8fafc;
}

/* ── Cookie banner ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10400;
    background: #1e293b;
    color: #f8fafc;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-text strong { display: block; margin-bottom: .25rem; font-size: .9375rem; }
.cookie-text p { font-size: .8125rem; color: rgba(255,255,255,.7); margin: 0; }
.cookie-link { color: #c9a84c; text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btn { padding: .5rem 1.25rem; border-radius: .5rem; font-size: .875rem; font-weight: 600; cursor: pointer; border: none; }
.cookie-btn--accept { background: #006AFF; color: #fff; }
.cookie-btn--reject { background: rgba(255,255,255,.15); color: #fff; }

/* On mobile: push cookie banner above bottom nav */
@media (max-width: 767px) {
    #cookie-banner {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE PREMIUM FIX — Cookie, Bot, Filter Bar, Overlaps
   ═══════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    /* 1. Cookie banner — sits above bottom nav, below nothing */
    #cookie-banner {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 10600 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 16px 16px 0 0;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .cookie-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: .75rem !important;
    }
    .cookie-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: .5rem !important;
        width: 100% !important;
    }
    .cookie-btn {
        padding: .75rem !important;
        text-align: center !important;
        font-size: .875rem !important;
        border-radius: .625rem !important;
    }

    /* 2. Bot — hide on mobile (already handled but ensure) */
    .fixed.font-sans {
        display: none !important;
    }

    /* 3. Hero search filter buttons — prevent text truncation */
    .filter-btn {
        padding: 0 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }
    .filter-btn span:first-child {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60px !important;
    }
    .inline-filters {
        gap: 6px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 2px !important;
    }
    .inline-filters::-webkit-scrollbar { display: none !important; }

    /* 4. Hero search box — no overflow on mobile */
    .search-header-inline {
        padding: 12px !important;
    }
    .main-search-input {
        font-size: 15px !important;
    }

    /* 5. Section overlap fix — ensure all sections have proper stacking */
    section, .section, [class*="-section"] {
        position: relative !important;
        z-index: auto !important;
    }

    /* 6. Bottom nav spacer — ensure content not hidden behind nav */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* 7. Discounted/New listings sections — prevent overlap */
    .property-search-container,
    .properties-container,
    .new-listings-section,
    .discounted-section {
        position: relative !important;
        z-index: 1 !important;
        background: #fff !important;
    }

    /* 8. Hero full bleed — no horizontal overflow */
    .hero-section-professional {
        overflow: hidden !important;
    }

    /* 9. Dropdowns on mobile — full width, proper z-index */
    .price-dropdown,
    .home-type-dropdown {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
        top: auto !important;
        z-index: 10550 !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        width: 100% !important;
        box-shadow: 0 -8px 32px rgba(0,0,0,.15) !important;
    }
}

/* ── Focus indicators (WCAG 2.1) ── */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}



/* ── Footer icon size fix ── */

/* ═══════════════════════════════════════════════════
   PREMIUM FOOTER — Bayut/Sotheby's Grade
   ═══════════════════════════════════════════════════ */
.footer-main{display:none!important}
.ppp-footer{background:#0a1628;color:#cbd5e1;font-family:var(--font-ui,'DM Sans',sans-serif);margin-bottom:64px}
@media(min-width:768px){.ppp-footer{margin-bottom:0}}
.ppp-footer-container{max-width:1200px;margin:0 auto;padding:0 24px}
.ppp-footer-top{background:#0d1f3c;padding:32px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.ppp-footer-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.ppp-footer-cta-label{font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#c9a84c;margin:0 0 6px}
.ppp-footer-cta-heading{font-size:1.25rem;font-weight:600;color:#fff;margin:0;font-family:var(--font-display,'Playfair Display',serif)}
.ppp-newsletter-form{display:flex;flex-shrink:0;border-radius:8px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.3)}
.ppp-newsletter-form input{padding:12px 16px;border:none;background:rgba(255,255,255,.08);color:#fff;font-size:13px;width:220px;outline:none}
.ppp-newsletter-form input::placeholder{color:rgba(255,255,255,.35)}
.ppp-newsletter-form button{padding:12px 20px;background:#006AFF;color:#fff;border:none;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .2s}
.ppp-newsletter-form button:hover{background:#0052CC}
.ppp-footer-main{padding:56px 0 40px}
.ppp-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:48px}
@media(max-width:1024px){.ppp-footer-grid{grid-template-columns:1fr 1fr;gap:36px}}
@media(max-width:640px){
    .ppp-footer-grid{grid-template-columns:1fr;gap:32px}
    .ppp-footer-cta{flex-direction:column;align-items:flex-start}
    .ppp-newsletter-form{width:100%}
    .ppp-newsletter-form input{width:100%;flex:1}
}
.ppp-footer-logo{display:block;font-family:var(--font-display,'Playfair Display',serif);font-size:1.35rem;font-weight:700;color:#fff;margin-bottom:10px;letter-spacing:-.01em}
.ppp-footer-logo span{color:#c9a84c}
.ppp-footer-tagline{font-size:13px;color:rgba(255,255,255,.45);margin:0 0 18px;line-height:1.5}
.ppp-footer-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.ppp-badge{font-size:11px;padding:4px 10px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.6);white-space:nowrap}
.ppp-footer-socials{display:flex;gap:8px}
.ppp-social{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);display:inline-flex;align-items:center;justify-content:center;color:rgba(255,255,255,.6);text-decoration:none;font-size:13px;transition:all .2s}
.ppp-social i{font-size:13px!important;line-height:1!important}
.ppp-social:hover{background:#006AFF;border-color:#006AFF;color:#fff;transform:translateY(-2px)}
.ppp-social-wa:hover{background:#25d366!important;border-color:#25d366!important}
.ppp-footer-heading{font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#fff;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.ppp-footer-link{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.5);text-decoration:none;padding:5px 0;transition:color .2s}
.ppp-footer-link:hover{color:#fff}
.ppp-link-dot{width:4px;height:4px;border-radius:50%;background:#006AFF;flex-shrink:0;opacity:.6}
.ppp-footer-link:hover .ppp-link-dot{opacity:1}
.ppp-coming-soon{font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:rgba(201,168,76,.15);color:#c9a84c;padding:2px 6px;border-radius:10px;border:1px solid rgba(201,168,76,.3);margin-left:auto}
.ppp-contact-items{display:flex;flex-direction:column;gap:12px}
.ppp-contact-item{display:flex;align-items:center;gap:10px;font-size:13px;color:rgba(255,255,255,.5);text-decoration:none;transition:color .2s}
.ppp-contact-item:hover{color:#fff}
.ppp-contact-icon{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ppp-contact-icon svg{width:14px!important;height:14px!important}
.ppp-whatsapp-btn{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:10px 16px;background:#25d366;color:#fff!important;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;transition:background .2s,transform .2s;width:fit-content}
.ppp-whatsapp-btn i{font-size:14px!important}
.ppp-whatsapp-btn:hover{background:#1ebe59;transform:translateY(-1px)}
.ppp-footer-bottom{border-top:1px solid rgba(255,255,255,.06);padding:20px 0}
.ppp-footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ppp-footer-bottom p{font-size:12px;color:rgba(255,255,255,.4);margin:0}
.ppp-legal-nav{display:flex;flex-wrap:wrap;gap:16px}
.ppp-legal-nav a{font-size:11px;color:rgba(255,255,255,.35);text-decoration:none;transition:color .2s}
.ppp-legal-nav a:hover{color:rgba(255,255,255,.8)}

/* ── Footer RTL — single authoritative block ── */
[dir="rtl"] .ppp-footer-grid { direction: rtl; }
[dir="rtl"] .ppp-footer-cta { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .ppp-footer-brand { text-align: right; }
[dir="rtl"] .ppp-footer-tagline { text-align: right; }
[dir="rtl"] .ppp-footer-heading { text-align: right; }
[dir="rtl"] .ppp-footer-badges { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .ppp-footer-socials { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .ppp-footer-col { text-align: right; }
[dir="rtl"] .ppp-footer-col nav { display: flex; flex-direction: column; align-items: flex-end; width: 100%; }
[dir="rtl"] .ppp-footer-link { direction: rtl; width: 100%; }
[dir="rtl"] .ppp-coming-soon { margin-left: 8px; margin-right: 0; }
[dir="rtl"] .ppp-contact-items { align-items: flex-end; }
[dir="rtl"] .ppp-contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .ppp-whatsapp-btn { flex-direction: row-reverse; }
[dir="rtl"] .ppp-footer-bottom-inner { flex-direction: row-reverse; }
[dir="rtl"] .ppp-legal-nav { flex-direction: row-reverse; }

/* ── Chips mobile fix ── */
/* ═══════════════════════════════════════
   ACTIVE FILTER CHIPS — Bayut Style
   ═══════════════════════════════════════ */
.ppp-chips-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.ppp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #fff;
    border: 1.5px solid #006AFF;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #006AFF;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ppp-chip:hover { background: #006AFF; color: #fff; }
.ppp-chip-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.ppp-chip-icon svg { width: 12px; height: 12px; flex-shrink: 0; }
.ppp-chip-remove { display: inline-flex; align-items: center; flex-shrink: 0; }
.ppp-chip-remove svg { width: 11px; height: 11px; opacity: 0.6; }
.ppp-chip:hover .ppp-chip-remove svg { opacity: 1; }
.ppp-chip-type { border-color: #c9a84c; color: #92720a; }
.ppp-chip-type:hover { background: #c9a84c; color: #fff; }
.ppp-chip-clear-all {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.ppp-chip-clear-all:hover { border-color: #ef4444; color: #ef4444; }

@media(max-width:767px){
    .ppp-chips-bar { padding: 8px 12px; gap: 6px; }
    .ppp-chip { font-size: 11px; padding: 5px 8px; }
    .ppp-chip-icon { display: none; }
    .ppp-chip-remove svg { width: 10px; height: 10px; }
    .ppp-chip-clear-all { font-size: 11px; padding: 5px 10px; }
}

/* ── Gallery modal premium upgrade ── */

/* ── Gallery Modal — single authoritative block ── */

/* ── Sticky filter bar offset ── */
@media(min-width:768px){
    .property-search-container { top: 72px; }
}

/* ── Chips RTL fix ── */
[dir="rtl"] .ppp-chips-bar { direction: rtl; }
[dir="rtl"] .ppp-chip { flex-direction: row-reverse; }
[dir="rtl"] .ppp-chip-clear-all { margin-right: auto; margin-left: 0; }

/* ── Search filter sticky offset ── */
.property-search-container { top: 0; }
@media(min-width:768px){ .property-search-container { top: 72px; } }

/* ── Full-bleed sections — Bayut style ── */
.hot-offers,
.section-spacing,
.testimonials-section,
.page-content {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}
.hot-offers { border-top: 3px solid #fee2e2; }


/* ═══════════════════════════════════════════════════════════════
   HERO QUICK FILTERS
   Mobile: single horizontal scrolling row, no wrap
   Tablet+: centered wrapping row
   RTL: scroll direction flips automatically
   ═══════════════════════════════════════════════════════════════ */
.hero-quick-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    margin-top: 1rem;
    padding: 0 .25rem .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}
.hero-quick-filters::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .hero-quick-filters {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.hero-quick-filter {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .4rem 1rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2rem;
    color: #fff;
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.hero-quick-filter:hover,
.hero-quick-filter:focus-visible {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
    outline: none;
}
.hero-quick-filter svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   MARKET INTELLIGENCE STRIP
   Mobile-first: 2-col grid → desktop: single row
   RTL: direction handled by the dir attribute on <html>
   ═══════════════════════════════════════════════════════════════ */
.ppp-market-strip {
    background: linear-gradient(135deg,#0d1f3c 0%,#132749 60%,#1a3360 100%);
    padding: .75rem 1.25rem;
    border-top: 1px solid rgba(201,168,76,.15);
}
.ppp-market-strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 0;
}
.ppp-market-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .25rem 1.25rem;
    text-align: center;
}
.ppp-market-stat--hero {
    padding: .125rem 1.5rem;
}
.ppp-market-val {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #d4af37;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.ppp-market-stat--hero .ppp-market-val {
    font-size: 1.875rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: -.01em;
}
.ppp-market-stat--secondary .ppp-market-val {
    font-size: 1.125rem;
    color: #c8d8f8;
}
.ppp-market-stat--tertiary .ppp-market-val {
    font-size: .9375rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
}
.ppp-market-lbl {
    display: block;
    font-size: .625rem;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .2rem;
    white-space: nowrap;
}
.ppp-market-stat--hero .ppp-market-lbl {
    color: rgba(212,175,55,.65);
    font-size: .6875rem;
    letter-spacing: .1em;
}
.ppp-market-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
    display: none;
}
.ppp-market-cta {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: #0d1f3c;
    background: #d4af37;
    font-weight: 700;
    font-size: .8125rem;
    text-decoration: none;
    padding: .5rem 1.25rem;
    border-radius: 2rem;
    margin-left: 1rem;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ppp-market-cta:hover {
    background: #e8c84a;
    transform: translateY(-1px);
    color: #0d1f3c;
}
@media (min-width: 640px) {
    .ppp-market-strip { padding: .625rem 1.5rem; }
    .ppp-market-divider { display: block; }
    .ppp-market-divider-hide { display: none; }
    .ppp-market-strip-inner { flex-wrap: nowrap; gap: 0; }
}
@media (max-width: 639px) {
    .ppp-market-strip-inner { justify-content: space-around; }
    .ppp-market-cta { margin-left: 0; margin-top: .25rem; width: 100%; justify-content: center; }
    .ppp-market-stat--tertiary { display: none; }
}
[dir="rtl"] .ppp-market-strip { direction: rtl; }
[dir="rtl"] .ppp-market-cta { margin-left: 0; margin-right: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   INVESTMENT SPOTLIGHT SECTION
   ═══════════════════════════════════════════════════════════════ */
.ppp-spotlight { background: #f8f9ff; }

.ppp-spotlight-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ppp-investment-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    background: #1e3a8a;
    color: #d4af37;
    font-size: .6875rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.ppp-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #1e3a8a;
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    border: 1.5px solid #1e3a8a;
    padding: .5rem 1.25rem;
    border-radius: .5rem;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.ppp-view-all-btn:hover {
    background: #1e3a8a;
    color: #fff;
}

.ppp-desktop-only { display: none; }
@media (min-width: 768px) { .ppp-desktop-only { display: inline-flex; } }
.ppp-mobile-only { display: block; }
@media (min-width: 768px) { .ppp-mobile-only { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE — no-results state
   Replaces the broken oversized card that appeared before the fix
   ═══════════════════════════════════════════════════════════════ */
.ppp-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    gap: .75rem;
}
.ppp-no-results-icon {
    font-size: 3rem;
    color: #d1d5db;
}
.ppp-no-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}
.ppp-no-results-body {
    font-size: .9375rem;
    color: #6b7280;
    max-width: 380px;
}
.ppp-no-results-cta {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin-top: .5rem;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: .625rem 1.5rem;
    border-radius: .5rem;
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.ppp-no-results-cta:hover { background: #1d4ed8; }


/* ═══════════════════════════════════════════════════════════════
   INVESTMENT SPOTLIGHT — stat strip
   ═══════════════════════════════════════════════════════════════ */
.ppp-spotlight-stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: .875rem 1.25rem;
    background: #f0f4ff;
    border-radius: 10px;
    border: 1px solid #e0e8ff;
}
.ppp-spotlight-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.25rem;
    flex: 1;
    min-width: 100px;
}
.ppp-spotlight-stat-val {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.2;
}
.ppp-spotlight-stat-lbl {
    font-size: .6875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .125rem;
    text-align: center;
}
.ppp-spotlight-stat-div {
    width: 1px;
    height: 32px;
    background: #d1daf0;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .ppp-spotlight-stats { gap: .5rem; padding: .75rem; }
    .ppp-spotlight-stat { padding: 0 .75rem; min-width: 80px; }
    .ppp-spotlight-stat-val { font-size: 1.125rem; }
    .ppp-spotlight-stat-div { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   INVESTMENT CARD OVERLAYS
   Position: relative on wrapper, badges float top-left/right
   ═══════════════════════════════════════════════════════════════ */
.ppp-invest-wrap {
    position: relative;
}
.ppp-invest-badge {
    position: absolute;
    top: 12px;
    z-index: 10;
    font-size: .6875rem;
    font-weight: 700;
    padding: .25rem .625rem;
    border-radius: 2rem;
    letter-spacing: .04em;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}
.ppp-invest-badge--save {
    left: 12px;
    background: #1e3a8a;
    color: #d4af37;
}
.ppp-invest-badge--premium {
    right: 12px;
    background: #d4af37;
    color: #1e3a8a;
}

/* ═══════════════════════════════════════════════════════════════
   ADVISORY CTA ROW — 3-card action strip below spotlight
   Mobile: stacked column / Tablet+: 3-col grid
   RTL: handled by flex-direction
   ═══════════════════════════════════════════════════════════════ */
.ppp-advisory-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    margin-top: 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .ppp-advisory-cta-row { grid-template-columns: repeat(3, 1fr); }
}
.ppp-advisory-cta-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ppp-advisory-cta-card:hover,
.ppp-advisory-cta-card:focus-visible {
    border-color: #1e3a8a;
    box-shadow: 0 4px 16px rgba(30,58,138,.1);
    transform: translateY(-1px);
    outline: none;
}
.ppp-advisory-cta-card--accent {
    background: #1e3a8a;
    border-color: #1e3a8a;
}
.ppp-advisory-cta-card--accent:hover,
.ppp-advisory-cta-card--accent:focus-visible {
    background: #162d6e;
    border-color: #162d6e;
}
.ppp-advisory-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1e3a8a;
}
.ppp-advisory-cta-card--accent .ppp-advisory-cta-icon {
    background: rgba(255,255,255,.15);
    color: #d4af37;
}
.ppp-advisory-cta-title {
    font-size: .9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.ppp-advisory-cta-card--accent .ppp-advisory-cta-title { color: #fff; }
.ppp-advisory-cta-sub {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .125rem;
}
.ppp-advisory-cta-card--accent .ppp-advisory-cta-sub { color: rgba(255,255,255,.7); }
.ppp-advisory-cta-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform .2s, color .2s;
}
.ppp-advisory-cta-card:hover .ppp-advisory-cta-arrow { transform: translateX(3px); color: #1e3a8a; }
.ppp-advisory-cta-card--accent .ppp-advisory-cta-arrow { color: rgba(255,255,255,.5); }
.ppp-advisory-cta-card--accent:hover .ppp-advisory-cta-arrow { transform: translateX(3px); color: #fff; }

[dir="rtl"] .ppp-advisory-cta-card { flex-direction: row-reverse; }
[dir="rtl"] .ppp-advisory-cta-arrow { margin-left: 0; margin-right: auto; transform: scaleX(-1); }
[dir="rtl"] .ppp-advisory-cta-card:hover .ppp-advisory-cta-arrow { transform: scaleX(-1) translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   DISTRICT INVESTMENT GUIDES
   Mobile-first · RTL-aware · Global-ready
   ═══════════════════════════════════════════════════════════════ */
.ppp-dg-container{max-width:1280px;margin:0 auto;padding:0 1rem}
.ppp-dg-section{padding:3.5rem 0}
.ppp-dg-section--light{background:#f8f9ff}
.ppp-dg-section-header{text-align:center;margin-bottom:2rem}
.ppp-dg-hero{position:relative;background:linear-gradient(135deg,#0d1f3c,#1a3360);min-height:320px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:4rem 1.5rem}
.ppp-dg-hero-overlay{position:absolute;inset:0;background:rgba(13,31,60,.7)}
.ppp-dg-hero-content{position:relative;z-index:1;max-width:700px;margin:0 auto;text-align:center}
.ppp-dg-hero-title{font-size:clamp(1.75rem,4vw,2.75rem);font-weight:800;color:#fff;line-height:1.15;margin-bottom:.875rem}
.ppp-dg-hero-sub{font-size:1.0625rem;color:rgba(255,255,255,.8);line-height:1.6;margin-bottom:1.5rem}
.ppp-dg-hero-stats{display:flex;align-items:center;justify-content:center;gap:.875rem;flex-wrap:wrap;font-size:.875rem;color:rgba(255,255,255,.7)}
.ppp-dg-hero-stats strong{color:#d4af37;font-weight:700;display:block;font-size:1.125rem}
.ppp-dg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}
.ppp-dg-card{display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;border:1.5px solid #e5e7eb;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .15s}
.ppp-dg-card:hover,.ppp-dg-card:focus-visible{border-color:#1e3a8a;box-shadow:0 8px 32px rgba(30,58,138,.12);transform:translateY(-2px);outline:none}
.ppp-dg-card-img{position:relative;height:180px;overflow:hidden;background:#f1f5f9}
.ppp-dg-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ppp-dg-card:hover .ppp-dg-card-img img{transform:scale(1.05)}
.ppp-dg-card-img-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#94a3b8}
.ppp-dg-card-body{padding:1.125rem;flex:1;display:flex;flex-direction:column;gap:.75rem}
.ppp-dg-card-name{font-size:1.125rem;font-weight:700;color:#111827;text-transform:capitalize}
.ppp-dg-card-stats{display:flex;gap:1rem;flex-wrap:wrap}
.ppp-dg-card-stat{display:flex;flex-direction:column}
.ppp-dg-card-stat-val{font-size:1rem;font-weight:700;color:#1e3a8a}
.ppp-dg-card-stat-lbl{font-size:.6875rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.06em}
.ppp-dg-card-footer{margin-top:auto;padding-top:.75rem;border-top:1px solid #f1f5f9}
.ppp-dg-read-more{font-size:.8125rem;font-weight:600;color:#1e3a8a}
.ppp-dg-card:hover .ppp-dg-read-more{text-decoration:underline}
.ppp-dg-rating{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:2rem;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.ppp-dg-rating--green{background:#dcfce7;color:#15803d}
.ppp-dg-rating--blue{background:#dbeafe;color:#1e40af}
.ppp-dg-rating--amber{background:#fef9c3;color:#a16207}
.ppp-dg-rating--gray{background:#f3f4f6;color:#4b5563}
.ppp-dg-card-img .ppp-dg-rating{position:absolute;top:10px;right:10px}
.ppp-dg-rating--lg{font-size:.875rem;padding:.375rem 1rem}
.ppp-dg-mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem}
.ppp-dg-mini-card{display:flex;align-items:center;gap:.75rem;padding:.875rem 1rem;background:#fff;border:1px solid #e5e7eb;border-radius:10px;text-decoration:none;transition:border-color .2s,background .2s}
.ppp-dg-mini-card:hover,.ppp-dg-mini-card:focus-visible{border-color:#1e3a8a;background:#f0f4ff;outline:none}
.ppp-dg-mini-name{font-size:.875rem;font-weight:600;color:#111827;text-transform:capitalize;flex:1}
.ppp-dg-mini-count{font-size:.75rem;color:#6b7280;white-space:nowrap}
.ppp-dg-mini-arrow{color:#9ca3af;flex-shrink:0;transition:transform .2s}
.ppp-dg-mini-card:hover .ppp-dg-mini-arrow{transform:translateX(3px);color:#1e3a8a}
.ppp-dg-cta-section{background:#1e3a8a;padding:3rem 0}
.ppp-dg-cta-box{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.ppp-dg-cta-title{font-size:1.5rem;font-weight:700;color:#fff;margin-bottom:.375rem}
.ppp-dg-cta-sub{font-size:.9375rem;color:rgba(255,255,255,.75)}
.ppp-dg-cta-btn{display:inline-flex;align-items:center;background:#d4af37;color:#0d1f3c;font-weight:700;font-size:.9375rem;padding:.75rem 1.75rem;border-radius:2rem;text-decoration:none;white-space:nowrap;transition:background .2s,transform .15s;flex-shrink:0}
.ppp-dg-cta-btn:hover{background:#e8c84a;transform:translateY(-1px)}
.ppp-dg-show-hero{position:relative;min-height:360px;background:linear-gradient(135deg,#0d1f3c,#1e3a8a);background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:2.5rem 1.5rem}
.ppp-dg-show-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(13,31,60,.92) 0%,rgba(13,31,60,.35) 100%)}
.ppp-dg-show-hero-content{position:relative;z-index:1;max-width:1280px;margin:0 auto;width:100%}
.ppp-dg-breadcrumb{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:rgba(255,255,255,.6);margin-bottom:1rem;flex-wrap:wrap}
.ppp-dg-breadcrumb a{color:rgba(255,255,255,.7);text-decoration:none}
.ppp-dg-breadcrumb a:hover{color:#d4af37}
.ppp-dg-show-title{font-size:clamp(2rem,5vw,3rem);font-weight:800;color:#fff;text-transform:capitalize;line-height:1.1;margin-bottom:.375rem}
.ppp-dg-show-sub{font-size:1rem;color:rgba(255,255,255,.7)}
.ppp-dg-metrics-bar{background:#1e3a8a;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0;padding:.875rem 1.5rem;overflow-x:auto}
.ppp-dg-metric{display:flex;flex-direction:column;align-items:center;padding:.375rem 1.5rem;text-align:center;flex-shrink:0}
.ppp-dg-metric--hero .ppp-dg-metric-val{font-size:1.5rem;color:#d4af37}
.ppp-dg-metric-val{font-size:1.125rem;font-weight:700;color:#fff;line-height:1.2}
.ppp-dg-metric-lbl{font-size:.625rem;color:rgba(255,255,255,.55);text-transform:uppercase;letter-spacing:.08em;margin-top:.2rem;white-space:nowrap}
.ppp-dg-metric-div{width:1px;height:28px;background:rgba(255,255,255,.15);flex-shrink:0}
@media(max-width:639px){.ppp-dg-metric-div{display:none}.ppp-dg-metrics-bar{justify-content:space-around}}
.ppp-dg-show-body{padding:2.5rem 0}
.ppp-dg-show-layout{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:1024px){.ppp-dg-show-layout{grid-template-columns:1fr 340px}}
.ppp-dg-content-section{margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid #f1f5f9}
.ppp-dg-content-section:last-child{border-bottom:none}
.ppp-dg-content-title{font-size:1.25rem;font-weight:700;color:#111827;margin-bottom:.875rem}
.ppp-dg-content-body{font-size:.9375rem;color:#4b5563;line-height:1.75}
.ppp-dg-highlights{list-style:none;padding:0;display:flex;flex-direction:column;gap:.625rem}
.ppp-dg-highlight-item{display:flex;align-items:flex-start;gap:.625rem;font-size:.9375rem;color:#374151}
.ppp-dg-highlight-item svg{color:#16a34a;flex-shrink:0;margin-top:.2rem}
.ppp-dg-scores-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:480px){.ppp-dg-scores-grid{grid-template-columns:repeat(3,1fr)}}
.ppp-dg-score-card{background:#f8f9ff;border-radius:10px;padding:1rem}
.ppp-dg-score-label{font-size:.8125rem;font-weight:600;color:#374151;margin-bottom:.625rem}
.ppp-dg-score-bar-wrap{height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden;margin-bottom:.5rem}
.ppp-dg-score-bar{height:100%;background:#1e3a8a;border-radius:3px}
.ppp-dg-score-bar--gold{background:#d4af37}
.ppp-dg-score-val{font-size:.8125rem;font-weight:700;color:#1e3a8a}
.ppp-dg-sidebar-card{background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;padding:1.25rem;margin-bottom:1rem}
.ppp-dg-sidebar-card--accent{background:#1e3a8a;border-color:#1e3a8a}
.ppp-dg-sidebar-card-title{font-size:1rem;font-weight:700;color:#111827;margin-bottom:.625rem}
.ppp-dg-sidebar-card--accent .ppp-dg-sidebar-card-title{color:#fff}
.ppp-dg-sidebar-card-body{font-size:.875rem;color:#6b7280;line-height:1.6;margin-bottom:1rem}
.ppp-dg-sidebar-card--accent .ppp-dg-sidebar-card-body{color:rgba(255,255,255,.75)}
.ppp-dg-sidebar-btn{display:block;text-align:center;padding:.75rem 1rem;border-radius:8px;font-size:.875rem;font-weight:600;text-decoration:none;transition:background .2s;margin-bottom:.5rem}
.ppp-dg-sidebar-btn--primary{background:#d4af37;color:#0d1f3c}
.ppp-dg-sidebar-btn--primary:hover{background:#e8c84a}
.ppp-dg-sidebar-btn--outline{background:rgba(255,255,255,.1);color:#fff;border:1.5px solid rgba(255,255,255,.3)}
.ppp-dg-sidebar-btn--outline:hover{background:rgba(255,255,255,.2)}
.ppp-dg-sidebar-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:.625rem}
.ppp-dg-sidebar-list li{display:flex;justify-content:space-between;align-items:center;font-size:.875rem;padding-bottom:.5rem;border-bottom:1px solid #f1f5f9}
.ppp-dg-sidebar-list li:last-child{border-bottom:none}
.ppp-dg-sidebar-list span{color:#6b7280}
.ppp-dg-sidebar-list strong{color:#111827}
.ppp-dg-listings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}
@media(max-width:640px){.ppp-dg-cta-box{flex-direction:column;text-align:center}.ppp-dg-cta-btn{width:100%;justify-content:center}}
[dir="rtl"] .ppp-dg-breadcrumb{flex-direction:row-reverse}
[dir="rtl"] .ppp-dg-mini-arrow{transform:scaleX(-1)}
[dir="rtl"] .ppp-dg-mini-card:hover .ppp-dg-mini-arrow{transform:scaleX(-1) translateX(3px)}
[dir="rtl"] .ppp-dg-cta-box{flex-direction:row-reverse}

/* ═══════════════════════════════════════════════════════════════
   ROI CALCULATOR
   Mobile-first · RTL-aware · No hardcoded values
   ═══════════════════════════════════════════════════════════════ */
.ppp-roi-hero{position:relative;background:linear-gradient(135deg,#0d1f3c,#1a3360);padding:4rem 1.5rem;text-align:center}
.ppp-roi-hero-overlay{position:absolute;inset:0;background:rgba(13,31,60,.6)}
.ppp-roi-hero-content{position:relative;z-index:1;max-width:700px;margin:0 auto}
.ppp-roi-hero-title{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800;color:#fff;margin-bottom:.75rem;line-height:1.15}
.ppp-roi-hero-sub{font-size:1rem;color:rgba(255,255,255,.8);line-height:1.6}
.ppp-roi-section{padding:3rem 0}
.ppp-roi-container{max-width:1280px;margin:0 auto;padding:0 1rem}
.ppp-roi-layout{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:1024px){.ppp-roi-layout{grid-template-columns:380px 1fr}}
.ppp-roi-inputs-panel{background:#fff;border:1.5px solid #e5e7eb;border-radius:14px;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}
.ppp-roi-results-panel{display:flex;flex-direction:column;gap:1.5rem}
.ppp-roi-label{display:block;font-size:.8125rem;font-weight:600;color:#374151;margin-bottom:.375rem}
.ppp-roi-label-hint{font-weight:400;color:#9ca3af;font-size:.75rem;margin-left:.375rem}
.ppp-roi-input-wrap{position:relative}
.ppp-roi-prefix{position:absolute;top:50%;transform:translateY(-50%);left:.875rem;color:#6b7280;font-size:.9375rem;pointer-events:none}
[dir="rtl"] .ppp-roi-prefix{left:auto;right:.875rem}
.ppp-roi-input{width:100%;padding:.625rem .875rem;border:1.5px solid #e5e7eb;border-radius:8px;font-size:.9375rem;color:#111827;transition:border-color .2s;background:#fff}
.ppp-roi-input--prefixed{padding-left:2rem}
[dir="rtl"] .ppp-roi-input--prefixed{padding-left:.875rem;padding-right:2rem}
.ppp-roi-input:focus{outline:none;border-color:#1e3a8a}
.ppp-roi-select{width:100%;padding:.625rem .875rem;border:1.5px solid #e5e7eb;border-radius:8px;font-size:.875rem;color:#111827;background:#fff;cursor:pointer}
.ppp-roi-field-hint{font-size:.75rem;margin-top:.375rem;display:flex;align-items:center;gap:.25rem;color:#16a34a;font-weight:500}
.ppp-roi-field-hint--warn{color:#d97706}
.ppp-roi-divider{height:1px;background:#f1f5f9}
.ppp-roi-assumptions-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:1.5px solid #e5e7eb;border-radius:8px;padding:.625rem .875rem;font-size:.875rem;font-weight:600;color:#374151;cursor:pointer;transition:border-color .2s}
.ppp-roi-assumptions-toggle:hover{border-color:#1e3a8a;color:#1e3a8a}
.ppp-roi-assumptions-body{display:flex;flex-direction:column;gap:1rem;padding-top:.75rem}
.ppp-roi-reset-btn{font-size:.8125rem;color:#6b7280;background:none;border:none;cursor:pointer;text-decoration:underline;text-align:start;padding:0}
.ppp-roi-reset-btn:hover{color:#1e3a8a}
.ppp-roi-cta-sidebar{background:#f0f4ff;border-radius:10px;padding:1.125rem;text-align:center}
.ppp-roi-cta-text{font-size:.875rem;color:#374151;margin-bottom:.75rem}
.ppp-roi-cta-btn{display:inline-flex;align-items:center;background:#1e3a8a;color:#fff;font-weight:600;font-size:.875rem;padding:.625rem 1.25rem;border-radius:8px;text-decoration:none;transition:background .2s}
.ppp-roi-cta-btn:hover{background:#162d6e}
.ppp-roi-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
@media(min-width:480px){.ppp-roi-metrics{grid-template-columns:repeat(4,1fr)}}
.ppp-roi-metric{background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;padding:1.125rem;text-align:center}
.ppp-roi-metric--hero{background:#1e3a8a;border-color:#1e3a8a}
.ppp-roi-metric--hero .ppp-roi-metric-val{color:#d4af37;font-size:1.75rem}
.ppp-roi-metric--hero .ppp-roi-metric-lbl{color:rgba(255,255,255,.75)}
.ppp-roi-metric-val{display:block;font-size:1.375rem;font-weight:700;color:#1e3a8a;line-height:1.2}
.ppp-roi-metric-lbl{display:block;font-size:.6875rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.06em;margin-top:.25rem}
.ppp-roi-citizenship{display:flex;align-items:center;gap:.625rem;padding:.875rem 1.125rem;border-radius:10px;font-size:.875rem;font-weight:500}
.ppp-roi-citizenship--eligible{background:#dcfce7;color:#15803d}
.ppp-roi-citizenship--not{background:#fef9c3;color:#a16207}
.ppp-roi-chart-section{background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;padding:1.25rem}
.ppp-roi-chart-title{font-size:1rem;font-weight:700;color:#111827;margin-bottom:1rem}
.ppp-roi-chart-wrap{height:240px;position:relative}
.ppp-roi-chart-legend{display:flex;align-items:center;gap:.375rem;font-size:.75rem;color:#6b7280;margin-top:.75rem;flex-wrap:wrap}
.ppp-roi-legend-dot{width:10px;height:10px;border-radius:2px;flex-shrink:0}
.ppp-roi-legend-dot--blue{background:#1e3a8a}
.ppp-roi-legend-dot--gold{background:#d4af37}
.ppp-roi-table-wrap{overflow-x:auto}
.ppp-roi-table{width:100%;border-collapse:collapse;font-size:.875rem}
.ppp-roi-table th{background:#f8f9ff;padding:.625rem .875rem;text-align:start;font-weight:600;color:#374151;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid #e5e7eb;white-space:nowrap}
.ppp-roi-table td{padding:.625rem .875rem;border-bottom:1px solid #f1f5f9;color:#374151;white-space:nowrap}
.ppp-roi-table tr:last-child td{border-bottom:none}
.ppp-roi-positive{color:#16a34a;font-weight:600}
.ppp-roi-disclaimer{font-size:.75rem;color:#9ca3af;line-height:1.6;padding-top:.5rem}
[dir="rtl"] .ppp-roi-table th,[dir="rtl"] .ppp-roi-table td{text-align:end}
[dir="rtl"] .ppp-roi-reset-btn{text-align:end}

/* ═══════════════════════════════════════════════════════════════
   CITIZENSHIP INVESTMENT HUB
   Mobile-first · RTL-aware · No hardcoded values
   ═══════════════════════════════════════════════════════════════ */
.ppp-cit-container{max-width:1280px;margin:0 auto;padding:0 1rem}
.ppp-cit-section{padding:4rem 0}
.ppp-cit-section--light{background:#f8f9ff}
.ppp-cit-section--dark{background:#1e3a8a}
.ppp-cit-section-header{text-align:center;margin-bottom:2.5rem}
.ppp-cit-section-title{font-size:clamp(1.375rem,2.5vw,1.875rem);font-weight:800;color:#111827;line-height:1.2;margin-bottom:.5rem}
.ppp-cit-section-title--light{color:#fff}
.ppp-cit-section-sub{font-size:1rem;color:#6b7280;line-height:1.6}
.ppp-cit-section-sub--light{color:rgba(255,255,255,.8)}

/* Hero */
.ppp-cit-hero{position:relative;background:linear-gradient(135deg,#0d1f3c 0%,#132749 50%,#1a3360 100%);min-height:480px;display:flex;align-items:center;justify-content:center;padding:5rem 1.5rem;overflow:hidden}
.ppp-cit-hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.ppp-cit-hero-overlay{position:absolute;inset:0;background:rgba(13,31,60,.3)}
.ppp-cit-hero-content{position:relative;z-index:1;max-width:780px;margin:0 auto;text-align:center}
.ppp-cit-hero-title{font-size:clamp(2rem,5vw,3.25rem);font-weight:800;color:#fff;line-height:1.1;margin-bottom:1rem}
.ppp-cit-hero-sub{font-size:1.125rem;color:rgba(255,255,255,.85);line-height:1.65;margin-bottom:2rem;max-width:600px;margin-left:auto;margin-right:auto}
.ppp-cit-hero-stats{display:flex;align-items:center;justify-content:center;gap:.875rem;flex-wrap:wrap;margin-bottom:2rem;font-size:.875rem;color:rgba(255,255,255,.7)}
.ppp-cit-hero-stats strong{display:block;font-size:1.25rem;font-weight:800;color:#d4af37}
.ppp-cit-hero-ctas{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}

/* Buttons */
.ppp-cit-btn-primary{display:inline-flex;align-items:center;gap:.375rem;background:#d4af37;color:#0d1f3c;font-weight:700;font-size:.9375rem;padding:.75rem 1.75rem;border-radius:2rem;text-decoration:none;transition:background .2s,transform .15s;white-space:nowrap}
.ppp-cit-btn-primary:hover{background:#e8c84a;transform:translateY(-1px);color:#0d1f3c}
.ppp-cit-btn-outline{display:inline-flex;align-items:center;gap:.375rem;background:transparent;color:#fff;font-weight:600;font-size:.9375rem;padding:.75rem 1.75rem;border-radius:2rem;border:2px solid rgba(255,255,255,.4);text-decoration:none;transition:border-color .2s,background .2s;white-space:nowrap}
.ppp-cit-btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.1);color:#fff}

/* Eligibility Calculator */
.ppp-cit-calc-wrap{display:grid;grid-template-columns:1fr;gap:2rem;background:#fff;border:1.5px solid #e5e7eb;border-radius:16px;padding:2rem;box-shadow:0 4px 24px rgba(0,0,0,.06)}
@media(min-width:768px){.ppp-cit-calc-wrap{grid-template-columns:1fr 1fr;gap:3rem;padding:2.5rem}}
.ppp-cit-calc-field{margin-bottom:1.25rem}
.ppp-cit-range{width:100%;margin-top:.75rem;accent-color:#1e3a8a}
.ppp-cit-range-labels{display:flex;justify-content:space-between;font-size:.6875rem;color:#9ca3af;margin-top:.25rem}

/* Results */
.ppp-cit-result{border-radius:12px;padding:1.5rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.75rem}
.ppp-cit-result--eligible{background:#f0fdf4;border:1.5px solid #86efac}
.ppp-cit-result--eligible svg{color:#16a34a}
.ppp-cit-result--eligible h3{font-size:1.375rem;font-weight:700;color:#15803d}
.ppp-cit-result--eligible p{font-size:.9375rem;color:#166534}
.ppp-cit-result--not{background:#fffbeb;border:1.5px solid #fcd34d}
.ppp-cit-result--not svg{color:#d97706}
.ppp-cit-result--not h3{font-size:1.375rem;font-weight:700;color:#92400e}
.ppp-cit-result--not p{font-size:.9375rem;color:#78350f}
.ppp-cit-result-details{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;width:100%;text-align:start;background:rgba(255,255,255,.6);border-radius:8px;padding:.875rem}
.ppp-cit-result-details strong{display:block;font-size:.6875rem;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin-bottom:.125rem}
.ppp-cit-result-details span{font-size:.875rem;font-weight:600;color:#111827}
.mt-4{margin-top:1rem}

/* Steps */
.ppp-cit-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
@media(min-width:768px){.ppp-cit-steps{grid-template-columns:repeat(4,1fr)}}
.ppp-cit-step{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:1.5rem;text-align:center;position:relative}
.ppp-cit-step-num{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#d4af37;color:#0d1f3c;width:24px;height:24px;border-radius:50%;font-size:.75rem;font-weight:800;display:flex;align-items:center;justify-content:center}
.ppp-cit-step-icon{color:#d4af37;margin:0 auto .75rem}
.ppp-cit-step-title{font-size:.9375rem;font-weight:700;color:#fff;margin-bottom:.5rem}
.ppp-cit-step-desc{font-size:.8125rem;color:rgba(255,255,255,.75);line-height:1.5}

/* Comparison table */
.ppp-cit-table-wrap{overflow-x:auto}
.ppp-cit-table{width:100%;border-collapse:collapse;font-size:.875rem}
.ppp-cit-table th{padding:.875rem 1rem;text-align:start;font-weight:700;font-size:.8125rem;text-transform:uppercase;letter-spacing:.05em;color:#374151;background:#f8f9ff;border-bottom:2px solid #e5e7eb}
.ppp-cit-table td{padding:.75rem 1rem;border-bottom:1px solid #f1f5f9;color:#374151}
.ppp-cit-table tr:last-child td{border-bottom:none}
.ppp-cit-table--highlight{background:rgba(30,58,138,.04);font-weight:600;color:#1e3a8a}
.ppp-cit-table th.ppp-cit-table--highlight{background:#1e3a8a;color:#d4af37}
.ppp-cit-table-feature{font-weight:600;color:#111827;white-space:nowrap}

/* Benefits */
.ppp-cit-benefits{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media(min-width:640px){.ppp-cit-benefits{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.ppp-cit-benefits{grid-template-columns:repeat(3,1fr)}}
.ppp-cit-benefit{display:flex;gap:1rem;align-items:flex-start;background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;padding:1.25rem;transition:border-color .2s}
.ppp-cit-benefit:hover{border-color:#1e3a8a}
.ppp-cit-benefit-icon{font-size:1.5rem;flex-shrink:0;line-height:1}
.ppp-cit-benefit-title{font-size:.9375rem;font-weight:700;color:#111827;margin-bottom:.375rem}
.ppp-cit-benefit-desc{font-size:.8125rem;color:#6b7280;line-height:1.5}

/* FAQ */
.ppp-cit-faq{max-width:800px;margin:0 auto;display:flex;flex-direction:column;gap:.5rem}
.ppp-cit-faq-item{border:1.5px solid #e5e7eb;border-radius:10px;overflow:hidden}
.ppp-cit-faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:#fff;border:none;cursor:pointer;font-size:.9375rem;font-weight:600;color:#111827;text-align:start;transition:background .2s}
.ppp-cit-faq-q:hover{background:#f8f9ff}
.ppp-cit-faq-q svg{flex-shrink:0;color:#6b7280;transition:transform .2s}
.ppp-cit-faq-a{padding:0 1.25rem 1rem;background:#f8f9ff}
.ppp-cit-faq-a p{font-size:.875rem;color:#4b5563;line-height:1.7}

/* Final CTA */
.ppp-cit-cta-section{background:linear-gradient(135deg,#0d1f3c,#1e3a8a);padding:4rem 0}
.ppp-cit-cta-box{display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.ppp-cit-cta-title{font-size:clamp(1.375rem,3vw,2rem);font-weight:800;color:#fff;margin-bottom:.5rem}
.ppp-cit-cta-sub{font-size:.9375rem;color:rgba(255,255,255,.8);line-height:1.6;max-width:500px}
.ppp-cit-cta-actions{display:flex;flex-direction:column;gap:.75rem;flex-shrink:0}

/* RTL */
[dir="rtl"] .ppp-cit-table th,[dir="rtl"] .ppp-cit-table td{text-align:end}
[dir="rtl"] .ppp-cit-benefit{flex-direction:row}
[dir="rtl"] .ppp-cit-cta-box{flex-direction:row-reverse}
[dir="rtl"] .ppp-cit-hero-ctas{flex-direction:row-reverse}

@media(max-width:640px){
    .ppp-cit-cta-box{flex-direction:column;text-align:center}
    .ppp-cit-cta-actions{width:100%}
    .ppp-cit-btn-primary,.ppp-cit-btn-outline{justify-content:center}
}
