/* Bonvuyage custom overlays */

/* The wordmark is ~5:1, far wider than the 135px slot the theme logo used,
   so the brand slots size by height instead of stretching to width. */
.main_menu .navbar-brand {
    width: auto;
    max-width: 200px;
    display: flex;
    align-items: center;
}
.main_menu .navbar-brand img {
    width: auto !important;
    max-width: 100%;
    height: 34px !important;
    object-fit: contain !important;
}
.footer_logo_area .footer_logo.brand_logo {
    width: auto;
    max-width: 220px;
}
.footer_logo_area .footer_logo.brand_logo img {
    width: auto !important;
    max-width: 100%;
    height: 40px !important;
    object-fit: contain !important;
}
@media (max-width: 575px) {
    .main_menu .navbar-brand {
        max-width: 150px;
    }
    .main_menu .navbar-brand img {
        height: 28px !important;
    }
}

/* Listing sidebar (destinations, trips, blog) */
/* Deliberately not named .sticky_sidebar: the theme's stickit plugin binds to
   that class and absolutely positions it, which breaks the stacked layout. */
.listing_sidebar {
    position: sticky;
    top: 100px;
}
.sidebar_blog ul {
    margin-top: 20px;
}
.sidebar_blog ul li .img {
    flex-shrink: 0;
}
.sidebar_blog ul li .img a {
    display: block;
    width: 100%;
    height: 100%;
}
.sidebar_blog_category ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.sidebar_blog_category ul li a.is_active {
    color: var(--colorPrimary);
    font-weight: 600;
}
.sidebar_count {
    background: rgba(4, 6, 24, 0.06);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    flex-shrink: 0;
}
.sidebar_view_all {
    display: inline-block;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--colorPrimary);
}
.left_sidebar_wizard .sidebar_help_text {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 22px;
}

/* style.css forces `img { width/height: 100% !important }`, so every image needs
   a wrapper with a definite box or it inherits a nonsensical height. */
.detail_hero {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 30px;
    background: rgba(4, 6, 24, 0.06);
}

/* Listing cards keep a consistent crop regardless of source image ratio */
.listing_card {
    border: 1px solid rgba(4, 6, 24, 0.10);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow linear .3s;
}
.listing_card:hover {
    box-shadow: 0px 12px 24px 0px rgba(4, 6, 24, 0.08);
}
.listing_card_img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(4, 6, 24, 0.06);
}
.listing_card_img img {
    transition: transform linear .4s;
}
.listing_card:hover .listing_card_img img {
    transform: scale(1.06);
}
.listing_card_body {
    padding: 22px 24px 26px;
    flex-grow: 1;
}
.listing_card_body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 26px;
}
.listing_card_body h3 a {
    color: var(--colorBlack);
}
.listing_card_body h3 a:hover {
    color: var(--colorPrimary);
}
.listing_card_meta {
    color: var(--paraColor);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}
.listing_card_body p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
}
.listing_card_price {
    color: var(--colorPrimary);
    font-size: 18px;
    font-weight: 700;
    margin-top: 14px;
}

/* Ensure carousels have min height before JS init */
.owl-carousel:not(.owl-loaded) {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.owl-carousel:not(.owl-loaded) > .common_card,
.owl-carousel:not(.owl-loaded) > .common_card_2 {
    flex: 1 1 300px;
    max-width: 100%;
}

/* Footer always visible */
footer.footer_2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.newsletter-message { font-size: 14px; color: var(--colorPrimary, #0E77F3); }
.toast-container-portal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 8px;
    min-height: 16px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
img[loading="lazy"] { content-visibility: auto; }

/* Homepage advertisement slots (admin-managed images) */
.home_ads .container {
    max-width: 1320px;
}
.home_ad_slot {
    display: block;
    overflow: hidden;
    background: #eef3fa;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(4, 6, 24, 0.06);
}
.home_ad_slot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}
.home_ad_slot--square {
    aspect-ratio: auto;
    max-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home_ad_slot--square img {
    width: 100% !important;
    height: auto !important;
    max-height: 160px !important;
    object-fit: contain !important;
}
.home_ad_slot--leaderboard {
    aspect-ratio: 728 / 90;
}
.home_ad_slot--dual {
    aspect-ratio: 16 / 7;
}
.home_ads--leaderboard .home_ad_slot + .home_ad_slot {
    margin-top: 16px;
}
.home_ads_square {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.home_ads_dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ads_section_heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 28px;
}
.ads_section_heading h2 {
    font-family: 'Great Vibes', cursive;
    color: var(--colorPrimary);
    font-size: 46px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}
.ads_heading_rule {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 88px;
    flex-shrink: 0;
}
.ads_heading_rule span {
    display: block;
    border-top: 2px dashed var(--colorPrimary);
}
@media (max-width: 991px) {
    .home_ads_square {
        grid-template-columns: repeat(2, 1fr);
    }
    .home_ad_slot--square,
    .home_ad_slot--square img {
        max-height: 140px;
    }
    .home_ad_slot--square img {
        max-height: 140px !important;
    }
    .home_ad_slot--leaderboard {
        aspect-ratio: 6 / 1;
    }
    .ads_section_heading h2 {
        font-size: 36px;
    }
}
@media (max-width: 575px) {
    .home_ads_square,
    .home_ads_dual {
        grid-template-columns: repeat(2, 1fr);
    }
    .home_ads_dual {
        grid-template-columns: 1fr;
    }
    .home_ad_slot--square,
    .home_ad_slot--square img {
        max-height: 120px;
    }
    .home_ad_slot--square img {
        max-height: 120px !important;
    }
    .home_ad_slot--leaderboard {
        aspect-ratio: 3 / 1;
    }
    .home_ad_slot--dual {
        aspect-ratio: 16 / 9;
    }
    .ads_heading_rule {
        width: 48px;
    }
    .ads_section_heading h2 {
        font-size: 30px;
    }
}
.admin-search-suggestions {
    position: absolute;
    z-index: 50;
    background: #fff;
    border: 1px solid #e5e5e5;
    width: 100%;
    max-height: 320px;
    overflow: auto;
}
.admin-search-suggestions a {
    display: block;
    padding: 10px 14px;
    color: #222;
    text-decoration: none;
}
.admin-search-suggestions a:hover { background: #f5f8ff; }

/* Navbar: hide theme language-select globe on first right_menu item */
.main_menu .right_menu > li:first-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-left: 0;
}
.main_menu .right_menu > li:first-child::after,
.main_menu_2 .right_menu > li:first-child::after {
    display: none !important;
    content: none !important;
}
.main_menu .right_menu > li + li {
    margin-left: 12px;
}
.main_menu_2 .right_menu li .common_btn_login {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}
.main_menu_2 .right_menu li .common_btn_login:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.main_menu.menu_fix .right_menu li .common_btn_login,
.main_menu:not(.main_menu_2) .right_menu li .common_btn_login {
    border-color: rgba(4, 6, 24, 0.25);
    color: inherit;
}

/* Slick arrows: SVG buttons instead of Font Awesome glyphs */
button.nextArrow,
button.prevArrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
button.nextArrow svg,
button.prevArrow svg {
    display: block;
    pointer-events: none;
}
.filter_2 .filter_tabs_row {
    margin-top: 28px;
}
.filter_2 .filter_button {
    justify-content: flex-start;
    width: 100%;
}
.filter_2 .filter_button .nav-tabs {
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
}
.filter_2 .filter_button .nav-tabs .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
}
