/* ==========================================================
   BRITISH MIDLAND VIRTUAL
   OPERATIONS PAGE v4.0
   Operations Specific Styles Only
   Requires: base.css v4
========================================================== */


/* ==========================================================
   HERO
========================================================== */

.operations-hero {

    padding: 180px 0 120px;

    background:
        linear-gradient(
            180deg,
            var(--bm-blue),
            var(--bm-blue-light)
        );

    text-align: center;

    color: #ffffff;

}

.operations-hero .container {

    max-width: 980px;

}

.operations-hero h1 {

    margin: 0 0 28px;

    color: #ffffff;

}

.operations-hero .hero-divider {

    margin: 38px auto;

}

.operations-hero .hero-copy {

    max-width: 760px;

    margin-left: auto;
    margin-right: auto;

    color: rgba(255,255,255,.90);

    line-height: 1.95;

}

.hero-buttons {

    justify-content: center;

    margin-top: 55px;

}


/* ==========================================================
   INTRODUCTION
========================================================== */

.operations-intro {

    padding: 110px 0 60px;

}

.operations-intro .container {

    max-width: 900px;

    text-align: center;

}

.intro-text {

    max-width: 720px;

    margin: 40px auto 0;

    color: var(--text);

    line-height: 1.95;

}


/* ==========================================================
   OPERATIONS PILLARS
========================================================== */

.operations-summary {

    padding: 40px 0 120px;

}

.summary-grid {

    display: grid;

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

    gap: 34px;

}

.summary-item {

    padding: 40px 32px;

    background: #ffffff;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    text-align: center;

    transition:
        transform .30s ease,
        box-shadow .30s ease;

}

.summary-item:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-xl);

}

.summary-icon {

    width: 76px;
    height: 76px;

    margin: 0 auto 26px;

    display: flex;

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

    border-radius: 50%;

    background: rgba(0,26,58,.05);

    color: var(--bm-blue);

    font-size: 1.8rem;

    transition: .30s;

}

.summary-item:hover .summary-icon {

    background: var(--bm-red);

    color: #ffffff;

}

.summary-item h3 {

    margin-bottom: 20px;

    color: var(--bm-blue);

}

.summary-item p {

    color: var(--text);

    line-height: 1.85;

}


/* ==========================================================
   LIVE OPERATIONS DASHBOARD
========================================================== */

.operations-dashboard {

    position: relative;

    overflow: hidden;

    padding: 140px 0;

    background:
        linear-gradient(
            180deg,
            #04101f,
            #07182b
        );

    color: #ffffff;

}

.operations-dashboard::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top,
            rgba(255,255,255,.03),
            transparent 65%
        );

    pointer-events: none;

}

.dashboard-header {

    max-width: 760px;

    margin: 0 auto 70px;

    text-align: center;

}

.dashboard-header h2 {

    color: #ffffff;

    margin-bottom: 26px;

}

.dashboard-header p {

    color: rgba(255,255,255,.76);

    line-height: 1.9;

}


/* ==========================================================
   LIVE STATUS BAR
========================================================== */

.live-status-bar {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    margin-bottom: 34px;

    padding: 24px 30px;

    background: #0B1D33;

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow: var(--shadow-lg);

}

.live-status-left {

    display: flex;

    align-items: center;

    gap: 18px;

}

.live-dot {

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #F2B84B;

    box-shadow:
        0 0 0 6px rgba(242,184,75,.12);

}

.live-status-bar.connected .live-dot {

    background: #5AD879;

    box-shadow:
        0 0 0 6px rgba(90,216,121,.12);

}

.live-status-bar.error .live-dot {

    background: var(--bm-red);

    box-shadow:
        0 0 0 6px rgba(208,40,35,.12);

}

.live-status-left strong {

    display: block;

    color: #ffffff;

    font-size: .82rem;

    letter-spacing: .12em;

}

.live-status-left span {

    display: block;

    margin-top: 4px;

    color: #90A7C3;

    font-size: .72rem;

}

.live-status-right {

    text-align: right;

}

.live-status-right span {

    display: block;

    margin-bottom: 6px;

    color: #7F97B4;

    font-size: .70rem;

    text-transform: uppercase;

    letter-spacing: .10em;

}

.live-status-right strong {

    color: #ffffff;

    font-size: 1rem;

}


/* ==========================================================
   OPERATIONS STATS
========================================================== */

.operations-stats-grid {

    display: grid;

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

    gap: 24px;

    margin-bottom: 36px;

}

.operations-stat {

    position: relative;

    overflow: hidden;

    padding: 34px;

    background: #0D2340;

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow: var(--shadow-lg);

}

.operations-stat::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--bm-red);

}

.operations-stat-label {

    margin-bottom: 18px;

    color: #8EA8CB;

    font-size: .70rem;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

}

.operations-stat strong {

    display: block;

    color: #ffffff;

    font-size: clamp(2.4rem, 4vw, 3.3rem);

    line-height: 1;

}

.operations-stat small {

    display: block;

    margin-top: 14px;

    color: #C3D0DD;

}


/* ==========================================================
   LIVE OPERATIONS
========================================================== */

.live-operations-grid {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 28px;

    align-items: start;

}

.operations-map-panel,
.operations-sidebar,
.selected-flight-panel {

    overflow: hidden;

    background: #0D2340;

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow: var(--shadow-lg);

}

.panel-header {

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 22px 28px;

    background: rgba(255,255,255,.02);

    border-bottom: 1px solid rgba(255,255,255,.08);

}

.panel-header h3 {

    margin: 0;

    color: #ffffff;

    font-size: 1rem;

}

.panel-header span {

    color: #8EA8CB;

    font-size: .72rem;

    letter-spacing: .08em;

    text-transform: uppercase;

}

#liveMap {

    width: 100%;

    height: 680px;

    background: #081523;

}


/* ==========================================================
   LIVE FLIGHT LIST
========================================================== */

.live-flight-list {

    display: flex;

    flex-direction: column;

    max-height: 680px;

    overflow-y: auto;

}

.loading-flights {

    padding: 60px 20px;

    text-align: center;

    color: #8EA8CB;

    letter-spacing: .10em;

}

.live-flight-card {

    position: relative;

    overflow: hidden;

    padding: 22px 24px;

    cursor: pointer;

    border-bottom: 1px solid rgba(255,255,255,.05);

    transition:
        background .25s ease,
        border-color .25s ease;

}

.live-flight-card:last-child {

    border-bottom: none;

}

.live-flight-card:hover {

    background: rgba(255,255,255,.04);

}

.live-flight-card.active {

    background: rgba(208,40,35,.14);

    border-left: 4px solid var(--bm-red);

}

.live-flight-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 100%;

    background: var(--bm-red);

    transform: scaleY(0);

    transform-origin: top;

    transition: transform .25s ease;

}

.live-flight-card:hover::before,
.live-flight-card.active::before {

    transform: scaleY(1);

}

.live-flight-header {

    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 14px;

}

.live-flight-number {

    color: #ffffff;

    font-size: 1rem;

    font-weight: 700;

}

.live-flight-phase {

    padding: 4px 10px;

    border-radius: 999px;

    background: rgba(90,216,121,.14);

    color: #5AD879;

    font-size: .68rem;

    font-weight: 700;

    text-transform: uppercase;

}

.live-route {

    margin-bottom: 14px;

    color: #D8E2EF;

    font-weight: 600;

}

.live-flight-details {

    display: grid;

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

    gap: 12px;

}

.live-detail {

    display: flex;

    flex-direction: column;

    gap: 4px;

}

.live-detail label {

    color: #8298B3;

    font-size: .64rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;

}

.live-detail span {

    color: #ffffff;

    font-size: .88rem;

    font-weight: 600;

}


/* ==========================================================
   SELECTED FLIGHT PANEL
========================================================== */

.selected-flight-panel {

    margin-top: 28px;

}

.selected-flight-empty {

    padding: 70px 40px;

    text-align: center;

    color: #8EA8CB;

    line-height: 1.9;

}

.selected-flight-content {

    padding: 32px;

}

.selected-flight-title {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 30px;

}

.selected-flight-title h3 {

    margin: 0;

    color: #ffffff;

}

.selected-grid {

    display: grid;

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

    gap: 22px;

}

.selected-item {

    padding: 20px;

    background: #07182B;

    border: 1px solid rgba(255,255,255,.06);

    border-radius: 16px;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

}

.selected-item:hover {

    transform: translateY(-3px);

    border-color: rgba(208,40,35,.30);

}

.selected-item label {

    display: block;

    margin-bottom: 8px;

    color: #8EA8CB;

    font-size: .66rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

}

.selected-item strong {

    color: #ffffff;

    font-size: 1rem;

    font-weight: 700;

}


/* ==========================================================
   FLIGHT INFORMATION DISPLAY
========================================================== */

.flight-phase-badge {

    display: inline-flex;

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

    padding: 6px 14px;

    border-radius: 999px;

    background: rgba(90,216,121,.14);

    color: #5AD879;

    font-size: .72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;

}

.flight-phase-badge.departed {

    background: rgba(127,193,255,.14);

    color: #7FC1FF;

}

.flight-phase-badge.arriving {

    background: rgba(255,200,87,.14);

    color: #FFC857;

}

.flight-phase-badge.landed {

    background: rgba(208,40,35,.14);

    color: #FF8A8A;

}

.route-display {

    display: flex;

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

    gap: 18px;

    margin: 35px 0;

    color: #ffffff;

    font-size: 1.3rem;

    font-weight: 700;

}

.route-arrow {

    color: var(--bm-red);

    font-size: 1rem;

}


/* ==========================================================
   FLIGHT BOARD
========================================================== */

.flight-board {

    padding: 140px 0;

    background:
        linear-gradient(
            180deg,
            #071525 0%,
            #0B1D33 100%
        );

    color: #ffffff;

}

.board-header {

    max-width: 760px;

    margin: 0 auto 70px;

    text-align: center;

}

.board-header h2 {

    margin-bottom: 26px;

    color: #ffffff;

}

.board-header p {

    color: rgba(255,255,255,.76);

    line-height: 1.9;

}

.fids-board {

    overflow: hidden;

    border-radius: 22px;

    background: #0D2340;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow: var(--shadow-xl);

}

.fids-title {

    padding: 22px 30px;

    background:
        linear-gradient(
            90deg,
            var(--bm-blue),
            var(--bm-blue-light)
        );

    color: #ffffff;

    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;

    border-bottom: 3px solid var(--bm-red);

}

.fids-scroll {

    overflow-x: auto;

}

.fids-table {

    width: 100%;

    min-width: 980px;

    border-collapse: collapse;

}

.fids-table thead th {

    position: sticky;

    top: 0;

    z-index: 2;

    padding: 18px 16px;

    background: #112949;

    color: #D8E4F1;

    font-size: .72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .10em;

    border-bottom: 1px solid rgba(255,255,255,.08);

}

.fids-table tbody {

    background: #0D2340;

}

.fids-table tbody tr {

    background: #0D2340;

}

.fids-table tbody tr:nth-child(even) {

    background: rgba(255,255,255,.02);

}

.fids-table tbody td {

    padding: 18px 16px;

    background: transparent;

    color: #F8F3EE;

    font-size: .92rem;

    border-bottom: 1px solid rgba(255,255,255,.06);

}

.fids-table tbody tr:hover {

    background: rgba(208,40,35,.12);

}

.operations-loading {

    padding: 50px !important;

    text-align: center;

    color: #8EA8CB !important;

    letter-spacing: .12em;

}

.board-note {

    max-width: 720px;

    margin: 40px auto 0;

    display: flex;

    gap: 14px;

    align-items: flex-start;

    justify-content: center;

    color: #B8C8DA;

    line-height: 1.8;

}

.board-note i {

    margin-top: 3px;

    color: var(--bm-red);

}

.board-note strong {

    color: #ffffff;

}


/* ==========================================================
   LEAFLET
========================================================== */

.leaflet-container {

    background: #081523;

    font-family: inherit;

}

.leaflet-control-zoom {

    border: none !important;

    box-shadow: none !important;

}

.leaflet-control-zoom a {

    width: 44px !important;

    height: 44px !important;

    line-height: 44px !important;

    background: #ffffff !important;

    color: var(--bm-blue) !important;

    border-radius: 12px !important;

    font-weight: 700;

    box-shadow:
        0 10px 22px rgba(0,0,0,.14);

}

.leaflet-control-zoom a:hover {

    background: var(--bm-red) !important;

    color: #ffffff !important;

}

.leaflet-popup-content-wrapper {

    border-radius: 18px;

}

.leaflet-popup-content {

    margin: 18px;

}

.live-aircraft-popup strong {

    display: block;

    margin-bottom: 8px;

    color: var(--bm-blue);

}

.live-aircraft-popup div {

    margin: 6px 0;

}


/* ==========================================================
   MICRO INTERACTIONS
========================================================== */

.operations-stat,
.summary-item {

    transition:
        transform .30s ease,
        box-shadow .30s ease;

}

.operations-stat:hover,
.summary-item:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-xl);

}


/* ==========================================================
   FIDS TABLE OVERLAY FIX
========================================================== */

.flight-board,
.fids-board,
.fids-scroll,
.fids-table {

    position: relative;

}

.fids-board::before,
.fids-board::after,
.fids-scroll::before,
.fids-scroll::after {

    content: none !important;

    display: none !important;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1200px) {

    .operations-stats-grid {

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

    }

    .live-operations-grid {

        grid-template-columns: 1fr;

    }

    #liveMap {

        height: 560px;

    }

}


@media (max-width:992px) {

    .summary-grid {

        grid-template-columns: 1fr;

    }

    .selected-grid {

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

    }

    .live-status-bar {

        flex-direction: column;

        align-items: flex-start;

    }

    .live-status-right {

        text-align: left;

    }

}


@media (max-width:768px) {

    .operations-hero {

        padding: 140px 0 80px;

    }

    .operations-intro,
    .operations-summary,
    .operations-dashboard,
    .flight-board {

        padding: 90px 0;

    }

    .operations-stats-grid {

        grid-template-columns: 1fr;

    }

    .selected-grid {

        grid-template-columns: 1fr;

    }

    #liveMap {

        height: 460px;

    }

    .board-note {

        flex-direction: column;

        text-align: center;

        align-items: center;

    }

}


@media (max-width:480px) {

    .operations-hero h1 {

        font-size: 2.3rem;

    }

    .summary-item,
    .operations-stat,
    .selected-flight-content {

        padding: 24px;

    }

    .live-flight-card {

        padding: 18px;

    }

    .live-flight-details {

        grid-template-columns: 1fr;

    }

}


@media (prefers-reduced-motion:reduce) {

    .summary-item,
    .operations-stat,
    .selected-item,
    .live-flight-card,
    .live-dot,
    #liveMap {

        transition: none !important;

        animation: none !important;

    }

}


/* ==========================================================
   END OF OPERATIONS.CSS
========================================================== */
