/* ============================================================
   PUBLIC MAIN WRAPPER (ALL PUBLIC PAGES)
   ============================================================ */

.public-main {
    max-width: 900px;
    margin: 25px auto;
    padding: 0; /* no background, no border */
}

/* ============================================================
   PUBLIC PAGE DEFAULT WHITE BOX
   ============================================================ */

.public-page {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 0 auto;
}


/* ============================================================
   HOMEPAGE LANDING BOX
   ============================================================ */
.public-page .landing-box {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.landing-title,
.landing-intro {
    text-align: left !important;
    margin-left: 0;
}

.landing-box {
    padding: 30px;

}

.landing-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: #163766;
}


.landing-intro {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    color: #163766;
    margin-bottom: 20px;
}
.landing-title,
.landing-intro {
    text-align: left !important;
}

.public-page .landing-intro a {
    color: #163766 !important;
    font-weight: 600;
}

.public-page .landing-intro a:visited {
    color: #163766 !important;
}

.public-page .landing-intro a:hover {
    color: #1e4a8a !important;
}

.public-btn-container {
    margin-top: 25px;
    display: flex;
    flex-direction: row;       /* horizontal */
    justify-content: center;   /* center horizontally */
    gap: 12px;                 /* spacing between buttons */
}


.public-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #ffffff;
    background: #163766;
    box-shadow: 0 2px 8px rgba(22, 55, 102, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
    width: auto;               /* <-- important */
    min-width: 150px;          /* optional: keeps them nicely sized */
    text-align: center;
}


.public-btn:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}

.public-btn.primary {
    background: #163766;
}

.public-btn.primary:hover {
    background: #1e4a8a;
}

/* ============================================================
   ABOUT / MEDIA / TEAM / CONTACT SHARED STYLES
   ============================================================ */

.public-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: #163766;
}

.public-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    color: #163766;
    margin-bottom: 20px;
}

[data-theme="dark"] .public-text {
    color: #e5e5e5;
}

/* ============================================================
   PUBLIC HEADER IMAGE — FULL-WIDTH CURVED BANNER
   Used on About, VA Exclusives, Staff, etc.
   ============================================================ */

.public-header-image {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    border-radius: 14px;
}

.public-header-image img {
    width: 100%;
    height: 180px; 
    object-fit: cover;
    display: block; 
    border-radius: 14px;
    margin: 0 0 20px 0; 
}

.public-grid {
    display: grid;
    gap: 28px;
}

/* ============================================================
   ABOUT PAGE DROPDOWNS
   ============================================================ */

.dropdown-box {
    width: 100%;
    padding: 14px 18px;
    margin-top: 20px;
    background: #163766;
    color: #ffffff;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-box::after {
    content: "▼";
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.dropdown-box.active::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    padding: 15px 20px;
    margin-top: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    line-height: 1.6;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 26px;
}

.team-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.team-row {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* ============================================================
   MEDIA PAGE
   ============================================================ */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 28px;
}

.media-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.v2eusvcontactform-wrapper > p {
    font-size: 1rem !important;
    line-height: 1.6;
    opacity: 0.85;
    color: #163766 !important;
    margin-bottom: 20px;
}

.v2eusvcontactform-wrapper input,
.v2eusvcontactform-wrapper textarea,
.v2eusvcontactform-wrapper select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #004080;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    color: #002859;
}
/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    max-width: 500px;
    margin: 0 auto;
}

.login-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #163766;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #004080;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    color: #002859;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #1e4a8a;
    box-shadow: 0 0 0 3px rgba(30, 74, 138, 0.25);
    outline: none;
}

/* Reconnect warning box */
.login-reconnect-box {
    background: #ffe6e6;
    border-left: 5px solid #cc0000;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: #660000;
}

/* Reconnect button wrapper */
.login-reconnect-btn-wrap {
    margin-top: 10px;
}

/* Forgot password link */
.forgot-link a {
    color: #1e4a8a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link a:hover {
    color: #163766;
}
/* ============================================================
   FORGOT PASSWORD PAGE
   ============================================================ */

.forgot-page {
    max-width: 500px;
    margin: 0 auto;
}

.forgot-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #163766;
}

.forgot-form input[type="email"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #004080;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    color: #002859;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.forgot-form input[type="email"]:focus {
    border-color: #1e4a8a;
    box-shadow: 0 0 0 3px rgba(30, 74, 138, 0.25);
    outline: none;
}

/* Success + error messages */
.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}
/* ============================================================
   REGISTER PAGE
   ============================================================ */

.register-page {
    max-width: 500px;
    margin: 0 auto;
}

.register-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #163766;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #004080;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    color: #002859;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.register-form input:focus {
    border-color: #1e4a8a;
    box-shadow: 0 0 0 3px rgba(30, 74, 138, 0.25);
    outline: none;
}

/* Discord-first info box */
.register-discord-info {
    background: rgba(22, 55, 102, 0.08);
    border-left: 4px solid #163766;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #163766;
}

/* Footer link */
.auth-footer {
    margin-top: 20px;
    text-align: center;
}

.auth-footer a {
    color: #1e4a8a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #163766;
}
/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Header image */
.contact-page .public-header-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 260px;
    margin-bottom: 20px;
}

/* Form layout */
.contact-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #163766;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-half {
    flex: 1;
    min-width: 260px;
}

.contact-field {
    margin-bottom: 1.5rem;
}

/* Inputs */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #004080;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #fff;
    color: #002859;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #1e4a8a;
    box-shadow: 0 0 0 3px rgba(30, 74, 138, 0.25);
    outline: none;
}

/* Select arrow */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23002859' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 6px;
}

/* Button */
.contact-actions {
    text-align: center;
    margin-top: 1rem;
}

/* Success + error */
.contact-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.contact-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}
/* ============================================================
   MEDIA PAGE
   ============================================================ */

.media-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Header image */
.media-page .public-header-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 260px;
    margin-bottom: 20px;
}

/* Title + intro */
.media-page .public-title {
    margin-bottom: 12px;
}

.media-page .public-text {
    margin-bottom: 30px;
}

/* Media grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 28px;
}

/* Media card */
.media-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Video */
.media-video iframe {
    width: 100%;
    height: 320px;
    border-radius: 10px;
}

/* Card title */
.media-card-title {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #163766;
}

/* Card text */
.media-card-text {
    opacity: 0.85;
    line-height: 1.55;
    font-size: 0.95rem;
    color: #163766;
}

/* Dark mode */
[data-theme="dark"] .media-card {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: none;
}

[data-theme="dark"] .media-card-title {
    color: #ffffff;
}

[data-theme="dark"] .media-card-text {
    color: #e5e5e5;
}
/* ============================================================
   TEAM PAGE
   ============================================================ */

.team-page {
    max-width: 1000px;
    margin: 0 auto;

    /* NEW — unify typography with "Our Team" */
    font-family: inherit;
    color: inherit;
}

/* Header image */
.team-page .public-header-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 260px;
    margin-bottom: 20px;
}

/* Title + intro */
.team-page .public-title {
    margin-bottom: 12px;
}

.team-page .public-text {
    margin-bottom: 30px;
}

/* Full-width Airline Board section */
.full-width-section {
    margin-bottom: 32px;
}

/* Two-column grid for other departments */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 26px;
    align-items: start;
}

/* Section card */
.team-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ============================================================
   TYPOGRAPHY FIX — MATCH "OUR TEAM" FONT + COLOUR
   ============================================================ */

.team-section-title {
    margin-bottom: 14px;
    font-size: 1.35rem;
    font-weight: 700;
    padding-left: 8px;
    border-left: 4px solid #163766;

    font-family: inherit;
    color: inherit;
}

.team-row-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;

    font-family: inherit;
    color: inherit;
}

.team-row-role {
    margin: 2px 0 0 0;
    opacity: 0.75;
    font-size: 0.82rem;

    font-family: inherit;
    color: inherit;
}

/* Staff list */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Staff row */
.team-row {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Avatar */
.team-row-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.team-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Info */
.team-row-info {
    flex-grow: 1;
}

/* Email button */
.team-row-email {
    background: #163766;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.team-row-email:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}

/* Dark mode */
[data-theme="dark"] .team-section {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: none;
}

[data-theme="dark"] .team-row {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
}

[data-theme="dark"] .team-section-title {
    border-left-color: #4f8cff;
}

[data-theme="dark"] .team-row-email {
    background: #1e4a8a;
}

   /* ============================================================
   VA Exclusives/Other Pages/
   ============================================================ */


.evx-title-main {
    font-size: 2rem;
    font-weight: 800;
    color: #163766;
    margin: 15px 0 1rem;
}


.evx-coupon-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #163766;
    margin: 0;
}


.evx-coupon-card {
    background: rgba(255,255,255,0.96);
    padding: 20px;
    border-radius: 14px;
    border: 2px dashed #163766;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .evx-coupon-card {
    background: rgba(0,0,0,0.45);
    border: 2px dashed #4a6fae;
}


.evx-coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.evx-badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.evx-badge-active {
    background: #d4edda;
    color: #155724;
}

.evx-badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

[data-theme="dark"] .evx-badge-active {
    background: rgba(0,255,0,0.15);
    color: #9aff9a;
}

[data-theme="dark"] .evx-badge-inactive {
    background: rgba(255,0,0,0.15);
    color: #ff9a9a;
}

/* Coupon code box */
.evx-code-box {
    display: inline-block;
    padding: 10px 14px;
    background: #edf2ff;
    border: 1px solid #c3d0ff;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
}

[data-theme="dark"] .evx-code-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}
/* Force staff names + titles to inherit the page font + colour */
.team-page .team-row-name,
.team-page .team-row-role {
    font-family: inherit !important;
    color: inherit !important;
}
/* ---------------------------------------------------------
   PUBLIC EVENTS PAGE — EUOSCOT BRANDING
--------------------------------------------------------- */

.events-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pagination-hidden {
    display: none;
}

/* ---------------------------------------------------------
   THREE COLUMN LAYOUT (Events | Focus Airports | Tours)
--------------------------------------------------------- */

.three-col-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    color: #163766;
}

@media (max-width: 1200px) {
    .three-col-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .three-col-wrapper {
        grid-template-columns: 1fr;
    }
}

.three-col {
    display: flex;
    flex-direction: column;
}

.three-col-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #163766;
    margin-bottom: 1rem;
    text-align: center;
}

/* ---------------------------------------------------------
   PAGINATION
--------------------------------------------------------- */

.pagination-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 4px 10px;
    background: #e8eef5;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #163766;
    transition: background .15s;
}

.page-btn:hover {
    background: #d4dce8;
}

.page-btn.active {
    background: #163766;
    color: white;
}

/* ---------------------------------------------------------
   EVENT / AIRPORT / TOUR CARDS (Unified Styling)
--------------------------------------------------------- */

.event-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform .15s, box-shadow .15s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Smaller images for 3-column layout */
.event-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.event-card-body {
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    color: #163766;
}

/* Unified Title Styling */
.event-card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 .4rem 0 !important;
    color: #163766 !important;
    line-height: 1.3 !important;
}

/* Unified Description Styling */
.event-card-desc {
    font-size: 0.9rem !important;
    color: #163766 !important;
    opacity: 0.85;
    line-height: 1.45 !important;
    margin: 0.4rem 0 0.8rem !important;
    word-wrap: break-word;
}

/* Meta */
.event-card-meta {
    margin-top: auto;
    font-size: .85rem;
    color: #163766;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

/* Footer */
.event-card-footer {
    margin-top: 0.8rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.event-tag {
    background: rgba(0,0,0,0.06);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
}

/* ---------------------------------------------------------
   READ MORE BUTTON
--------------------------------------------------------- */

.read-more {
    color: #163766;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: inline-block;
}

/* ---------------------------------------------------------
   TOURS SECTION HEADINGS
--------------------------------------------------------- */

.tours-subtitle {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #163766;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

/* ---------------------------------------------------------
   GRID INSIDE EACH COLUMN
--------------------------------------------------------- */

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* UNIFIED PAGINATION BAR */
.unified-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.pagination-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pg-label {
    font-weight: 700;
    color: #163766;
    margin-right: 0.25rem;
}

.page-btn {
    padding: 4px 10px;
    background: #e8eef5;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #163766;
    transition: background .15s;
}

.page-btn:hover {
    background: #d4dce8;
}

.page-btn.active {
    background: #163766;
    color: white;
}
/* PUBLIC PAGE MAP LAYOUT */
/* ------------------------------ */
/* Layout adjustments             */
/* ------------------------------ */

.live-map-card {
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f7 100%);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.map-card-title {
    color: #163766;
    font-weight: 700;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-map-counter {
    color: #163766;
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 12px;
}
/* Hide the title text but keep structure clean */
.map-card-title.no-title {
    color: transparent; /* hides text if any */
    font-size: 0;       /* ensures no leftover spacing */
    display: flex;
    justify-content: flex-end; /* pushes counter to far right */
    align-items: center;
    padding: 10px 14px;
}

/* Restore normal styling for the counter */
.map-card-title.no-title .live-map-counter {
    font-size: 1.2rem;
    font-weight: 600;
    color: #163766;
}

.live-map-card-top {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

/* NEW — Title bar for Live Flight Map */
.live-map-card-top h2 {
    width: 100%;
    background: #163766;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 14px 0;
}

.live-map-right {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
}

.live-map-count {
    background:#eef2f6;
    padding:6px 12px;
    border-radius:8px;
    font-size:0.9rem;
    color:#163766;
    border:1px solid rgba(0,0,0,0.08);
    font-weight:500;
}

/* ------------------------------ */
/* Legend styling (centred)       */
/* ------------------------------ */

.map-legend {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    background:#163766;
    color:#fff;
    padding:8px 14px;
    border-radius:8px;
    font-size:0.85rem;
    margin:10px auto;
    width:fit-content;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.map-legend div {
    display:flex;
    align-items:center;
    gap:6px;
}

.legend-dot {
    width:12px;
    height:12px;
    border-radius:50%;
    display:inline-block;
    border:2px solid #fff;
    box-shadow:0 0 3px rgba(0,0,0,0.4);
}

.legend-dot.parked  { background:#808080; }
.legend-dot.taxi    { background:#FFA500; }
.legend-dot.climb   { background:#1E90FF; }
.legend-dot.cruise  { background:#32CD32; }
.legend-dot.descent { background:#FFD700; }

/* ------------------------------ */
/* Aircraft marker styling        */
/* ------------------------------ */

.ac-marker {
    position: relative;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s linear;
}

.ac-marker img {
    width: 32px;
    height: 32px;
}

.ac-marker::before {
    content: "";
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.6);
}

/* STATE RING COLOURS */
.ac-state-parked::before  { border-color:#808080; }
.ac-state-taxi::before    { border-color:#FFA500; }
.ac-state-climb::before   { border-color:#1E90FF; }
.ac-state-cruise::before  { border-color:#32CD32; }
.ac-state-descent::before { border-color:#FFD700; }
.ac-state-unknown::before { border-color:#FFFFFF; }

.ac-label {
    position:absolute;
    top:-18px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(0,0,0,0.75);
    color:#fff;
    padding:1px 4px;
    border-radius:3px;
    font-size:10px;
    white-space:nowrap;
    pointer-events:none;
}

/* ------------------------------ */
/* Popup Styling                  */
/* ------------------------------ */

.mapboxgl-popup {
    max-width: 320px !important;
}

.mapboxgl-popup-content {
    padding: 32px 18px 18px !important;
    border-radius: 14px !important;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    position: relative;
}

.mapboxgl-popup-close-button {
    font-size: 20px !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    top: 6px !important;
    right: 6px !important;
    color:#333 !important;
    opacity:0.7;
}

.popup-logo {
    width: 140px;
    display:block;
    margin: 0 auto 14px auto;
}

.popup-header {
    text-align:center;
    font-size:1.15rem;
    font-weight:600;
    margin-bottom:10px;
}

.popup-row {
    font-size: 0.9rem;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

/* ------------------------------ */
/* Active Flights Table — UPDATED */
/* ------------------------------ */

.active-flights-card {
    border: 1px solid #163766 !important;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

/* Title bar */
.public-subtitle {
    width: 100%;
    background: #163766;
    color: #ffffff !important;
    padding: 12px 16px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    border-radius: 10px 10px 0 0;
}

/* Table wrapper */
.active-flights-table {
    width: 100%;
    border-collapse: collapse;
    color: #163766;
}

/* Header row */
.active-flights-table thead th {
    background: #163766 !important;
    color: #ffffff !important;
    padding: 12px;
    font-weight: 600;
    border-bottom: 2px solid #122b52;
}

/* Table rows */
.active-flights-table td {
    padding: 12px;
    border-bottom: 1px solid #d8e2f0;
    color: #163766 !important;
    font-weight: 500;
}

/* Hover effect */
.active-flights-table tr:hover {
    background: #eaf1ff;
    cursor: pointer;
}

/* Highlighted active row */
.active-row {
    background: #d7e6ff !important;
    font-weight: 700;
    color: #163766 !important;
}

/* ------------------------------ */
/* Title bar for Live Flight Map  */
/* ------------------------------ */

.live-map-title {
    width: 100%;
    background: #163766;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 14px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Counter inside title bar */
.live-map-counter {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
    margin-left: 12px;
}

/* Legend moved inside card */
.map-legend-inside {
    margin-top: 6px;
    margin-bottom: 12px;
}

/* Map box spacing fix */
.live-map-box {
    width: 100%;
    height: 70vh;
    border:dashed;
    color:#163766;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 6px;
}
/* Bases Table */
.bases-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.bases-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.bases-table thead {
    background: #1d4ed8; /* Euroscot Blue */
    color: #fff;
}

.bases-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.bases-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.bases-table tr:nth-child(even) {
    background: #f9fafb;
}

.bases-table tr:hover {
    background: #eef2ff;
}




