/* LocationPopup.css */
.location-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
  margin-bottom: 16px;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: #f3f4f6;
}

.close-icon {
  font-size: 1.5rem;
  color: #6b7280;
}

.location-popup-content {
  padding: 0 24px 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.welcome-section {
  text-align: center;
  margin-bottom: 24px;
}

.welcome-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.location-options {
  margin-bottom: 20px;
}

.location-option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  gap: 12px;
}

.location-option-btn:hover:not(:disabled) {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.location-option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.option-icon {
  font-size: 1.25rem;
  color: #3b82f6;
}

.option-content {
  flex: 1;
  text-align: left;
}

.option-title {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 2px;
}

.option-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.divider span {
  padding: 0 16px;
}

.search-section {
  margin-bottom: 16px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  background: white;
  transition: border-color 0.2s;
}

.search-container:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  font-size: 1rem;
  color: #6b7280;
  margin-right: 12px;
  margin-left: 10px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: #1f2937;
  background: transparent;
}

.search-input::placeholder {
  color: #9ca3af;
}

.places-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.debug-info {
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: #6b7280;
}

.error-message {
  padding: 12px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 16px;
}

.error-message p {
  margin: 0;
  color: #dc2626;
  font-size: 0.875rem;
}

.search-results-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.results-source {
  color: #6b7280;
  font-size: 0.75rem;
}

.results-list {
  max-height: 300px;
  overflow-y: auto;
}

.result-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: none;
  background: white;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 12px;
  border-radius: 6px;
}

.result-item:hover {
  background-color: #f9fafb;
}

.result-icon {
  font-size: 1rem;
  color: #6b7280;
  flex-shrink: 0;
}

.result-content {
  flex: 1;
  text-align: left;
}

.result-title {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-badge {
  background-color: #4285f4;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 500;
}

.result-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

.no-results {
  text-align: center;
  padding: 32px 16px;
  color: #6b7280;
}

.no-results p {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
}

.no-results-subtitle {
  font-size: 0.75rem !important;
  margin-bottom: 0 !important;
}

.debug-sample {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.location-required-footer {
  padding: 16px 24px;
  background-color: #fef3c7;
  border-top: 1px solid #f59e0b;
  text-align: center;
}

.location-required-footer p {
  margin: 0;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Scrollbar styling */
.results-list::-webkit-scrollbar {
  width: 6px;
}

.results-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}


.places-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #666;
  font-size: 14px;
}

.success-message {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.google-badge {
  background: #4285f4;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}