/* ==========================================================================
   Gas Prices Page — /gas-prices
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.gp-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 40%;
  background-color: #2a1a3a;
}
.gp-hero-back {
  position: absolute;
  top: 34px;
  left: 38px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 12px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.gp-hero-back:hover,
.gp-hero-back:focus {
  background: rgba(0, 0, 0, 0.62);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateX(-2px);
}
.gp-hero-back i { font-size: 11px; opacity: 0.9; }
@media (max-width: 540px) {
  .gp-hero-back { top: 24px; left: 26px; font-size: 12px; padding: 6px 12px 6px 10px; }
}
.gp-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.gp-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.gp-hero h1 i { margin-right: 8px; }
.gp-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  max-width: 720px;
}
@media (max-width: 540px) {
  .gp-hero { min-height: 200px; }
  .gp-hero h1 { font-size: 26px; }
  .gp-hero p { font-size: 16px; }
}

/* --- Last updated --- */
.gp-updated {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 8px;
  font-size: 14px;
  color: #555;
}
.gp-updated-label { font-weight: 600; color: #222; }
.gp-updated-source a { color: #1866B4; text-decoration: none; border-bottom: 1px dotted #1866B4; }
.gp-updated-source a:hover { color: #0d4e90; border-bottom-color: #0d4e90; }

/* --- State average row --- */
.gp-state {
  margin: 16px 0 28px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fff7e8 0%, #ffe9c8 100%);
  border: 1px solid #f3d9a8;
  border-radius: 16px;
  text-align: center;
}
.gp-state-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #8a5a1c;
  margin-bottom: 14px;
}
.gp-state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gp-state-cell {
  padding: 10px 8px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0dfb8;
}
.gp-state-grade {
  font-size: 13px;
  color: #6a4a14;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.gp-state-price {
  font-size: 26px;
  font-weight: 700;
  color: #2a1a3a;
  line-height: 1.1;
}
@media (max-width: 540px) {
  .gp-state-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gp-state-price { font-size: 22px; }
}

/* --- Section heading --- */
.gp-section { margin: 36px 0; }
.gp-section h2 {
  font-size: 26px;
  margin: 0 0 18px;
  color: #2a1a3a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gp-section h2 i { color: #F27A24; font-size: 22px; }

/* --- Per-island cards --- */
.gp-island-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.gp-island-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-top: 4px solid #888;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.gp-island-head {
  padding: 12px 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gp-island-head i { font-size: 22px; }
.gp-island-body { padding: 14px 16px; }
.gp-island-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
}
.gp-island-row:last-child { border-bottom: none; }
.gp-island-grade {
  font-size: 14px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.gp-island-price {
  font-size: 19px;
  font-weight: 700;
  color: #2a1a3a;
}
.gp-island-aaa {
  margin-top: 8px;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-style: italic;
  text-align: right;
}
.gp-island-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #777;
  font-style: italic;
}

/* Trend indicators — up/down badges next to a price showing the
   change vs. yesterday's AAA reading. */
.gp-trend {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
}
.gp-trend-up   { background: #fde2e2; color: #c0392b; }
.gp-trend-down { background: #d8f2e3; color: #1e8449; }
.gp-trend-flat { background: #ececec; color: #555; }
.gp-state-price .gp-trend {
  font-size: 11px;
  margin-left: 4px;
  vertical-align: 3px;
}

/* --- Why / tips / FAQ shared grid --- */
.gp-why-grid,
.gp-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gp-why-card,
.gp-tip-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #F27A24;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.gp-tip-card { border-left-color: #1D9771; }
.gp-why-card h3,
.gp-tip-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #2a1a3a;
}
.gp-why-card p,
.gp-tip-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}
.gp-tip-card a {
  color: #1866B4;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #c4d4e8;
}
.gp-tip-card a:hover { color: #0d4e90; border-bottom-color: #0d4e90; }

/* --- FAQ --- */
.gp-faq {
  display: grid;
  gap: 10px;
}
.gp-faq-item {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.gp-faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #2a1a3a;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.gp-faq-item summary::-webkit-details-marker { display: none; }
.gp-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #888;
  font-weight: 400;
  line-height: 1;
}
.gp-faq-item[open] summary::after { content: '−'; }
.gp-faq-item[open] summary { border-bottom: 1px solid #f0f0f0; }
.gp-faq-item p {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #444;
}
.gp-faq-item a { color: #1866B4; text-decoration: underline; }

/* --- Bottom CTA --- */
.gp-bottom-cta {
  margin: 40px 0 24px;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(135deg, #1866B4 0%, #0d4e90 100%);
  color: #fff;
  border-radius: 16px;
}
.gp-bottom-cta h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: #fff;
}
.gp-bottom-cta p {
  font-size: 16px;
  margin: 0 0 16px;
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.gp-cta-btn {
  display: inline-block;
  padding: 12px 26px;
  background: #fff;
  color: #1866B4 !important;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gp-cta-btn:hover,
.gp-cta-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  color: #0d4e90 !important;
}

/* --- Print --- */
@media print {
  .gp-hero-back,
  .gp-bottom-cta { display: none; }
  .gp-hero { min-height: 140px; }
  .gp-hero h1 { font-size: 24px; }
  .gp-hero p { font-size: 14px; }
  .gp-island-card,
  .gp-why-card,
  .gp-tip-card,
  .gp-state,
  .gp-faq-item { break-inside: avoid; box-shadow: none; }
}
