* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #dff4ff 0%,
            #f7fbfd 450px
        );

    color: #18354a;
}


header {
    text-align: center;
    padding: 45px 20px 35px;

    background:
        linear-gradient(
            135deg,
            #103b59,
            #1d668c
        );

    color: white;
}


header h1 {
    margin: 5px 0;
    font-size: clamp(
        34px,
        7vw,
        58px
    );
}


.tagline {
    font-size: 18px;
    opacity: .85;
}


.mascot {
    font-size: 60px;
}


main {
    max-width: 1100px;
    margin: auto;
    padding: 28px 20px 60px;
}

.card {
    background: rgba(
        255,
        255,
        255,
        .96
    );

    border-radius: 20px;

    padding: 25px;

    margin-bottom: 22px;

    box-shadow:
        0 8px 28px
        rgba(31, 67, 88, .09);

    border:
        1px solid
        rgba(40, 80, 100, .08);
}

.hero-card {
    border-top:
        7px solid #1d668c;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: .58;
}

.airport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.airport-header h2 {
    font-size: 42px;
    margin: 3px 0;
}

.airport-header p {
    margin: 0;
    opacity: .7;
}

.category {
    min-width: 110px;
    text-align: center;

    font-size: 23px;
    font-weight: 900;

    padding: 14px 17px;

    border-radius: 13px;
}

.vfr {
    background: #dff6e5;
    color: #16703b;
}

.mvfr {
    background: #ddebff;
    color: #1b5eaa;
}

.ifr {
    background: #ffe1e1;
    color: #b32424;
}

.lifr {
    background: #eee0ff;
    color: #7625a1;
}

.unknown {
    background: #eeeeee;
    color: #666666;
}

.metar-section {
    margin-top: 24px;
}

.label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    opacity: .55;
    margin-bottom: 7px;
}

.metar {
    background: #edf4f7;

    border-radius: 12px;

    padding: 17px;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 16px;

    line-height: 1.5;

    overflow-wrap: anywhere;
}

.weather-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(150px, 1fr)
        );

    gap: 12px;

    margin-top: 15px;
}

.weather-box {
    background: #f6fafc;

    padding: 16px;

    border-radius: 12px;
}

.weather-label {
    display: block;

    font-size: 11px;
    font-weight: bold;
    opacity: .55;

    margin-bottom: 5px;
}

.weather-value {
    font-size: 19px;
    font-weight: 750;
}

/* .sigmet-card {
    display: flex;
    align-items: center;
    gap: 20px;
} */
.sigmet-card {
    display: block;
    width: 100%;
    min-width: 0;
}

.sigmet-card h2 {
    margin: 5px 0;
}

.sigmet-card p {
    margin-bottom: 0;
}

.sigmet-icon {
    font-size: 46px;
}

.sigmet-card.safe {
    background: #e8faed;
    border:
        2px solid #73c88b;
}

.sigmet-card.danger {
    background: #ffe8e8;
    border:
        3px solid #da5555;

    animation:
        dangerPulse
        2.5s infinite;
}

.sigmet-card.unknown-sigmet {
    background: #fff8dc;
    border:
        2px solid #d3a93c;
}

@keyframes dangerPulse {
    0% {
        box-shadow:
            0 0 0
            rgba(200, 50, 50, 0);
    }
    50% {
        box-shadow:
            0 0 25px
            rgba(200, 50, 50, .18);
    }
    100% {
        box-shadow:
            0 0 0
            rgba(200, 50, 50, 0);
    }
}

.destinations {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(140px, 1fr)
        );

    gap: 12px;

    margin-top: 20px;
}

.destination {
    border: none;

    background: #f5f9fb;

    border-radius: 15px;

    padding: 18px 12px;

    text-align: center;

    cursor: pointer;

    color: #1d668c;

    transition:
        transform .15s,
        box-shadow .15s;
}


.destination:hover {
    transform:
        translateY(-3px);
    
    color:#f8f9fa;

    box-shadow:
        0 6px 16px
        rgba(31, 67, 88, .13);
}


.destination.active {
    outline:
        3px solid #1d668c;
}

.destination-code {
    display: block;

    font-size: 24px;

    font-weight: 850;

    margin-bottom: 4px;
}

.destination-name {
    display: block;

    font-size: 12px;

    opacity: .65;

    min-height: 30px;
}

.mini-category {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: bold;

    margin-top: 10px;
}

.route-card h2 {
    font-size: 34px;
    margin: 6px 0 20px;
}

.selected-weather {
    margin-top: 15px;
}

.selected-metar {
    font-family: monospace;

    background: #edf4f7;

    border-radius: 10px;

    padding: 15px;

    line-height: 1.45;

    overflow-wrap: anywhere;
}

.fact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.fact-icon {
    font-size: 42px;
}

.fact {
    font-size: 19px;
    line-height: 1.55;
}

button {
    border: 0;

    background: #173f5c;

    color: white;

    padding: 11px 17px;

    border-radius: 9px;

    cursor: pointer;

    font-weight: 700;

    font-size: 14px;
}

button:hover {
    background: #225f87;
}

.legend-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(150px, 1fr)
        );

    gap: 10px;

    margin-top: 15px;
}

.legend {
    padding: 16px;
    border-radius: 12px;
}


.legend strong {
    display: block;
    font-size: 21px;
}


.legend span {
    font-size: 13px;
}


.status-card {
    text-align: center;

    padding: 12px;

    font-size: 13px;

    color: #5f7684;
}


.status-card.stale {
    background: #fff2c9;
    color: #805b00;
}


footer {
    text-align: center;

    padding:
        35px 20px 50px;

    max-width: 850px;

    margin: auto;

    color: #637985;

    font-size: 13px;

    line-height: 1.5;
}


.footer-helicopter {
    font-size: 30px;
}


@media (
    max-width: 600px
) {

    .airport-header {
        align-items: flex-start;
    }

    .category {
        min-width: 90px;
        font-size: 18px;
    }

    .sigmet-card {
        align-items: flex-start;
    }
}

   /* =================================
   ATC LOFI CARD
   Put this at BOTTOM of style.css
================================= */

section.card.lofi-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 22px;

    /* Dark navy / night-flight look */
    background: linear-gradient(
        135deg,
        #101f2c 0%,
        #173f5c 55%,
        #225f87 100%
    ) !important;

    color: white !important;

    border: 1px solid rgba(255, 255, 255, 0.12) !important;

    box-shadow:
        0 10px 30px
        rgba(10, 30, 45, 0.25);
}


/* Make sure all text stays light */

section.card.lofi-card h2 {
    color: white !important;
    margin: 5px 0 8px;
    font-size: 27px;
}


section.card.lofi-card p {
    color: #d9eaf3 !important;
    margin: 0 0 18px;
    line-height: 1.5;
}


section.card.lofi-card .eyebrow {
    color: #8fd8ff !important;
    opacity: 1;
}


/* Headphones circle */

section.card.lofi-card .lofi-icon {
    font-size: 48px;

    background: rgba(
        255,
        255,
        255,
        0.10
    ) !important;

    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    flex-shrink: 0;
}


/* =================================
   LOFI BUTTON
================================= */

section.card.lofi-card a.lofi-button {
    display: inline-block;

    background: #8fd8ff !important;

    color: #102c3d !important;

    text-decoration: none !important;

    padding: 12px 20px;

    border-radius: 10px;

    font-weight: 800;

    border: none !important;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.18);

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}


section.card.lofi-card a.lofi-button:hover {

    background: #bceaff !important;

    color: #102c3d !important;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(0, 0, 0, 0.25);
}


/* Decorative radio waves */

section.card.lofi-card .lofi-radio {
    color: white !important;

    font-family: monospace;

    font-size: 20px;

    letter-spacing: 3px;

    opacity: 0.35;

    white-space: nowrap;
}


/* Mobile */

@media (max-width: 650px) {

    section.card.lofi-card {
        align-items: flex-start;
    }

    section.card.lofi-card .lofi-icon {
        width: 60px;
        height: 60px;

        font-size: 34px;
    }

    section.card.lofi-card .lofi-radio {
        display: none;
    }
}

/* =================================
   HELPFUL LINKS
================================= */

.helpful-links-card {
    border-top: 6px solid #1d668c;
}


.helpful-links-card h2 {
    margin: 5px 0 5px;
    font-size: 28px;
}


.helpful-links-card .section-description {
    margin-top: 5px;
    color: #637985;
}


/* Grid */

.helpful-links-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 12px;

    margin-top: 22px;
}


/* Individual Link */

.helpful-link {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 16px;

    background: #f5f9fb;

    border:
        1px solid
        rgba(29, 102, 140, 0.10);

    border-radius: 14px;

    text-decoration: none;

    color: #18354a;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.helpful-link:hover {
    transform: translateY(-3px);

    background: #edf7fc;

    box-shadow:
        0 7px 18px
        rgba(31, 67, 88, 0.13);
}


/* Icons */

.helpful-link-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: white;

    border-radius: 12px;

    font-size: 27px;

    box-shadow:
        0 3px 8px
        rgba(31, 67, 88, 0.08);
}


/* Text */

.helpful-link h3 {
    margin: 0 0 4px;

    font-size: 17px;

    color: #18354a;
}


.helpful-link p {
    margin: 0;

    font-size: 13px;

    color: #71808c;

    line-height: 1.4;
}


/* Arrow */

.link-arrow {
    margin-left: auto;

    font-size: 22px;

    font-weight: bold;

    color: #1d668c;

    transition:
        transform 0.15s ease;
}


.helpful-link:hover .link-arrow {
    transform: translateX(4px);
}


/* Mobile */

@media (max-width: 600px) {

    .helpful-links-grid {
        grid-template-columns: 1fr;
    }

}

/* =================================
   FEEDBACK
================================= */

.feedback-card {
    display: flex;
    gap: 22px;
    align-items: flex-start;

    border-top:
        6px solid #1d668c;
}


.feedback-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 36px;

    background: #e9f6fc;

    border-radius: 50%;
}


.feedback-content {
    width: 100%;
}


.feedback-content h2 {
    margin: 5px 0 8px;

    font-size: 28px;
}


.feedback-intro {
    color: #637985;

    line-height: 1.5;

    margin-bottom: 22px;
}


.feedback-field {
    margin-bottom: 16px;
}


.feedback-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 750;

    color: #29495e;
}


.optional {
    font-weight: normal;
    opacity: .55;
}


.feedback-field input,
.feedback-field select,
.feedback-field textarea {

    width: 100%;

    padding: 12px 14px;

    border:
        1px solid #ccdce5;

    border-radius: 10px;

    background: #f8fbfc;

    color: #18354a;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border .15s,
        box-shadow .15s;
}


.feedback-field textarea {
    resize: vertical;

    min-height: 120px;
}


.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {

    border-color: #1d668c;

    box-shadow:
        0 0 0 3px
        rgba(29, 102, 140, .10);
}


.feedback-button {
    background: #173f5c !important;

    color: white !important;

    padding: 12px 20px;

    border-radius: 10px;

    font-weight: 800;

    font-size: 15px;

    cursor: pointer;
}


.feedback-button:hover {
    background: #225f87 !important;

    transform: translateY(-1px);
}


@media (max-width: 600px) {

    .feedback-card {
        display: block;
    }

    .feedback-icon {
        margin-bottom: 15px;
    }

    .taf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.taf-box {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.taf {
    margin-top: 0.75rem;
    line-height: 1.6;
    word-break: break-word;
}

@media (max-width: 700px) {
    .taf-grid {
        grid-template-columns: 1fr;
    }
}

}

/* =================================
   MAIN NAVIGATION TABS
================================= */

.tab-nav {
    max-width: 1100px;

    margin:
        -18px auto
        10px;

    padding:
        0 20px;

    display: flex;

    gap: 8px;

    position: relative;

    z-index: 10;
}


.tab-button {
    flex: 1;

    border: none;

    background: #dceaf1;

    color: #315267;

    padding:
        15px 20px;

    border-radius:
        14px 14px 6px 6px;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(31, 67, 88, 0.08);

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.tab-button:hover {
    background: #c9e1ed;

    transform:
        translateY(-2px);
}


.tab-button.active {
    background: white;

    color: #173f5c;

    border-top:
        4px solid #1d668c;
}


/* Tab content hidden by default */

/* Hide EVERY tab by default */
.tab-content {
    display: none !important;
}

/* Only show the active tab */
.tab-content.active {
    display: block !important;
}


/* Feedback tab doesn't need
   flight planning status spacing */

#feedback {
    padding-top: 10px;
}


/* Mobile */

@media (max-width: 600px) {

    .tab-nav {
        padding:
            0 12px;
    }

    .tab-button {
        padding:
            13px 8px;

        font-size: 14px;
    }

}

/* =================================
   DESTINATION BUTTONS
================================= */

.destination {
    color: #1d668c;

    cursor: pointer;

    position: relative;

    z-index: 1;
}


.destination-code {
    color: #1d668c;

    pointer-events: none;
}


.destination-name {
    color: #1d668c;

    pointer-events: none;
}


.destination .mini-category {
    pointer-events: none;
}


/* Selected destination */

.destination.active {
    outline: 3px solid #1d668c;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px
        rgba(31, 67, 88, .15);
}


/* Keep your hover behavior */

.destination:hover {
    transform: translateY(-3px);

    box-shadow:
        0 6px 16px
        rgba(31, 67, 88, .13);
}

/* =================================
   PATCHES
================================= */

.patch-card {
    display: flex;
    align-items: center;
    gap: 28px;

    padding: 25px;

    overflow: hidden;

    border-top: 6px solid #1d668c;
}


.patch-image-container {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}


.patch-image {
    width: 170px;
    height: 170px;

    object-fit: contain;

    transition:
        transform 0.25s ease;
}


.patch-card:hover .patch-image {
    transform:
        rotate(-3deg)
        scale(1.05);
}


.patch-content {
    flex: 1;
}


.patch-content h2 {
    margin: 5px 0 8px;

    font-size: 28px;

    color: #173f5c;
}


.patch-content p {
    margin: 0 0 16px;

    color: #637985;

    line-height: 1.5;
}


.coming-soon-badge {
    display: inline-block;

    padding: 8px 13px;

    background: #e9f6fc;

    color: #1d668c;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


/* Mobile */

@media (max-width: 600px) {

    .patch-card {
        flex-direction: column;

        text-align: center;
    }

    .patch-image {
        width: 150px;
        height: 150px;
    }

}

/* =================================
   PATCH IMAGE
================================= */

.patch-image-container {
    width: 180px;
    height: 180px;

    flex: 0 0 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.patch-image-container img.patch-image {
    display: block;

    width: 160px !important;
    height: 160px !important;

    max-width: 160px !important;
    max-height: 160px !important;

    object-fit: contain;

    flex: none;
}

/* =================================
   READABLE TAF
================================= */

.taf {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.taf-period {

    padding: 16px;

    background: #f5f9fb;

    border-left:
        5px solid #1d668c;

    border-radius: 10px;
}


.taf-time {

    color: #1d668c;

    font-size: 15px;

    font-weight: 850;

    margin-bottom: 8px;
}


.taf-summary {

    color: #29495e;

    font-size: 15px;

    line-height: 1.7;
}


.taf-code {

    display: inline-block;

    margin-top: 7px;

    color: #71808c;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;

    opacity: .8;
}

/* =================================
   SIGMET MAP
================================= */

.sigmet-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    width: 100%;
}

.sigmet-text {
    flex: 1;
    min-width: 0;
}



.sigmet-map {
    width: 100%;
    height: 330px;

    border-radius: 14px;

    overflow: hidden;

    margin-top: 15px;

    border:
        1px solid
        rgba(31, 67, 88, .15);
}

.sigmet-details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    width: 100%;

    margin-top: 18px;
}


.sigmet-detail {

    background: #f5f9fb;

    padding: 13px;

    border-radius: 10px;
}


.sigmet-detail-label {

    display: block;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .8px;

    color: #71808c;

    margin-bottom: 4px;
}


.sigmet-detail-value {

    font-size: 15px;

    font-weight: 700;

    color: #29495e;
}

.sigmet-route-warning {

    grid-column:
        1 / -1;

    padding: 15px 18px;

    background: #ffe1e1;

    color: #9f2020;

    border:
        2px solid #d84d4d;

    border-radius: 12px;

    font-size: 16px;

    font-weight: 800;

    text-align: center;
}

/* =================================
   MOBILE SIGMET MAP
================================= */

.sigmet-map-wrapper {
    display: block;

    width: 100%;

    margin-top: 20px;
}


.sigmet-map {
    display: block;

    width: 100%;

    height: 400px;

    border-radius: 14px;

    overflow: hidden;

    border:
        1px solid
        rgba(31, 67, 88, 0.15);
}


/* Prevent map from overflowing card */
.sigmet-card {
    min-width: 0;
}

.sigmet-card .leaflet-container {
    max-width: 100%;
}

/* =================================
   MOBILE SIGMET
================================= */

@media (max-width: 600px) {

    .sigmet-card {
        padding: 16px;
    }


    .sigmet-heading {
        width: 100%;
    }


    /*
       Stack the three status boxes
    */

    .sigmet-details {
        grid-template-columns: 1fr;
    }


    /*
       Full-width map underneath
    */

    .sigmet-map-wrapper {
        width: 100%;

        margin-top: 20px;
    }


    .sigmet-map {
        width: 100%;

        height: 420px;

        min-height: 420px;
    }

}

/* =================================
   SEVERE WEATHER WATCHES
================================= */

.watch-details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 18px;
}


.watch-detail {
    padding: 15px;

    background:
        rgba(255, 255, 255, 0.55);

    border-radius: 12px;

    text-align: center;
}


.watch-detail-label {
    display: block;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .7px;
}


.watch-detail-value {
    display: block;

    margin-top: 6px;

    font-size: 17px;

    font-weight: 850;
}


.watch-warning {
    grid-column:
        1 / -1;

    padding: 15px;

    border-radius: 12px;

    background:
        rgba(255, 214, 128, .45);

    line-height: 1.5;
}


.watch-map-wrapper {
    width: 100%;

    margin-top: 20px;
}


.watch-map {
    width: 100%;

    height: 400px;

    border-radius: 14px;

    overflow: hidden;
}


@media (max-width: 600px) {

    .watch-details {
        grid-template-columns:
            1fr;
    }


    .watch-map {
        height: 420px;
    }

}

/* =================================
   WW CARD STATUS COLORS
================================= */

.watch-card.safe {
    background: #e8faed !important;

    border:
        2px solid #73c88b !important;

    /* color: #176b31; */
}


.watch-card.danger {
    background: #ffe8e8 !important;

    border:
        3px solid #da5555 !important;

    /* color: #951f1f; */

    animation:
        dangerPulse
        2.5s infinite;
}


.watch-card.unknown-watch {
    background: #fff8dc !important;

    border:
        2px solid #d3a93c !important;

    /* color: #805b00; */
}