/* Mobile safeguards for the public TFV theme. Desktop styles remain unchanged. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* Unified visual system for the public theme. */
:root {
    --tfv-primary: #087fbd;
    --tfv-primary-dark: #075f8d;
    --tfv-accent: #ef6f46;
    --tfv-ink: #172b3a;
    --tfv-muted: #667785;
    --tfv-surface: #ffffff;
    --tfv-page: #f4f7fa;
    --tfv-border: #dce5eb;
    --tfv-shadow: 0 5px 16px rgba(23, 43, 58, .065);
    --tfv-radius: 9px;
    --tfv-red: #f12635;
    --tfv-red-mid: #d41221;
    --tfv-red-dark: #8e0711;
}

body {
    background: var(--tfv-page);
    color: var(--tfv-ink);
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--tfv-primary-dark);
    transition: color .18s ease, opacity .18s ease;
}

a:hover {
    color: var(--tfv-accent);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tfv-ink);
    font-weight: 700;
    letter-spacing: -.02em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
h5 { font-size: .88rem; }
h6 { font-size: .78rem; }

h1, h2, h3 {
    margin-bottom: .65rem;
}

h4, h5, h6 {
    margin-bottom: .45rem;
}

html body .main-container {
    width: calc(100% - 32px) !important;
    max-width: 1680px !important;
    padding-right: 16px;
    padding-left: 16px;
}

.top-navbar {
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid rgba(220, 229, 235, .9);
    box-shadow: 0 3px 12px rgba(23, 43, 58, .055);
    padding-top: .48rem;
    padding-bottom: .48rem;
}

.top-navbar .navbar-brand img {
    filter: drop-shadow(0 1px 0 rgba(5, 18, 28, .48)) drop-shadow(0 3px 5px rgba(5, 18, 28, .18));
    max-height: 50px !important;
    object-fit: contain;
}

body.tfv-home .top-navbar {
    backdrop-filter: blur(10px) saturate(1.08);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    background: rgba(255, 255, 255, .78) !important;
    border-bottom-color: rgba(255, 255, 255, .38);
    box-shadow: 0 5px 20px rgba(7, 20, 30, .12);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 20;
}

body.tfv-home .top-navbar .navbar-brand img {
    mix-blend-mode: normal;
}

@media (max-width: 991.98px) {
    body.tfv-home .top-navbar .navbar-collapse {
        background: rgba(255, 255, 255, .96);
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(7, 20, 30, .14);
        margin-top: .45rem;
        padding: .45rem;
    }
}

.tfv-menu-icon {
    display: block;
    height: 18px;
    position: relative;
    width: 24px;
}

.tfv-menu-icon::before,
.tfv-menu-icon::after {
    border-top: 2px solid #263746;
    content: '';
    left: 0;
    position: absolute;
    width: 24px;
}

.tfv-menu-icon::before { top: 1px; box-shadow: 0 7px 0 #263746; }
.tfv-menu-icon::after { bottom: 1px; }

.top-navbar .nav-link,
.top-navbar .ddmenu {
    border-radius: 6px;
    color: var(--tfv-ink) !important;
    font-weight: 600;
    padding: .48rem .7rem !important;
    transition: background-color .18s ease, color .18s ease;
}

.top-navbar .nav-link:hover,
.top-navbar .ddmenu:hover {
    background: #edf7fc;
    color: var(--tfv-primary-dark) !important;
}

/* Professional navigation shell */
.top-navbar {
    background: linear-gradient(90deg, #ffffff 0%, #f7f9fa 68%, #eef2f4 100%) !important;
    border-bottom: 1px solid #d9e1e6;
    box-shadow: 0 5px 18px rgba(23, 43, 58, .08);
    min-height: 76px;
    padding: .6rem 2rem;
}

.top-navbar .navbar-brand {
    border-right: 1px solid #e0e6ea;
    margin: 0 1.3rem 0 0 !important;
    padding: .25rem 1.25rem .25rem 0;
}

.top-navbar .nav-tabs-wrapper {
    align-items: center !important;
    gap: .75rem;
    padding-bottom: 0 !important;
}

.top-navbar .navbar-nav {
    align-items: center;
    gap: .18rem;
}

.top-navbar .nav-item {
    font-family: Montserrat, Arial, sans-serif;
}

.top-navbar .nav-link,
.top-navbar .ddmenu {
    background: transparent;
    border: 1px solid transparent;
    color: #263746 !important;
    font-size: .76rem !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: .045em;
    padding: .58rem .72rem !important;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.top-navbar .nav-link:hover,
.top-navbar .ddmenu:hover,
.top-navbar .nav-link:focus,
.top-navbar .ddmenu:focus {
    background: linear-gradient(135deg, #f12635 0%, #d41221 50%, #920913 100%) !important;
    border-color: #b80d18;
    box-shadow: 0 8px 18px rgba(150, 9, 19, .23);
    color: #fff !important;
    transform: translateY(-3px);
}

.top-navbar .nav-link.tfv-nav-active {
    background: linear-gradient(135deg, #f12635 0%, #d41221 50%, #920913 100%) !important;
    border-color: #b80d18;
    box-shadow: 0 8px 18px rgba(150, 9, 19, .23);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Assignment airport history colors must win over generic table link rules. */
#assignments-container .assignment-row .airport-dynamic-link.airport-visited,
#assignments-container .assignment-row .airport-dynamic-link.airport-visited span {
    color: #d41221 !important;
}

#assignments-container .assignment-row .airport-dynamic-link.airport-new,
#assignments-container .assignment-row .airport-dynamic-link.airport-new span {
    color: #171717 !important;
}

.top-navbar .premium-link {
    background: linear-gradient(108deg, #f12635, #b30917 65%, #8e0711) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 10px rgba(178, 12, 26, .22);
    color: #fff !important;
    font-size: .68rem !important;
    letter-spacing: .055em;
    padding: .58rem .9rem !important;
}

.top-navbar .dropdown-menu {
    border: 1px solid #dce5eb;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(23, 43, 58, .16);
    margin-top: .55rem;
    overflow: hidden;
    padding: .35rem;
}

.top-navbar .dropdown-item {
    border-radius: 6px;
    color: #314452;
    font-size: .78rem;
    font-weight: 700;
    padding: .55rem .7rem;
}

.top-navbar .dropdown-item:hover {
    background: linear-gradient(108deg, #f12635, #a50b16) !important;
    color: #fff !important;
}

.top-navbar .user-controls img {
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(23, 43, 58, .18);
}

/* Circular dashboard menu: lighter orbit, clear hierarchy and TFV accent. */
.circle-menu, .circular-menu, .radial-menu, .orbit-menu, .menu-circulaire,
#circle-menu, #circular-menu, #radial-menu {
    filter: drop-shadow(0 10px 20px rgba(23, 43, 58, .12));
}

.circle-menu a, .circular-menu a, .radial-menu a, .orbit-menu a, .menu-circulaire a,
#circle-menu a, #circular-menu a, #radial-menu a {
    background: linear-gradient(145deg, #ffffff, #edf1f3) !important;
    border: 1px solid #dce4e9;
    box-shadow: 0 5px 13px rgba(23, 43, 58, .13);
    color: #b50d19 !important;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}

.circle-menu a:hover, .circular-menu a:hover, .radial-menu a:hover, .orbit-menu a:hover, .menu-circulaire a:hover,
#circle-menu a:hover, #circular-menu a:hover, #radial-menu a:hover {
    background: linear-gradient(135deg, #f12635, #8e0711) !important;
    border-color: #8e0711;
    box-shadow: 0 9px 18px rgba(142, 7, 17, .28);
    color: #fff !important;
    transform: translateY(-3px) scale(1.04);
}

/* Different versions of the circular menu use these inner item classes. */
.circle-menu .menu-item, .circular-menu .menu-item, .radial-menu .menu-item, .orbit-menu .menu-item,
.circle-menu .circle-item, .circular-menu .circle-item, .radial-menu .circle-item, .orbit-menu .circle-item,
.circle-menu .icon-wrapper, .circular-menu .icon-wrapper, .radial-menu .icon-wrapper, .orbit-menu .icon-wrapper {
    background: linear-gradient(145deg, #fff, #edf1f3) !important;
    border: 1px solid #dce4e9;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(23, 43, 58, .14);
    color: #b50d19 !important;
    overflow: visible;
    transition: background .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease;
}

.circle-menu .menu-item:hover, .circular-menu .menu-item:hover, .radial-menu .menu-item:hover, .orbit-menu .menu-item:hover,
.circle-menu .circle-item:hover, .circular-menu .circle-item:hover, .radial-menu .circle-item:hover, .orbit-menu .circle-item:hover,
.circle-menu .icon-wrapper:hover, .circular-menu .icon-wrapper:hover, .radial-menu .icon-wrapper:hover, .orbit-menu .icon-wrapper:hover {
    background: linear-gradient(135deg, #f12635 0%, #d41221 50%, #920913 100%) !important;
    border-color: #b80d18;
    box-shadow: 0 10px 21px rgba(150, 9, 19, .28);
    color: #fff !important;
    transform: translateY(-4px) scale(1.07);
}

.circle-menu .menu-item *, .circular-menu .menu-item *, .radial-menu .menu-item *, .orbit-menu .menu-item *,
.circle-menu .circle-item *, .circular-menu .circle-item *, .radial-menu .circle-item *, .orbit-menu .circle-item *,
.circle-menu .icon-wrapper *, .circular-menu .icon-wrapper *, .radial-menu .icon-wrapper *, .orbit-menu .icon-wrapper * {
    color: inherit !important;
}

.circle-menu .menu-label, .circular-menu .menu-label, .radial-menu .menu-label, .orbit-menu .menu-label,
.circle-menu .item-label, .circular-menu .item-label, .radial-menu .item-label, .orbit-menu .item-label,
.circle-menu .menu-item span, .circular-menu .menu-item span, .radial-menu .menu-item span, .orbit-menu .menu-item span {
    background: rgba(23, 43, 58, .92);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(23, 43, 58, .18);
    color: #fff !important;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.15;
    padding: .28rem .5rem;
    text-shadow: none;
}

.dropdown-menu {
    border: 1px solid var(--tfv-border);
    border-radius: 8px;
    box-shadow: var(--tfv-shadow);
    padding: .35rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: .45rem .65rem;
}

#carousel {
    background: #e8edf1;
    border: 0;
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(23, 43, 58, .11);
    overflow: hidden;
}

#carousel.tfv-fullwidth-slider {
    margin-top: -34px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

#carousel.tfv-fullwidth-slider .carousel-inner,
#carousel.tfv-fullwidth-slider .carousel-item {
    width: 100%;
}

#carousel .carousel-item img {
    object-fit: cover;
}

#carousel .tfv-carousel-image {
    filter: saturate(.96) contrast(1.015);
    transform: scale(1.018);
    transition: filter .8s ease, transform 7s cubic-bezier(.2, .65, .3, 1);
    will-change: transform, opacity;
}

#carousel .carousel-item {
    position: relative;
    transition: transform .9s cubic-bezier(.22, .61, .36, 1) !important;
}

#carousel .carousel-item::after {
    background: linear-gradient(90deg, rgba(9, 20, 28, .92) 0%, rgba(9, 20, 28, .7) 35%, rgba(9, 20, 28, .12) 70%, rgba(9, 20, 28, .2) 100%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

#carousel .tfv-slide-content {
    color: #fff;
    left: clamp(2.2rem, 5vw, 5.4rem);
    max-width: min(590px, 46%);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

#carousel .tfv-slide-eyebrow {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: .68rem;
    font-weight: 800;
    gap: .6rem;
    letter-spacing: .12em;
    margin-bottom: .85rem;
    text-transform: uppercase;
}

#carousel .tfv-slide-eyebrow::before {
    background: var(--tfv-red);
    content: '';
    height: 3px;
    width: 34px;
}

#carousel .tfv-slide-content h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.02;
    margin: 0 0 .9rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, .35);
}

#carousel .tfv-slide-content p {
    color: rgba(255, 255, 255, .88);
    font-size: clamp(.82rem, 1.08vw, 1.02rem);
    line-height: 1.55;
    margin: 0;
    max-width: 540px;
}

#carousel .tfv-slide-premium-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin-top: 1rem;
}

#carousel .tfv-slide-premium-benefits span {
    align-items: center;
    color: rgba(255, 255, 255, .9);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    gap: .4rem;
}

#carousel .tfv-slide-premium-benefits i { color: #ff5360; }

#carousel .tfv-slide-cta {
    align-items: center;
    background: linear-gradient(135deg, var(--tfv-red), var(--tfv-red-mid));
    border-radius: 7px;
    box-shadow: 0 8px 22px rgba(212, 18, 33, .3);
    color: #fff !important;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    gap: .65rem;
    margin-top: 1rem;
    padding: .78rem 1rem;
    text-decoration: none !important;
    transition: box-shadow .2s ease, transform .2s ease;
}

#carousel .tfv-slide-cta:hover {
    box-shadow: 0 11px 26px rgba(212, 18, 33, .4);
    transform: translateY(-2px);
}

#carousel .tfv-slide-count {
    bottom: 17px;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    position: absolute;
    right: 20px;
    z-index: 3;
}

#carousel .tfv-slide-count span { color: rgba(255, 255, 255, .48); }

#carousel .carousel-item.active .tfv-carousel-image {
    filter: saturate(1.02) contrast(1.025);
    transform: scale(1);
}

#carousel::after {
    background: linear-gradient(90deg, rgba(16, 31, 42, .08), transparent 18%, transparent 82%, rgba(16, 31, 42, .08));
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

#carousel .tfv-carousel-indicators {
    align-items: center;
    bottom: 13px;
    gap: 7px;
    margin-bottom: 0;
    z-index: 3;
}

#carousel .tfv-carousel-indicators button {
    background: rgba(255, 255, 255, .78);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(16, 31, 42, .18);
    height: 5px;
    margin: 0;
    opacity: .68;
    transition: background .3s ease, opacity .3s ease, width .3s ease;
    width: 20px;
}

#carousel .tfv-carousel-indicators button.active {
    background: var(--tfv-red);
    opacity: 1;
    width: 38px;
}

#carousel .tfv-carousel-control {
    background: transparent !important;
    bottom: 0;
    display: none !important;
    opacity: .28;
    top: 0;
    transition: opacity .25s ease;
    width: 48px;
    z-index: 3;
}

#carousel:hover .tfv-carousel-control,
#carousel:focus-within .tfv-carousel-control { opacity: .68; }

#carousel .carousel-control-prev { left: 0; }
#carousel .carousel-control-next { right: 0; }

#carousel .tfv-carousel-control > span {
    background-color: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 44px;
    position: relative;
    width: 22px;
}

#carousel .carousel-control-next > span { border-radius: 0; }

#carousel .tfv-carousel-control > span::before {
    border-bottom: 1.5px solid #fff;
    border-left: 1.5px solid #fff;
    content: '';
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65));
    height: 9px;
    left: 7px;
    position: absolute;
    top: 17px;
    transform: rotate(45deg);
    width: 9px;
}

#carousel .carousel-control-next > span::before {
    left: 5px;
    transform: rotate(225deg);
}

.tfv-premium-spotlight {
    background:
        radial-gradient(circle at 92% 10%, rgba(241, 38, 53, .23), transparent 19rem),
        linear-gradient(115deg, #0a1822 0%, #112b3d 66%, #172b3a 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(9, 25, 36, .18);
    color: #fff;
    margin: 1.5rem auto 0;
    max-width: 1280px;
    overflow: hidden;
    padding: 1.3rem clamp(1.2rem, 3vw, 2.5rem) 1.5rem;
    position: relative;
}

.tfv-premium-spotlight::after {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: '';
    height: 210px;
    pointer-events: none;
    position: absolute;
    right: -72px;
    top: -112px;
    width: 210px;
}

.tfv-premium-spotlight__badge {
    align-items: center;
    color: rgba(255, 255, 255, .72);
    display: flex;
    font-size: .68rem;
    font-weight: 800;
    gap: .5rem;
    letter-spacing: .12em;
    margin-bottom: .8rem;
    text-transform: uppercase;
}

.tfv-premium-spotlight__badge i { color: #ffd56a; }

.tfv-premium-spotlight__content {
    align-items: center;
    display: grid;
    gap: clamp(1rem, 2.5vw, 2.25rem);
    grid-template-columns: minmax(310px, 1.45fr) minmax(300px, 1fr) auto;
    position: relative;
    z-index: 1;
}

.tfv-premium-spotlight__trial {
    color: #ff6570;
    display: block;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 800;
    margin-bottom: .25rem;
}

.tfv-premium-spotlight h2 {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    margin: 0 0 .35rem;
}

.tfv-premium-spotlight p {
    color: rgba(255, 255, 255, .72);
    margin: 0;
}

.tfv-premium-spotlight__features {
    display: grid;
    gap: .45rem 1rem;
    grid-template-columns: repeat(2, minmax(125px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.tfv-premium-spotlight__features li {
    align-items: center;
    color: rgba(255, 255, 255, .9);
    display: flex;
    font-size: .76rem;
    font-weight: 600;
    gap: .45rem;
}

.tfv-premium-spotlight__features i {
    color: #ff5360;
    font-size: .65rem;
}

.tfv-premium-spotlight__cta {
    align-items: center;
    background: linear-gradient(135deg, var(--tfv-red), var(--tfv-red-mid));
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(212, 18, 33, .3);
    color: #fff !important;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: .7rem;
    justify-content: center;
    padding: .9rem 1.2rem;
    text-decoration: none !important;
    transition: box-shadow .2s ease, transform .2s ease;
    white-space: nowrap;
}

.tfv-premium-spotlight__cta:hover {
    box-shadow: 0 11px 25px rgba(212, 18, 33, .38);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .tfv-premium-spotlight__content {
        grid-template-columns: 1fr auto;
    }

    .tfv-premium-spotlight__features { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 575.98px) {
    .tfv-premium-spotlight {
        border-radius: 11px;
        margin-top: 1rem;
        padding: 1.15rem;
    }

    .tfv-premium-spotlight__content { display: block; }
    .tfv-premium-spotlight__features { margin: 1rem 0 1.1rem; }
    .tfv-premium-spotlight__cta { width: 100%; }
}


.stats-banner {
    gap: 10px;
}

.counter-container {
    background: linear-gradient(145deg, #ffffff, #f7fbfd);
    border: 1px solid var(--tfv-border);
    border-radius: var(--tfv-radius);
    box-shadow: 0 3px 12px rgba(23, 43, 58, .055);
    min-width: 0;
    padding: .62rem .75rem !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.counter-container:hover {
    box-shadow: var(--tfv-shadow);
    transform: translateY(-1px);
}

.counter-container h5 {
    color: var(--tfv-muted);
    font-size: .69rem;
    letter-spacing: .035em;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.counter-container p {
    color: var(--tfv-primary-dark);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.contentbord,
.underbloc,
.card {
    background: var(--tfv-surface);
    border: 1px solid var(--tfv-border) !important;
    border-radius: var(--tfv-radius) !important;
    box-shadow: var(--tfv-shadow);
    overflow: hidden;
}

.contentbord,
.underbloc {
    padding: .9rem;
}

.card-body {
    padding: .8rem;
}

.card-footer {
    padding: .55rem .8rem;
}

.row {
    margin-right: -10px;
    margin-left: -10px;
}

.row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

.contentbord > h3,
.underbloc > h3,
.card-header {
    border-bottom: 1px solid var(--tfv-border);
    color: var(--tfv-ink);
    padding-bottom: .55rem;
}

.card-header {
    background: #f8fbfd;
}

/* Dashboard red title strips (e.g. “Vos Rapports Récents”): same reference as the map flight card. */
body .title-block-red {
    background: linear-gradient(108deg, var(--tfv-red) 0%, var(--tfv-red-mid) 48%, var(--tfv-red-dark) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* Existing red heading strips across the public pages keep their own layout,
   but share the map flight-card gradient. Buttons and status badges are excluded. */
body h4.description[style*="background-color: #FF0000"],
body h5[style*="background-color: red"],
body .header-block[style*="background-color: red"],
body .card-header[style*="background-color:red"],
body .modal-header[style*="background-color: #ff0000"] {
    background: linear-gradient(108deg, var(--tfv-red) 0%, var(--tfv-red-mid) 48%, var(--tfv-red-dark) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    color: #fff !important;
}

body .title-block-red,
body h4.description[style*="background-color: #FF0000"],
body h5[style*="background-color: red"],
body .header-block[style*="background-color: red"],
body .card-header[style*="background-color:red"] {
    color: #fff !important;
}

body .title-block-red *,
body h4.description[style*="background-color: #FF0000"] *,
body h5[style*="background-color: red"] *,
body .header-block[style*="background-color: red"] *,
body .card-header[style*="background-color:red"] *,
body .modal-header[style*="background-color: #ff0000"] * {
    color: #fff !important;
}

/* FlightConnect, Tours, Assignments and Free Flight page title strips. */
body h3.bg-danger,
body h4[style*="background-color: #FF0000"],
body .card-header[style*="background-color: red"],
body .card-header[style*="background-color:red"],
body .card-header[style*="background-color:rgb(255, 0, 0)"] {
    background: linear-gradient(108deg, var(--tfv-red) 0%, var(--tfv-red-mid) 48%, var(--tfv-red-dark) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    color: #fff !important;
}

body h3.bg-danger *,
body h4[style*="background-color: #FF0000"] *,
body .card-header[style*="background-color: red"] *,
body .card-header[style*="background-color:red"] *,
body .card-header[style*="background-color:rgb(255, 0, 0)"] * {
    color: #fff !important;
}

/* Keep flight cards compact when the SimBrief action appears after a reservation. */
.flight-action-cell .btn,
.booking-actions .btn {
    font-size: .72rem;
    line-height: 1.1;
    padding: .16rem .48rem;
}

.flight-action-cell .btn + .btn,
.booking-actions .btn + .btn {
    margin-left: .2rem !important;
}

/* Stack the reservation and SimBrief actions, keeping the card action column tidy. */
body .flight-action-cell form.d-inline {
    display: block !important;
    margin: 0 0 .12rem !important;
}

body .flight-action-cell > .btn,
body .flight-action-cell form .btn,
body .booking-actions > .btn,
body .booking-actions form .btn {
    display: block;
    margin: 0 auto .12rem !important;
    width: fit-content;
}

body .flight-action-cell .btn + .btn,
body .booking-actions .btn + .btn {
    margin-left: auto !important;
}

/* Gentle reservation feedback before the page refreshes with the new action state. */
.flight-action-cell .btn,
.booking-actions .btn {
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease,
        opacity .18s ease, transform .18s ease;
}

.flight-action-cell .btn.is-booking,
.booking-actions .btn.is-booking {
    box-shadow: 0 2px 8px rgba(23, 43, 58, .18);
    opacity: .78;
    transform: scale(.96);
}

/* Monthly assignments use the same individual flight-card treatment as /flights. */
#assignments-container .card-body.table-responsive {
    overflow: visible;
    padding: 0 10px 10px !important;
}

#assignments-container table.table {
    border-collapse: separate;
    border-spacing: 0 9px;
}

#assignments-container .table-light-header {
    display: none;
}

#assignments-container .assignment-row {
    background: #fff !important;
    border: 1px solid var(--tfv-border);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(23, 43, 58, .07);
}

#assignments-container .assignment-row:hover {
    box-shadow: 0 6px 15px rgba(23, 43, 58, .12);
    transform: translateY(-1px);
}

#assignments-container .assignment-row td {
    border-bottom: 1px solid var(--tfv-border);
    border-top: 1px solid var(--tfv-border);
    padding: .55rem .35rem;
    vertical-align: middle;
}

#assignments-container .assignment-row td:first-child {
    border-left: 1px solid var(--tfv-border);
    border-radius: 8px 0 0 8px;
    color: var(--tfv-primary-dark);
    font-weight: 700;
}

#assignments-container .assignment-row td:last-child {
    border-right: 1px solid var(--tfv-border);
    border-radius: 0 8px 8px 0;
}

#assignments-container .assignment-row .flight-logo-num-cell img {
    max-height: 28px !important;
    object-fit: contain;
}

#assignments-container .assignment-row .airport-dynamic-link {
    color: var(--tfv-primary-dark) !important;
}

#assignments-container .assignment-flight-identity img {
    display: block;
    margin: 0 auto 4px;
}

#assignments-container .assignment-flight-ident {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.15;
}

/* Two-line layout: route on top, aircraft and actions below. */
@media (min-width: 992px) {
    /* The monthly wrapper is only a heading container. Individual flights are
       the cards, so it must not create a second white panel behind them. */
    #assignments-container > .card.mb-3 {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #assignments-container > .card.mb-3 > .card-body {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #assignments-container table.table { border-spacing: 0 10px; }
    #assignments-container table.table tbody { display: block; }
    #assignments-container .assignment-row {
        display: grid;
        grid-template-columns: 38px 105px minmax(105px, 1fr) 90px minmax(105px, 1fr) minmax(150px, 1.25fr) 92px 34px;
        grid-template-rows: minmax(46px, auto) minmax(34px, auto);
        width: 100%;
    }
    #assignments-container .assignment-row td {
        align-items: center;
        display: flex;
        justify-content: center;
        min-width: 0;
        text-align: center;
        color: #171717 !important;
    }
    #assignments-container .assignment-row td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
    #assignments-container .assignment-row td:nth-child(2) { grid-column: 2; grid-row: 1; }
    #assignments-container .assignment-row td:nth-child(3) { grid-column: 3; grid-row: 1; }
    #assignments-container .assignment-row td:nth-child(4) { grid-column: 4; grid-row: 1; }
    #assignments-container .assignment-row td:nth-child(5) { grid-column: 5; grid-row: 1; }
    #assignments-container .assignment-row td:nth-child(6) {
        color: var(--tfv-muted);
        font-size: .74rem;
        grid-column: 2 / 6;
        grid-row: 2;
    }
    #assignments-container .assignment-row td:nth-child(6)::before {
        color: var(--tfv-primary-dark);
        content: 'APPAREIL';
        font-size: .59rem;
        font-weight: 700;
        letter-spacing: .06em;
        margin-right: .45rem;
    }
    #assignments-container .assignment-row td:nth-child(7) { grid-column: 6 / 8; grid-row: 1 / 3; }
    #assignments-container .assignment-row td:nth-child(8) { grid-column: 8; grid-row: 1 / 3; }
}

/* Assignment cards: one horizontal flight row, matching the visual rhythm of /flights. */
@media (min-width: 992px) {
    /* The table body becomes the card list: the gap keeps each assignment
       visually independent, like the regular flights page. */
    #assignments-container table.table {
        display: block;
        width: 100%;
    }

    #assignments-container table.table tbody {
        display: grid;
        gap: 12px;
        width: 100%;
    }

    #assignments-container .assignment-row {
        grid-template-columns: 30px 155px minmax(125px, 1fr) 105px minmax(125px, 1fr) minmax(145px, 1.15fr) 106px 30px;
        grid-template-rows: minmax(64px, auto);
        margin: 0;
    }
    #assignments-container .assignment-row td {
        grid-row: 1 !important;
    }
    #assignments-container .assignment-row td:nth-child(1) { grid-column: 1; }
    #assignments-container .assignment-row td:nth-child(2) { grid-column: 2; }
    #assignments-container .assignment-row td:nth-child(3) { grid-column: 3; }
    #assignments-container .assignment-row td:nth-child(4) { grid-column: 4; }
    #assignments-container .assignment-row td:nth-child(5) { grid-column: 5; }
    #assignments-container .assignment-row td:nth-child(6) {
        color: var(--tfv-ink);
        font-size: .78rem;
        grid-column: 6;
    }
    #assignments-container .assignment-row td:nth-child(6)::before { content: none; }
    #assignments-container .assignment-row td:nth-child(7) { grid-column: 7; }
    #assignments-container .assignment-row td:nth-child(8) { grid-column: 8; }

    #assignments-container .assignment-flight-identity img {
        display: block !important;
        max-width: 130px !important;
        max-height: 30px !important;
        height: auto !important;
        margin: 0 auto 4px !important;
        object-fit: contain;
    }
}

@media (max-width: 991.98px) {
    #assignments-container .card-body.table-responsive { overflow-x: auto; }
    #assignments-container table.table { min-width: 760px; }
}

/* Assignment cards deliberately follow the six-column /flights card layout.
   The assignment index and lock are retained in the data model, but not shown
   in the card so that the visual structure is identical. */
@media (min-width: 992px) {
    #assignments-container .card-body.table-responsive {
        background: transparent;
        padding: 0 !important;
    }

    #assignments-container table.table,
    #assignments-container table.table tbody {
        display: grid;
        width: 100%;
    }

    #assignments-container table.table tbody {
        gap: 24px;
    }

    #assignments-container .assignment-row {
        display: grid;
        grid-template-columns: 15% 15% 15% 15% 20% 20%;
        grid-template-rows: minmax(64px, auto);
        width: 100%;
        background: #fff !important;
        border: 1px solid #d8e2ea;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(23, 43, 58, .07);
        /* Airline logos occasionally include transparent padding; do not crop
           that padding at the left card radius. */
        overflow: visible;
    }

    #assignments-container .assignment-row td {
        align-items: center;
        border: 0 !important;
        border-radius: 0 !important;
        display: flex;
        grid-row: 1 !important;
        justify-content: center;
        margin: 0;
        min-width: 0;
        padding: .55rem .5rem;
        text-align: center;
    }

    #assignments-container .assignment-row td:nth-child(1),
    #assignments-container .assignment-row td:nth-child(8) {
        display: none;
    }

    #assignments-container .assignment-row td:nth-child(2) {
        grid-column: 1;
        overflow: visible;
        padding-left: 1rem;
        position: relative;
        z-index: 1;
    }
    #assignments-container .assignment-row td:nth-child(3) { grid-column: 2; }
    #assignments-container .assignment-row td:nth-child(4) { grid-column: 3; }
    #assignments-container .assignment-row td:nth-child(5) { grid-column: 4; }
    #assignments-container .assignment-row td:nth-child(6) { grid-column: 5; }
    #assignments-container .assignment-row td:nth-child(7) { grid-column: 6; }

    #assignments-container .assignment-row .airport-dynamic-link,
    #assignments-container .assignment-row .airport-dynamic-link span,
    #assignments-container .assignment-row .flight-dynamic-cell,
    #assignments-container .assignment-row .flight-dynamic-cell * {
        color: #171717 !important;
        opacity: 1 !important;
    }

    #assignments-container .booking-actions .btn {
        color: #fff !important;
        font-size: .875rem;
        font-weight: 600;
        padding: .25rem .5rem;
    }

    #assignments-container .assignment-flight-identity img {
        display: block !important;
        max-width: 130px !important;
        max-height: 30px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto 4px !important;
        object-fit: contain;
        object-position: center;
        position: static !important;
        transform: none !important;
    }
}

/* Original assignment table structure (restored). */
#assignments-container > .card.mb-3 {
    background: #fff !important;
    border: 1px solid var(--tfv-border) !important;
    box-shadow: 0 3px 10px rgba(23, 43, 58, .07) !important;
}

#assignments-container > .card.mb-3 > .card-body {
    background: #f3f6f8 !important;
    padding: .25rem .65rem .65rem !important;
}

#assignments-container .card-body.table-responsive {
    overflow-x: auto !important;
}

#assignments-container table.table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    display: table !important;
    min-width: 0 !important;
    width: 100% !important;
}

#assignments-container table.table tbody {
    display: table-row-group !important;
    width: auto !important;
}

#assignments-container .table-light-header {
    display: table-header-group !important;
}

#assignments-container .assignment-row {
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(23, 43, 58, .08) !important;
    display: table-row !important;
    margin: 0 !important;
    overflow: visible !important;
    width: auto !important;
}

#assignments-container .assignment-row td {
    background: #fff !important;
    border-bottom: 1px solid #dce5eb !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid #dce5eb !important;
    color: var(--tfv-ink) !important;
    display: table-cell !important;
    padding: .65rem .5rem !important;
    position: static !important;
    text-align: center !important;
}

#assignments-container .assignment-row td:first-child,
#assignments-container .assignment-row td:last-child {
    display: table-cell !important;
}

#assignments-container .assignment-row td:first-child {
    border-left: 1px solid #dce5eb !important;
    border-radius: 10px 0 0 10px !important;
}

#assignments-container .assignment-row td:last-child {
    border-right: 1px solid #dce5eb !important;
    border-radius: 0 10px 10px 0 !important;
}

#assignments-container .assignment-row:hover td {
    background: #fffafb !important;
    border-color: rgba(212, 18, 33, .35) !important;
}

#assignments-container .assignment-row .flight-logo-num-cell img {
    display: inline-block !important;
    max-height: 25px !important;
    max-width: 100% !important;
    width: auto !important;
}

/* Restore comfortable label spacing inside assignment actions. */
#assignments-container .booking-actions .btn {
    line-height: 1.2 !important;
    padding: .3rem .6rem !important;
}

/* Same comfortable button spacing on the standard flight cards. */
.flight-action-cell .btn {
    line-height: 1.2 !important;
    padding: .3rem .6rem !important;
}

.table {
    color: var(--tfv-ink);
    margin-bottom: 0;
}

.table thead th {
    background: #edf5f9;
    border-bottom: 1px solid var(--tfv-border);
    border-top: 0;
    color: #405563;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .045em;
    padding: .58rem .6rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.table td {
    border-top: 1px solid #e8eef2;
    padding: .52rem .6rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color .15s ease;
}

.table tbody tr:hover {
    background: #f5fafc;
}

.btn {
    border-radius: 7px;
    box-shadow: none;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .48rem .8rem;
    text-transform: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:hover {
    box-shadow: 0 7px 18px rgba(23, 43, 58, .14);
    transform: translateY(-1px);
}

.btn-primary,
.blue-bg,
.dashboard-box {
    background-color: var(--tfv-primary) !important;
    border-color: var(--tfv-primary) !important;
}

.form-control,
.custom-select,
.select2-container .select2-selection {
    background-color: #fff;
    border: 1px solid #cad7df;
    border-radius: 9px;
    min-height: 36px;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--tfv-primary);
    box-shadow: 0 0 0 3px rgba(8, 127, 189, .13);
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    padding: .4em .7em;
}

.leaflet-container {
    border-radius: 8px;
    font-family: inherit;
}

/* Live-map flight details panel. */
#map .map-info-box {
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid var(--tfv-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 28px rgba(23, 43, 58, .18);
    color: var(--tfv-ink);
    height: auto !important;
    left: 12px;
    margin: 0 !important;
    max-height: calc(100% - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px !important;
    top: 12px;
    width: 292px;
}

#map .map-info-box--dismissed {
    display: none !important;
}

#map .map-info-box > div {
    max-width: none !important;
}

#map .map-info-box .map-info-close {
    align-items: center;
    background: #f1f5f7;
    border: 0;
    border-radius: 50%;
    color: #526775;
    cursor: pointer;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 28px;
    z-index: 3;
}

#map .map-info-box .map-info-close:hover {
    background: #e2edf2;
    color: var(--tfv-primary-dark);
    transform: none;
}

#map .map-info-box img[alt="logo compagny"] {
    max-height: 38px;
    max-width: 150px;
    object-fit: contain;
}

#map .map-info-box .row.text-center > .col-12:first-child {
    background: #f7fafb !important;
    border-bottom: 1px solid var(--tfv-border);
    margin: -14px -14px 10px;
    padding: 12px 48px 10px !important;
    width: calc(100% + 28px);
}

#map .map-info-box p {
    font-size: .78rem;
    line-height: 1.35;
    margin-bottom: .45rem;
}

#map .map-info-box p[class*="col-sm-2"] {
    color: var(--tfv-muted);
    font-weight: 600;
}

#map .map-info-box .linkpir h3 {
    color: var(--tfv-primary-dark);
    font-size: 1.18rem;
    margin: .15rem 0;
}

#map .map-info-box .apt {
    color: var(--tfv-muted);
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.25;
    margin: .3rem !important;
}

#map .map-info-box .clearfix + .row {
    background: #f5f8fa !important;
    border: 1px solid #e0e9ee !important;
    border-radius: 8px !important;
    margin: 0;
    padding: .25rem .2rem;
}

#map .map-info-box .clearfix + .row .col-12 {
    border-bottom: 1px solid #e3ebef;
    margin: 0 !important;
    padding: .32rem .45rem;
}

#map .map-info-box .clearfix + .row .col-12:last-child {
    border-bottom: 0;
}

#map .map-info-box .clearfix + .row .col-6 {
    font-size: .72rem;
}

#map .map-info-box .clearfix + .row .col-6:first-child {
    color: var(--tfv-muted);
}

#map .map-info-box .clearfix + .row .col-6:last-child {
    color: var(--tfv-ink);
    font-weight: 700;
}

/* Flight card: a compact cockpit instrument panel, using the TFV blue and coral identity. */
#map .map-info-box {
    background: linear-gradient(155deg, #102b3b 0%, #0b1f2b 100%) !important;
    border: 1px solid rgba(115, 198, 235, .45) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 38px rgba(5, 26, 38, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #eaf5fa;
    padding: 0 !important;
    width: 315px;
}

#map .map-info-box > div {
    padding: 0 14px 14px;
}

#map .map-info-box .row.text-center {
    margin: 0;
}

#map .map-info-box .row.text-center > .col-12:first-child {
    align-items: center;
    background: linear-gradient(105deg, #087fbd, #075f8d) !important;
    border: 0;
    border-radius: 13px 13px 0 0;
    display: flex;
    height: 72px;
    justify-content: flex-start;
    margin: 0 -14px 13px;
    padding: 12px 54px 12px 16px !important;
    position: relative;
    width: calc(100% + 28px);
}

#map .map-info-box .row.text-center > .col-12:first-child::after {
    color: rgba(255,255,255,.72);
    content: 'LIVE FLIGHT';
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: .16em;
    position: absolute;
    right: 17px;
    top: 13px;
}

#map .map-info-box .row.text-center > .col-12:first-child::before {
    background: #ef6f46;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(239,111,70,.2);
    content: '';
    height: 6px;
    position: absolute;
    right: 20px;
    top: 33px;
    width: 6px;
}

#map .map-info-box img[alt="logo compagny"] {
    background: rgba(255,255,255,.96);
    border-radius: 7px;
    box-shadow: 0 5px 12px rgba(0,0,0,.16);
    max-height: 43px;
    max-width: 158px;
    padding: 5px 8px;
}

#map .map-info-box .map-info-close {
    background: rgba(4, 26, 39, .28);
    border: 1px solid rgba(255,255,255,.26);
    color: #fff;
    height: 27px;
    right: 12px;
    top: 42px;
    width: 27px;
}

#map .map-info-box .map-info-close:hover {
    background: #ef6f46;
    color: #fff;
    transform: rotate(90deg);
}

#map .map-info-box .col-12.mt-3,
#map .map-info-box .row.text-center > .col-12:nth-child(2) {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(159,213,237,.14);
    border-radius: 8px;
    margin: 0 0 11px !important;
    padding: 8px 9px 3px;
}

#map .map-info-box p,
#map .map-info-box p[class*="col-sm-2"] {
    color: #dcecf3;
    font-size: .72rem;
    margin-bottom: .34rem;
}

#map .map-info-box p[class*="col-sm-2"] {
    color: #78c8e9;
    font-size: .61rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#map .map-info-box .text-center > .row {
    align-items: stretch;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(159,213,237,.16);
    border-radius: 10px;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

#map .map-info-box .text-center > .row > .col-sm-5 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 10px 5px;
}

#map .map-info-box .text-center > .row > .col-sm-5:first-child {
    border-right: 1px solid rgba(159,213,237,.15);
}

#map .map-info-box .text-center > .row > .col-sm-5 img {
    display: none;
}

#map .map-info-box .text-center > .row > .col-sm-5:first-child::before,
#map .map-info-box .text-center > .row > .col-sm-5:last-child::before {
    color: #78c8e9;
    content: 'DÉPART';
    display: block;
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: .13em;
    margin-bottom: 2px;
}

#map .map-info-box .text-center > .row > .col-sm-5:last-child::before { content: 'ARRIVÉE'; }

#map .map-info-box .text-center > .row > .col-sm-2 {
    align-items: center;
    color: #ef6f46;
    display: flex;
    flex: 0 0 20px;
    justify-content: center;
    max-width: 20px;
    padding: 0 !important;
}

#map .map-info-box .text-center > .row > .col-sm-2::after { content: '✈'; font-size: 16px; }

#map .map-info-box .linkpir h3 {
    color: #fff;
    font-size: 1.32rem;
    letter-spacing: .04em;
    margin: 0;
}

#map .map-info-box .apt {
    color: #a9c4d1;
    font-size: .62rem;
    height: 28px;
    margin: 2px 4px !important;
    overflow: hidden;
}

#map .map-info-box .text-center > .row > .col-sm-5 { color: #cce0e9; font-size: .65rem; }

#map .map-info-box .clearfix { height: 10px !important; }

#map .map-info-box .clearfix + .row {
    background: transparent !important;
    border: 0 !important;
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
}

#map .map-info-box .clearfix + .row .col-12 {
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(159,213,237,.12) !important;
    border-radius: 7px;
    margin: 0 !important;
    min-height: 48px;
    padding: 6px 8px !important;
}

#map .map-info-box .clearfix + .row .col-6 {
    flex: 0 0 100%;
    font-size: .58rem;
    line-height: 1.18;
    max-width: 100%;
    padding: 0;
}

#map .map-info-box .clearfix + .row .col-6:first-child {
    color: #78c8e9;
    letter-spacing: .07em;
    text-transform: uppercase;
}

#map .map-info-box .clearfix + .row .col-6:last-child {
    color: #fff;
    font-size: .81rem;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* TFV flight card palette: white, graphite and red; every datum sits on a centred axis. */
#map .map-info-box {
    background: #f7f7f7 !important;
    border: 1px solid #d2d2d2 !important;
    box-shadow: 0 14px 30px rgba(30, 30, 30, .24);
    color: #343434;
}

#map .map-info-box > div { padding: 0 13px 13px; }

#map .map-info-box .row.text-center > .col-12:first-child {
    background: linear-gradient(135deg, #d4202b, #a90f1a) !important;
    justify-content: center;
    padding: 11px 48px !important;
}

#map .map-info-box .row.text-center > .col-12:first-child::after {
    color: rgba(255,255,255,.9);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

#map .map-info-box .row.text-center > .col-12:first-child::before {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.22);
    right: 16px;
}

#map .map-info-box .map-info-close {
    background: rgba(255,255,255,.17);
    border-color: rgba(255,255,255,.45);
    top: 41px;
}

#map .map-info-box .map-info-close:hover { background: #fff; color: #b81621; }

#map .map-info-box .col-12.mt-3,
#map .map-info-box .row.text-center > .col-12:nth-child(2) {
    background: #fff;
    border-color: #dedede;
    text-align: center;
}

#map .map-info-box .col-12.mt-3 .row,
#map .map-info-box .row.text-center > .col-12:nth-child(2) .row {
    justify-content: center;
    text-align: center;
}

#map .map-info-box p,
#map .map-info-box p[class*="col-sm-2"] { color: #444; text-align: center; }

#map .map-info-box p[class*="col-sm-2"] { color: #b81621; }

#map .map-info-box .text-center > .row {
    background: #fff;
    border-color: #d8d8d8;
    text-align: center;
}

#map .map-info-box .text-center > .row > .col-sm-5 {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#map .map-info-box .text-center > .row > .col-sm-5:first-child { border-right-color: #dedede; }

#map .map-info-box .text-center > .row > .col-sm-5:first-child::before,
#map .map-info-box .text-center > .row > .col-sm-5:last-child::before,
#map .map-info-box .clearfix + .row .col-6:first-child { color: #b81621; }

#map .map-info-box .text-center > .row > .col-sm-2 { color: #c91d28; }

#map .map-info-box .linkpir h3 { color: #333; text-align: center; }

#map .map-info-box .apt,
#map .map-info-box .text-center > .row > .col-sm-5 { color: #777; text-align: center; }

#map .map-info-box .clearfix + .row .col-12 {
    align-items: center;
    background: #fff;
    border-color: #dedede !important;
    display: flex;
    justify-content: center;
    text-align: center;
}

#map .map-info-box .clearfix + .row .col-6 { text-align: center; }

#map .map-info-box .clearfix + .row .col-6:last-child { color: #353535; }

#map .map-info-box img[alt="logo compagny"] { margin: 0 auto; }

/* The original theme anchors this panel to both the top and bottom of the map.
   Release the bottom anchor so the card ends naturally below its last datum. */
#map .map-info-box {
    bottom: auto !important;
    height: auto !important;
    min-height: 0 !important;
}

#map .map-info-box .row.text-center > .col-12:first-child {
    height: 70px;
    padding-top: 18px !important;
}

#map .map-info-box .row.text-center > .col-12:first-child::after { top: 7px; }
#map .map-info-box .row.text-center > .col-12:first-child::before { content: none; }

#map .map-info-box .map-info-close {
    right: 9px;
    top: 9px;
}

/* Final card geometry: the red header reaches every edge and shares the card radius. */
#map .map-info-box {
    border: 0 !important;
    border-radius: 11px !important;
    max-height: none;
    overflow: hidden;
}

#map .map-info-box > div { padding: 0 13px 13px !important; }

#map .map-info-box .row.text-center > .col-12:first-child {
    height: 74px;
    border-radius: 0 !important;
    flex: 0 0 calc(100% + 26px) !important;
    margin: 0 -13px 12px;
    max-width: calc(100% + 26px) !important;
    width: calc(100% + 26px);
}

#map .map-info-box .map-flight-number {
    bottom: 8px;
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    left: 50%;
    letter-spacing: .09em;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

#map .map-info-box .row.text-center > .col-12:first-child img[alt="logo compagny"] {
    margin-bottom: 8px;
    max-height: 28px;
}

#map .map-info-box .map-tracking-time {
    color: #666;
    display: block;
    font-size: .63rem;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

#partners-section img,
.social-icons img {
    filter: saturate(.9);
    transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

#partners-section a:hover img,
.social-icons a:hover img {
    filter: saturate(1.05);
    opacity: .9;
    transform: translateY(-2px);
}

.site-footer {
    background: linear-gradient(135deg, #172b3a 0%, #101f2a 100%);
    border-top: 4px solid var(--tfv-red-mid);
    color: #d5e0e6;
    margin-top: 2rem;
}

.site-footer h4,
.site-footer .nav-link {
    color: #f3f8fa !important;
}

.site-footer .nav-link:hover {
    color: #73c6eb !important;
}

.site-footer .footer-brand-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(4, 13, 19, .25);
    display: inline-flex;
    justify-content: center;
    min-height: 58px;
    padding: .55rem .8rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.site-footer .footer-brand-card:hover {
    box-shadow: 0 11px 24px rgba(4, 13, 19, .34);
    transform: translateY(-2px);
}

.site-footer .footer-brand-card .footer-title {
    color: #101f2a !important;
    margin-right: .8rem !important;
}

.site-footer .footer-logo-link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.site-footer .footer-brand-card .footer-logo {
    filter: none;
    margin: 0 !important;
    max-height: 44px;
    object-fit: contain;
    opacity: 1;
}

.pagination .page-link {
    border-color: var(--tfv-border);
    color: var(--tfv-primary-dark);
}

.pagination .active .page-link {
    background: var(--tfv-primary);
    border-color: var(--tfv-primary);
}

/* Same aircraft marker, recoloured only for TravelRadar flights. */
.travelradar-aircraft-icon {
    filter: invert(16%) sepia(96%) saturate(5100%) hue-rotate(357deg) brightness(96%) contrast(120%);
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .main-container,
    .footer-container {
        width: 100% !important;
        padding-right: 15px;
        padding-left: 15px;
    }

    .top-navbar {
        padding: .5rem .75rem;
    }

    .top-navbar .navbar-brand {
        border-right: 0;
        flex: 1 1 auto;
        margin: 0 .5rem 0 0 !important;
        max-width: calc(100% - 52px);
        min-width: 0;
        padding: .2rem .5rem .2rem 0;
    }

    .top-navbar .navbar-brand img {
        display: block;
        width: min(285px, 100%) !important;
        max-width: 100%;
        height: auto;
    }

    .top-navbar .navbar-toggler {
        align-items: center;
        background: #fff;
        border: 1px solid #cbd6dd;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(23, 43, 58, .08);
        color: #343a40;
        min-height: 44px;
        min-width: 44px;
        padding: .7rem .6rem;
        flex: 0 0 44px;
        justify-content: center;
        display: flex !important;
    }

    .top-navbar .navbar-toggler .svg-inline--fa {
        color: #343a40 !important;
    }

    #navigation {
        background: #fff;
        border-top: 1px solid var(--tfv-border);
        box-shadow: 0 12px 22px rgba(23, 43, 58, .08);
        margin-top: .6rem;
        width: 100%;
        padding: .75rem;
    }

    #navigation .nav-tabs-wrapper {
        display: block !important;
        padding-bottom: 0 !important;
    }

    #navigation .navbar-nav {
        width: 100%;
        margin: 0 !important;
        align-items: stretch;
    }

    #navigation .navbar-nav.flex-grow-1 {
        display: block;
    }

    #navigation .nav-item,
    #navigation .nav-link {
        width: 100%;
    }

    #navigation .nav-link,
    #navigation .ddmenu {
        display: block;
        border-bottom: 1px solid #edf1f4;
        padding: .8rem .65rem !important;
        font-size: .88rem !important;
        text-align: left;
    }

    #navigation .user-controls {
        margin: .5rem 0 0 !important;
    }

    #navigation .user-controls > .d-flex {
        justify-content: flex-start;
    }

    #navigation .dropdown-menu {
        max-width: calc(100vw - 2rem);
    }

    .stats-banner {
        gap: .5rem;
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .counter-container {
        flex: 1 1 calc(50% - .75rem);
        min-width: 0;
        max-width: none;
        padding: .8rem .5rem;
        margin: 0;
    }

    .stats-banner h5 {
        font-size: .85rem;
        overflow-wrap: anywhere;
    }

    .stats-banner p {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    #carousel .carousel-item,
    #carousel .carousel-item img {
        height: clamp(205px, 52vw, 340px);
        max-height: 340px;
    }

    #carousel .carousel-item img {
        object-fit: cover;
        object-position: left center;
    }

    #carousel .tfv-carousel-control {
        display: none;
    }

    #carousel .tfv-carousel-indicators {
        bottom: 9px;
        gap: 5px;
    }

    #carousel .tfv-carousel-indicators button {
        height: 4px;
        width: 13px;
    }

    #carousel .tfv-carousel-indicators button.active { width: 25px; }

    #carousel .tfv-slide-content {
        left: 1.2rem;
        max-width: 72%;
    }

    #carousel .tfv-slide-content h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
    #carousel .tfv-slide-content p { font-size: .72rem; }
    #carousel .tfv-slide-premium-benefits { margin-top: .65rem; }
    #carousel .tfv-slide-cta { font-size: .68rem; margin-top: .7rem; padding: .62rem .78rem; }

    .content-spacer {
        height: 1.5rem;
    }

    .contentbord {
        margin: 1.25rem 0;
    }

    .underbloc {
        margin-top: 1.5rem;
    }

    .underbloc iframe {
        width: min(320px, 100%);
    }

    .footer-nav .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-nav .nav-item {
        padding: 0;
    }

    .footer-nav .nav-link {
        display: block;
        padding: .45rem .25rem;
        font-size: .7rem;
        overflow-wrap: anywhere;
    }

    .site-footer .d-flex.align-items-center {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .logo-spacer {
        margin-left: 0 !important;
    }

    .table-responsive table {
        min-width: 560px;
    }
}

/* 2026 professional polish: presentation only, shared across public pages. */
::selection {
    background: rgba(212, 18, 33, .18);
    color: #101f2a;
}

.page-content-wrapper {
    background:
        radial-gradient(circle at 8% 4%, rgba(212, 18, 33, .035), transparent 24rem),
        linear-gradient(180deg, #f6f8fa 0%, #eef3f6 100%);
    overflow-x: hidden;
}

#top_anchor { height: 34px !important; }

.main-container > h1:first-child,
.main-container > h2:first-child,
.main-container > h3:first-child {
    align-items: center;
    display: flex;
    gap: .65rem;
    margin-bottom: 1rem;
}

.main-container > h1:first-child::before,
.main-container > h2:first-child::before,
.main-container > h3:first-child::before {
    background: linear-gradient(180deg, var(--tfv-red), var(--tfv-red-dark));
    border-radius: 999px;
    content: '';
    height: 1.35em;
    width: 4px;
}

body .btn {
    border-radius: 7px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: none;
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}

body .btn:hover,
body .btn:focus {
    box-shadow: 0 7px 16px rgba(23, 43, 58, .17);
    transform: translateY(-1px);
}

body .btn-danger,
body .btn-primary {
    background: linear-gradient(108deg, var(--tfv-red), var(--tfv-red-mid) 52%, var(--tfv-red-dark));
    border-color: var(--tfv-red-mid);
}

body label {
    color: #405563;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .38rem;
}

body .form-control,
body .custom-select,
body select.form-control,
body .select2-container .select2-selection {
    background-color: #fff;
    border: 1px solid #cbd7df;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(23, 43, 58, .025);
    color: #263746;
    min-height: 40px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body .form-control:focus,
body .custom-select:focus,
body select.form-control:focus,
body .select2-container--focus .select2-selection {
    border-color: #c51422;
    box-shadow: 0 0 0 3px rgba(212, 18, 33, .11);
    outline: 0;
}

body table.table {
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    color: #263746;
    margin-bottom: 0;
}

body table.table thead th {
    background: #eaf1f5;
    border-bottom: 1px solid #cbd7df;
    border-top: 0;
    color: #263746;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .045em;
    padding: .78rem .7rem;
    text-transform: uppercase;
    vertical-align: middle;
}

body table.table tbody td {
    background: #fff;
    border-color: #e3e9ed;
    padding: .68rem .7rem;
    vertical-align: middle;
}

body table.table tbody tr:nth-child(even) td { background: #f8fafb; }
body table.table tbody tr:hover td { background: #fff5f6; }

body .table-responsive {
    background: #fff;
    border: 1px solid #d7e1e7;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(23, 43, 58, .055);
}

body .alert {
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(23, 43, 58, .06);
}

body .modal-content {
    border: 1px solid #d7e1e7;
    border-radius: 12px;
    box-shadow: 0 22px 55px rgba(16, 31, 42, .23);
    overflow: hidden;
}

.tfv-auth-page {
    background-color: #dfe5e9;
    background-image: linear-gradient(115deg, rgba(16, 31, 42, .82), rgba(142, 7, 17, .42)), var(--tfv-auth-background);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
}

.tfv-auth-page .page-header {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.tfv-auth-page .page-header > .container {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

.tfv-auth-column {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    left: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    max-width: 100%;
    padding: 1rem;
    position: relative !important;
    top: auto !important;
    transform: none !important;
}

.tfv-auth-card {
    background: rgba(255, 255, 255, .97) !important;
    border: 1px solid rgba(255, 255, 255, .68) !important;
    border-radius: 16px !important;
    box-sizing: border-box;
    box-shadow: 0 24px 65px rgba(9, 20, 28, .32) !important;
    margin: 0 auto;
    max-width: 540px;
    overflow: hidden;
    padding: 1.55rem !important;
    width: 100%;
}

.tfv-auth-logo {
    background: #fff;
    height: auto;
    margin-bottom: 1rem;
    max-width: 100%;
    object-fit: contain;
}

.tfv-auth-card .input-group {
    background: #fff;
    border: 1px solid #d2dde4;
    border-radius: 10px;
    margin-bottom: .8rem;
    overflow: hidden;
}

.tfv-auth-card .input-group-text,
.tfv-auth-card .form-control {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tfv-auth-submit {
    border-radius: 8px !important;
    min-width: 190px;
}

.tfv-auth-card a { color: var(--tfv-red-mid) !important; }

@media (max-width: 575.98px) {
    .tfv-auth-column { padding: .65rem; }
    .tfv-auth-card {
        max-width: calc(100vw - 3rem);
        padding: 1rem !important;
        width: calc(100vw - 3rem) !important;
    }
    .tfv-auth-card .d-flex.justify-content-between {
        align-items: center;
        flex-direction: column;
        gap: .45rem;
    }
    .tfv-auth-card .d-flex.justify-content-between p { margin: 0 !important; }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .main-container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .contentbord,
    .underbloc {
        padding: .7rem;
    }

    #map .map-info-box {
        left: 8px;
        max-height: calc(100% - 16px);
        padding: 11px !important;
        top: 8px;
        width: min(286px, calc(100% - 16px));
    }

    .top-navbar .navbar-brand {
        max-width: calc(100% - 52px);
    }

    .counter-container {
        flex: 1 1 calc(50% - .5rem) !important;
        min-height: 104px;
        max-width: calc(50% - .25rem);
    }

    .stats-banner h5 {
        font-size: .72rem;
    }

    #carousel .carousel-item,
    #carousel .carousel-item img {
        height: 210px;
    }

    #carousel .carousel-item::after {
        background: linear-gradient(90deg, rgba(9, 20, 28, .9), rgba(9, 20, 28, .52) 75%, rgba(9, 20, 28, .18));
    }

    #carousel .tfv-slide-content {
        left: 1rem;
        max-width: 77%;
    }

    #carousel .tfv-slide-eyebrow {
        font-size: .55rem;
        margin-bottom: .45rem;
    }

    #carousel .tfv-slide-eyebrow::before { width: 22px; }
    #carousel .tfv-slide-content h2 { font-size: 1.25rem; margin-bottom: .45rem; }
    #carousel .tfv-slide-content p { font-size: .65rem; line-height: 1.4; }
    #carousel .tfv-slide-count { bottom: 8px; font-size: .58rem; right: 10px; }

    .footer-nav .navbar-nav {
        grid-template-columns: 1fr;
    }

    .footer-title {
        width: 100%;
    }
}
