:root {
  --navy: #223761;
  --navy-deep: #162749;
  --red: #e84b45;
  --red-deep: #b93139;
  --gold: #f6be38;
  --gold-soft: #ffe7a0;
  --aqua: #7bc9c8;
  --steel: #6f849e;
  --ivory: #fff8ee;
  --paper: rgba(255, 248, 238, 0.95);
  --paper-strong: #fffdf8;
  --ink: #18253f;
  --muted: #5e6f86;
  --line: rgba(34, 55, 97, 0.14);
  --warning-bg: rgba(232, 75, 69, 0.12);
  --warning-ink: #9f2730;
  --shadow: 0 28px 72px rgba(22, 39, 73, 0.16);
  --blue-panel-gradient: linear-gradient(145deg, rgba(22, 39, 73, 0.97) 0%, rgba(34, 55, 97, 0.95) 55%, rgba(64, 92, 138, 0.94) 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 190, 56, 0.5), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(232, 75, 69, 0.22), transparent 18%),
    radial-gradient(circle at 84% 30%, rgba(123, 201, 200, 0.18), transparent 20%),
    linear-gradient(180deg, #fff7e7 0%, #fff2d4 28%, #f4f6fb 100%);
}

.page-shell {
  position: relative;
  padding: 32px 20px 64px;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(10px);
}

.page-shell::before {
  top: 88px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: rgba(246, 190, 56, 0.18);
}

.page-shell::after {
  right: -84px;
  bottom: 80px;
  width: 240px;
  height: 240px;
  background: rgba(123, 201, 200, 0.15);
}

.site-footer {
  max-width: 1160px;
  margin: 18px auto 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.layout {
  max-width: 1160px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baskerville", "Big Caslon", Georgia, serif;
  line-height: 1.04;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.45rem;
}

.lede,
.hint,
.address,
.meta {
  color: var(--muted);
}

.lede {
  max-width: 56ch;
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero,
.search-panel,
.results-header,
.alert,
.empty-state,
.station-card {
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(246, 190, 56, 0.92) 0%, rgba(255, 244, 211, 0.9) 52%, rgba(123, 201, 200, 0.48) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-image {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 56px rgba(34, 55, 97, 0.22);
}

.search-panel {
  margin-top: 24px;
  background: var(--blue-panel-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.search-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  align-items: end;
}

.search-eyebrow,
.search-panel h2,
.search-panel .hint,
.search-panel .field span {
  color: #f8f3e8;
}

.search-panel .hint {
  margin: 0;
  max-width: 34ch;
  color: rgba(248, 243, 232, 0.82);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(160px, 0.7fr) auto;
  gap: 16px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 0.88rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.field input:focus {
  outline: 3px solid rgba(123, 201, 200, 0.32);
  border-color: var(--aqua);
}

.action {
  border: 0;
  border-radius: 18px;
  padding: 14px 22px;
  min-height: 52px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 18px 34px rgba(185, 49, 57, 0.32);
  cursor: pointer;
}

.action:hover {
  transform: translateY(-1px);
}

.alert {
  margin-top: 18px;
  border-color: rgba(185, 49, 57, 0.18);
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.96), rgba(255, 237, 229, 0.96));
  color: var(--warning-ink);
}

.results-header {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px;
}

.results-metrics div {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 55, 97, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 233, 0.92));
}

.results-metrics div:last-child {
  background: linear-gradient(180deg, rgba(123, 201, 200, 0.18), rgba(255, 255, 255, 0.9));
}

.metric-label,
.station-brand {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.station-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.station-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--blue-panel-gradient);
}

.station-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.distance {
  margin: 0;
  padding: 8px 12px;
  height: fit-content;
  border-radius: 999px;
  font-weight: 800;
  background: var(--gold-soft);
  color: var(--navy-deep);
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.warning {
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.address,
.meta {
  margin: 0;
  line-height: 1.55;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
}

.price-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(34, 55, 97, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 214, 0.76));
}

.price-pill strong {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy-deep);
}

.fuel-label,
.price-pill small {
  color: var(--muted);
}

.fuel-label {
  font-size: 0.88rem;
  font-weight: 800;
}

.empty-state {
  margin-top: 22px;
}

@media (max-width: 960px) {
  .hero,
  .results-header,
  .search-panel-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .search-panel-head {
    align-items: start;
  }

  .search-panel .hint {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  .results-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 18px 14px 40px;
  }

  .hero,
  .search-panel,
  .results-header,
  .alert,
  .empty-state,
  .station-card {
    padding: 20px;
  }

  .results-metrics,
  .price-grid {
    grid-template-columns: 1fr;
  }
}
