.branch-locator-wrapper-4132ca67 {
    position: relative;
    width: 100%;
}

.branch-filters-4132ca67 {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.branch-country-select-4132ca67 {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    min-width: 200px;
    font-size: 14px;
}

.branch-reset-btn-4132ca67 {
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.branch-reset-btn-4132ca67:hover {
    background: #444;
}

.branch-locator-map-4132ca67 {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1;
}

/* Custom DOM Markers for Mapbox */
.bl-4132ca67-marker {
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.bl-4132ca67-pin {
    width: 30px; 
    height: 30px; 
    border-radius: 50% 50% 50% 0;
    background: #222;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.bl-4132ca67-pin::after {
    content: '';
    width: 12px; 
    height: 12px; 
    margin: 9px 0 0 9px; 
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

.bl-4132ca67-marker:hover .bl-4132ca67-pin {
    transform: rotate(-45deg) scale(1.15);
}

.bl-4132ca67-marker.is-coming-soon .bl-4132ca67-pin {
    background: #888;
    border: 2px dashed #fff;
}

/* Reference Design Popup Styling */
.bl-4132ca67-ref-popup .mapboxgl-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: none;
    position: relative;
    width: 300px;
    overflow: hidden;
}

/* Hide default tip for cleaner look */
.bl-4132ca67-ref-popup .mapboxgl-popup-tip {
    border-top-color: #fff;
}

.bl-4132ca67-popup-hero-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    background-color: #f5f5f5; /* Fallback color */
}

.bl-4132ca67-popup-body-wrap {
    padding: 24px;
}

.bl-4132ca67-popup-close-ref {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    color: #333;
    padding: 0;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-4132ca67-popup-close-ref:hover {
    background: #fff;
    color: #cc2b2b;
}

.bl-4132ca67-popup-title-ref {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.bl-4132ca67-popup-address-ref {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Redesigned Explore Button */
.bl-4132ca67-popup-btn-ref {
    display: inline-block;
    background-color: #cc2b2b;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    width: 100%; /* Full width in popup */
    box-sizing: border-box;
}

.bl-4132ca67-popup-btn-ref:hover {
    background-color: #a51d1d;
    transform: translateY(-2px); /* Slight lift effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .branch-locator-map-4132ca67 {
        height: 450px;
    }
    
    .branch-filters-4132ca67 {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Adjusted mobile popup width for better responsiveness */
    .bl-4132ca67-ref-popup .mapboxgl-popup-content {
        width: 280px; /* Reduced from desktop, slightly wider than before for better content fit */
        max-width: 90vw; /* Ensure it doesn't overflow screen */
    }
    
    .bl-4132ca67-popup-hero-img {
        height: 140px;
    }
    
    .bl-4132ca67-popup-body-wrap {
        padding: 20px;
    }
    
    .bl-4132ca67-popup-title-ref {
        font-size: 20px;
    }
}