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

:root {
  --bg: #1a1f1a;
  --surface: #252b25;
  --surface2: #2e362e;
  --accent: #6db36d;
  --accent2: #4a8f4a;
  --text: #e8ede8;
  --text2: #a0afa0;
  --danger: #c0392b;
  --radius: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
  z-index: 1000;
  flex-shrink: 0;
}

header h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.mode-btn {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--accent2);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.mode-btn:active {
  background: var(--accent2);
}

.mode-btn.hunt {
  background: var(--accent2);
  border-color: var(--accent);
}

#map {
  flex: 1;
  z-index: 1;
}

.leaflet-container {
  background: #2a3a2a;
}

/* Markerit */
.place-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

.place-marker:active {
  transform: scale(1.2);
}

.marker-playground { background: #2980b9; }
.marker-dog_park { background: #8e44ad; }
.marker-historic { background: #c0392b; }
.marker-special { background: #d35400; }
.marker-visited { background: #3d3d3d; opacity: 0.6; }

/* Bottom sheet */
.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 70dvh;
  overflow-y: auto;
}

.sheet.open {
  transform: translateY(0);
}

.sheet.hidden {
  display: none;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  margin: 12px auto 0;
}

.sheet-content {
  padding: 16px 20px 32px;
}

.sheet-category {
  font-size: 28px;
  margin-bottom: 6px;
}

.sheet-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.sheet-content p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.sheet-fact {
  background: var(--surface2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.fact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.sheet-fact p {
  margin: 0;
  font-size: 14px;
}

.sheet-actions {
  display: flex;
  gap: 10px;
}

.btn-primary {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:active {
  background: var(--accent2);
}

.btn-primary.visited {
  background: var(--surface2);
  color: var(--text2);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text2);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Share button */
.share-btn {
  position: fixed;
  bottom: 24px;
  right: 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface2);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 3000;
  white-space: nowrap;
  animation: fadeInOut 2.5s ease forwards;
}

.toast.hidden {
  display: none;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* Admin */
.admin-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #e67e22;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 4px;
  z-index: 5000;
}

.sheet-admin {
  background: #2a2a1a;
  border: 1px solid #e67e22;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.admin-coords {
  font-family: monospace;
  color: #e67e22;
  margin-right: 12px;
}

.admin-osm-link {
  color: #6db36d;
  text-decoration: none;
}

.admin-label {
  background: rgba(230, 126, 34, 0.9) !important;
  border: none !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap;
}

/* GPS dot */
.gps-dot {
  width: 16px;
  height: 16px;
  background: #4a90e2;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.3);
}
