body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

.mapboxgl-popup-content {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.mapboxgl-popup-close-button {
  color: #ffffff;
  font-size: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  top: 8px;
  right: 10px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mapboxgl-popup-close-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.popup-card {
  width: 320px;
  height: 520px;
  background-size: cover;
  background-position: center top;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.popup-overlay {
  background: rgba(0, 0, 0, 0.55); /* dark translucent overlay */
  color: white;
  padding: 1.5rem 2.5rem; /* top-bottom, left-right */
  width: 100%;
  text-align: justify;
  backdrop-filter: blur(10px); /* Glassy effect */
  position: absolute;
  bottom: 0;
  border-radius: 0 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.popup-overlay h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
}

.popup-overlay p {
  margin: 0.3rem 0;
  font-size: 0.85rem;
}

.popup-overlay a {
  color: #cfcfff;
  text-decoration: underline;
  font-weight: 500;
}

/* Optional: remove tip */
.mapboxgl-popup-tip {
  display: none;
}

.filter-panel {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45); /* dark transparent for glass effect */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  font-family: sans-serif;
  width: 280px;
  color: white;
}

#searchInput {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

#genre-filters label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer;
}

#genre-filters input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #8dfcc3; /* stylish light green accent */
}

.filter-panel {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.genres {
  margin: 0.6rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genres span {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
  backdrop-filter: blur(6px);
}

/* Optional Hover Effect (over the genres in the marker) */

.genres span:hover {
  background: rgba(255, 255, 255, 0.3);
  cursor: default;
}