/* ==========================================================================
   Frontpage
   ========================================================================== */

.result {
  display: none;
}

.install-button {
  display: none;
}

/* ==========================================================================
   Station overview
   ========================================================================== */

#stationFilters {
  margin-top: var(--space-2xl);
}

#stationList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.station-item {
  margin: 0;
  padding: 0;
}

.station-card {
  background: var(--color-input);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

.station-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.station-brand {
  margin: 0;
  font-family: var(--font-base);
  font-size: clamp(12px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text);
  text-transform: uppercase;
}

.station-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.station-price-value {
  font-family: var(--font-base);
  font-size: clamp(21px, 4vw, 62px);
  font-weight: 600;
  line-height: 0.95;
  color: var(--color-text);
}

.station-price-unit {
  margin-top: 2px;
  font-family: var(--font-base);
  font-size: clamp(12px, 2vw, 28px);
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
}

.station-card-body {
  margin-top: var(--space-md);
}

.station-address {
  margin: 0;
  max-width: 72%;
  font-family: var(--font-base);
  font-size: clamp(14px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
}

.station-card-footer {
  margin-top: var(--space-md);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

.station-fuel-label {
  order: 2;
  margin: 0;
  font-family: var(--font-base);
  font-size: clamp(12px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-soft);
  text-align: right;
}

.station-directions-button {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-base);
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.station-directions-button:hover {
  background: transparent;
  color: var(--color-primary-hover);
}

.station-updated {
  margin: var(--space-xs) 0 0;
  text-align: center;
  font-family: var(--font-base);
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-soft);
}

@media (max-width: 520px) {
  #stationList {
    gap: var(--space-md);
  }

  .station-card {
    padding: 15px;
  }

  .station-card-top {
    gap: 12px;
  }

  .station-brand {
    font-size: 14px;
    font-weight: 600;
  }

  .station-price-value {
    font-size: 21px;
    font-weight: 600;
  }

  .station-price-unit {
    font-size: 12px;
    font-weight: 600;
  }

  .station-card-body {
    margin-top: 5px;
  }

  .station-address {
    max-width: 72%;
    font-size: 14px;
    font-weight: 400;
  }

  .station-card-footer {
    margin-top: 10px;
    align-items: flex-end;
  }

  .station-fuel-label {
    font-size: 12px;
    font-weight: 400;
  }

  .station-directions-button {
    font-size: 12px;
    font-weight: 600;
  }

  .station-updated {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 400;
  }
}

@media (max-width: 380px) {
  .station-card {
    padding: 24px;
  }

  .station-address {
    max-width: 78%;
  }

  .station-card-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Frontpage: saving example
   ========================================================================== */

.saving-example {
  --saving-image-ratio: 16 / 8.4;
  margin-top: var(--space-3xl);
}

.saving-example-image {
  width: 100%;
  aspect-ratio: var(--saving-image-ratio);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-input);
}

.saving-example-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.saving-example-content {
  margin-top: var(--space-lg);
}

.saving-example-content h3 {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.saving-example-content p {
  margin: var(--space-sm) 0 0;
  font-family: var(--font-base);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-muted);
}

@media (max-width: 520px) {
  .saving-example {
    margin-top: var(--space-2xl);
  }

  .saving-example-content {
    margin-top: var(--space-md);
  }
}