/* ================================================
   Travelling Don — styles.css
   ================================================ */

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

body {
  background: #0d1117;
  font-family: 'Patrick Hand', cursive;
  color: #fff;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ---------- Map ---------- */
#map {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* Muted, dark map tiles */
.leaflet-tile-pane {
  filter: saturate(0.25) brightness(0.5) contrast(1.15);
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(0,0,0,0.5) !important;
  color: #555 !important;
}
.leaflet-control-attribution a { color: #777 !important; }

/* Tidy zoom control */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
}
.leaflet-control-zoom a {
  background: rgba(20,20,30,0.85) !important;
  color: #ccc !important;
  border-color: rgba(255,255,255,0.08) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 18px !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(40,40,60,0.95) !important;
  color: #ffd700 !important;
}

/* ---------- Header overlay ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  text-align: center;
  padding: 22px 20px 48px;
  background: linear-gradient(
    180deg,
    rgba(13,17,23,0.92) 0%,
    rgba(13,17,23,0.6) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.title {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  color: #ffd700;
  text-shadow: 2px 2px 0 #a07800, 0 0 40px rgba(255,215,0,0.2);
  letter-spacing: 1px;
  animation: fadeDown 0.8s ease-out;
}

.subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  color: #90a4ae;
  margin-top: 4px;
  font-style: italic;
  animation: fadeDown 0.8s ease-out 0.2s both;
}

.coming-soon {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  color: #81c784;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.8;
  animation: fadeDown 0.8s ease-out 0.4s both;
}

/* ---------- City arrival toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1001;
  font-family: 'Patrick Hand', cursive;
  font-size: clamp(0.95rem, 2.8vw, 1.3rem);
  color: #fff;
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  padding: 10px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Leaflet tooltip for city pins ---------- */
.city-label {
  background: rgba(13,17,23,0.8) !important;
  border: 1px solid rgba(255,215,0,0.25) !important;
  color: #ffd700 !important;
  font-family: 'Patrick Hand', cursive !important;
  font-size: 13px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
.city-label::before {
  border-top-color: rgba(255,215,0,0.25) !important;
}

/* ---------- Animations ---------- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
