/* Global */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Hero header */
header.hero {
    background-image: url('images/omgNederlandenZomer-2.jpg');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

header.hero h1 {
    font-size: 3rem;
    margin: 0;
}

header.hero p {
    font-size: 1.3rem;
}

/* Navigation */
.main-nav {
    background: #1B4D3E;
    position: relative;
}

/* Sticky navbar (alleen desktop) */
@media (min-width: 769px) {
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Language switch */
.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.lang-switch button {
    background: transparent;
    border: 1px solid rgba(255,255,255,.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.lang-switch button.active {
    background: #fff;
    color: #1B4D3E;
}

/* Container & Sections */
.container {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

.text-block {
    margin-bottom: 30px;
}

h2 {
    color: #1B4D3E;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1B4D3E;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    background: #f2f2f2;
    font-size: 0.9rem;
}

/* Carousels */
.carousel {
    max-width: 600px;
    margin: 40px 0;
    text-align: left;
}

.omgeving-carousel {
    max-width: 800px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    border-right: 2px solid #fff;
}

/* Carousel buttons */
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,77,102,0.6);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.carousel button:hover {
    background-color: rgba(0,77,102,0.9);
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

/* Google Maps sizing: smaller on desktop, bigger on mobile */
.map-container {
    width: 100%;
    max-width: 500px;   /* desktop */
    height: 300px;      /* desktop */
    margin-top: 10px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .map-container {
        max-width: 100%;
        height: 380px;
    }
}

/* === Mobiel hamburgermenu === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
}


/* Mobiel gedrag */
@media (max-width: 768px) {

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
    padding: 14px 16px;
  }

  /* uitklapmenu */
  .main-nav ul.nav-list {
    width: 100%;
    flex-direction: column;
    align-items: center;
    display: none;
    padding-bottom: 10px;
    order: 3;
  }

  .main-nav ul.nav-list.open {
    display: flex;
  }

  .main-nav li {
    margin: 10px 0;
  }

  /* taal rechts op dezelfde regel */
  .lang-switch {
    position: static;
    transform: none;
    padding: 0 16px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
}


section[id] {
  scroll-margin-top: 40px; /* hoogte van de navbar */
}