/* ============================================================
   layout.css — Trip Designer
   Shared layout styles: header, navbar, footer, loader, floats
   ============================================================ */

/* ── Rich Text (Summernote output) Normalizer ── */
.td-richtext {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14.5px;
    line-height: 1.8;
    color: #374151;
}
.td-richtext * {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: 14.5px !important;
    color: #374151 !important;
    background: transparent !important;
    line-height: 1.8 !important;
}
.td-richtext b, .td-richtext strong { font-weight: 700 !important; color: #1e293b !important; }
.td-richtext p { margin: 0 0 8px !important; }
.td-richtext a { color: var(--tp, #04107C) !important; text-decoration: underline !important; }
.td-richtext font { display: contents !important; }

/* Sub-heading li (li that has only a <b> child — Summernote section titles) */
.td-richtext ul > li:has(> b),
.td-richtext ul > li:has(> b > font),
.td-richtext ul > li:has(> font > b) {
    padding: 7px 12px 7px 12px !important;
    margin: 14px 0 4px !important;
    border-left: 3px solid var(--tp, #04107C) !important;
    background: transparent !important;
}
.td-richtext ul > li:has(> b)::before,
.td-richtext ul > li:has(> b > font)::before,
.td-richtext ul > li:has(> font > b)::before { display: none !important; }
.td-richtext ul > li:has(> b) b,
.td-richtext ul > li:has(> b > font) b,
.td-richtext ul > li:has(> font > b) b { color: var(--tp, #04107C) !important; font-weight: 700 !important; }

/* Unordered list */
.td-richtext ul { list-style: none !important; padding-left: 0 !important; margin: 4px 0 8px !important; }
.td-richtext ul > li { position: relative !important; padding: 4px 6px 4px 18px !important; margin-bottom: 2px !important; }
.td-richtext ul > li::before { content: '•' !important; position: absolute !important; left: 5px !important; top: 4px !important; color: var(--tp, #04107C) !important; font-size: 15px !important; line-height: 1.8 !important; }

/* Ordered list */
.td-richtext ol { list-style: none !important; padding-left: 0 !important; margin: 4px 0 8px !important; counter-reset: td-ol !important; }
.td-richtext ol > li { position: relative !important; padding: 4px 6px 4px 32px !important; margin-bottom: 3px !important; counter-increment: td-ol !important; }
.td-richtext ol > li::before {
    content: counter(td-ol) !important;
    position: absolute !important; left: 3px !important; top: 6px !important;
    width: 20px !important; height: 20px !important;
    background: var(--tp, #04107C) !important; color: #fff !important;
    font-size: 10px !important; font-weight: 700 !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}

/* Tables */
.td-richtext table { width: 100% !important; border-collapse: collapse !important; margin-bottom: 12px !important; }
.td-richtext table td, .td-richtext table th { border: 1px solid #e2e8f0 !important; padding: 8px 12px !important; }
.td-richtext table th { background: var(--tp, #04107C) !important; color: #fff !important; font-weight: 700 !important; }
.td-richtext table tr:nth-child(even) td { background: #f8fafc !important; }

/* ── Search Suggest Lists ── */
#suggest-list {
    float: left;
    list-style: none;
    margin-top: -3px;
    padding: 0;
    width: 96%;
    position: absolute;
    z-index: 900;
    max-height: 200px;
    overflow-y: auto;
}
#suggest-list li {
    border-radius: 5px;
    padding: 10px;
    background: #f0f0f0;
    border-bottom: var(--tp, #04107C) 1px solid;
}
#suggest-list li:hover {
    background: #ece3d2;
    cursor: pointer;
}
#suggest-list1 {
    float: left;
    list-style: none;
    margin-top: -3px;
    padding: 0;
    width: 23%;
    position: absolute;
    z-index: 900;
    max-height: 200px;
    overflow-y: auto;
}
@media only screen and (max-width: 600px) {
    #suggest-list1 {
        width: 88%;
    }
}
#suggest-list1 li {
    border-radius: 5px;
    padding: 10px;
    background: #f0f0f0;
    border-bottom: var(--tp, #04107C) 1px solid;
}
#suggest-list1 li:hover {
    background: #ece3d2;
    cursor: pointer;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #888; }
::-webkit-scrollbar-thumb { background: var(--tp, #04107C); }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── General ── */
.loading {
    position: fixed;
    width: 300px;
    height: 160px;
    z-index: 9999;
    background: 50% 50% no-repeat rgb(249,249,249);
    top: 50%;
    left: 50%;
    border-radius: 5px;
    transform: translate(-50%, -50%);
}
.error { color: red; }

/* ── Header mobile sticky ── */
@media (max-width: 767.98px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1030;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}
@media (max-width: 991.98px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
    }
    body { padding-top: 72px; }
}

/* ── Notification / User Dropdown ── */
.notification-grousp {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block !important;
    text-align: left;
}
.notification-grousp li {
    display: block;
    margin: 0;
    text-align: left;
}
.notification-grousp li a {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left !important;
    padding: 10px 16px;
    font-weight: 600;
    color: #0b214a;
    text-decoration: none;
    border-radius: 5px;
}
.notification-grousp li a:hover { background: #eef4ff; }
.notification-grousp li i {
    width: 20px;
    text-align: left;
    margin-right: 8px;
}

/* ── Modal z-index overrides ── */
.modal { z-index: 9999 !important; }
.modal-backdrop { z-index: 9998 !important; }
.nav-pills .nav-item { margin-bottom: 8px; }

/* ── Page Loader ── */
.loader-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    display: flex; justify-content: center; align-items: center;
    z-index: 99999;
}
.td-loader-box {
    display: flex; flex-direction: column; align-items: center; gap: 28px;
}

/* Icon ring */
.td-loader-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.td-loader-icon-ring {
    position: relative; width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
}
.td-loader-icon-ring::before,
.td-loader-icon-ring::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}
.td-loader-icon-ring::before {
    border-top-color: var(--tp, #04107C);
    border-right-color: var(--tp, #04107C);
    animation: td-spin 1.1s linear infinite;
}
.td-loader-icon-ring::after {
    border-bottom-color: #93c5fd;
    border-left-color: #93c5fd;
    animation: td-spin 1.1s linear infinite reverse;
    inset: 8px;
}
.td-loader-icon-ring-inner {
    position: absolute; inset: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg,  var(--tp, #04107C), #1a3bc4);
}
.td-loader-plane {
    position: relative; z-index: 1;
    font-size: 24px; color: #fff;
    transform: rotate(-35deg);
    animation: td-loader-fly 1.8s ease-in-out infinite;
}

/* Brand name */
.td-loader-brand-name { font-size: 26px; font-weight: 900; letter-spacing: .5px; line-height: 1; }
.td-loader-brand-trip     { color: var(--tp, #04107C); }
.td-loader-brand-designer { color: #1a3bc4; }
.td-loader-tagline {
    font-size: 11.5px; font-weight: 600; color: #94a3b8;
    letter-spacing: 1.5px; text-transform: uppercase;
}

/* Progress bar */
.td-loader-bar-wrap {
    width: 200px; height: 3px;
    background: #e2e8f0; border-radius: 5px; overflow: hidden;
}
.td-loader-bar {
    height: 100%;
    background: linear-gradient(90deg,  var(--tp, #04107C), #1a3bc4, #93c5fd);
    border-radius: 5px;
    animation: td-loader-progress 1.6s ease-in-out infinite;
}

/* Dots */
.td-loader-dots { display: flex; gap: 7px; }
.td-loader-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: #cbd5e1;
    animation: td-loader-bounce 1.2s ease-in-out infinite;
}
.td-loader-dots span:nth-child(1) { animation-delay: 0s; }
.td-loader-dots span:nth-child(2) { animation-delay: .2s; }
.td-loader-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes td-spin {
    to { transform: rotate(360deg); }
}
@keyframes td-loader-fly {
    0%, 100% { transform: rotate(-35deg) translateY(0); }
    50%       { transform: rotate(-35deg) translateY(-5px); }
}
@keyframes td-loader-progress {
    0%   { width: 0%; margin-left: 0; }
    50%  { width: 70%; margin-left: 0; }
    100% { width: 0%; margin-left: 100%; }
}
@keyframes td-loader-bounce {
    0%, 80%, 100% { transform: scale(.6); background: #cbd5e1; }
    40%            { transform: scale(1);  background: var(--tp, #04107C); }
}

/* ── Floating Social Buttons ── */
.floating-buttons {
    position: fixed;
    right: 10px;
    bottom: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}
.float-btn {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: 0.3s;
    color: #fff;
}
.float-btn img { width: 28px; filter: brightness(0) invert(1); }
.float-btn:hover { transform: scale(1.15); filter: brightness(1.08); }
.whatsapp  { background: #25d366; border: 2px solid #25d366; }
.messenger { background: #0084ff; border: 2px solid #0084ff; }
.payment   { background: #16a34a; border: 2px solid #16a34a; }

.chat-stack { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.chat-trigger {
    border: 2px solid #f59e0b; background: #f59e0b; color: #fff;
    cursor: pointer;
}
.chat-trigger i { font-size: 22px; line-height: 1; color: #fff; }
.chat-trigger .chat-trigger-close { display: none; }
.chat-stack.open .chat-trigger .chat-trigger-open  { display: none; }
.chat-stack.open .chat-trigger .chat-trigger-close { display: inline-block; }
.chat-child { display: none; }
.chat-stack.open .chat-child { display: flex; animation: chatPop .2s ease; }
@keyframes chatPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Navbar Submenu ── */
.nav-submenu img { vertical-align: middle; transition: 0.2s; }
.nav-submenu a:hover img { transform: scale(1.1); }
.nav-submenu a { font-size: 14px; }
.nav-submenu i { font-size: 12px; }
.nav-submenu .btn { border-radius: 5px; background-color: #0a2e6c; transition: 0.3s; }
.nav-submenu .btn:hover { background-color: #173b8a; transform: translateY(-2px); }

/* ── Newsletter Section ── */
.td-newsletter {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background: linear-gradient(135deg,  var(--tp, #04107C) 0%, #0d2aad 60%, #1a3bc4 100%);
}
.td-newsletter::before {
    content: '';
    position: absolute; inset: 0;
    background: url(../img/bg.jpg) center/cover no-repeat;
    opacity: .35;
}
.td-newsletter::after {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -160px; right: -120px;
    pointer-events: none;
}
.td-nl-inner { position: relative; z-index: 1; }
.td-nl-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fbbf24; font-size: 12px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 16px; border-radius: 5px;
    margin-bottom: 20px;
}
.td-nl-title { font-size: 36px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.td-nl-title span { color: #fbbf24; }
.td-nl-sub { font-size: 15px; color: rgba(255,255,255,.72); margin-bottom: 36px; line-height: 1.6; }
.td-nl-perks {
    display: flex; flex-wrap: wrap; gap: 12px 24px;
    justify-content: center; margin-bottom: 36px;
}
.td-nl-perk { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.82); font-weight: 600; }
.td-nl-perk i { color: #fbbf24; font-size: 13px; }
.td-nl-form {
    display: flex; gap: 0;
    max-width: 520px; margin: 0 auto;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: 5px; overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.td-nl-form input[type="email"] {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 16px 20px; font-size: 15px; color: #fff; font-weight: 500;
}
.td-nl-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.td-nl-form button {
    flex-shrink: 0;
    background: #FFD700; color: var(--tp, #04107C);
    border: none; padding: 0 28px;
    font-size: 14px; font-weight: 900;
    cursor: pointer; transition: background .2s, color .2s;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.td-nl-form button:hover { background: #FFC200; color: var(--tp, #04107C); }
.td-nl-note { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 14px; }
@media (max-width: 576px) {
    .td-nl-title { font-size: 26px; }
    .td-nl-form { flex-direction: column; border-radius: 5px; }
    .td-nl-form button { padding: 14px; justify-content: center; border-radius: 0 0 5px 5px; }
}

/* ── Footer ── */
.tdf { background: #08102e; position: relative; overflow: hidden; }
.tdf::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,  var(--tp, #04107C) 0%, #fbbf24 50%,  var(--tp, #04107C) 100%);
    background-size: 200% 100%; animation: tdf-shine 4s linear infinite;
}
@keyframes tdf-shine { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.tdf-main { padding: 48px 0 32px; position: relative; z-index: 1; }

.tdf-logo { height: 44px; object-fit: contain; margin-bottom: 12px; display: block; background: #fff; padding: 10px 16px; border-radius: 8px; box-sizing: content-box; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.tdf-company-name { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.tdf-tagline {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: #08102e;
    background: #fbbf24; padding: 3px 10px; border-radius: 5px;
    margin-bottom: 14px;
}
.tdf-desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 18px; }

.tdf-contact { list-style: none; padding: 0; margin: 0 0 20px; }
.tdf-contact li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13px; color: rgba(255,255,255,.7);
    margin-bottom: 8px; line-height: 1.5;
}
.tdf-contact .ci {
    width: 26px; height: 26px; border-radius: 5px; flex-shrink: 0;
    background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fbbf24; margin-top: 1px;
}

.tdf-social { display: flex; gap: 8px; }
.tdf-social a {
    width: 34px; height: 34px; border-radius: 5px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6); font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all .2s;
}
.tdf-social a:hover { background: var(--tp, #04107C); border-color: var(--tp, #04107C); color: #fbbf24; transform: translateY(-2px); }

.tdf-h {
    font-size: 11px; font-weight: 900; color: #fff;
    letter-spacing: 1.4px; text-transform: uppercase;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: relative;
}
.tdf-h::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 24px; height: 2px;
    background: #fbbf24; border-radius: 5px;
}

.tdf-nav { list-style: none; padding: 0; margin: 0; }
.tdf-nav li { margin-bottom: 8px; }
.tdf-nav a {
    font-size: 13.5px; color: rgba(255,255,255,.65);
    text-decoration: none; display: flex; align-items: center;
    gap: 8px; transition: all .18s;
}
.tdf-nav a::before {
    content: ''; width: 4px; height: 4px; border-radius: 50%;
    background: rgba(251,191,36,.4); flex-shrink: 0; transition: all .18s;
}
.tdf-nav a:hover { color: #fbbf24; padding-left: 3px; text-decoration: none; }
.tdf-nav a:hover::before { background: #fbbf24; }

/* Follow Us column links */
.tdf-follow-link {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: rgba(255,255,255,.65);
    font-size: 13px; transition: color .2s;
}
.tdf-follow-link:hover { color: #fbbf24; text-decoration: none; }
.tdf-follow-link span {
    width: 34px; height: 34px; border-radius: 5px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}

.tdf-trust {
    display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0;
}
.tdf-trust-item {
    display: flex; align-items: center; gap: 9px;
    background: rgba(4,16,124,.25); border: 1px solid rgba(255,255,255,.07);
    border-radius: 5px; padding: 9px 14px; flex: 1 1 calc(20% - 10px);
}
.tdf-trust-icon {
    width: 28px; height: 28px; border-radius: 5px; flex-shrink: 0;
    background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fbbf24;
}
.tdf-trust-text { font-size: 12.5px; color: rgba(255,255,255,.75); font-weight: 600; white-space: nowrap; }
@media (max-width: 991px) {
    .tdf-trust-item { flex: 1 1 calc(33% - 10px); }
    .tdf-trust-text { white-space: normal; }
}
@media (max-width: 576px) {
    .tdf-trust { justify-content: center; }
    .tdf-trust-item { flex: 0 0 auto; width: calc(50% - 5px); }
}

.tdf-ssl { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 0; text-align: center; }
.tdf-ssl-wrap { border-radius: 5px; overflow: hidden; }
.tdf-ssl img { height: 100px; object-fit: cover; opacity: .9; width: 100%; display: block; }

.tdf-bottom { background: rgba(0,0,0,.3); padding: 14px 0; }
.tdf-copy { font-size: 12.5px; color: rgba(255,255,255,.45); margin: 0; }
.tdf-copy strong { color: rgba(255,255,255,.7); }
.tdf-licence { font-size: 12px; color: rgba(255,255,255,.35); text-align: center; margin: 0; }
.tdf-blinks { display: flex; gap: 18px; justify-content: flex-end; }
.tdf-blinks a { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.tdf-blinks a:hover { color: #fbbf24; }

@media (max-width: 767px) {
    .tdf-copy    { text-align: center; }
    .tdf-licence { text-align: center; margin-top: 6px; }
    .tdf-blinks  { justify-content: center; margin-top: 6px; }
}

/* ── Smooth fixed header (no jump / no slide-in animation) ──
   body has `overflow-x: hidden` which breaks `position: sticky`,
   so we use `position: fixed` from the start and reserve space
   via a same-height spacer injected by JS (see below). */
.header,
.header.header-light,
.header.header-light.theme {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--tp, #04107C) !important;
    transition: box-shadow .25s ease, background .25s ease;
    animation: none !important;
}
.header.header-fixed {
    position: fixed !important;
    top: 0;
    box-shadow: 0 4px 16px rgba(4,16,124,.25);
    animation: none !important;
}

/* ── Desktop: navy header fills the full reserved zone ──
   body.td-public-layout reserves 82px at the top. The navbar's own
   content is shorter than that, so the navy background used to stop
   short — leaving a white strip between the nav and the page hero.
   Pinning the header to that same 82px (and vertically centring the
   nav) makes the navy cover the whole zone, killing the white bar. */
@media (min-width: 992px) {
    .header.header-light,
    .header.header-light.theme {
        min-height: 82px;
        display: flex;
        align-items: center;
    }
    .header.header-light > .container {
        width: 100%;
    }
}

/* ── Navbar color scheme: brand navy + white text ── */
.header .nav-brand,
.header .nav-brand span         { color: #fff !important; }

/* Desktop (landscape): menu bar is on navy nav → white links */
.header .navigation-landscape .nav-menu > li > a { color: #fff !important; font-weight: 600; }
.header .navigation-landscape .nav-menu > li > a:hover,
.header .navigation-landscape .nav-menu > li.active > a { color: #fbbf24 !important; }

/* Mobile (portrait/off-canvas): nav-menus-wrapper has white bg → dark links */
.header .navigation-portrait .nav-menus-wrapper,
.header .navigation-portrait .nav-menu,
.header .navigation-portrait .nav-menu ul { background: #fff !important; }
.header .navigation-portrait .nav-menu > li > a,
.header .navigation-portrait .nav-menu > li a    { color: #1e293b !important; font-weight: 600; }
.header .navigation-portrait .nav-menu > li > a:hover,
.header .navigation-portrait .nav-menu > li.active > a,
.header .navigation-portrait .nav-menu > li a:hover { color: var(--tp, #04107C) !important; background: #eef0fa !important; }
.header .navigation-portrait .nav-menus-wrapper-close-button { color: var(--tp, #04107C) !important; }
/* Hamburger toggle — transparent container, white lines */
.header .nav-toggle             { background: transparent !important; }
.header .nav-toggle:before      {
    background-color: #fff !important;
    box-shadow: 0 0.5em 0 0 #fff, 0 1em 0 0 #fff !important;
}
.header .submenu-indicator-chevron { border-color: transparent #fff #fff transparent !important; }

/* Mobile user icon button — high-contrast white pill */
.header .mobile_nav ul li a     {
    background: #fff !important;
    color: var(--tp, #04107C) !important;
    border-radius: 5px !important;
    padding: 8px 14px !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.header .mobile_nav ul li a:focus,
.header .mobile_nav ul li a:active,
.header .mobile_nav ul li a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Admin navbar: remove focus outline on dropdown toggle / avatar buttons */
.navbar .dropdown-toggle,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:active,
.navbar .dropdown-toggle:focus-visible,
.navbar .user-profile a,
.navbar .user-profile a:focus,
.navbar .user-profile a:active,
.navbar .user-profile a:focus-visible,
.navbar-wrapper button:focus,
.navbar-wrapper button:active,
.navbar-wrapper button:focus-visible,
.navbar-wrapper a:focus,
.navbar-wrapper a:active,
.navbar-wrapper a:focus-visible,
#profilePanelToggle,
#profilePanelToggle:focus,
#profilePanelToggle:active,
#profilePanelToggle:focus-visible,
#profilePanelToggle img,
#profilePanelToggle span,
#profilePanel a:focus,
#profilePanel a:active,
#profilePanel a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.navbar *, .navbar-wrapper * { -webkit-tap-highlight-color: transparent; }

/* Global: kill browser focus outline on all buttons/links after click */
button:focus, button:active, button:focus-visible,
a:focus, a:active, a:focus-visible,
[role="button"]:focus, [role="button"]:active, [role="button"]:focus-visible,
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:active, .nav-tabs .nav-link.active {
    outline: none !important;
}
/* Bootstrap focus ring (box-shadow) kill on .btn, form controls don't get ring */
.btn:focus, .btn:active, .btn:focus-visible,
.btn-check:focus+.btn, .btn-check:active+.btn {
    box-shadow: none !important;
    outline: none !important;
}
button, a, [role="button"], .btn { -webkit-tap-highlight-color: transparent; }
.header .mobile_nav ul li a i,
.header .mobile_nav ul li a span { color: var(--tp, #04107C) !important; }
.header .mobile_nav ul li a.bg-light-primary,
.header .mobile_nav ul li a.bg-light-primary i { background: #fff !important; color: var(--tp, #04107C) !important; }
.header .mobile_nav ul li a.btn-primary { background: #fbbf24 !important; color: var(--tp, #04107C) !important; }

/* Brand / logo: remove any theme-painted white bg, keep logo visible */
.header .nav-brand,
.header .nav-brand:hover        {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 10px 0 0 !important;
}
.header .nav-brand img          {
    background: #fff;
    padding: 4px 11px;
    border-radius: 5px;
    height: 46px;
    max-height: 46px;
    width: auto;
    min-width: 120px;
    object-fit: contain;
}

/* Right-side Sign In / Go to Panel button */
.header .nav-menu.nav-menu-social .btn-primary {
    background: #fff !important;
    color: var(--tp, #04107C) !important;
    border-color: #fff !important;
    border-radius: 5px !important;
    height: 46px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
.header .nav-menu.nav-menu-social .btn-primary:hover {
    background: #fbbf24 !important;
    color: var(--tp, #04107C) !important;
    border-color: #fbbf24 !important;
}
.header .nav-menu.nav-menu-social .btn-primary span,
.header .nav-menu.nav-menu-social .btn-primary i { color: var(--tp, #04107C) !important; }

/* Dropdown menus keep light background with dark text for readability */
.header .nav-dropdown,
.header .nav-submenu { background: #fff !important; }
.header .nav-dropdown a,
.header .nav-submenu a { color: #1e293b !important; }
.header .nav-dropdown a:hover,
.header .nav-submenu a:hover { background: #eef0fa !important; color: var(--tp, #04107C) !important; }
/* Hide the spacer — use body padding-top instead so layout is
   correct before JS runs and doesn't depend on legacy-plugin timing. */
.header-spacer { display: none !important; }

body.td-public-layout { padding-top: 82px; }

/* B2C font-family match admin — exclude icon tags */
body.td-public-layout,
body.td-public-layout *:not(i):not([class*="fa-"]):not([class*="feather"]):not([class*="bi-"]) {
    font-family: 'Open Sans', sans-serif !important;
}
/* B2C body base font-size + weight — admin uses 0.875em (14px), weight 400 */
body.td-public-layout { font-size: 0.875em !important; font-weight: 400 !important; }

/* B2C flight card text — match admin's smaller+lighter rendering */
body.td-public-layout .fl2-iata    { font-size: 17px !important; font-weight: 700 !important; color: #2c3345 !important; }
body.td-public-layout .fl2-city    { font-size: 10px !important; color: #8995a5 !important; }
body.td-public-layout .fl2-time    { font-size: 14px !important; font-weight: 600 !important; color: #353c4e !important; }
body.td-public-layout .fl2-date    { font-size: 11px !important; color: #8995a5 !important; }
body.td-public-layout .fl2-price   { font-size: 19px !important; font-weight: 800 !important; color: var(--tp, #04107C) !important; }
body.td-public-layout .fl2-carrier-name,
body.td-public-layout .fl2-carrier { font-size: 12px !important; font-weight: 600 !important; color: #475569 !important; }

@media (max-width: 991px) {
    .header,
    .header.header-light,
    .header.header-light.theme { padding: 0 !important; }
    .header .nav-header        {
        padding: 0 14px;
        min-height: 75px;
        display: flex;
        align-items: center;
        justify-content: flex-start;   /* logo sits next to hamburger on the left */
        gap: 12px;
        position: relative;
        float: none !important;
        width: 100%;
    }
    .header .nav-logo > img,
    .header .nav-brand img     {
        height: 59px !important; max-height: 59px !important;
        min-width: 140px !important;
        padding: 5px 12px !important;
        margin: 0 !important;
    }
    /* Override theme's flex:1 + margin-left:35px — logo sits next to hamburger */
    .header .navigation-portrait .nav-brand,
    .header .nav-brand,
    .header .nav-brand.mob-show{
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    /* Hamburger first (left), logo next to it, user icon on right */
    .header .nav-toggle        {
        position: relative !important;
        left: 0 !important;
        top: auto !important;
        margin: 0 !important;
        flex: 0 0 30px;
        order: 1;
    }
    .header .navigation-portrait .nav-brand,
    .header .nav-brand.mob-show { order: 2; }
    /* User icon pushed to the right via flex auto-margin */
    .header .mobile_nav        {
        position: static !important;
        margin: 0 0 0 auto !important;
        transform: none !important;
        order: 3;
    }
    body.td-public-layout      { padding-top: 75px; }
}
@media (max-width: 480px) {
    .header .nav-header        { min-height: 69px; }
    .header .nav-logo > img,
    .header .nav-brand img     {
        height: 51px !important; max-height: 51px !important;
        min-width: 120px !important;
        padding: 4px 10px !important;
    }
    body.td-public-layout      { padding-top: 69px; }
}
