:root {
  --bg-primary: #0a0a14;
  --bg-secondary: rgba(10, 10, 20, 0.92);
  --bg-card: rgba(20, 20, 35, 0.95);
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-muted: #555;
  --accent-green: #00ff88;
  --accent-cyan: #00d4ff;
  --accent-gold: #FDE94A;
  --accent-amber: #ffab40;
  --border-color: rgba(0, 255, 136, 0.15);
  --border-glow: rgba(0, 255, 136, 0.3);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --font-body: 'Newsreader', 'Times New Roman', serif;
  --font-display: 'Crimson Pro', 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

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

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
}

/* --- Covert Overlay --- */
 .covert-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background:
    radial-gradient(circle at 20% 15%, rgba(40, 80, 70, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(30, 60, 70, 0.3), transparent 50%),
    rgba(6, 8, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d6deeb;
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.08em;
  animation: covertIn 0.45s ease-out forwards;
  pointer-events: none;
  visibility: visible;
}

.covert-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(80, 160, 140, 0.08), rgba(80, 160, 140, 0.08) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: screen;
  opacity: 0.35;
}

.covert-overlay__inner {
  position: relative;
  z-index: 1;
  padding: 24px 36px;
  border: 1px solid rgba(120, 200, 170, 0.25);
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.covert-overlay__tag {
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(140, 220, 190, 0.75);
  margin-bottom: 10px;
  letter-spacing: 0.2em;
}

.covert-overlay__tag--headline {
  font-size: 18px;
  margin-bottom: 0;
}

 

.covert-overlay--hide {
  animation: covertOut 1.0s ease forwards;
  pointer-events: none;
}

@keyframes covertIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes covertOut {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

.app {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* --- Weather Widget --- */
.weather-widget {
  position: fixed;
  top: 28px;
  left: 16px;
  transform: none;
  z-index: 9999;
  pointer-events: auto;
  min-width: 280px;
  max-width: 340px;
  width: 320px;
  box-sizing: border-box;
  right: auto;
  overflow: visible;
  padding: 12px 14px;
  background: rgba(12, 14, 22, 0.92);
  border: 1px solid rgba(61, 209, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  color: #d6deeb;
  display: block;
  visibility: visible;
  opacity: 1;
}

body > .weather-widget {
  z-index: 9999;
}

.weather-title {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(214, 222, 235, 0.65);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.weather-title-sup {
  font-size: 11px;
  vertical-align: sub;
  letter-spacing: 0.06em;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.weather-temp {
  font-size: 30px;
  font-weight: 700;
  color: #f5f7ff;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.weather-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.weather-summary {
  font-weight: 600;
  color: #cfe6ff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-family: var(--font-mono);
}

.weather-details {
  color: rgba(214, 222, 235, 0.65);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.weather-tonight {
  margin-top: 6px;
  margin-bottom: 6px;
  padding-top: 0;
  border-top: none;
  font-size: 11px;
  color: rgba(214, 222, 235, 0.7);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weather-extras {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: rgba(214, 222, 235, 0.7);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weather-third {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.weather-extra-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

/* --- Toggle Switch --- */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #333;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-green);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* --- Pills --- */
.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.pill:hover {
  border-color: var(--accent-green);
  color: var(--text-primary);
}

.pill--active {
  background: var(--accent-green);
  color: #000;
  border-color: var(--accent-green);
  font-weight: 600;
}

.pill--today {
  border-color: var(--accent-cyan);
}

/* --- Chips --- */
.chip {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.chip--active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  font-weight: 600;
}

/* --- Checkbox --- */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-green);
  width: 14px;
  height: 14px;
}

.checkbox-label:has(input:checked) span {
  color: var(--text-primary);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

.badge--active {
  background: var(--accent-gold);
  color: #000;
}

.badge--special-active {
  background: var(--accent-cyan);
  color: #000;
}

/* --- Legend --- */
.legend {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px 16px;
  z-index: 10;
  font-size: 11px;
}

.legend-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot--hh-active {
  background: var(--accent-gold);
  box-shadow: 0 0 6px rgba(253, 233, 74, 0.5);
}

.legend-dot--special-active {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.legend-dot--inactive {
  background: #555;
  opacity: 0.6;
}

/* --- Geolocation Button --- */
.geo-btn {
  position: fixed;
  top: 120px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #fff;
  border: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.geo-btn:hover {
  background: #f0f0f0;
  color: #000;
}

@media (max-width: 768px) {
  .legend {
    bottom: 70px;
    right: 8px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .geo-btn {
    top: 120px;
    right: 10px;
  }

  .contact-block {
    bottom: 70px;
    right: 10px;
    left: auto;
    transform: none;
    font-size: 16px;
    padding: 14px 23px;
  }

  .weather-widget {
    top: 18px;
    left: 10px;
    min-width: 220px;
    max-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
    padding: 10px 12px;
  }
}

/* Contact block */
.contact-block {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: auto;
  transform: none;
  z-index: 9999;
  visibility: visible;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* Ensure contact block covers Mapbox attribution in bottom-right */
.mapboxgl-ctrl-bottom-right {
  z-index: 1;
}

.contact-block svg {
  color: var(--accent-green);
  flex-shrink: 0;
  width: 21px;
  height: 21px;
}

.contact-block a {
  color: #fff;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}
