/* ============================================
   DUBAI REAL ESTATE - MODERN PREMIUM THEME
   املاک دبی - تم مدرن و پرمیوم
   Inspired by Apple, Linear, Stripe, and premium real estate platforms
   ============================================ */

/* Import Rules - Must be at the top */
@import url('./theme-styles.css');
@import url('./modern-theme.css');
@import url('./modern-components.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ============================================
   NEW DUAL THEME SYSTEM
   سیستم تم دوگانه جدید
   ============================================ */

:root {
  --bg: #FFF6EB;
  --card: #FFFFFF;
  --text: #3F2E24;
  --text-light: #7A6554;
  --accent: #FF8A2F;
  --border: #E7D8C8;
  --icon: #5A463A;
}

.dark {
  --bg: #211B22;
  --card: #2C242D;
  --text: #FFFFFF;
  --text-light: #C9C7D0;
  --accent: #FF8A2F;
  --border: #3B343E;
  --icon: #E4E2E8;
}

/* ============================================
   THEME APPLICATION
   اعمال رنگ‌های تم
   ============================================ */

/* Body Styles */
body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cards */
.property-card,
.showcase-card,
.card {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Buttons */
.btn,
.button,
.load-more,
.show-more-btn {
  background-color: var(--accent);
  color: #FFFFFF;
  border: none;
}

.btn:hover,
.button:hover,
.load-more:hover,
.show-more-btn:hover {
  background-color: var(--accent);
  opacity: 0.9;
}

/* Secondary text */
.text-secondary,
.secondary {
  color: var(--text-light);
}

/* Accent elements */
.accent, 
.highlight, 
.price, 
.price-amount {
  color: var(--accent);
}

/* ============================================
   HEADER & NAVIGATION THEMES
   ============================================ */

.site-header,
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dark .site-header,
.dark .navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-links a {
  color: var(--text);
}

.dropdown-menu {
  background-color: var(--card);
  border: 1px solid var(--border);
}

.dropdown-menu a {
  color: var(--text);
}

/* ============================================
   SEARCH & HERO SECTIONS
   ============================================ */

.modern-hero,
.hero-content {
  background-color: var(--bg);
}

.advanced-search-bar,
.hero-search-container,
.hero-search-bar {
  background-color: var(--card);
  border: 1px solid var(--border);
}

/* Form Inputs */
input,
select,
textarea {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */

.properties-section,
.property-grid,
.section {
  background-color: var(--bg);
  color: var(--text);
}

.modal,
.featured-modal {
  background-color: var(--card);
  border: 1px solid var(--border);
}

/* Dark Theme Modal */
[data-theme="dark"] .modal,
[data-theme="dark"] .featured-modal {
  background-color: #2A252F !important;
  border: 1px solid #3C3444 !important;
}

/* Light Theme Headings */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #2B2B2B !important;
}

/* Dark Theme Headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #F5F5F5 !important;
}

/* Exception for site title - always white */
h1[data-i18n="site_title"],
.site-logo-title {
  color: white !important;
}

/* Paragraphs and Text */
p, span, div, label {
  color: inherit;
}

/* Light Theme Search Tabs */
[data-theme="light"] .search-tabs,
[data-theme="light"] .search-tab {
  background-color: #FFFFFF !important;
  color: #2B2B2B !important;
  border: 1px solid #E5E5E5 !important;
}

/* Dark Theme Search Tabs */
[data-theme="dark"] .search-tabs,
[data-theme="dark"] .search-tab {
  background-color: #2A252F !important;
  color: #F5F5F5 !important;
  border: 1px solid #3C3444 !important;
}

.search-tab.active {
  background-color: #8A6A8F !important;
  color: #FFFFFF !important;
}

/* ============================================
   GLOBAL THEME TOGGLE OVERRIDE
   تنظیمات سراسری دکمه تم
   ============================================ */
.theme-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 45px !important;
  height: 45px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

.theme-toggle:hover {
  background: var(--color-bg-tertiary, rgba(0, 0, 0, 0.05)) !important;
  transform: scale(1.2) rotate(20deg) !important;
  border: none !important;
  box-shadow: none !important;
}

.theme-toggle:active {
  transform: scale(1.1) rotate(10deg) !important;
}

.theme-toggle .theme-text {
  display: none !important;
}

.theme-toggle .theme-icon {
  font-size: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
}

.theme-toggle::before,
.theme-toggle::after {
  display: none !important;
}

/* ============================================
   ENHANCED COMPONENTS - کامپوننت‌های پیشرفته
   ============================================ */

/* Enhanced Navigation */

.nav-brand {
  order: 1;
  flex-shrink: 0;
  position: absolute;
  left: 1rem;
}

.nav-brand .site-title-mobile {
  display: none;
}

.nav-brand .site-title-mobile .logo-link {
  text-decoration: none;
}

.nav-brand .site-title-mobile .site-logo-title {
  color: white !important;
  font-weight: 900 !important;
  font-size: calc(1.2rem + 5px) !important;
  margin: 0;
}

.nav-brand .theme-toggle-mobile {
  display: none;
  margin-left: 1rem;
}

.nav-brand .mobile-theme-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-brand .logo a:hover {
  color: var(--primary);
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  order: 2;
  justify-content: center;
  flex: 1;
  align-items: center;
  padding: 0;
  gap: 4rem !important;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 35px;
}

/* Site title in nav-links */
.nav-links .site-title-item {
  margin-right: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Push language selector, theme toggle, and user account to the left in LTR */
[dir="ltr"] .nav-links .language-selector-nav-item {
  margin-left: auto !important;
}

[dir="ltr"] .nav-links .theme-toggle-nav-item,
[dir="ltr"] .nav-links .user-account-nav-item {
  margin-left: 0 !important;
}

/* RTL Support - Position buttons on the right side (left in code, right visually) */
[dir="rtl"] .nav-links {
  gap: 2rem !important;
}

[dir="rtl"] .nav-links .language-selector-nav-item {
  margin-left: 0 !important;
  margin-right: auto !important;
}

[dir="rtl"] .nav-links .theme-toggle-nav-item,
[dir="rtl"] .nav-links .user-account-nav-item {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

[dir="rtl"] .nav-links .site-title-item {
  margin-right: 0 !important;
  margin-left: 2rem !important;
}

/* Consistent spacing between language selector, theme toggle, and user account */
.nav-links .language-selector-nav-item,
.nav-links .theme-toggle-nav-item,
.nav-links .user-account-nav-item {
  gap: 2rem;
}

/* RTL specific spacing between the three buttons */
[dir="rtl"] .nav-links li.language-selector-nav-item ~ li.theme-toggle-nav-item {
  margin-right: 2rem !important;
}

[dir="rtl"] .nav-links li.theme-toggle-nav-item ~ li.user-account-nav-item {
  margin-right: 2rem !important;
}

/* LTR specific spacing between the three buttons */
[dir="ltr"] .nav-links li.language-selector-nav-item ~ li.theme-toggle-nav-item {
  margin-left: 2rem !important;
}

[dir="ltr"] .nav-links li.theme-toggle-nav-item ~ li.user-account-nav-item {
  margin-left: 2rem !important;
}

.nav-links .site-title-item .logo-link {
  text-decoration: none;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-links .site-title-item .site-logo-title {
  color: white !important;
  font-weight: 900 !important;
  font-size: calc(1.2rem + 5px) !important;
  margin: 0;
  line-height: 1;
}

/* Language toggle in nav-links */
.nav-links .language-toggle-nav-item {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.nav-links .nav-language-btn {
  background: rgba(120, 70, 40, 0.4);
  border: 2px solid rgba(255, 140, 66, 0.4);
  color: #ff8c42;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 60px;
  justify-content: center;
  height: 35px;
  line-height: 1;
  box-shadow: none;
}

.nav-links .nav-language-btn:hover {
  background: var(--accent) !important;
  border-color: #ff6b18;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 24, 0.4);
}

.nav-links .nav-language-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 120px;
  display: none;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links .nav-language-menu.show {
  display: block;
}

.nav-links .nav-language-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.nav-links .nav-language-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Theme toggle in nav-links */
.nav-links .theme-toggle-nav-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links .nav-theme-btn {
  background: transparent;
  border: none !important;
  color: white;
  padding: 0 !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 45px !important;
  height: 35px !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  outline: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.nav-links .nav-theme-btn .theme-icon {
  /* Light mode: Orange moon 🌙 */
  filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(1000%) hue-rotate(0deg);
  font-size: 1.5rem;
  display: inline-block;
}

.dark .nav-links .nav-theme-btn .theme-icon {
  /* Dark mode: White sun ☀️ */
  filter: brightness(0) invert(1);
}

.nav-links .nav-theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.nav-links .nav-theme-btn:hover .theme-icon {
  /* Light mode hover: orange */
  filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(1000%) hue-rotate(0deg);
}

.dark .nav-links .nav-theme-btn:hover .theme-icon {
  /* Dark mode hover: white */
  filter: brightness(0) invert(1);
}

.nav-links .nav-theme-btn:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.nav-links .nav-theme-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  transform: none;
  filter: brightness(0) invert(1);
}

.nav-links .nav-theme-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* User account button in nav-links */

.nav-links .nav-account-btn {
  background: rgba(120, 70, 40, 0.4);
  border: none !important;
  color: #ff8c42;
  padding: 0 !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 35px !important;
  height: 35px !important;
  line-height: 1 !important;
  gap: 0.3rem;
  outline: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.nav-links .nav-account-btn:hover {
  background: rgba(120, 70, 40, 0.6);
  border: none !important;
  color: #ff8c42;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.nav-links .nav-account-btn:focus,
.nav-links .nav-account-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.nav-links .nav-account-btn .fas {
  font-size: 0.8rem;
  margin-left: 0.25rem;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.nav-links .nav-account-btn .fa-user {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

/* Language button in nav-links */



.nav-links .nav-language-btn:focus,
.nav-links .nav-language-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.nav-links .nav-language-btn .fas {
  font-size: 0.8rem;
  margin-left: 0.25rem;
}


.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  color: var(--primary);
  background-color: rgba(220, 38, 38, 0.05);
  transform: translateY(-1px);
}

/* Enhanced Dropdown */
.dropdown {
  position: relative;
}


.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-menu li {
  margin: 0;
}


.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateX(-2px);
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: var(--spacing-2) 0;
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(249, 250, 251, 0.8) 100%),
    url('../assets/images/backgrounds/dubai-skyline-hero.svg') center/cover;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: 
    linear-gradient(135deg, 
      rgba(17, 24, 39, 0.9) 0%, 
      rgba(31, 41, 55, 0.8) 100%),
    url('../assets/images/backgrounds/dubai-skyline-hero.svg') center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}


.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--spacing-6);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
}

.hero-content p {
  font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-10);
  line-height: var(--leading-relaxed);
  font-weight: 400;
}

/* Enhanced Search Bar */
.search-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-10);
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.1),
    0 1px 0 0 rgba(255, 255, 255, 0.5) inset;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

[data-theme="dark"] .search-bar {
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.3);
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.5),
    0 1px 0 0 rgba(55, 65, 81, 0.3) inset;
}

.search-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(220, 38, 38, 0.8) 25%,
    rgba(16, 185, 129, 0.8) 75%,
    transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Enhanced Property Cards */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-8);
  padding: var(--spacing-8) 0;
}

.property-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.property-social:hover {
    background: rgba(37, 99, 235, 0.2);
}

.modal-property-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 1.25rem;
}

@media (min-width: 992px) {
    .modal-property-details {
        flex-direction: row;
        align-items: flex-start;
    }

    .modal-property-image,
    .modal-property-info {
        flex: 1;
    }
}

.property-key-facts {
    margin-bottom: 1.5rem;
}

.key-facts-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.key-fact-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(241, 245, 249, 0.9);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(203, 213, 225, 0.6);
}

.key-fact-card i {
    color: #1d4ed8;
    font-size: 1.1rem;
}

.key-fact-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.key-fact-card strong {
    font-size: 0.95rem;
    color: #1f2937;
}

.property-chip-section {
    margin-bottom: 1.5rem;
}

.property-chip-section h3 {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: #1f2937;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.8);
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
}

.chip i {
    font-size: 0.75rem;
    color: #2563eb;
}

.property-location-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(226, 232, 240, 0.4);
    border: 1px solid rgba(203, 213, 225, 0.6);
}

.property-location-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-location-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    font-size: 0.9rem;
}

.property-timeline {
    margin-bottom: 1.5rem;
}

.property-timeline ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.85rem;
}

.property-timeline i {
    color: #2563eb;
    margin-left: 0.4rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    margin-top: 0.75rem;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

.empty-state {
    margin: 0.4rem 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
}
.property-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 140, 0, 0.05);
        opacity: 0;
        transition: opacity var(--duration-300) var(--ease-out);
}

.property-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow:
                0 32px 64px -12px rgba(255, 140, 0, 0.2),
                0 0 0 1px rgba(255, 140, 0, 0.3);
        border-color: rgba(255, 140, 0, 0.5);
}

.property-card:hover::before {
        opacity: 1;
}

.property-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--muted);
}

.property-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 140, 0, 0.1);
  transition: opacity var(--duration-300) var(--ease-out);
}

.property-card:hover .property-image::after {
  opacity: 0;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-700) var(--ease-apple);
}

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

/* Enhanced Form Controls */
.search-bar select,
.search-bar input {
  height: 52px;
  padding: 0 var(--spacing-4);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--foreground);
  transition: all var(--duration-200) var(--ease-out);
  min-width: 160px;
}

.search-bar select:focus,
.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 
    0 0 0 3px rgba(220, 38, 38, 0.1),
    0 4px 12px -2px rgba(220, 38, 38, 0.15);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

[data-theme="dark"] .search-bar select,
[data-theme="dark"] .search-bar input {
  background: rgba(55, 65, 81, 0.8);
  border-color: rgba(75, 85, 99, 0.8);
  color: var(--foreground);
}

[data-theme="dark"] .search-bar select:focus,
[data-theme="dark"] .search-bar input:focus {
  background: rgba(55, 65, 81, 1);
  box-shadow: 
    0 0 0 3px rgba(239, 68, 68, 0.2),
    0 4px 12px -2px rgba(239, 68, 68, 0.3);
}

/* Enhanced Buttons */
.search-bar button {
  height: 52px;
  padding: 0 var(--spacing-8);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-200) var(--ease-apple);
  box-shadow: 
    0 4px 12px -2px rgba(220, 38, 38, 0.3),
    0 1px 0 0 rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.search-bar button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-200) var(--ease-out);
}

.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px -4px rgba(220, 38, 38, 0.4),
    0 1px 0 0 rgba(255, 255, 255, 0.2) inset;
}

.search-bar button:hover::before {
  opacity: 1;
}

.search-bar button:active {
  transform: translateY(-1px);
}

/* Enhanced Sections */
.properties {
  padding: var(--spacing-24) 0;
  background: 
    linear-gradient(180deg, 
      rgba(249, 250, 251, 0.5) 0%, 
      rgba(255, 255, 255, 0.8) 100%);
}

[data-theme="dark"] .properties {
  background: 
    linear-gradient(180deg, 
      rgba(31, 41, 55, 0.5) 0%, 
      rgba(17, 24, 39, 0.8) 100%);
}

.properties h2 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-bottom: var(--spacing-16);
  letter-spacing: var(--tracking-tight);
}

/* Enhanced About Section */
.about {
  padding: var(--spacing-24) 0;
  background: var(--background);
}

.about h2 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-bottom: var(--spacing-16);
  letter-spacing: var(--tracking-tight);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-16);
  align-items: center;
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--spacing-6);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
}

.stat {
  text-align: center;
  padding: var(--spacing-6);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  transition: all var(--duration-300) var(--ease-out);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220, 38, 38, 0.2);
}

.stat h3 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--spacing-2);
}

.stat p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Enhanced Contact Section */
.contact {
  padding: var(--spacing-24) 0;
  background: 
    linear-gradient(135deg, 
      rgba(249, 250, 251, 0.8) 0%, 
      rgba(255, 255, 255, 1) 100%);
}

[data-theme="dark"] .contact {
  background: 
    linear-gradient(135deg, 
      rgba(31, 41, 55, 0.8) 0%, 
      rgba(17, 24, 39, 1) 100%);
}

.contact h2 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-bottom: var(--spacing-16);
  letter-spacing: var(--tracking-tight);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-16);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  padding: var(--spacing-6);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  transition: all var(--duration-300) var(--ease-out);
}

.contact-item:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(220, 38, 38, 0.2);
}

.contact-item i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  border-radius: var(--radius-xl);
  font-size: var(--text-xl);
}

.contact-item h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: var(--spacing-1);
}

.contact-item p {
  font-size: var(--text-base);
  color: var(--muted-foreground);
  margin: 0;
}

/* Enhanced Modal */
#propertyModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-6);
  z-index: 1000;
  animation: fadeIn var(--duration-300) var(--ease-out);
}

#propertyModal.show {
  display: flex;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  animation: scaleIn var(--duration-300) var(--ease-apple);
}

.close {
  position: absolute;
  top: var(--spacing-4);
  left: var(--spacing-4);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--text-lg);
  color: var(--muted-foreground);
  transition: all var(--duration-200) var(--ease-out);
  z-index: 2;
}

.close:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--foreground);
  transform: scale(1.05);
}

[data-theme="dark"] .close {
  background: rgba(55, 65, 81, 0.9);
  border-color: rgba(75, 85, 99, 0.3);
  color: var(--muted-foreground);
}

[data-theme="dark"] .close:hover {
  background: rgba(55, 65, 81, 1);
  color: var(--foreground);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
  }
}

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }
  
  .hero-content {
    padding: 0 var(--spacing-4);
  }
  
  .search-bar {
    padding: var(--spacing-6);
    margin: 0 var(--spacing-4);
  }
  
  .search-row {
    flex-direction: column;
    gap: var(--spacing-4);
  }
  
  .search-bar select,
  .search-bar input,
  .search-bar button {
    width: 100%;
    min-width: auto;
  }
  
  .nav-links {
    display: none;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .property-card {
    min-height: 420px;
  }
  
  .property-image {
    height: 220px;
  }
  
  .hero-content h1 {
    font-size: var(--text-3xl);
  }
  
  .hero-content p {
    font-size: var(--text-lg);
  }
  
  .properties h2,
  .about h2,
  .contact h2 {
    font-size: var(--text-3xl);
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   دسترسی‌پذیری و عملکرد
   ============================================ */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --muted-foreground: #000000;
  }
  
  [data-theme="dark"] {
    --border: #ffffff;
    --muted-foreground: #ffffff;
  }
}

/* Focus improvements for keyboard users */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   DUBAI REAL ESTATE - MODERN THEME
   املاک دبی - تم مدرن
   ============================================ */

/* ============================================
   PREMIUM OVERRIDES - بازنویسی پرمیوم
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Dark mode background */
[data-theme="dark"] body,
.dark-theme body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #1f2937 100%);
    background-attachment: fixed;
}

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

@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}


/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Light Mode Header Styles */
[data-theme="light"] header,
.light-theme header,
body:not([data-theme="dark"]):not(.dark-theme) header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-links a,
.light-theme .nav-links a,
body:not([data-theme="dark"]):not(.dark-theme) .nav-links a {
    color: #1e293b;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .nav-links a:hover,
.light-theme .nav-links a:hover,
body:not([data-theme="dark"]):not(.dark-theme) .nav-links a:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

[data-theme="light"] .logo h1,
.light-theme .logo h1,
body:not([data-theme="dark"]):not(.dark-theme) .logo h1 {
    color: #1e293b !important;
}

[data-theme="light"] .logo-link,
.light-theme .logo-link,
body:not([data-theme="dark"]):not(.dark-theme) .logo-link {
    color: #1e293b;
}

[data-theme="light"] .btn-ghost,
.light-theme .btn-ghost,
body:not([data-theme="dark"]):not(.dark-theme) .btn-ghost {
    color: #1e293b;
    border-color: rgba(30, 41, 59, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-ghost:hover,
.light-theme .btn-ghost:hover,
body:not([data-theme="dark"]):not(.dark-theme) .btn-ghost:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

[data-theme="light"] .mobile-menu-toggle,
.light-theme .mobile-menu-toggle,
body:not([data-theme="dark"]):not(.dark-theme) .mobile-menu-toggle {
    color: #1e293b;
}

[data-theme="light"] .mobile-menu-toggle:hover,
.light-theme .mobile-menu-toggle:hover,
body:not([data-theme="dark"]):not(.dark-theme) .mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}


.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 15px;
    padding: 1rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.logo h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

/* Site logo title - white color and larger size */
.site-logo-title,
h1[data-i18n="site_title"] {
    color: white !important;
    font-weight: 900 !important;
    font-size: calc(1.2rem + 5px) !important;
}

/* Clickable logo styling */
.logo-link {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: block;
}

.logo-link:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.logo-link:hover h1 {
    color: rgba(255, 255, 255, 0.9);
}

.logo-link:active h1 {
    color: var(--primary-light, rgba(102, 126, 234, 0.7));
    transform: scale(0.98);
}

.logo-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}




/* Dropdown Navigation */

.dropdown-toggle {
    cursor: pointer;
}

/* Nav-links dropdown alignment */
.nav-links .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}

.nav-links .dropdown-toggle i {
    font-size: 0.8rem !important;
    transition: transform 0.3s ease !important;
    margin-top: 0 !important;
}

.nav-links .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg) !important;
}


.dropdown.active .dropdown-menu,





/* Light Mode Dropdown Styles */
[data-theme="light"] .dropdown-menu,
.light-theme .dropdown-menu,
body:not([data-theme="dark"]):not(.dark-theme) .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .dropdown-menu a,
.light-theme .dropdown-menu a,
body:not([data-theme="dark"]):not(.dark-theme) .dropdown-menu a {
    color: #1e293b;
}

[data-theme="light"] .dropdown-menu a:hover,
.light-theme .dropdown-menu a:hover,
body:not([data-theme="dark"]):not(.dark-theme) .dropdown-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

[data-theme="light"] .dropdown-menu hr,
.light-theme .dropdown-menu hr,
body:not([data-theme="dark"]):not(.dark-theme) .dropdown-menu hr {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Hero Section */




.search-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.search-bar select,

.search-bar select:focus,

.search-bar select:disabled {
    background-color: var(--border-light);
    opacity: 0.7;
    color: var(--muted);
    cursor: not-allowed;
}


.search-bar button:first-of-type {
    background: var(--button-bg);
    color: var(--button-text);
}

.search-bar button:first-of-type:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.search-bar .clear-btn {
    background: var(--muted);
    color: var(--button-text);
}

.search-bar .clear-btn:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

/* Contact Form Enhancements */
.contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Vazirmatn', Arial, sans-serif;
    background: var(--input-bg);
    color: var(--text);
    transition: all 0.3s ease;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: var(--bg);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
    background: rgba(231, 76, 60, 0.05);
}

.contact-form .error-text {
    display: none;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.contact-form button[type="submit"] {
    position: relative;
    min-height: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button[type="submit"] .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-form button[type="submit"] .loading.hidden {
    display: none;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Notification */
.contact-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 10000;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.contact-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.contact-notification.success {
    background: rgba(39, 174, 96, 0.95);
    color: white;
    border-color: rgba(39, 174, 96, 0.3);
}

.contact-notification.error {
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border-color: rgba(231, 76, 60, 0.3);
}

.contact-notification.info {
    background: rgba(52, 152, 219, 0.95);
    color: white;
    border-color: rgba(52, 152, 219, 0.3);
}

/* Mobile responsive */

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

/* Advanced Search Styles */
.text-search-row {
    margin-bottom: 1.5rem;
}

.search-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-group label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
    white-space: nowrap;
}

.text-search {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    color: var(--error);
    background: rgba(231, 76, 60, 0.1);
}

/* Sort and View Controls */
.sort-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.search-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.8rem;
    border: none;
    background: var(--input-bg);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-counter {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.save-search-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-search-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Advanced Filters Toggle */
.advanced-toggle-row {
    text-align: center;
    margin-bottom: 1rem;
}

.toggle-advanced-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.toggle-advanced-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotate {
    transform: rotate(180deg);
}

/* Advanced Filters Panel */
.advanced-filters {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

.advanced-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: var(--primary-bg);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Range Sliders */
.price-range-group,
.area-range-group {
    min-width: 300px;
}

.range-slider {
    position: relative;
    margin-top: 1rem;
}

.price-slider,
.area-slider {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    margin-bottom: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.price-slider::-webkit-slider-thumb,
.area-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.price-slider::-webkit-slider-thumb:hover,
.area-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.price-slider::-moz-range-thumb,
.area-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-display {
    text-align: center;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Filter Actions */
.filter-actions {
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.filter-actions .btn {
    margin: 0 0.5rem;
}

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

.btn-outline:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* List View Styles */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-view .property-card {
    display: flex;
    flex-direction: row;
    height: auto;
    max-height: none;
}

.list-view .property-image {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
}

.list-view .property-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-view .property-features {
    margin-top: auto;
}

/* Mobile Responsive */

/* Properties Section */


/* All Properties Cards Section */
#allPropertiesCards {
    background: #ff8c00 !important;
    padding: 2rem 0;
    border-radius: 12px;
    margin: 2rem 0;
}

#allPropertiesCards .properties-cards-section {
    background: transparent;
}

#allPropertiesCards .properties-cards-container {
    background: transparent;
}

#allPropertiesCards .cards-header h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#allPropertiesCards .cards-header h2 i {
    color: white !important;
}

#allPropertiesCards .cards-header h2 span {
    color: white !important;
}

#allPropertiesCards .cards-search {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px;
    padding: 0.5rem;
}

#allPropertiesCards .cards-info {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Properties Grid in Orange Section */
#allPropertiesCards .properties-grid {
    background: transparent;
    padding: 1rem 0;
}

#allPropertiesCards .property-card {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid white !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

#allPropertiesCards .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25) !important;
    background: white !important;
    background-image: none !important;
}

/* Remove gradients from card images */
#allPropertiesCards .property-card .card-image,
#allPropertiesCards .property-card .image-placeholder {
    background: #f8f9fa !important;
    background-image: none !important;
}


/* Pagination styling in orange section */
#allPropertiesCards .cards-pagination {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

#allPropertiesCards .pagination-btn {
    background: white !important;
    color: #8b5cf6 !important;
    border: 2px solid #8b5cf6;
    font-weight: 600;
}

#allPropertiesCards .pagination-btn:hover {
    background: #8b5cf6 !important;
    color: white !important;
    border-color: #8b5cf6;
}

#allPropertiesCards .pagination-btn.active {
    background: #7c3aed !important;
    color: white !important;
    border-color: #7c3aed;
}

/* Complete gradient removal for allPropertiesCards */
#allPropertiesCards .property-card,
#allPropertiesCards .property-card *:not(.card-badge):not(.image-placeholder) {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

/* Ensure no gradients from any source */

/* Force remove any orange gradients */
#allPropertiesCards *[style*="gradient"],
#allPropertiesCards *[class*="gradient"],
#allPropertiesCards .btn-gradient,
#allPropertiesCards .hero-search-icon-btn {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

/* Override global-gradient.css and any other gradient sources */
#allPropertiesCards .card,

/* Override all possible gradient classes and selectors */
#allPropertiesCards .property-card,
#allPropertiesCards .card,
#allPropertiesCards .section,
#allPropertiesCards .content-box,
#allPropertiesCards [data-theme="dark"] .card,
#allPropertiesCards [data-theme="dark"] .section,
#allPropertiesCards [data-theme="dark"] .content-box,
#allPropertiesCards .dark-theme .card,
#allPropertiesCards .dark-theme .section,
#allPropertiesCards .dark-theme .content-box,
#allPropertiesCards [data-theme="light"] .card,
#allPropertiesCards [data-theme="light"] .section,
#allPropertiesCards [data-theme="light"] .content-box {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

/* Force all children elements to have solid backgrounds */
#allPropertiesCards .property-card > *,
#allPropertiesCards .property-card * {
    background-image: none !important;
}

/* Except for specific elements that need gray background */
#allPropertiesCards .property-card .card-image,

/* Quick Filter Tabs */
.quick-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.95rem;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--button-text);
    transform: translateY(-2px);
}

/* Results Info */

/* شبکه املاک */

/* جدول نامرئی 3x3 املاک */
.properties-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    min-height: 600px; /* حداقل ارتفاع برای اسکرول بهتر */
    padding: 20px;
    box-sizing: border-box;
}

/* کارت ملک */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}



.property-image-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.property-card:hover .property-image-media {
    transform: scale(1.04);
}

.property-content {
    padding: 16px;
}

.property-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-align: center;
}

.property-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.property-price {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.property-price-main {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    margin: 8px 0;
}

.feature-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.property-features-row {
    flex-wrap: wrap;
    justify-content: center;
}

.property-features-list {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* املاک تبلیغاتی نردبانی */
.sponsored-property {
    position: relative;
    overflow: visible !important;
}

.sponsored-property::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B6B, #4ECDC4, #45B7D1);
    background-size: 200% 200%;
    border-radius: 17px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sponsored-property:hover {
    transform: translateY(-8px) scale(1.02);
    transition: all 0.4s ease;
}

/* Sponsored Badges */
.sponsored-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.sponsored-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FFE55C;
}

.sponsored-badge.vip {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    border: 2px solid #FF8A80;
}

.sponsored-badge.featured {
    background: linear-gradient(135deg, #4ECDC4, #26D0CE);
    border: 2px solid #64DFDF;
}

.sponsored-badge i {
    font-size: 0.9rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.priority-indicator {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

/* تبلیغات قرمز */
.ad-card {
    background: linear-gradient(to right, #ef4444, #dc2626);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.ad-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 10px;
}

.ad-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 15px;
    padding: 0 15px;
}

.ad-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ad-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.building-icon {
    font-size: 1.8rem;
}

/* کارت خالی */
.empty-card {
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
}

/* دکمه بارگذاری بیشتر */
.load-more {
    text-align: center;
    margin: 50px 0 60px 0;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.load-more.show {
    opacity: 1;
    transform: translateY(0);
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary), #e74c3c);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.25);
    min-width: 280px;
    justify-content: center;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn i:first-child {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.load-more-btn i:last-child {
    font-size: 1rem;
    transition: transform 0.3s ease;
    animation: bounce 2s infinite;
}

.load-more-btn:hover i:first-child {
    transform: scale(1.1);
}

.load-more-btn:hover i:last-child {
    transform: translateY(2px);
    animation-duration: 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Responsive */

/* ریسپانسیو */

@media (max-width: 1024px) and (min-width: 769px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.property-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%23ecf0f1"/><rect x="50" y="50" width="300" height="200" fill="%2334495e"/><rect x="70" y="70" width="80" height="80" fill="%233498db"/><rect x="170" y="70" width="80" height="80" fill="%233498db"/><rect x="270" y="70" width="60" height="80" fill="%233498db"/><rect x="70" y="170" width="80" height="60" fill="%233498db"/><rect x="170" y="170" width="80" height="60" fill="%233498db"/><rect x="270" y="170" width="60" height="60" fill="%233498db"/></svg>') center/cover;
}


.property-badges {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 2;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.badge-category {
    background: rgba(52, 73, 94, 0.9);
}

.badge-transaction {
    background: rgba(39, 174, 96, 0.9);
}




.property-meta {
    margin-bottom: 0.6rem;
}

.property-subcategory {
    background: #f8f9fa;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    border: 1px solid #e9ecef;
}

.property-features {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    color: #34495e;
    flex-wrap: wrap;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    background: rgba(52, 73, 94, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
}

.property-description {
    color: #7f8c8d;
    line-height: 1.4;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */








/* Contact Section */








.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.contact-form input,

.contact-form input:focus,

.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: #e74c3c;
}

.contact-form input:valid,
.contact-form textarea:valid {
    border-color: #27ae60;
}

.error-text {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-text.show {
    display: block;
}

.contact-form button {
    position: relative;
    overflow: hidden;
}

.contact-form button .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form button .loading.hidden {
    display: none;
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button:disabled .btn-text {
    opacity: 0;
}


.contact-form button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.profiles-list-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.08);
    border: 1px solid rgba(29, 78, 216, 0.25);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profiles-list-link:hover,
.profiles-list-link:focus-visible {
    background: rgba(29, 78, 216, 0.15);
    color: #1e3a8a;
    transform: translateY(-2px);
}

.profiles-list-link i {
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}




/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 3;
    position: absolute;
    right: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    background: transparent;
}

.btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 180px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    backdrop-filter: blur(20px);
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Light Mode Language Menu Styles */
[data-theme="light"] .language-menu,
.light-theme .language-menu,
body:not([data-theme="dark"]):not(.dark-theme) .language-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .language-menu a,
.light-theme .language-menu a,
body:not([data-theme="dark"]):not(.dark-theme) .language-menu a {
    color: #1e293b;
}

[data-theme="light"] .language-menu a:hover,
.light-theme .language-menu a:hover,
body:not([data-theme="dark"]):not(.dark-theme) .language-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Theme Toggle */
#themeToggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#themeIcon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

[data-theme="dark"] #themeIcon {
    transform: rotate(180deg);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    order: 4;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-links {
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin-top: 0.5rem;
    border-radius: 8px;
}

/* Error and Loading States */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.warning-message {
    background: #f39c12;
    color: #2c3e50;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
}

.success-message {
    background: #27ae60;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #2d3436;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 1.1rem;
    min-height: 180px;
}

.property-contact {
    margin-top: 1.5rem;
}

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

.property-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: #34495e;
}

.property-contact a {
    color: #2980b9;
    text-decoration: none;
}

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



/* Accessibility Improvements */

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #e74c3c;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Add Property Page */
.add-property {
    padding: 4rem 0;
    background: #f8f9fa;
}

.property-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Vazirmatn', Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}


.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Agencies Page */
.agencies {
    padding: 4rem 0;
    background: white;
}

.agencies h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.agencies > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.agencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.agency-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.agency-card:hover {
    transform: translateY(-5px);
}

.agency-logo {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.agency-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.agency-card p {
    color: #666;
    margin-bottom: 1rem;
}

.agency-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.become-partner {
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.become-partner h2 {
    margin-bottom: 1rem;
    color: #333;
}

.become-partner p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Responsive Design */
