/* ============================================================
   Travelobien — Homepage Modern Redesign
   Loaded ONLY on index.php (after all other stylesheets)
   All shared classes (.headerMain1, logo-slider, popups, etc.)
   are restyled here scoped to .tb-home so other pages are
   completely unaffected.
   ============================================================ */

:root {
    --tb-navy-900: #081a33;
    --tb-navy-800: #0b1f3a;
    --tb-navy-700: #132e55;
    --tb-sky: #38bdf8;
    --tb-purple: #7d68eb;
    --tb-purple-deep: #5b48d6;
    --tb-amber: #ffb347;
    --tb-orange: #ff8c42;
    --tb-ink: #1e293b;
    --tb-muted: #64748b;
    --tb-soft: #f4f7fb;
    --tb-line: #e2e8f0;
    --tb-r-lg: 20px;
    --tb-r-md: 14px;
    --tb-r-sm: 10px;
    --tb-sh-lg: 0 24px 60px rgba(8, 26, 51, .22);
    --tb-sh-md: 0 10px 30px rgba(8, 26, 51, .10);
    --tb-sh-sm: 0 4px 14px rgba(8, 26, 51, .08);
}

.tb-home {
    font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #fff;
    color: var(--tb-ink);
}

.tb-home a { text-decoration: none; }

/* ------------------------------------------------------------
   Header (homepage only)
   ------------------------------------------------------------ */
.tb-home .headerMain1 {
    background: linear-gradient(135deg, var(--tb-navy-900) 0%, var(--tb-navy-700) 100%);
}

.tb-home .header_color {
    background: rgba(8, 26, 51, .92) !important;
    box-shadow: 0 6px 24px rgba(8, 26, 51, .25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tb-home .menusec li a { font-size: 13px; letter-spacing: .6px; transition: color .2s; }

.tb-home .menusec li a:hover { color: var(--tb-amber); }

.tb-home .menuBar .glyphicon-earphone,
.tb-home .toll-free { color: var(--tb-amber); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.tb-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 120px;
    background:
        linear-gradient(180deg, rgba(8, 26, 51, .62) 0%, rgba(11, 31, 58, .30) 45%, rgba(8, 26, 51, .96) 100%),
        url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1920&q=80') center / cover no-repeat,
        linear-gradient(135deg, var(--tb-navy-900) 0%, #1a4a8a 100%);
}

.tb-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
    pointer-events: none;
}

.tb-hero-orb.one {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, var(--tb-purple) 0%, transparent 70%);
}

.tb-hero-orb.two {
    width: 340px;
    height: 340px;
    bottom: -110px;
    left: -70px;
    background: radial-gradient(circle, var(--tb-sky) 0%, transparent 70%);
}

.tb-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
}

.tb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 22px;
}

.tb-hero-badge i { color: var(--tb-amber); }

.tb-hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    letter-spacing: -1px;
    margin: 0 0 14px;
}

.tb-hero h1 .tb-grad {
    background: linear-gradient(90deg, var(--tb-amber), #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tb-hero-sub {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    font-weight: 500;
    max-width: 560px;
    margin: 0 auto 34px;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Search widget
   ------------------------------------------------------------ */
.tb-search-card {
    position: relative;
    z-index: 3;
    background: #fff;
    border-radius: var(--tb-r-lg);
    box-shadow: var(--tb-sh-lg);
    padding: 26px 28px 28px;
    text-align: left;
    animation: tb-rise .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes tb-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Trip type segmented control */
.tb-trip-tabs {
    display: inline-flex;
    background: var(--tb-soft);
    border: 1px solid var(--tb-line);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 22px;
}

.tb-trip-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tb-trip-tabs label {
    padding: 9px 24px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--tb-muted);
    cursor: pointer;
    margin: 0;
    transition: all .25s;
}

.tb-trip-tabs label:hover { color: var(--tb-purple-deep); }

.tb-trip-tabs input:checked + label {
    background: linear-gradient(135deg, var(--tb-purple), var(--tb-purple-deep));
    color: #fff;
    box-shadow: 0 6px 16px rgba(91, 72, 214, .35);
}

/* Field grid */
.tb-field-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.tb-field { position: relative; min-width: 0; }

.tb-field > label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tb-muted);
    margin-bottom: 6px;
}

.tb-input-wrap { position: relative; }

.tb-field .form-control {
    height: 50px;
    border: 1.5px solid var(--tb-line);
    border-radius: 12px;
    padding-left: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tb-navy-800);
    background: #fff;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
    text-transform: none;
}

.tb-field select.form-control {
    padding-left: 40px;
    padding-right: 30px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.tb-field .form-control:focus {
    border-color: var(--tb-purple);
    box-shadow: 0 0 0 4px rgba(125, 104, 235, .14);
}

.tb-field .tb-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

/* clear (remove) icon */
.tb-field .location-icon2 {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    cursor: pointer;
    z-index: 2;
    font-size: 12px;
}

.tb-field .location-icon2:hover { color: var(--tb-muted); }

/* Swap button */
.tb-swap-col {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
}

.tb-swap-btn {
    width: 44px;
    height: 44px;
    margin-bottom: 3px;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, var(--tb-purple), var(--tb-purple-deep));
    box-shadow: 0 8px 18px rgba(91, 72, 214, .35);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    z-index: 2;
}

.tb-swap-btn:hover {
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 10px 22px rgba(91, 72, 214, .45);
}

/* Second row: dates */
.tb-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* Third row: travellers / cabin / contact */
.tb-pax-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

/* Autocomplete dropdowns */
#show-list,
#show-list-to {
    position: absolute !important;
    left: 0;
    right: 0;
    top: calc(100% + 6px) !important;
    margin: 0 !important;
    width: 100% !important;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 12px;
    box-shadow: var(--tb-sh-md);
    z-index: 9999 !important;
    max-height: 260px;
    overflow: auto;
    padding: 6px 0 !important;
}

#show-list a.list-group-item,
#show-list-to li.list-group-item {
    display: block;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--tb-ink);
    cursor: pointer;
    background: transparent;
}

#show-list a.list-group-item:hover,
#show-list-to li.list-group-item:hover {
    background: var(--tb-soft);
}

#show-list a strong,
#show-list-to li strong { color: var(--tb-navy-800); }

#show-list span,
#show-list-to span { position: static !important; left: auto; top: auto; }

/* Search button */
.tb-search-btn {
    display: block;
    width: 40%;
    height: 56px;
    margin: 0 auto;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff !important;
    background: linear-gradient(135deg, var(--tb-amber) 0%, var(--tb-orange) 100%);
    box-shadow: 0 14px 30px rgba(255, 140, 66, .4);
    transition: transform .25s, box-shadow .25s;
}

.tb-search-btn:hover,
.tb-search-btn:focus {
    background: linear-gradient(135deg, var(--tb-amber) 0%, var(--tb-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 140, 66, .5);
    color: #fff !important;
}

.tb-search-btn i { margin-right: 8px; }

.tb-search-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--tb-muted);
    text-align: center;
}

.tb-search-note i { color: var(--tb-amber); margin-right: 5px; }

/* Hero trust chips + call strip */
.tb-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 26px;
    margin-top: 26px;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 600;
}

.tb-hero-chips span { display: inline-flex; align-items: center; gap: 7px; }

.tb-hero-chips i { color: var(--tb-amber); }

.tb-hero-call {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .25s, border-color .25s;
}

.tb-hero-call:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.tb-hero-call i { color: var(--tb-amber); font-size: 18px; }

/* ------------------------------------------------------------
   Shared section styles
   ------------------------------------------------------------ */
.tb-section {
    padding: 76px 0;
}

.tb-section.alt { background: var(--tb-soft); }

.tb-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.tb-section-head h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--tb-navy-800);
    letter-spacing: -.6px;
    margin: 0 0 10px;
    position: relative;
}

.tb-section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--tb-purple), var(--tb-sky));
    margin: 14px auto 0;
}

.tb-section-head p {
    color: var(--tb-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 14px 0 0;
}

/* ------------------------------------------------------------
   Why Choose Us
   ------------------------------------------------------------ */
.tb-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tb-trust-card {
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-r-md);
    padding: 32px 22px 28px;
    text-align: center;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.tb-trust-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tb-sh-md);
    border-color: rgba(125, 104, 235, .35);
}

.tb-trust-ico {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 25px;
    color: #fff;
    background: linear-gradient(135deg, var(--tb-purple), var(--tb-purple-deep));
    box-shadow: 0 12px 24px rgba(125, 104, 235, .32);
}

.tb-trust-card:nth-child(2) .tb-trust-ico {
    background: linear-gradient(135deg, var(--tb-amber), var(--tb-orange));
    box-shadow: 0 12px 24px rgba(255, 140, 66, .3);
}

.tb-trust-card:nth-child(3) .tb-trust-ico {
    background: linear-gradient(135deg, var(--tb-sky), #0ea5e9);
    box-shadow: 0 12px 24px rgba(14, 165, 233, .3);
}

.tb-trust-card:nth-child(4) .tb-trust-ico {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 12px 24px rgba(16, 185, 129, .3);
}

.tb-trust-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--tb-navy-800);
    margin: 0 0 10px;
}

.tb-trust-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--tb-muted);
    margin: 0;
}

/* ------------------------------------------------------------
   Top Airline Deals (marquee)
   ------------------------------------------------------------ */
.tb-airlines .container { margin-bottom: 40px; }

/* restyle legacy marquee cards (structure kept for animation) */
.tb-airlines logo-slider {
    display: flex;
    overflow: hidden;
    padding: 20px 0 30px;
}

.tb-airlines .sliders {
    display: flex;
    gap: 22px;
    justify-content: flex-start;
    animation: marquee 30s linear infinite;
    padding-right: 22px;
}

.tb-airlines .sliders .aircont {
    width: 300px;
    height: auto;
    min-height: 205px;
    background: #fff !important;
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-r-md);
    padding: 24px 22px;
    box-shadow: var(--tb-sh-sm);
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
    flex-shrink: 0;
}

.tb-airlines .sliders .aircont:hover {
    transform: translateY(-6px);
    box-shadow: var(--tb-sh-md);
}

.tb-airlines .sliders .airhdgbx {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tb-airlines .air-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--tb-navy-800), var(--tb-purple));
    margin-bottom: 16px;
}

.tb-airlines .sliders .airhdgbx h5 {
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
    color: var(--tb-navy-800);
    margin: 0 0 8px;
}

.tb-airlines .sliders .airhdgbx p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--tb-muted);
    flex: 1;
    margin: 0 0 14px;
}

.tb-airlines .air-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--tb-purple-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}

.tb-airlines .air-link:hover { gap: 10px; }

/* ------------------------------------------------------------
   Flights Around the World — destinations
   ------------------------------------------------------------ */
.tb-dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tb-dest-card {
    position: relative;
    display: block;
    height: 280px;
    border-radius: var(--tb-r-md);
    overflow: hidden;
    box-shadow: var(--tb-sh-sm);
}

.tb-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.tb-dest-card:hover img { transform: scale(1.08); }

.tb-dest-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 26, 51, 0) 40%, rgba(8, 26, 51, .85) 100%);
}

.tb-dest-info {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
}

.tb-dest-info h3 {
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -.3px;
}

.tb-dest-info p {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tb-dest-info p i { color: var(--tb-amber); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 991px) {
    .tb-hero { padding: 90px 0 100px; }

    .tb-hero h1 { font-size: 36px; }

    .tb-pax-grid { grid-template-columns: repeat(3, 1fr); }

    .tb-trust-grid { grid-template-columns: repeat(2, 1fr); }

    .tb-dest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .tb-hero { padding: 60px 0 80px; }

    .tb-hero h1 { font-size: 29px; }

    .tb-hero-sub { font-size: 14.5px; }

    .tb-search-card { padding: 20px 16px 22px; border-radius: 16px; }

    .tb-field-grid { grid-template-columns: 1fr; }

    .tb-swap-col {
        position: absolute;
        right: 10px;
        top: 58px;
        z-index: 4;
    }

    .tb-swap-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
        border: 3px solid #fff;
        box-shadow: 0 6px 14px rgba(91, 72, 214, .4);
    }

    .tb-swap-btn:hover { transform: rotate(180deg); }

    .tb-dates-grid { grid-template-columns: 1fr; }

    .tb-pax-grid { grid-template-columns: 1fr 1fr; }

    .tb-trip-tabs label { padding: 8px 16px; font-size: 11px; }

    .tb-search-btn { width: 100%; }

    .tb-section { padding: 56px 0; }

    .tb-trust-grid { grid-template-columns: 1fr; }

    .tb-dest-grid { grid-template-columns: 1fr; }

    .tb-section-head h2 { font-size: 26px; }

    .tb-airlines .sliders .aircont { width: 260px; }
}

@media (max-width: 575px) {
    .tb-hero h1 { font-size: 25px; }

    .tb-pax-grid { grid-template-columns: 1fr; }

    .tb-swap-col { top: 54px; }
}

/* ------------------------------------------------------------
   Page Preloader (10s)
   ------------------------------------------------------------ */
.tb-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #081a33 0%, #132e55 55%, #1a4a8a 100%);
    transition: opacity .6s ease, visibility .6s ease;
}

.tb-preloader-done {
    opacity: 0;
    visibility: hidden;
}

.tb-preloader-box {
    text-align: center;
    width: 100%;
    max-width: 340px;
    padding: 0 24px;
}

.tb-preloader-logo img {
    height: 46px;
    margin: 0 auto 26px;
    display: block;
    opacity: .95;
}

.tb-preloader-plane {
    width: 64px;
    height: 64px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, #7d68eb, #5b48d6);
    box-shadow: 0 14px 34px rgba(125, 104, 235, .5);
    animation: tb-plane-hop 1.2s ease-in-out infinite;
}

@keyframes tb-plane-hop {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%      { transform: translateY(-10px) rotate(8deg); }
}

.tb-preloader-track {
    height: 6px;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.tb-preloader-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffb347, #ff8c42);
    transition: width .1s linear;
}

.tb-preloader-text {
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .4px;
    margin: 0 0 6px;
}

.tb-preloader-count {
    color: #ffb347;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.tb-preloader-count span { font-size: 16px; }
