/* Tilleggsstiler utover Tailwind */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For fixed header */
}

/* Navbar styles */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(22, 101, 52, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.bg-white {
    transition: all 0.3s ease-in-out;
}

.bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.bg-green-600 {
    transition: all 0.3s ease-in-out;
}

.bg-green-600:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
}

/* Map styles */
.leaflet-container {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-tip {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Weather widget styles */
.weather-icon {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Loading animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 6px;
}

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

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    opacity: 1;
}

#mobileMenu.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hero section parallax effect */
#hero {
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

/* Link hover effects */
a.hover\:underline {
    position: relative;
    text-decoration: none;
}

a.hover\:underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

a.hover\:underline:hover::after {
    transform: scaleX(1);
}

/* Popup-stiler */
.torpa-popup .leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.torpa-popup .leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.torpa-popup .leaflet-popup-tip {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Label-stiler */
.bygd-label div {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.neighbor-label div {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Zoom-kontroll stiler */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    background-color: white !important;
    color: #166534 !important;
    border: 1px solid rgba(22, 101, 52, 0.2) !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
}

/* Animasjoner */
.bygd-label div {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Infoboks-stiler */
.info-box {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 101, 52, 0.1);
    transition: all 0.3s ease-in-out;
    max-width: 300px;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .info-box {
        max-width: 250px;
        font-size: 0.9em;
    }
} 