/* Base */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  margin: 0;
  padding: 0;
}

.container {
  padding: 24px;
}

section {
  margin: 0 0 48px 0;
}

/* Headings / text */
h1 {
  margin-top: 0;
  font-weight: 400;
  color: rgb(0, 64, 128);
}

p {
  margin: 0.5em 0 1em 0;
  line-height: 1.4em;
}

a {
  color: rgb(0, 64, 128);
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0 0 0 24px;
}

ul li {
  margin-bottom: 8px;
}

/* Event list */
#events {
  margin-top: 16px;
  margin-bottom: 48px;
}

.event {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.title {
  font-weight: 600;
}

.meta {
  color: #555;
  margin-top: 4px;
}

.location {
  color: #666;
  margin-top: 2px;
}

.empty {
  color: #888;
}

/* Availability states */
.event.busy {
  /* confirmed — default appearance */
}

.event.free {
  /* tentative */
  opacity: 0.4;
}

/* Tentative badge */
.badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  background: rgba(0,0,0,0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Route page */
.sub {
  color: #555;
  margin-top: 6px;
}

#map {
  height: calc(100vh - 110px);
  width: 100%;
}

/* Leaflet tooltip label styling */
.leaflet-tooltip.map-label {
  background: transparent;
  border: 1px solid rgba(0,0,0,0);
  color: #666;
  font-size: 11px;
  font-weight: 400;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.0);
}

.leaflet-tooltip.map-label::before {
  display: none; /* removes the little tooltip arrow */
}

/* hide the default marker icon for the label anchor */
.map-label-anchor {
  background: transparent;
  border: none;
}

/* Header + responsive nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #004080;
  z-index: 1000;
}

.nav-inner {
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  text-indent: -99999px;
  background: url(stani.svg) no-repeat;
  background-size: contain;
  display: block;
  width: 81px;
  height: 22px;
}

.site-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.site-nav a:hover {
  background: rgba(0,0,0,0.05);
}

/* Active nav link */
.site-nav a.active {
  font-weight: 600;
}

.nav-toggle {
  display: none;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  border: none;
  background: none;
  color: #004080;
}

/* Mobile: collapse */
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 56px; /* below header row */
    background: rgba(255,255,255,0.98);
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }
}
