/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo-container #logo {
    height: 40px; 
    width: auto;
}

header .logo-container h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #ecf0f1;
    font-weight: bold;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin-left: 15px;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: #3498db;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #ecf0f1;
    color: #ecf0f1;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

/* Main Content Styles */
main {
    padding: 1rem 1.5rem; /* Added horizontal padding */
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Hero Section */
#hero {
    position: relative; 
    text-align: center;
    color: white;
    width: 100%;
    height: 300px; 
    overflow: hidden; /* Ensure content within hero is clipped if it overflows */
}

#hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    /* z-index: -1; Removed, will control stacking with hero-text */
}

.hero-text {
    position: relative; /* Changed from absolute to relative to ensure it's in normal flow on top of the image */
    z-index: 1; /* Ensure text is above the image */
    /* Centering will be handled by flexbox on parent or text-align if it's block */
    /* top: 50%; left: 50%; transform: translate(-50%, -50%); -- Removed for simpler stacking */
    /* Re-add centering for the text box itself if needed, but image is background now */
    display: flex; /* Using flex to center content within hero-text */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Make hero-text take full height of #hero to center its content */
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    width: 90%; /* This width is for the text box, not the full hero */
    max-width: 600px;
    box-sizing: border-box;
    margin: auto; /* Center the text box if #hero is flex container or if .hero-text is block */
}

.hero-text h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.3;
    color: white;
}

/* Intro Content & Other Sections */
#intro,
section[id$="-content"] {
    padding: 1.5rem;
    text-align: left;
}

/* Styling for images within content sections */
section[id$="-content"] img {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 1rem auto; 
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#intro h3,
section[id$="-content"] h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

#intro p, 
section[id$="-content"] p,
section[id$="-content"] ul li,
section[id$="-content"] ol li {
    margin-bottom: 1rem;
}

section[id$="-content"] ul,
section[id$="-content"] ol {
    list-style-position: outside;
    padding-left: 20px;
    margin-left: 0;
}

/* Quick Links */
#quick-links {
    padding: 1.5rem;
    text-align: center;
}
#quick-links h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: inline-block;
}

#quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

#quick-links ul li a {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: block;
    min-width: 150px;
}

#quick-links ul li a:hover {
    background-color: #2980b9;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .logo-container #logo {
        height: 40px; /* Increased from 30px */
    }
    
    header .logo-container h1 {
        font-size: 1.2rem;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #2c3e50;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav li {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }

    nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #34495e;
    }
    
    nav li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }
    
    #hero {
        height: 250px;
    }

    .hero-text h2 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-text {
        padding: 0.75rem 1rem;
        width: 85%;
    }

    #quick-links ul li {
        flex-basis: calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    header .logo-container #logo {
        height: 25px;
    }
    header .logo-container h1 {
        font-size: 1rem;
    }

    #hero {
        height: 200px;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }
    .hero-text {
        width: 90%;
    }
    #quick-links ul li {
        flex-basis: 100%;
    }
    section[id$="-content"], #intro {
        padding: 1rem;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.lightbox-content img {
    width: 100%;
    height: auto;
}

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

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



/* Styling for specific content images to ensure scaling */
.content-image {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 1rem auto; 
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive map styling */
.responsive-map {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Map link styling */
.map-link-container {
    margin: 1.5rem 0;
    text-align: center;
}

.map-link {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.map-link:hover {
    background-color: #2980b9;
    text-decoration: none;
}



/* Photo Collage Styles */
.photo-collage {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
    gap: 1rem; /* Space between images */
    margin: 1rem 0; /* Margin above and below the collage */
}

.photo-collage img {
    flex: 1 1 calc(50% - 0.5rem); /* Each image takes up roughly half the width, adjusting for gap */
    max-width: calc(50% - 0.5rem); /* Ensure images don't exceed half width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive adjustments for photo collage */
@media (max-width: 600px) {
    .photo-collage img {
        flex-basis: 100%; /* Each image takes full width on smaller screens */
        max-width: 100%;
    }
}




/* Fly Gallery Styles */
.fly-gallery {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.fly-gallery h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.fly-item {
    margin-bottom: 1rem;
    text-align: center; /* Center the image and caption */
}

.fly-item img {
    max-width: 200px; /* Limit fly image size */
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.fly-item .caption {
    font-size: 0.85rem; /* Small text for caption */
    color: #555;
    margin-top: 0.25rem;
}




/* Heta Fiskeställen Gallery Styles */
.hotspots-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Space between images */
    margin-top: 1rem;
}

.hotspot-item {
    flex: 1 1 calc(33.333% - 1rem); /* Adjust for 3 images per row, considering gap */
    max-width: calc(33.333% - 1rem);
    text-align: center;
    margin-bottom: 1rem;
}

.hotspot-item img {
    max-width: 100%; /* Image will scale within its container */
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hotspot-item .caption {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.25rem;
}

/* Responsive adjustments for hotspots gallery */
@media (max-width: 900px) {
    .hotspot-item {
        flex-basis: calc(50% - 0.5rem); /* 2 images per row */
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 600px) {
    .hotspot-item {
        flex-basis: 100%; /* 1 image per row */
        max-width: 100%;
    }
}




/* Image to be fully visible */
.full-view-image {
    max-width: 100%;
    max-height: 80vh; /* Ensure it fits vertically within 80% of viewport height */
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: contain; /* Ensures the entire image is shown, letterboxed if necessary, maintaining aspect ratio */
}




/* Side-by-side Images Styles */
.side-by-side-images {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 1rem; /* Space between images */
    margin: 1rem 0; /* Margin above and below the container */
    align-items: flex-start; /* Align items to the top */
}

.sbs-item {
    flex: 1 1 calc(50% - 0.5rem); /* Each item takes up roughly half the width, adjusting for gap */
    max-width: calc(50% - 0.5rem); /* Ensure items don't exceed half width on larger screens */
    box-sizing: border-box;
}

.sbs-item img {
    max-width: 100%; /* Image will scale within its container */
    height: auto;
    display: block; 
    margin: 0 auto; /* Center image if it's smaller than container */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Flight details specific styling */
.flight-details {
    margin: 1.5rem 0;
}

.flight-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

/* Responsive adjustments for side-by-side images */
@media (max-width: 768px) {
    .sbs-item {
        flex-basis: 100%; /* Each item takes full width on smaller screens */
        max-width: 100%;
        margin-bottom: 1rem; /* Add some space between stacked images */
    }
    .sbs-item:last-child {
        margin-bottom: 0;
    }
}
