* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, system-ui, sans-serif; background: #f5f5f5; color: #1a1a2e; }
#app { max-width: 1200px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: #0f3460; color: white; padding: 8px 16px;
  text-decoration: none; z-index: 1000; border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

header {
  padding: 1rem;
  background: #1a1a2e;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
header h1 { font-size: 1.2rem; font-weight: 700; }
#locate-btn {
  padding: 0.5rem 1rem;
  background: #0f3460;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
#locate-btn:hover { background: #1a4a8a; }
#locate-btn:active { background: #0a2546; }

#map {
  height: 50vh;
  width: 100%;
  z-index: 1;
}

#results {
  flex: 1;
  padding: 1rem;
  background: white;
  overflow-y: auto;
}
.hint { color: #666; text-align: center; padding: 2rem 1rem; }

.charger-card {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.charger-card:hover { background: #f8f9fa; }
.charger-card:last-child { border-bottom: none; }
.charger-info { flex: 1; }
.charger-name { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 0.2rem; }
.charger-meta { font-size: 0.85rem; color: #666; }
.charger-price { font-weight: 700; font-size: 1rem; white-space: nowrap; margin-left: 0.5rem; }
.price-cheap { color: #2e7d32; }
.price-mid { color: #f57c00; }
.price-expensive { color: #d32f2f; }
.price-unknown { color: #999; }
.savings { font-size: 0.8rem; color: #2e7d32; font-weight: 500; margin-left: 0.5rem; }

.open-btn {
  padding: 0.4rem 0.8rem;
  background: #0f3460;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 0.5rem;
  transition: background 0.2s;
}
.open-btn:hover { background: #1a4a8a; }

footer {
  padding: 0.75rem;
  text-align: center;
  background: #1a1a2e;
}
.donation-link { color: #aaa; text-decoration: none; font-size: 0.85rem; }
.donation-link:hover { color: white; }

:focus-visible {
  outline: 2px solid #0f3460;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 600px) {
  header h1 { font-size: 1rem; }
  #map { height: 40vh; }
  .charger-card { flex-direction: column; align-items: flex-start; }
  .charger-price { margin-left: 0; margin-top: 0.25rem; }
  .open-btn { margin-left: 0; margin-top: 0.5rem; align-self: flex-end; }
}