:root {
    --brand-dark-green: #003d29;
    --brand-dark-green-rgb: 0, 61, 41;
    --brand-gold: #d4af37;
    --brand-gold-hover: #b8962e;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --text-white: #ffffff;
    --bg-light: #f4f7f6;
    --border-light: #e0e0e0;

    --emerald-green: #1F7A5C;
    --deep-ocean-blue: #0B3C5D;
    --hero-overlay-opacity: 0.3;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Brand Components */
.header-top {
    background-color: var(--brand-dark-green);
    padding: 10px 0;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 500;
}

.top-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.top-link-item:hover {
    opacity: 1;
}

.top-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    text-decoration: none !important;
    color: var(--text-white) !important;
    font-size: 13px;
    font-weight: 600;
}

.top-language-switcher:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
    position: relative;
}

.dropdown-menu-dark {
    background-color: var(--brand-dark-green);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 2px !important;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item.active {
    background-color: var(--emerald-green) !important;
}

.dropdown-toggle::after {
    display: none;
}

.top-language-switcher img {
    height: 14px;
    width: auto;
    border-radius: 2px;
}

.cursor-pointer {
    cursor: pointer;
}

.navbar {
    background-color: var(--text-white);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 24px;
    color: var(--brand-dark-green) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.logo-brand .logo-n {
    color: var(--brand-gold);
}

.navbar-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 10px !important;
}

.btn-signup-brand {
    background-color: var(--emerald-green);
    color: var(--text-white) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    transition: background-color 0.3s;
    font-size: 13px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-signup-brand:hover {
    background-color: #165d46;
    /* Darker Emerald */
}

.btn-login {
    color: var(--text-dark);
    font-size: 13px !important;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-nav {
    flex-wrap: nowrap !important;
}

.nav-link {
    white-space: nowrap;
}

/* ================================================
   NESTED DROPDOWN NAV — Desktop Hover System
   (Services > Flights > Portugal > Cities)
   ================================================ */

/* Desktop: ≥1400px — hover-triggered cascading menus */
@media (min-width: 1400px) {

    /* Services top-level: show dropdown on hover */
    .navbar .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        animation: fadeDropdown 0.18s ease;
    }

    /* Base dropdown-menu style on desktop */
    .navbar .dropdown-menu {
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
        padding: 6px 0;
        min-width: 190px;
        top: 100%;
        left: 0;
    }

    /* Level-2 & Level-3 flyout submenus */
    .navbar .has-submenu {
        position: relative;
    }

    .navbar .has-submenu>.submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -6px;
        min-width: 180px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 9999;
        list-style: none;
        padding: 6px 0;
        margin: 0;
    }

    .navbar .has-submenu:hover>.submenu {
        display: block;
        animation: fadeDropdown 0.15s ease;
    }

    .navbar .submenu .dropdown-item {
        padding: 9px 16px;
        font-size: 13px;
        color: #1a1a1a;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar .submenu .dropdown-item:hover {
        background: #f4f7f6;
        color: #003d29;
    }

    /* Small right arrow (▶) on items with sub-menus on desktop */
    .navbar .submenu-arrow {
        font-size: 9px;
        color: #999;
        margin-left: 8px;
        flex-shrink: 0;
    }

    /* Hide the mobile chevron toggle on desktop */
    .navbar .submenu-toggle {
        display: none !important;
    }

    @keyframes fadeDropdown {
        from {
            opacity: 0;
            transform: translateY(4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ================================================
   MOBILE / TABLET NAV — Accordion Drawer
   ≤1399px
   ================================================ */
/* Mobile Nav Optimizations (Premium Redesign) */
@media (max-width: 1399px) {
    .navbar-collapse {
        padding: 24px 16px;
        background: #fff;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 85vh;
        overflow-y: auto;
    }

    .navbar-nav {
        margin: 20px 0;
        text-align: left;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
        font-weight: 500;
        color: var(--brand-dark);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Auth Buttons at Top */
    .nav-auth-buttons {
        order: -1;
        margin-bottom: 24px;
        flex-direction: column;
        width: 100%;
        display: flex !important;
        gap: 12px !important;
    }

    .btn-signup-brand,
    .btn-login {
        width: 100% !important;
        margin: 0 !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
        border-radius: 8px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        flex-grow: 1 !important;
    }




    .btn-login {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }

    /* Switchers Section at Bottom */
    .nav-switchers-group {
        justify-content: center !important;
        margin-top: 24px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 12px;
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
    }

    /* Accordion Style Dropdowns - Mobile Nested Fix */
    .navbar .dropdown-menu,
    .navbar .submenu {
        position: static !important;
        float: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-width: unset !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: none !important;
        flex-direction: column !important;
    }

    /* Level 1 dropdown — gold left accent */
    .navbar .dropdown-menu {
        background: #f4fcf9;
        border: none !important;
        border-left: 3px solid var(--brand-gold) !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    /* Level 2 submenu — emerald left accent */
    .navbar .submenu {
        background: #eaf7f2;
        border: none !important;
        border-left: 3px solid var(--emerald-green) !important;
        margin-left: 0 !important;
    }

    /* Level 3 deep submenu */
    .navbar .submenu .submenu {
        background: #dff0eb;
        border-left: 3px solid var(--emerald-green) !important;
        margin-left: 0 !important;
    }

    /* Reveal menu when parent has .submenu-open or menu has .show */
    .navbar .has-submenu.submenu-open>.dropdown-menu,
    .navbar .has-submenu.submenu-open>.submenu,
    .navbar-collapse .dropdown-menu.show {
        display: block !important;
    }

    /* Rotate icons when active */
    .navbar .has-submenu.submenu-open>a .submenu-toggle,
    .navbar .nav-item.dropdown.submenu-open>.nav-link .bi-chevron-down,
    .navbar .dropdown-item.active .submenu-toggle,
    .navbar .nav-link.active .bi-chevron-down {
        transform: rotate(180deg);
        color: var(--brand-dark-green);
    }

    .navbar .dropdown-menu .dropdown-item,
    .navbar .submenu .dropdown-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
        white-space: normal !important;
        word-break: break-word;
        font-size: 14px;
        color: var(--text-dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        width: 100% !important;
        text-decoration: none;
        box-sizing: border-box;
    }

    .navbar li {
        width: 100% !important;
        display: block !important;
    }

    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .submenu .dropdown-item:hover {
        background: rgba(0, 61, 41, 0.06);
        color: var(--brand-dark-green);
    }

    /* Hide desktop fly-out arrow, show mobile chevron */
    .navbar .submenu-arrow {
        display: none !important;
    }

    .navbar .submenu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        transition: transform 0.22s ease;
        flex-shrink: 0;
        color: var(--text-muted);
    }

    /* Rotate chevron when submenu is open */
    .navbar .has-submenu.submenu-open>a .submenu-toggle,
    .navbar .has-submenu.submenu-open>.nav-link .submenu-toggle {
        transform: rotate(180deg);
        color: var(--brand-dark-green);
    }

    /* Top-level nav-link with dropdown toggle */
    .navbar .nav-item.dropdown>.nav-link {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .navbar .nav-item.dropdown.submenu-open>.nav-link .bi-chevron-down {
        transform: rotate(180deg);
        transition: transform 0.22s ease;
        color: var(--brand-dark-green);
    }

    .navbar .nav-item.dropdown>.nav-link .bi-chevron-down {
        transition: transform 0.22s ease;
    }

    /* Hide redundant dividers in mobile if too crowded */
    .navbar-collapse .dropdown-divider {
        display: none;
    }

    /* Set max height for mobile currency search specifically */
    .navbar-collapse .currency-switcher .dropdown-menu {
        max-height: 250px;
        overflow-y: auto;
    }

    /* Small devices fix for switchers */
    @media (max-width: 576px) {
        .navbar .scrolling-dropdown {
            max-height: 250px !important;
        }
    }
}

/* Language Dropdown Scrollbar */
.dropdown-menu-end {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.goog-te-banner-frame {
    display: none;
}

/* Hide Google Translate original UI - Exhaustive Fix */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-menu-value,
.goog-te-gadget-icon,
.goog-te-gadget-simple,
.goog-te-spinner-pos,
.goog-te-menu2-item,
.goog-te-menu2,
#goog-te-menu-frame,
.goog-te-menu-frame,
.goog-te-banner,
.goog-te-gadget,
.skiptranslate,
iframe[id*="goog-te-menu-frame"],
div[id*="goog-gt-tt"],
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    top: -9999px !important;
    left: -9999px !important;
}

#google_translate_element {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide Google Translate tooltip */
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

.dropdown-menu-end::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu-end::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu-end::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold);
    border-radius: 10px;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    background: linear-gradient(rgba(var(--brand-dark-green-rgb), var(--hero-overlay-opacity)), rgba(var(--brand-dark-green-rgb), var(--hero-overlay-opacity))),
        url('../img/hero-bg-updated.png') center/cover no-repeat;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px;
    color: var(--text-white);
    text-align: center;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.hero-badge-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.hero-main-title {
    font-size: 58px;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-desc {
    max-width: 640px;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0 auto;
    text-align: center;
    font-weight: 400;
}

/* Search Panel — overlaps hero on desktop, sits below on mobile */
.search-panel {
    position: relative;
    z-index: 1000;
    /* Higher z-index to stay above following sections */
    padding: 0 0 50px;
    /* Desktop: pull panel up into the hero section */
    margin-top: -89px;
    overflow: visible !important;
}

.search-panel .container {
    max-width: 1000px;
}

/* On desktop the service tabs keep the glass/white hero look */
.search-panel .service-tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 11px;
}

.search-panel .service-tab-item {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.search-panel .service-tab-item:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.search-panel .service-tab-item i {
    color: #ffffff;
}

.search-panel .service-tab-item.active {
    background: #ffffff;
    color: var(--brand-dark-green);
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    text-shadow: none;
}

.search-panel .service-tab-item.active i {
    color: var(--brand-dark-green);
}

/* Currency Switcher Styles */
.currency-switcher .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    min-width: 140px;
}

.currency-switcher .dropdown-item {
    font-size: 13px;
    padding: 10px 15px;
    font-weight: 500;
}


/* Page Header Wrapper for Subpages */
.page-header-wrapper {
    background: linear-gradient(rgba(var(--brand-dark-green-rgb), var(--hero-overlay-opacity)), rgba(var(--brand-dark-green-rgb), var(--hero-overlay-opacity))),
        url('../img/hero-bg-updated.png') center/cover;
    padding: 120px 0;
    color: var(--text-white) !important;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    position: relative;
    z-index: 100;
}

.page-header-wrapper .page-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-white);
}

.page-header-wrapper .page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-white);
}

.page-header-wrapper .card-custom {
    margin-top: 40px;
    border-top: none;
    background: white;
    color: var(--text-dark);
}

/* Service Tab Bar */
.service-tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-tab-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.service-tab-item:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--text-white);
}

.service-tab-item i {
    color: var(--text-white);
    font-size: 15px;
}

.service-tab-item.active {
    background: var(--text-white);
    color: var(--brand-dark-green);
    border-color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.service-tab-item.active i {
    color: var(--brand-dark-green);
}

/* Main Search Box */
.main-search-card {
    background: var(--text-white);
    border-radius: 20px;
    padding: 28px 28px 20px;
    width: 100%;
    max-width: 980px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: visible !important;
    position: relative;
    z-index: 110;
}

.search-field-group {
    text-align: left;
    overflow: visible !important;
}

.search-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field-input-box {
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.search-field-input-box i {
    color: var(--deep-ocean-blue);
    margin-right: 10px;
}

.search-field-input-box input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
}

.btn-search-brand {
    background: var(--brand-dark-green);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    padding: 12px 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-search-brand:hover {
    opacity: 0.9;
}

/* Trending Destinations */
.trending-exact-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
    padding-bottom: 30px;
    height: 100%;
}

.trending-exact-card:hover {
    transform: translateY(-5px);
}

.trending-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.trending-city {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark-green);
    margin: 15px 0 10px;
}

.btn-explore-gold {
    background-color: var(--emerald-green);
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-explore-gold:hover {
    background-color: #165d46;
}

.filter-pills-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Promo Banners */
.promo-banner {
    border-radius: 15px;
    padding: 40px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.banner-icon {
    font-size: 2.5rem;
    color: white;
    opacity: 0.95;
}

.banner-insurance {
    background:
        linear-gradient(rgba(0, 61, 41, 0.85), rgba(0, 61, 41, 0.85)),
        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&fit=crop') center center/cover no-repeat;
}

.banner-esim {
    background:
        linear-gradient(rgba(60, 50, 45, 0.85), rgba(60, 50, 45, 0.85)),
        url('../img//esim.jpg') center center/cover no-repeat;
}

.banner-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.banner-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-banner-action {
    background: white;
    color: var(--brand-dark-green);
    border: 2px solid var(--brand-dark-green);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-banner-action:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-dark-green);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .promo-banner {
        height: auto;
        padding: 30px 20px;
    }

    .banner-title {
        font-size: 22px;
    }
}

/* Destination Grid */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 40px;
}

.destination-grid-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.destination-grid-card.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 520px;
}

.destination-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.destination-grid-card:hover img {
    transform: scale(1.1);
}

.destination-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.destination-grid-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.destination-grid-name {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0;
}

.destination-grid-price {
    font-size: 14px;
    color: var(--brand-gold);
    font-weight: 600;
}

@media (max-width: 991px) {
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .destination-grid {
        grid-template-columns: 1fr;
    }

    .destination-grid-card.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
}

/* Services Section */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--emerald-green);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(31, 122, 92, 0.1);
    /* Emerald background opacity */
    color: var(--deep-ocean-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 30px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--emerald-green);
    color: var(--text-white);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--deep-ocean-blue);
    margin-bottom: 15px;
}

.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: var(--brand-gold);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-dark-green);
}

.section-title span {
    color: var(--brand-gold);
}

/* Footer */
footer {
    background-color: var(--brand-dark-green);
    color: var(--text-white);
    padding: 60px 0 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer a:hover {
    color: var(--text-white);
}

/* Card Refinements */
.card-custom {
    background: white;
    border: none;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--emerald-green);
    margin-top: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-custom .card-body {
    padding: 25px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-custom .text-primary,
.card-custom i {
    color: var(--deep-ocean-blue) !important;
}



.filter-pills-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.filter-pill:hover {
    background: var(--bg-light);
}

.btn-search-brand {
    background: var(--emerald-green);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    padding: 12px 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-search-brand:hover {
    background-color: #165d46;
    transform: translateY(-2px);
}

.btn-explore {
    background-color: var(--emerald-green);
    color: var(--text-white);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn-explore:hover {
    background-color: #165d46;
}

/* AI Chat Bot Widget */
.ai-chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.ai-chatbot-widget:hover {
    transform: translateY(-5px) scale(1.05);
}

.ai-chat-bubble {
    background-color: #3c0c6b;
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(60, 12, 107, 0.2);
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
}

.ai-chat-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #3c0c6b;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.ai-avatar-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background-color: #f0f0f0;
    flex-shrink: 0;
    transition: all 0.3s;
}

.ai-avatar-wrapper img {
    width: 100%;
    height: 150%;
    object-fit: cover;
}


.btn-signup {
    padding: 0;
}

.btn-luxury-brand {
    background: var(--emerald-green);
    color: white !important;
    border: 2px solid var(--brand-gold);
    padding: 12px 35px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(31, 122, 92, 0.3);
}

.btn-luxury-brand:hover {
    background: var(--brand-dark-green);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 61, 41, 0.4);
}


.auth-wrapper,
.assistant-hero {
    margin-top: 40px;
}

.btn-read-more {
    color: var(--brand-gold) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: auto;
    padding-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: var(--brand-dark-green) !important;
    transform: translateX(5px);
}

.link {
    text-decoration: none;
}

.btn-banner-action {
    display: inline-block !important;
    margin-top: 15px;
    background-color: white;
    color: var(--brand-dark-green);
    border: 2px solid var(--brand-dark-green);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-banner-action:hover {
    transform: scale(1.05);
    color: var(--brand-dark-green);
}

/* Promo Banners */
.promo-banner {
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    transition: transform 0.2s;
}

@media (min-width: 992px) {
    .promo-banner {
        padding: 120px 50px !important;
    }
}

.banner-insurance {
    background:
        linear-gradient(rgba(0, 61, 41, 0.85), rgba(0, 61, 41, 0.85)),
        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&fit=crop') center center/cover no-repeat !important;
    color: white;
}

.banner-esim {
    background:
        linear-gradient(rgba(60, 50, 45, 0.85), rgba(60, 50, 45, 0.85)),
        url('../img//esim.jpg') center center/cover no-repeat !important;
    color: white;
}

/* Flights page eSIM + insurance quick links */
.quick-links-row .col-md-6 {
    display: flex;
}

.quick-link-card {
    width: 100%;
    min-height: 130px;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

/* Navbar Hover Effect */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Page Header Specific Backgrounds */
.hotel-header {
    background: linear-gradient(rgba(0, 61, 41, 0.7), rgba(0, 61, 41, 0.7)), url('../img/hotels.jpg') center/cover !important;
}

.train-header {
    background: linear-gradient(rgba(0, 61, 41, 0.7), rgba(0, 61, 41, 0.7)), url('../img/train.jpg') center/cover !important;
}

.cruise-header {
    background: linear-gradient(rgba(0, 61, 41, 0.7), rgba(0, 61, 41, 0.7)), url('../img/cruise.jpg') center/cover !important;
}

.car-header {
    background: linear-gradient(rgba(0, 61, 41, 0.7), rgba(0, 61, 41, 0.7)), url('../img/car.jpg') center/cover !important;
}

.flight-header {
    background: linear-gradient(rgba(0, 61, 41, 0.7), rgba(0, 61, 41, 0.7)), url('../img/tail.jpg') center/cover !important;
}

/* Mobile Hero & Page Header Refinement */
@media (max-width: 1024px) {

    /* Keep hero-wrapper background intact — only override non-hero subpage headers */
    .page-header-wrapper,
    .hero-section {
        min-height: auto !important;
        background-size: 100% 350px !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        background-color: #fff !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Hero wrapper stays dark and centered on ALL screens */
    .hero-wrapper {
        min-height: 320px !important;
        background-size: cover !important;
        background-position: center !important;
        background-color: transparent !important;
        padding: 70px 20px 50px !important;
        justify-content: center !important;
    }

    .page-header-wrapper>.container,
    .hero-section>.container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 20px !important;
        max-width: 100% !important;
    }

    .page-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        height: 350px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-main-title {
        font-size: 34px !important;
        margin-bottom: 14px !important;
        text-align: center !important;
    }

    .page-title,
    .hero-title {
        font-size: 32px !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .hero-desc {
        font-size: 14px !important;
        margin: 0 auto !important;
        text-align: center !important;
        max-width: 90% !important;
    }

    .page-subtitle,
    .hero-subtitle {
        font-size: 12px !important;
        margin: 10px 0 0 0 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 600px !important;
    }

    /* Search panel: remove negative margin so it sits BELOW hero on mobile */
    .search-panel {
        margin-top: 0 !important;
        padding: 20px 0 30px !important;
        background: #fff !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    }

    /* Service tabs on mobile: dark green style on white background */
    .search-panel .service-tabs-row {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px !important;
    }

    .search-panel .service-tab-item {
        background: #f1f5f4 !important;
        border: 1px solid #d0e0da !important;
        color: var(--brand-dark-green) !important;
        text-shadow: none !important;
        backdrop-filter: none !important;
        flex-shrink: 0;
    }

    .search-panel .service-tab-item i {
        color: var(--brand-dark-green) !important;
    }

    .search-panel .service-tab-item:hover {
        background: #e2eeea !important;
        color: var(--brand-dark-green) !important;
    }

    .search-panel .service-tab-item.active {
        background: var(--brand-dark-green) !important;
        color: #ffffff !important;
        border-color: var(--brand-dark-green) !important;
    }

    .search-panel .service-tab-item.active i {
        color: #ffffff !important;
    }

    .main-search-card,
    .card-custom {
        margin-top: 16px !important;
        width: 100% !important;
        position: relative !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        background-color: white !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

}

@media (max-width: 991px) {
    .hero-main-title {
        font-size: 42px;
    }

    .navbar-nav {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-top .d-flex {
        flex-direction: row !important;
        /* Keep items horizontal on mobile */
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .hero-wrapper {
        min-height: 260px;
        padding: 60px 15px 40px;
    }

    .hero-main-title {
        font-size: 28px !important;
    }

    .hero-desc {
        font-size: 13px !important;
    }

    .main-search-card {
        width: 100%;
        padding: 15px;
    }

    .ai-chatbot-widget {
        bottom: 20px;
        right: 15px;
        gap: 8px;
    }

    .ai-chat-bubble {
        padding: 8px 15px;
        font-size: 11px;
        display: block;
        /* Show bubble on mobile */
        white-space: normal;
        max-width: 160px;
        line-height: 1.3;
    }

    .ai-avatar-wrapper {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }

    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-card {
        padding: 30px 20px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .newsletter-form input {
        width: 100%;
        border-radius: 10px;
        background: white;
        padding: 15px;
    }

    .newsletter-form .btn-subscribe {
        width: 100%;
        border-radius: 10px;
        justify-content: center;
    }

    .page-header-wrapper,
    .hero-section {
        padding: 80px 15px;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .page-header-wrapper .page-title,
    .hero-section .hero-title {
        font-size: 32px;
        text-align: center !important;
    }

    .page-header-wrapper .page-subtitle,
    .hero-section .hero-subtitle {
        font-size: 16px;
        text-align: center !important;
    }
}

/* Search Suggestions */
.search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: background 0.2s;
    border-bottom: 1px solid var(--bg-light);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-light);
    color: var(--brand-dark-green);
}

/* Smart Search Highlight */
.suggestion-item:hover,
.suggestion-item.active {
    background-color: #006d29 !important;
    /* var(--brand-dark-green) fallback */
    color: white !important;
}

/* ── Cascading Side-Opening Submenu ── */
li.has-submenu {
    position: relative;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

/* ==========================================================================
   Standardized Navigation & Responsive Accordion Logic
   - Vertical Accordion (Stack): Up to 1370px (Mobile & Tablet Landscape)
   - Cascading Submenus: Above 1370px (Large Desktop)
   ========================================================================== */

/* Mobile/Tablet Accordion Behavior (Click/Toggle) */
@media (max-width: 1399px) {

    /* FORCE all dropdowns and submenus to be static in the flow */
    .navbar .dropdown-menu,
    .navbar .submenu {
        position: static !important;
        transform: none !important;
        width: calc(100% - 12px) !important;
        display: none !important;
        max-height: 0;
        overflow: hidden;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        float: none !important;
        border: none !important;
        border-radius: 0 !important;
        transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    }

    /* Indent each level with a colored left border (Reference: User Image) */
    .navbar .dropdown-menu {
        background: #f4fcf9 !important;
        border-left: 3px solid #d4a753 !important;
        /* Gold */
        margin-left: 12px !important;
    }

    .navbar .submenu {
        background: #eaf7f2 !important;
        border-left: 3px solid #2d6666 !important;
        /* Dark Green */
        margin-left: 14px !important;
    }

    .navbar .submenu .submenu {
        background: #dff0eb !important;
        border-left: 3px solid #3d8080 !important;
        /* Primary Light */
        margin-left: 14px !important;
    }

    /* Show when opened via JS toggle or Bootstrap show class */
    .navbar .has-submenu.submenu-open>.submenu,
    .navbar .has-submenu.submenu-open>.dropdown-menu,
    .navbar .nav-item.dropdown.show>.dropdown-menu,
    .navbar .dropdown-menu.show {
        display: block !important;
        /* JS computes and assigns height inline, but fallback to 1500px if JS fails */
        max-height: 1500px;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Column Alignment & Separators */
    .navbar-nav {
        text-align: left !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        background: #fff;
    }

    .navbar-nav .nav-item {
        width: 100% !important;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Style all dropdown items to be full-width stacked */
    .navbar .dropdown-menu .dropdown-item,
    .navbar .submenu .dropdown-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 16px !important;
        white-space: normal !important;
        font-size: 14px;
        color: #1a1a1a !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100% !important;
        font-weight: 500;
    }

    /* Hide the desktop-only arrow (►) */
    .navbar .submenu-arrow {
        display: none !important;
    }

    .has-submenu>a {
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100% !important;
    }

    /* Header-style parent categories */
    .nav-item.dropdown>a.nav-link {
        font-weight: 700 !important;
        color: #000 !important;
        padding: 12px 16px !important;
    }

    .submenu-toggle {
        margin-left: auto !important;
        padding: 12px 15px !important;
        display: inline-block !important;
        transition: transform 0.2s ease;
        color: #888;
    }

    /* Rotate arrow when open */
    .navbar .has-submenu.submenu-open>a .submenu-toggle {
        transform: rotate(180deg);
        color: var(--brand-dark-green);
    }
}

/* Large Desktop Cascading Styles (Above 1400px) */
@media (min-width: 1400px) {

    .navbar .dropdown-menu,
    .navbar .dropdown-menu li,
    .navbar .submenu,
    .navbar .submenu li {
        overflow: visible !important;
    }

    .has-submenu {
        position: relative;
    }

    /* Floating side-opening submenus */
    .has-submenu>.submenu {
        position: absolute;
        left: 100%;
        top: 0;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        z-index: 1000;
        display: none;
        margin-top: -1px;
    }

    /* Display submenu on hover or via class for desktop */
    .has-submenu:hover>.submenu,
    .has-submenu.submenu-open>.submenu {
        display: block !important;
    }

    /* Open top-level dropdown on hover or via class for smoother desktop experience */
    .navbar .nav-item.dropdown:hover>.dropdown-menu,
    .navbar .nav-item.dropdown.submenu-open>.dropdown-menu {
        display: block !important;
    }

    .submenu .dropdown-item {
        padding: 0.7rem 1.25rem !important;
        white-space: nowrap !important;
    }

    .submenu-arrow {
        font-size: 0.7rem;
        color: var(--text-muted);
        transition: transform 0.2s;
        display: inline-block !important;
    }

    .has-submenu:hover>a .submenu-arrow {
        color: var(--brand-dark-green);
        transform: translateX(3px);
    }

    /* Hide mobile-only chevron on desktop */
    .submenu-toggle {
        display: none !important;
    }
}

/* Global Toggle Styles */
.submenu-toggle {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer submenu must not inherit navbar flyout white panel styles */
footer .has-submenu {
    position: relative;
}

footer .has-submenu>.submenu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: auto !important;
    margin-top: 0 !important;
}

footer .has-submenu>a:hover,
footer .has-submenu>a:focus {
    color: rgba(255, 255, 255, 0.95) !important;
}

footer .footer-submenu a:hover,
footer .footer-submenu a:focus {
    color: #ffffff !important;
    opacity: 1;
    background: transparent !important;
}

/* Global Language/Currency Dropdown Scroll Fix */
.navbar .scrolling-dropdown {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar for Dropdowns */
.navbar .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.navbar .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}