/*
 * SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
 *
 * SPDX-License-Identifier: Apache-2.0
 */

.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
}

// Animation for selected markers
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.map-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: #f5f5f5;
  color: #666;
  font-size: 1.2rem;
}

.marker-content {
  padding: 8px;
  min-width: 200px;
  max-width: 300px;

  h3 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  p {
    margin-bottom: 4px;
  }
}

.map-error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--grayscale-color-3, #f0f0f0);
  border-radius: 8px;
}

.map-error-content {
  text-align: center;
  padding: 2rem;
  max-width: 80%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-error-content h3 {
  color: var(--secondary-color-2, #cc0000);
  margin-bottom: 1rem;
}

.map-error-content p {
  color: var(--grayscale-color-1, #333333);
  margin-bottom: 0.5rem;
}
