/* Base Styles */

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
    font-size: 2rem;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

.city-card {
    position: relative;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.city-card::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: linear-gradient(135deg, #1e90ff 0%, #00bcd4 100%);
    opacity: 0.05;
    transform: rotate(25deg);
    z-index: 0;
}

.city-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Text Styling */
.city-name {
    position: relative;
    font-size: 1.4rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 12px;
    z-index: 1;
}

.city-info {
    position: relative;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-info p {
    margin: 5px 0;
    color: #555;
}
/* 🌙 Dark Mode Overrides */
.dark-mode body {
    background-color: #0f2027;
}

.dark-mode h2 {
    color: #ffffff;
}

.dark-mode .city-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.08);
}

.dark-mode .city-card::before {
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    opacity: 0.08;
}

.dark-mode .city-name {
    color: #ffffff;
}

.dark-mode .city-info {
    color: #cccccc;
}

.dark-mode .city-info i {
    color: #00f260;
}

.back-home-button {
            display: inline-block;
            background-color: #007bff;
            color: #fff;
            padding: 12px 24px;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            transition: background-color 0.3s ease;
            margin: 20px auto;
        }
        .back-home-button:hover {
            background-color: #0056b3;
        }
        .back-home-wrapper {
            text-align: center;
            margin-top: 40px;
        }
