/* ============================================================================
   Travel & Destinations Online (partner 5218, online.tnd-core.com)
   Landing page (Home/IndexTnd), header and footer. Loaded only for TND
   (_Layout: body id="tnd"), every rule is scoped to body#tnd.
   ============================================================================ */

body#tnd {
    --tnd-navy: #0b2152;
    --tnd-navy-2: #12307a;
    --tnd-red: #e3242b;
    --tnd-red-dark: #c41a20;
    --tnd-text: #1d2433;
    --tnd-muted: #4b5568;
    --tnd-line: #e4e8f0;
    --tnd-tile: #eef3fb;
    --tnd-blue: #2952a3;
    background: #fff;
    color: var(--tnd-text);
    font-family: "DM Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body#tnd .tnd-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
body#tnd .tnd-header *, body#tnd .tnd-header *::before, body#tnd .tnd-header *::after,
body#tnd .tnd-hero *, body#tnd .tnd-hero *::before, body#tnd .tnd-hero *::after,
body#tnd .tnd-platform *, body#tnd .tnd-footer *, body#tnd .tnd-alert * {
    box-sizing: border-box;
}

/* ---------- the shared header stays in the page (it carries the login side panel)
               but its own bar is replaced by .tnd-header ---------- */
body#tnd header#top {
    position: static;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}
body#tnd header#top .backbg,
body#tnd header#top .header-b,
body#tnd header#top .MVT-newheaderStyle > :not(#mySidenav) {
    display: none !important;
}
body#tnd header#top .wrapper-padding,
body#tnd header#top .MVT-newheaderStyle {
    height: 0;
    padding: 0 !important;
    margin: 0;
}
body#tnd #mySidenav { z-index: 2000; }

/* ---------- header ---------- */
body#tnd .tnd-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--tnd-line);
}
body#tnd .tnd-header-row {
    display: flex;
    align-items: center;
    gap: 16px 28px;
    min-height: 88px;
    flex-wrap: wrap;
}
body#tnd .tnd-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
}
/* Images/tnd/tnd-logo-online.png = full "Travel & Destinations ONLINE - Self booking platform" lock-up (2.83:1) */
body#tnd .tnd-logo img { height: 58px; width: auto; max-width: none; display: block; }
body#tnd .tnd-nav { display: flex; align-items: center; }
body#tnd .tnd-nav a {
    color: var(--tnd-text);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 22px;
    text-decoration: none;
    border-right: 1px solid var(--tnd-line);
}
body#tnd .tnd-nav a:last-child { border-right: 0; }
body#tnd .tnd-nav a:hover { color: var(--tnd-red); }
body#tnd .tnd-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: var(--tnd-navy);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
body#tnd .tnd-login:hover { background: var(--tnd-navy-2); }
body#tnd .tnd-login svg { width: 20px; height: 20px; }

body#tnd a:focus-visible,
body#tnd button:focus-visible {
    outline: 3px solid #8fb0ff;
    outline-offset: 2px;
}

/* ---------- hero ---------- */
body#tnd .tnd-hero {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    display: flex;
    align-items: center;
    background: #fff;
}
/* terminal photo on the right ~75%; file is set inline by IndexTnd (tnd-hero.webp, fallback tnd-hero.svg).
   Anchored right so the traveller and the sunrise always stay in view. */
body#tnd .tnd-hero-media {
    position: absolute;
    inset: 0 0 0 25%;
    background-color: #dfe9f5;
    background-image: url("../Images/tnd/tnd-hero.svg");
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* the photo fades into white behind the copy (seats stay faintly visible, as in the design) */
body#tnd .tnd-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 10%, rgba(255,255,255,.55) 24%, rgba(255,255,255,.15) 36%, rgba(255,255,255,0) 46%);
}
body#tnd .tnd-hero-inner {
    position: relative;
    width: 100%;
    padding-top: 44px;
    padding-bottom: 44px;
}
body#tnd .tnd-hero-copy { max-width: 640px; }
body#tnd .tnd-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    color: var(--tnd-navy);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
body#tnd .tnd-eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--tnd-red);
    border-radius: 2px;
}
body#tnd .tnd-hero h1 {
    margin: 0 0 18px;
    color: var(--tnd-navy);
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.01em;
}
body#tnd .tnd-hero h1 .tnd-dot { color: var(--tnd-red); }
body#tnd .tnd-lead {
    max-width: 460px;
    margin: 0 0 26px;
    color: var(--tnd-text);
    font-size: 16px;
    line-height: 1.55;
}
body#tnd .tnd-btn-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    border-radius: 6px;
    background: var(--tnd-red);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(227,36,43,.25);
}
body#tnd .tnd-btn-red:hover { background: var(--tnd-red-dark); color: #fff; text-decoration: none; }
body#tnd .tnd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}
body#tnd .tnd-badges li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 20px 4px 0;
    margin-right: 20px;
    border-right: 1px solid #cfd6e3;
    color: var(--tnd-navy);
    font-size: 15.5px;
    white-space: nowrap;
    font-weight: 600;
}
body#tnd .tnd-badges li:last-child { border-right: 0; margin-right: 0; }
body#tnd .tnd-badges svg { width: 22px; height: 22px; flex: none; }

/* ---------- one platform ---------- */
body#tnd .tnd-platform { padding: 56px 0 64px; background: #fff; }
body#tnd .tnd-platform h2 {
    margin: 0 0 40px;
    text-align: center;
    color: var(--tnd-navy);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
}
body#tnd .tnd-features {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
body#tnd .tnd-features li {
    padding: 4px 14px;
    text-align: center;
    border-right: 1px solid var(--tnd-line);
}
body#tnd .tnd-features li:last-child { border-right: 0; }
body#tnd .tnd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--tnd-tile);
    color: var(--tnd-blue);
}
body#tnd .tnd-icon svg { width: 26px; height: 26px; }
body#tnd .tnd-features h3 {
    margin: 0 0 6px;
    color: var(--tnd-text);
    font-size: 16px;
    font-weight: 700;
}
body#tnd .tnd-features p {
    margin: 0;
    color: var(--tnd-blue);
    font-size: 13.5px;
    line-height: 1.45;
}

/* ---------- footer ---------- */
/* one navy strip as in the design: ONLINE logo | (c) | Terms | Privacy | T&D logo | SIGNATURE logo,
   evenly spread with thin separators (site-wide footer padding rules reset). Logos: Images/tnd/*-white.png */
body#tnd footer.tnd-footer { background: var(--tnd-navy); color: #dfe6f5; padding: 0; margin: 0; }
body#tnd .tnd-footer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 0;
    min-height: 86px;
    padding-top: 12px;
    padding-bottom: 12px;
}
body#tnd .tnd-footer-logo { flex: none; display: block; padding-right: 20px; border-radius: 4px; }
body#tnd .tnd-footer-logo img { height: 50px; width: auto; max-width: none; display: block; }
body#tnd .tnd-footer-item {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 20px;
    border-left: 1px solid rgba(255,255,255,.28);
    color: #dfe6f5;
    font-size: 12.5px;
    white-space: nowrap;
}
body#tnd .tnd-footer a.tnd-footer-item { color: #fff; text-decoration: none; }
body#tnd .tnd-footer a.tnd-footer-item:hover { text-decoration: underline; }
body#tnd .tnd-footer-brand img { height: 46px; width: auto; max-width: none; display: block; }
body#tnd .tnd-footer-brand:last-child { justify-content: flex-end; padding-right: 0; }
/* shared "Powered by Traversia" bar under the footer: thin line in the same navy, not a second big strip */
body#tnd .copyright {
    padding: 5px 0;
    background: var(--tnd-navy);
    border-top: 1px solid rgba(255,255,255,.12);
}
body#tnd .copyright p { margin: 0; color: #b9c6e4; font-size: 11.5px; }
body#tnd .copyright a { color: #fff; font-size: 11.5px; }

/* login-message pop-up */
body#tnd .tnd-alert[hidden] { display: none; }
body#tnd .tnd-alert {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(11,33,82,.45);
}
body#tnd .tnd-alert-box {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    text-align: center;
}
body#tnd .tnd-alert-box p { margin: 0 0 18px; color: var(--tnd-text); font-size: 15px; }
body#tnd .tnd-alert-box button {
    height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: var(--tnd-navy);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- responsive ---------- */
/* desktop: the footer is ONE strip and never wraps */
@media (min-width: 1025px) {
    body#tnd .tnd-footer-row { flex-wrap: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
    body#tnd .tnd-footer-logo { padding-right: 12px; }
    body#tnd .tnd-footer-logo img { height: 42px; }
    body#tnd .tnd-footer-item { padding: 4px 12px; font-size: 12px; }
    body#tnd .tnd-footer-brand img { height: 38px; }
}
@media (max-width: 1024px) {
    body#tnd .tnd-features { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    body#tnd .tnd-features li:nth-child(3n) { border-right: 0; }
    body#tnd .tnd-footer-row { justify-content: center; }
    body#tnd .tnd-footer-item { flex: none; }
    body#tnd .tnd-footer-brand img { height: 40px; }
}
@media (max-width: 760px) {
    body#tnd .tnd-wrap { padding: 0 16px; }
    body#tnd .tnd-header-row { min-height: 64px; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
    body#tnd .tnd-logo img { height: 44px; }
    body#tnd .tnd-nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--tnd-line); padding-top: 6px; }
    body#tnd .tnd-nav a { padding: 6px 14px; }
    body#tnd .tnd-login { height: 40px; padding: 0 14px; font-size: 14px; gap: 6px; }
    body#tnd .tnd-login-long { display: none; }

    body#tnd .tnd-hero { display: block; min-height: 0; }
    body#tnd .tnd-hero-media { position: relative; inset: auto; height: 220px; }
    body#tnd .tnd-hero-media::before { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 40%); }
    body#tnd .tnd-hero-inner { padding-top: 8px; padding-bottom: 32px; }
    body#tnd .tnd-badges li { border-right: 0; margin-right: 0; padding-right: 18px; font-size: 15px; }

    body#tnd .tnd-platform { padding: 40px 0 48px; }
    body#tnd .tnd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body#tnd .tnd-features li,
    body#tnd .tnd-features li:nth-child(3n) { border-right: 0; }

    body#tnd .tnd-footer-row { flex-direction: column; align-items: flex-start; padding-top: 18px; padding-bottom: 18px; }
    body#tnd .tnd-footer-logo { padding-right: 0; }
    body#tnd .tnd-footer-item,
    body#tnd .tnd-footer-brand:last-child { border-left: 0; padding: 0; justify-content: flex-start; }
}
@media (max-width: 430px) {
    body#tnd .tnd-header .tnd-logo img { height: 40px; }
}
