/* ==========================================================================
   DZASSISTANCE — BUREAU D'AFFAIRES & IMMOBILIER EN ALGÉRIE
   Design System: Émeraude Algérienne, Or Prestige & Ardoise Moderne
   Standard Haute Gamme Responsive Mobile-First & Desktop
   ========================================================================== */

:root {
  /* Émeraude Algérienne Profonde */
  --green-950: #04140e;
  --green-900: #0a2a20;
  --green-850: #0d382b;
  --green-800: #134e3b;
  --green-750: #155641;
  --green-700: #186049;
  --green-600: #1e7459;
  --green-500: #268e6e;
  --green-400: #38b28d;
  --green-300: #6ee7b7;
  --green-200: #a7f3d0;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;

  /* Or Prestige Saharien */
  --gold-900: #713f12;
  --gold-800: #854d0e;
  --gold-700: #a16207;
  --gold-600: #c9a227;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-300: #fbbf24;
  --gold-200: #fde68a;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  /* Ardoise & Neutres */
  --slate-950: #030712;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-150: #e8edf3;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* Surfaces & Fonds */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-dark: #0a2a20;
  --bg-dark-card: #0f382b;

  /* Typographie */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --text-inverse-muted: #94a3b8;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.14), 0 10px 15px -5px rgba(15, 23, 42, 0.06);

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Polices */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOP INFO NOTICE BAR
   ========================================================================== */
.top-notice-bar {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  padding: 7px 0;
}

.top-notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.top-contacts a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-contacts a:hover {
  color: var(--gold-400);
}

.badge-national {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-300);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .top-notice-bar {
    padding: 5px 0;
    font-size: 0.76rem;
  }
  .top-notice-content {
    justify-content: center;
    gap: 6px;
    text-align: center;
  }
  .top-contacts {
    gap: 12px;
    font-size: 0.76rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .top-email-item {
    display: none !important;
  }
}

.cta-desktop-deposit {
  display: none;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .cta-desktop-deposit {
    display: inline-flex;
  }
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

.site-header-logo {
  height: 48px;
  width: auto;
}

.nav-menu {
  list-style: none;
  align-items: center;
  gap: 6px;
}

@media (max-width: 991px) {
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: 0;
    right: -320px;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    padding: 20px 18px 80px;
    overflow-y: auto;
    z-index: 2100;
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
  }
  .nav-menu-close {
    background: var(--slate-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--slate-700);
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    margin: 4px 0 8px 10px;
    border-radius: var(--radius-sm);
    display: block;
    animation: none;
  }
  .dropdown-item {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
  .nav-menu-header {
    display: none;
  }
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 14, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2050;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.nav-link.active {
  color: var(--green-800);
  font-weight: 700;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  z-index: 1010;
}

.nav-item:hover .dropdown-menu {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

.dropdown-item {
  display: block;
  padding: 9px 12px;
  color: var(--slate-700);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--green-50);
  color: var(--green-850);
  transform: translateX(3px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-850), var(--green-950));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 42, 32, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-750), var(--green-900));
  box-shadow: 0 6px 18px rgba(10, 42, 32, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, #d97706, #c9a227);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.28);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #b45309, #d97706);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.38);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline {
  border-color: var(--slate-300);
  background: #ffffff;
  color: var(--slate-700);
}

.btn-outline:hover {
  border-color: var(--green-700);
  color: var(--green-800);
  background: var(--green-50);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Favorites badge button */
.btn-fav {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  transition: var(--transition);
}

.btn-fav:hover {
  background: var(--gold-100);
  color: var(--gold-800);
}

.fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e11d48;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--slate-800);
  border-radius: 2px;
}

/* ==========================================================================
   HERO BANNER & SEARCH ENGINE
   ========================================================================== */
.hero-section {
  position: relative;
  background: 
    linear-gradient(180deg, 
      rgba(4, 20, 14, 0.38) 0%, 
      rgba(10, 42, 32, 0.48) 38%, 
      rgba(5, 20, 14, 0.70) 100%),
    url('../images/hero-bg.jpg?v=5') center 35% / cover no-repeat;
  color: #ffffff;
  padding: 65px 0 75px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center 40%, transparent 35%, rgba(4, 20, 14, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 42, 32, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.65);
  color: var(--gold-300);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-title span {
  color: var(--gold-400);
  text-shadow: 0 2px 16px rgba(217, 119, 6, 0.5), 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 740px;
  margin: 0 auto;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hero-subtitle-ar {
  font-family: var(--font-arabic);
  font-size: 1.22rem;
  color: var(--gold-200);
  margin-top: 8px;
  direction: rtl;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.15rem;
  }
}

/* Search Box Container */
.search-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.4);
  padding: 18px 22px 26px;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--text-main);
}

.search-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.search-tab-btn {
  background: none;
  border: none;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--slate-600);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.search-tab-btn:hover {
  color: var(--green-900);
  background: var(--slate-100);
}

.search-tab-btn.active {
  background: var(--green-900);
  color: #ffffff;
}

.search-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .search-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .search-fields-grid {
    grid-template-columns: 1.3fr 1.2fr 1fr 1fr 140px;
    align-items: end;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-500);
}

.form-control, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--green-600);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 116, 89, 0.15);
}

/* Responsive Form Rows (replacing broken inline 1fr 1fr grids on mobile) */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .form-row-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .form-row-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Page Layout Grids (CSS Media Queries instead of JS resize jumps) */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
}

@media (min-width: 860px) {
  .contact-layout-grid {
    grid-template-columns: 1.05fr 1.3fr;
  }
}

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

@media (min-width: 992px) {
  .catalog-layout-grid {
    grid-template-columns: 290px 1fr;
  }
}

.prop-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
}

@media (min-width: 992px) {
  .prop-detail-grid {
    grid-template-columns: 1fr 360px;
  }
}

/* Quick Categories Pills */
.quick-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  position: relative;
  z-index: 2;
}

.quick-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 42, 32, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.quick-cat-pill:hover {
  background: var(--gold-500);
  border-color: var(--gold-300);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

/* ==========================================================================
   SECTIONS & LAYOUTS
   ========================================================================== */
.section {
  padding: 60px 0;
}

.section-subtle {
  background-color: var(--slate-100);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
}

.section-pretitle {
  color: var(--gold-600);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green-950);
  line-height: 1.25;
}

.section-desc {
  color: var(--slate-600);
  font-size: 0.98rem;
  max-width: 650px;
  margin-top: 6px;
}

/* Grid for Properties */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

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

@media (min-width: 1040px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   REAL ESTATE CARD DESIGN (NORMALIZED & MODERN)
   ========================================================================== */
.property-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(19, 78, 59, 0.3);
}

/* Card Media */
.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-200);
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.property-card:hover .card-media-img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-vente {
  background: #0284c7;
  color: #ffffff;
}

.badge-location {
  background: #16a34a;
  color: #ffffff;
}

.badge-vacances {
  background: #ea580c;
  color: #ffffff;
}

.badge-echange {
  background: #8b5cf6;
  color: #ffffff;
}

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

.badge-ref {
  background: rgba(15, 23, 42, 0.85);
  color: rgba(255, 255, 255, 0.95);
  font-family: monospace;
}

.card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--slate-600);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.card-fav-btn:hover, .card-fav-btn.active {
  background: #ffffff;
  color: #e11d48;
  transform: scale(1.1);
}

/* Card Content */
.card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Card Top Row: Price + Category Tag */
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.card-price-box {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.card-price-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--green-900);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.card-price-curr {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-800);
}

.card-price-period {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 600;
}

.card-nego-tag {
  background: var(--gold-50);
  color: var(--gold-800);
  border: 1px solid var(--gold-300);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.card-cat-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-700);
  background: rgba(201, 162, 39, 0.12);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.45;
  margin-bottom: 8px;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-title a:hover {
  color: var(--green-700);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-500);
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-width: 0;
}

.card-location svg {
  flex-shrink: 0;
  color: var(--green-600);
}

.card-location-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--slate-150);
  border-bottom: 1px solid var(--slate-150);
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--slate-700);
  font-weight: 600;
}

.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.spec-item svg {
  color: var(--green-600);
  flex-shrink: 0;
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 10px;
}

.card-bureau-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--slate-500);
  font-weight: 600;
}

.card-bureau-icon {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.card-btn-wa, .card-btn-details {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: center;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================================================
   SERVICES & VALUES (BUREAU D'AFFAIRES)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}

.service-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  border: 1px solid var(--green-100);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-950);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ==========================================================================
   CONFIDENTIAL OWNER PROPOSAL BANNER (Espace Propriétaires)
   ========================================================================== */
.banner-proprio {
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 42px 30px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201, 162, 39, 0.3);
  position: relative;
  overflow: hidden;
}

.banner-proprio::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

@media (min-width: 860px) {
  .banner-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.banner-title span {
  color: var(--gold-400);
}

.banner-text {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 20px;
}

.confidential-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
}

/* ==========================================================================
   STATS COUNTERS
   ========================================================================== */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: 35px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green-900);
}

.stat-item-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ==========================================================================
   PROPERTY DETAIL PAGE
   ========================================================================== */
.property-header-section {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 30px 0 20px;
}

.property-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.property-price-block {
  text-align: right;
}

@media (max-width: 767px) {
  .property-price-block {
    text-align: left;
    margin-top: 6px;
  }
}

.property-price-main {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green-900);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 25px 0 35px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
}

@media (max-width: 767px) {
  .gallery-main {
    height: 250px;
  }
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 767px) {
  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}

.gallery-thumb-item {
  height: 128px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

@media (max-width: 767px) {
  .gallery-thumb-item {
    width: 95px;
    height: 68px;
    flex-shrink: 0;
  }
}

.gallery-thumb-item:hover, .gallery-thumb-item.active {
  border-color: var(--gold-500);
  opacity: 0.9;
}

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

/* Detail Specs Table & Amenities */
.specs-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-box {
  background: var(--slate-50);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

.spec-box-label {
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-box-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 4px;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-50);
  color: var(--green-850);
  border: 1px solid var(--green-100);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Confidentiality Notice Alert */
.alert-confidential {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #854d0e;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  font-size: 0.92rem;
}

/* Detail Sidebar */
.detail-sidebar {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.85);
  border-top: 2px solid var(--gold-600);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 45px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-400);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-bottom {
  background: #020c08;
  padding: 20px 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MOBILE BOTTOM BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
  z-index: 999;
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-bar-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-600);
  gap: 4px;
}

.bottom-bar-link.active {
  color: var(--green-800);
}

.bottom-bar-link.highlight {
  color: var(--gold-600);
}

.bottom-bar-link svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--slate-700);
}

.modal-close:hover {
  background: var(--slate-200);
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
