/* Стили для секции городов */
.cities-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.city-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.city-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.city-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.city-info {
    padding: 16px;
    position: relative;
}

.city-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.city-properties-count {
    color: #718096;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-properties-count i {
    color: #3182ce;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cities-grid.hidden {
    display: none;
}

@media (max-width: 640px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .city-card {
        border-radius: 8px;
    }

    .city-image {
        height: 80px;
    }

    .city-info {
        padding: 12px;
    }

    .city-name {
        font-size: 16px;
    }

    .city-properties-count {
        font-size: 13px;
    }
}

/* Анимация загрузки */
.cities-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.cities-loading.hidden {
    display: none !important;
}

.cities-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}