/* Branch Modal Styles */
.branch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.branch-modal.active {
    opacity: 1;
    visibility: visible;
}

.branch-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.branch-modal__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #0f1218;
    /* Dark theme match */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.branch-modal.active .branch-modal__content {
    transform: scale(1);
}

.branch-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.branch-modal__close:hover {
    background: #ff4d4d;
}

.branch-modal__header {
    padding: 24px;
    background: linear-gradient(to bottom, #1a1f2e, #0f1218);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.branch-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.branch-modal__info p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.branch-modal__map {
    width: 100%;
    height: 400px;
    background: #000;
}

/* Leaflet dark theme tweaks if needed for this specific map */
.branch-modal__map .leaflet-container {
    background: #1a1f2e;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .branch-modal__content {
        width: 95%;
        border-radius: 16px;
    }

    .branch-modal__header {
        padding: 16px;
    }

    .branch-modal__title {
        font-size: 1.25rem;
    }

    .branch-modal__info p {
        font-size: 0.85rem;
    }

    .branch-modal__map {
        height: 50vh;
        min-height: 250px;
    }
}