/* ------------------------------------------------------
   CUSTOM SCROLLBAR
------------------------------------------------------ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F5EF;
}

::-webkit-scrollbar-thumb {
    background: #C49A6C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0F3B33;
}

/* ------------------------------------------------------
   ANIMATIONS
------------------------------------------------------ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* ------------------------------------------------------
   MAP ZONE HOVER EFFECT
------------------------------------------------------ */
.map-zone:hover {
    background-color: #C49A6C !important;
    border-color: #0F3B33 !important;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.map-zone:hover span {
    color: #0F3B33;
}

.map-zone.active-zone {
    background-color: #C49A6C !important;
    border-color: #0F3B33 !important;
    box-shadow: 0 0 0 4px rgba(196, 154, 108, 0.3);
}

/* ------------------------------------------------------
   NAV ACTIVE LINK
------------------------------------------------------ */
.active-nav {
    color: #C49A6C !important;
    position: relative;
}

.active-nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C49A6C;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C49A6C;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ------------------------------------------------------
   STICKY HEADER GLASS EFFECT
------------------------------------------------------ */
.header-scrolled {
    background-color: rgba(15, 59, 51, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-scrolled .text-text-main {
    color: #F3E6D4 !important;
}

.header-scrolled .logo {
    color: #F3E6D4 !important;
}

.header-scrolled .logo span {
    color: #F3E6D4 !important;
}

.header-scrolled .logo .text-primary {
    color: #F3E6D4 !important;
}

.header-scrolled .text-text-muted {
    color: #9CA3AF !important;
}

.header-scrolled .group-hover\:text-primary:hover {
    color: #C49A6C !important;
}

/* Language Dropdown in Scrolled State */
.header-scrolled .group > button {
    color: #F3E6D4 !important;
}

.header-scrolled .group > button:hover {
    color: #C49A6C !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.header-scrolled .group:hover > button {
    color: #C49A6C !important;
}

/* Dropdown menu stays white background */
.header-scrolled .group > div {
    background-color: #ffffff;
}

/* ------------------------------------------------------
   MOBILE MENU TRANSITION
------------------------------------------------------ */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* ------------------------------------------------------
   DETAIL PAGE TYPOGRAPHY
------------------------------------------------------ */
.detail-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #0F3B33;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #C49A6C;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.detail-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #4B5563;
}

.detail-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4B5563;
}

.detail-content li {
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------
   GLOBAL BACKGROUND PATTERN
   (Final working version – no conflicts, clean)
------------------------------------------------------ */
@layer components {

    .bg-white-pattern {
        background-color: #ffffff;
        position: relative;
        isolation: isolate;
        overflow: hidden;
    }

    .bg-white-pattern::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('../../img/desen.png');
        background-repeat: repeat;
        background-size: 600px auto;
        opacity: 0.12;
        filter: brightness(0.9) contrast(1.2);
        pointer-events: none;
        z-index: -1;
    }

    .bg-white-pattern>* {
        position: relative;
        z-index: 1;
    }

    .bg-paper-pattern {
        background-color: #F9F7F2;
        position: relative;
        isolation: isolate;
        overflow: hidden;
    }

    .bg-paper-pattern::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('../../img/desen.png');
        background-repeat: repeat;
        background-size: 600px auto;
        opacity: 0.12;
        filter: brightness(0.9) contrast(1.2);
        pointer-events: none;
        z-index: -1;
    }

    .bg-paper-pattern>* {
        position: relative;
        z-index: 1;
    }
}

/* ------------------------------------------------------
   DARK SCROLLBAR VARIANT
------------------------------------------------------ */
.scrollbar-dark {
    scrollbar-width: thin;
    scrollbar-color: #C49A6C #0c0505;
}

.scrollbar-dark::-webkit-scrollbar {
    height: 8px;
    /* Horizontal scrollbar height */
}

.scrollbar-dark::-webkit-scrollbar-track {
    background: #0c0505;
}

.scrollbar-dark::-webkit-scrollbar-thumb {
    background: #C49A6C;
    border-radius: 4px;
}

.scrollbar-dark::-webkit-scrollbar-thumb:hover {
    background: #a37e58;
}

.bg-transparent {
    background-color: transparent !important;
}