body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  min-height: 100vh;
  margin: 24px;
  display: flex;
  align-items: start;
  justify-content: center;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 375px;
}

.header {
  text-align: center;
  margin-bottom: 24px;
}
.header h1 {
  color: #222;
  margin: 0 0 8px 0;
}
.header p {
  color: #666;
  margin: 0;
}

.vehicle-select {
  margin-bottom: 24px;
}
.vehicle-select label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
}
.vehicle-options {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.vehicle-options label {
  cursor: pointer;
}
.vehicle-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vehicle-options span {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  color: #6b7280;
  font-size: 1em;
  transition: all 0.2s ease-in-out;
}

.vehicle-options input[type="radio"]:checked + span {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #eff6ff;
}

/* Unified button style for both .find-btn and .open-maps-btn */
.find-btn,
.open-maps-btn {
  width: 100%;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 1em;
  padding: 14px 0;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  margin-bottom: 0;
  margin-top: 16px;
  transition: background 0.2s;
  text-align: center;
  display: block;
  max-width: 100%;
}
.find-btn:hover:not(:disabled),
.open-maps-btn:hover:not(:disabled) {
  background: #2563eb;
}
.find-btn:disabled,
.open-maps-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #2563eb;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.error {
  color: #ef4444;
  text-align: center;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.result {
  margin-top: 24px;
  min-height: 60px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.result-content {
  width: 100%;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 1em;
  font-weight: 600;
  color: #222;
  margin: 0 auto 0 auto;
  text-align: center;
  max-width: 100%;
}

@media (max-width: 600px) {
  body {
    margin: 8px;
    font-size: 1rem;
  }
  .container {
    max-width: 100%;
    padding: 0 2vw;
  }
  .header h1 {
    font-size: 1.2rem;
  }
  .find-btn,
  .open-maps-btn {
    font-size: 1em;
    padding: 12px 0;
  }
  .station-address {
    font-size: 1em;
  }
  .result {
    min-height: 48px;
  }
}
