/* ═══════════════════════════════════════════════════════════════════════════
   PAGE LOGEMENT — Design Airbnb style — logement.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────────────── */
.logement-page {
    --lgt-max-width: 1120px;
    --lgt-gap: 48px;
    --lgt-radius: 12px;
    --lgt-gallery-height: 430px;
    --lgt-color-text: #222;
    --lgt-color-muted: #717171;
    --lgt-color-border: #ddd;
    --lgt-color-bg: #fff;
    --lgt-color-accent: #ff385c;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    background: #fff;
    color: var(--lgt-color-text);
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.lgt-wrapper {
    max-width: var(--lgt-max-width);
    margin: 0 auto;
    padding: 24px 24px 64px;
}

/* ── Bannière admin ─────────────────────────────────────────────────────── */
.lgt-preview-banner {
    background: #fff3cd;
    border-bottom: 3px solid #ffc107;
    padding: 12px 24px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.lgt-preview-banner a {
    margin-left: 12px;
    color: #c62828;
    text-decoration: underline;
}

/* ── Header listing ─────────────────────────────────────────────────────── */
.lgt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.lgt-header-left { flex: 1; min-width: 0; }
.lgt-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    padding-top: 26px; /* aligner avec le titre */
}

/* Fil d'Ariane */
.lgt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--lgt-color-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.lgt-breadcrumb a {
    color: var(--lgt-color-muted);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s;
}
.lgt-breadcrumb a:hover { text-decoration-color: var(--lgt-color-muted); }
.lgt-breadcrumb-current { color: var(--lgt-color-text); font-weight: 500; }

/* Badge new */
.lgt-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff9c4;
    color: #f57f17;
    border: 1px solid #ffe082;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Titre */
.lgt-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--lgt-color-text);
    margin: 0 0 8px;
}
.lgt-title-city {
    font-weight: 400;
    color: #444;
}

/* Adresse */
.lgt-address {
    display: inline-block;
    color: var(--lgt-color-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}
.lgt-address:hover { color: var(--lgt-color-accent); }

/* Boutons header */
.lgt-btn-save {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--lgt-color-border);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    font-family: inherit;
    color: var(--lgt-color-text);
}
.lgt-btn-save:hover { background: #f7f7f7; border-color: #aaa; }
.lgt-btn-save.saved i.fa-regular { display: none !important; }
.lgt-btn-save.saved i.fa-solid   { display: inline !important; color: var(--lgt-color-accent); }
.lgt-btn-save i.fa-solid         { display: none; }

.lgt-btn-admin {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.lgt-btn-admin:hover { background: #ffe69c; }

/* ── Galerie photos ─────────────────────────────────────────────────────── */
.lgt-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: var(--lgt-gallery-height);
    border-radius: var(--lgt-radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.lgt-photo-main {
    height: 100%;
    overflow: hidden;
    border-radius: var(--lgt-radius) 0 0 var(--lgt-radius);
}
.lgt-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.lgt-photo-main:hover img { transform: scale(1.03); }

.lgt-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.lgt-photo-cell {
    overflow: hidden;
    position: relative;
}
.lgt-photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.lgt-photo-cell:hover img { transform: scale(1.03); }

/* Arrondis coins droits */
.lgt-photo-cell:nth-child(2) { border-radius: 0 var(--lgt-radius) 0 0; }
.lgt-photo-cell:nth-child(4) { border-radius: 0 0 var(--lgt-radius) 0; }

/* Placeholder photo */
.lgt-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 28px;
}
.lgt-photo-placeholder--large { font-size: 48px; }
.lgt-photo-main .lgt-photo-placeholder { border-radius: inherit; }

/* ── Contenu principal ──────────────────────────────────────────────────── */
.lgt-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--lgt-gap);
    align-items: start;
}

/* ── Colonne main ───────────────────────────────────────────────────────── */
.lgt-main { min-width: 0; }

.lgt-divider {
    border: none;
    border-top: 1px solid var(--lgt-color-border);
    margin: 28px 0;
}

/* Hôte */
.lgt-host {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}
.lgt-host-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0;
}
.lgt-host-name {
    font-size: 16px;
    color: var(--lgt-color-text);
    margin: 0 0 4px;
}
.lgt-host-name strong { font-weight: 700; }
.lgt-host-since {
    font-size: 13px;
    color: var(--lgt-color-muted);
    margin: 0;
}

/* Sections */
.lgt-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--lgt-color-text);
    margin: 0 0 16px;
}
.lgt-description {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin: 0;
}

/* Équipements */
.lgt-amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
.lgt-amenity {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--lgt-color-text);
    padding: 2px 0;
}
.lgt-amenity i {
    width: 22px;
    text-align: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Infos logement */
.lgt-infos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.lgt-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lgt-info-item i {
    font-size: 22px;
    color: var(--lgt-color-text);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.lgt-info-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lgt-info-item strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--lgt-color-text);
}
.lgt-info-item span {
    font-size: 12px;
    color: var(--lgt-color-muted);
}

/* ── Sidebar booking card ───────────────────────────────────────────────── */
.lgt-sidebar {
    position: sticky;
    top: 90px;
}
.lgt-booking-card {
    background: #fff;
    border: 1px solid var(--lgt-color-border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 28px;
}

/* Prix */
.lgt-booking-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
}
.lgt-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--lgt-color-text);
}
.lgt-price-unit {
    font-size: 14px;
    color: var(--lgt-color-muted);
}

/* Champs */
.lgt-booking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--lgt-color-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.lgt-booking-field {
    padding: 12px 14px;
}
.lgt-booking-field--left {
    border-right: 1px solid var(--lgt-color-border);
}
.lgt-field-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--lgt-color-text);
    margin-bottom: 4px;
}
.lgt-field-value {
    font-size: 14px;
    color: var(--lgt-color-text);
}

/* Bouton réserver */
.lgt-btn-reserver {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    font-family: inherit;
    letter-spacing: .01em;
    margin-bottom: 14px;
}
.lgt-btn-reserver:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

/* Note */
.lgt-booking-note {
    font-size: 12px;
    color: var(--lgt-color-muted);
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Récapitulatif */
.lgt-booking-breakdown {
    border-top: 1px solid var(--lgt-color-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lgt-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--lgt-color-text);
}
.lgt-breakdown-row--note {
    font-size: 12px;
    color: var(--lgt-color-muted);
}
.lgt-breakdown-divider {
    border: none;
    border-top: 1px solid var(--lgt-color-border);
    margin: 4px 0;
}
.lgt-breakdown-row--total {
    font-size: 15px;
}
.lgt-commission-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lgt-content {
        grid-template-columns: 1fr 340px;
        gap: 32px;
    }
}

@media (max-width: 860px) {
    .lgt-gallery { --lgt-gallery-height: 300px; height: 300px; }
    .lgt-content {
        grid-template-columns: 1fr;
    }
    .lgt-sidebar {
        position: static;
        order: -1; /* card au-dessus sur mobile */
    }
    .lgt-infos { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .lgt-wrapper { padding: 16px 16px 48px; }
    .lgt-gallery { height: 240px; }
    .lgt-title { font-size: 20px; }
    .lgt-header { flex-direction: column; }
    .lgt-header-right { padding-top: 0; }
    .lgt-amenities { grid-template-columns: 1fr; }
}
