* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1b1f24;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0a3d62;
  color: #fff;
}

.topbar h1 {
  font-size: 1.1rem;
  margin: 0;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls input {
  width: 80px;
  padding: 6px;
}

.controls select {
  padding: 6px;
}

#zipcode {
  width: 96px;
}

.controls button {
  padding: 8px 10px;
  border: none;
  background: #38ada9;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-check input {
  margin: 0;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: calc(100vh - 56px);
}

#map {
  width: 100%;
  height: 100%;
}

.panel {
  border-left: 1px solid #d9e2ec;
  overflow: auto;
  padding: 12px;
  background: #fff;
}

#status {
  margin-top: 0;
  font-size: 0.95rem;
}

#station-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#station-list li {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.price {
  font-weight: 700;
  color: #0a3d62;
}

.restocked-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e8fff4;
  color: #0f7a41;
  border: 1px solid #a8e7c3;
}

.maps-link {
  display: inline-block;
  margin-top: 8px;
  color: #0b5ed7;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 45vh;
  }

  .panel {
    border-left: none;
    border-top: 1px solid #d9e2ec;
  }
}
