   body, html {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  height: 100%;
  overflow: hidden;
  background-color: #fff; /* puoi personalizzare */
  color: #333;
}

#map {
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 90vh;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
  color: #dc3545;
  outline: none;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #dc3545;
}

#modalImage {
  width: 90%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.audio-player {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 15px;
  background-color: #482559;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.player-button {
  font-size: 1.2rem;
  cursor: pointer;
  background:#ff0018;
  border: none;
  color: #fff;
  transition: color 0.3s ease, transform 0.2s ease;
}

.player-button:hover {
  color: #dc3545;
  transform: scale(1.1);
}

.progress-container {
  flex-grow: 1;
  background: #e0e0e0;
  height: 6px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.progress-bar {
  background: #007bff;
  height: 100%;
  width: 0;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

.seek-slider {
  width: 100%;
  margin-top: 6px;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #dc3545;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  margin-top: -5px;
}

.seek-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #dc3545;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.time-display {
  font-size: 0.9rem;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.volume-slider {
  width: 80px;
  -webkit-appearance: none;
  height: 5px;
  background: #ccc;
  outline: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #dc3545;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #dc3545;
  border-radius: 50%;
  cursor: pointer;
}

.modal-details p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #555;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .audio-player {
    align-items: flex-start;
  }

  .volume-slider {
    width: 90%;
  }
}