/* ============================================================
   Cat Map — Scoped styles for the inline category/browse map.
   ============================================================ */

/* Wrapper — same pattern as walk-map-inline */
.cat-map-inline {
  position: relative;
  width: 100%;
}

.cat-map-inline .map-container {
  width: 100%;
  height: 520px;
}

/* Popup overrides for the category map */
.cat-map-inline .maplibregl-popup-close-button {
  display: none;
}

.cat-map-inline .maplibregl-popup-content {
  border-radius: 5px;
  padding: 0 !important;
  overflow-y: auto;
  width: 300px;
  min-height: 30px;
  max-height: 450px;
  border: 1px solid white;
  font-size: 13px;
  overflow: auto;
  padding: 2px;
  line-height: 110%;
}

.cat-map-inline .maplibregl-popup-content::-webkit-scrollbar {
  width: 8px;
}
.cat-map-inline .maplibregl-popup-content::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 4px;
}
.cat-map-inline .maplibregl-popup-content::-webkit-scrollbar-track {
  background: #d84627;
}
.cat-map-inline .maplibregl-popup-content::-webkit-scrollbar-button {
  display: none;
}

/* Reuse the walk-map modal for touch panning */
.cat-map-inline .walk-map-modal {
  display: none;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.cat-map-inline .walk-map-modal-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  box-shadow: 0 0 30px 30px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  text-align: center;
  font-size: larger;
  color: white;
  user-select: none;
}
