﻿.city-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    height: 320px;
}

    .city-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.city-content h3 {
    margin-bottom: 0;
}

.city-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 14px;
}

.city-card:hover img {
    transform: scale(1.15);
}

.city-card:hover .city-details {
    opacity: 1;
    max-height: 300px;
    margin-top: 12px;
}
