/* Basisinstellingen */
:root {
  --accent: #3c3d3d;   /* #f9f9f9 */
  --bg:  #f9f9f9;      /* #f9f9f9 */
  --text: #3c3d3d;
  --card: white;
  --radius: 12px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.page-header {
  background-color: rgba(137, 175, 158, 1); /* Donkerder blauw */
  color: white;
  text-align: center;        /* Horizontaal centreren van tekst */
  padding: 12px 0;
  font-family: sans-serif;
  font-size: 1em;
  font-weight: bold;
  position: static;  /* sticky;*/
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(137, 175, 158, 0.5);
}
#map {
  height: 700px;
  margin: 20px auto; 
  border-radius: var(--radius);
  width: 100%;
  max-width: 1000px;
}


.container {
  max-width: 960px;
  margin: 0 auto;
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.8rem;
}

.centered-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  margin-bottom: 6px;
}

select {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 0.5px solid #ccc;
  margin-bottom: 10px;
}



.styled-select {
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  font-size: 16px;
  border: 2px solid var(--accent, #0077cc);
  border-radius: var(--radius, 12px);
  background-color: white;
  color: var(--text, #222); 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230077cc' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.styled-select:focus {
  outline: none;
  border-color: #005fa3;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
}


#dayButtons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

#dayButtons button {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background-color: white;
  color: var(--accent);
  font-weight: bold;
  cursor: pointer;
}

#dayButtons button.active {
  background-color: var(--accent);
  color: white;
}



canvas {
  width: 100%;
  margin-bottom: 40px;
  min-height: 300px;
}

.slider-container {
  margin-top: 20px;
  text-align: center;
}
#sliderLabel {
  font-size: 14px;
  color: #555;
}


@media (max-width: 600px) {
    
  .page-header {
  background-color: rgba(137, 175, 158, 0.8); /* Donkerder blauw */
  color: white;
  text-align: center;        /* Horizontaal centreren van tekst */
  padding: 7px 0;
  font-family: sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  position: static;  /* sticky;*/
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(137, 175, 158, 0.5);
}  
  #map {
  height: 300px;
  margin: 20px auto; 
  border-radius: var(--radius);
  width: 100%;
  max-width: 1000px;
}    
  h2 { font-size: 1.4rem; }
  select { font-size: 1rem; max-width: 200px; }
  .container { 
    padding: 16px;
  }
  .styled-select {
  width: 100%;
  max-width: 250px;
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 2px solid var(--accent, #0077cc);
  border-radius: var(--radius, 10px);
  background-color: white;
  color: var(--text, #222);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230077cc' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}
  canvas { margin-bottom: 30px; }
  #dayButtons { flex-direction: row; align-items: center; }
  
  .popup-title {
  font-size: 15px;
  font-weight: bold;
  color: #02a3a8;
  margin-bottom: 5px;
}
  
}

/* Cluster animaties */
.leaflet-cluster-anim .leaflet-marker-icon, 
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
  transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}

/* Cluster stijl */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(16, 124, 143, 0.212);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(27, 112, 108, 0.836);
}

.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}

.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.marker-cluster span {
  line-height: 30px;
}

/* Popup stijl */
.leaflet-popup {
  border: none;
  padding: 0;
}

.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: rgba(30, 30, 30, 0.85);
  color: white;
}

.leaflet-popup-tip {
 /*  display: none;*/
 background: rgba(30, 30, 30, 0.85);
}
 
.leaflet-popup-content {
  font-size: 14px;
  line-height: 1.6;
  padding: 5px;
  margin: 0;
}

.popup-title {
  font-size: 17px;
  font-weight: bold;
  color: #02a3a8;
  margin-bottom: 5px;
}

.popup-data {
  font-size: 14px;
  margin-top: 10px;
}

.popup-data span {
  font-weight: bold;
  color: #eceff0;
}

.popup-button {
  display: block;
  margin: 15px auto 0;
  padding: 8px 16px;
  background-color: #ffcc00;
  color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

.popup-button:hover {
  background-color: #ff9900;
}

/* Fallbacks voor IE */
.leaflet-oldie .marker-cluster-small,
.leaflet-oldie .marker-cluster-medium,
.leaflet-oldie .marker-cluster-large {
  background-color: rgb(16, 124, 143);
}

.leaflet-oldie .marker-cluster-small div,
.leaflet-oldie .marker-cluster-medium div,
.leaflet-oldie .marker-cluster-large div {
  background-color: rgb(27, 112, 10);
}
