.nav-btn {
    background: #fff;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    margin-left: 12px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s;
    position: relative;
    z-index: 2001;
}
.nav-btn:hover, .nav-btn:focus {
    background: #f5f5f5;
    color: #0078d7;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 44px;
    left: 60px;
    min-width: 220px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 2000;
}
.nav-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.nav-dropdown-content {
    padding: 16px 18px;
    color: #222;
    font-size: 15px;
    line-height: 1.6;
}
.navbar .nav-btn + .nav-dropdown {
    left: auto;
    right: 0;
}
.nav-left {
    display: flex;
    align-items: center;
    position: relative; /* anchor absolute dropdowns */
    gap: 0;
}
@media (max-width: 900px) {
    .nav-btn, .nav-dropdown {
        left: 0 !important;
        right: auto !important;
        min-width: 90vw;
    }
    .nav-dropdown {
        top: 48px;
    }
}
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30,30,30,0.92);
    padding: 10px 24px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
}
.hamburger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0.5;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 180px;
    flex-direction: column;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.dropdown-item {
    color: #222;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: #f5f5f5;
}
.dropdown-item.has-sub:after {
    content: '\25BC';
    float: right;
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s;
}
.dropdown-item.has-sub.open:after {
    transform: rotate(-180deg);
}
.sub-dropdown {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border-radius: 8px;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 2000;
}
.sub-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.sub-content {
    padding: 16px 18px;
    color: #222;
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 4vw;
    }
    .dropdown-menu {
        min-width: 98vw;
        left: 0;
        right: 0;
    }
    .sub-dropdown {
        left: 0;
        top: 100%;
        min-width: 90vw;
    }
}
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../Images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h1 {
    text-align: center;
    color: #333;
}
label {
    display: block;
    margin-top: 12px;
    color: #555;
}
input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
button:hover {
    background: #005fa3;
}
.result {
    margin-top: 24px;
    background: #e7f3ff;
    padding: 16px;
    border-radius: 6px;
    color: #222;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin: 28px 0;
}
.feature.reverse {
    direction: rtl;
}
.feature.reverse .feature-text,
.feature.reverse .feature-image {
    direction: ltr;
}
.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: block;
}

.feature-text h2 {
    margin-top: 0;
    color: #222;
}

@media (max-width: 800px) {
    .feature {
        grid-template-columns: 1fr;
    }

    .feature.reverse {
        direction: ltr;
    }

    .feature-image img {
        max-height: 320px;
        object-fit: cover;
    }

}

.page-woonplaats .glass-box { border-left: 6px solid #2b8a3e; }
.page-lunch .glass-box { border-left: 6px solid #d97706; }
.page-bezienswaardigheden .glass-box { border-left: 6px solid #1e90ff; }
.page-sport .glass-box { border-left: 6px solid #8b2be2; }
.page-bedrijven .glass-box { border-left: 6px solid #0b5; }

.town-map { margin-top: 18px; }
.map-placeholder { background: linear-gradient(135deg, #fff, #f3f6f4); border-radius: 8px; padding: 20px; text-align: center; color: #666; }

/* layout map images side-by-side on wider viewports; stack on small screens */
.map-placeholder {
    display: flex;
    gap: 12px;
    align-items: flex-start; /* align tops so both images' upper areas are visible */
    justify-content: center;
    flex-wrap: wrap;
}

.glass-box {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
    max-width: 980px;
    margin: 40px auto;
    padding: 36px 32px;
    box-sizing: border-box;
}

.glass-box > section, .glass-box > aside, .glass-box > p, .glass-box .feature, .glass-box .town { background: rgba(255,255,255,0.95); padding: 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(18,24,32,0.06); margin-bottom: 18px; max-width: 760px; margin-left: auto; margin-right: auto; }

.page-woonplaats::before, .page-lunch::before, .page-bezienswaardigheden::before, .page-sport::before, .page-bedrijven::before { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.page-woonplaats::before { background: radial-gradient(circle at 10% 20%, rgba(43,138,62,0.05), transparent 20%), radial-gradient(circle at 90% 80%, rgba(16,124,82,0.03), transparent 25%), linear-gradient(180deg, rgba(0,0,0,0.02), transparent); }
.page-lunch::before { background: radial-gradient(circle at 10% 10%, rgba(217,119,6,0.08), transparent 18%), linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02)); }
.page-bezienswaardigheden::before { background: radial-gradient(circle at 80% 10%, rgba(30,144,255,0.04), transparent 22%), linear-gradient(90deg, rgba(0,0,0,0.015), transparent); }
.page-sport::before { background: radial-gradient(circle at 20% 80%, rgba(139,43,226,0.06), transparent 20%), linear-gradient(180deg, rgba(0,0,0,0.035), transparent); }
.page-bedrijven::before { background: radial-gradient(circle at 85% 20%, rgba(0,0,0,0.06), transparent 20%), linear-gradient(90deg, rgba(0,0,0,0.08), rgba(0,0,0,0.03)); }

.page-hero { text-align:center; margin-bottom:10px; }
.page-hero .hero-icon { font-size:40px; margin-bottom:6px; }
.page-hero .subtitle { color: #555; margin-top:6px; margin-bottom:8px; }
.decor-divider { margin: 8px 0 16px 0; }

.rating { margin-top:10px; color:#c08700; }
.badge { background:#0b5; color:#043; padding:2px 8px; border-radius:8px; font-size:12px; margin-left:8px; }

.schedule { margin-top:12px; background: #fafafa; padding:10px; border-radius:8px; }

.img-modal { position:fixed; inset:0; background: rgba(0,0,0,0.6); display:none; align-items:center; justify-content:center; z-index:9999; }
.img-modal.show { display:flex; }
.img-modal-content img { max-width:90vw; max-height:90vh; border-radius:8px; box-shadow:0 12px 40px rgba(0,0,0,0.6); }

/* Small tweaks */
.company h4 { display:flex; align-items:center; gap:8px; }

/* Food cards */
.food-cards .cards { display:flex; gap:14px; margin-top:12px; }
.food-cards .card {
    background: #fff;
    padding:12px;
    border-radius:8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    flex:1;
}

/* Mini gallery (slightly larger, responsive thumbnails) */
.mini-gallery .thumbs{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:12px;
}
.mini-gallery .thumbs img{
    width:40%;
    max-width:320px;
    min-width:140px;
    height:auto;
    border-radius:6px;
    cursor:pointer;
    transition:transform .18s ease;
    object-fit:cover;
}
.mini-gallery .thumbs img:hover{ transform:scale(1.06); }
@media (max-width:900px){ .mini-gallery .thumbs img{ width:48%; max-width:220px; } }

/* General image helpers for maps, thumbnails and responsive images */
.map-img,
.glass-box img,
.feature-image img,
.mini-gallery img,
.food-cards img {
    display: block;
    max-width: 100%; /* never exceed container width */
    width: auto;     /* avoid upscaling small images */
    height: auto;    /* preserve aspect ratio */
    object-fit: cover; /* crop if container forces a different ratio */
    object-position: center;
    border-radius: 6px;
}

/* map images should show the whole image (no important content cropped) */
.map-img {
    object-fit: contain;
    background: #ffffff; /* clean backdrop when aspect differs */
}

/* Limit map images to a sensible height so they fit the card and remain clear */
.map-img {
    flex: 1 1 48%; /* two images per row when space allows */
    max-width: 48%;
    width: 100%;
    height: auto;
    max-height: 240px; /* shorter for better visibility */
}

@media (max-width: 900px) {
    .map-img { flex-basis: 100%; max-width: 100%; max-height: 180px; }
}

/* Thumbs for gallery: keep aspect but allow bigger sizes on wider screens */
.mini-gallery .thumbs img { width: 120px; height: 84px; object-fit: cover; }

/* Modal image clarity: constrain but allow large display */
.img-modal-content img { width: auto; height: auto; max-width: 95vw; max-height: 90vh; }

/* Facilities */
.facilities ul { margin-top:12px; padding-left:18px; }

/* Company cards */
.company-list .companies { display:flex; gap:12px; margin-top:12px; }
.company { background:#fff;padding:12px;border-radius:8px;flex:1;box-shadow:0 6px 18px rgba(0,0,0,0.06); }

@media (max-width:800px){
    .food-cards .cards, .mini-gallery .thumbs, .company-list .companies { flex-direction:column; }
    .mini-gallery .thumbs img { width:100%; height:160px; }
    /* on small screens allow panels to use full width but keep a small inset */
    .glass-box > section,
    .glass-box > aside,
    .glass-box > p,
    .glass-box .feature,
    .glass-box .town {
        max-width: none;
        margin-left: 8px;
        margin-right: 8px;
    }
    /* reduce glass-box padding/margins on small screens so content doesn't touch edges */
    .glass-box {
        padding: 20px 16px;
        margin: 20px 12px;
    }
}

/* ...existing code... */



/* modal styles for full-size images */
.image-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.18s ease;
}
.image-modal-overlay.closing { opacity: 0; }

.image-modal-inner {
  max-width: 92%;
  max-height: 92%;
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.image-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.image-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
  color: #333;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* responsive adjustments */
@media (max-width: 700px) {
  .nav-carousel { width: 220px; height: 140px; }
  .carousel-slide img { height: 120px; }
}

@media (max-width: 420px) {
  .nav-carousel { width: 160px; height: 120px; }
  .carousel-slide img { height: 100px; }
}

/* ...existing code... */