﻿:root {
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --bg: #f6f1ea;
  --panel: #ffffff;
  --accent: #1f7a6b;
  --accent-2: #d77a35;
  --stroke: #e7dccf;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px 20px;
  background: linear-gradient(135deg, #f9efe2 0%, #f2f7f4 60%, #fff3e6 100%);
  border-bottom: 1px solid var(--stroke);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  margin: 6px 0 6px;
  font-size: 30px;
  font-weight: 700;
}

.sub { margin: 0; color: var(--muted); }

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--stroke);
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }

.btn input { display: none; }

.content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  padding: 18px 24px 28px;
}

.sidebar { display: flex; flex-direction: column; gap: 16px; }

.panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.panel h2 { margin: 0 0 10px; font-size: 18px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.legend .dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 999px; margin-right: 6px;
}
.legend .dot.active { background: var(--accent); }
.legend .dot.idle { background: #c7b7a7; }

.clinic-list { display: grid; gap: 10px; max-height: 60vh; overflow: auto; padding-right: 6px; }

.clinic-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}

.clinic-card h3 { margin: 0 0 6px; font-size: 14px; }
.clinic-card p { margin: 0; font-size: 12px; color: var(--muted); }

.map-wrap {
  position: relative;
  min-height: 70vh;
}

#map {
  height: 100%;
  min-height: 70vh;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.status {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 12px;
  background: rgba(31, 122, 107, 0.9);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .content { grid-template-columns: 1fr; }
  .map-wrap { order: -1; }
}
