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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #111;
  color: #f0f0f0;
  overscroll-behavior: none;
}

/* ── Map ──────────────────────────────────────────────────────────────────── */
#map { position: fixed; inset: 0; }

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.logo-overlay {
  position: fixed;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  z-index: 10;
  pointer-events: none;
}

/* ── Station pin colors ───────────────────────────────────────────────────── */
.pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.5); cursor: pointer; }
.pin.available   { background: #22c55e; }
.pin.occupied    { background: #ef4444; }
.pin.unknown,
.pin.out_of_service { background: #6b7280; }

/* ── Bottom sheet ─────────────────────────────────────────────────────────── */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  z-index: 20;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.5);
}

.bottom-sheet.hidden { transform: translateY(110%); }

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  margin: 12px auto 0;
}

.sheet-body { padding: 16px 20px 24px; }

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

#station-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 2px;
}

#station-operator {
  font-size: 0.78rem;
  color: #888;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
  margin-top: 2px;
}
.status-badge.available    { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-badge.occupied     { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-badge.unknown,
.status-badge.out_of_service { background: rgba(107,114,128,0.15); color: #9ca3af; }

.station-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #ccc;
}

.chip:empty { display: none; }

/* ── Notify button ────────────────────────────────────────────────────────── */
.notify-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}

.notify-btn:active { background: #1da851; }

.free-note {
  text-align: center;
  font-size: 0.72rem;
  color: #666;
  margin-top: 10px;
}
