/* tourismapp/static/css/map.css — shared Mapbox chrome for /explore and the
   experience/campaign maps. Plain CSS because the Tailwind build can't be run,
   so new utility/arbitrary classes wouldn't exist in output.css. */

/* Design-system popup photo card (strip Mapbox chrome). */
.loc-popup .mapboxgl-popup-content {
  padding: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(26, 44, 47, 0.18);
}
.loc-popup .mapboxgl-popup-tip { border-top-color: #fff; }
.loc-popup .mapboxgl-popup-close-button {
  z-index: 1;
  width: 28px; height: 28px; top: 8px; right: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937; font-size: 18px; line-height: 1;
}

/* "Part of" experience chips */
.map-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.map-chips-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: #6b7280; margin-right: 2px;
}
.map-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 3px 10px; border-radius: 9999px;
  background: #e8f4f8; color: #3a627f; border: 1px solid #d1e9f1;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  transition: background-color .15s, border-color .15s;
}
.map-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-chip i { font-size: 10px; color: #5c9cd1; }
.map-chip:hover { background: #d1e9f1; border-color: #a3d3e3; }

/* Pill-shaped native <select> (keeps native a11y + mobile pickers). */
.map-select {
  appearance: none; -webkit-appearance: none;
  max-width: 15rem; text-overflow: ellipsis;
  padding: 0.5rem 2rem 0.5rem 2.25rem;
  border: 1px solid #d1d5db; border-radius: 9999px; background: #fff;
  font-size: 0.875rem; color: #374151; cursor: pointer;
}
.map-select:focus { outline: none; border-color: #47a7c7; box-shadow: 0 0 0 2px #a3d3e3; }
.map-select.is-active { border-color: #4a7da7; background: #4a7da7; color: #fff; }
.map-select-wrap { position: relative; display: none; }   /* header copy: md+ (beside the category pills) */
@media (min-width: 768px) { .map-select-wrap { display: block; } }

/* Below md: experience + category selects side by side atop the list. */
.map-filters-mobile { display: flex; gap: 0.5rem; padding: 1rem 1rem 0; }
.map-filters-mobile:not(:has(.map-select-wrap:not([hidden]))) { display: none; }
.map-filters-mobile .map-select-wrap { display: block; flex: 1 1 0; min-width: 0; }
.map-filters-mobile .map-select { width: 100%; max-width: none; }
@media (min-width: 768px) { .map-filters-mobile { display: none; } }
.map-select-wrap[hidden] { display: none !important; }
.map-select-wrap > i {
  position: absolute; top: 50%; transform: translateY(-50%);
  pointer-events: none; font-size: 0.8rem; color: #5c9cd1;
}
.map-select-wrap > i.lead { left: 0.9rem; }
.map-select-wrap > i.trail { right: 0.85rem; font-size: 0.65rem; color: #9ca3af; }
.map-select-wrap.is-active > i { color: #fff; }

/* Embedded experience/campaign map */
.pkg-map { height: 20rem; }
@media (min-width: 768px) { .pkg-map { height: 26rem; } }
.pkg-map-card {
  position: absolute; top: 1rem; left: 1rem; z-index: 5;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  border-left: 3px solid #ffc20e; border-radius: 0.6rem;
  box-shadow: 0 6px 18px rgba(26, 44, 47, 0.14);
  font-size: 0.875rem;
}
.pkg-map-card .count { font-weight: 600; color: #1f2937; white-space: nowrap; }
.pkg-map-card a {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  padding: 0.35rem 0.75rem; border-radius: 9999px;
  background: #4a7da7; color: #fff; font-weight: 600; font-size: 0.8rem;
  transition: background-color .15s;
}
.pkg-map-card a:hover { background: #3a627f; }

.map-user-dot {
  width: 16px; height: 16px; border-radius: 9999px;
  background: #2563eb; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

/* Phones: the experience bar keeps the name readable, link collapses to its arrow. */
@media (max-width: 639px) { .exp-link-text { display: none; } }
