/**
 * Trip Easy 360 — Horizon palette
 * Sky blue (trust / travel) · Soft amber (CTAs) · Light, airy surfaces
 */

:root {
    /* Sky — brand & links */
    --te-brand-50: #f0f9ff;
    --te-brand-100: #e0f2fe;
    --te-brand-400: #38bdf8;
    --te-brand-500: #0ea5e9;
    --te-brand-600: #0284c7;
    --te-brand-700: #0369a1;
    --te-brand-900: #0c4a6e;

    /* Amber — action buttons (replaces harsh #FF6600) */
    --te-accent-400: #fbbf24;
    --te-accent-500: #f59e0b;
    --te-accent-600: #d97706;
    --te-accent-700: #b45309;

    /* Legacy aliases (used across blades) */
    --te-primary-400: var(--te-accent-400);
    --te-primary-500: var(--te-accent-500);
    --te-primary-600: var(--te-accent-600);
    --te-primary-700: var(--te-accent-700);
    --te-secondary-600: var(--te-brand-500);
    --te-secondary-700: var(--te-brand-600);
    --te-secondary-800: var(--te-brand-900);

    /* Surfaces */
    --te-bg: #f8fafc;
    --te-bg-warm: #f0f9ff;
    --te-surface: #ffffff;
    --te-surface-elevated: #ffffff;

    /* Text */
    --te-text: #0f172a;
    --te-text-secondary: #475569;
    --te-text-muted: #64748b;
    --te-text-inverse: #ffffff;

    /* Borders & states */
    --te-border: #e2e8f0;
    --te-border-strong: #cbd5e1;
    --te-focus-ring: rgba(14, 165, 233, 0.28);
    --te-success: #059669;
    --te-success-bg: #ecfdf5;
    --te-danger: #dc2626;

    /* Gradients */
    --te-gradient-primary: linear-gradient(135deg, #fde68a 0%, #f59e0b 48%, #d97706 100%);
    --te-gradient-primary-hover: linear-gradient(135deg, #fef08a 0%, #fbbf24 48%, #f59e0b 100%);
    --te-gradient-hero: linear-gradient(
        180deg,
        rgba(12, 74, 110, 0.12) 0%,
        rgba(15, 23, 42, 0.42) 50%,
        rgba(15, 23, 42, 0.58) 100%
    );
    --te-gradient-card: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);

    /* Radius */
    --te-radius-sm: 10px;
    --te-radius-md: 14px;
    --te-radius-lg: 22px;
    --te-radius-pill: 999px;

    /* Shadow (cool tint, no orange glow) */
    --te-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --te-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
    --te-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
    --te-shadow-glow: 0 8px 24px rgba(245, 158, 11, 0.22);

    /* Typography */
    --te-font: "DM Sans", system-ui, -apple-system, sans-serif;
    --te-text-xs: 0.8125rem;
    --te-text-sm: 0.875rem;
    --te-text-base: 1rem;
    --te-text-lg: 1.125rem;
    --te-text-xl: 1.25rem;
    --te-text-2xl: 1.5rem;
    --te-text-3xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --te-text-hero: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);

    --te-nav-height: 80px;

  /* Logo display height (asset cropped tight to the mark — see tripeasy360.png) */
    --te-logo-h-nav: 52px;
    --te-logo-h-hero: 50px;
    --te-logo-h-footer: 56px;
    --te-logo-h-menu: 40px;
    --te-logo-h-auth: 60px;
    --te-logo-w-nav: clamp(150px, 16vw, 188px);
    --te-logo-w-hero: clamp(168px, 18vw, 210px);
}

/* —— Base —— */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--te-font);
    background-color: var(--te-bg);
    color: var(--te-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--te-text);
    font-weight: 700;
    letter-spacing: -0.025em;
}

p.text,
.text {
    color: var(--te-text-secondary);
}

a {
    color: var(--te-brand-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--te-brand-700);
}

::selection {
    background: rgba(14, 165, 233, 0.22);
    color: var(--te-text);
}

/* —— Buttons —— */
.te-btn-primary,
.custom-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.35rem;
    font-weight: 600;
    font-size: var(--te-text-base);
    color: #1c1917 !important;
    background: var(--te-gradient-primary);
    border: none;
    border-radius: var(--te-radius-pill);
    box-shadow: var(--te-shadow-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.te-btn-primary:hover,
.custom-submit-btn:hover {
    background: var(--te-gradient-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
    color: #1c1917 !important;
}

.te-btn-primary:active,
.custom-submit-btn:active {
    transform: translateY(0);
}

.te-btn-primary-lg {
    min-height: 58px;
    min-width: 200px;
    font-size: var(--te-text-lg);
}

.te-btn-primary-md {
    min-height: 42px;
    min-width: 160px;
}

.te-btn-outline {
    color: var(--te-text-secondary);
    font-weight: 600;
    border: 1px solid var(--te-border-strong);
    border-radius: var(--te-radius-pill);
    padding: 0.5rem 1.25rem;
    background: var(--te-surface);
}

.te-btn-outline:hover {
    border-color: var(--te-brand-400);
    color: var(--te-brand-700);
    background: var(--te-brand-50);
}

.te-btn-outline-selected,
.btn-outline-selected {
    color: var(--te-brand-700) !important;
    font-weight: 700;
    border: 2px solid var(--te-brand-500) !important;
    border-radius: var(--te-radius-pill);
    background: var(--te-brand-50);
}

.te-btn-ghost-light {
    color: var(--te-text-inverse);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--te-radius-pill);
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.14);
    padding: 0.65rem 1.5rem;
}

.te-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--te-text-inverse);
}

/* —— Navigation —— */
.te-nav-hero.navbar {
    align-items: center;
}

.te-nav-hero {
    position: absolute;
    width: 100%;
    z-index: 1030;
    padding: 1rem clamp(0.35rem, 2vw, 1.25rem) 0.65rem;
    overflow: visible;
}

.te-nav-hero .navbar-collapse,
.te-nav-hero .navbar-nav,
.te-nav-hero .nav-item.dropdown {
    overflow: visible;
}

.te-nav-hero .dropdown-menu,
.te-nav-hero .te-dropdown-menu {
    z-index: 1090;
}

.te-nav-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-height: 3.75rem;
    margin: 0 clamp(1rem, 3vw, 2.5rem);
    padding: 0.8rem 1.35rem;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--te-radius-lg);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
    overflow: visible;
}

@media (min-width: 1400px) {
    .te-nav-hero__inner {
        border-radius: var(--te-radius-pill);
        padding: 0.85rem 1.5rem;
    }
}

.te-nav-hero .navbar-brand {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* —— Site logo (all pages) —— */
.navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
}

img[src*="tripeasy360"] {
    width: var(--te-logo-w-nav);
    height: var(--te-logo-h-nav);
    max-width: min(172px, 58vw);
    object-fit: contain;
    object-position: left center;
    display: block;
}

.te-nav-hero img[src*="tripeasy360"] {
    width: auto;
    max-width: min(var(--te-logo-w-hero), 62vw);
    height: auto;
    max-height: var(--te-logo-h-hero);
}

.te-nav-solid .navbar-brand img[src*="tripeasy360"],
.te-nav-solid img[src*="tripeasy360"] {
    width: var(--te-logo-w-nav);
    height: var(--te-logo-h-nav);
}

.te-footer img[src*="tripeasy360"] {
    width: min(168px, 75vw);
    height: var(--te-logo-h-footer);
    margin-bottom: 0.35rem;
}

.dropdown-menu img[src*="tripeasy360"] {
    height: var(--te-logo-h-menu);
    max-width: 120px;
    margin-bottom: 0.25rem;
}

.te-auth-card img[src*="tripeasy360"],
.te-auth-logo img[src*="tripeasy360"] {
    width: min(180px, 70vw);
    height: var(--te-logo-h-auth);
    margin-left: auto;
    margin-right: auto;
}

.te-nav-hero .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--te-radius-pill);
    white-space: nowrap;
}

.te-nav-hero .navbar-nav .nav-link:hover,
.te-nav-hero .navbar-nav .nav-link:focus,
.te-nav-hero .navbar-nav .nav-link.show {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.te-nav-hero__actions {
    display: flex;
    align-items: center;
    align-self: center;
    margin-left: auto;
    gap: 0.5rem;
}

.te-nav-hero__actions .nav-link {
    color: #fff !important;
    padding: 0.35rem !important;
}

.te-nav-hero__actions .te-nav-hero__quick {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.35rem 0.45rem !important;
    white-space: nowrap;
}

.te-nav-hero__actions .te-nav-hero__quick:hover {
    color: #fff !important;
}

.te-nav-hero__saved {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.45rem !important;
    line-height: 1;
    border-radius: var(--te-radius-pill);
    color: rgba(255, 255, 255, 0.92) !important;
}

.te-nav-hero__saved .material-symbols-outlined {
    font-size: 1.4rem;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.te-nav-hero__saved:hover,
.te-nav-hero__saved:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.te-btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.48rem 1rem;
    min-width: unset !important;
    min-height: 2.25rem !important;
    line-height: 1.2;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    color: #fff !important;
    background: var(--te-brand-600);
    border: none;
    border-radius: var(--te-radius-pill);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: background 0.2s ease;
    align-self: center;
    flex-shrink: 0;
}

.te-btn-nav-cta:hover {
    background: var(--te-brand-500);
    color: #fff !important;
}

.te-nav-hero .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
    padding: 0.35rem 0.55rem;
}

.te-nav-hero .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

@media (min-width: 992px) {
    .te-nav-hero__inner {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .te-nav-hero__inner > .navbar-collapse {
        flex: 1 1 auto;
        min-width: 0;
    }

    .te-nav-hero__inner > .navbar-brand,
    .te-nav-hero__inner > .navbar-toggler,
    .te-nav-hero__inner > .navbar-collapse {
        align-self: center;
    }

    .te-nav-hero .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-wrap: nowrap;
        align-items: center !important;
        justify-content: space-between;
        gap: 0.5rem;
        background: transparent !important;
        backdrop-filter: none;
    }

    .te-nav-hero__links {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
        min-width: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .te-nav-hero__links .nav-item {
        margin-right: 0 !important;
    }

    .te-nav-hero__actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .te-nav-hero .navbar-nav .nav-link {
        font-size: 0.84rem;
        padding: 0.38rem 0.5rem !important;
    }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
    .te-nav-hero .navbar-nav .nav-link {
        font-size: 0.88rem;
        padding: 0.4rem 0.55rem !important;
    }

    .te-nav-hero__actions .te-nav-hero__quick {
        font-size: 0.8rem;
        padding: 0.28rem 0.35rem !important;
    }
}

/* Quick links only when the bar has room (Flights/Hotels remain in Others below this width) */
@media (max-width: 1499.98px) {
    .te-nav-hero__quick {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .te-nav-hero__inner {
        border-radius: var(--te-radius-lg);
    }

    .te-nav-hero .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        background: rgba(15, 23, 42, 0.94) !important;
        border-radius: var(--te-radius-md);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .te-nav-hero__actions {
        margin-left: 0;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
        justify-content: flex-start;
    }
}

.te-nav-solid {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--te-shadow-sm);
    min-height: var(--te-nav-height);
    border-bottom: 1px solid var(--te-border);
}

.te-nav-solid .nav-link {
    color: var(--te-text-secondary);
    font-weight: 600;
}

.te-nav-solid__inner {
    padding-left: clamp(0.75rem, 2vw, 1.5rem);
    padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

.te-nav-solid__actions {
    gap: 0.35rem;
    margin-left: auto;
}

.te-nav-solid__quick {
    font-size: 0.875rem;
    padding: 0.35rem 0.45rem !important;
    white-space: nowrap;
}

.te-nav-solid__saved {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.45rem !important;
    color: var(--te-text-secondary) !important;
    border-radius: var(--te-radius-pill);
}

.te-nav-solid__saved .material-symbols-outlined {
    font-size: 1.35rem;
}

.te-nav-solid__saved:hover {
    background: var(--te-brand-50);
    color: var(--te-brand-700) !important;
}

.te-nav-locale__menu {
    z-index: 1100;
}

.te-nav-locale__menu label {
    cursor: pointer;
}

.te-nav-locale__menu input[type="radio"] {
    flex-shrink: 0;
}

@media (max-width: 1499.98px) {
    .te-nav-solid__quick {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .te-nav-solid .navbar-collapse {
        padding: 0.75rem 0 0.25rem;
    }

    .te-nav-solid__actions {
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--te-border);
    }
}

.te-dropdown-menu {
    border: 1px solid var(--te-border);
    border-radius: var(--te-radius-md);
    box-shadow: var(--te-shadow-md);
    padding: 0.5rem;
}

.te-dropdown-menu .dropdown-item {
    border-radius: var(--te-radius-sm);
    font-weight: 600;
    color: var(--te-text);
}

.te-dropdown-menu .dropdown-item:hover {
    background: var(--te-brand-50);
    color: var(--te-brand-700);
}

/* —— Hero —— */
.te-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.te-hero > .te-nav-hero {
    position: relative;
    top: auto;
    flex-shrink: 0;
    z-index: 100;
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.5rem;
}

.te-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--te-gradient-hero);
    pointer-events: none;
}

.te-hero > .te-hero__content {
    position: relative;
    z-index: 1;
}

.te-hero-title {
    font-size: var(--te-text-hero);
    font-weight: 700;
    color: var(--te-text-inverse);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.te-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--te-text-lg);
}

/* —— Cards & sections —— */
.te-card {
    background: var(--te-surface);
    border: 1px solid var(--te-border);
    border-radius: var(--te-radius-lg);
    box-shadow: var(--te-shadow-md);
    padding: 1.5rem;
}

.te-section-title {
    font-size: var(--te-text-2xl);
    font-weight: 700;
    color: var(--te-text);
    margin-bottom: 0.35rem;
}

.te-section-subtitle {
    color: var(--te-text-muted);
    font-size: var(--te-text-lg);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.te-trending__label {
    font-size: var(--te-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-text-muted);
    margin-bottom: 0.75rem;
}

.te-trending-city__media {
    height: 120px;
    border-radius: var(--te-radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.te-trending-city__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.te-trending-city:hover .te-trending-city__media img {
    transform: scale(1.04);
}

.te-trending-city__name {
    display: block;
    font-weight: 700;
    font-size: var(--te-text-base);
    color: var(--te-text);
}

.te-trending-city__price {
    display: block;
    font-size: var(--te-text-sm);
    color: var(--te-text-muted);
    margin-top: 0.15rem;
}

.te-link-arrow {
    font-weight: 600;
    color: var(--te-brand-600);
    text-decoration: none;
}

.te-link-arrow:hover {
    text-decoration: underline;
}

.te-tagline {
    color: var(--te-brand-600);
    font-weight: 600;
    font-size: var(--te-text-lg);
}

.te-price {
    color: var(--te-text);
    font-weight: 700;
}

.te-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: var(--te-text-xs);
    font-weight: 600;
    border-radius: var(--te-radius-pill);
    background: var(--te-brand-50);
    color: var(--te-brand-700);
    border: 1px solid var(--te-brand-100);
}

/* —— Forms —— */
.te-form-control,
.form-control {
    border-radius: var(--te-radius-sm);
    border: 1px solid var(--te-border-strong);
    padding: 0.65rem 0.85rem;
}

.te-form-control:focus,
.form-control:focus {
    border-color: var(--te-brand-500);
    box-shadow: 0 0 0 0.2rem var(--te-focus-ring);
}

.alert-success {
    background: var(--te-success-bg);
    border-color: #a7f3d0;
    color: #065f46;
    border-radius: var(--te-radius-sm);
}

/* —— Carousel controls —— */
.te-carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--te-border-strong);
    background: var(--te-surface);
    box-shadow: var(--te-shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.te-carousel-btn:hover {
    border-color: var(--te-brand-400);
    box-shadow: var(--te-shadow-md);
}

/* —— Footer (light, not heavy navy) —— */
.te-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--te-text-secondary);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--te-border);
}

.te-footer hr {
    border-color: var(--te-border);
    opacity: 1;
}

.te-footer h5 {
    color: var(--te-text);
    font-size: var(--te-text-base);
    font-weight: 700;
}

.te-footer a {
    color: var(--te-brand-700);
    font-size: var(--te-text-sm);
    line-height: 2;
    font-weight: 500;
}

.te-footer a:hover {
    color: var(--te-accent-600);
}

.te-footer p {
    color: var(--te-text-muted);
}

/* —— Modal —— */
#popupModal .modal-content {
    border: none;
    border-radius: var(--te-radius-lg);
    overflow: hidden;
    box-shadow: var(--te-shadow-lg);
}

#popupModal .modal-dialog {
    max-width: 700px;
}

#popupModal h5 {
    color: var(--te-text);
}

/* —— Package —— */
.te-page-header {
    margin-top: calc(var(--te-nav-height) + 1.5rem);
}

.te-itinerary-day {
    border-left: 3px solid var(--te-brand-500);
    background: var(--te-brand-50);
    border-radius: 0 var(--te-radius-md) var(--te-radius-md) 0;
}

.container-fluid.position-relative > .te-nav-hero {
    z-index: 1050;
}

.te-handbook-hero {
    position: relative;
    z-index: 1;
    min-height: 0;
    height: clamp(300px, 42vh, 460px);
    max-height: 460px;
    display: block;
    background-size: cover;
    background-position: center center;
    image-rendering: auto;
}

.te-handbook-hero::before {
    background: linear-gradient(
        180deg,
        rgba(12, 74, 110, 0.2) 0%,
        rgba(15, 23, 42, 0.55) 100%
    );
}

.te-handbook-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: clamp(4.5rem, 12vw, 6rem) 1rem 1.5rem;
    position: relative;
    z-index: 2;
}

.te-handbook-hero__content .te-hero-title {
    font-size: clamp(1.35rem, 2.5vw, 2.25rem);
}

.te-handbook-hero__content .te-handbook-hero__tagline {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* —— Legacy compatibility —— */
.nav-link:focus,
.nav-link:hover,
.toggle-button {
    color: var(--te-brand-600);
}

.btn-custom {
    background: var(--te-gradient-primary);
    color: #1c1917;
    border: none;
    border-radius: var(--te-radius-pill);
    padding: 0.65rem 1.25rem;
    font-weight: 600;
}

.btn-custom:hover {
    background: var(--te-gradient-primary-hover);
}

.disabled-link {
    opacity: 0.5;
    pointer-events: none;
}

.text-orange,
.btn-link.text-orange {
    color: var(--te-brand-600) !important;
}

/* Soften old inline nav hovers in index-style */
.nav-link.selected {
    color: var(--te-brand-600);
}


/* Legacy inline orange CTAs still in Blade templates */
a.btn[style*="FF6600"],
a.btn[style*="FF822E"],
a.btn[style*="linear-gradient(45deg"],
button.btn[style*="FF6600"] {
    background: var(--te-gradient-primary) !important;
    color: #1c1917 !important;
    border: none !important;
    border-radius: var(--te-radius-pill) !important;
    box-shadow: var(--te-shadow-glow) !important;
    font-weight: 600 !important;
}

/* —— Hero search & engagement —— */
.te-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    width: 100%;
    padding: 0.75rem clamp(0.75rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
}

.te-hero__welcome {
    margin: 0.35rem 0 0.5rem;
    flex-shrink: 0;
    max-width: min(920px, 92vw);
}

.te-global-package-search__label {
    color: var(--te-text);
}

.te-global-package-search__field {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.te-global-package-search__field .form-control {
    flex: 1 1 8rem;
    min-width: 0;
    width: auto;
    max-width: 100%;
}

.te-global-package-search__field .btn {
    flex: 0 0 auto;
}

.te-package-search-input {
    padding: 0.5rem 0.85rem;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 2.75rem;
    height: auto;
}

@media (min-width: 768px) {
    .te-package-search-input {
        padding: 0.65rem 1rem;
        font-size: 1.0625rem;
        min-height: 3rem;
    }
}

.te-package-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 20;
    background: #fff;
    border: 1px solid var(--te-border);
    border-radius: var(--te-radius-md);
    box-shadow: var(--te-shadow-lg);
    max-height: 16rem;
    overflow-y: auto;
    text-align: left;
}

.te-package-suggest__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--te-border);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.te-package-suggest__item:last-child {
    border-bottom: none;
}

.te-package-suggest__item:hover,
.te-package-suggest__item.is-active {
    background: var(--te-brand-50);
}

.te-package-suggest__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--te-text);
}

.te-package-suggest__meta {
    font-size: var(--te-text-sm);
    color: var(--te-text-muted);
}

/* Tom Select — searchable dropdowns site-wide */
.te-hero-search .ts-wrapper,
.te-flight-results-summary .ts-wrapper,
.te-global-package-search ~ * .ts-wrapper,
form .ts-wrapper {
    width: 100%;
}

.ts-wrapper.form-select,
.ts-wrapper.single.full {
    min-height: unset;
}

.ts-wrapper {
    text-align: left;
}

.ts-wrapper .ts-control {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    border-radius: var(--te-radius-md, 0.375rem);
    border: 1px solid var(--te-border);
    font-size: 1rem;
    background-color: #fff;
    text-align: left;
    justify-content: flex-start;
}

.ts-wrapper .ts-control .item,
.ts-wrapper .ts-control input {
    text-align: left;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control > div {
    justify-content: flex-start;
}

.ts-wrapper.dropdown-active .ts-control,
.ts-wrapper.focus .ts-control {
    border-color: var(--te-brand-500);
    box-shadow: 0 0 0 0.2rem var(--te-focus-ring);
}

.ts-dropdown {
    border-radius: var(--te-radius-md);
    border: 1px solid var(--te-border);
    box-shadow: var(--te-shadow-md);
    z-index: 1080;
}

.ts-dropdown .dropdown-input-wrap .dropdown-input {
    border: none;
    border-bottom: 1px solid var(--te-border);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.ts-dropdown .option {
    padding: 0.45rem 0.75rem;
    text-align: left;
}

.text-center .ts-wrapper,
.text-center .ts-wrapper .ts-control,
.text-center .ts-dropdown .option {
    text-align: left;
}

.ts-dropdown .active {
    background: var(--te-brand-50);
    color: var(--te-text);
}

.te-hero-search-wrap {
    width: min(920px, 92vw);
    margin: 0.75rem auto 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.te-hero-search {
    padding: 1.25rem 1.5rem 1.5rem;
    border-radius: var(--te-radius-lg);
    background: rgba(255, 255, 255, 0.96);
}

.te-hero-search__tabs .nav-link {
    color: var(--te-text-secondary);
    font-weight: 600;
    border-radius: var(--te-radius-pill);
    text-decoration: none;
}

.te-hero-search__tabs .nav-link:hover {
    color: var(--te-brand-700);
}

.te-hero-search__tabs .nav-link.active {
    background: var(--te-brand-600);
    color: #fff;
}

.te-package-card__media {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: var(--te-radius-md);
}

.te-package-card__media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--te-radius-md);
}

.te-package-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: var(--te-text-xs);
    padding: 0.25rem 0.6rem;
    border-radius: var(--te-radius-pill);
}

.te-package-card__title {
    font-size: var(--te-text-lg);
    font-weight: 700;
}

.te-package-card__tagline {
    font-size: var(--te-text-sm);
    color: var(--te-text-muted);
}

.te-package-card__meta {
    font-size: var(--te-text-sm);
    color: var(--te-brand-700);
    font-weight: 600;
}

.te-btn-save {
    border: 1px solid var(--te-border-strong);
    color: var(--te-brand-700);
    border-radius: var(--te-radius-pill);
    font-weight: 600;
}

.te-btn-save.is-saved {
    background: var(--te-brand-50);
    border-color: var(--te-brand-500);
}

.te-trust__panel {
    background: var(--te-brand-50);
    border-radius: var(--te-radius-lg);
    border: 1px solid var(--te-border);
}

.te-trust__list li {
    margin-bottom: 0.5rem;
    color: var(--te-text-secondary);
}

.te-testimonial-quote {
    background: var(--te-surface);
    border-radius: var(--te-radius-lg);
    border: 1px solid var(--te-border);
    min-height: 180px;
}

.te-btn-outline {
    border: 2px solid var(--te-brand-600);
    color: var(--te-brand-700);
    border-radius: var(--te-radius-pill);
    font-weight: 600;
}

.te-btn-outline:hover {
    background: var(--te-brand-50);
    color: var(--te-brand-900);
}

.te-whatsapp-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    background: #25d366;
    color: #fff;
    border-radius: var(--te-radius-pill);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--te-shadow-md);
}

.te-whatsapp-fab:hover {
    color: #fff;
    filter: brightness(1.05);
}

.te-sticky-enquire {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--te-border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.te-flash-whatsapp {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: 90vw;
}

/* —— Flight results —— */
.te-flight-results-page {
    margin-top: calc(var(--te-nav-height) + 0.5rem);
    padding-top: 1rem;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    scroll-margin-top: calc(var(--te-nav-height) + 1rem);
}

@media (min-width: 768px) {
    .te-flight-results-page {
        padding-bottom: 2.5rem;
    }
}

.te-flight-results-summary {
    border-radius: var(--te-radius-lg);
}

.te-flight-results-summary__route {
    font-weight: 700;
    color: var(--te-text);
    line-height: 1.35;
}

.te-flight-results-summary__arrow {
    color: var(--te-brand-600);
    font-weight: 600;
    margin: 0 0.15rem;
}

.te-flight-results-summary__meta {
    color: var(--te-text-muted);
    font-size: var(--te-text-base);
    margin-bottom: 0;
}

.te-flight-results-toolbar__sep {
    width: 1px;
    height: 1.25rem;
    background: var(--te-border);
}

.te-badge--live {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.te-badge--muted {
    background: var(--te-bg);
    color: var(--te-text-muted);
    border-color: var(--te-border);
}

.te-flight-quota-details {
    border: 1px dashed var(--te-border);
    border-radius: var(--te-radius-md);
    padding: 0.5rem 0.75rem;
    background: var(--te-bg);
}

.te-flight-quota-details summary {
    cursor: pointer;
    user-select: none;
}

.te-flight-offer {
    border-radius: var(--te-radius-md);
    transition: box-shadow 0.2s ease;
}

.te-flight-offer:hover {
    box-shadow: var(--te-shadow-md) !important;
}

.te-flight-offer__grid {
    padding: 1.15rem 1.25rem;
}

@media (min-width: 768px) {
    .te-flight-offer__grid {
        padding: 1.25rem 1.5rem;
    }
}

.te-flight-offer__grid > [class*='col-'] {
    min-width: 0;
}

.te-flight-offer__airline-name {
    font-weight: 700;
    font-size: var(--te-text-lg);
}

.te-flight-offer__times {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    font-size: var(--te-text-base);
}

.te-flight-offer__time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.te-flight-offer__iata {
    font-size: var(--te-text-sm);
    color: var(--te-text-muted);
    font-weight: 600;
}

.te-flight-offer__connector {
    flex: 1 1 2rem;
    min-width: 1.5rem;
    max-width: 3.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--te-border) 0%, var(--te-brand-300, #fdba74) 50%, var(--te-border) 100%);
    align-self: center;
    margin: 0 0.25rem;
}

.te-flight-offer__book {
    text-align: left;
}

@media (min-width: 768px) {
    .te-flight-offer__book {
        text-align: right;
    }
}

.te-flight-offer__price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--te-brand-700, #c2410c);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.te-flight-offer__cta {
    width: 100%;
    max-width: 11rem;
}

@media (min-width: 768px) {
    .te-flight-offer__cta {
        margin-left: auto;
        display: block;
    }
}

.te-flight-offer__partner {
    font-size: 0.75rem;
}

.te-flight-offer--estimate {
    border-left: 4px solid var(--te-border-strong) !important;
    background: var(--te-bg);
}

/* —— Hotel results —— */
.te-hotel-results-page {
    margin-top: calc(var(--te-nav-height) + 0.5rem);
    padding-top: 1rem;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.te-hotel-offer__media {
    height: 140px;
}

.te-hotel-offer__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .te-hotel-offer__media {
        height: 120px;
    }
}

.te-partner-modal .modal-content {
    border-radius: var(--te-radius-lg);
    border: none;
    box-shadow: var(--te-shadow-lg);
}

.te-partner-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.te-partner-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 2px solid var(--te-border);
    border-radius: var(--te-radius-md);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

button.te-partner-option {
    width: 100%;
    text-align: left;
    background: #fff;
    font: inherit;
    color: inherit;
}

button.te-partner-option:hover,
button.te-partner-option:focus-visible {
    border-color: var(--te-brand-500);
    background: var(--te-brand-50);
    outline: none;
}

button.te-partner-option:active {
    transform: scale(0.99);
}

.te-partner-option__logo {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--te-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.te-partner-option__logo--booking {
    background: #003580;
}

.te-partner-option__logo--agoda {
    background: #e12a67;
}

.te-partner-option__logo--google {
    background: #4285f4;
}

.te-partner-option__logo--redbus {
    background: #d84e55;
}

.te-partner-option__logo--abhibus {
    background: #c0392b;
}

.te-partner-option__logo--makemytrip {
    background: #008cff;
}

.te-partner-option__cta {
    color: var(--te-brand-600);
    font-weight: 600;
    margin-top: 0.2rem;
}

.te-partner-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.te-partner-option__label {
    font-weight: 700;
    color: var(--te-text);
}

.te-partner-option__desc {
    font-size: var(--te-text-sm);
    color: var(--te-text-muted);
}

/* —— Mobile layout —— */
@media (max-width: 991.98px) {
    .te-hero__content {
        padding-top: 0.35rem;
        padding-bottom: 1.75rem;
    }

    .te-hero__welcome {
        margin-top: 0.15rem;
        margin-bottom: 0.35rem;
    }

    .te-hero-search-wrap {
        width: 100%;
        margin-top: 0.5rem;
    }

    .te-hero-search {
        padding: 1rem 0.9rem 1.15rem;
    }

    .te-hero-search__tabs {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .te-hero-search__tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.4rem 0.85rem;
    }

    .te-hero-title {
        font-size: clamp(1.25rem, 5vw, 1.65rem);
        line-height: 1.25;
    }

    .te-hero__content .te-btn-ghost-light {
        margin-top: 0.65rem !important;
        margin-bottom: 0.35rem;
        padding: 0.45rem 1rem;
        font-size: 0.9rem;
    }

    .te-global-package-search__field {
        flex-direction: column;
        align-items: stretch;
    }

    .te-global-package-search__field .form-control {
        flex: none;
        width: 100%;
        min-height: 44px;
        max-height: none;
        font-size: 1rem;
    }

    .te-package-search-input {
        padding: 0.55rem 0.75rem;
        min-height: 44px;
    }

    .te-global-package-search__field .btn,
    .te-global-package-search__field .btn-lg {
        width: 100%;
        min-height: 44px;
        padding: 0.55rem 1rem;
        font-size: 1rem;
    }

    .te-hero-search .tab-content .row > [class*='col-'] {
        margin-bottom: 0.15rem;
    }

    .ts-wrapper .ts-control {
        min-height: 44px;
        font-size: 1rem;
    }

    .ts-dropdown {
        max-width: min(100vw - 1.5rem, 24rem);
    }

    body:has(.te-sticky-enquire) {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }

    .te-sticky-enquire {
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    }

    .te-whatsapp-fab {
        right: 0.85rem;
        bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
        padding: 0.55rem 0.85rem;
        font-size: 0.875rem;
    }

    .te-nav-solid.fixed-top,
    .navbar.fixed-top {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .te-nav-solid .navbar-brand,
    .navbar-brand.ms-5,
    .navbar-brand.ms-md-4 {
        margin-left: 0.25rem !important;
    }

    img[src*="tripeasy360"] {
        max-width: min(148px, 42vw);
    }

    .te-package-card__media {
        height: 200px;
    }

    .te-partner-option {
        padding: 0.75rem 0.9rem;
    }

    .te-search-fields .col-4 .form-control {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .te-nav-hero__inner {
        margin: 0 0.5rem;
        padding: 0.45rem 0.75rem;
    }

    .container[style*="width: 92%"] {
        width: 100% !important;
        max-width: 100%;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}