:root {
    --primary-green: #0e8f0e;
    --primary-blue: #00c4ff;
    --dark-bg: #343434;
}

#map {
    z-index: 10; /* Higher than form */
    position: relative; /* Required for z-index */
    isolation: isolate; /* New stacking context */
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.active-link {
    color: var(--primary-blue);
    font-weight: 500;
}

.active-link::after {
    width: 100%;
}

.geotourism-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.geotourism-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.geotourism-card img {
    transition: transform 0.5s ease;
}

.geotourism-card:hover img {
    transform: scale(1.05);
}

.carousel-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.carousel-item.active {
    display: block;
}

.language-switcher {
    position: relative;
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 120px;
    z-index: 100;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
}

#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

/* Loading animation for cards */
.card-loading {
    position: relative;
    overflow: hidden;
}

.card-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Map container */
#map {
    height: 100%;
    min-height: 400px;
    z-index: 10;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0c7e0c;
}

/* Print styles */
@media print {
    nav, footer, #backToTop {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}
