.cities-weather-container {
    display: flex;
    gap: 15px;
    max-width: 1100px;
    margin: 15px auto;
    padding: 0 15px;
}

.cities-grid, .yerevan-weather {
    border: 1px solid #000;
    border-radius: 8px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cities-grid {
    flex: 3;
}

.cities-grid h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
}

.cities-grid-inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
}

.city-item {
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.city-item:hover {
    background: #e6f0fa;
    transform: translateY(-2px);
}

.city-link {
    display: block;
    font-size: 15px;
    color: #005566;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
}

.yerevan-weather {
    flex: 1;
    background-image: url('/media/yerevan.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 10px;
}

.yerevan-weather::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.yerevan-weather h2, .yerevan-weather p, .yerevan-weather img {
    position: relative;
    z-index: 2;
}

.yerevan-weather h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.yerevan-weather p {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
    margin: 3px 0;
}

.yerevan-weather .weather-icon {
    width: 32px;
    height: 32px;
    margin: 6px 0;
}

@media (max-width: 768px) {
    .cities-weather-container {
        flex-direction: column;
        gap: 10px;
        margin: 10px auto;
        padding: 0 10px;
    }

    .cities-grid-inner {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, auto);
    }

    .yerevan-weather {
        min-height: 120px;
    }

    .yerevan-weather .weather-icon {
        width: 28px;
        height: 28px;
    }

    .yerevan-weather p {
        font-size: 11px;
    }

    .yerevan-weather h2 {
        font-size: 16px;
    }

    .cities-grid h2 {
        font-size: 18px;
    }

    .city-link {
        font-size: 14px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .cities-weather-container {
        margin: 8px auto;
        padding: 0 8px;
    }

    .cities-grid-inner {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(9, auto);
    }

    .cities-grid h2 {
        font-size: 16px;
    }

    .city-link {
        font-size: 13px;
        padding: 5px;
    }

    .yerevan-weather {
        min-height: 100px;
    }

    .yerevan-weather h2 {
        font-size: 14px;
    }

    .yerevan-weather .weather-icon {
        width: 24px;
        height: 24px;
    }

    .yerevan-weather p {
        font-size: 10px;
    }
}