/* ============================
   Base Popup Styling
============================ */
.town-popup {
  max-height: 75vh;
  max-width: 95vw;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  padding: 1rem;
  border-radius: 10px;
  box-sizing: border-box;
  line-height: 1.5;
  font-size: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ============================
   Heading & Text
============================ */
.town-popup h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #2c3e50;
}

.town-popup p {
  margin: 0.5rem 0;
  color: #444;
  font-size: 0.95rem;
}

/* ============================
   Embedded Playlist
============================ */
.playlist-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  margin: 1rem 0;
}

.playlist-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}

/* ============================
   Playlist Link
============================ */
.playlist-link {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.playlist-link a {
  color: #3498db;
  text-decoration: none;
}

.playlist-link a:hover {
  text-decoration: underline;
}

/* ============================
   Custom Scrollbar
============================ */
.town-popup::-webkit-scrollbar {
  width: 6px;
}
.town-popup::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.town-popup::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ============================
   Mobile Adjustments
============================ */
@media (max-width: 600px) {
  .town-popup {
    max-height: 75vh;
    max-width: 95vw;
    font-size: 0.95rem;
    padding: 1rem;
  }

  .playlist-embed-container {
    padding-bottom: 56.25%;
  }
}
