/* Grundläggande styling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lora', serif; /* Brödtextfont */
    font-weight: 400;
    color: #4A4F3B; /* Mörkare textton */
    background-color: #FCFAF6; /* NY FÄRG: Ljusare bakgrundston */
    line-height: 1.6;
    overflow-x: hidden; /* Förhindra horisontell scroll från layoutproblem */
}

/* Fixar så ankar-länkar hamnar korrekt under fast header */
html {
    scroll-padding-top: 80px; /* Återställd för fixed header */
    scroll-behavior: smooth;
}

/* Header */
.fixed-header {
    position: fixed; /* Gör headern fast igen */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(237, 226, 220, 0.95); /* NY FÄRG: Lätt transparent header-färg */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Återställd en lätt skugga om den fanns innan */
    z-index: 1000; /* Behåller headern på 1000 */
    display: flex;
    justify-content: center; /* Centrera containern inuti */
    padding: 15px 40px; /* Bredare padding på desktop för marginal */
    backdrop-filter: blur(5px); /* SC Group-effekt: suddig bakgrund */
    padding-bottom: 15px; /* Återställd original padding */
}

/* Borttagen: Fade-effekten för headern */
.fixed-header::after {
    content: none; /* Tar bort pseudo-elementet */
}

.header-content-wrapper {
    width: 100%;
    max-width: 1400px; /* Bibehåll max-width för innehållet */
    display: flex;
    justify-content: center; /* Centrera rubriken */
    align-items: center;
    position: relative;
}

/* Header-titel i Tangerine Bold - grön */
.fixed-header h1 {
    font-family: 'Tangerine', cursive; /* ÅTERSTÄLLD FONT */
    font-weight: 700; /* Bold */
    font-size: 3.5em; 
    color: #4A4F3B; /* NY FÄRG: Samma gröna som titlarna */
    margin: 0;
    line-height: 1;
    flex-grow: 0; 
    text-align: center; 
}

/* NYTT: Flytande Hamburgermeny-knappen */
.hamburger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4A4F3B; /* NY FÄRG: Matchar gröna titlar */
    border: none;
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 2000; 
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: #616654; /* NY FÄRG: Lättare hover-färg för den gröna knappen */
}

.hamburger .bar {
    display: block;
    width: 60%;
    height: 2px;
    background-color: #fff; /* Fortfarande vit bar */
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}

/* Hamburgare-animation för flytande knapp */
.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Navigationsmeny (fullscreen overlay med animation) */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(237, 226, 220, 0.98); /* NY FÄRG: Hamburgermeny-bakgrund, med transparens */
    z-index: 1500; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    overflow-y: auto;
    padding-top: 0; 
    box-sizing: border-box;

    transform: translateX(100%); 
    opacity: 0; 
    visibility: hidden; 
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    pointer-events: none; 
}

.main-nav.active {
    transform: translateX(0); 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto; 
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; 
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 80%;
    max-width: 400px;
    text-align: center; 
    padding-bottom: 0; 
}

.main-nav ul li {
    padding: 15px 0;
    border-bottom: 1px solid #D6C4C0; /* Kan eventuellt behöva justeras om kontrasten blir dålig */
}

.main-nav ul li:last-child {
    border-bottom: none;
}

/* Hamburgermeny-länkar i Tangerine Bold */
.main-nav ul li a {
    text-decoration: none;
    color: #4A4F3B; /* Fortfarande mörk textfärg för kontrast */
    font-weight: 700; /* BOLD */
    font-size: 2.2em; 
    display: block;
    transition: color 0.3s ease;
    font-family: 'Tangerine', cursive; /* ÅTERSTÄLLD FONT */
}

.main-nav ul li a:hover {
    color: #778677;
}

/* Hero-sektion (full bredd bildspel) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #EDE2DC; /* NY FÄRG: Hero-sektionens bakgrund */
    margin-top: -70px; 
    padding-top: 70px; 
}

.hero-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-media-container img.active {
    opacity: 1;
}

/* Platshållare för bildladdning */
.hero-media-container .placeholder-img {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.4) 0%, 
                rgba(0, 0, 0, 0.4) 75%, 
                #FCFAF6 100% /* NY FÄRG: Gradientens nedre del */
                );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    z-index: 10;
}

.hero-overlay p {
    font-size: 2.5em;
    margin: 10px 0;
    font-family: 'Great Vibes', cursive; /* ÅTERSTÄLLD FONT */
    text-align: center;
}

.hero-overlay .hero-date {
    font-family: 'Lora', sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Nedräkningstimer i hero-sektionen */
.hero-countdown {
    font-family: 'Lora', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    margin-top: 30px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}


/* Huvudinnehåll-sektioner */
.intro-text, .content-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
    background-color: #FCFAF6; /* NY FÄRG: Innehållssektionens bakgrund */
}

/* Kategori-rubriker i Tangerine Bold */
.intro-text h2, .content-section h2 {
    font-family: 'Tangerine', cursive; /* ÅTERSTÄLLD FONT */
    font-weight: 700; /* BOLD */
    font-size: 3.5em; 
    color: #4A4F3B;
    margin-bottom: 30px;
}

.intro-text p, .content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4A4F3B;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.content-section ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #4A4F3B;
}

/* Sektion för karta och egen bild - fortfarande flexbox för att de ska ligga bredvid varandra */
.map-image-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px; 
}

.map-container,
.custom-image-container {
    flex: 1;
    min-width: 300px; 
    max-width: 500px; 
    height: 400px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #EDE2DC; /* NY FÄRG: Map/bild-container bakgrund */
    position: relative; 
}

/* Google Maps iframe */
.google-map {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1; 
    pointer-events: auto; 
    cursor: default; 
    opacity: 1; 
    transition: opacity 0.5s ease-in-out; 
}

/* Styling för fallback-text */
.map-fallback-text {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FCFAF6; /* NY FÄRG: Fallback-text bakgrund */
    color: #4A4F3B;
    font-size: 1.1em;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2; 
    opacity: 1; 
    transition: opacity 0.5s ease-in-out;
    text-align: center; 
}

.map-fallback-text p {
    margin: 5px 0;
}

/* Döljer fallback-texten när kartan är laddad */
.google-map.map-loaded .map-fallback-text {
    opacity: 0;
    pointer-events: none; 
}

/* Gör karta och bild klickbara */
#zoomable-map-image {
    cursor: pointer;
}

/* Overlay för att fånga upp klick till Google Maps */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    cursor: pointer; 
    background: transparent; 
    pointer-events: auto; 
}

/* Se till att bilden fyller sin container och är responsiv */
.custom-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* OSA-knapp styling */
.osa-button {
    display: inline-block;
    background-color: #D0A7A1; /* Behåller denna färg för nu, kan justeras vid behov */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.osa-button:hover {
    background-color: #B28E89;
}

/* Extra utrymme i botten av sidan */
.bottom-space {
    height: 100px; 
    background-color: transparent;
}


/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000; 
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* --- Media Queries --- */

main {
    position: relative; 
    z-index: 1; 
}

@media (max-width: 1024px) {
    .fixed-header {
        padding: 10px 25px;
        padding-bottom: 10px; 
    }
    .fixed-header h1 {
        font-size: 3em; 
    }
    .hamburger {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .hamburger .bar {
        margin: 3px 0;
    }
    .main-nav {
        padding-top: 0;
    }
    .main-nav ul li a {
        font-size: 2em; 
    }
    .intro-text h2, .content-section h2 {
        font-size: 3em; 
    }
}

@media (max-width: 768px) {
    .fixed-header {
        padding: 10px 20px;
        padding-bottom: 10px; 
    }
    .fixed-header h1 {
        font-size: 2.5em; 
    }
    .hamburger {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 20px;
    }
    .hamburger .bar {
        height: 3px;
        margin: 5px 0;
    }
    .main-nav {
        padding-top: 0;
    }
    .main-nav ul li a {
        font-size: 1.8em; 
    }
    .lightbox-modal {
        padding-top: 30px;
    }
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    .map-image-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .intro-text h2, .content-section h2 {
        font-size: 2.5em; 
    }
}
