/* Map Franchise - CSS Clean v2 */

/* Container principal */
.mf-container {
    display: flex;
    height: 600px;
    width: 100%;
    position: relative;
}

/* Colonne carte à gauche */
.mf-map-column {
    flex: 1;
    height: 100%;
    position: relative;
    z-index: 1;
}

#mf-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Sidebar à droite */
.mf-list-column {
    width: 380px;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Search */
.mf-search-box {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mf-search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.mf-search-box input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Liste */
.mf-agencies-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
}

.mf-agencies-list::-webkit-scrollbar {
    width: 6px;
}

.mf-agencies-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Cards */
.mf-agency-card {
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.mf-agency-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mf-agency-card.active {
    border-color: #E95A0C;
}

.mf-agency-card.hidden {
    display: none;
}

.mf-card-header {
    display: flex;
    padding: 15px;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mf-agency-photo {
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.mf-agency-initials {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
}

.mf-agency-title {
    flex: 1;
    min-width: 0;
}

.mf-agency-name {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.mf-agency-address {
    margin: 0;
    color: #666;
    font-size: 12px;
    display: flex;
    gap: 5px;
}

.mf-agency-address svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.mf-card-footer {
    padding: 12px 15px;
}

.mf-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
}

.mf-info-row svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.mf-agency-phone {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.mf-agency-phone:hover {
    text-decoration: underline;
}

.mf-agency-manager {
    color: #555;
}

/* Popups */
.mf-popup {
    max-width: 350px;
}

.mf-popup-content {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.mf-popup-photo {
    flex-shrink: 0;
    width: 100px;
}

.mf-popup-photo img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.mf-popup-info {
    flex: 1;
    min-width: 0;
}

.mf-popup h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.mf-popup-address,
.mf-popup-detail {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
    display: flex;
    gap: 5px;
}

.mf-popup-address svg,
.mf-popup-detail svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.mf-popup-detail a {
    color: #0073aa;
    text-decoration: none;
}

.mf-popup-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.mf-primary-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #E95A0C;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.mf-primary-btn:hover {
    background: #d44f0a;
}

/* Clusters */
.marker-cluster-custom {
    background: transparent !important;
}

.marker-cluster-custom .cluster-bubble {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #E95A0C;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.marker-cluster-custom .cluster-bubble span {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .mf-list-column {
        display: none;
    }
}
