/* ==========================================================================
   Real Estate Marketplace - Luxury Design System
   Corporate Branding: Era Suite | https://era-suite.com/
   ========================================================================== */

:root {
  --theme-primary: #1052ba;
  --theme-primary-hover: #0c3d8a;
  --theme-primary-light: #eff6ff;
  --theme-secondary: #0d9488;
  --theme-secondary-hover: #0f766e;
  --theme-accent: #f59e0b;
  --theme-dark: #0f172a;
  --theme-dark-card: #1e293b;
  --theme-slate: #334155;
  --theme-muted: #64748b;
  --theme-light: #f8fafc;
  --theme-border: #e2e8f0;
  --theme-radius-sm: 8px;
  --theme-radius-md: 14px;
  --theme-radius-lg: 20px;
  --theme-radius-xl: 28px;
  --theme-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --theme-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --theme-shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --theme-shadow-hover: 0 20px 35px rgba(16, 82, 186, 0.15);
  --theme-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
}

[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--theme-dark);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

/* Navbar */
.navbar-theme {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--theme-transition);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  margin: 0;
}

.navbar-brand img,
.navbar-logo-img {
  height: 54px;
  max-height: 58px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (max-width: 991.98px) {
  .navbar-brand img,
  .navbar-logo-img {
    height: 44px;
    max-height: 48px;
    max-width: 190px;
  }
}

.navbar-theme .nav-link {
  font-weight: 500;
  color: #334155;
  padding: 0.6rem 1rem;
  border-radius: var(--theme-radius-sm);
  transition: var(--theme-transition);
}

.navbar-theme .nav-link:hover, .navbar-theme .nav-link.active {
  color: var(--theme-primary);
  background-color: var(--theme-primary-light);
}

/* Mobile Navbar Optimization */
@media (max-width: 991.98px) {
  .navbar-theme .navbar-collapse {
    background: #ffffff;
    padding: 1.25rem 1rem;
    border-radius: var(--theme-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
  }

  .navbar-theme .navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .navbar-theme .navbar-nav .nav-link {
    padding: 0.65rem 0.9rem !important;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  [dir="rtl"] .navbar-theme .navbar-nav .nav-link {
    text-align: right;
  }

  .navbar-theme .navbar-action-wrap {
    width: 100%;
  }

  .navbar-theme .navbar-action-wrap .dropdown-toggle,
  .navbar-theme .navbar-action-wrap .btn {
    white-space: normal;
  }
}


/* Hero Section */
.hero-wrapper {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, #091e3a 0%, #102a4d 50%, #0d2838 100%);
  border-radius: 0 0 var(--theme-radius-xl) var(--theme-radius-xl);
  overflow: hidden;
  padding: 5rem 0 7rem;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, rgba(16, 82, 186, 0) 70%);
  top: -150px;
  right: -100px;
  border-radius: 50%;
  filter: blur(50px);
}

/* Hero Search Box (Floating Glassmorphism) */
.search-card-hero {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-radius: var(--theme-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
}

.search-tabs .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--theme-muted);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: var(--theme-transition);
}

.search-tabs .nav-link.active {
  background-color: var(--theme-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 82, 186, 0.3);
}

/* Property Cards */
.property-card {
  background: #fff;
  border-radius: var(--theme-radius-md);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-sm);
  transition: var(--theme-transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--theme-shadow-hover);
  border-color: #cbd5e1;
}

.property-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.property-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-card-img-wrapper img {
  transform: scale(1.06);
}

/* Badges */
.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.badge-verified {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
}

.badge-type {
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.action-btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  border: 1px solid rgba(226, 232, 240, 0.6);
  backdrop-filter: blur(4px);
  transition: var(--theme-transition);
  cursor: pointer;
}

.action-btn-circle:hover {
  background: #fff;
  color: var(--theme-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.action-btn-circle.active {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Price Styling */
.property-price {
  color: var(--theme-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
}

/* Feature Spec Items */
.spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--theme-slate);
  font-weight: 500;
}

.spec-item i {
  color: var(--theme-primary);
  font-size: 1rem;
}

/* Category Quick Card */
.category-pill {
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--theme-dark);
  transition: var(--theme-transition);
  box-shadow: var(--theme-shadow-sm);
}

.category-pill:hover {
  border-color: var(--theme-primary);
  transform: translateY(-3px);
  box-shadow: var(--theme-shadow-md);
  color: var(--theme-primary);
}

.category-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--theme-primary-light);
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: var(--theme-transition);
}

.category-pill:hover .category-icon-box {
  background: var(--theme-primary);
  color: #fff;
}

/* Buttons */
.btn-theme-primary {
  background-color: var(--theme-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--theme-radius-sm);
  padding: 0.65rem 1.5rem;
  border: none;
  transition: var(--theme-transition);
}

.btn-theme-primary:hover {
  background-color: var(--theme-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 82, 186, 0.25);
}

.btn-theme-secondary {
  background-color: var(--theme-secondary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--theme-radius-sm);
  padding: 0.65rem 1.5rem;
  border: none;
  transition: var(--theme-transition);
}

.btn-theme-secondary:hover {
  background-color: var(--theme-secondary-hover);
  color: #fff;
}

/* Footer */
.footer-theme {
  background-color: #0b1322;
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-theme a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--theme-transition);
}

.footer-theme a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 3.5rem;
}

/* Admin Sidebar */
.admin-sidebar {
  min-height: 100vh;
  background-color: #0f172a !important;
  color: #94a3b8;
  border-right: 1px solid #1e293b;
  z-index: 1045;
}

[dir="rtl"] .admin-sidebar {
  border-right: none;
  border-left: 1px solid #1e293b;
}

@media (max-width: 767.98px) {
  .admin-sidebar {
    min-height: 100vh !important;
    width: 290px !important;
  }
}

.admin-sidebar .nav-link {
  color: #94a3b8;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.25rem;
  transition: var(--theme-transition);
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background-color: #1e293b;
  color: #fff;
}

.admin-sidebar .nav-link i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

[dir="rtl"] .admin-sidebar .nav-link i {
  margin-right: 0;
  margin-left: 0.75rem;
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  min-width: 280px;
  max-width: 400px;
  animation: slideUp 0.3s ease-out;
}

[dir="rtl"] .app-toast {
  right: auto;
  left: 24px;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Hero Carousel Luxury Styling */
.hero-slider-item {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.65) contrast(1.15);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .hero-slide-bg {
  transform: scale(1.06);
}

.hero-slider-indicators {
  bottom: -15px;
}

.hero-slider-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background-color: transparent;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.hero-slider-indicators .active {
  width: 32px;
  border-radius: 8px;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.hero-carousel-control {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.25s ease;
}

.hero-carousel-control:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

