/* Charger Detail Panel Styles */
.charger-detail-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.bolt-count {
  font-size: 10px;
  letter-spacing: -5px;
  margin-right: 4px;
}

.price-text {
  display: inline-flex;
  align-items: center;
  background: #222;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  border-radius: 12px;
  padding: 2px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  border: 2px solid #fff;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.charger-detail-panel.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.charger-detail-panel.hide {
  opacity: 0;
  transform: translate(-50%, -60%);
}

.info-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.label {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.value {
  color: #212529;
  font-size: 1.1rem;
  font-weight: 500;
}

.ad-hoc-note {
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 4px;
}

.group-container {
  margin-top: 12px;
}

.group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

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

.group-item-id {
  color: #212529;
  font-size: 0.85rem;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-item-status {
  color: #212529;
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
}

.available {
  color: #28a745;
}

.unavailable {
  color: #dc3545;
}

#streetViewContainer {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f8f9fa;
}

#streetViewImage {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
}

#streetViewLoading,
#streetViewError {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  text-align: center;
  z-index: 1;
}

#streetViewLoading svg {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}
