@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=DM+Sans:wght@400;500;600&display=swap');

/* ─── Reset & base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-50: #e6f1fb;
  --blue-100: #b5d4f4;
  --blue-200: #85b7eb;
  --blue-400: #378add;
  --blue-600: #185fa5;
  --blue-800: #0c447c;
  --blue-900: #042c53;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #fff;
  color: #1a2b3c;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero {
  background: linear-gradient(160deg, var(--blue-50) 0%, #f0f7ff 60%, #fafcff 100%);
  border: 0.5px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px 28px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜';
  position: absolute; bottom: -10px; left: 0; right: 0;
  font-size: 30px; color: rgba(24, 95, 165, 0.08);
  white-space: nowrap; overflow: hidden; pointer-events: none;
}
 
/* Flex-rij: content links, badge rechts */
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  /* geen flex-wrap hier — badge blijft rechts op desktop */
}
 
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
 
/* Pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
 
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.location-pill:hover { opacity: 0.75; }
.location-pill--kaart { background: rgba(24, 95, 165, 0.15); color: var(--blue-600); }
.location-pill--buurt { background: rgba(24, 95, 165, 0.07); color: var(--blue-600); }
 
.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.3;
  margin: 0;
}
 
.hero-tekst {
  font-size: 14px;
  color: #3a5a7a;
  line-height: 1.6;
  max-width: 440px;
  margin: 0;
}
 
/* Badge basis */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 0.5px solid var(--blue-100);
  padding: 6px 12px;
  border-radius: 40px;
  flex-shrink: 0;
  align-self: flex-start;
  transition: box-shadow 0.2s;
}
.badge:hover { box-shadow: 0 2px 8px rgba(24, 95, 165, 0.15); }
.badge .app-icon { width: 24px; height: 24px; border-radius: 6px; }
.badge a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
}
.badge a:hover { text-decoration: underline; }

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.heather-tekst {
  font-size: 13px;
  color: #3a5a7a;
  line-height: 1.6;
}

/* ─── Weerbalkje ─── */
.weer-rij {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.weer-blok {
  background: white;
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}

.weer-tijd {
  font-size: 11px;
  font-weight: 600;
  color: #6a8faf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.weer-icoon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 5px;
}

.weer-temp {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-600);
}

.weer-wind {
  font-size: 11px;
  color: #6a8faf;
  margin-top: 3px;
}

/* ─── Grafiek ─── */
.grafiek-box {
  position: relative;
  width: 100%;
  height: 400px;
  /* hoogte van de grafiek */
  background: white;
  border: 0.5px solid #dde8f5;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

#myChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}




/* ─── Getijden kaartjes ─── */
.getij-rij {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.getij-kaart {
  background: white;
  border: 0.5px solid #dde8f5;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.getij-kaart.blauw {
  background: var(--blue-50);
  border-color: var(--blue-200);
}

.getij-label {
  font-size: 11px;
  font-weight: 600;
  color: #6a8faf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.getij-waarde {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-600);
  line-height: 1.1;
}

.getij-sub {
  font-size: 12px;
  color: #6a8faf;
}

/* ─── Doelgroep tags ─── */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ─── Footer ─── */
.footer-box {
  background: linear-gradient(160deg, var(--blue-50) 0%, #f0f7ff 60%, #fafcff 100%);
  border: 0.5px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-tekst {
  font-size: 13px;
  color: #3a5a7a;
  line-height: 1.6;
  max-width: 450px;
}

.store-rij {
  display: flex;
  gap: 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-800);
  color: var(--blue-50);
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.store-btn:hover {
  background: var(--blue-900);
}

.info-panel {
  background: #f8faff;
  border-radius: 20px;
  padding: 20px 25px;
  /* vertical/horizontaal padding, niet te groot */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  /* Laat het paneel de breedte van de inhoud bepalen, niet breder dan nodig */
  display: inline-block;
  /* of 'inline-flex' */
  width: auto;
  /* niet 100% */
  max-width: 100%;
  /* voorkomt dat het uit de kolom loopt */
  box-sizing: border-box;
}

/* Grotere badge variant (blijft zoals hij was) */
.large-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 40px;
  gap: 8px;
  transition: background 0.2s;
}

.large-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.large-badge .app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: none;
  margin: 0;
}

.large-badge a {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a5f;
  text-decoration: none;
}

.large-badge a:hover {
  text-decoration: underline;
}

/* Container voor de twee app‑badges */
.app-stores {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* Elke link wordt een vaste doos waarin de afbeelding perfect past */
.app-stores a {
  display: block;
  width: 120px;
  /* gewenste breedte */
  height: 40px;
  /* gewenste hoogte */
  line-height: 0;
  /* voorkomt extra ruimte onder de afbeelding */
}

/* De afbeelding vult de doos zonder vervorming */
.app-stores img {
  width: 125%;
  height: 125%;
  object-fit: contain;
  /* behoudt verhoudingen, past in de doos */
  transition: transform 0.2s ease;
}

/* Hover-effect voor beide badges */
.app-stores img:hover {
  transform: scale(1.02);
}

/* Rij voor elke getijdenregel */
.tide-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

/* Tijd (rechts uitgelijnd, vaste breedte) */
.tide-time {
  width: 4.5rem;
  text-align: right;
}

/* Pijltje (gecentreerd, vaste breedte) */
.tide-arrow {
  width: 1.5rem;
  text-align: center;
  font-weight: bold;
}

/* Hoogte (links uitgelijnd, vaste breedte) */
.tide-height {
  width: 5rem;
  text-align: left;
}

/* Centreren voor nu en wind */
.center-text {
  text-align: center;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background: white;
  width: 90%;
  max-width: 500px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}


.dag-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  width: 100%;
}

.dag-zoek:hover {
  opacity: 0.9;
}

.dag-zoek {
  font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 20px; cursor: pointer;
  border: 0.5px solid #b5d4f4; background: white; color: #185fa5;
  margin-left: auto;
  text-decoration: none;
}

.dag-btn {
  font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 20px; cursor: pointer;
  border: 0.5px solid #b5d4f4; background: white; color: #185fa5;
}
.dag-btn.actief {
    background: var(--blue-800);
    color: #fff;
    pointer-events: none;
    cursor: default;
}

.dag-btn:disabled {
    opacity: 1;
}
.dag-btn:disabled.actief {
    opacity: 1;
}
/* ─── Responsive ─── */
/* Desktop: badge rechts zichtbaar, mobiel-badge verborgen */
.badge--desktop { display: inline-flex; }
.badge--mobile  { display: none; }
 


/* ─── Zoekcomponent ─── */
.zoek-component { display: flex; flex-direction: column; gap: 12px; }

.zoek-box {
  background: white;
  border: 0.5px solid var(--blue-100, #b5d4f4);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoek-input-rij { position: relative; }
.zoek-input {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  padding: 10px 16px;
  border: 1.5px solid var(--blue-100, #b5d4f4);
  border-radius: 10px;
  outline: none;
  color: #1a2b3c;
  background: #f8fbff;
  box-sizing: border-box;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.zoek-input:focus { border-color: var(--blue-400, #378add); background: white; }
.zoek-input::placeholder { color: #9ab0c8; }

.zoek-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.zoek-select {
  font-size: 12px;
  font-family: inherit;
  padding: 6px 10px;
  border: 1px solid var(--blue-100, #b5d4f4);
  border-radius: 20px;
  background: white;
  color: var(--blue-600, #185fa5);
  cursor: pointer;
  outline: none;
}

.zoek-buurt-btn {
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--blue-100, #b5d4f4);
  background: var(--blue-50, #e6f1fb);
  color: var(--blue-600, #185fa5);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.zoek-buurt-btn:hover { background: var(--blue-100, #b5d4f4); }
.zoek-buurt-btn.actief { background: var(--blue-600, #185fa5); color: white; border-color: var(--blue-600, #185fa5); }

.zoek-teller { font-size: 12px; color: #6a8faf; padding: 0 4px; min-height: 18px; }

.zoek-resultaten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.zoek-kaart {
  background: white;
  border: 0.5px solid #dde8f5;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.zoek-kaart:hover {
  border-color: var(--blue-200, #85b7eb);
  box-shadow: 0 2px 8px rgba(24, 95, 165, 0.1);
}
.zoek-kaart-naam { font-size: 14px; font-weight: 600; color: #0c3a6e; }
.zoek-kaart-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.zoek-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--blue-50, #e6f1fb);
  color: var(--blue-600, #185fa5);
}
.zoek-kaart-link { font-size: 12px; color: var(--blue-400, #378add); font-weight: 600; margin-top: 2px; }
.zoek-afstand { font-size: 11px; color: #6a8faf; }
.zoek-leeg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: #6a8faf;
  font-size: 14px;
}

@media (max-width: 480px) {
  .zoek-resultaten { grid-template-columns: 1fr 1fr; }
  .zoek-buurt-btn { width: 100%; text-align: center; }
}
@media (max-width: 340px) {
  .zoek-resultaten { grid-template-columns: 1fr; }
}
/* Mobiel: badge rechts verbergen, badge onder tekst tonen */
@media (max-width: 540px) {
  .hero { padding: 16px; }
  .hero-top { gap: 10px; }
  .badge--desktop { display: none; }
  .badge--mobile  { display: inline-flex; }
  .grafiek-box {
    padding: 14px;
    height: 280px;
  }
}