/* =============================================
   MAGASIN REINES EN SCÈNE — Front CSS
   ============================================= */

/* Conteneur global */
.mrs-front-wrap {
    display: flex;
    height: 560px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Sidebar gauche */
.mrs-sidebar {
    width: 300px;
    min-width: 260px;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
    overflow: hidden;
}

.mrs-sidebar-title {
    padding: 16px 18px 12px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 2px solid #fdbe01;
    background: #fff;
    flex-shrink: 0;
}

#mrs-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Scrollbar sidebar */
#mrs-sidebar-list::-webkit-scrollbar {
    width: 4px;
}
#mrs-sidebar-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}
#mrs-sidebar-list::-webkit-scrollbar-thumb {
    background: #fdbe01;
    border-radius: 2px;
}

/* Carte */
.mrs-front-map {
    flex: 1;
    min-width: 0;
}

/* Item sidebar */
.mrs-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background .15s;
}
.mrs-sidebar-item:hover {
    background: #fffbef;
}
.mrs-sidebar-item.active {
    background: #fff8e1;
    border-left: 3px solid #fdbe01;
}

.mrs-sidebar-icon {
    flex-shrink: 0;
    width: 52px !important;
    height: 52px !important;
    margin-top: 2px;
}
.mrs-sidebar-icon img {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain;
}

.mrs-sidebar-content {
    flex: 1;
    min-width: 0;
}
.mrs-sidebar-nom {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mrs-sidebar-adresse {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bouton S'y rendre */
.mrs-btn-directions {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: #fdbe01;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .02em;
    white-space: nowrap;
}
.mrs-btn-directions:hover {
    background: #e0a800;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Popup Leaflet custom */
.mrs-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-width: 180px;
}
.mrs-popup-nom {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 4px;
}
.mrs-popup-adresse {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}
.mrs-popup .mrs-btn-directions {
    padding: 5px 14px;
    font-size: 0.8rem;
}

/* ── RESPONSIVE ── */

/* Tablette */
@media (max-width: 768px) {
    .mrs-front-wrap {
        flex-direction: column;
        height: auto;
        border-radius: 8px;
    }
    .mrs-sidebar {
        width: 100%;
        min-width: 0;
        max-height: 260px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .mrs-front-map {
        height: 380px;
        flex: 0 0 380px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .mrs-sidebar {
        max-height: 220px;
    }
    .mrs-front-map {
        height: 300px;
        flex: 0 0 300px;
    }
    .mrs-sidebar-icon { width: 26px; height: 26px; }
    .mrs-sidebar-icon img { width: 26px; height: 26px; }
    .mrs-sidebar-nom { font-size: 0.8rem; }
    .mrs-sidebar-adresse { font-size: 0.7rem; }
}
