#city-selector-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#city-selector-popup .popup-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

#city-selector-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

#city-selector-popup .close-popup {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

/* Spinning Loader Styles */
.spinner-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
}

.spinner-loader.is-visible {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-text {
    color: white;
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loader overlay for popup content */
.popup-content.loading {
    position: relative;
    pointer-events: none;
}

.popup-content.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup-content.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

#city-change-confirm-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#city-change-confirm-popup .popup-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

#city-change-confirm-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

#city-change-confirm-popup .close-popup {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

/* Additional styles for the confirmation popup buttons */
#city-change-confirm-popup .popup-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#city-change-confirm-popup .confirm-change,
#city-change-confirm-popup .cancel-change {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#city-change-confirm-popup .confirm-change {
    background: #007cba;
    color: white;
    border: none;
}

#city-change-confirm-popup .cancel-change {
    background: #f0f0f0;
    border: 1px solid #ddd;
}