/* ============================================================
   DETAIL LOGEMENT VISITEUR - FindLoc
   Layout wrapper + composants spécifiques visiteur.
   Les classes dl-* viennent de detail-logement.css.
   ============================================================ */

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

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    color: #111827;
}

/* ─── OUTER CONTAINER ───────────────────────────────────── */

.dlv-outer {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 72px;
}

/* ─── BOUTON RETOUR ─────────────────────────────────────── */

.dlv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem .5rem .75rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: background .15s, border-color .15s, color .15s, transform .12s;
}

.dlv-back-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.dlv-back-btn:hover {
    background: #eef4ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
    transform: translateX(-2px);
}

/* ─── THÈME VISITEUR pour classes dl- ──────────────────── */

/* Les classes dl-* utilisent --role-color, on la définit ici */
.dlv-outer {
    --role-color:       #1d4ed8;
    --role-color-light: #eef4ff;
    --role-color-dark:  #1a45c4;
}

/* Étoiles visiteur */
.dlv-stars {
    display: inline-flex;
    gap: 1px;
    color: #f59e0b;
    vertical-align: middle;
}

.dlv-stars svg {
    width: 14px;
    height: 14px;
}

/* Note inline dans le titre de section */
.dlv-note-inline {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-left: .75rem;
    vertical-align: middle;
}

.dlv-note-val {
    font-size: .9rem;
    font-weight: 700;
    color: #f59e0b;
}

.dlv-note-count {
    font-size: .82rem;
    color: #94a3b8;
    font-weight: 400;
}

/* ─── PAGE "INTROUVABLE" ────────────────────────────────── */

.dlv-notfound {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dlv-notfound__icon { font-size: 2.5rem; }

.dlv-notfound h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dlv-notfound p {
    font-size: .9rem;
    color: #64748b;
    margin: 0;
}

/* ─── BANNIÈRE CTA INSCRIPTION ──────────────────────────── */

.dlv-cta-banner {
    background: linear-gradient(140deg, #1d4ed8 0%, #5012c4 100%);
    border-radius: 18px;
    padding: 36px 32px;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
}

.dlv-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 75% at 85% 35%, rgba(255,255,255,.07) 0%, transparent 65%);
    pointer-events: none;
}

.dlv-cta-banner__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
}

.dlv-cta-banner__text {
    flex: 1 1 260px;
}

.dlv-cta-banner__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.dlv-cta-banner__sub {
    font-size: .93rem;
    color: rgba(255,255,255,.82);
    line-height: 1.65;
    margin: 0;
}

.dlv-cta-banner__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dlv-cta-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 11px 22px;
    transition: transform .2s, opacity .2s;
    white-space: nowrap;
}

.dlv-cta-btn:hover {
    transform: translateY(-2px);
    opacity: .92;
}

.dlv-cta-btn--primary {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

.dlv-cta-btn--secondary {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
}

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

@media (max-width: 640px) {
    .dlv-outer {
        padding: 20px 16px 56px;
    }

    .dlv-cta-banner {
        padding: 28px 20px;
    }

    .dlv-cta-banner__inner {
        flex-direction: column;
        gap: 20px;
    }

    .dlv-cta-banner__btns {
        flex-direction: column;
        width: 100%;
    }

    .dlv-cta-btn {
        justify-content: center;
    }
}
