/* Custom CSS for Hotel Mandji - Color Override */
/* Brand Colors: #1c3d33 (vert), #e5ba7c (or/beige) */

:root {
    --color-primary: #1c3d33;
    --color-primary-dark: #142b24;
    --color-secondary: #e5ba7c;
    --color-secondary-dark: #d4a760;
    --color-secondary-light: #f0d6a8;
}

/* Override template colors */
/* Replace #978667 (template gold) with #e5ba7c (Mandji gold) */
/* Replace #24262d and #292b33 (template dark) with #1c3d33 (Mandji green) */

/* Headers and Navigation */
header.fixed_header,
header.menu_v4,
header.fixed_header.menu_v4 {
    background-color: transparent !important;
    transition: all 0.3s ease;
}

header.fixed_header.scrolled,
header.menu_v4.scrolled,
header.fixed_header.menu_v4.scrolled {
    background: linear-gradient(to bottom, rgba(28, 61, 51, 0.98), rgba(28, 61, 51, 0.92)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Logo reste le même (blanc avec symbole jaune) */
header.fixed_header .logo_normal img {
    filter: none;
}

header.fixed_header.scrolled .logo_normal img {
    filter: none;
}

/* Menu text color */
header.fixed_header:not(.scrolled) #mainNav a {
    color: #ffffff !important;
    white-space: nowrap;
}

header.fixed_header.scrolled #mainNav a {
    color: #ffffff !important;
    white-space: nowrap;
}

header.fixed_header:not(.scrolled) #mainNav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

header.fixed_header.scrolled #mainNav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e5ba7c !important;
}

/* CTA button in nav */
header.fixed_header:not(.scrolled) #mainNav .btn_1 {
    background: #e5ba7c !important;
    color: #1c3d33 !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

header.fixed_header.scrolled #mainNav .btn_1 {
    background: #e5ba7c !important;
    color: #1c3d33 !important;
    border: 2px solid #e5ba7c;
}

/* Hamburger menu */
header.fixed_header:not(.scrolled) .hamburger__inner,
header.fixed_header:not(.scrolled) .hamburger__inner::before,
header.fixed_header:not(.scrolled) .hamburger__inner::after {
    background-color: #ffffff;
}

header.fixed_header.scrolled .hamburger__inner,
header.fixed_header.scrolled .hamburger__inner::before,
header.fixed_header.scrolled .hamburger__inner::after {
    background-color: #ffffff;
}

.hero_in.general,
.hero_in {
    background-color: #1c3d33 !important;
}

/* Primary buttons and links */
.btn_1,
.btn-primary,
a.btn_1 {
    background-color: #e5ba7c !important;
    border-color: #e5ba7c !important;
    color: #1c3d33 !important;
}

.btn_1:hover,
.btn-primary:hover,
a.btn_1:hover {
    background-color: #d4a760 !important;
    border-color: #d4a760 !important;
}

/* Secondary elements */
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #e5ba7c !important;
}

/* Links and accents */
a {
    color: #1c3d33;
}

a:hover {
    color: #e5ba7c;
}

/* Backgrounds with gold */
.pattern_dots,
.bg_color_1 {
    background-color: #f0d6a8 !important;
}

/* Dark backgrounds */
.bg_color_2 {
    background-color: #1c3d33 !important;
}

/* Footer specific styles */
footer .footer_bg .gradient_over {
    background: linear-gradient(to bottom, rgba(28, 61, 51, 0.5) 0%, rgba(28, 61, 51, 0.7) 100%) !important;
}

footer.revealed .footer_bg {
    opacity: 1 !important;
}

footer .copy {
    background-color: #142b24 !important;
    padding: 20px 0;
}

/* Form elements */
.form-control:focus,
.nice-select:focus,
input:focus,
textarea:focus {
    border-color: #e5ba7c !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 186, 124, 0.25) !important;
}

/* Light spacing tweaks for booking qty inputs */
.qty-buttons .qty {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.qty-buttons .qtyplus,
.qty-buttons .qtyminus {
    padding: 0 10px !important;
}

/* Icons and special elements */
.icon_box i {
    color: #e5ba7c !important;
}

.marker {
    background-color: #e5ba7c !important;
}

/* Room cards */
.room_list .price span {
    color: #e5ba7c !important;
}

/* Parallax overlays */
.parallax_content h1,
.parallax_content h2,
.hero_single h1,
.hero_single h2 {
    color: #ffffff !important;
}

/* Adventure elements */
.adventure_feat {
    background: #1c3d33 !important;
}

.adventure_feat:hover {
    background: #e5ba7c !important;
}

/* Custom scrollbar */
::-webkit-scrollbar-thumb {
    background: #1c3d33;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5ba7c;
}

/* Override any hardcoded colors */
[style*="#978667"] {
    color: #e5ba7c !important;
}

[style*="#24262d"],
[style*="#292b33"] {
    background-color: #1c3d33 !important;
}

/* New Minimal Language Selector */
.lang-selector-wrapper {
    margin: 0 10px;
}

.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-current,
.lang-btn {
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
}

.lang-current:hover,
.lang-btn:hover {
    background: rgba(229, 186, 124, 0.2);
    transform: scale(1.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .lang-selector-wrapper {
        display: block;
        text-align: center;
        margin: 15px 0;
    }
    
    .lang-current {
        font-size: 28px;
    }
    
    .lang-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .lang-selector.active .lang-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* Old Custom Language Selector - to be removed */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(229, 186, 124, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 14px;
}

header.scrolled .language-current {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(229, 186, 124, 0.5);
}

.language-current:hover {
    background: rgba(229, 186, 124, 0.2);
    border-color: #e5ba7c;
}

.language-current .flag {
    font-size: 18px;
}

.language-current i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #1c3d33;
    font-size: 14px;
}

.language-option:hover {
    background: #f5f5f5;
}

.language-option:first-child {
    border-radius: 12px 12px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 12px 12px;
}

.language-option .flag {
    font-size: 20px;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .language-selector {
        margin: 10px 0;
    }
    
    .language-current {
        justify-content: center;
        width: 100%;
    }
    
    .language-dropdown {
        left: 0;
        right: 0;
    }
}

/* Remove Google Translate banner if it appears */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Responsive adjustments */
/* Ken Burns effect for hero image */
.jarallax-img.kenburns {
    animation: kenburns 20s ease-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

@media (max-width: 991px) {
    #google_translate_element {
        position: static;
        margin-top: 10px;
        transform: none;
    }
}

/* Footer adjustments with enhanced parallax */
footer.revealed .row.move_content {
    padding-top: 100px !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 2;
}

footer.revealed .footer_bg {
    min-height: 550px;
    position: relative;
}

footer.revealed .footer_bg .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transform: translateY(-10%);
    transition: transform 0.5s ease-out;
}

footer.revealed.in-view .footer_bg .background-image {
    transform: translateY(0);
}

footer.revealed {
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Lighter gradient for better image visibility */
footer .footer_bg .gradient_over {
    background: linear-gradient(to bottom, 
        rgba(28, 61, 51, 0.1) 0%, 
        rgba(28, 61, 51, 0.2) 50%,
        rgba(28, 61, 51, 0.3) 100%) !important;
}

/* Ensure footer content stays below */
footer.revealed .container {
    position: relative;
    z-index: 10;
}

/* Reduce footer width on large screens */
@media (min-width: 1400px) {
    footer.revealed .container {
        max-width: 1200px;
    }
}

@media (max-width: 767px) {
    footer.revealed .row.move_content {
        padding-top: 60px !important;
    }
    
    footer.revealed .footer_bg {
        min-height: 450px;
    }
}

/* Styles pour le bouton de traducteur translucide */
.gt_float_switcher {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.gt_float_switcher:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.gt_float_switcher .gt_selected {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    border-radius: 50% !important;
}

.gt_float_switcher .gt_selected img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
}

.gt_float_switcher .gt_selected span {
    display: none !important;
}

.gt_float_switcher .gt_switcher_dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.gt_float_switcher .gt_switcher_dropdown a {
    padding: 8px 12px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
}

.gt_float_switcher .gt_switcher_dropdown a:hover {
    background-color: rgba(44, 62, 80, 0.1) !important;
}

/* Masquer le texte, ne montrer que les drapeaux */
.gt_float_switcher .gt_switcher_dropdown a span {
    display: none !important;
}

.gt_float_switcher .gt_switcher_dropdown a img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    margin-right: 0 !important;
}

/* Animation d'apparition */
@keyframes gtFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gt_float_switcher .gt_switcher_dropdown {
    animation: gtFadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .gt_float_switcher {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .gt_float_switcher .gt_selected img {
        width: 20px !important;
        height: 20px !important;
    }
}