/* Windy weather section — Porto Pigeon Race v7 */
.weather-section {
    padding: 105px 24px;
    background:
        radial-gradient(circle at 8% 10%, rgba(11, 116, 201, 0.12), transparent 34%),
        radial-gradient(circle at 92% 85%, rgba(96, 182, 255, 0.10), transparent 32%),
        #f5f8fb;
    overflow: hidden;
}

.weather-section .section-header {
    margin-bottom: 44px;
}

.weather-container {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.weather-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(15, 15, 26, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(15, 15, 26, 0.08);
}

.weather-control-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.weather-control-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.weather-control-label i {
    color: var(--accent);
}

.weather-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weather-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(15, 15, 26, 0.10);
    border-radius: 12px;
    background: #f6f7f9;
    color: #3a3d48;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.weather-btn:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 15, 26, 0.08);
}

.weather-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg, #0868b8, #43a8f4);
    color: #fff;
    box-shadow: 0 8px 20px rgba(8, 104, 184, 0.24);
}

.windy-frame-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 15, 26, 0.10);
    border-radius: 24px;
    background: #dfe8ef;
    box-shadow: 0 24px 65px rgba(15, 15, 26, 0.16);
}

#windyMap {
    display: block;
    width: 100%;
    height: 620px;
    border: 0;
    background: #dfe8ef;
}

.weather-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 15, 26, 0.08);
    border-radius: 16px;
    background: #fff;
    color: #5d6270;
    font-size: 13px;
    line-height: 1.7;
}

.weather-note-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.weather-note-text > i {
    margin-top: 4px;
    color: var(--accent);
}

.weather-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.weather-open-link:hover {
    text-decoration: underline;
}

@media (max-width: 1050px) {
    .weather-toolbar {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .weather-section {
        padding: 72px 14px;
    }

    .weather-section .section-header {
        margin-bottom: 30px;
    }

    .weather-toolbar {
        gap: 16px;
        padding: 14px;
        border-radius: 16px;
    }

    .weather-control-group {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .weather-button-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .weather-btn {
        min-width: 0;
        padding: 10px 7px;
        font-size: 12px;
    }

    .weather-btn i {
        font-size: 13px;
    }

    .windy-frame-shell {
        border-radius: 18px;
    }

    #windyMap {
        height: 500px;
    }

    .weather-note {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .weather-open-link {
        justify-content: center;
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(96, 182, 255, 0.10);
    }
}

@media (max-width: 430px) {
    .weather-button-row {
        gap: 6px;
    }

    .weather-btn {
        flex-direction: column;
        gap: 4px;
        min-height: 54px;
        line-height: 1.1;
    }

    #windyMap {
        height: 440px;
    }
}
