#gta-weather-fullpage {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr);
    gap: 24px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 0 32px;
    box-sizing: border-box;
    color: #e5e7eb;
}

.gta-weather-hero {
    grid-column: 1 / -1;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 55%) border-box,
                linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.gta-weather-hero-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gta-weather-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    color: #f9fafb;
}

.gta-weather-hero-city {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.gta-weather-hero-city label {
    font-weight: 500;
}

#gta-weather-city-select {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.9rem;
    outline: none;
}

#gta-weather-city-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

.gta-weather-current {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gta-weather-current-temp {
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 700;
    color: #f9fafb;
}

.gta-weather-current-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
}

.gta-weather-current-city {
    font-weight: 600;
    color: #e5e7eb;
}

.gta-weather-current-condition {
    font-size: 0.95rem;
    color: #d1d5db;
}

.gta-weather-current-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.gta-weather-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gta-weather-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gta-weather-section {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.06), transparent 60%) border-box,
                rgba(15, 23, 42, 0.92);
    border-radius: 14px;
    padding: 14px 15px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.55);
}

.gta-weather-section h2 {
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: #e5e7eb;
}

/* Hourly strip */
.gta-weather-hourly {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 3px;
    margin-bottom: -5px;
}

.gta-hour-card {
    min-width: 96px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    padding: 8px 9px;
    font-size: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    flex-shrink: 0;
}

.gta-hour-card .hour-time {
    font-weight: 600;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.gta-hour-card .hour-temp {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: #f9fafb;
}

.gta-hour-card .hour-cond {
    font-size: 0.74rem;
    color: #cbd5f5;
    margin-bottom: 2px;
}

.gta-hour-card .hour-pop {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Radar */
.gta-weather-radar-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #020617;
}

#gta-weather-radar {
    width: 100%;
    min-height: 260px;
    border: 0;
    display: block;
}

.gta-weather-radar-note {
    margin: 6px 2px 0;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Daily grid */
.gta-weather-daily {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.gta-day-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    padding: 8px 9px;
    font-size: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.gta-day-card .day-date {
    font-weight: 600;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.gta-day-card .day-cond {
    font-size: 0.74rem;
    color: #cbd5f5;
    margin-bottom: 3px;
}

.gta-day-card .day-temps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #e5e7eb;
    margin-bottom: 2px;
}

.gta-day-card .day-temps span + span {
    color: #9ca3af;
}

.gta-day-card .day-precip {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Highlights & alerts */
.gta-weather-highlights p {
    font-size: 0.8rem;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.gta-weather-alerts {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
}

.gta-weather-alerts li + li {
    margin-top: 4px;
}

.gta-weather-alerts a {
    color: #38bdf8;
    text-decoration: none;
}

.gta-weather-alerts a:hover {
    text-decoration: underline;
}

/* Air quality */
.gta-weather-aqi-main {
    font-size: 0.82rem;
    margin: 0 0 4px;
    color: #e5e7eb;
}

.gta-weather-aqi-detail {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.gta-weather-aqi-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid transparent;
}

/* AQI levels */
.gta-aqi-good {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(34, 197, 94, 0.8);
    color: #bbf7d0;
}

.gta-aqi-moderate {
    background: rgba(234, 179, 8, 0.14);
    border-color: rgba(234, 179, 8, 0.8);
    color: #fef9c3;
}

.gta-aqi-usg {
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.8);
    color: #fed7aa;
}

.gta-aqi-unhealthy {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(248, 113, 113, 0.9);
    color: #fecaca;
}

.gta-aqi-very-unhealthy {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(192, 132, 252, 0.9);
    color: #e9d5ff;
}

.gta-aqi-hazardous {
    background: rgba(88, 28, 135, 0.2);
    border-color: rgba(126, 34, 206, 0.9);
    color: #f5d0fe;
}

/* Sun section */
.gta-weather-sun p {
    font-size: 0.8rem;
    margin: 2px 0;
    color: #e5e7eb;
}

.gta-weather-sun strong {
    font-weight: 600;
}

/* News links */
.gta-weather-news-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
}

.gta-weather-news-links li + li {
    margin-top: 4px;
}

.gta-weather-news-links a {
    color: #38bdf8;
    text-decoration: none;
}

.gta-weather-news-links a:hover {
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 900px) {
    #gta-weather-fullpage {
        grid-template-columns: 1fr;
    }

    .gta-weather-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .gta-weather-current {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    #gta-weather-fullpage {
        padding: 16px 10px 28px;
    }

    .gta-weather-hero-title {
        font-size: 1.3rem;
    }

    .gta-weather-current-temp {
        font-size: 2.2rem;
    }

    .gta-weather-daily {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}


/* Mobile-first improvements for 10 day forecast & layout */
@media (max-width: 640px) {
    /* Stack main + sidebar vertically with full width */
    #gta-weather-fullpage {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px 10px 28px;
    }

    .gta-weather-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .gta-weather-current {
        width: 100%;
        justify-content: space-between;
    }

    /* Make 10-day forecast cards full width stacked */
    .gta-weather-daily {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .gta-day-card {
        width: 100%;
    }

    /* Slightly larger tap targets */
    .gta-weather-section {
        padding: 12px 12px;
    }

    .gta-weather-hero-title {
        font-size: 1.25rem;
    }

    .gta-weather-current-temp {
        font-size: 2.2rem;
    }
}


/* Daily card layout reworked for mobile-friendly (Weather.com style) */
.gta-day-card .day-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gta-day-card .day-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 2px;
}

.gta-day-card .day-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Fine-tune text inside day-info */
.gta-day-card .day-date {
    margin-bottom: 0;
}

.gta-day-card .day-cond {
    margin-bottom: 2px;
}

/* Mobile-specific tweaks for 10 day forecast */
@media (max-width: 640px) {
    .gta-weather-daily {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .gta-day-card {
        width: 100%;
        padding: 8px 10px;
    }

    .gta-day-card .day-icon {
        font-size: 1.3rem;
    }

    .gta-day-card .day-date {
        font-size: 0.8rem;
    }

    .gta-day-card .day-cond {
        font-size: 0.78rem;
    }

    .gta-day-card .day-temps,
    .gta-day-card .day-precip {
        font-size: 0.74rem;
    }
}


/* Extra mobile tweaks for Next 24 Hours strip */
@media (max-width: 640px) {
    .gta-weather-hourly {
        gap: 6px;
        padding-bottom: 6px;
        margin-bottom: -2px;
    }

    .gta-hour-card {
        min-width: 80px;
        padding: 6px 7px;
        border-radius: 10px;
    }

    .gta-hour-card .hour-time {
        font-size: 0.72rem;
        margin-bottom: 2px;
    }

    .gta-hour-card .hour-temp {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .gta-hour-card .hour-cond {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .gta-hour-card .hour-pop {
        font-size: 0.68rem;
    }
}


/* Refined mobile layout for Next 24 Hours: balanced compact style */
@media (max-width: 640px) {
    .gta-weather-hourly {
        gap: 5px;
        padding-bottom: 8px;
        margin-bottom: -2px;
    }

    .gta-hour-card {
        min-width: 72px;
        padding: 5px 6px;
        border-radius: 9px;
    }

    .gta-hour-card .hour-time {
        font-size: 0.68rem;
        margin-bottom: 1px;
    }

    .gta-hour-card .hour-temp {
        font-size: 0.86rem;
        margin-bottom: 1px;
    }

    .gta-hour-card .hour-cond {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 1px;
    }

    .gta-hour-card .hour-pop {
        font-size: 0.66rem;
    }
}


/* Mobile: show Next 24 Hours as vertical list (similar to 10 day forecast) */
@media (max-width: 640px) {
    .gta-weather-hourly {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        gap: 6px;
    }

    .gta-hour-card {
        width: 100%;
        min-width: 0;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .gta-hour-card .hour-time {
        font-weight: 600;
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .gta-hour-card .hour-temp {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .gta-hour-card .hour-cond {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .gta-hour-card .hour-pop {
        font-size: 0.75rem;
    }
}
