html {
    scroll-behavior: smooth;
}

.activity-hero-height {
    min-height: 330px;
}
@media (min-width: 768px) {
    .activity-hero-height {
        min-height: 455px;
    }
}
.mw-90 {
    max-width: 90% !important;
}

[data-vc-theme="light"] .vc-date[data-vc-date-selected] .vc-date__btn {
    background-color: #ff417b !important;
    color: white;
}

/* Standalone Reusable Datepicker (vanilla-calendar-pro) */
.vc[data-vc-input] {
    z-index: 1055 !important;
}

[data-vc-theme="light"].vc {
    background-color: #ffffff !important;
}

.vc.vc-standalone-picker {
    z-index: 1055 !important;
    border-radius: 0.85rem !important;
    background-color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(27, 42, 78, 0.18), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #edf2f9 !important;
}

.vc.vc-standalone-picker[data-vc-theme="light"] .vc-date[data-vc-date-selected] .vc-date__btn {
    background-color: #335eea !important;
    color: #fff !important;
}

.vc.vc-standalone-picker .vc-date__btn:hover {
    background-color: #f1f4fe !important;
    color: #335eea !important;
}

.vc.vc-standalone-picker[data-vc-theme="light"] .vc-date[data-vc-date-selected] .vc-date__btn:hover {
    background-color: #294bbb !important;
    color: #fff !important;
}

/* Datepicker Input with Calendar Icon */
.datepicker-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-calendar3' viewBox='0 0 16 16'%3E%3Cpath d='M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z'/%3E%3Cpath d='M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 1.1rem !important;
    padding-right: 2.5rem !important;
    cursor: pointer !important;
    background-color: #fff !important;
}

.vc-date__btn_legend {
    background-color: #ff417b !important;
    color: white;
}

.header.header-sticky {
    z-index: 1!important;
}

.badge-radio {
    cursor: pointer;
}
.badge-radio input[type="checkbox"] {
    display: none;
}
.badge-radio input[type="checkbox"]:checked + span {
    background-color: green!important;
    color: white;
}

@media (min-width: 768px) {
    .dropdown-menu-responsive {
        width: 800px;
    }
    .product-image {
        height: 200px;
    }
}
@media (max-width: 767.98px) {
    .dropdown-menu-responsive {
        width: auto;
    }
    .product-image {
        height: 400px;
    }
}

.product-car {
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    transition: all 0.5s ease;
    object-fit: cover;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.badge-custom {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.btn-custom {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border: none;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(46, 204, 113, 0.3);
}

.search-float-container {
    margin-top: -90px;
    position: relative;
}

.search-card .form-control:focus {
    background-color: transparent;
}
.search-card .col-md-4:hover,
.search-card .col-md-3:hover {
    background-color: #fbfbfb;
    transition: background 0.2s;
}
@media (max-width: 767px) {
    .search-float-container { margin-top: -100px; }
    .border-end { border-right: none !important; border-bottom: 1px solid #eee; }
}

.hero-forms .search-float-container {
    margin-top: 0px;
}

.hero-forms .search-card button[type="submit"],
.hero-forms .search-card .btn,
.search-float-container .search-card button[type="submit"] {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* Disable jarallax parallax effects on mobile screens (< 768px) */
@media (max-width: 767.98px) {
    .jarallax {
        background-attachment: scroll !important;
        transform: none !important;
    }
    .jarallax > .jarallax-container {
        display: none !important;
    }
    .jarallax > .jarallax-img,
    .jarallax img.jarallax-img {
        transform: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}


.featured-route-card {
    height: 320px;
    transition: transform 0.3s ease;
}

.featured-route-card:hover {
    transform: translateY(-8px);
}

.card-img-overlay-wrap {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.card-img-overlay-wrap .card-img-overlay,
.featured-route-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2 !important;
}

.featured-route-card .card-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-route-card:hover .card-img {
    transform: scale(1.1);
}

/* Listing Card Photo Full-bleed & Hover Zoom */
.listing-card-photo {
    transition: transform 0.4s ease;
}

.card:hover .listing-card-photo {
    transform: scale(1.04);
}

.featured-route-card picture {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-route-card picture .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The Secret Sauce: Dark Gradient Overlay for Readability */
.card-img-overlay {
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 50%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.5) 100%
    );
    transition: background 0.3s ease;
}

.featured-route-card:hover .card-img-overlay {
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 40%,
            rgba(0,0,0,0.3) 60%,
            rgba(0,0,0,0.6) 100%
    );
}

.icon-nav .custom-tab-btn {
    background: transparent !important;
    border: none !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    width: 70px;
    text-align: center;
}

.icon-nav .custom-tab-btn:hover {
    opacity: 1;
}

.icon-nav .icon-box {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #495057;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-nav .tab-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-align: center;
    line-height: 1.15;
}

.icon-nav .custom-tab-btn.active {
    opacity: 1;
    color: #ffffff !important;
}

.icon-nav .custom-tab-btn.active .icon-box {
    background-color: #df6128;
    color: #ffffff;
    border-color: #df6128;
    box-shadow: 0 4px 12px rgba(223, 97, 40, 0.3) !important;
}

/* Hero Horizontal Pill Navigation (Option 1) */
.hero-pill-scroll-wrapper {
    position: relative;
    width: 100%;
}

.hero-pill-nav {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-pill-nav::-webkit-scrollbar {
    display: none;
}

.hero-pill-nav .nav-item {
    flex-shrink: 0;
}

.hero-pill-nav .hero-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 50rem !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.hero-pill-nav .hero-pill-btn i {
    font-size: 1rem !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.hero-pill-nav .hero-pill-btn:hover {
    background: rgba(255, 255, 255, 0.32) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

.hero-pill-nav .hero-pill-btn:hover i {
    color: #ffffff !important;
}

.hero-pill-nav .hero-pill-btn.active {
    background: #df6128 !important;
    color: #ffffff !important;
    border-color: #df6128 !important;
    box-shadow: 0 6px 18px rgba(223, 97, 40, 0.45) !important;
    text-shadow: none !important;
}

.hero-pill-nav .hero-pill-btn.active i {
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .hero-pill-scroll-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        position: relative;
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
        mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
    }

    .hero-pill-nav {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding: 0.25rem 0 0.65rem 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .hero-pill-nav::-webkit-scrollbar {
        display: none;
    }

    .hero-pill-nav .nav-item {
        flex-shrink: 0 !important;
        scroll-snap-align: start;
    }

    .hero-pill-nav .hero-pill-btn {
        padding: 0.45rem 0.9rem !important;
        font-size: 0.85rem !important;
    }
}

/* rent search form */
.dropdown-item-container {
    position: relative;
}

.dropdown-item-container .dropdown-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-check:checked + .dropdown-item {
    background-color: var(--bs-light);
    color: var(--bs-primary);
    font-weight: 500;
}

.dropdown-menu {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 0.5rem;
}

.cursor-pointer {
    cursor: pointer;
}


.flickity-page-dots { bottom: 10px !important; }
.flickity-page-dot { background: rgb(255 255 255 / 50%) !important; }
.flickity-page-dot.is-selected { background: rgb(255 255 255 / 20%) !important; }

.btn-orangex {
    background-color: #e65e2d !important; border: none; border-radius: 12px;
}


/* Common article typography & heading styles (Destinations & Activities) */
:root {
    --art-heading-h2: #204ecf;
    --art-heading-h3: #2d55b8;
    --art-heading-h4: #3c5d9e;
}

.art-body-comm,
.art-body-comm1 {
    font-family: system-ui, -apple-system, sans-serif;
    color: #2D3748;
    line-height: 1.65;
}

/* Headings within articles (H2, H3, H4) - distinct color and hierarchy, excluding H1 */
.art-body-comm h2:not(.text-white):not(.alert-heading),
.art-body-comm1 h2:not(.text-white):not(.alert-heading),
.activity-details h2:not(.text-white):not(.alert-heading),
[data-controller="articlefull"] h2:not(.text-white):not(.alert-heading) {
    color: var(--art-heading-h2, #204ecf);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.art-body-comm h3:not(.text-white):not(.alert-heading),
.art-body-comm1 h3:not(.text-white):not(.alert-heading),
.activity-details h3:not(.text-white):not(.alert-heading),
[data-controller="articlefull"] h3:not(.text-white):not(.alert-heading) {
    color: var(--art-heading-h3, #2d55b8);
    font-weight: 600;
    margin-top: 1.65rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.art-body-comm h4:not(.text-white):not(.alert-heading),
.art-body-comm1 h4:not(.text-white):not(.alert-heading),
.activity-details h4:not(.text-white):not(.alert-heading),
[data-controller="articlefull"] h4:not(.text-white):not(.alert-heading) {
    color: var(--art-heading-h4, #3c5d9e);
    font-weight: 600;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Remove excessive top margin when a heading is the first element */
.art-body-comm > h2:first-child,
.art-body-comm > h3:first-child,
.art-body-comm > h4:first-child,
.art-body-comm1 > h2:first-child,
.art-body-comm1 > h3:first-child,
.art-body-comm1 > h4:first-child {
    margin-top: 0;
}

/* Preserve original text color in special UI wrappers */
.alert .art-body-comm h2,
.alert .art-body-comm h3,
.alert .art-body-comm h4,
.alert .art-body-comm1 h2,
.alert .art-body-comm1 h3,
.alert .art-body-comm1 h4,
.alert .alert-heading,
.card-header h2,
.card-header h3,
.card-header h4 {
    color: inherit;
}


.fl-main-container {
    z-index: 1060 !important;
}

/* Route Builder Vehicle Selection Cards */
.vehicle-card {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid #dee2e6 !important;
    background-color: #ffffff !important;
    display: block;
    width: 100%;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* Selected state via pure CSS :has() */
.vehicle-card:has(input[type="radio"]:checked),
.vehicle-card.vehicle-card-selected {
    border: 2px solid #335eea !important;
    background-color: rgba(51, 94, 234, 0.08) !important;
    box-shadow: 0 0.25rem 0.75rem rgba(51, 94, 234, 0.18) !important;
}

.vehicle-card:has(input[type="radio"]:checked) .vehicle-icon-badge,
.vehicle-card.vehicle-card-selected .vehicle-icon-badge {
    background-color: #335eea !important;
    color: #ffffff !important;
}

.vehicle-card:has(input[type="radio"]:checked) .vehicle-selected-icon,
.vehicle-card.vehicle-card-selected .vehicle-selected-icon {
    display: inline-block !important;
}

.activity-toc-link {
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.activity-toc-link:hover {
    background-color: rgba(51, 94, 234, 0.08) !important;
    transform: translateX(3px);
}

/* Destination horizontal scroll shelf */
.dest-scroll-outer {
    overflow: hidden;
}
.dest-scroll-track {
    overflow-x: auto;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth;
    padding-top: 10px;
    padding-bottom: 24px;
    margin-bottom: -14px;
    padding-left: 4px;
    padding-right: 4px;
}
.dest-scroll-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}
.dest-scroll-track::-webkit-scrollbar-track,
.dest-scroll-track::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}
.dest-card-shelf-item {
    flex: 0 0 calc(70% - 6px);
    max-width: calc(70% - 6px);
}
.dest-card-shelf-item .lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dest-card-shelf-item .lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}
@media (min-width: 576px) {
    .dest-card-shelf-item {
        flex: 0 0 calc(45% - 6px);
        max-width: calc(45% - 6px);
    }
}
@media (min-width: 768px) {
    .dest-card-shelf-item {
        flex: 0 0 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
    }
}
@media (min-width: 992px) {
    .dest-card-shelf-item {
        flex: 0 0 calc(25% - 6px);
        max-width: calc(25% - 6px);
    }
}

.card-hover-zoom {
    transition: transform 0.4s ease;
}
.card:hover .card-hover-zoom {
    transform: scale(1.05);
}
.hover-primary {
    transition: color 0.15s ease;
}
.hover-primary:hover {
    color: var(--bs-primary) !important;
}

/* Category Scroll Track & Filter Buttons */
.category-scroll-track {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
}
.category-scroll-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.category-scroll-track .btn {
    font-size: 0.85rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
}
.category-scroll-track .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.category-scroll-track .btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

/* Navbar Dropdown Enhancements */
@media (min-width: 992px) {
    .navbar .navbar-nav .nav-item.dropdown {
        position: relative !important;
    }

    .navbar .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border: none !important;
        border-radius: 0.85rem !important;
        box-shadow: 0 18px 45px rgba(27, 42, 78, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        padding: 0.6rem !important;
        min-width: 245px !important;
        margin-top: 0.5rem !important;
        animation: navDropdownFade 0.15s ease-out;
    }

    .navbar .navbar-nav .dropdown-menu.dropdown-menu-end {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }

    .navbar-collapse .navbar-nav .dropdown-item {
        font-size: 0.935rem !important;
        font-weight: 500 !important;
        color: #2b3954 !important;
        padding: 0.6rem 1rem !important;
        margin: 0 !important;
        border-radius: 0.5rem !important;
        display: block !important;
        transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
    }

    .navbar-collapse .navbar-nav .dropdown-item:hover,
    .navbar-collapse .navbar-nav .dropdown-item:focus {
        background-color: #f1f4fe !important;
        color: #335eea !important;
        transform: translateX(4px) !important;
    }

    .navbar .dropdown-divider {
        border-top: 1px solid #edf2f9 !important;
        margin: 0.45rem 0.25rem !important;
        opacity: 1 !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse .navbar-nav .dropdown-item {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: #506690 !important;
    }
    .navbar-collapse .navbar-nav .dropdown-item:hover,
    .navbar-collapse .navbar-nav .dropdown-item:active {
        color: #335eea !important;
        background-color: transparent !important;
    }
    .navbar-collapse .navbar-nav .dropdown-divider {
        border-top: 1px solid #edf2f9 !important;
        margin: 0.4rem 0 !important;
        opacity: 1 !important;
    }
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Route Overview Page Floating Search Form & Mobile Spacing */
.route-search-wrap .search-float-container {
    margin-top: -35px !important;
    position: relative;
    z-index: 5;
}
@media (min-width: 768px) {
    .route-search-wrap .search-float-container {
        margin-top: -70px !important;
    }
}


