/* Root City Selection Modal Styles */

.city-selector-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    align-items: flex-end; /* Bottom sheet on mobile */
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.city-selector-backdrop.active {
    display: flex;
    opacity: 1;
}

.city-selector-modal {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

.city-selector-backdrop.active .city-selector-modal {
    transform: translateY(0);
}

.city-selector-header {
    text-align: center;
    margin-bottom: 24px;
}

.city-selector-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.city-selector-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.city-selector-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.city-selector-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: #f5f5f5;
    color: #333;
    transition: background 0.2s;
    line-height: 1.3;
}

.city-selector-btn:hover {
    background: #ebebeb;
}

.city-selector-btn-primary {
    background: #0066cc; /* Example active color */
    color: #ffffff;
}

.city-selector-btn-primary:hover {
    background: #005bb5;
}

.city-selector-attribution {
    text-align: center;
    margin-top: 16px;
    font-size: 0.75rem;
    color: #999;
}

.city-selector-attribution a {
    color: #999;
    text-decoration: underline;
}

/* Desktop override */
@media (min-width: 768px) {
    .city-selector-backdrop {
        align-items: center; /* Center on desktop */
    }
    .city-selector-modal {
        border-radius: 16px;
        transform: scale(0.95);
        transform-origin: center;
    }
    .city-selector-backdrop.active .city-selector-modal {
        transform: scale(1);
    }
}
