/* MapSection Component Styles */

/* Map State Overlay */
.map-state-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 37, 41, 0.95);
  z-index: 1000;
  border-radius: 8px;
}

.map-loading-container {
  background: rgba(33, 37, 41, 0.95);
}

.map-loading-content.rumble-theme {
  text-align: center;
}

.rumble-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f5484d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-logo {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-text {
  color: #fff;
  font-size: 14px;
  margin: 0;
}

.map-error-container {
  background: rgba(33, 37, 41, 0.98);
}

.map-error-message {
  text-align: center;
  color: #fff;
  padding: 20px;
}

.map-error-message p {
  margin: 10px 0 5px;
  font-size: 16px;
}

.map-error-message small {
  display: block;
  opacity: 0.8;
  font-size: 12px;
}

/* Mobile Location Search Container */
.mobile-location-search-container {
  width: 100%;
}

/* Gym Mini Logo */
.gym-mini-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  background: #f8f9fa;
  flex-shrink: 0;
}

.gym-mini-logo.fallback-logo {
  padding: 4px;
  background: #fff;
}

.detected-gym-logo {
  border: none;
  box-shadow: none;
}

/* Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Override panels-override.css to ensure correct positioning */
.position-relative > .map-style-toggle-pill,
.createrumble-map-sec > .map-style-toggle-pill,
.main-info-content .map-style-toggle-pill {
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: auto !important;
  right: auto !important;
}

/* Dropdown Suggestions Styles */
.suggestions-dropdown {
  background: rgb(25 28 31 / 98%) !important;
}

.unified-location-search .suggestions-dropdown.suggestions-dropdown--upward {
  background: rgb(25 28 31 / 99%) !important;
}

/* Dropdown fallback logo specific styles */
.unified-location-search .gym-mini-logo.fallback-logo {
  width: 48px !important;
  height: 48px !important;
  border: none !important;
  opacity: 0.35 !important;
  mix-blend-mode: overlay !important;
  background: rgba(255, 255, 255, 0) !important;
}

/* Suggestion Item Styles */
.unified-location-search .suggestion-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 16px !important;
}

/* Search bar fallback logo specific styles */
.mobile-location-search .detected-gym .fallback-logo {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
}