:root {
  --blue: #006fba;
  --blue-dark: #005a94;
  --green: #2e9e4b;
  --red: #d64545;
  --bg: #f4f7fa;
  --card: #fff;
  --text: #1a2b3c;
  --muted: #6b7c8f;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 60, 120, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.header {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 20px 16px 16px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
}

.header h1 {
  font-size: 1.35rem;
  font-weight: 700;
}

.subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}

.status {
  margin: 12px 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.status--loading {
  background: #e8f2fb;
  color: var(--blue);
}

.status--error {
  background: #fdeaea;
  color: var(--red);
}

.status--ok {
  background: #e8f6ec;
  color: var(--green);
}

.map {
  height: 42vh;
  min-height: 220px;
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}

.toolbar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

.btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn--secondary {
  background: var(--card);
  color: var(--blue);
  border: 1px solid #c8d9ea;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.list {
  padding: 0 16px 24px;
}

.list__title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
}

.stations {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.station {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.station__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.station__dist {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
}

.station__status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.station__status--open {
  background: #e8f6ec;
  color: var(--green);
}

.station__status--closed {
  background: #fdeaea;
  color: var(--red);
}

.station__name {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.station__address {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.station__updated {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.station__prices {
  list-style: none;
  margin-bottom: 10px;
}

.station__prices li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px solid #eef2f6;
}

.station__prices li:last-child {
  border-bottom: none;
}

.station__prices .price {
  font-weight: 700;
  color: var(--text);
}

.station__nav {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.station__nav:active {
  opacity: 0.7;
}

.manual {
  margin: 12px 16px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.manual label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.manual input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c8d9ea;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 8px;
}

.leaflet-control-attribution {
  font-size: 9px !important;
}

.user-marker {
  background: var(--blue);
  border: 3px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 4px rgba(0, 111, 186, 0.3);
}
