.store-locator-container {
    /*margin: 20px 0;*/
}

.store-locator-search {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-locator-search input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.store-locator-search button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.store-locator-search button:hover {
    background: #005a87;
}

.store-locator-search button#clear-search {
    background: #666;
}

.store-locator-search button#clear-search:hover {
    background: #444;
}

#store-locator-map {
    border: 1px solid #ddd;
    border-radius: 8px;
    /*margin-bottom: 20px;*/
}

.leaflet-control-zoom-out , .leaflet-control-zoom-in{
    
    color: #f9b02e !important;
}


.dealers-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.dealers-list h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.dealer-item {
    background: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dealer-item h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.dealer-item .dealer-address {
    color: #666;
    margin-bottom: 5px;
}

.dealer-item .dealer-contact {
    font-size: 14px;
    color: #777;
}

.dealer-item .dealer-contact a {
    color: #0073aa;
    text-decoration: none;
}

.dealer-item .dealer-contact a:hover {
    text-decoration: underline;
}

/* Leaflet popup customization */

.leaflet-control-attribution {
    display:none;
}


html[lang="ar"] body .leaflet-popup-content {
    text-align: right;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dealer-popup {
    max-width: 300px;
}

.dealer-popup h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid #f9b02e;
    padding-bottom: 5px;
}

.dealer-popup .popup-content {
    font-size: 14px;
    line-height: 1.4;
}

.dealer-popup .popup-address {
    margin: 8px 0;
    color: #666;
}

.dealer-popup .popup-contact {
    margin: 8px 0;
}

.dealer-popup .popup-contact a {
    color: #333;
    text-decoration: none;
}

.dealer-popup .popup-contact a:hover {
    text-decoration: underline;
    color: #f9b02e;
}

.popup-directions {
    margin-top: 12px;
    text-align: center;
}

.popup-directions a {
    display: inline-block;
    background: #f9b02e;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.popup-directions a:hover {
    background: #0e487e;
}

/* Google Maps info window styling */
.gm-style .dealer-info-window {
    font-family: Arial, sans-serif;
}

.gm-style .dealer-info-window h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.gm-style .dealer-info-window p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .store-locator-search {
        flex-direction: column;
    }
    
    .store-locator-search input[type="text"] {
        min-width: auto;
    }
    
     #store-locator-map{
        height: 400px !important;
    }
    
    
    .dealer-popup {
        max-width: 250px;
    }
}


@media (max-width: 400px) {

    
    #store-locator-map{
        height: 300px !important;
    }
    
    
        
    .leaflet-popup-content {
        padding: 13px 24px 13px 20px;
        margin:0;
    }

    
    .dealer-popup {
        max-width: 210px;
    }
}

