/* 
 * Guide Explorateur - Classic Design Styles
 */

/* Micro-animations */
.hover-scale {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.group:hover .hover-scale {
    transform: scale(1.08);
}

/* Fix for Custom Logo - Overlapping Effect */
.site-branding {
    position: relative;
    z-index: 1050; /* Keep it above other elements */
}

.custom-logo {
    max-height: 150px; /* Significantly increased size */
    width: auto;
    max-width: none;
    margin-bottom: -80px; /* Creates the "half in, half out" overlap effect */
    position: relative;
    z-index: 1050;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); /* Adds a nice shadow to make it pop over the content below */
}

@media (max-width: 991.98px) {
    #masthead .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    #masthead .row > .col-8.col-lg-2 {
        grid-column: 2;
        width: auto;
    }

    #masthead .row > .col-4.col-lg-3 {
        grid-column: 3;
        width: auto;
    }

    #masthead .site-branding {
        display: flex;
        justify-content: center;
    }

    .custom-logo {
        max-height: 60px !important;
        margin-bottom: 0 !important;
        max-width: 100% !important;
    }
}

.hover-translate-y {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hover-translate-y:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.tracking-wide {
    letter-spacing: 0.15em;
}

/* Base Text Colors & Typography */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-dark { color: var(--color-dark) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-light { background-color: var(--color-light) !important; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

body, p {
    color: var(--color-dark);
    line-height: 1.7;
}

/* Link Resets */
.nav a {
    color: var(--color-dark);
}
.nav a:hover,
.hover-text-accent:hover {
    color: var(--color-accent) !important;
}

/* Remove the blue click flash from navigation dropdowns. */
#masthead .nav a,
#mobileMenu .nav a {
    -webkit-tap-highlight-color: transparent;
}

#masthead .nav a:focus:not(:focus-visible),
#mobileMenu .nav a:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

#masthead .dropdown-menu .dropdown-item:active,
#mobileMenu .dropdown-menu .dropdown-item:active {
    background-color: transparent !important;
}

/* Gradient Overlay */
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 35, 149, 0.8) 0%, rgba(0,0,0,0.1) 100%);
}

/* Sticky Header Transition */
.site-header {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    padding: 0.25rem 0 !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Button Styling */
.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-accent:hover,
.btn-accent:focus,
.btn-accent:focus-visible {
    background-color: #e07419;
    border-color: #e07419;
    color: white;
}

.btn-accent:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.btn-primary-custom {
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
}
.btn-primary-custom:hover {
    background-color: var(--color-secondary);
    color: white;
}
/* Clean Structured Containers */
.card {
    border-color: rgba(0,0,0,0.05);
}

/* Icons */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(237, 41, 57, 0.1); /* Secondary light */
    color: var(--color-secondary);
    font-size: 1.5rem;
}

/* Responsive Font Sizes */
@media (max-width: 767.98px) {
    .display-2 { font-size: 2.75rem; }
    .display-3 { font-size: 2.25rem; }
    .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
    .display-6 { font-size: 1.35rem; }
}

/* Mobile Offcanvas Menu Fixes */
#mobileMenu .nav a,
#mobileMenu .sub-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    #mobileMenu .sub-menu a,
    #mobileMenu .dropdown-menu a {
        color: #ED2939 !important;
    }

   #mobileMenu .dropdown-menu a {
        color: #ED2939 !important;
    }
}
#mobileMenu .nav a:hover,
#mobileMenu .sub-menu a:hover {
    color: var(--color-accent) !important;
}
#mobileMenu .sub-menu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

#mobileMenu .sub-menu a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7) !important;
}
.video-swiper-button-prev,
.video-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

.video-swiper-button-prev {
    left: -45px;
}

.video-swiper-button-next {
    right: -45px;
}
.gallery-slider-section .container {
    position: relative;
}

.gallery-swiper-button-prev,
.gallery-swiper-button-next {
    position: absolute;
    top: 62%;
    transform: translateY(-50%);
    z-index: 20;
    font-size: 48px;
    font-weight: 700;
    color: #002395;
    cursor: pointer;
    line-height: 1;
}

.gallery-swiper-button-prev {
    left: -45px;
}

.gallery-swiper-button-next {
    right: -45px;
}
.testimonial-swiper-button-prev,
.testimonial-swiper-button-next {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    z-index: 20;
    font-size: 48px;
    font-weight: 700;
    font-family: Poppins, sans-serif;
    color: #002395;
    cursor: pointer;
    line-height: 1;
}

.testimonial-swiper-button-prev {
    left: 12px;
}

.testimonial-swiper-button-next {
    right: 15px;
}
@media (max-width: 575.98px) {
    .testimonial-slider .card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 520px !important;
    }

    .testimonial-slider .testimonial-preview {
        height: 117.8px !important;
        flex-shrink: 0 !important;
    }
}


@media (max-width: 991px) {
    .video-swiper-button-prev,
    .video-swiper-button-next,
    .gallery-swiper-button-prev,
    .gallery-swiper-button-next,
    .testimonial-swiper-button-prev,
    .testimonial-swiper-button-next {
        display: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    #ouvrir-avis-manuscrits:hover,
    #ouvrir-avis-manuscrits:focus,
    #ouvrir-avis-manuscrits:active,
    a.btn.btn-outline-dark[href="#destinations"]:hover,
    a.btn.btn-outline-dark[href="#destinations"]:focus,
    a.btn.btn-outline-dark[href="#destinations"]:active {
        background-color: transparent !important;
        color: #212529 !important;
        border-color: #212529 !important;
        box-shadow: none !important;
    }
}

/* Mobile Offcanvas Bootstrap Dropdown Fix */
@media (max-width: 991px) {
    #mobileMenu .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .featured-experience .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .featured-experience .btn-accent {
        font-size: 1rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        white-space: nowrap;
    }
}

/* WhatsApp Channel instant desktop tooltip */
@media (hover: hover) and (pointer: fine) {
    .whatsapp-channel-link {
        position: relative;
    }
}
    
    /* Travel Library article images */
.travel-library-article-content img {
	border-radius: 16px;
	max-width: 100%;
	height: auto;
}

/* Travel Library desktop sticky sidebar */
@media (min-width: 992px) {
	.travel-library-sidebar {
		position: sticky;
		top: 140px;
		margin-top: 80px;
	}
	
	/* Travel Library search-results heading */
.travel-search-title {
	font-size: 2rem;
	line-height: 1.25;
}

.travel-search-title span {
	color: #ED2939;
	text-transform: capitalize;
}

.travel-search-header {
	margin-top: 32px;
}
}

/* Gallery lightbox */
.gallery-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
}

.gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.94);
}

.gallery-lightbox[open] {
    display: grid;
    place-items: center;
}

.gallery-lightbox__content {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    width: min(96vw, 1500px);
    height: 100%;
    margin: auto;
    padding: 72px 20px 30px;
}

.gallery-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    margin: 0;
}

.gallery-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 140px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    user-select: none;
}

.gallery-lightbox__caption {
    min-height: 1.5em;
    margin-top: 12px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.gallery-lightbox__close,
.gallery-lightbox__previous,
.gallery-lightbox__next {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__previous:hover,
.gallery-lightbox__next:hover {
    background: #E67E22;
}

.gallery-lightbox__close:focus-visible,
.gallery-lightbox__previous:focus-visible,
.gallery-lightbox__next:focus-visible {
    outline: 3px solid #E67E22;
    outline-offset: 3px;
}

.gallery-lightbox__close {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 3;
    width: 48px;
    height: 48px;
    font-size: 36px;
    line-height: 1;
}

.gallery-lightbox__previous,
.gallery-lightbox__next {
    width: 52px;
    height: 64px;
    font-size: 38px;
    line-height: 1;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gallery-lightbox__content {
        display: flex;
        width: 100vw;
        padding: 64px 12px 24px;
    }

    .gallery-lightbox__figure {
        width: 100%;
    }

    .gallery-lightbox__image {
        max-height: calc(100dvh - 130px);
    }

    .gallery-lightbox__caption {
        font-size: 14px;
    }

    .gallery-lightbox__close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

       .gallery-lightbox__previous,
    .gallery-lightbox__next {
        display: none;
    }
}
@media (max-width: 767px) {
    .traveler-explorer-card {
        border-radius: 0 !important;
    }

    .about-preview img {
        height: auto !important;
    }
}