/* --- CUSTOM LETTERTYPE INLADEN --- */
@font-face {
  font-family: 'Soul Signature';
  src: url('SoulSignature.ttf') format('truetype'); /* Zorg dat dit bestand in je map staat! */
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-cream: #ede6da;
  --card-bg: #fffdf9;
  --burgundy: #6b1145;
  --burgundy-light: #8e2361;
  --gold: #b59353;
  --gold-soft: #e8dcc4;
  --text-dark: #3a2330;
  --subtext: #7c6873;
  --shadow: 0 4px 15px rgba(107, 17, 69, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100vh;
  overflow: hidden; /* Zet de scroll van de website zelf volledig uit */
  position: relative;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
}

header {
  background: var(--burgundy);
  color: var(--bg-cream);
  backdrop-filter: blur(8px);
  padding: 1.2rem 1rem 0.8rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.names {
  font-family: 'Soul Signature', cursive;
  font-size: 3.2rem; /* Iets groter gezet omdat Soul Signature vaak wat kleiner uitvalt */
  color: var(--bg-cream);
  line-height: 1.1;
  margin-bottom: 0.2rem;
  font-weight: normal;
}

.date-badge {
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--bg-cream);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view { display: none; max-width: 1000px; margin: 0 auto; }
.view.active { display: block; }
#map-view { padding: 0; max-width: 100%; height: calc(100vh - 190px); }

#timetable-view {
  max-width: 100%;
  height: calc(100vh - 190px);
  display: none;
  flex-direction: column;
}

#timetable-view.active { display: flex; }

.section-title {
  font-family: 'Soul Signature', cursive;
  font-size: 2.4rem; /* Ook hier iets groter voor de leesbaarheid */
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  font-weight: normal;
}

.timetable-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
}

.hours-row {
  display: flex;
  height: 45px;
  background: var(--card-bg);
  border-bottom: 2px solid var(--gold-soft);
  position: sticky;
  top: 0;
  z-index: 30;
}

.hour-cell {
  width: 140px;
  flex-shrink: 0;
  padding: 12px 5px 0px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  border-left: 1px dashed var(--gold-soft);
  text-align: left;
}

.stage-section {
  position: relative;
  border-bottom: 1px solid var(--gold-soft);
  padding-top: 15px; 
  height: calc(33% - 30px);
}

#timetable-inner, #timetable-stages {
	height: calc(100vh - 190px);
}

.stage-title-banner {
  position: sticky;
  left: 10px;
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--burgundy);
  z-index: 20;
  box-shadow: 0 2px 6px rgba(107, 17, 69, 0.08);
  margin-bottom: 5px;
}

.events-row {
  display: flex;
  height: calc(100% - 15px);
  position: relative;
  background-size: 140px 100%;
  background-image: linear-gradient(to right, rgba(232, 220, 196, 0.3) 1px, transparent 1px);
}

.event-block {
  position: absolute;
  top: 5px;
  height: 55px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  color: #ffffff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 3px 10px rgba(107, 17, 69, 0.15);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.event-content-sticky {
  position: sticky;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 15px);
}

.event-icon { font-size: 1rem; flex-shrink: 0; }

.event-text-wrap {
  display: flex;
  flex-direction: column;
}

.event-block .title {
  font-family: 'Soul Signature', cursive;
  font-size: 1.8rem; /* Groter gemaakt zodat Soul Signature goed tot zijn recht komt */
  line-height: 1;
  white-space: nowrap;
  font-weight: normal;
  margin-bottom: -5px; /* Compenseert voor eventuele witruimte in het custom font */
}

.event-block .time-str {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.9;
  white-space: nowrap;
}

.now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e74c3c;
  z-index: 25;
  pointer-events: none;
  transition: left 0.5s ease;
}

.now-badge {
  position: absolute;
  top: 5px;
  left: -11px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
}

nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  border-top: 1px solid var(--gold-soft);
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.04);
  font-family: 'Montserrat', sans-serif;
}

nav button {
  flex: 1;
  padding: 0.9rem;
  border: none;
  background: var(--bg-cream);
  color: var(--burgundy);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Montserrat', sans-serif;
}

nav button.active {
  background: var(--burgundy);
  color: var(--bg-cream);
}

nav button span.icon { font-size: 1.2rem; }

/* GPS tracker kleuren */
.maplibregl-user-location-accuracy-circle {
  background-color: #6b114536 !important;
}
.maplibregl-user-location-dot {
  background-color: var(--burgundy) !important;
}
.maplibregl-user-location-dot::before {
  background-color: var(--burgundy) !important;
}
.maplibregl-user-location-heading {
  border-bottom-color: var(--burgundy) !important;
}

.maplibregl-user-location-accuracy-circle {
	background-color: #6b114536 !important;
}

/* Strakke eigen GPS Marker (zonder pijltje) */
.custom-location-marker {
  width: 24px;
  height: 24px;
  position: relative;
}

.custom-dot {
  width: 14px;
  height: 14px;
  background-color: var(--burgundy);
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  box-shadow: 0 2px 6px rgba(107, 17, 69, 0.4);
}

.custom-accuracy {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 60px;
  height: 60px;
  background-color: #6b114536;
  border-radius: 50%;
  pointer-events: none;
}