/* Basic layout */
html, body, #map {
  width: 100%;
  height: 100%;
  margin: 0;
}

.autocomplete-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 400px;
  z-index: 1002;
  border-radius: 8px;
}

.autocomplete-container {
  position: relative;
  height: calc(100vh - 20px);
}

/* Places loading indicator */
.places-loading-indicator {
  position: absolute;
  top: 3px;
  right: -170px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1003;
}

.places-loading-indicator.hidden {
  display: none;
}

.places-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #cfd8dc;
  border-top-color: #2ea2ff;
  border-radius: 50%;
  animation: places-spin 0.8s linear infinite;
}

@keyframes places-spin {
  to { transform: rotate(360deg); }
}

/* Dark theme variant */
body.theme-minimal-dark .places-loading-indicator,
body.theme-round-borders-dark .places-loading-indicator {
  background: rgba(34, 34, 34, 0.95);
  border-color: #444;
  color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Theme selector styling */
.theme-selector {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  padding: 4px 8px 4px 12px;
  border-right: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 4px 0 0 4px;
  white-space: nowrap;
}

.theme-selector select {
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  min-width: 100px;
  border-radius: 0 4px 4px 0;
}

.theme-selector select:focus {
  outline: none;
}

.theme-selector:hover {
  border-color: #007bff;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.15);
}

/* Dark theme styles for the demo page */
body.theme-minimal-dark,
body.theme-round-borders-dark {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Dark theme - theme selector */
body.theme-minimal-dark .theme-selector,
body.theme-round-borders-dark .theme-selector {
  background: #333;
  border-color: #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.theme-minimal-dark .theme-label,
body.theme-round-borders-dark .theme-label {
  color: #bbb;
  background: #444;
  border-right-color: #555;
}

body.theme-minimal-dark .theme-selector select,
body.theme-round-borders-dark .theme-selector select {
  color: #e0e0e0;
}

body.theme-minimal-dark .theme-selector:hover,
body.theme-round-borders-dark .theme-selector:hover {
  border-color: #007bff;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.2);
}
