/* =====================================================================
   Dari — feuille de style (Bootstrap 5 + charte de la maquette)
   Vert profond #1e7b3e, pied de page #0f3d2e, cartes arrondies, ombres douces
   ===================================================================== */
:root {
    --dari-green: #1e7b3e;
    --dari-green-600: #186a35;
    --dari-green-700: #135a2c;
    --dari-green-50: #eef6f0;
    --dari-green-100: #dcefe1;
    --dari-deep: #0f3d2e;
    --dari-ink: #17212b;
    --dari-muted: #6b7a86;
    --dari-line: #e6ebe8;
    --dari-bg: #f6f8f7;
    --dari-radius: 14px;
    --dari-shadow: 0 6px 24px rgba(16, 40, 30, .08);
    --dari-shadow-lg: 0 18px 50px rgba(16, 40, 30, .14);
    --bs-primary: #1e7b3e;
    --bs-primary-rgb: 30, 123, 62;
    --bs-link-color: #1e7b3e;
    --bs-link-hover-color: #135a2c;
    --bs-link-color-rgb: 30, 123, 62;
    --bs-link-hover-color-rgb: 19, 90, 44;
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: #17212b;
    --bs-border-radius: .6rem;
}

body { background: #fff; font-size: .95rem; }
h1, h2, h3, h4, h5, h6, .fw-bold { color: var(--dari-ink); }
a { text-decoration: none; }
.text-green { color: var(--dari-green) !important; }
.bg-green { background: var(--dari-green) !important; }
.bg-green-50 { background: var(--dari-green-50) !important; }
.bg-deep { background: var(--dari-deep) !important; }
.text-muted-2 { color: var(--dari-muted) !important; }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

/* Boutons */
.btn-primary { --bs-btn-bg: var(--dari-green); --bs-btn-border-color: var(--dari-green); --bs-btn-hover-bg: var(--dari-green-700); --bs-btn-hover-border-color: var(--dari-green-700); --bs-btn-active-bg: var(--dari-green-700); --bs-btn-disabled-bg: var(--dari-green); --bs-btn-disabled-border-color: var(--dari-green); font-weight: 500; }
.btn-outline-primary { --bs-btn-color: var(--dari-green); --bs-btn-border-color: var(--dari-green); --bs-btn-hover-bg: var(--dari-green); --bs-btn-hover-border-color: var(--dari-green); --bs-btn-active-bg: var(--dari-green-700); font-weight: 500; }
.btn-light-shadow { background: #fff; border: 1px solid var(--dari-line); box-shadow: var(--dari-shadow); font-weight: 500; }
.btn { border-radius: .6rem; }
.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0; }
.form-control:focus, .form-select:focus { border-color: #8fc7a0; box-shadow: 0 0 0 .2rem rgba(30, 123, 62, .15); }
.form-check-input:checked { background-color: var(--dari-green); border-color: var(--dari-green); }
.page-link { color: var(--dari-green); }
.active > .page-link, .page-link.active { background-color: var(--dari-green); border-color: var(--dari-green); }
.nav-pills .nav-link.active { background: var(--dari-green); }

/* Barre supérieure */
.topbar { background: #f7f9f8; border-bottom: 1px solid var(--dari-line); font-size: .8rem; color: #45525c; }
.topbar a { color: #45525c; }
.topbar .bi { color: #45525c; }

/* Navigation principale */
.navbar-dari { background: #fff; box-shadow: 0 1px 0 var(--dari-line); padding: .9rem 0; }
.navbar-dari .nav-link { color: var(--dari-ink); font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.navbar-dari .nav-link.active, .navbar-dari .nav-link:hover { color: var(--dari-green); }
.navbar-dari .nav-link.active::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: -.2rem; height: 3px; border-radius: 2px; background: var(--dari-green); }
.navbar-dari .dropdown-menu { border: 0; box-shadow: var(--dari-shadow-lg); border-radius: 12px; padding: .5rem; }
.navbar-dari .dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
.navbar-dari .dropdown-item:hover { background: var(--dari-green-50); color: var(--dari-green); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--dari-ink); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--dari-ink); }
.brand-tagline { font-size: .72rem; color: var(--dari-muted); }
.nav-icon { position: relative; color: var(--dari-ink); font-size: 1.35rem; }
.nav-icon .badge { position: absolute; top: -6px; right: -10px; font-size: .6rem; }

/* Héros */
.hero { position: relative; background: linear-gradient(100deg, #fff 0%, #fff 34%, rgba(255,255,255,.6) 48%, rgba(255,255,255,0) 62%), var(--hero-img, url('/img/hero-villa.svg')) right bottom / auto 100% no-repeat, linear-gradient(180deg, #bfe2f7, #eaf6ff); min-height: 470px; padding: 4rem 0 6.5rem; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--dari-green); }
.hero p.lead { color: #3c4852; font-size: 1.05rem; max-width: 440px; }
.hero-card { position: absolute; right: 3%; bottom: 5.5rem; background: #fff; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--dari-shadow-lg); display: flex; gap: .9rem; align-items: center; }
.hero-card .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--dari-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; color: #fff; }
.avatars span:first-child { margin-left: 0; }

/* Barre de recherche flottante */
.search-box { background: #fff; border-radius: 16px; box-shadow: var(--dari-shadow-lg); padding: 1rem; margin-top: -4.2rem; position: relative; z-index: 5; }
.search-box .field { border: 1px solid var(--dari-line); border-radius: 10px; padding: .45rem .8rem; height: 100%; }
.search-box .field label { display: block; font-size: .72rem; color: var(--dari-muted); margin-bottom: .1rem; }
.search-box .field .form-control, .search-box .field .form-select { border: 0; padding: 0; box-shadow: none; font-size: .9rem; background-color: transparent; }
.search-box .btn { height: 100%; min-height: 52px; }

/* Titres de section */
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.section-title h2 { font-size: 1.45rem; font-weight: 700; margin: 0; }
.section-title a { font-weight: 500; font-size: .88rem; }

/* Cartes de types de biens */
.type-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1rem; border: 1px solid var(--dari-line); border-radius: var(--dari-radius); background: #fff; color: var(--dari-ink); transition: .2s; height: 100%; }
.type-card:hover { border-color: #9fd0ad; box-shadow: var(--dari-shadow); transform: translateY(-2px); color: var(--dari-ink); }
.type-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--dari-green-50); color: var(--dari-green); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; flex-shrink: 0; }
.type-card strong { display: block; font-size: .95rem; }
.type-card small { color: var(--dari-muted); }

/* Cartes de biens */
.property-card { border: 1px solid var(--dari-line); border-radius: var(--dari-radius); overflow: hidden; background: #fff; transition: .2s; height: 100%; display: flex; flex-direction: column; }
.property-card:hover { box-shadow: var(--dari-shadow-lg); transform: translateY(-3px); }
.property-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dari-green-50); }
.property-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property-card:hover .thumb img { transform: scale(1.04); }
.property-card .tag { position: absolute; top: .7rem; left: .7rem; background: #fff; color: var(--dari-ink); font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.property-card .tag.location { background: var(--dari-green); color: #fff; }
.property-card .fav { position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 0; display: flex; align-items: center; justify-content: center; color: var(--dari-ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.property-card .fav.active, .property-card .fav:hover { color: #e0245e; }
.property-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.property-card h3 { font-size: .98rem; font-weight: 600; margin: 0 0 .25rem; line-height: 1.35; }
.property-card h3 a { color: var(--dari-ink); }
.property-card h3 a:hover { color: var(--dari-green); }
.property-card .loc { color: var(--dari-muted); font-size: .8rem; }
.property-card .price { color: var(--dari-green); font-weight: 700; font-size: 1.08rem; margin: .45rem 0 .55rem; }
.property-card .specs { display: flex; flex-wrap: wrap; gap: .8rem; border-top: 1px solid var(--dari-line); padding-top: .6rem; margin-top: auto; color: #4b5863; font-size: .78rem; }
.property-card .agency { font-size: .75rem; color: var(--dari-muted); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .scroller { grid-auto-columns: calc((100% - 4rem) / 5); } }

/* Pourquoi Dari */
.why-box { background: var(--dari-green-50); border-radius: 18px; padding: 2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-item .ic { font-size: 2.2rem; color: var(--dari-green); line-height: 1; }
.why-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.why-item p { color: #4b5863; font-size: .85rem; margin: 0; }
@media (min-width: 992px) { .why-item.sep { border-left: 1px solid #cfe4d6; padding-left: 1.5rem; } }

/* Témoignages */
.testimonial { border: 1px solid var(--dari-line); border-radius: var(--dari-radius); padding: 1.4rem; height: 100%; background: #fff; }
.testimonial .quote { color: var(--dari-green); font-size: 2rem; line-height: 1; }
.testimonial p { color: #3c4852; font-size: .9rem; }
.testimonial .stars { color: #f4b400; }
.initials { width: 44px; height: 44px; border-radius: 50%; background: var(--dari-green-100); color: var(--dari-green-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }

/* Newsletter */
.newsletter { background: var(--dari-deep); border-radius: 16px; overflow: hidden; color: #fff; }
.newsletter .art { background: url('/img/demo/interieur-2.svg') center / cover; min-height: 140px; }
.newsletter h2 { color: #fff; font-size: 1.4rem; }
.newsletter .input-group { background: #fff; border-radius: 10px; padding: .3rem; }
.newsletter .form-control { border: 0; }

/* Pied de page */
.footer { background: var(--dari-deep); color: #c9d6cf; padding: 3.5rem 0 1.5rem; margin-top: 3rem; font-size: .88rem; }
.footer h5 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer a { color: #c9d6cf; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer .brand-tagline { color: #9fb6aa; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; }
.footer .social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; margin-right: .4rem; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .8rem; }

/* Bandeau de page */
.page-head { background: var(--dari-green-50); padding: 1.6rem 0; border-bottom: 1px solid var(--dari-line); }
.page-head h1 { font-size: 1.6rem; font-weight: 700; margin: .4rem 0 0; }
.breadcrumb { font-size: .82rem; margin: 0; }
.breadcrumb-item a { color: var(--dari-green); }

/* Filtres de recherche */
.filter-card { border: 1px solid var(--dari-line); border-radius: var(--dari-radius); padding: 1.2rem; background: #fff; position: sticky; top: 1rem; }
.filter-card .form-label { font-size: .8rem; font-weight: 600; color: #4b5863; margin-bottom: .25rem; }

/* Fiche détaillée */
.gallery-main { border-radius: var(--dari-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--dari-green-50); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; margin-top: .5rem; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; aspect-ratio: 4 / 3; background: none; }
.gallery-thumbs button.active { border-color: var(--dari-green); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.spec { background: var(--dari-bg); border-radius: 12px; padding: .8rem 1rem; }
.spec small { display: block; color: var(--dari-muted); font-size: .75rem; }
.spec strong { font-size: 1rem; }
.feature { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; }
.feature .bi { color: var(--dari-green); }
.sticky-side { position: sticky; top: 1rem; }
.card-soft { border: 1px solid var(--dari-line); border-radius: var(--dari-radius); box-shadow: var(--dari-shadow); background: #fff; }
.map { height: 340px; border-radius: var(--dari-radius); overflow: hidden; z-index: 1; }
.price-xl { font-size: 1.75rem; font-weight: 800; color: var(--dari-green); }

/* Comparateur */
.compare-table th { background: var(--dari-bg); font-weight: 600; width: 180px; }
.compare-table img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* Agences */
.agency-card { border: 1px solid var(--dari-line); border-radius: var(--dari-radius); padding: 1.3rem; background: #fff; height: 100%; transition: .2s; }
.agency-card:hover { box-shadow: var(--dari-shadow-lg); }
.agency-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--dari-green-50); display: inline-flex; align-items: center; justify-content: center; color: var(--dari-green); font-weight: 700; font-size: 1.4rem; flex-shrink: 0; }

/* Authentification */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--dari-green-50), #fff); padding: 3rem 0; }
.auth-card { max-width: 480px; margin: auto; }

/* =================== Back office =================== */
.bo { display: flex; min-height: 100vh; background: var(--dari-bg); }
.bo-sidebar { width: 260px; background: var(--dari-deep); color: #c9d6cf; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.bo-sidebar .brand { padding: 1.3rem 1.3rem 1rem; }
.bo-sidebar .brand-name { color: #fff; }
.bo-sidebar .brand-tagline { color: #9fb6aa; }
.bo-sidebar .area { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: #8fb19e; padding: .6rem 1.4rem; }
.bo-sidebar .nav-link { color: #c9d6cf; padding: .6rem 1.4rem; display: flex; align-items: center; gap: .7rem; font-size: .9rem; border-left: 3px solid transparent; }
.bo-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.bo-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.08); border-left-color: #4cc274; }
.bo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bo-topbar { background: #fff; border-bottom: 1px solid var(--dari-line); padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 10; }
.bo-content { padding: 1.5rem; flex: 1; }
.bo-content h1 { font-size: 1.45rem; font-weight: 700; }
@media (max-width: 991.98px) {
    .bo-sidebar { position: fixed; left: -270px; z-index: 1050; transition: left .25s; }
    .bo-sidebar.open { left: 0; box-shadow: var(--dari-shadow-lg); }
}
.kpi { background: #fff; border: 1px solid var(--dari-line); border-radius: var(--dari-radius); padding: 1.1rem 1.2rem; display: flex; gap: 1rem; align-items: center; height: 100%; }
.kpi .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--dari-green-50); color: var(--dari-green); flex-shrink: 0; }
.kpi .ic.warn { background: #fff4e0; color: #c77700; }
.kpi .ic.blue { background: #e8f0ff; color: #2456c7; }
.kpi .ic.red { background: #fdecee; color: #c62839; }
.kpi .value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.kpi .label { color: var(--dari-muted); font-size: .8rem; }
.panel { background: #fff; border: 1px solid var(--dari-line); border-radius: var(--dari-radius); }
.panel-head { padding: .9rem 1.2rem; border-bottom: 1px solid var(--dari-line); display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.panel-body { padding: 1.2rem; }
.table > :not(caption) > * > * { padding: .7rem .8rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; color: var(--dari-muted); font-weight: 600; background: #fafbfa; }
.thumb-sm { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--dari-green-50); }
.timeline { list-style: none; padding-left: 1rem; border-left: 2px solid var(--dari-line); }
.timeline li { position: relative; padding: 0 0 1rem 1rem; }
.timeline li::before { content: ''; position: absolute; left: -1.43rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--dari-green); border: 2px solid #fff; }
.chat { max-height: 520px; overflow-y: auto; padding: 1rem; background: var(--dari-bg); border-radius: 12px; }
.chat .msg { max-width: 75%; padding: .7rem 1rem; border-radius: 14px; margin-bottom: .7rem; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.chat .msg.me { margin-left: auto; background: var(--dari-green); color: #fff; }
.chat .msg.me small { color: rgba(255,255,255,.75) !important; }
.score-ring { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; }
.counter { font-size: .72rem; color: var(--dari-muted); float: right; }
.counter.over { color: #c62839; }
.slot-btn { min-width: 76px; }
.day-btn { min-width: 84px; line-height: 1.1; }
.img-tile { position: relative; border: 1px solid var(--dari-line); border-radius: 12px; overflow: hidden; background: #fff; }
.img-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* =================== Éditeur Site Builder =================== */
.sb-palette .block-type { cursor: grab; border: 1px dashed #b9d8c3; border-radius: 10px; padding: .6rem .8rem; background: #fff; display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; font-size: .88rem; }
.sb-palette .block-type:hover { border-color: var(--dari-green); background: var(--dari-green-50); }
.sb-canvas { min-height: 420px; background: repeating-linear-gradient(45deg, #fafcfb, #fafcfb 10px, #f4f8f5 10px, #f4f8f5 20px); border: 2px dashed #cfe4d6; border-radius: 14px; padding: 1rem; }
.sb-canvas:empty::before { content: 'Glissez des blocs ici'; display: block; text-align: center; padding: 6rem 0; color: var(--dari-muted); }
.sb-block { background: #fff; border: 1px solid var(--dari-line); border-radius: 12px; margin-bottom: .75rem; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.sb-block.selected { border-color: var(--dari-green); box-shadow: 0 0 0 3px rgba(30,123,62,.15); }
.sb-block .sb-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; cursor: pointer; }
.sb-block .handle { cursor: grab; color: var(--dari-muted); }
.sb-block .sb-summary { color: var(--dari-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-ghost { opacity: .45; background: var(--dari-green-50); }

/* Utilitaires */
.object-cover { object-fit: cover; }
.rounded-4 { border-radius: var(--dari-radius) !important; }
.lh-sm { line-height: 1.35 !important; }
.min-w-0 { min-width: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--dari-muted); }
.empty-state .bi { font-size: 2.6rem; color: #b9d8c3; }
.flash-container { position: fixed; top: 1rem; right: 1rem; z-index: 2000; max-width: 420px; }
@media (max-width: 575.98px) {
    .hero { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.85)), var(--hero-img, url('/img/hero-villa.svg')) center / cover; padding-bottom: 5.5rem; }
    .hero-card { display: none !important; }
}

/* ===== Site Builder — édition visuelle (sur le rendu réel du site) ===== */
.sbv-on { padding-bottom: 90px; }
.sbv-on main { min-height: 50vh; }
.sbv-block { position: relative; outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .15s; }
.sbv-on:not(.sbv-preview) .sbv-block:hover, .sbv-block.is-selected, .sbv-block.is-editing { outline: 2px solid var(--site-primary, #1e7b3e); z-index: 2; }
.sbv-on:not(.sbv-preview) .sbv-block { outline-color: rgba(30, 123, 62, .25); }
.sbv-block.is-flash { animation: sbv-flash 1.6s ease-out; }
@keyframes sbv-flash { from { box-shadow: inset 0 0 0 9999px rgba(30, 123, 62, .14); } to { box-shadow: inset 0 0 0 9999px transparent; } }
.sbv-tools { position: absolute; top: 10px; right: 10px; z-index: 20; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: #0f1f17; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; font: 500 12px/1 'Poppins', sans-serif; }
.sbv-block:hover > .sbv-tools, .sbv-block.is-selected > .sbv-tools, .sbv-block:focus-within > .sbv-tools { opacity: 1; transform: none; }
.sbv-tools button, .sbv-handle { appearance: none; border: 0; background: transparent; color: inherit; padding: 7px 9px; border-radius: 8px; cursor: pointer; font: inherit; line-height: 1; }
.sbv-tools button:hover { background: rgba(255, 255, 255, .14); }
.sbv-tools .sbv-edit { background: var(--site-primary, #1e7b3e); font-weight: 600; }
.sbv-tools .sbv-edit:hover { background: var(--site-secondary, #0f3d2e); }
.sbv-tools .sbv-danger.is-confirm { background: #c0392b; }
.sbv-handle { cursor: grab; color: #9fb7aa; }
.sbv-label { padding: 0 8px 0 2px; color: #cfe0d6; white-space: nowrap; }
.sbv-insert { position: absolute; left: 50%; bottom: -16px; z-index: 21; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--site-primary, #1e7b3e); color: #fff; transform: translateX(-50%) scale(.6); opacity: 0; transition: opacity .15s, transform .15s; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .4); cursor: pointer; }
.sbv-block:hover > .sbv-insert, .sbv-insert:focus-visible { opacity: 1; transform: translateX(-50%) scale(1); }
.sbv-ghost { opacity: .4; }
.sbv-on:not(.sbv-preview) :is([data-sb-field], [data-sbc]) { cursor: text; border-radius: 4px; transition: box-shadow .15s, background-color .15s; }
.sbv-on:not(.sbv-preview) :is([data-sb-field], [data-sbc]):hover { box-shadow: 0 0 0 2px rgba(255, 193, 7, .8); }
.sbv-on:not(.sbv-preview) :is([data-sb-field], [data-sbc]):focus { outline: none; box-shadow: 0 0 0 2px #ffc107; background-color: rgba(255, 193, 7, .12); }
.sbv-on :is([data-sb-field], [data-sbc]):empty::before { content: 'Saisissez un texte…'; opacity: .5; }
.sbv-preview .sbv-tools, .sbv-preview .sbv-insert { display: none; }
.sbv-empty { padding: 5rem 1rem; }

.sbv-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1080; display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; padding: 6px 6px 6px 14px; border-radius: 28px; background: rgba(15, 31, 23, .94); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); color: #f2f7f4; font: 500 13px/1.2 'Poppins', sans-serif; white-space: nowrap; }
.sbv-bar .sbv-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4cd07d; box-shadow: 0 0 0 4px rgba(76, 208, 125, .2); margin-right: 4px; }
.sbv-bar strong { margin-right: 4px; }
.sbv-bar a, .sbv-bar button { appearance: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 30px; font: inherit; color: inherit; background: rgba(255, 255, 255, .08); text-decoration: none; }
.sbv-bar a:hover, .sbv-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, .18); color: #fff; }
.sbv-bar button:disabled { opacity: .4; cursor: default; }
.sbv-bar .sbv-primary { background: #4cd07d; color: #062012; font-weight: 700; }
.sbv-bar .sbv-primary:hover { background: #6ee39a !important; color: #062012 !important; }
.sbv-select { max-width: 170px; border: 0; border-radius: 30px; padding: 7px 28px 7px 12px; font: inherit; color: #fff; background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") right 10px center / 10px no-repeat; appearance: none; }
.sbv-select option { color: #111; }
.sbv-status { padding: 0 8px; font-size: 12px; color: #a9c3b4; }
.sbv-status.is-warn { color: #ffd166; }
.sbv-status.is-ok { color: #7be3a2; }
.sbv-status.is-error { color: #ff8a80; }

.sbv-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1090; width: min(400px, 100vw); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 50px rgba(0, 0, 0, .25); transform: translateX(105%); transition: transform .3s cubic-bezier(.22, .8, .28, 1); font-family: 'Poppins', sans-serif; }
.sbv-panel.is-open { transform: none; }
.sbv-panel header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #0f1f17; color: #fff; }
.sbv-panel header button { border: 0; width: 34px; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; }
.sbv-panel-body { flex: 1; overflow-y: auto; padding: 16px; }
.sbv-panel footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--dari-line, #e5ece8); }
.sbv-panel footer:empty { display: none; }
.sbv-thumb { display: block; width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; margin: 6px 0; }
.sbv-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sbv-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; text-align: left; border: 1px solid var(--dari-line, #e5ece8); border-radius: 12px; background: #fff; font-size: .85rem; }
.sbv-type i { font-size: 1.3rem; color: #1e7b3e; }
.sbv-type span { color: var(--dari-muted, #6b7a72); font-size: .75rem; line-height: 1.3; }
.sbv-type:hover, .sbv-type:focus-visible { border-color: #1e7b3e; background: #f1f8f3; }
.sbv-toast { position: fixed; left: 50%; bottom: 84px; z-index: 1095; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #1d2b24; color: #fff; font: 500 13px/1.3 'Poppins', sans-serif; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.sbv-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sbv-toast button { border: 0; background: transparent; color: #7be3a2; font-weight: 700; }
@media (min-width: 992px) { .sbv-panel-open main, .sbv-panel-open .site-nav, .sbv-panel-open .footer { margin-right: 400px; } .sbv-panel-open .sbv-bar { left: calc((100vw - 400px) / 2); max-width: calc(100vw - 424px); } }
@media (max-width: 575.98px) { .sbv-tools .sbv-label { display: none; } .sbv-bar { left: 12px; right: 12px; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sbv-panel, .sbv-tools, .sbv-insert, .sbv-toast { transition: none; } .sbv-block.is-flash { animation: none; } }

.sbv-on:not(.sbv-preview) [data-sbc] { outline: 1px dashed rgba(30, 123, 62, .35); outline-offset: 2px; }
.sbv-bar .dropdown-menu { font-size: 13px; }
.sbv-bar .dropdown-item.is-confirm { background: #fdecea; font-weight: 600; white-space: normal; }
.sbv-img-btn { position: absolute; top: 12px; left: 12px; z-index: 20; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 10px; background: #0f1f17; color: #fff; font: 600 12px/1 'Poppins', sans-serif; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45); cursor: pointer; }
.sbv-img-btn:hover { background: #1e7b3e; }
.sbv-preview .sbv-img-btn { display: none; }
.sbv-launcher { position: fixed; right: 18px; bottom: 18px; z-index: 1080; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 30px; background: #0f1f17; color: #fff; font: 600 13px/1 'Poppins', sans-serif; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55); }
.sbv-launcher:hover { background: #1e7b3e; color: #fff; }
@media (max-width: 575.98px) { .sbv-launcher span { display: none; } }

/* Location à la nuitée et équipements libres */
.property-card .tag.nuit { background: #5b3cc4; color: #fff; }
.feature-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; background: var(--dari-green-50); color: var(--dari-green-700); font-size: .85rem; }

/* ===== Arabe : écriture de droite à gauche (Bootstrap RTL fournit les utilitaires inversés) ===== */
[dir="rtl"] body, [dir="rtl"] .btn, [dir="rtl"] .form-control, [dir="rtl"] .form-select { font-family: 'Cairo', 'Poppins', sans-serif; }
[dir="rtl"] .nav-icon .badge { right: auto; left: -10px; }
[dir="rtl"] .hero { background: linear-gradient(-100deg, #fff 0%, #fff 34%, rgba(255,255,255,.6) 48%, rgba(255,255,255,0) 62%), var(--hero-img, url('/img/hero-villa.svg')) left bottom / auto 100% no-repeat, linear-gradient(180deg, #bfe2f7, #eaf6ff); }
[dir="rtl"] .hero-card { right: auto; left: 3%; }
[dir="rtl"] .avatars span { margin-left: 0; margin-right: -8px; }
[dir="rtl"] .avatars span:first-child { margin-right: 0; }
[dir="rtl"] .property-card .tag { left: auto; right: .7rem; }
[dir="rtl"] .property-card .fav { right: auto; left: .6rem; }
@media (min-width: 992px) { [dir="rtl"] .why-item.sep { border-left: 0; padding-left: 0; border-right: 1px solid #cfe4d6; padding-right: 1.5rem; } }
[dir="rtl"] .footer .social a { margin-right: 0; margin-left: .4rem; }
[dir="rtl"] .flash-container { right: auto; left: 1rem; }
[dir="rtl"] .counter { float: left; }
[dir="rtl"] .bi-arrow-right, [dir="rtl"] .bi-arrow-left, [dir="rtl"] .bi-chevron-right, [dir="rtl"] .bi-chevron-left { display: inline-block; transform: scaleX(-1); }
/* Prix, téléphones, références : chiffres et unités lus de gauche à droite */
[dir="rtl"] .price, [dir="rtl"] .price-xl, [dir="rtl"] a[href^="tel:"] { unicode-bidi: plaintext; }
@media (max-width: 991.98px) { [dir="rtl"] .hero { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.85)), var(--hero-img, url('/img/hero-villa.svg')) center / cover; } }
.lang-switch .dropdown-item.active { background: var(--dari-green); }
