/* =========================
   BASIS
   ========================= */

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background-color: #f4f1ec;
  color: #2e2e2e;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  text-align: justify;
}

p { margin: 0 0 0.75rem 0; }

.baksteen { color: #9c3b2f; }


/* =========================
   LAYOUT
   ========================= */

.page { flex: 1; }

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section { margin-bottom: 1.5rem; }

.onderlijnd {
  text-decoration: underline;
}

.inspringing {
  margin-left: 40px;
}

.bedrijven-lijst {
  display: grid;
  grid-template-columns: 300px 350px 1fr 60px 60px;
  column-gap: 20px;
  row-gap: 6px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
}

.drie-kolommen-lijst {
  display: grid;
  grid-template-columns: 220px 60px 1fr;
  column-gap: 20px;
  row-gap: 6px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
}

h2 {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #9c3b2f;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.page-vilvocarta #vilvocarta {
    background-image: url("../Vilvoorde/1800vilvoordepoppachtergrond.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 30px;
}

.page-vilvocarta #vilvocarta .inhoud {
    background: rgba(244, 241, 236, 0.90);
    padding: 25px;
    border-radius: 8px;
}

.page-vilvocarta #vilvocarta .bron-detail {
    line-height: 1.7;
}

.page-vilvocarta #vilvocarta h3 {
    margin-top: 35px;
}

/* =========================
   HEADER
   ========================= */

header {
  background-color: #efe6d8;
  background-image: url('https://www.transparenttextures.com/patterns/old-map.png');
  background-repeat: repeat;
  padding: 5rem 2rem;
  text-align: center;
}

header h1 {
  color: #9c3b2f;
  font-size: 4rem;
  letter-spacing: 2px;
  margin: 0;
}

header p {
  color: #9c3b2f;
  margin-top: 1rem;
}

header .subtitle {
  font-size: 0.8rem;
  line-height: 1;
}

/* =========================
   NAVIGATIE
   ========================= */

nav {
  background-color: #3b3b3b;
  padding: 0.8rem;
  text-align: center;
}

nav a {
  display: none;
  color: #f4f1ec;
  text-decoration: none;
  font-weight: bold;
}

nav a.active {
  display: inline-block;
  margin: 0 1.5rem;
  color: #f2d94c;
}


/* =========================
   ALFABET NAVIGATIE
   ========================= */

.alfabet-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0 2rem;
}

.alfabet-index a {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;

  text-decoration: none;
  font-weight: bold;
  font-family: Georgia, serif;
  font-size: 0.95rem;

  color: #2e2e2e;
  background-color: #f4f1ec;

  border: 1px solid #9c3b2f;
  border-radius: 4px;

  transition: all 0.2s ease;
}

.alfabet-index a:hover {
  background-color: #9c3b2f;
  color: white;
}

.alfabet-index a:active {
  transform: scale(0.95);
}

#lijst {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  border-bottom: 1px solid #ddd;
  padding: 4px;
}

.row div {
  padding: 2px 6px;
}


/* =========================
   FOOTER
   ========================= */

footer {
  background-color: #3b3b3b;
  color: #f4f1ec;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

.terug {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  text-align: right;
}

#bezoekersteller {
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #f2d94c;   /* subtiel goud */
}

/* =========================
   TAB-GEGEVENS
   ========================= */

.tab-gegevens-3 {
  display: grid;
  grid-template-columns: 160px 180px 1fr;
  column-gap: 1rem;
  row-gap: 0.3rem;
  max-width: 800px;
}

/* =========================
   BEELDEN
   ========================= */

figure {
    margin: 1rem 0;
    text-align: center;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

figcaption {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.3rem;
}

/* Algemene beeld-tekst */

.beeld-tekst {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.beeld-flex img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/* Afmetingen afbeeldingen */

.beeld-flex.klein img {
    max-width: 200px;
}

.beeld-flex.middel img {
    max-width: 700px;
}

.beeld-flex.groot img {
    max-width: 1000px;
}

/* Foto-grid */

.foto-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem auto;
}

.foto-grid figure {
    margin: 0;
    width: 120px;
}

.foto-grid img {
    width: 100%;
    height: auto;
}

.foto-grid figcaption {
    font-size: 0.7rem;
    line-height: 1.1;
}

/* Afbeeldingen naast elkaar */

.beelden-naast-elkaar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.beelden-naast-elkaar .beeld-tekst {
    flex: 1 1 300px;
    min-width: 0;
}

.beelden-naast-elkaar figure {
    margin: 0;
}

/* Vilvocarta specifieke afbeeldingen */

.page-vilvocarta .beeld-tekst {
    background: transparent;
}

.page-vilvocarta figure {
    margin: 15px auto;
}

.page-vilvocarta figure img {
    max-width: 100%;
}

.page-vilvocarta figcaption {
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Terug naar inhoud */

.page-vilvocarta .terug {
    text-align: right;
    margin: 20px 0 30px;
}


/* ========================= BEELDEN NAAST ELKAAR ========================= */ 

.beelden-naast-elkaar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.beelden-naast-elkaar .beeld-tekst {
    flex: 1 1 300px;
    min-width: 0;
}

.beelden-naast-elkaar figure {
    margin: 0;
    text-align: center;
}

.beelden-naast-elkaar img {
    display: block;
    width: 100%;
    height: auto;
}

.beelden-naast-elkaar figcaption {
    margin-top: 8px;
    text-align: center;
}


/* ========================= KLIKBAAR BEELD ========================= */ 
.klikbaar-beeld {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.15s ease;
  cursor: default;
  user-select: none;
}


/* ========================= FOTO-GRID (naast elkaar) ========================= */ 

.foto-grid { display: flex; 
justify-content: center; 
flex-wrap: wrap; 
/* mag naar volgende rij */ gap: 0.4rem; 
/* afstand tussen beelden */ margin: 1rem auto; 
} 

.foto-grid figure { margin: 0; 
width: 120px; 
/* vaste breedte */ text-align: center; 
} 

.foto-grid img { 
width: 100%; 
height: auto; display: block; 
} 

.foto-grid figcaption { 
margin-top: 0.2rem; 
font-size: 0.7rem; 
line-height: 1.1; 
}

/* =========================
   LIGHTBOX
   ========================= */

.klikbaar-beeld {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    cursor: zoom-out;
    user-select: none;
}
/* =========================
   ZOEK
   ========================= */

.zoek-container {
  position: relative;
  max-width: 420px;
  margin: 20px auto 0 auto;
}

#zoekveld {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #c2b280;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

/* Kernwoorden + resultaten */

.kernwoorden-lijst,
.zoek-dropdown {
  position: absolute;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.kernwoorden-lijst {
  display: none;
}

.kernwoorden-lijst.open {
  display: block;
}

/* Items */

.kernwoord-item {
  padding: 8px 12px;
  cursor: pointer;
}

.kernwoord-item:hover {
  background: #f0f0f0;
}

.zoeklijst {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zoeklijst li {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.zoeklijst li a {
  text-decoration: none;
  font-weight: 600;
  color: #222;
}

.zoekcategorie {
  display: block;
  font-size: 12px;
  color: #888;
}

/* Highlight */

.highlight {
  background: #ffe58a;
  padding: 0 2px;
}

.pagina-highlight {
  background: #ffec80;
  padding: 2px 4px;
  border-radius: 3px;
}

/* =========================
   PRINT
   ========================= */

@media print {
  nav, footer { display: none; }
  body { background: white; color: black; }
  main { max-width: 100%; padding: 0; }
}

/* =========================
   MOBIEL
   ========================= */

@media (max-width: 768px) {
  body { font-size: 1rem; line-height: 1.6; }
  nav a { display: inline-block; margin: 0.2rem; }
  .beeld-tekst { flex-direction: column; }
  figcaption { font-size: 0.7rem; }
}

@media (max-width: 768px) {

    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    nav a {
        display: inline-block;
        margin: 0.2rem;
    }

    .beeld-tekst {
        flex-direction: column;
    }

    .beelden-naast-elkaar {
        flex-direction: column;
        align-items: center;
    }

    .beelden-naast-elkaar .beeld-tekst {
        width: 100%;
    }

    figcaption {
        font-size: 0.7rem;
    }

    .bedrijven-lijst,
    .drie-kolommen-lijst {
        grid-template-columns: 1fr;
    }

    .tab-gegevens-3 {
        grid-template-columns: 1fr;
    }

    #vilvocarta {
        padding: 12px;
        background-attachment: scroll;
    }

    #vilvocarta .inhoud {
        padding: 15px;
    }
}


.page-vilvocarta #vilvocarta .inhoud {
    background: transparent;
    padding: 25px;
    border-radius: 8px;
}

.page-vilvocarta #vilvocarta .inhoud {
    line-height: 1.15;
}
.page-vilvocarta #vilvocarta .inhoud p {
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

/* Alleen de twee symbolen verkleinen */
.beelden-naast-elkaar img.symbool-klein {
    width: 50px !important;
    max-width: 50px !important;
    height: auto !important;
}