/* ============================================================
   LOGEMENTS VISITEUR - FindLoc
   ============================================================ */

/* Google Fonts chargé via <link> dans le HTML */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f4f6fb;
    color: #111827;
}

/* ─── LAYOUT ────────────────────────────────────────────── */

.lv-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 36px 56px;
    align-items: start;
}

/* ─── SIDEBAR FILTRES ───────────────────────────────────── */

.lv-sidebar {
    position: sticky;
    top: 80px;
}

.lv-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.1rem 1rem 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lv-filters__title {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin: 0 0 .85rem;
}

/* Accordéon */
.lv-acc {
    border-bottom: 1px solid #f1f5f9;
}

.lv-acc:last-of-type { border-bottom: none; }

.lv-acc__head {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 0;
    cursor: pointer;
    list-style: none;
    font-size: .875rem;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
}

.lv-acc__head::-webkit-details-marker { display: none; }
.lv-acc__head > span:first-child {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lv-acc__icon {
    flex-shrink: 0;
    color: #1d4ed8;
    opacity: 0.75;
}

/* ── Compteur de filtres actifs ─────────────────────────────────────────── */
.lv-filter-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef4ff;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
}
.lv-filter-count span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
}
.lv-filter-count a {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}
.lv-filter-count a:hover { color: #ef4444; }

.lv-acc__val {
    font-size: .75rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eef4ff;
    border-radius: 20px;
    padding: .1rem .5rem;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-acc__chevron {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform .2s;
}

details.lv-acc[open] .lv-acc__chevron { transform: rotate(180deg); }

.lv-acc__body { padding-bottom: .85rem; }

/* Inputs */
.lv-input {
    width: 100%;
    padding: .5rem .7rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .83rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.lv-input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

.lv-input-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Slider */
.lv-slider-block {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.lv-slider-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lv-slider-display__label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
}

.lv-slider-display__val {
    font-size: 1rem;
    font-weight: 800;
    color: #1d4ed8;
}

.lv-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.lv-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1d4ed8;
    box-shadow: 0 1px 6px rgba(0,0,0,.15);
    cursor: pointer;
}

.lv-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1d4ed8;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,.15);
}

.lv-slider-bounds {
    display: flex;
    justify-content: space-between;
    font-size: .68rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Pills */
.lv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.lv-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .7rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    background: #fff;
    transition: border-color .12s, background .12s, color .12s;
    user-select: none;
    white-space: nowrap;
}

.lv-pill input { display: none; }
.lv-pill:hover { border-color: #93c5fd; color: #1d4ed8; }
.lv-pill--on { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.lv-pill--on:hover { border-color: #1a45c4; background: #1a45c4; color: #fff; }

.lv-pills--sm .lv-pill {
    min-width: 0;
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
}

/* Reset */
.lv-reset {
    font-size: .78rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    display: block;
    text-align: center;
    padding-top: .85rem;
    border-top: 1px solid #f1f5f9;
    margin-top: .5rem;
    transition: color .15s;
}

.lv-reset:hover { color: #ef4444; }

/* ─── CONTENU RÉSULTATS ─────────────────────────────────── */

.lv-content { min-width: 0; }

.lv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lv-header__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 .15rem;
}

.lv-header__sub {
    font-size: .85rem;
    color: #94a3b8;
    margin: 0;
}

/* ─── LISTE DES LOGEMENTS ───────────────────────────────── */

.lv-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lv-card {
    display: flex;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s, border-color .18s;
}

.lv-card:hover {
    box-shadow: 0 4px 20px rgba(29,78,216,.12);
    border-color: #1d4ed8;
}

.lv-card--clickable {
    cursor: pointer;
}

.lv-card__photo {
    flex-shrink: 0;
    width: 220px;
    min-height: 160px;
    background: #f1f5f9;
    position: relative;
}

.lv-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lv-card__no-photo {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #94a3b8;
    font-size: 1.8rem;
}

.lv-card__no-photo small {
    font-size: .75rem;
    font-weight: 500;
}

.lv-badge-meuble {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1d4ed8;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 6px;
}

.lv-card__body {
    flex: 1;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .75rem;
}

.lv-card__top {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.lv-card__titre {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.lv-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    font-size: .82rem;
    color: #64748b;
}

.lv-sep { color: #cbd5e1; }

.lv-card__loc {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .83rem;
    color: #475569;
    font-weight: 500;
}

.lv-card__loc svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #1d4ed8;
}

.lv-card__desc {
    font-size: .82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lv-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lv-prix {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.lv-prix__total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1d4ed8;
}

.lv-prix__total small {
    font-size: .75rem;
    font-weight: 500;
    color: #64748b;
}

.lv-prix__hc {
    font-size: .82rem;
    color: #94a3b8;
}

.lv-card__dispo {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eef4ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: .3rem .7rem;
    white-space: nowrap;
}

.lv-card__dispo svg { width: 13px; height: 13px; flex-shrink: 0; }

.lv-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.lv-card__cta:hover {
    background: #1a45c4;
    transform: translateY(-1px);
}

/* ─── NOTE ──────────────────────────────────────────────── */

.lv-note {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.lv-stars {
    display: flex;
    gap: 1px;
    color: #f59e0b;
}

.lv-stars svg { width: 13px; height: 13px; }
.lv-note__val { font-size: .82rem; font-weight: 700; color: #f59e0b; }
.lv-note__count { font-size: .78rem; color: #94a3b8; }

/* ─── BANNIÈRE LIMITE ───────────────────────────────────── */

.lv-limit-banner {
    background: linear-gradient(140deg, #1d4ed8 0%, #5012c4 100%);
    border-radius: 18px;
    padding: 40px 36px;
    text-align: center;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.lv-limit-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 40%, rgba(255,255,255,.06) 0%, transparent 65%);
    pointer-events: none;
}

.lv-limit-banner__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 16px;
}

.lv-limit-banner h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.lv-limit-banner p {
    font-size: .97rem;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 440px;
}

.lv-limit-banner__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.lv-limit-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: .97rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 24px;
    transition: transform .2s, opacity .2s;
}

.lv-limit-banner__btn:hover {
    transform: translateY(-2px);
    opacity: .92;
}

.lv-limit-banner__btn--primary {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.lv-limit-banner__btn--secondary {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
}

/* ─── ÉTAT VIDE ─────────────────────────────────────────── */

.lv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    gap: .6rem;
}

.lv-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.lv-empty__title { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin: 0; }
.lv-empty__sub { font-size: .875rem; color: #64748b; margin: 0; max-width: 360px; }
.lv-empty__link {
    font-size: .9rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
    padding: .45rem 1rem;
    border: 1.5px solid #1d4ed8;
    border-radius: 8px;
    margin-top: 4px;
    transition: background .15s, color .15s;
}
.lv-empty__link:hover { background: #1d4ed8; color: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 900px) {
    .lv-page { grid-template-columns: 1fr; padding: 20px 24px 40px; }
    .lv-sidebar { position: static; }
}

@media (max-width: 640px) {
    .lv-page { padding: 16px 16px 36px; gap: 20px; }
    .lv-card { flex-direction: column; }
    .lv-card__photo { width: 100%; min-height: 180px; }
    .lv-card__bottom { flex-direction: column; align-items: flex-start; }
    .lv-limit-banner { padding: 28px 20px; }
    .lv-limit-banner__btns { flex-direction: column; align-items: stretch; }
    .lv-limit-banner__btn { justify-content: center; }
}

/* ── BARRE FILTRES HORIZONTALE (visiteur) ──────────────────────────────── */
.lv-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    padding: 14px 20px;
    position: sticky;
    top: 64px;
    z-index: 90;
    overflow-x: auto;
    scrollbar-width: none;
}
.lv-bar::-webkit-scrollbar { display: none; }
.lv-bar__scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.lv-cw { position: relative; flex-shrink: 0; }

.lv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    font-size: .83rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
    font-family: inherit;
}
.lv-chip svg:first-child { color: #6b7280; flex-shrink: 0; }
.lv-chip:hover { border-color: #1d4ed8; color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.lv-chip:hover svg:first-child { color: #1d4ed8; }
.lv-chip--on {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(29,78,216,.3);
}
.lv-chip--on svg:first-child { color: rgba(255,255,255,.9); }
.lv-chip--on:hover { background: #1a45c4; border-color: #1a45c4; }
.lv-chip__arr { color: #9ca3af; transition: transform .2s; flex-shrink: 0; }
.lv-chip--on .lv-chip__arr { color: rgba(255,255,255,.75); }
.lv-cw.is-open .lv-chip__arr { transform: rotate(180deg); }
.lv-cw.is-open .lv-chip:not(.lv-chip--on) { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }

.lv-drop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    padding: 1.1rem 1.1rem .9rem;
    min-width: 250px;
    z-index: 300;
    animation: dropIn .15s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.lv-cw.is-open .lv-drop { display: block; }

.lv-drop__ttl {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #94a3b8;
    margin: 0 0 .9rem;
}
.lv-drop__input {
    width: 100%;
    padding: .55rem .8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .85rem;
    color: #1e293b;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    display: block;
    margin-bottom: .5rem;
}
.lv-drop__input:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }

.lv-drop__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .9rem;
}
.lv-dpill {
    display: inline-flex;
    align-items: center;
    padding: .38rem .85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    background: #fff;
    transition: border-color .12s, background .12s, color .12s;
    user-select: none;
    white-space: nowrap;
}
.lv-dpill input { display: none; }
.lv-dpill:hover { border-color: #93c5fd; color: #1d4ed8; }
.lv-dpill--on { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }

.lv-drop__sl-big {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1d4ed8;
    text-align: center;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}
.lv-drop__slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    margin-bottom: .4rem;
}
.lv-drop__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1d4ed8;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    cursor: pointer;
}
.lv-drop__slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1d4ed8;
    cursor: pointer;
}
.lv-drop__bounds {
    display: flex;
    justify-content: space-between;
    font-size: .68rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: .9rem;
}
.lv-drop__apply {
    width: 100%;
    padding: .62rem;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .1s;
}
.lv-drop__apply:hover { background: #1a45c4; transform: translateY(-1px); }

.lv-bar__reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    transition: color .15s, border-color .15s, background .15s;
}
.lv-bar__reset:hover { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }

/* Layout : pleine largeur pour le contenu avec la barre horizontale */
.lv-page { grid-template-columns: 1fr !important; }
.lv-sidebar { display: none !important; }
.lv-content { max-width: 900px; margin: 0 auto; padding-top: 24px; }

@media (max-width: 640px) {
    .lv-bar { padding: 8px 16px; top: 56px; }
}
