/* ============================================
   NEWKEY - Agence Immobilière
   CSS Custom avec Bootstrap 5
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Variables CSS --- */
:root {
  --night-blue: #1a3a5c;
  --gold: #efaf00;
  --champagne: #d4af37;
  --cream: #f8f9fa;
  --deep-night: #0f1f35;
  --text-primary: #2c3e50;
  --text-light: #666666;
  --border-light: #e0e0e0;
  --border: #e0e0e0;
  --light: #f8f9fa;
  --secondary: #666666;
  --accent: #efaf00;
  --white: #ffffff;
  --success: #28a745;

  --font-playfair: 'Playfair Display', serif;
  --font-display: 'Playfair Display', serif;
  --font-inter: 'Inter', sans-serif;

  --radius-card: 12px;
  --radius-pill: 50px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-playfair);
  font-weight: 400;
}

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

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--champagne);
}

/* ============================================
   HEADER
   ============================================ */
.af-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  transition: var(--transition);
  background: transparent;
}

.af-header.scrolled {
  background: var(--white) !important;
  box-shadow: var(--shadow-header);
}

.af-header.scrolled .nav-link,
.af-header.scrolled .logo-text {
  color: var(--text-primary) !important;
}

.af-header.scrolled .logo-icon {
  background: var(--gold);
  color: var(--night-blue);
}

.af-header.scrolled .hamburger-line {
  background: var(--night-blue) !important;
}

/* Logos : blanc par défaut, couleur au scroll */
.logo-couleur {
  display: none;
}

.logo-blanc {
  display: block;
}

.af-header.scrolled .logo-blanc {
  display: none;
}

.af-header.scrolled .logo-couleur {
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night-blue);
  font-family: var(--font-playfair);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--white);
}

.nav-link {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--night-blue);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.35);
}
.btn-outline-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  background: transparent;
  color: rgba(30, 40, 60, 0.85);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  border: 2px solid rgba(30, 40, 60, 0.85);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-gray:hover {
  background: rgba(30, 40, 60, 0.85);
  color: var(--white);
}
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  background: transparent;
  color: white;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid white;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: var(--gold);
  color: var(--white);
}
.af-header.scrolled .btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  background: transparent;
  color: rgba(30, 40, 60, 0.85);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(30, 40, 60, 0.85);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--night-blue);
  z-index: 1001;
  padding: 80px 40px 40px;
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-playfair);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-menu:hover {
  color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-mobile {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 92, 0.7) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 70px;
}

.hero-title {
  font-family: var(--font-playfair);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-subtitle {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

/* --- Search Bar --- */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  margin-top: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.advanced-search-form {
  max-width: 1200px;
}

.search-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
  display: block;
}

.search-input,
.search-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: var(--gold);
}

.search-input::placeholder {
  color: rgba(102, 102, 102, 0.5);
}

.search-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--night-blue);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.search-btn-dark {
  background: var(--night-blue);
  color: var(--white);
}

.search-btn-dark:hover {
  background: var(--gold);
  color: var(--night-blue);
}

.search-btn-gold {
  background: var(--gold);
  color: var(--night-blue);
}

/* Advanced search form (home) */
.advanced-search-form form > .row {
  align-items: stretch;
}

.advanced-search-form form > .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.advanced-search-form .search-select,
.advanced-search-form .search-input {
  background: var(--white);
  border: 1px solid var(--border-light);
  flex: 1 1 auto;
  min-height: 48px;
}

.advanced-search-form .search-select:focus,
.advanced-search-form .search-input:focus {
  border-color: var(--gold);
}

.search-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.search-actions .search-btn {
  flex: 1 1 auto;
  min-height: 48px;
}

.search-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.search-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
}

.search-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: bounce 2s infinite;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-family: var(--font-playfair);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text-primary);
}

.section-title em {
  color: var(--gold);
  font-style: italic;
}

.section-title.white {
  color: var(--white);
}

.title-underline {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin-top: 16px;
}

.title-underline.center {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  max-width: 600px;
  margin-top: 16px;
}

.section-subtitle.white {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.property-card {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 380px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
  }
  .property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  }

  /* ===== IMAGE ===== */
  .card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .property-card:hover .card-image-wrap img {
    transform: scale(1.06);
  }
  .card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
    pointer-events: none;
  }

  /* ===== BADGES ===== */
  .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
  }
  .badge {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .badge-sale {
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
  }
  .badge-ref {
    background: rgba(255, 255, 255, 0.88);
    color: #1a1a1a;
  }

  /* ===== ACTIONS (favoris / partage) ===== */
  .card-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
  }
  .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .action-btn:hover {
    background: #fff;
    color: #1a1a1a;
    transform: scale(1.1);
  }
  .action-btn.active {
    color: #e74c3c;
    background: #fff;
  }
  .action-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Tooltip partage */
  .share-wrap {
    position: relative;
  }
  .share-tooltip {
    position: absolute;
    bottom: 48px;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
  }
  .share-tooltip.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* ===== CORPS ===== */
  .card-body {
    padding: 16px;
  }
  .card-title {
    font-size: 17px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
    margin-bottom: 14px;
  }
  .card-location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #aaa;
  }

  /* ===== CARACTÉRISTIQUES ===== */
  .card-features {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 14px;
  }
  .feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
  }
  .feature svg {
    width: 16px;
    height: 16px;
    color: #aaa;
    flex-shrink: 0;
  }

  /* ===== FOOTER (prix + lien) ===== */
  .property-features {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 14px;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.feature-icon {
    width: 16px;
    height: 16px;
    color: #aaa;
    flex-shrink: 0;
}
  .card-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .price {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-family: var(--font-inter);
  }
  .price-unit {
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
    margin-left: 4px;
  }
  .detail-link {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
  }
  .detail-link:hover {
    color: #1a1a1a;
  }
  .detail-link svg {
    width: 14px;
    height: 14px;
  }

.property-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.card-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.btn-card-action {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--night-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-card-action:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.4);
}

.btn-card-action.active {
  background: var(--gold);
  color: #ffffff;
}

.btn-card-action:active {
  transform: scale(0.95);
}

.btn-card-action i {
  transition: transform 0.25s ease;
}

.btn-card-action:hover i {
  transform: scale(1.1);
}

.property-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.property-card:hover .property-title a {
  color: var(--night-blue);
}

.badge {
  position: absolute;
  top: 16px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.badge-sale {
  left: 16px;
  background: var(--night-blue);
  color: var(--white);
}

.badge-rent {
  left: 16px;
  background: var(--gold);
  color: var(--night-blue);
}

.badge-ref {
  right: 16px;
  background: white;
  color: var(--night-blue);
}

.badge-sold {
  left: 16px;
  background: var(--text-light);
  color: var(--white);
}

.property-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-title {
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.property-card:hover .property-title {
  color: var(--night-blue);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.property-location i {
  color: var(--text-primary);
  font-size: 14px;
}

.property-features {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  font-size: 13px;
}

.property-feature i {
  color: var(--text-primary);
  font-size: 14px;
}

.property-price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--night-blue);
  padding: 80px 0;
}

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

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.stat-number {
  font-family: var(--font-inter);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-top: 8px;
}

/* ============================================
   CITY CARDS
   ============================================ */
.city-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  height: 100%;
}

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

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

.city-card:hover .city-overlay-img {
  opacity: 1;
}

.city-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.city-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.city-overlay-img {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 92, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.city-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--night-blue);
}

.city-body {
  padding: 24px;
}

.city-name {
  font-family: var(--font-playfair);
  font-size: 24px;
  color: var(--text-primary);
}

.city-desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 32px;
  height: 100%;
}

.testimonial-quote {
  color: var(--gold);
  font-size: 32px;
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.testimonial-name {
  font-family: var(--font-inter);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.testimonial-role {
  color: var(--text-light);
  font-size: 13px;
}

/* Swiper customization */
.swiper-pagination-bullet {
  background: #999 !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  opacity: 1 !important;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 92, 0.7);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  position: relative;
  padding: 140px 0 100px;
  background-size: cover;
  background-position: center;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
                180deg,
                rgba(10, 15, 30, 0.1) 0%,
                rgba(10, 15, 30, 0.2) 30%,
                rgba(10, 15, 30, 0.33) 100%
            );
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .current {
  color: var(--gold);
}



/* ============================================
   PAGINATION
   ============================================ */
.pagination-main .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.pagination-main .pagination li {
  display: inline-flex;
}

.pagination-main .pagination li a,
.pagination-main .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.pagination-main .pagination li a:hover {
  background: var(--gold);
  color: var(--night-blue);
  border-color: var(--gold);
}

.pagination-main .pagination li.active a,
.pagination-main .pagination li.active span {
  background: var(--night-blue);
  color: var(--white);
  border-color: var(--night-blue);
}

.pagination-main .pagination li.disabled span {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--cream);
}

/* ============================================
   PROPERTY DETAIL
   ============================================ */
.gallery-main {
  position: relative;
  /* height: 50vh; */
  min-height: 400px;
  overflow: hidden;
  cursor: pointer;
}

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

.gallery-thumb {
  width: 96px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

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

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

.gallery-main-link {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-main .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.gallery-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  cursor: pointer;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-inter);
  font-size: 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.gallery-overlay:hover {
  background: rgba(26, 26, 26, 0.75);
}

.gallery-hidden {
  display: none;
}

.spec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.spec-icon {
  color: var(--gold);
  font-size: 18px;
}

.spec-label {
  font-size: 12px;
  color: var(--text-light);
}

.spec-value {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.feature-tag i {
  color: var(--gold);
  font-size: 12px;
}

/* Agent Card Sticky */
.agent-card {
  position: sticky;
  top: 94px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 20px;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  color: var(--night-blue);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav.prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-thumbs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.agency-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  height: 100%;
}

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

.contact-form .form-control {
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 14px;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: none;
  background: var(--white);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.value-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

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

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--gold);
  color: var(--night-blue);
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(201, 169, 110, 0.3);
  transition: var(--transition);
  margin: 0 auto 16px;
}

.team-member:hover .team-avatar {
  border-color: var(--gold);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
  min-height: 100vh;
  background: var(--night-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-bg {
  position: absolute;
  font-family: var(--font-playfair);
  font-size: 200px;
  font-weight: 700;
  color: rgba(201, 169, 110, 0.07);
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.error-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--gold);
  font-size: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.af-footer {
  background: var(--deep-night);
  color: var(--white);
  padding-top: 60px;
}

.footer-title {
  font-family: var(--font-playfair);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact i {
  color: var(--gold);
  margin-top: 3px;
  font-size: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 14px;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter .form-control:focus {
  outline: none;
  border-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 40px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* AOS-style scroll animations */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
  transform: translateY(40px);
}

[data-aos="fade-down"] {
  transform: translateY(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: var(--night-blue);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.5);
}

/* ============================================
   QUICK CONTACT FLOATING BUTTON
   ============================================ */
.quick-contact-widget {
  position: fixed;
  bottom: 92px;
  right: 30px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-inter);
}

.quick-contact-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--night-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
  transition: var(--transition);
}

.quick-contact-toggle:hover,
.quick-contact-widget.is-open .quick-contact-toggle {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.5);
}

.quick-contact-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  pointer-events: none;
}

.quick-contact-widget.is-open .quick-contact-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-contact-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  position: relative;
}

.quick-contact-item:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.quick-contact-item.phone {
  background: var(--night-blue);
}

.quick-contact-item.whatsapp {
  background: #25d366;
}

.quick-contact-item.email {
  background: #ea4335;
}

.quick-contact-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--night-blue);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.quick-contact-item:hover .quick-contact-label {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .quick-contact-widget {
    bottom: 84px;
    right: 20px;
  }

  .quick-contact-label {
    display: none;
  }
}

/* ============================================
   UTILITAIRES / ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

/* ============================================
   PAGE DÉTAIL
   ============================================ */
.breadcrumb-main {
  background: var(--light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-main .breadcrumb {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.breadcrumb-main a {
  color: var(--text-light);
}

.breadcrumb-main a:hover {
  color: var(--gold);
}

.section-padding {
  padding: 80px 0;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* --- Barre d'infos --- */
.info-bar {
  background: var(--night-blue);
  padding: 1.5rem 0;
}

.info-bar-item {
  text-align: center;
  padding: 0.75rem 1.5rem;
  position: relative;
}

.info-bar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.info-bar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.info-bar-value {
  font-family: var(--font-inter);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* --- Fiche technique --- */
.detail-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-specs li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.detail-specs .spec-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.detail-specs .spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* --- Formulaire contact sticky --- */
.contact-sticky-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 94px;
}

.form-control-custom {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control-custom:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
  outline: none;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--night-blue);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-accent:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.35);
}

/* --- Cartes biens similaires --- */
.project-card {
  position: relative;
  display: block;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--white);
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--gold);
  color: var(--night-blue);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15, 31, 53, 0.9) 0%, rgba(15, 31, 53, 0.4) 50%, transparent 100%);
}

.project-price {
  font-family: var(--font-inter);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.project-name {
  font-family: var(--font-playfair);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.project-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   BLOG
   ============================================ */
.section-detail-content {
  padding-top: 90px;
  padding-bottom: 80px;
}

/* --- Liste des articles --- */
.blog-article {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.blog-article:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.article-media {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-article:hover .article-media img {
  transform: scale(1.05);
}

.article-detail {
  padding: 1.75rem;
}

.article-title {
  font-family: var(--font-playfair);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

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

.article-title a:hover {
  color: var(--gold);
}

.article-detail p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-light);
  gap: 1rem;
}

.author-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.author-meta a {
  color: var(--gold);
}

.author-meta i {
  margin-right: 0.35rem;
}

.blog-page .btn-primary,
.detail-blog .btn-primary {
  background: var(--gold);
  color: var(--night-blue);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.blog-page .btn-primary:hover,
.detail-blog .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 169, 110, 0.3);
}

/* --- Détail d'un article --- */
.breadcrumb-single {
  margin-bottom: 2rem;
}

.breadcrumb-single .breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.breadcrumb-single .breadcrumb a {
  color: var(--text-light);
}

.breadcrumb-single .breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-single .breadcrumb .active {
  color: var(--text-primary);
  font-weight: 500;
}

.detail-blog .page-title h1 {
  font-family: var(--font-playfair);
  font-size: clamp(28px, 3vw, 42px);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.detail-blog .page-title .author-meta {
  margin-bottom: 1.5rem;
}

.blog-article .article-detail {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.blog-article .article-detail p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.blog-article .article-detail h2,
.blog-article .article-detail h3,
.blog-article .article-detail h4 {
  font-family: var(--font-playfair);
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.blog-article .article-detail img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  margin: 1.5rem 0;
}

/* --- Articles similaires --- */
.blog-section {
  margin-top: 4rem;
}

.blog-section-title {
  font-family: var(--font-playfair);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.post-card-item {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  height: 100%;
}

.post-card-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}

.figure-block {
  height: 180px;
  overflow: hidden;
}

.item-thumb a {
  display: block;
  height: 100%;
}

.div-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.post-card-item:hover .div-img {
  transform: scale(1.05);
}

.post-card-item .div-img {
  background-size: cover !important;
}

.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.post-card-description {
  flex: 1;
}

.post-card-description .list-inline {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.post-card-title {
  font-family: var(--font-playfair);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.post-card-description p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.read:hover {
  color: var(--night-blue);
}

.post-card-author {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Sidebar --- */
.container-sidebar {
  padding-left: 2rem;
}

.houzez_sticky {
  position: sticky;
  top: 94px;
  align-self: flex-start;
}

.widget {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-family: var(--font-playfair);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  color: var(--text-primary);
}

.widget-body .media {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.widget-body .media:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.media-left {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.media-body .media-heading {
  font-family: var(--font-playfair);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.media-body .media-heading a {
  color: var(--text-primary);
}

.media-body .media-heading a:hover {
  color: var(--gold);
}

.media-body p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.media-body .amenities p {
  margin-bottom: 0;
  font-size: 0.75rem;
  color: var(--gold);
}

/* ============================================
   CHATBOT
   ============================================ */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  font-family: var(--font-inter);
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  color: var(--night-blue);
  border: none;
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.5);
}

.chatbot-panel {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.chatbot-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: var(--night-blue);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chatbot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chatbot-info strong {
  font-size: 0.95rem;
}

.chatbot-info span {
  font-size: 0.75rem;
  color: var(--gold);
}

.chatbot-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

.chatbot-close:hover {
  opacity: 1;
  color: var(--gold);
}

.chatbot-messages {
  flex: 1;
  min-height: 300px;
  max-height: 360px;
  overflow-y: auto;
  padding: 18px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message {
  display: flex;
}

.chatbot-message.bot {
  justify-content: flex-start;
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.chatbot-message.bot .chatbot-bubble {
  background: var(--white);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-card);
}

.chatbot-message.user .chatbot-bubble {
  background: var(--gold);
  color: var(--night-blue);
  border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.chatbot-suggestions button {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-suggestions button:hover {
  background: var(--gold);
  color: var(--night-blue);
}

.chatbot-form {
  display: flex;
  padding: 14px 18px;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  gap: 10px;
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.chatbot-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.chatbot-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night-blue);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-send:hover {
  filter: brightness(1.05);
  transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }

  .desktop-nav,
  .desktop-cta {
    display: none !important;
  }

  .af-header {
    background: var(--white);
  }

  .af-header .logo-text,
  .af-header .nav-link {
    color: var(--text-primary);
  }

  .af-header .logo-blanc {
    display: none;
  }

  .af-header .logo-couleur {
    display: block;
  }

  .hero-title {
    font-size: 36px;
  }

  .gallery-main {
    height: 40vh;
  }

  .agent-card {
    position: static;
    margin-top: 40px;
  }

  .filter-section.sticky-top {
    position: static !important;
  }

  .section-padding {
    padding: 60px 0;
  }

  .info-bar-item:not(:last-child)::after {
    display: none;
  }

  .contact-sticky-card {
    position: static;
    margin-top: 40px;
  }

  .project-card {
    height: 320px;
  }

  .container-sidebar {
    padding-left: 0;
    margin-top: 3rem;
  }

  .houzez_sticky {
    position: static;
  }

  .article-media {
    height: 280px;
  }
}

@media (max-width: 991px) {
  .search-actions {
    flex-direction: row;
  }

  .search-actions .search-btn {
    flex: 1 1 50%;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .search-bar {
    padding: 16px;
    margin-top: 24px;
  }

  .advanced-search-form {
    max-width: 100%;
  }

  .search-actions {
    flex-direction: column;
  }

  .search-actions .search-btn {
    flex: 1 1 auto;
  }

  .stats-section {
    padding: 60px 0;
  }

  .stat-number {
    font-size: 32px;
  }

  .page-header {
    padding: 120px 0 80px;
  }

  .error-bg {
    font-size: 120px;
  }

  .gallery-main {
    height: 35vh;
    min-height: 280px;
  }

  .gallery-thumb {
    min-height: 140px;
  }

  .info-bar-value {
    font-size: 0.95rem;
  }

  .project-card {
    height: 300px;
  }

  .section-detail-content {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .article-media {
    height: 220px;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-section-title {
    font-size: 1.5rem;
  }
}

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

/* ============================================
   HEADER USER ACTIONS (FAVORIS / COMPARER)
   ============================================ */
.nav-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  position: relative;
}

.nav-link-icon i {
  font-size: 16px;
}

.af-header.scrolled .nav-link-icon {
  color: var(--text-primary);
}

.nav-link-icon:hover,
.nav-link-icon.active {
  color: var(--gold) !important;
}

.nav-link-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link-icon:hover::after,
.nav-link-icon.active::after {
  width: 100%;
}

/* ============================================
   COMPARATEUR
   ============================================ */
.compare-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.compare-empty-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}

.compare-empty h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.compare-empty p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.compare-table-wrapper {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  margin: 0;
}

.compare-table th,
.compare-table td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
  min-width: 220px;
}

.compare-table th {
  background: #fafbfc;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: none;
}

.compare-label-col {
  min-width: 180px;
  width: 180px;
  background: #fafbfc;
  font-weight: 600;
  color: var(--text-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.compare-table thead .compare-label-col {
  background: #f5f6f8;
  z-index: 3;
}

.compare-property-col {
  min-width: 260px;
}

.compare-property-header {
  position: relative;
  text-align: center;
}

.compare-property-img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

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

.compare-property-header:hover .compare-property-img img {
  transform: scale(1.05);
}

.compare-property-title {
  font-family: var(--font-playfair);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
  padding-right: 34px;
  text-align: left;
}

.compare-property-title a:hover {
  color: var(--gold);
}

.btn-remove-compare {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-remove-compare:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.1);
}

.compare-value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.compare-price {
  font-family: var(--font-playfair);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

.compare-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.compare-badge.badge-sale {
  background: rgba(40, 167, 69, 0.12);
  color: #28a745;
}

.compare-badge.badge-rent {
  background: rgba(23, 162, 184, 0.12);
  color: #17a2b8;
}

.compare-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-features li {
  font-size: 13px;
  color: var(--text-primary);
  padding: 3px 0;
}

.compare-features li i {
  color: var(--gold);
  margin-right: 6px;
  font-size: 11px;
}

.compare-description {
  margin: 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
}

.btn-clear-compare {
  padding: 10px 22px;
  font-size: 13px;
}

@media (max-width: 991px) {
  .compare-table th,
  .compare-table td {
    padding: 14px 12px;
  }

  .compare-label-col {
    min-width: 150px;
    width: 150px;
  }

  .compare-property-col {
    min-width: 220px;
  }
}

@media (max-width: 576px) {
  .compare-empty {
    padding: 50px 16px;
  }

  .compare-empty h2 {
    font-size: 22px;
  }

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

  .compare-label-col {
    min-width: 130px;
    width: 130px;
  }

  .compare-property-col {
    min-width: 200px;
  }

  .compare-property-img {
    height: 120px;
  }
}

/* ============================================
   DETAIL BIEN - ACTIONS FAVORIS / COMPARER
   ============================================ */
.btn-card-action.flex-fill {
  width: auto;
    height: auto;
    min-height: 37px;
    padding: 5px 0px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    gap: 8px;
    white-space: nowrap;
}

.btn-card-action.flex-fill i {
  font-size: 15px;
}

.btn-card-action.flex-fill span {
  display: inline;
}

@media (max-width: 576px) {
  .btn-card-action.flex-fill span {
    display: none;
  }
}

/* ============================================
   FLOATING ACTIONS (FAVORIS / COMPARER)
   ============================================ */
.float-actions {
  position: fixed;
  right: 30px;
  bottom: 155px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.float-action-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--night-blue);
  font-size: 18px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  animation: floatIn 0.6s ease-out both;
}

.float-action-btn:nth-child(1) { animation-delay: 0.1s; }
.float-action-btn:nth-child(2) { animation-delay: 0.25s; }

.float-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  animation: glowPulse 2.5s ease-in-out infinite;
}

.float-action-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.35);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
  z-index: -2;
}

.float-action-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.35);
}

.float-action-btn:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.float-action-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.float-action-btn:hover .float-action-icon {
  transform: scale(1.15);
}

.float-action-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.2);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
  z-index: -2;
}

.float-action-btn:hover .float-action-ring {
  opacity: 1;
  transform: scale(1.25);
  border-color: rgba(201, 169, 110, 0.08);
}

.float-action-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc3545;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.35);
  z-index: 3;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-action-label {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--night-blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.float-action-label::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--night-blue);
}

.float-action-btn:hover .float-action-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.6);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(201, 169, 110, 0);
  }
}

@media (max-width: 991px) {
  .float-actions {
    right: 20px;
    bottom: 150px;
    gap: 12px;
  }

  .float-action-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .float-action-label {
    display: none;
  }
}



/* ===== CONTENEUR PRINCIPAL ===== */
.search-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ===== ONGLETS ACHETER / LOUER ===== */
.search-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}

.search-tab {
  padding: 12px 28px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-tab:hover {
  background: #fff;
  color: #1a365d;
}

.search-tab.active {
  background: #fff;
  color: #1a365d;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.search-tab i {
  font-size: 13px;
}

/* ===== FORMULAIRE ===== */
.search-form {
  background: transparent;
  border-radius: 0 16px 16px 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  /* border: 1px solid rgba(226, 232, 240, 0.8); */
}

.search-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}

/* ===== CHAMPS SELECT ===== */
.search-field {
  position: relative;
  flex: 1;
  min-width: 0; /* évite le débordement */
}

.search-select {
  width: 100%;
  height: 52px;
  padding: 0 36px 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.25s ease;
  outline: none;
}

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

.search-select:focus {
  border-color: #1a365d;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 11px;
  pointer-events: none;
}

/* ===== BOUTON RECHERCHER ===== */
.search-field-btn {
  flex: 0 0 auto;
}

.search-btn {
  height: 52px;
  padding: 0 32px;
  background: #1a365d;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: #2c5282;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

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

.search-btn i {
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .search-row {
    flex-wrap: wrap;
  }

  .search-field {
    flex: 1 1 calc(50% - 6px);
    min-width: 160px;
  }

  .search-field-btn {
    flex: 1 1 100%;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .search-form {
    padding: 16px;
    border-radius: 0 12px 12px 12px;
  }

  .search-tab {
    padding: 10px 20px;
    font-size: 13px;
  }

  .search-field {
    flex: 1 1 100%;
  }

  .search-select {
    height: 48px;
    font-size: 13px;
  }

  .search-btn {
    height: 48px;
    font-size: 13px;
  }
}

 .hero-section {
            position: relative;
            width: 100%;
            max-width: 100%;
            min-height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            background: linear-gradient(
                180deg,
                rgba(10, 15, 30, 0.3) 0%,
                rgba(10, 15, 30, 0.6) 50%,
                rgba(10, 15, 30, 0.85) 100%
            ),
            url('../images/banner.png') center/cover no-repeat;
        }

        .hero-content {
            text-align: center;
            margin-bottom: 40px;
            margin-top: auto;
        }

        .hero-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2rem, 5vw, 3.5rem);
            color: #ffffff;
            font-weight: 400;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }

        .hero-title span {
            color: var(--gold);
            font-style: italic;
        }

        .hero-subtitle {
            font-family: 'Inter', sans-serif;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            color: rgba(255, 255, 255, 0.75);
            font-weight: 300;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* ===== SEARCH BLOCK ===== */
        .search-block {
            width: 100%;
            max-width: 1100px;
            margin-top: 30px;
            margin-bottom: auto;
        }

        /* Tabs Acheter / Louer */
        .search-tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .tab-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 28px;
            border-radius: 10px;
            border: none;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

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

        .tab-btn.active {
            background: #ffffff;
            color: #1a1a2e;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .tab-btn:not(.active) {
            background: rgba(30, 40, 60, 0.85);
            color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tab-btn:not(.active):hover {
            background: rgba(40, 50, 75, 0.95);
        }

        /* Glassmorphism Container */
        .search-glass {
            background: rgba(20, 25, 40, 0.65);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 28px 32px;
            box-shadow:
                0 25px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        /* Row 1 - Main Filters */
        .filters-row {
            display: flex;
            align-items: flex-end;
            gap: 12px;
            flex-wrap: wrap;
        }

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

        .filter-label {
            display: block;
            font-size: 0.8rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 8px;
            letter-spacing: 0.3px;
        }

        .filter-select {
            width: 100%;
            appearance: none;
            -webkit-appearance: none;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            padding: 13px 36px 13px 14px;
            color: #ffffff;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 400;
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        

        .filter-select:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .filter-select:focus {
            outline: none;
            border-color: rgba(201, 169, 110, 0.5);
            box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
        }

        .filter-select .icon-left {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
            width: 18px;
            text-align: center;
        }

        .filter-select .text {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .filter-select .icon-right {
            position: absolute;
            right: 14px;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.7rem;
            transition: transform 0.3s ease;
        }

        .filter-select.open .icon-right {
            transform: rotate(180deg);
        }

        
        /* Search Button */
        .btn-search {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 13px 26px;
            background: linear-gradient(135deg, #1e3a5f 0%, #2a4a73 100%);
            border: none;
            border-radius: 12px;
            color: #ffffff;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
        }

        .btn-search:hover {
            background: linear-gradient(135deg, #254a75 0%, #345a8a 100%);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(30, 58, 95, 0.5);
        }

        .btn-search i {
            font-size: 0.85rem;
        }

        /* Divider */
        .divider {
            height: 1px;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.1) 20%,
                rgba(255, 255, 255, 0.15) 50%,
                rgba(255, 255, 255, 0.1) 80%,
                transparent 100%
            );
            margin: 20px 0;
        }

        /* Row 2 - Advanced Filters */
        .filters-row-advanced {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

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

        .btn-reset {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
            padding: 10px 16px;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-weight: 400;
            cursor: pointer;
            transition: all 0.25s ease;
            white-space: nowrap;
        }

        .btn-reset:hover {
            color: #ffffff;
        }

        .btn-reset i {
            font-size: 0.8rem;
            transition: transform 0.4s ease;
        }

        .btn-reset:hover i {
            transform: rotate(-180deg);
        }

        /* Custom Dropdown Menu */
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: rgba(25, 30, 45, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 8px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.25s ease;
            z-index: 100;
            max-height: 240px;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

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

        .dropdown-item {
            padding: 10px 16px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.88rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .dropdown-item:hover {
            background: rgba(201, 169, 110, 0.15);
            color: #ffffff;
        }

        .dropdown-item.selected {
            background: rgba(201, 169, 110, 0.2);
            color: var(--gold);
        }

        /* Scrollbar custom */
        .dropdown-menu::-webkit-scrollbar {
            width: 5px;
        }
        .dropdown-menu::-webkit-scrollbar-track {
            background: transparent;
        }
        .dropdown-menu::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .search-glass {
                padding: 22px 24px;
            }
            .filter-group,
            .filter-group-advanced {
                min-width: 140px;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                min-height: auto;
                padding: 30px 16px 40px;
            }
            .search-glass {
                padding: 20px 18px;
                border-radius: 16px;
            }
            .filters-row,
            .filters-row-advanced {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            .filter-group,
            .filter-group-advanced {
                min-width: 100%;
            }
            .btn-search,
            .btn-reset {
                width: 100%;
                justify-content: center;
                margin-left: 0;
            }
            .divider {
                margin: 16px 0;
            }
            .tab-btn {
                flex: 1;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.8rem;
            }
            .search-glass {
                padding: 18px 14px;
            }
            .filter-select {
                padding: 12px 32px 12px 12px;
                font-size: 0.85rem;
            }
        }

        /* Animation d'entrée */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .search-block {
            animation: fadeInUp 0.8s ease forwards;
        }



        /* ============================================
   FILTERS SIDEBAR
   ============================================ */
.filter-section {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.filter-title {
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* .filter-group {
  margin-bottom: 24px;
} */

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  accent-color: var(--gold);
  cursor: pointer;
}

.filter-option span {
  font-size: 14px;
  color: var(--text-light);
}

.filter-option:hover span {
  color: var(--text-primary);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--cream);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--gold);
  color: var(--night-blue);
}

.category-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Mobile filter drawer */
.filter-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  padding: 80px 24px 40px;
  transition: left 0.4s ease;
  overflow-y: auto;
}

.filter-drawer.open {
  left: 0;
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.filter-overlay.open {
  opacity: 1;
  visibility: visible;
}