﻿*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9f9f8;
  --gray-100: #f0f0ee;
  --gray-200: #e0e0dd;
  --gray-400: #9a9a96;
  --gray-600: #5a5a57;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --font: 'Google Sans Flex', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* â”€â”€ HOME PAGE â”€â”€ */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
}

.home-logo {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -2px;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.home-tagline {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  text-align: center;
}

.home-form {
  width: 100%;
  max-width: 580px;
}

.home-search-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.home-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.home-input:focus {
  border-color: var(--black);
}

.home-input::placeholder {
  color: var(--gray-400);
}

.home-select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  outline: none;
  cursor: pointer;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%239a9a96' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.home-select:focus {
  border-color: var(--black);
}

.home-btn-search {
  height: 48px;
  padding: 0 24px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.home-btn-search:hover {
  opacity: 0.85;
}

.home-btn-geo {
  width: 100%;
  height: 44px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.15s, color 0.15s;
}

.home-btn-geo:hover {
  border-color: var(--black);
  color: var(--black);
}

.geo-status {
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
  margin-top: 8px;
  min-height: 18px;
}

/* â”€â”€ SEO BLOCK â”€â”€ */
.seo-block {
  width: 100%;
  max-width: 580px;
  margin-top: 24px;
  border-top: 1px solid var(--gray-100);
  padding-top: 1.5rem;
}

.seo-block h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-link {
  font-size: 13px;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  transition: border-color 0.15s, color 0.15s;
}

.seo-link:hover {
  border-color: var(--black);
  color: var(--black);
}

.seo-static {
  pointer-events: none;
  cursor: default;
}

.seo-static:hover {
  border-color: var(--gray-200);
  color: var(--gray-600);
}

/* ── CITY LIST ── */
.seo-links-list {
  display: flex;
  flex-direction: column;
}

.seo-link-city {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #111;
  text-decoration: none;
}

.seo-link-city:last-child {
  border-bottom: none;
}

.seo-link-city:hover {
  color: var(--gray-600);
}

/* â”€â”€ FOOTER â”€â”€ */
.site-footer {
  width: 100%;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.site-footer-copy {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

.site-footer a {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--black);
}

/* ── RESULTS PAGE ── */
.results-page {
  max-width: 680px;
  margin: 0 auto;
}

.results-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 50;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
}

.results-logo {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.filter-btn .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.results-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  padding: 16px 16px 4px;
  margin: 0;
  line-height: 1.2;
}

.results-hero-sub {
  font-size: 13px;
  color: #999;
  padding: 0 16px 12px;
  margin: 0;
}

/* ── FILTER BOTTOM SHEET ── */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.filter-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 24px;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.filter-sheet-handle {
  width: 36px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.filter-sheet-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.filter-sheet label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  display: block;
}

.filter-sheet input:not([type="hidden"]),
.filter-sheet select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--black);
  background: white;
  box-sizing: border-box;
  margin-bottom: 12px;
  outline: none;
  appearance: none;
}

.geo-btn-sheet {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  color: #555;
  cursor: pointer;
  margin-bottom: 12px;
  text-align: center;
}

.geo-status-sheet {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: -8px;
  margin-bottom: 8px;
  min-height: 16px;
}

.filter-apply-btn {
  width: 100%;
  padding: 14px;
  background: #111;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  margin-top: 16px;
  cursor: pointer;
}

/* â”€â”€ STATION LIST â”€â”€ */
.station-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.station-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.station-list-item:hover {
  background: var(--gray-50);
}

.station-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.station-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.station-main {
  min-width: 0;
}

.station-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-address {
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.station-side {
  text-align: right;
  flex-shrink: 0;
  margin-left: 1rem;
}

.station-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.station-updated {
  font-size: 12px;
  color: var(--gray-400);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
  font-size: 15px;
}

/* â”€â”€ LAZY LOAD â”€â”€ */
.lazy-load-panel {
  margin-top: 1.5rem;
  text-align: center;
}

.lazy-load-status {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.load-more-button {
  height: 40px;
  padding: 0 24px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.load-more-button:hover {
  border-color: var(--black);
  color: var(--black);
}

/* â”€â”€ STATION DETAIL â”€â”€ */
.detail-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f0f0f0;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  margin: 16px 0 20px 0;
}

.detail-back-btn .material-symbols-rounded {
  font-size: 20px;
}

.detail-back-btn:active {
  background: #e0e0e0;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-100);
}

.detail-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.detail-name {
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 4px;
}

.detail-address {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.detail-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: opacity 0.15s;
}

.detail-maps-btn:hover {
  opacity: 0.85;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.fuel-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.fuel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--white);
}

.fuel-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

.fuel-source {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

.fuel-prices {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.fuel-price-item {
  text-align: right;
}

.fuel-price-label {
  font-size: 11px;
  color: var(--gray-400);
}

.fuel-price-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

/* â”€â”€ AMENITIES â”€â”€ */
.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

/* ── NAV SHEET ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.nav-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 24px;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.nav-sheet-handle {
  width: 36px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.nav-sheet-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.nav-option {
  display: block;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  margin-bottom: 10px;
  text-align: center;
}

.nav-option:active {
  background: #e0e0e0;
}

/* â”€â”€ LEGAL PAGES â”€â”€ */
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

/* â”€â”€ ERROR â”€â”€ */
.error {
  font-size: 14px;
  color: #c0392b;
  padding: 0.75rem 1rem;
  background: #fdf2f2;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 600px) {
  .home-input {
    height: 48px;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
  }

  .home-search-row {
    flex-direction: column;
  }

  .home-input,
  .home-select,
  .home-btn-search {
      width: 100%;
      box-sizing: border-box;
  }

  .home-search-row {
      flex-direction: column;
  }

  .home-select {
    width: 100%;
  }

  .fuel-prices {
    gap: 1rem;
  }
}
