/* ============================================================
   ADVANCEIMMO — Design System
   Charte graphique: Orange #E8601C + Navy #2C3142
   Font: Roboto (Google Fonts)
   React-portable: each section maps to a React component
   ============================================================ */

/* === VARIABLES === */
:root {
  --primary:       #E8601C;
  --primary-dark:  #CF5218;
  --primary-light: #FFF4EE;
  --secondary:     #2C3142;
  --secondary-dark:#1E2232;
  --bg:            #F8F9FA;
  --white:         #FFFFFF;
  --text:          #2C3142;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --success:       #10B981;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:  0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl:     0 20px 60px rgba(0,0,0,0.18);
  --radius:        10px;
  --radius-lg:     16px;
  --transition:    all 0.3s ease;
  --font:          'Roboto', sans-serif;
  --container:     1200px;
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }

/* === UTILITIES === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-header.centered { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 32px; height: 2px; background: var(--primary); flex-shrink: 0;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { display: none; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--secondary); margin-bottom: 12px; line-height: 1.25; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }
.section-header.centered .section-subtitle { margin: 0 auto; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }

/* === BADGES === */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
}
.badge-vente   { background: var(--primary);   color: white; }
.badge-location{ background: var(--secondary);  color: white; }
.badge-peb-a   { background: #059669; color: white; }
.badge-peb-b   { background: #10B981; color: white; }
.badge-new     { background: #F59E0B; color: white; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2px;
  border: 2px solid transparent; transition: var(--transition); cursor: pointer;
  white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,96,28,0.4); }
.btn-secondary { background: var(--secondary); color: white; border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline   { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.6); color: white; }
.btn-outline-white:hover { background: white; color: var(--secondary); border-color: white; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* === HEADER === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: white; height: 80px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }
.header-inner {
  display: flex; align-items: center; height: 80px; gap: 32px;
}
.logo img { height: 48px; width: auto; }
.nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav a {
  padding: 8px 16px; border-radius: 7px;
  font-weight: 500; font-size: 0.92rem; color: var(--text);
  transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.85rem; margin-left: 8px;
}
.header-phone i { color: var(--primary); }
.header-phone a { font-weight: 600; color: var(--secondary); font-size: 0.9rem; }
.header-phone a:hover { color: var(--primary); }
.header-cta { margin-left: 16px; }
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--secondary); border-radius: 2px; transition: var(--transition);
}

/* === HERO (Homepage) === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; margin-top: 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,34,50,0.88) 0%, rgba(28,34,50,0.55) 60%, rgba(28,34,50,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  color: white; max-width: 680px; padding: 80px 0 60px;
}
.hero-content .eyebrow { color: var(--primary); }
.hero-content .eyebrow::before { background: var(--primary); }
.hero-content h1 {
  font-size: 3.4rem; font-weight: 700; line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--primary); }
.hero-content p {
  font-size: 1.12rem; color: rgba(255,255,255,0.82);
  margin-bottom: 36px; max-width: 500px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-search {
  position: relative; z-index: 2;
  margin-top: 56px; background: white;
  border-radius: 14px; padding: 10px;
  display: flex; gap: 10px; align-items: stretch;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}
.search-type-tabs {
  display: flex; background: var(--bg); border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.search-type-tabs button {
  padding: 11px 22px; border: none; background: transparent;
  font-weight: 600; color: var(--text-muted); transition: var(--transition);
  font-size: 0.88rem;
}
.search-type-tabs button.active { background: var(--primary); color: white; border-radius: 7px; }
.search-type-tabs button:hover:not(.active) { background: var(--border); }
.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; flex: 1; min-width: 200px;
  border-left: 1px solid var(--border);
}
.search-input-wrap i { color: var(--text-muted); }
.search-input-wrap input {
  border: none; outline: none; background: transparent;
  font-size: 0.95rem; color: var(--text); width: 100%;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }

/* === STATS BAR === */
.stats-bar { background: var(--secondary); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center; padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label  { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 6px; letter-spacing: 0.3px; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: white; border-radius: var(--radius);
  padding: 36px 28px; border: 1.5px solid var(--border);
  transition: var(--transition); text-align: center; cursor: default;
}
.service-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
.service-icon {
  width: 68px; height: 68px; background: var(--primary-light);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; font-size: 1.8rem; color: var(--primary);
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: white; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--secondary); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.service-card .link {
  font-size: 0.88rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px; transition: var(--transition);
}
.service-card:hover .link { gap: 10px; }

/* === PROPERTY CARDS === */
.properties-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.property-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border);
}
.property-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.property-card-img { position: relative; height: 250px; overflow: hidden; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.property-card:hover .property-card-img img { transform: scale(1.06); }
.property-card-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 2; }
.property-card-price {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--secondary); color: white;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 700; font-size: 1.15rem; z-index: 2;
}
.property-card-body { padding: 24px; }
.property-card-ref { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.property-card-title { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 6px; line-height: 1.3; }
.property-card-location {
  color: var(--text-muted); font-size: 0.88rem;
  display: flex; align-items: center; gap: 6px; margin-bottom: 18px;
}
.property-card-location i { color: var(--primary); font-size: 0.8rem; }
.property-card-features {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.feat { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 0.85rem; }
.feat i { color: var(--primary); font-size: 0.9rem; }
.feat span { font-weight: 500; }

/* === WHY US === */
.why-us { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.why-image img { width: 100%; height: 520px; object-fit: cover; }
.why-list { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item-icon {
  width: 46px; height: 46px; background: var(--primary-light);
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.05rem; flex-shrink: 0;
  transition: var(--transition);
}
.why-item:hover .why-item-icon { background: var(--primary); color: white; }
.why-item-text h4 { font-weight: 700; color: var(--secondary); margin-bottom: 4px; font-size: 0.97rem; }
.why-item-text p  { color: var(--text-muted); font-size: 0.87rem; line-height: 1.6; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: white; padding: 80px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-text h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.cta-text p  { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 500px; line-height: 1.7; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: flex-start; }
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p  { color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; align-items: center; gap: 14px; }
.contact-detail-icon {
  width: 46px; height: 46px; background: var(--primary-light);
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.05rem; flex-shrink: 0;
}
.contact-detail-text small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.8px; }
.contact-detail-text a, .contact-detail-text span { font-weight: 600; color: var(--secondary); font-size: 0.95rem; }
.contact-detail-text a:hover { color: var(--primary); }
.contact-social { display: flex; gap: 10px; margin-top: 32px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; transition: var(--transition);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.contact-form-card {
  background: white; padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--secondary); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; font-size: 0.88rem; color: var(--secondary); margin-bottom: 7px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.92rem; color: var(--text); transition: var(--transition); outline: none;
  background: white;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,96,28,0.1); }
.form-group textarea { height: 110px; resize: vertical; }

/* === FOOTER === */
.footer { background: var(--secondary); color: rgba(255,255,255,0.75); }
.footer-top { padding: 60px 0 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-about { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.6); max-width: 260px; }
.footer-tagline { font-style: italic; color: var(--primary); font-size: 0.85rem; margin-top: 10px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; background: rgba(255,255,255,0.08);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-weight: 700; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.87rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--primary); }
.footer-ipi {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border-radius: 8px; padding: 8px 14px;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
.footer-ipi i { color: var(--primary); }

/* ============================================================
   PROPERTY DETAIL PAGES
   ============================================================ */

/* Property Hero Banner */
.property-hero-banner {
  margin-top: 80px;
  background: linear-gradient(135deg, var(--secondary) 0%, #1E2535 100%);
  padding: 40px 0 0;
}
.property-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.property-breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.property-breadcrumb a:hover { color: white; }
.property-breadcrumb i { font-size: 0.65rem; }
.property-breadcrumb span { color: rgba(255,255,255,0.8); }
.property-title-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px; margin-bottom: 28px;
}
.property-title-area h1 {
  font-size: 1.9rem; font-weight: 700; color: white;
  margin-bottom: 8px; line-height: 1.2;
}
.property-title-area .prop-location {
  color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 6px; font-size: 0.9rem;
}
.property-title-area .prop-location i { color: var(--primary); }
.property-title-area .prop-ref { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 6px; }
.property-price-box { text-align: right; flex-shrink: 0; }
.property-price {
  font-size: 2.4rem; font-weight: 700; color: var(--primary);
  line-height: 1; margin-bottom: 4px;
}
.property-price-detail { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.property-price-extra { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-top: 4px; }
.property-header-tags { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 32px; }

/* Gallery */
.gallery-wrapper { background: #111827; }
.gallery-main-wrap { position: relative; overflow: hidden; }
.gallery-main {
  width: 100%; height: 520px;
  cursor: pointer; overflow: hidden; display: block;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s ease; }
.gallery-main img.fading { opacity: 0; }
.gallery-main:hover img:not(.fading) { transform: scale(1.02); }
.gallery-main-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
}
.gallery-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: var(--transition);
  color: var(--secondary); font-size: 1rem;
}
.gallery-nav-btn:hover { background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.25); transform: translateY(-50%) scale(1.05); }
.gallery-nav-btn.prev { left: 18px; }
.gallery-nav-btn.next { right: 18px; }
.gallery-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.65); color: white;
  padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 500;
}
.gallery-zoom-btn {
  position: absolute; top: 18px; right: 18px;
  background: rgba(0,0,0,0.55); color: white;
  border: none; border-radius: 8px; padding: 8px 14px;
  font-size: 0.82rem; display: flex; align-items: center; gap: 6px;
  cursor: pointer; transition: var(--transition); z-index: 10;
}
.gallery-zoom-btn:hover { background: rgba(0,0,0,0.8); }
.gallery-thumbs {
  display: flex; gap: 4px; padding: 6px;
  background: rgba(0,0,0,0.5); overflow-x: auto;
}
.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.gallery-thumb {
  flex-shrink: 0; width: 96px; height: 64px;
  border-radius: 5px; overflow: hidden;
  cursor: pointer; opacity: 0.55; transition: var(--transition);
  border: 2px solid transparent;
}
.gallery-thumb.active { opacity: 1; border-color: var(--primary); }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Property Content Layout */
.property-content { padding: 56px 0 80px; }
.property-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: flex-start; }

/* Features grid */
.property-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px;
}
.pf-item {
  background: var(--bg); padding: 16px 14px; border-radius: 9px;
  display: flex; flex-direction: column; gap: 4px;
  border: 1.5px solid transparent; transition: var(--transition);
}
.pf-item:hover { border-color: var(--primary); background: var(--primary-light); }
.pf-item-icon { font-size: 1.2rem; color: var(--primary); margin-bottom: 4px; }
.pf-item-label { font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.pf-item-value { font-size: 0.95rem; font-weight: 700; color: var(--secondary); }

/* Description */
.prop-section { margin-bottom: 36px; }
.prop-section h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--secondary);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.prop-section h3 i { color: var(--primary); }
.prop-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.rooms-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.rooms-table th {
  text-align: left; padding: 10px 14px; background: var(--secondary);
  color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.rooms-table th:first-child { border-radius: 7px 0 0 7px; }
.rooms-table th:last-child { border-radius: 0 7px 7px 0; }
.rooms-table td { padding: 11px 14px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.rooms-table tr:last-child td { border-bottom: none; }
.rooms-table tr:hover td { background: var(--primary-light); }
.peb-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg); padding: 20px 24px; border-radius: 10px;
  border: 1.5px solid var(--border); margin-top: 12px;
}
.peb-letter-box {
  width: 58px; height: 58px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: white; flex-shrink: 0;
}
.peb-a { background: #059669; }
.peb-b { background: #10B981; }
.peb-details { flex: 1; }
.peb-class { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.peb-value { font-size: 1.1rem; font-weight: 700; color: var(--secondary); }
.peb-co2   { font-size: 0.82rem; color: var(--text-muted); }
.peb-cert  { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Sidebar */
.property-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sidebar-header {
  background: var(--secondary); padding: 20px 24px;
  display: flex; align-items: center; gap: 12px;
}
.sidebar-header h3 { font-size: 1.05rem; font-weight: 700; color: white; }
.sidebar-header i { color: var(--primary); }
.sidebar-body { padding: 24px; }
.agent-profile { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.agent-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
}
.agent-name  { font-weight: 700; color: var(--secondary); font-size: 0.97rem; }
.agent-title { color: var(--text-muted); font-size: 0.82rem; }
.agent-ipi   { font-size: 0.75rem; color: var(--primary); }
.contact-btn-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-phone {
  background: var(--primary-light); color: var(--primary);
  border: 1.5px solid var(--primary); padding: 13px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 700; font-size: 1rem; transition: var(--transition); cursor: pointer;
}
.btn-phone:hover { background: var(--primary); color: white; }
.sidebar-form .form-group { margin-bottom: 12px; }
.sidebar-form .form-group input,
.sidebar-form .form-group textarea,
.sidebar-form .form-group select {
  padding: 10px 14px; font-size: 0.88rem;
}
.sidebar-form .form-group textarea { height: 90px; }
.price-box-card { background: var(--bg); padding: 20px; border-radius: 9px; border: 1px solid var(--border); }
.price-box-card .price-main { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.price-box-card .price-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.price-box-breakdown { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.price-row { display: flex; justify-content: space-between; font-size: 0.87rem; }
.price-row .label { color: var(--text-muted); }
.price-row .value { font-weight: 600; color: var(--secondary); }
.price-row.total { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.price-row.total .label { font-weight: 700; color: var(--secondary); }
.price-row.total .value { color: var(--primary); font-size: 1rem; }
.reference-badge {
  background: rgba(0,0,0,0.04); border-radius: 6px; padding: 8px 12px;
  font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 12px;
}

/* === FLOATING ACTION BAR === */
.float-bar {
  position: fixed; bottom: 24px; right: 24px;
  transform: translateY(calc(100% + 40px));
  z-index: 990;
  background: white; border-radius: 50px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px 8px 8px 20px;
  display: inline-flex; align-items: center; gap: 16px;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  white-space: nowrap; border: 1px solid var(--border);
}
.float-bar.visible { transform: translateY(0); }
.float-bar-price {
  font-weight: 700; color: var(--primary); font-size: 1rem;
  padding-right: 16px; border-right: 1px solid var(--border);
}
.float-bar-actions { display: flex; gap: 8px; }
.float-bar-actions .btn {
  padding: 10px 20px; font-size: 0.88rem; border-radius: 40px;
}


/* === VISIT MODAL === */
.visit-modal {
  position: fixed; inset: 0; z-index: 9997;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.visit-modal.open { opacity: 1; pointer-events: all; }
.visit-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
}
.visit-modal-box {
  position: relative; z-index: 1;
  background: white; border-radius: 16px;
  width: 100%; max-width: 520px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.visit-modal.open .visit-modal-box { transform: translateY(0) scale(1); }
.visit-modal-header {
  background: var(--secondary); color: white;
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
}
.visit-modal-header h3 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.visit-modal-header i { color: var(--primary); }
.visit-modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; transition: var(--transition);
}
.visit-modal-close:hover { background: var(--primary); }
.visit-modal-body { padding: 28px 24px; }
.visit-modal-agent {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: 10px; padding: 14px;
  margin-bottom: 22px; border: 1px solid var(--border);
}
.visit-modal-agent .agent-avatar { width: 44px; height: 44px; font-size: 1rem; }
.visit-modal-footer { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.visit-modal-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.8rem; margin: 4px 0;
}
.visit-modal-divider::before,
.visit-modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* === DIGIACT TOOLTIP === */
.digiact-credit {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.4); font-size: 0.82rem;
  position: relative; cursor: default;
}
.digiact-credit a {
  color: var(--primary); font-weight: 700;
  transition: var(--transition); text-decoration: none;
}
.digiact-credit a:hover { color: #ff8c4a; }
.digiact-tooltip {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-dark); color: rgba(255,255,255,0.88);
  font-size: 0.82rem; line-height: 1.55;
  padding: 12px 16px; border-radius: 10px;
  width: 260px; text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  pointer-events: none; opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(6px);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: normal; z-index: 100;
}
.digiact-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--secondary-dark);
}
.digiact-credit:hover .digiact-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.digiact-tooltip strong { color: var(--primary); }

/* === SHARE BAR === */
.share-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0 6px; flex-wrap: wrap;
}
.share-bar-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-muted); margin-right: 4px; width: 100%;
}
.share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; cursor: pointer; border: 1.5px solid var(--border);
  transition: var(--transition); text-decoration: none;
  font-family: var(--font); background: white; color: var(--text-muted);
  position: relative;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-btn.fb:hover  { background: #1877F2; border-color: #1877F2; color: white; }
.share-btn.wa:hover  { background: #25D366; border-color: #25D366; color: white; }
.share-btn.ln:hover  { background: #0A66C2; border-color: #0A66C2; color: white; }
.share-btn.mail:hover{ background: var(--secondary); border-color: var(--secondary); color: white; }
.share-btn.copy:hover{ background: var(--secondary); border-color: var(--secondary); color: white; }
.share-btn.copy.copied { background: var(--success); border-color: var(--success); color: white; width: auto; padding: 0 12px; border-radius: 18px; font-size: 0.78rem; }

/* Virtual visit button */
.virtual-visit-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; background: linear-gradient(135deg, #1E2232, #2C3142);
  color: white; border-radius: 9px; font-weight: 600; font-size: 0.9rem;
  transition: var(--transition); cursor: pointer; border: none; width: 100%; justify-content: center;
}
.virtual-visit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,49,66,0.35); }
.virtual-visit-btn i { color: var(--primary); font-size: 1.1rem; }

/* === PEB OFFICIEL === */
.peb-official {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.peb-official-header {
  background: var(--secondary); color: white;
  padding: 12px 20px; display: flex; justify-content: space-between; align-items: center;
}
.peb-official-header h4 { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.5px; }
.peb-official-header span { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.peb-scale { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.peb-scale-row {
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.peb-scale-bar {
  height: 28px; border-radius: 0 4px 4px 0;
  display: flex; align-items: center; padding: 0 10px;
  color: white; font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}
.peb-scale-row.active .peb-scale-bar {
  box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
  z-index: 2;
}
.peb-scale-value { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.peb-scale-arrow {
  margin-left: auto; width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 14px solid var(--secondary);
  flex-shrink: 0;
}
/* Classes couleurs officielles belges */
.peb-aplus2 { background: #00862A; width: 52px; }
.peb-aplus  { background: #2BA02B; width: 64px; }
.peb-a      { background: #5BB527; width: 76px; }
.peb-b      { background: #C3D514; color: #333; width: 88px; }
.peb-c      { background: #F7EC14; color: #333; width: 100px; }
.peb-d      { background: #F0AA15; color: #333; width: 112px; }
.peb-e      { background: #E07116; width: 124px; }
.peb-f      { background: #D1401A; width: 136px; }
.peb-g      { background: #C00A0B; width: 148px; }

.peb-official-footer {
  background: var(--bg); padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px;
}
.peb-stats { display: flex; gap: 20px; }
.peb-stat { text-align: center; }
.peb-stat-val { font-size: 1rem; font-weight: 700; color: var(--secondary); display: block; }
.peb-stat-lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.peb-pdf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; background: var(--primary); color: white;
  border-radius: 7px; font-size: 0.8rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
  text-decoration: none;
}
.peb-pdf-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Modal PDF */
.pdf-modal {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.pdf-modal.open { opacity: 1; pointer-events: all; }
.pdf-modal-inner {
  background: white; border-radius: 12px; overflow: hidden;
  width: 90vw; max-width: 860px; height: 85vh;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.pdf-modal-header {
  background: var(--secondary); color: white;
  padding: 14px 20px; display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.pdf-modal-header h4 { font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pdf-modal-header i { color: var(--primary); }
.pdf-modal-close {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.pdf-modal-close:hover { background: var(--primary); }
.pdf-modal iframe { flex: 1; border: none; width: 100%; }

/* === 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; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 2;
}
.lightbox-close:hover { background: var(--primary); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 2;
}
.lightbox-nav:hover { background: var(--primary); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.15); color: white;
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .property-layout { grid-template-columns: 1fr 340px; gap: 28px; }
  .property-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .property-layout { grid-template-columns: 1fr; }
  .property-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image img { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 80px; left: 0; right: 0;
    background: white; padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); z-index: 999;
  }
  .mobile-menu-btn { display: flex; }
  .header-phone, .header-cta { display: none; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-search { flex-direction: column; }
  .search-input-wrap { border-left: none; border-top: 1px solid var(--border); padding: 10px 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .services-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .property-title-row { flex-direction: column; }
  .property-price-box { text-align: left; }
  .property-price { font-size: 1.8rem; }
  .gallery-main { height: 260px; }
  .property-features-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .property-features-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 220px; }
}
