/* GasOnTheWater — browse-by-state and browse-by-city pages */

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0a2540;
  color: #f1f5f9;
  min-height: 100vh;
}
a { color: #4fa8c7; text-decoration: none; }

header {
  background: rgba(10,37,64,0.95);
  border-bottom: 1px solid #627d98;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { color: #4fa8c7; font-weight: 700; font-size: 1.1rem; }

.container { max-width: 1000px; margin: 0 auto; padding: 48px 1.5rem 64px; }

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #4fa8c7;
  margin-bottom: 8px;
}
.subtitle { color: #94a3b8; font-size: 15px; margin-bottom: 40px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
  align-items: center;
}
.breadcrumb a { color: #4fa8c7; }

.total-badge {
  display: inline-block;
  background: #1e3a5f;
  color: #4fa8c7;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 12px;
}

/* State grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.state-card {
  display: block;
  background: #102a43;
  border: 1px solid #243b53;
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.15s, background 0.15s;
}
.state-card:hover { background: #162f4a; border-color: #4fa8c7; }
.state-name { font-weight: 600; font-size: 15px; color: #f1f5f9; margin-bottom: 4px; }
.state-count { font-size: 13px; color: #94a3b8; }

/* Station list page */
.station-list-page { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  margin: 1.5rem 0 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.back-link:hover { color: #4fa8c7; }

.stations-header { margin-bottom: 1.5rem; }
.stations-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}
.stations-count { font-size: 0.82rem; color: #94a3b8; margin-bottom: 1rem; }

/* Station list rows */
.station-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
}
.station-item {
  border-bottom: 1px solid #334e68;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.station-item:last-child { border-bottom: none; }

.station-info-block { flex: 1; min-width: 0; }
.station-name-link {
  color: #4fa8c7;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.station-name-link:hover { color: #2488ad; text-decoration: underline; }
.station-address { color: #94a3b8; font-size: 13px; margin-top: 2px; }

.station-action-btn {
  background: #1e3a5f;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.station-action-btn:hover { background: #243b53; }

.no-stations {
  padding: 32px;
  text-align: center;
  color: #94a3b8;
}
.no-stations a { color: #4fa8c7; }

/* Station list row metadata (phone / website inline styles) */
.station-meta-phone { color: #94a3b8; font-size: 13px; }
.station-meta-web { color: #2488ad; font-size: 13px; }
.station-meta-city { color: #94a3b8; font-size: 13px; margin-top: 2px; }

/* Pagination (shared across browse pages) */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.page-btn {
  padding: 6px 12px;
  background: #334e68;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}
.page-btn:hover { background: #243b53; }
.page-info { padding: 6px 12px; color: #94a3b8; font-size: 13px; }

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .station-list-page { padding: 0 1rem 4rem; }
  .station-item { padding: 12px 0; }
  .station-name-link { font-size: 14px; }
}