/* =====================================================
   أبومازن للتسويق العقاري - Main Stylesheet
   ===================================================== */

/* =====================================================
   Design System Variables - نظام التصميم المتقدم
   ===================================================== */
:root {
  /* Primary Colors - ألوان العلامة التجارية */
  --primary:          #0f4c81;
  --primary-50:       #e8f2f9;
  --primary-100:      #c1dff0;
  --primary-200:      #97cbe5;
  --primary-300:      #6db6da;
  --primary-400:      #4ea6d1;
  --primary-500:      #2e96c8;
  --primary-600:      #2483b4;
  --primary-700:      #1a6d9d;
  --primary-800:      #125886;
  --primary-900:      #0a3759;
  --primary-light:    #1a6ea8;
  --primary-dark:     #082d47;
  
  /* Accent Colors - ألوان التمييز */
  --accent:           #d4991f;
  --accent-50:        #fef8ed;
  --accent-100:       #fcedc7;
  --accent-200:       #fae19f;
  --accent-300:       #f8d477;
  --accent-400:       #f6c858;
  --accent-500:       #f4bc39;
  --accent-600:       #ebb027;
  --accent-700:       #d4991f;
  --accent-800:       #b47d15;
  --accent-900:       #8a5f0f;
  --accent-light:     #f5c94d;
  --accent-dark:      #9e7416;
  
  /* Success Colors - للإيجار */
  --success:          #15803d;
  --success-50:       #f0fdf4;
  --success-100:      #dcfce7;
  --success-200:      #bbf7d0;
  --success-300:      #86efac;
  --success-400:      #4ade80;
  --success-500:      #22c55e;
  --success-600:      #16a34a;
  --success-700:      #15803d;
  --success-800:      #166534;
  --success-900:      #14532d;
  
  /* Neutral Colors - الألوان المحايدة */
  --white:            #ffffff;
  --off-white:        #f9fafb;
  --gray-50:          #f8fafc;
  --gray-100:         #f1f5f9;
  --gray-200:         #e2e8f0;
  --gray-300:         #cbd5e1;
  --gray-400:         #94a3b8;
  --gray-500:         #64748b;
  --gray-600:         #475569;
  --gray-700:         #334155;
  --gray-800:         #1e293b;
  --gray-900:         #0f172a;
  --light:            #f1f5f9;
  --border:           #e2e8f0;
  --text:             #0f172a;
  --text-muted:       #64748b;
  --text-light:       #94a3b8;
  
  /* Semantic Colors */
  --danger:           #dc2626;
  --warning:          #d97706;
  --info:             #0284c7;
  
  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #082d47 0%, #0f4c81 50%, #1a6ea8 100%);
  --gradient-accent:  linear-gradient(135deg, #9e7416 0%, #d4991f 50%, #f5c94d 100%);
  --gradient-success: linear-gradient(135deg, #14532d 0%, #15803d 50%, #16a34a 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 100%);
  
  /* Shadows - Advanced */
  --shadow-xs:        0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-sm:        0 2px 8px 0 rgba(0,0,0,.08);
  --shadow-md:        0 4px 16px 0 rgba(0,0,0,.1);
  --shadow-lg:        0 8px 32px 0 rgba(0,0,0,.12);
  --shadow-xl:        0 16px 48px 0 rgba(0,0,0,.15);
  --shadow-2xl:       0 24px 64px 0 rgba(0,0,0,.2);
  --shadow-inner:     inset 0 2px 4px 0 rgba(0,0,0,.06);
  --shadow-glow:      0 0 20px rgba(15,76,129,.25);
  --shadow-glow-accent: 0 0 25px rgba(212,153,31,.35);
  
  /* Border Radius */
  --radius-xs:        4px;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-2xl:       24px;
  --radius-3xl:       32px;
  --radius-full:      9999px;
  
  /* Spacing Scale */
  --space-xs:         0.25rem;  /* 4px */
  --space-sm:         0.5rem;   /* 8px */
  --space-md:         1rem;     /* 16px */
  --space-lg:         1.5rem;   /* 24px */
  --space-xl:         2rem;     /* 32px */
  --space-2xl:        3rem;     /* 48px */
  --space-3xl:        4rem;     /* 64px */
  
  /* Typography */
  --font-primary:     'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:     'Cairo', sans-serif;
  
  /* Font Weights */
  --font-light:       300;
  --font-regular:     400;
  --font-medium:      500;
  --font-semibold:    600;
  --font-bold:        700;
  --font-extrabold:   800;
  --font-black:       900;
  
  /* Line Heights */
  --leading-none:     1;
  --leading-tight:    1.25;
  --leading-snug:     1.375;
  --leading-normal:   1.5;
  --leading-relaxed:  1.625;
  --leading-loose:    2;
  
  /* Transitions */
  --transition-fast:    all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:    all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce:  all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-Index Scale */
  --z-base:           1;
  --z-dropdown:       100;
  --z-sticky:         200;
  --z-fixed:          300;
  --z-modal-backdrop: 400;
  --z-modal:          500;
  --z-popover:        600;
  --z-tooltip:        700;
  --z-notification:   800;
  --z-max:            9999;
  
  /* Breakpoints (for reference in media queries) */
  --breakpoint-sm:    640px;
  --breakpoint-md:    768px;
  --breakpoint-lg:    1024px;
  --breakpoint-xl:    1280px;
  --breakpoint-2xl:   1536px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--text);
  background: var(--white);
  direction: rtl;
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text);
  margin: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
  margin: 0;
  line-height: var(--leading-relaxed);
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
  cursor: pointer;
}

a:hover {
  color: var(--primary);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* Lists */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Forms */
button, input, select, textarea {
  font-family: var(--font-primary);
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input, select, textarea {
  width: 100%;
}

/* Focus Styles */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

::-moz-selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

/* =====================================================
   Layout Components
   ===================================================== */

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1440px;
}

/* Section Padding */
.section-pad {
  padding: var(--space-3xl) 0;
}

.section-pad-sm {
  padding: var(--space-2xl) 0;
}

.section-pad-lg {
  padding: 5rem 0;
}

/* Grid Systems */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

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

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* =====================================================
   NAVBAR - نافبار متطور
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-base);
  height: 76px;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: 68px;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.98);
  border-bottom-color: transparent;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-base);
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-base);
}

.navbar.scrolled .navbar-logo {
  height: 42px;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-main {
  font-size: 1.25rem;
  font-weight: var(--font-black);
  color: var(--primary);
  line-height: var(--leading-none);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: var(--font-semibold);
  color: var(--text);
  transition: var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-whatsapp {
  background: #25d366;
  color: var(--white);
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: var(--font-bold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.nav-whatsapp:hover {
  background: #1ebe5d;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,211,102,.3);
}

.nav-whatsapp i {
  font-size: 1.125rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: var(--transition-base);
}

.hamburger:hover {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,47,71,.7);
  z-index: calc(var(--z-fixed) - 2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 72px;
}
.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.04'%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");
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-text { color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: 6px 16px; font-size: .85rem; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.25; margin-bottom: 20px;
}
.hero-title span { color: var(--accent-light); }
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 36px; max-width: 480px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
/* =====================================================
   Button System - نظام الأزرار المتقدم
   ===================================================== */

/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-accent), var(--shadow-md);
  color: var(--white);
}

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

/* Secondary Button */
.btn-secondary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

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

/* Success Button (للإيجار) */
.btn-success {
  background: var(--gradient-success);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(22,163,74,.35), var(--shadow-md);
  color: var(--white);
}

/* Outline Buttons */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}

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

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

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

/* White Button */
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
}

/* Sizes */
.btn-xs {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

.btn-xl {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--radius-full);
}

/* Block Button */
.btn-block {
  display: flex;
  width: 100%;
}

/* Icon Only Button */
.btn-icon {
  padding: 0.75rem;
  border-radius: var(--radius-full);
}

.btn-icon-sm {
  padding: 0.5rem;
}

.btn-icon-lg {
  padding: 1rem;
}

/* Specific Action Buttons */
.btn-view {
  background: var(--primary);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: var(--font-bold);
  border: none;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
}

.btn-view:hover {
  background: var(--primary-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-view-rent {
  background: var(--success);
  color: var(--white);
}

.btn-view-rent:hover {
  background: var(--success-700);
  color: var(--white);
}

.btn-search {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: var(--font-bold);
  width: 100%;
  transition: var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.btn-search:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-call {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: var(--font-bold);
  text-align: center;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-call:hover {
  background: var(--primary-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-wa {
  background: #25d366;
  color: var(--white);
  border: none;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: var(--font-bold);
  text-align: center;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-wa:hover {
  background: #1ebe5d;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}

.btn-share {
  background: var(--gray-50);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: var(--font-semibold);
  text-align: center;
  transition: var(--transition-base);
}

.btn-share:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

/* Ripple Effect (optional enhancement) */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: translate(-50%, -50%);
  transition: width .4s, height .4s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}
.hero-img-wrap {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-img-wrap img { width: 100%; height: 520px; object-fit: cover; }
.hero-img-badge {
  position: absolute; bottom: 24px; right: 24px;
  background: rgba(255,255,255,.95); border-radius: var(--radius-md);
  padding: 14px 20px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px);
}
.hero-img-badge .num { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.hero-img-badge .lbl { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* =====================================================
   SEARCH BOX
   ===================================================== */
.search-section {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: -40px auto 0;
  position: relative; z-index: 10;
  max-width: 1100px;
}
.search-title {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.search-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.form-control {
  padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem;
  background: var(--off-white); color: var(--text);
  transition: var(--transition); width: 100%;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  background: var(--white); box-shadow: 0 0 0 3px rgba(26,75,122,.1);
}
.search-btn-wrap { display: flex; align-items: flex-end; }
.btn-search {
  background: var(--primary); color: var(--white);
  border: none; padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 700; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-search:hover { background: var(--primary-light); transform: translateY(-1px); }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-label {
  display: inline-block; background: rgba(26,75,122,.1);
  color: var(--primary); font-size: .82rem; font-weight: 700;
  padding: 5px 16px; border-radius: 50px; margin-bottom: 12px;
  letter-spacing: .5px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900;
  color: var(--text); line-height: 1.3; margin-bottom: 12px;
}
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-header-inline {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.section-header-inline .section-title { margin-bottom: 0; text-align: right; }

/* =====================================================
   APARTMENT CARD
   ===================================================== */
.apartments-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.apt-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--transition);
}
.apt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.apt-card-img {
  position: relative; overflow: hidden; height: 240px;
}
.apt-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.apt-card:hover .apt-card-img img { transform: scale(1.05); }
.apt-card-badges {
  position: absolute; top: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 50px; font-size: .78rem; font-weight: 700;
}
.badge-available  { background: #dcfce7; color: #16a34a; }
.badge-reserved   { background: #fef3c7; color: #d97706; }
.badge-sold       { background: #fee2e2; color: #dc2626; }
.badge-featured   { background: var(--accent); color: var(--white); }
.badge-secondary  { background: var(--light); color: var(--text-muted); }
.apt-card-body { padding: 22px; }
.apt-card-title {
  font-size: 1.08rem; font-weight: 800; color: var(--text);
  margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.apt-card-location {
  font-size: .87rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; margin-bottom: 14px;
}
.apt-card-location i { color: var(--primary); }
.apt-card-specs {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-bottom: 18px;
  padding: 14px; background: var(--off-white); border-radius: var(--radius-sm);
}
.spec-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
}
.spec-icon { font-size: 1.1rem; color: var(--primary); }
.spec-val { font-size: .88rem; font-weight: 700; color: var(--text); }
.spec-lbl { font-size: .72rem; color: var(--text-muted); }
.apt-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.apt-price {
  font-size: 1.15rem; font-weight: 900; color: var(--primary);
}
.apt-price small { font-size: .75rem; color: var(--text-muted); font-weight: 400; }
.btn-view {
  background: var(--primary); color: var(--white);
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition); border: none;
}
.btn-view:hover { background: var(--primary-light); color: var(--white); transform: translateY(-1px); }

/* =====================================================
   APARTMENT DETAIL PAGE
   ===================================================== */
.apt-detail { padding-top: 96px; }
.apt-detail-header { margin-bottom: 32px; }
.apt-detail-title { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900; color: var(--text); margin-bottom: 10px; }
.apt-detail-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--text-muted); }
.apt-detail-meta i { color: var(--primary); }

/* Gallery */
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 480px; position: relative; background: #0a0a0a; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; width: 100%; padding: 0 14px; pointer-events: none;
}
.gallery-btn {
  pointer-events: all; background: rgba(255,255,255,.9);
  border: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: var(--transition);
}
.gallery-btn:hover { background: var(--white); transform: scale(1.1); }
.gallery-counter {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0,0,0,.6); color: #fff;
  padding: 5px 12px; border-radius: 50px; font-size: .82rem;
}
.gallery-thumbs {
  display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--light); border-radius: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.gallery-thumb {
  flex-shrink: 0; width: 80px; height: 60px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .7;
  transition: var(--transition);
}
.gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info Box */
.apt-info-box {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  position: sticky; top: 88px;
}
.apt-price-big {
  font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 6px;
}
.apt-specs-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 24px 0;
}
.spec-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--off-white); border-radius: var(--radius-sm);
}
.spec-row i { color: var(--primary); font-size: 1.1rem; width: 20px; text-align: center; }
.spec-row-info { display: flex; flex-direction: column; }
.spec-row-label { font-size: .75rem; color: var(--text-muted); }
.spec-row-val   { font-size: .92rem; font-weight: 700; }
.contact-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-call {
  background: var(--primary); color: var(--white);
  border: none; padding: 14px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-call:hover { background: var(--primary-light); color: var(--white); }
.btn-wa {
  background: #25d366; color: var(--white);
  border: none; padding: 14px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-wa:hover { background: #1ebe5d; color: var(--white); }
.btn-share {
  background: var(--off-white); color: var(--text);
  border: 2px solid var(--border); padding: 12px; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-share:hover { border-color: var(--primary); color: var(--primary); }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: var(--transition);
}
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }

/* =====================================================
   DESCRIPTION & DETAILS
   ===================================================== */
.apt-description { line-height: 1.9; color: var(--text); font-size: 1rem; }
.detail-section { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.detail-section-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 2px solid var(--light); }
.detail-section-title i { color: var(--primary); }

/* Video */
.video-wrap { border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; max-height: 400px; }
.video-wrap iframe { width: 100%; height: 400px; border: none; }

/* Map */
.map-frame { width: 100%; height: 320px; border: none; border-radius: var(--radius-md); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.85); margin-top: 80px; }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { font-size: 1.4rem; font-weight: 900; color: var(--white); margin-bottom: 4px; }
.footer-sponsor { color: var(--accent-light); font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.footer-about { font-size: .9rem; line-height: 1.7; opacity: .8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-title { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9rem; opacity: .75; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent-light); padding-right: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .9rem; opacity: .85; }
.footer-contact i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { opacity: 1; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; opacity: .6; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination-nav { margin-top: 48px; }
.pagination { gap: 6px; }
.page-link {
  border: 2px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm) !important; padding: 8px 14px;
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  transition: var(--transition);
}
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--white); }
.page-link:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* =====================================================
   ALERTS & FLASH MESSAGES
   ===================================================== */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.alert-info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.btn-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: .6; }
.btn-close:hover { opacity: 1; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-page { padding-top: 96px; padding-bottom: 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 36px; }
.contact-info-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.contact-info-sub { opacity: .8; margin-bottom: 28px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-text strong { display: block; margin-bottom: 2px; }
.contact-info-text a { opacity: .85; font-size: .93rem; }
.contact-info-text a:hover { opacity: 1; color: var(--accent-light); }
.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =====================================================
   MISC
   ===================================================== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state i { font-size: 4rem; opacity: .3; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.page-header-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white); padding: 120px 0 60px; text-align: center;
}
.page-header-section h1 { font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 900; margin-bottom: 10px; }
.page-header-section p { opacity: .8; }
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: .88rem; opacity: .75; }
.breadcrumb a:hover { opacity: 1; color: var(--accent-light); }
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; background: var(--white);
  box-shadow: var(--shadow-md); margin-bottom: 60px;
}
.stat-item {
  padding: 28px 20px; text-align: center;
  border-left: 1px solid var(--border);
}
.stat-item:last-child { border-left: none; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-lbl { font-size: .88rem; color: var(--text-muted); margin-top: 4px; }

/* =====================================================
   NAVBAR DROPDOWN
   ===================================================== */
.nav-dropdown { position: relative; }
.nav-link-dropdown { display: flex; align-items: center; gap: 5px; }
.nav-icon  { font-size: .8rem; }
.nav-arrow { font-size: .65rem; transition: transform .25s; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-link-rental { color: #1a7a4b !important; }
.nav-link-rental:hover, .nav-link-rental.active { background: #dcfce7 !important; color: #15803d !important; }

.nav-submenu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  min-width: 200px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  z-index: 500; border: 1px solid var(--border);
  list-style: none;
}
.nav-dropdown:hover .nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-submenu li a {
  display: block; padding: 9px 18px;
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: all .15s; white-space: nowrap;
}
.nav-submenu li a:hover { background: var(--light); color: var(--primary); padding-right: 24px; }

/* Rental card accent */
.rental-card { border-top: 3px solid #16a34a; }
.rental-card .apt-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,80,30,.15) 0%, transparent 50%);
  pointer-events: none;
}

/* =====================================================
   PROPERTY TYPE TABS (homepage)
   ===================================================== */
.prop-tabs {
  display: flex; gap: 0; background: var(--light);
  border-radius: 50px; padding: 4px; width: fit-content;
}
.prop-tab {
  padding: 10px 28px; border-radius: 50px; font-size: .92rem;
  font-weight: 700; cursor: pointer; border: none;
  background: none; color: var(--text-muted);
  transition: all .25s; font-family: var(--font);
  display: flex; align-items: center; gap: 7px;
}
.prop-tab.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 15px rgba(26,75,122,.3);
}
.prop-tab.rental-tab.active { background: #16a34a; box-shadow: 0 4px 15px rgba(22,163,74,.3); }
.prop-tab:hover:not(.active) { color: var(--text); background: rgba(0,0,0,.05); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* =====================================================
   Listing Type Badges — للبيع / للإيجار
   ===================================================== */
.badge-listing {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 50px;
  font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.badge-sale {
  background: linear-gradient(135deg, #1a4b7a, #2563a8);
  color: #fff;
}
.badge-rent {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #fff;
}
.badge-rented {
  background: #6d28d9; color: #fff;
}
/* Rent price styling */
.rent-price-suffix {
  font-size: .72rem; font-weight: 500; opacity: .75; margin-right: 2px;
}
/* Type filter tabs */
.listing-tabs {
  display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
}
.listing-tab {
  padding: 9px 22px; border-radius: 50px; font-size: .9rem;
  font-weight: 700; cursor: pointer; border: 2px solid var(--border);
  background: var(--white); color: var(--text-muted);
  transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.listing-tab:hover { border-color: var(--primary); color: var(--primary); }
.listing-tab.active-sale {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.listing-tab.active-rent {
  background: #16a34a; color: #fff; border-color: #16a34a;
}
.listing-tab.active-all {
  background: var(--text); color: #fff; border-color: var(--text);
}
/* Rent details in card */
.rent-details {
  font-size: .78rem; color: var(--text-muted);
  display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap;
}
.rent-details i { color: #16a34a; }

.rent-card-border { border-top: 3px solid #16a34a; }
.btn-view-rent { background: #16a34a; }
.btn-view-rent:hover { background: #15803d; color: #fff; }


/* =====================================================
   Navigation Bar - شريط التنقل المحسّن
   ===================================================== */

/* Skip to Content Link (Accessibility) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  z-index: var(--z-max);
  transition: var(--transition-base);
}

.skip-to-content:focus {
  top: var(--space-md);
}

/* Navbar Container */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-sticky);
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--border);
}

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

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-xl);
}

/* Brand / Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.navbar-brand:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-main {
  font-size: 22px;
  font-weight: var(--font-bold);
  color: var(--primary);
  line-height: 1.2;
}

.brand-sub {
  font-size: 12px;
  font-weight: var(--font-medium);
  color: var(--accent);
  line-height: 1;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 16px;
  font-weight: var(--font-semibold);
  color: var(--text);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.nav-link.active {
  background: var(--primary-50);
  color: var(--primary);
}

.nav-link-icon {
  font-size: 18px;
  opacity: 0.8;
  transition: var(--transition-base);
}

.nav-link:hover .nav-link-icon {
  opacity: 1;
  transform: scale(1.1);
}

.nav-link-text {
  display: inline-block;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-link-dropdown {
  position: relative;
}

.nav-arrow {
  font-size: 12px;
  margin-right: var(--space-xs);
  transition: var(--transition-base);
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

/* Submenu */
.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: var(--transition-smooth);
  z-index: var(--z-dropdown);
  border: 1px solid var(--border);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.submenu-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.submenu-link::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--primary-50);
  transition: var(--transition-base);
  z-index: -1;
}

.submenu-link:hover::before {
  width: 100%;
}

.submenu-link:hover {
  background: transparent;
  transform: translateX(-4px);
}

.submenu-link.active {
  background: var(--primary-50);
  color: var(--primary);
}

.submenu-icon {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition-base);
}

.submenu-link:hover .submenu-icon {
  transform: scale(1.15) rotate(5deg);
}

.submenu-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.submenu-title {
  font-size: 15px;
  font-weight: var(--font-semibold);
  color: var(--text);
  transition: var(--transition-base);
}

.submenu-link:hover .submenu-title {
  color: var(--primary);
}

.submenu-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.submenu-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: var(--font-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
}

.submenu-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xs) 0;
}

/* WhatsApp Button */
.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: var(--white);
  font-weight: var(--font-semibold);
  font-size: 15px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.nav-whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #1aa84e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: var(--white);
}

.nav-whatsapp i {
  font-size: 20px;
}

/* Phone Button (Mobile Only) */
.nav-phone {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: var(--font-semibold);
  font-size: 15px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
  transition: var(--transition-smooth);
}

.nav-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.4);
  color: var(--white);
}

.nav-phone i {
  font-size: 18px;
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: var(--z-sticky);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: calc(var(--z-sticky) - 1);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   Navbar - Responsive Design
   ===================================================== */

@media (max-width: 1024px) {
  .navbar .container {
    height: 70px;
  }
  
  .nav-links {
    gap: 4px;
  }
  
  .nav-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: 15px;
  }
  
  .nav-whatsapp {
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    height: 65px;
    padding: 0 var(--space-md);
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 65px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    transition: var(--transition-smooth);
    z-index: var(--z-sticky);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
  }
  
  .nav-dropdown .nav-submenu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-right: 3px solid var(--primary-200);
    margin: var(--space-sm) 0 var(--space-sm) var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-dropdown.open .nav-submenu {
    opacity: 1;
    max-height: 500px;
  }
  
  .submenu-link {
    padding: var(--space-sm) var(--space-md);
  }
  
  .nav-whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-md);
  }
  
  .nav-item-mobile-only {
    display: block;
  }
  
  .nav-phone {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  
  .navbar-logo {
    height: 40px;
  }
  
  .brand-main {
    font-size: 18px;
  }
  
  .brand-sub {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .navbar .container {
    height: 60px;
    padding: 0 var(--space-sm);
  }
  
  .nav-links {
    top: 60px;
    height: calc(100vh - 60px);
    width: 100%;
    padding: var(--space-md);
  }
  
  .navbar-logo {
    height: 36px;
  }
  
  .brand-main {
    font-size: 16px;
  }
  
  .brand-sub {
    font-size: 10px;
  }
}

/* Utility - Hide on Desktop */
@media (min-width: 769px) {
  .nav-item-mobile-only {
    display: none !important;
  }
}


/* =====================================================
   Homepage Styles - أنماط الصفحة الرئيسية
   ===================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  background: linear-gradient(135deg, #082d47 0%, #0f4c81 50%, #1a6ea8 100%);
  overflow: hidden;
  color: var(--white);
}

.hero-particles,
.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: var(--font-bold);
  backdrop-filter: blur(8px);
  width: fit-content;
}

.hero-badge i {
  color: var(--accent-light);
}

.hero-sponsor {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent-light);
  font-size: 15px;
  font-weight: var(--font-semibold);
  width: fit-content;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  margin: 0;
}

.hero-subtitle {
  font-size: 18px;
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: var(--transition-smooth);
}

.hero-stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-stat-item i {
  font-size: 24px;
  color: var(--accent-light);
}

.hero-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-number {
  font-size: 22px;
  font-weight: var(--font-black);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 45, 71, 0.3), transparent 60%);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.badge-number {
  font-size: 32px;
  font-weight: var(--font-black);
  color: var(--primary);
  line-height: 1;
}

.badge-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Search */
.hero-search {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-top: var(--space-3xl);
  box-shadow: var(--shadow-2xl);
  position: relative;
  z-index: 2;
}

.search-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.search-header i {
  color: var(--primary);
  font-size: 20px;
}

.search-header h2 {
  font-size: 18px;
  font-weight: var(--font-bold);
  color: var(--primary);
  margin: 0;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

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

.search-field label {
  font-size: 13px;
  font-weight: var(--font-bold);
  color: var(--text-muted);
}

.search-select,
.search-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition-base);
  background: var(--white);
}

.search-select:focus,
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.btn-search {
  width: 100%;
  padding: var(--space-md);
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: var(--font-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.4);
}

/* Stats Bar */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.stat-item:hover {
  background: var(--gray-50);
  transform: translateY(-4px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.stat-number {
  font-size: 28px;
  font-weight: var(--font-black);
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: var(--font-semibold);
}

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

.apartments-section {
  background: var(--gray-50);
}

.rentals-section {
  background: var(--white);
}

.districts-section {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--primary-50);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-md);
}

.section-label-success {
  background: var(--success-100);
  color: var(--success-700);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-black);
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.text-primary {
  color: var(--primary);
}

.text-success {
  color: var(--success-700);
}

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

.section-footer {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* Apartments Grid */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* Districts Grid */
.districts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.district-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: var(--font-semibold);
  border: 1px solid var(--border);
  transition: var(--transition-base);
  text-decoration: none;
}

.district-tag i {
  font-size: 12px;
  color: var(--primary);
  transition: var(--transition-base);
}

.district-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.district-tag:hover i {
  color: var(--white);
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #082d47 0%, #0f4c81 100%);
  overflow: hidden;
  color: var(--white);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-black);
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: 18px;
  line-height: var(--leading-relaxed);
  opacity: 0.85;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.cta-note {
  font-size: 13px;
  opacity: 0.5;
  margin-top: var(--space-lg);
}

.cta-note i {
  margin-left: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 16px;
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.4);
  color: var(--white);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4);
  color: var(--white);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(212, 153, 31, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 153, 31, 0.4);
  color: var(--white);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 17px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: var(--z-fixed);
  text-decoration: none;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-bounce);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

/* Floating Shapes Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    gap: var(--space-2xl);
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .apartments-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: var(--space-2xl);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .hero-image {
    height: 350px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .search-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .apartments-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero-search {
    padding: var(--space-lg);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    padding: var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .districts-grid {
    gap: var(--space-sm);
  }
  
  .district-tag {
    font-size: 14px;
    padding: 8px 16px;
  }
}


/* ========================================
   LISTING PAGES STYLES
   ======================================== */

/* Modern Page Header */
.listing-page-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0 100px;
    overflow: hidden;
    color: white;
}

.listing-page-header.rental-header {
    background: linear-gradient(135deg, #064e2a, #16a34a);
}

.listing-page-header .header-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: 
        radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, white 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.listing-page-header .header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.listing-page-header .header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.listing-page-header .header-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.listing-page-header .header-icon.rental-icon {
    animation: keyRotate 3s ease-in-out infinite;
}

@keyframes keyRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.listing-page-header .header-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.listing-page-header .header-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 32px;
    font-weight: 400;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
}

.breadcrumb-modern .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.breadcrumb-modern .breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.breadcrumb-modern .breadcrumb-separator {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Listings Section */
.listings-section {
    padding: 48px 0 80px;
    background: var(--off-white);
    min-height: 60vh;
}

/* Type Tabs - Enhanced */
.listing-type-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    padding: 0;
}

.type-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.type-tab:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.type-tab.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.type-tab.sale-active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.type-tab.rent-active {
    background: linear-gradient(135deg, #064e2a, #16a34a);
}

.type-tab .tab-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 76, 129, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.type-tab.active .tab-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.type-tab .tab-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.type-tab .tab-label {
    font-size: 1.05rem;
    font-weight: 600;
}

.type-tab .tab-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Filters Card */
.filters-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.filters-card.rental-filters {
    border-top: 3px solid #16a34a;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--off-white);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.filters-title i {
    color: var(--primary);
    font-size: 1.3rem;
}

.filters-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.reset-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--off-white);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.reset-filters-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: translateY(-2px);
}

.reset-filters-btn i {
    font-size: 0.9rem;
}

/* Filters Form */
.filters-form {
    width: 100%;
}

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

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

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text);
    background: white;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-submit {
    display: flex;
    align-items: flex-end;
}

.filter-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.filter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.filter-submit-btn.rental-submit {
    background: linear-gradient(135deg, #064e2a, #16a34a);
}

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

/* Results Header */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.results-info {
    flex: 1;
}

.results-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.results-text strong {
    color: var(--text-dark);
    font-weight: 700;
}

.results-text.no-results {
    color: var(--danger);
    font-weight: 600;
}

.view-mode-toggle {
    display: flex;
    gap: 8px;
    background: var(--off-white);
    padding: 4px;
    border-radius: var(--radius-md);
}

.view-mode-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

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

.view-mode-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Apartments Grid Modern */
.apartments-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.listing-card-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.listing-card-wrapper.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
    opacity: 0;
    transform: translateY(30px);
}

.empty-state-modern.animated {
    opacity: 1;
    transform: translateY(0);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.empty-state-icon.rental-empty {
    background: linear-gradient(135deg, #10b981, #16a34a);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.empty-state-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.empty-state-btn.rental-btn {
    background: linear-gradient(135deg, #064e2a, #16a34a);
}

/* Pagination Wrapper */
.pagination-wrapper {
    margin-top: 48px;
    opacity: 0;
    transform: translateY(20px);
}

.pagination-wrapper.animated {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section for Listings */
.cta-section-listing {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-section-listing.rental-cta {
    background: linear-gradient(135deg, #064e2a, #16a34a);
}

.cta-section-listing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-section-listing .cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.cta-section-listing .cta-text {
    flex: 1;
    color: white;
}

.cta-section-listing .cta-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-section-listing .cta-text p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
}

.cta-btn-listing {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.cta-btn-listing:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-2xl);
}

.cta-btn-listing i {
    transition: transform var(--transition-fast);
}

.cta-btn-listing:hover i {
    transform: translateX(-4px);
}

/* Rental Features Banner */
.rental-features-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding: 28px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.rental-features-banner .feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.rental-features-banner .feature-item:hover {
    background: #ecfdf5;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rental-features-banner .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #16a34a);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.rental-features-banner .feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.rental-features-banner .feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .listing-page-header {
        padding: 60px 0 80px;
    }
    
    .listing-page-header .header-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .cta-section-listing .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-section-listing .cta-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .listing-type-tabs {
        grid-template-columns: 1fr;
    }
    
    .filters-card {
        padding: 24px 20px;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .view-mode-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .apartments-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rental-features-banner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .cta-section-listing {
        padding: 40px 0;
    }
    
    .cta-section-listing .cta-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .cta-section-listing .cta-text h3 {
        font-size: 1.35rem;
    }
    
    .cta-btn-listing {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .listing-page-header {
        padding: 48px 0 60px;
    }
    
    .listing-page-header .header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .filters-card {
        padding: 20px 16px;
    }
    
    .filters-title h3 {
        font-size: 1.1rem;
    }
    
    .empty-state-modern {
        padding: 60px 20px;
    }
    
    .empty-state-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
}


/* ========================================
   DETAIL PAGES STYLES
   ======================================== */

/* Detail Page Container */
.detail-page {
    padding: 32px 0 80px;
    background: var(--off-white);
    min-height: 70vh;
}

/* Modern Breadcrumb */
.breadcrumb-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.breadcrumb-link:hover {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-separator {
    font-size: 0.7rem;
    color: var(--border-color);
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Detail Header */
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.detail-header-content {
    flex: 1;
}

.detail-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.detail-badges {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

/* Modern Badges */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.badge-modern i {
    font-size: 0.9rem;
}

.badge-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-rental {
    background: linear-gradient(135deg, #10b981, #16a34a);
    color: white;
}

/* Detail Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

/* Detail Card */
.detail-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 28px;
    transition: all var(--transition-normal);
}

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

.detail-card:last-child {
    margin-bottom: 0;
}

/* Card Header */
.detail-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--off-white);
    border-bottom: 2px solid var(--border-color);
}

.card-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.card-header-icon.rental-icon {
    background: linear-gradient(135deg, #064e2a, #16a34a);
}

.detail-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Card Body */
.detail-card-body {
    padding: 24px;
}

/* Gallery Styles - Modern */
.gallery-card {
    padding: 0;
}

.gallery-main-modern {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--off-white);
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-main-image:hover {
    transform: scale(1.05);
}

.gallery-nav-modern {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.gallery-nav-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    color: var(--primary-dark);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-counter-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.gallery-counter-badge i {
    font-size: 1rem;
}

.gallery-fullscreen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.gallery-fullscreen-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Thumbnails Grid */
.gallery-thumbs-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--off-white);
}

.gallery-thumb-modern {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.gallery-thumb-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-modern .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-thumb-modern:hover .thumb-overlay {
    opacity: 1;
}

.gallery-thumb-modern.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.gallery-thumb-modern.active .thumb-overlay {
    opacity: 0;
}

/* Property Description */
.property-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
    white-space: pre-wrap;
}

/* Specs Grid Modern */
.specs-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.spec-item-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.spec-item-modern:hover {
    background: white;
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.spec-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.spec-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.spec-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Video Container */
.video-container-modern {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-player,
.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Map Frame */
.map-frame-modern {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Sidebar Styles */
.detail-sidebar {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 100px;
    margin-bottom: 0;
}

/* Price Section */
.price-section {
    padding: 24px;
    background: linear-gradient(135deg, var(--off-white), white);
    border-bottom: 1px solid var(--border-color);
}

.price-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.price-label i {
    font-size: 1rem;
}

.price-label.rental-label {
    color: #16a34a;
}

.price-value {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.price-value.rental-price {
    color: #16a34a;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.deposit-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 10px 14px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.deposit-info i {
    color: var(--accent);
    font-size: 1rem;
}

/* Status Section */
.status-section {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

/* Availability Cards */
.availability-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    margin: 16px 0;
    border: 2px solid;
}

.availability-card .availability-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.availability-card .availability-content {
    flex: 1;
}

.availability-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.availability-card span {
    font-size: 0.85rem;
    line-height: 1.5;
}

.availability-card.busy {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.availability-card.busy .availability-icon {
    background: #fee2e2;
    color: #dc2626;
}

.availability-card.soon {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.availability-card.soon .availability-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.availability-card.available {
    background: #f0fdf4;
    color: #14532d;
    border-color: #bbf7d0;
}

.availability-card.available .availability-icon {
    background: #dcfce7;
    color: #16a34a;
}

/* Quick Specs */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.quick-spec-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.quick-spec-item i {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.quick-spec-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-spec-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Contact Buttons Modern */
.contact-buttons-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.contact-btn i {
    font-size: 1.1rem;
}

.contact-btn.primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.contact-btn.secondary {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
}

.contact-btn.whatsapp {
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: white;
}

.contact-btn.share {
    background: linear-gradient(135deg, var(--text-muted), var(--text));
    color: white;
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

/* Lightbox Modern */
.lightbox-modern {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.lightbox-modern.active {
    display: flex;
}

.lightbox-content-modern {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-image-modern {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
}

.lightbox-close-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-2xl);
    z-index: 10;
}

.lightbox-close-modern:hover {
    background: white;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-2xl);
    z-index: 10;
}

.lightbox-prev-modern {
    right: calc(100% + 20px);
}

.lightbox-next-modern {
    left: calc(100% + 20px);
}

.lightbox-nav-modern:hover {
    background: white;
    transform: translateY(-50%) scale(1.15);
}

/* Rental Theme Variations */
.rental-detail .card-header-icon {
    background: linear-gradient(135deg, #064e2a, #16a34a);
}

.rental-card {
    border-top-color: #16a34a !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr 340px;
        gap: 24px;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .gallery-main-modern {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 768px) {
    .detail-page {
        padding: 24px 0 60px;
    }
    
    .detail-header {
        flex-direction: column;
        padding: 20px;
    }
    
    .detail-badges {
        width: 100%;
        justify-content: flex-start;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sticky-card {
        position: static;
    }
    
    .detail-card-header {
        padding: 16px 20px;
    }
    
    .detail-card-body {
        padding: 20px;
    }
    
    .specs-grid-modern {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .quick-specs {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs-modern {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .lightbox-prev-modern {
        right: auto;
        left: 10px;
    }
    
    .lightbox-next-modern {
        left: auto;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .detail-header {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .detail-title {
        font-size: 1.25rem;
    }
    
    .detail-meta {
        gap: 12px;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .detail-card {
        margin-bottom: 16px;
    }
    
    .detail-card-header {
        padding: 14px 16px;
    }
    
    .card-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .detail-card-title {
        font-size: 1.1rem;
    }
    
    .detail-card-body {
        padding: 16px;
    }
    
    .property-description {
        font-size: 1rem;
    }
    
    .price-section {
        padding: 20px 16px;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .contact-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-counter-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .gallery-fullscreen-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}
