/* ========== RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f9fa;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #e9ecef 50%, #f1f3f4 100%);
  overflow: hidden;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
  /* FuelRadar fix: Enable proper touch handling */
  touch-action: pan-x pan-y;
}

/* 🟣 PURPLE UPDATE MARKER - FILES REPLACED SUCCESSFULLY 🟣 */

/* ========== MAP ========== */
#map {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  /* FuelRadar optimization: Better touch handling */
  touch-action: pan-x pan-y pinch-zoom;
  /* Performance optimizations from FuelRadar */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ========== WEBSITE STYLE MIXIN ========== */
.glass {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ========== MAP TYPE CONTROL ========== */
.map-type-control {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  width: auto;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-type-option {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(0, 0, 0, 0.6);
  font-size: 18px;
  border: none;
  outline: none;
  position: relative;
}

.map-type-option:hover {
  background: rgba(255, 140, 0, 0.15);
  color: #ff8c00;
  transform: translateY(-1px);
}

.map-type-option.selected {
  background: rgba(255, 140, 0, 0.25);
  color: #ff8c00;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

/* Map transition overlay for smooth effect */
.map-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: rgba(255, 255, 255, 0.8);
  transition: opacity 0.4s ease-out;
}

.map-transition-overlay.active {
  opacity: 1;
  transition: opacity 0.2s ease-in;
}

/* ========== STATION SELECT (BRAND SELECT) ========== */
.station-select-button {
  position: fixed;
  top: 80px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.station-select-button:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(255, 165, 0, 0.2);
}

.station-select-button:active {
  transform: translateY(0) scale(0.95);
}

.station-select-logo {
  width: 24px;
  height: 24px;
  border-radius: 25%;
  object-fit: contain;
}

.station-select-text {
  font-size: 12px;
  font-weight: 700;
}

/* Station select grid */
.station-select-grid {
  position: fixed;
  top: 80px;
  right: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.9);
  transform-origin: top right;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  width: 340px;
  height: 260px;
  overflow: visible;
}

.station-select-grid.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.station-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 60px;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 0.4s ease forwards;
  position: relative;
  overflow: hidden;
}

.station-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 165, 0, 0.05) 0%, 
    transparent 40%, 
    transparent 60%, 
    rgba(255, 165, 0, 0.05) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.station-option:nth-child(1) { animation-delay: 0.05s; }
.station-option:nth-child(2) { animation-delay: 0.1s; }
.station-option:nth-child(3) { animation-delay: 0.15s; }
.station-option:nth-child(4) { animation-delay: 0.2s; }
.station-option:nth-child(5) { animation-delay: 0.25s; }
.station-option:nth-child(6) { animation-delay: 0.3s; }
.station-option:nth-child(7) { animation-delay: 0.35s; }
.station-option:nth-child(8) { animation-delay: 0.4s; }
.station-option:nth-child(9) { animation-delay: 0.45s; }
.station-option:nth-child(10) { animation-delay: 0.5s; }
.station-option:nth-child(11) { animation-delay: 0.55s; }
.station-option:nth-child(12) { animation-delay: 0.6s; }
.station-option:nth-child(13) { animation-delay: 0.65s; }
.station-option:nth-child(14) { animation-delay: 0.7s; }
.station-option:nth-child(15) { animation-delay: 0.75s; }
.station-option:nth-child(16) { animation-delay: 0.8s; }

.station-option:hover {
  background: rgba(255, 165, 0, 0.15);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.3);
}

.station-option:hover::before {
  opacity: 1;
}

.station-option.selected {
  background: rgba(255, 165, 0, 0.25);
  border-color: #ff8c00;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.station-logo {
  width: 30px;
  height: 30px;
  border-radius: 25%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
}

.station-option-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  text-align: center;
  line-height: 1.1;
}

/* ========== FUEL SELECT ========== */
.fuel-select-button {
  position: fixed;
  top: 136px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fuel-select-button:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(255, 165, 0, 0.2);
}

.fuel-select-button:active {
  transform: translateY(0) scale(0.95);
}

/* Fuel select grid */
.fuel-select-grid {
  position: fixed;
  top: 120px;
  right: 82px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.9);
  transform-origin: top right;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  width: 270px;
  height: auto;
  overflow: visible;
}

.fuel-select-grid.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fuel-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  min-height: 44px;
  min-width: 64px;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 0.4s ease forwards;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.fuel-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 165, 0, 0.05) 0%, 
    transparent 40%, 
    transparent 60%, 
    rgba(255, 165, 0, 0.05) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fuel-option:nth-child(1) { animation-delay: 0.03s; }
.fuel-option:nth-child(2) { animation-delay: 0.06s; }
.fuel-option:nth-child(3) { animation-delay: 0.09s; }
.fuel-option:nth-child(4) { animation-delay: 0.12s; }
.fuel-option:nth-child(5) { animation-delay: 0.15s; }
.fuel-option:nth-child(6) { animation-delay: 0.18s; }
.fuel-option:nth-child(7) { animation-delay: 0.21s; }
.fuel-option:nth-child(8) { animation-delay: 0.24s; }
.fuel-option:nth-child(9) { animation-delay: 0.27s; }

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fuel-option:hover {
  background: rgba(255, 165, 0, 0.15);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.3);
  color: #ff8c00;
}

.fuel-option:hover::before {
  opacity: 1;
}

.fuel-option.selected {
  background: rgba(255, 165, 0, 0.25);
  border-color: #ff8c00;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
  color: #ff8c00;
}

/* ========== ZOOM CONTROLS ========== */
.zoom-controls {
  position: fixed;
  bottom: 140px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.zoom-btn {
  width: 42px;
  height: 42px;
  font-size: 16px;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(0, 0, 0, 0.6);
  background: transparent;
  outline: none;
  position: relative;
}

.zoom-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: rgba(255, 165, 0, 0.2);
}

.zoom-btn:hover {
  background: rgba(255, 140, 0, 0.15);
  color: #ff8c00;
}

.zoom-btn:active {
  background: rgba(255, 140, 0, 0.25);
  color: #ff8c00;
  transform: scale(0.95);
}

/* ========== USER LOCATION MARKER ANIMATION ========== */
@keyframes userLocationPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    transform: scale(1);
  }
}

/* Custom user location marker */
.custom-user-location {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.pulse-circle {
  width: 20px;
  height: 20px;
  background: #ff8c00;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3);
  animation: userLocationPulse 2s infinite;
}

/* Hide the default MapKit marker for user location */
.mk-marker-annotation[data-cluster-id="user-location"] {
  display: none !important;
}

/* ========== WEATHER DISPLAY ========== */
.weather-display {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.4s ease;
  max-height: 52px;
  overflow: hidden;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.weather-display:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(255, 165, 0, 0.2);
}

.weather-display.expanded {
  max-height: 220px;
  padding: 20px;
  width: 220px;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.weather-icon {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.weather-temp {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  text-shadow: 0 1px 3px rgba(255,255,255,0.3);
}

.weather-forecast {
  margin-top: 15px;
  display: none;
  width: 100%;
}

.weather-display.expanded .weather-forecast {
  display: block;
}

.forecast-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

.forecast-day:last-child {
  border-bottom: none;
}

.forecast-day-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  min-width: 65px;
}

.forecast-temps {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.8);
}

/* ========== BOTTOM TOOLBAR ========== */
.bottom-toolbar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 50px);
  max-width: 520px;
  height: 60px;
  border-radius: 25px;
  z-index: 1499;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bottom-toolbar.expanded {
  height: 75vh;
  max-height: 620px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02),
    0 0 40px rgba(255, 165, 0, 0.15);
}

.toolbar-content {
  flex: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px 25px 90px 25px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bottom-toolbar.expanded .toolbar-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.toolbar-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.95);
  margin: 0;
}

.panel-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: rgba(0, 0, 0, 0.7);
  font-size: 16px;
}

.panel-close-btn:hover {
  background: rgba(255, 165, 0, 0.2);
  color: #ff8c00;
  transform: scale(1.1);
}

.panel-close-btn:active {
  transform: scale(0.95);
}

.toolbar-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0px;
  left: 30px;
  right: 30px;
  padding: 0;
  z-index: 1000;
}

.toolbar-btn {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: rgba(0, 0, 0, 0.7);
  background: transparent;
  border: none;
  font-size: 30px;
  position: relative;
}

.toolbar-btn::before {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.toolbar-btn:hover::before {
  background: rgba(255, 165, 0, 0.15);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.2);
}

.toolbar-btn:hover {
  transform: translateY(-4px);
  color: #ff8c00;
}

.toolbar-btn:active {
  transform: translateY(-2px) scale(0.95);
}

.toolbar-btn.active::before {
  background: rgba(255, 165, 0, 0.25);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.toolbar-btn.active {
  color: #ff8c00;
}

/* Position specific buttons */
.toolbar-btn:first-child {
  margin-right: auto;
}

.toolbar-btn:last-child {
  margin-left: auto;
}

/* ========== SEARCH PANEL ========== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.2);
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.08),
    0 0 0 2px rgba(255, 165, 0, 0.4);
}

.search-bar i {
  color: rgba(0, 0, 0, 0.7);
  font-size: 20px;
}

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.95);
  font-weight: 500;
  -webkit-text-size-adjust: 100%;
}

#search-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.suburb-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.suburb-list li {
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.suburb-list li:hover {
  background: rgba(255, 165, 0, 0.15);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.3);
  color: #ff8c00;
}

/* ========== STATION LIST ========== */
.station-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.station-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  background: transparent;
  margin-bottom: 8px;
  border-radius: 15px;
  border: 1px solid transparent;
  outline: none;
}

.station-item:hover {
  background: rgba(255, 165, 0, 0.15);
  box-shadow: 0 4px 20px rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.3);
}

.station-item .station-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.station-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.station-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.95);
  margin-bottom: 5px;
}

.station-address {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 3px;
}

.station-distance {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.station-price {
  font-size: 18px;
  color: #ff8c00;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

/* ========== FEATURE CARD OVERLAY (STANDALONE) ========== */
.feature-card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  padding: 20px;
}

.feature-card-standalone {
  max-width: 420px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 165, 0, 0.2);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02),
    0 0 50px rgba(255, 165, 0, 0.15);
  position: relative;
  margin: auto;
}

.feature-card-standalone .feature-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
}

.feature-card-standalone .feature-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px 25px 0 0;
}

/* Feature card text styling - enhanced glassy boxes */
.feature-card-standalone .feature-top-left {
  position: absolute;
  top: 18px;
  left: 18px;
  text-align: left;
  max-width: 70%;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 15px;
}

.feature-card-standalone .station-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.05);
  padding: 5px;
  flex-shrink: 0;
}

.feature-card-standalone .station-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-card-standalone .feature-station-name-overlay {
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.2;
}

.feature-card-standalone .feature-address-overlay {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.9);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.feature-card-standalone .feature-suburb-overlay {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0;
}

.feature-card-standalone .feature-distance-overlay {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0;
}

.feature-card-standalone .feature-bottom-left {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 12px 15px;
}

.feature-card-standalone .feature-fuel-type {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-card-standalone .feature-price-overlay {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.feature-card-standalone .price-value-overlay {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
  line-height: 1;
}

/* Bottom Right: Action Buttons - enhanced glassy boxes */
.feature-card-standalone .feature-bottom-right {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 8px;
}

.feature-card-standalone .feature-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  outline: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.6);
}

.feature-card-standalone .feature-icon-btn.navigation {
  color: rgba(0, 0, 0, 0.6);
}

.feature-card-standalone .feature-icon-btn.share {
  color: rgba(0, 0, 0, 0.6);
}

.feature-card-standalone .feature-icon-btn:hover {
  background: rgba(255, 140, 0, 0.15);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  color: #ff8c00;
}

.feature-card-standalone .feature-icon-btn:active {
  transform: translateY(-1px) scale(0.95);
  color: #ff8c00;
}

/* Additional prices section */
.additional-prices-section {
  padding: 25px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 25px 25px;
}

.additional-prices-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.95);
  margin: 0 0 15px 0;
}

.additional-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 15px;
}

.additional-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
}

.fuel-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.fuel-price {
  font-size: 15px;
  font-weight: 700;
  color: #ff8c00;
}

/* Close Button */
.feature-close-btn-overlay {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 16px;
  z-index: 3;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.feature-close-btn-overlay:hover {
  background: rgba(255, 165, 0, 0.2);
  transform: scale(1.1);
  color: #ff8c00;
}

@media (max-width: 480px) {
  .feature-card-standalone {
    width: 96%;
    max-height: 90vh;
  }

  .feature-card-standalone .feature-image-container {
    height: 260px;
  }

  .additional-prices-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== FUEL MARKERS ========== */
.fuel-marker {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
}

/* ========== USER LOCATION MARKER ========== */
.user-location-marker {
  animation: userLocationPulse 2.5s infinite;
}

@keyframes userLocationPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(255, 165, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
  }
}

/* ========== SCROLLBAR ========== */
.toolbar-content,
.suburb-list,
.station-list,
.station-select-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 165, 0, 0.3) transparent;
}

.toolbar-content::-webkit-scrollbar,
.suburb-list::-webkit-scrollbar,
.station-list::-webkit-scrollbar,
.station-select-grid::-webkit-scrollbar {
  width: 6px;
}

.toolbar-content::-webkit-scrollbar-track,
.suburb-list::-webkit-scrollbar-track,
.station-list::-webkit-scrollbar-track,
.station-select-grid::-webkit-scrollbar-track {
  background: transparent;
}

.toolbar-content::-webkit-scrollbar-thumb,
.suburb-list::-webkit-scrollbar-thumb,
.station-list::-webkit-scrollbar-thumb,
.station-select-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 165, 0, 0.3);
  border-radius: 3px;
}

.toolbar-content::-webkit-scrollbar-thumb:hover,
.suburb-list::-webkit-scrollbar-thumb:hover,
.station-list::-webkit-scrollbar-thumb:hover,
.station-select-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 165, 0, 0.5);
}

/* ========== SUBURBAN LIST STYLING ========== */
.suburb-item {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 165, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  margin-bottom: 4px;
}

.suburb-item:hover {
  background: rgba(255, 165, 0, 0.15);
  color: #ff8c00;
  border-color: rgba(255, 165, 0, 0.3);
}

.suburb-item:last-child {
  border-bottom: none;
}

.suburb-item.search-suggestion {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: 10px;
  font-weight: 600;
  color: #ff8c00;
}

.suburb-item.search-suggestion:hover {
  background: rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.4);
}

/* ========== PANELS ========== */
.panel-header {
  display: flex;
  flex-direction: column;        /* stack handle + title */
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.panel-drag-handle {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0,0,0,0.15);
  margin-top: 6px;
}

/* (keep .panel-title as-is) */

/* ========== FEATURE CARD BUTTONS (smaller + colored) ========== */
.feature-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,.12), inset 0 2px 4px rgba(255,255,255,.8);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  font-size: 16px; /* icon size */
}
.feature-icon-btn.navigation i { color: #22c55e; } /* green */
.feature-icon-btn.share i { color: #ff8c00; }      /* orange */
.feature-icon-btn:hover { transform: translateY(-1px); }
.feature-icon-btn:active { transform: scale(.95); }

/* ========== MARKER CANVAS TOUCH/PERF TWEAKS ========== */
.fuel-marker {
  pointer-events: auto;
  touch-action: pan-x pan-y;  /* allow map gestures while touching marker */
  will-change: transform;
  transform: translateZ(0);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 480px) {
  .toolbar-buttons {
    left: 20px;
    right: 20px;
    bottom: 4px;
  }

  .toolbar-btn {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .toolbar-btn::before {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .map-type-control {
    top: 16px;
    right: 12px;
  }

  .fuel-select-grid {
    width: auto;
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    right: 64px;
  }

  .fuel-select-grid.active {
    width: 290px;
    height: 170px;
  }

  .station-select-grid {
    width: auto;
    right: 64px;
    grid-template-columns: repeat(3, 1fr);
    height: auto;
  }

  .weather-display {
    top: 16px;
    left: 12px;
    padding: 6px 12px;
  }

  .weather-display.expanded {
    width: 200px;
  }
}
