/* =====================================================================
   BIENS — styles dédiés aux pages publiques (recherche + fiche)
   Charte : orange #f69320, Poppins (titres) / Open Sans (corps).
   Tout est scopé (.biens-*, .bien-*) pour ne pas impacter le reste du site.
   ===================================================================== */

:root {
    --bien-orange: #f69320;
    --bien-orange-dark: #d9791a;
    --bien-ink: #14202e;
    --bien-muted: #7a8896;
    --bien-line: #e9edf1;
    --bien-soft: #f6f8fa;
}

/* ---------- Section wrapper ---------- */
.biens-wrap { padding: 60px 0 90px; }
.biens-wrap .container { max-width: 1240px; }

/* =====================================================================
   CHAMPS MODERNES UNIFORMES
   ===================================================================== */
.biens-field { position: relative; margin-bottom: 16px; }
.biens-field > label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bien-muted);
    margin: 0 0 7px 2px;
}
.biens-field input[type="text"],
.biens-field input[type="email"],
.biens-field input[type="number"],
.biens-field select,
.biens-field textarea {
    display: block;
    width: 100%;
    height: 50px;
    background: #fff;
    border: 1px solid var(--bien-line);
    border-radius: 10px;
    padding: 0 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--bien-ink);
    margin: 0;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    -webkit-appearance: none;
    appearance: none;
}
.biens-field textarea { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.biens-field input::placeholder,
.biens-field textarea::placeholder { color: #aab4bd; }
.biens-field input:focus,
.biens-field select:focus,
.biens-field textarea:focus {
    outline: none;
    border-color: var(--bien-orange);
    box-shadow: 0 0 0 3px rgba(246,147,32,.14);
    background: #fff;
}
/* select : flèche custom */
.biens-field select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a8896' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}
/* champ avec icône (recherche / localisation) */
.biens-field.has-icon input { padding-left: 42px; }
.biens-field.has-icon > span.fld-ic {
    position: absolute;
    left: 15px; bottom: 15px;
    color: var(--bien-orange);
    font-size: 16px;
    pointer-events: none;
}
/* paire min / max */
.biens-duo { display: flex; gap: 10px; }
.biens-duo .biens-field { flex: 1; margin-bottom: 0; }

/* boutons */
.biens-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; padding: 0 26px;
    border: none; border-radius: 10px; cursor: pointer;
    font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
    letter-spacing: .02em; text-transform: uppercase;
    color: #fff; background: var(--bien-orange);
    transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
    box-shadow: 0 10px 24px -10px rgba(246,147,32,.7);
}
.biens-btn:hover { background: var(--bien-orange-dark); color: #fff; transform: translateY(-2px); }
.biens-btn.block { width: 100%; }
.biens-btn.ghost {
    background: transparent; color: var(--bien-muted);
    border: 1px solid var(--bien-line); box-shadow: none;
}
.biens-btn.ghost:hover { background: var(--bien-soft); color: var(--bien-ink); transform: none; }

/* =====================================================================
   SIDEBAR DE RECHERCHE
   ===================================================================== */
.biens-layout { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.biens-col-side { flex: 0 0 300px; max-width: 300px; }
.biens-col-main { flex: 1; min-width: 0; }

.biens-sidebar {
    position: sticky; top: 100px;
    background: #fff;
    border: 1px solid var(--bien-line);
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 30px 60px -40px rgba(20,32,46,.35);
}
.biens-sidebar h4 {
    font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700;
    color: var(--bien-ink); margin: 0 0 4px;
    display: flex; align-items: center; gap: 9px;
}
.biens-sidebar h4 i { color: var(--bien-orange); }
.biens-sidebar .side-sub { font-size: 12.5px; color: var(--bien-muted); margin: 0 0 20px; }
.biens-sep { height: 1px; background: var(--bien-line); margin: 20px 0; border: 0; }
.biens-crit-title {
    font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; color: var(--bien-ink);
    margin: 0 0 14px; display: flex; align-items: center; gap: 7px;
}
.biens-crit-title i { color: var(--bien-orange); }
#biens-criteres .biens-empty { font-size: 12.5px; color: var(--bien-muted); font-style: italic; }

/* bouton filtres mobile */
.biens-filter-toggle { display: none; }

/* =====================================================================
   BARRE RÉSULTATS
   ===================================================================== */
.biens-resultbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    margin-bottom: 26px;
}
.biens-resultbar .count {
    font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--bien-ink);
}
.biens-resultbar .count b { color: var(--bien-orange); }
.biens-sortbox { display: flex; align-items: center; gap: 10px; }
.biens-sortbox label { font-size: 12px; color: var(--bien-muted); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.biens-sortbox select {
    height: 44px; border: 1px solid var(--bien-line); border-radius: 10px; padding: 0 38px 0 14px;
    font-family: 'Open Sans', sans-serif; font-size: 13px; color: var(--bien-ink);
    -webkit-appearance: none; appearance: none; cursor: pointer; background: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a8896' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 13px center;
}

/* =====================================================================
   CARTES ANNONCE
   ===================================================================== */
.biens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* Accueil : biens en vedette — colonnes à largeur plafonnée et grille centrée
   (évite des cartes trop fines sur grand écran et centre le cas d'une seule carte). */
.biens-home-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; }
.bien-card {
    position: relative; background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--bien-line);
    box-shadow: 0 24px 50px -34px rgba(20,32,46,.4);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column;
}
.bien-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(20,32,46,.5); }
.bien-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.bien-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bien-card:hover .media img { transform: scale(1.07); }
.bien-card .price-badge {
    position: absolute; left: 14px; bottom: 14px; z-index: 3;
    background: rgba(20,32,46,.86); color: #fff;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
    padding: 8px 14px; border-radius: 10px; backdrop-filter: blur(3px);
}
.bien-card .price-badge b { color: var(--bien-orange); font-weight: 700; }
.bien-card .trans-tag {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    background: var(--bien-orange); color: #fff;
    font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 30px;
}
.bien-card .status-ribbon {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    background: rgba(255,255,255,.92); color: var(--bien-ink);
    font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 30px;
}
.bien-card .status-ribbon.vendu, .bien-card .status-ribbon.loue { background: #14202e; color: #fff; }
.bien-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.bien-card .type-line { font-size: 12px; color: var(--bien-orange); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.bien-card h3 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.bien-card h3 a { color: var(--bien-ink); transition: color .2s ease; }
.bien-card h3 a:hover { color: var(--bien-orange); }
.bien-card .loc { font-size: 13px; color: var(--bien-muted); margin: 0 0 14px; display: flex; align-items: center; gap: 6px; }
.bien-card .loc i { color: var(--bien-orange); }
.bien-card .feat {
    margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--bien-line);
    display: flex; flex-wrap: wrap; gap: 14px;
}
.bien-card .feat span { font-size: 12.5px; color: #55636f; display: inline-flex; align-items: center; gap: 6px; }
.bien-card .feat span i { color: var(--bien-orange); font-size: 14px; }

.biens-none {
    text-align: center; padding: 70px 20px; background: var(--bien-soft);
    border: 1px dashed var(--bien-line); border-radius: 16px; color: var(--bien-muted);
}
.biens-none i { font-size: 40px; color: #cfd8df; display: block; margin-bottom: 14px; }

/* =====================================================================
   FICHE — en-tête, galerie, tuiles, contact
   ===================================================================== */
.bien-hero { padding: 45px 0 10px; }
.bien-hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bien-orange); margin-bottom: 8px; }
.bien-hero h1 { font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 800; color: var(--bien-ink); line-height: 1.15; margin: 0 0 12px; }
.bien-hero .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.bien-hero .meta-row .loc { color: var(--bien-muted); font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.bien-hero .meta-row .loc i { color: var(--bien-orange); }
.bien-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.bien-badge { font-family: 'Poppins', sans-serif; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 6px 13px; border-radius: 30px; }
.bien-badge.trans { background: var(--bien-orange); color: #fff; }
.bien-badge.stat { background: var(--bien-soft); color: var(--bien-ink); border: 1px solid var(--bien-line); }
.bien-hero .price {
    margin-left: auto; text-align: right;
    font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 800; color: var(--bien-orange);
    line-height: 1;
}
.bien-hero .price small { display: block; font-size: 12px; font-weight: 500; color: var(--bien-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }

/* Galerie */
.bien-gallery-area { padding: 24px 0 10px; }
.bien-stage { border-radius: 18px; overflow: hidden; background: #0d1620; box-shadow: 0 40px 70px -40px rgba(20,32,46,.6); }
.bien-stage .owl-carousel .item { position: relative; }
.bien-stage .owl-carousel .item a { display: block; }
.bien-stage .owl-carousel .item img { width: 100%; height: 560px; object-fit: cover; }
.bien-stage .zoom-hint {
    position: absolute; bottom: 16px; right: 16px; z-index: 4;
    background: rgba(20,32,46,.7); color: #fff; font-size: 12px; padding: 8px 14px; border-radius: 30px;
    display: inline-flex; align-items: center; gap: 7px; pointer-events: none;
}
.bien-stage .owl-nav button.owl-prev,
.bien-stage .owl-nav button.owl-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92) !important;
    color: var(--bien-ink) !important; font-size: 20px !important; line-height: 48px;
    box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); transition: background .2s ease;
}
.bien-stage .owl-nav button.owl-prev { left: 18px; }
.bien-stage .owl-nav button.owl-next { right: 18px; }
.bien-stage .owl-nav button:hover { background: var(--bien-orange) !important; color: #fff !important; }
.bien-stage .owl-dots { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; }
.bien-stage .owl-dots .owl-dot span { width: 9px; height: 9px; background: rgba(255,255,255,.55); margin: 4px; border-radius: 50%; display: inline-block; }
.bien-stage .owl-dots .owl-dot.active span { background: var(--bien-orange); width: 24px; border-radius: 6px; }

.bien-thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.bien-thumbs .th {
    flex: 0 0 110px; height: 78px; border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; opacity: .65; transition: opacity .2s ease, border-color .2s ease;
}
.bien-thumbs .th.active, .bien-thumbs .th:hover { opacity: 1; border-color: var(--bien-orange); }
.bien-thumbs .th img { width: 100%; height: 100%; object-fit: cover; }

/* Corps fiche */
.bien-body-area { padding: 40px 0 20px; }
.bien-section-title { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; color: var(--bien-ink); margin: 0 0 22px; position: relative; padding-left: 16px; }
.bien-section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px; background: var(--bien-orange); }
.bien-desc { font-family: 'Open Sans', sans-serif; color: #55636f; line-height: 1.85; font-size: 15.5px; }
.bien-desc img { max-width: 100%; height: auto; border-radius: 10px; }

/* Tuiles caractéristiques */
.bien-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.bien-feature-tile {
    background: #fff; border: 1px solid var(--bien-line); border-radius: 14px; padding: 20px 18px;
    display: flex; flex-direction: column; gap: 4px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bien-feature-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(20,32,46,.45); border-color: #f4d6ab; }
.bien-feature-tile .ic {
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(246,147,32,.12); color: var(--bien-orange); font-size: 20px;
}
.bien-feature-tile .lbl { font-size: 12px; color: var(--bien-muted); text-transform: uppercase; letter-spacing: .04em; }
.bien-feature-tile .val { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: var(--bien-ink); }

/* Partage */
.bien-share { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; }
.bien-share span.lbl { font-size: 13px; color: var(--bien-muted); font-weight: 600; }
.bien-share a {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bien-soft); color: var(--bien-ink); font-size: 16px; transition: all .25s ease;
}
.bien-share a:hover { transform: translateY(-3px); color: #fff; }
.bien-share a.fb:hover { background: #3b5998; }
.bien-share a.tw:hover { background: #1da1f2; }
.bien-share a.wa:hover { background: #25d366; }
.bien-share a.in:hover { background: #0077b5; }

/* Bandeau contact 2 colonnes */
.bien-contact-band {
    margin: 30px 0 10px; border-radius: 22px; overflow: hidden;
    box-shadow: 0 40px 80px -50px rgba(20,32,46,.55);
    display: grid; grid-template-columns: 42% 58%;
}
.bien-contact-band .cc-left {
    position: relative; padding: 46px 40px; color: #fff;
    background: linear-gradient(155deg, #16273a 0%, #1d3450 100%);
}
.bien-contact-band .cc-left::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(246,147,32,.35), transparent 70%); border-radius: 50%;
}
.bien-contact-band .cc-left .eyebrow { color: var(--bien-orange); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.bien-contact-band .cc-left h3 { font-family: 'Poppins', sans-serif; font-size: 27px; font-weight: 800; color: #fff; line-height: 1.2; margin: 0 0 14px; }
.bien-contact-band .cc-left p { color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.7; margin: 0 0 26px; }
.bien-contact-band .cc-coord { list-style: none; padding: 0; margin: 0; position: relative; z-index: 2; }
.bien-contact-band .cc-coord li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bien-contact-band .cc-coord li i {
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(246,147,32,.16); color: var(--bien-orange); font-size: 17px;
}
.bien-contact-band .cc-coord li span { color: #fff; font-size: 15px; font-weight: 500; }
.bien-contact-band .cc-coord li small { display: block; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 400; }
.bien-contact-band .cc-right { background: #fff; padding: 42px 40px; }
.bien-contact-band .cc-right h4 { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; color: var(--bien-ink); margin: 0 0 22px; }
.bien-contact-band .cc-note { font-size: 12px; color: var(--bien-muted); margin: -6px 0 16px; }
.bien-alert { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; display: none; }
.bien-alert.ok { background: #e8f7ec; color: #1f7a3d; border: 1px solid #bfe6c9; }
.bien-alert.ko { background: #fdecec; color: #b53a3a; border: 1px solid #f3c6c6; }
.bien-alert.show { display: block; }

/* Biens similaires */
.bien-similar-area { padding: 30px 0 10px; background: var(--bien-soft); margin-top: 40px; border-radius: 22px; }
.bien-similar-area .inner { padding: 40px; }

/* =====================================================================
   AUTOCOMPLÉTION GÉO (Photon) + CARTE FICHE
   ===================================================================== */
.geo-ac {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
    background: #fff; border: 1px solid var(--bien-line); border-radius: 10px;
    box-shadow: 0 20px 40px -20px rgba(20,32,46,.4); overflow: hidden; max-height: 280px; overflow-y: auto;
}
.geo-ac-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
    font-family: 'Open Sans', sans-serif; font-size: 13.5px; color: var(--bien-ink);
    border-bottom: 1px solid #f2f5f7; transition: background .15s ease;
}
.geo-ac-item:last-child { border-bottom: 0; }
.geo-ac-item:hover { background: rgba(246,147,32,.09); }
.geo-ac-item i { color: var(--bien-orange); font-size: 14px; flex: 0 0 auto; }
.geo-ac-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Carte de la fiche (embed Google sans clé) */
.bien-map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--bien-line); box-shadow: 0 24px 50px -34px rgba(20,32,46,.4); }
.bien-map .ratio { position: relative; width: 100%; padding-bottom: 60%; min-height: 380px; }
.bien-map .ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bien-map .map-actions { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; }
.bien-map .map-actions .addr { font-size: 13.5px; color: var(--bien-muted); display: inline-flex; align-items: center; gap: 8px; }
.bien-map .map-actions .addr i { color: var(--bien-orange); }
.bien-map .map-actions a.itin {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px;
    background: var(--bien-orange); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px;
    transition: background .25s ease, transform .2s ease;
}
.bien-map .map-actions a.itin:hover { background: var(--bien-orange-dark); transform: translateY(-2px); color: #fff; }

/* Carte admin Leaflet (placement) */
#bienGeoMap { height: 320px; border-radius: 10px; border: 1px solid #e0e0e0; margin-top: 6px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1199px) {
    .bien-features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .biens-col-side { flex: 0 0 100%; max-width: 100%; }
    .biens-sidebar { position: static; }
    .biens-grid { grid-template-columns: repeat(2, 1fr); }
    .biens-filter-toggle {
        display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
        background: var(--bien-orange); color: #fff; border: none; border-radius: 10px;
        padding: 12px 20px; font-family: 'Poppins', sans-serif; font-weight: 600; cursor: pointer;
    }
    .biens-filters { display: none; }
    .biens-filters.open { display: block; }
    .bien-contact-band { grid-template-columns: 1fr; }
    .bien-hero .price { margin-left: 0; text-align: left; width: 100%; }
    .bien-stage .owl-carousel .item img { height: 420px; }
}
@media (max-width: 767px) {
    .bien-features { grid-template-columns: repeat(2, 1fr); }
    .bien-hero h1 { font-size: 26px; }
    .bien-contact-band .cc-left, .bien-contact-band .cc-right { padding: 32px 24px; }
    .bien-similar-area .inner { padding: 26px 18px; }
}
@media (max-width: 575px) {
    .biens-grid { grid-template-columns: 1fr; }
    .bien-features { grid-template-columns: 1fr 1fr; }
    .bien-stage .owl-carousel .item img { height: 300px; }
    .bien-thumbs .th { flex-basis: 84px; height: 60px; }
}
