.map-container {
    position: relative;
    margin-bottom: 10px;
    border-radius: 25px;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.07), 2px 0px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/*.map {
    height: 400px;
    width: 100%;
}*/

.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #ff6900;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
}

.loading {
    display: flex !important;
}

#billing-map-controls,
#shipping-map-controls {
    padding: 10px;
    text-align: center;
    margin-bottom: 30px;
    display: none;
}

#billing-map-controls .button,
#shipping-map-controls .button {
    border-radius: 25px;
    color: white;
    background: linear-gradient(45deg, #ff6900, #ffaa00);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.2);
}

#billing-map-controls .button::before,
#shipping-map-controls .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

#billing-map-controls .button:hover,
#shipping-map-controls .button:hover {
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.4);
}

#billing-map-controls .button:hover::before,
#shipping-map-controls .button:hover::before {
    left: 100%;
}


.button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    text-align: center;
    margin: 20px 0;
    display: none;
}

@media (max-width: 768px) {
    .map {
        height: 300px;
    }
}

/* تخصيص Leaflet controls للعربية */
.leaflet-control-container {
    direction: ltr;
}

.leaflet-popup-content {
    direction: rtl;
    text-align: right;
}

