/* Build 748: compact, light OM discovery tray with visible category counts. */

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-discovery-bar:not([hidden]) {
  position: absolute !important;
  top: 140px !important;
  left: 50% !important;
  box-sizing: border-box !important;
  display: grid !important;
  width: min(760px, calc(100% - 36px)) !important;
  gap: 8px !important;
  padding: 10px 12px 9px !important;
  overflow: hidden !important;
  border: 1px solid rgba(164, 212, 201, 0.72) !important;
  border-radius: 22px !important;
  color: #103f47 !important;
  background:
    radial-gradient(circle at 2% 0%, rgba(108, 223, 193, 0.22), transparent 30%),
    rgba(250, 255, 253, 0.94) !important;
  box-shadow: 0 16px 38px rgba(3, 43, 55, 0.18), inset 0 1px 0 #ffffff !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  transform: translateX(-50%) !important;
}

html body .our-map-tray-head {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  gap: 9px !important;
  align-items: center !important;
}

html body .our-map-tray-mark {
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 13px !important;
  color: #ffffff !important;
  background: linear-gradient(145deg, #0b8277, #24bfa2) !important;
  box-shadow: 0 7px 16px rgba(5, 111, 101, 0.22) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

html body .our-map-discovery-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 0 !important;
}

html body .our-map-discovery-copy > span {
  color: #0b8578 !important;
  font-size: 0.55rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.13em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

html body .our-map-discovery-copy strong {
  overflow: hidden !important;
  color: #0b3540 !important;
  font-size: 0.95rem !important;
  font-weight: 920 !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .our-map-discovery-copy small {
  overflow: hidden !important;
  color: #60777b !important;
  font-size: 0.61rem !important;
  font-weight: 680 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .our-map-tray-private {
  display: inline-flex !important;
  min-height: 28px !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(16, 128, 112, 0.13) !important;
  border-radius: 999px !important;
  color: #49706f !important;
  background: rgba(231, 247, 241, 0.8) !important;
  font-size: 0.55rem !important;
  font-weight: 820 !important;
  white-space: nowrap !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  overflow-x: auto !important;
  padding: 1px 1px 2px !important;
  scroll-padding-inline: 2px !important;
  scrollbar-width: none !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button {
  display: inline-grid !important;
  grid-template-columns: auto auto auto !important;
  min-width: max-content !important;
  min-height: 38px !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(34, 118, 108, 0.12) !important;
  border-radius: 13px !important;
  color: #365f62 !important;
  background: rgba(240, 248, 245, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  white-space: nowrap !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button > span {
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button > b {
  font-size: 0.62rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button > small {
  display: grid !important;
  min-width: 19px !important;
  height: 19px !important;
  place-items: center !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  color: #527674 !important;
  background: rgba(201, 230, 222, 0.64) !important;
  font-size: 0.52rem !important;
  font-weight: 920 !important;
  line-height: 1 !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button[aria-pressed="true"] {
  border-color: rgba(14, 128, 114, 0.56) !important;
  color: #ffffff !important;
  background: linear-gradient(145deg, #087d72, #18aa93) !important;
  box-shadow: 0 7px 16px rgba(5, 94, 87, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button[aria-pressed="true"] > small {
  color: #0a665f !important;
  background: rgba(231, 255, 247, 0.92) !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button:focus-visible {
  outline: 2px solid #087d72 !important;
  outline-offset: 2px !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-spot-count {
  display: flex !important;
  min-height: 13px !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  color: #60797b !important;
  font-size: 0.55rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-spot-count::before {
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 auto !important;
  content: "" !important;
  border-radius: 999px !important;
  background: #1db792 !important;
  box-shadow: 0 0 0 3px rgba(29, 183, 146, 0.12) !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-discovery-bar:not([hidden]) {
    position: fixed !important;
    top: calc(126px + env(safe-area-inset-top)) !important;
    width: calc(100vw - 24px) !important;
    gap: 7px !important;
    padding: 9px 10px 8px !important;
    border-radius: 19px !important;
  }

  html body .our-map-tray-head {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    gap: 7px !important;
  }

  html body .our-map-tray-mark {
    width: 33px !important;
    height: 33px !important;
    border-radius: 11px !important;
  }

  html body .our-map-tray-private {
    min-height: 25px !important;
    padding-inline: 7px !important;
    font-size: 0.5rem !important;
  }

  html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button {
    min-height: 40px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 380px) {
  html body .our-map-tray-private {
    width: 25px !important;
    padding: 0 !important;
    justify-content: center !important;
    overflow: hidden !important;
    color: transparent !important;
  }

  html body .our-map-tray-private > span {
    color: #49706f !important;
  }
}

@media (max-height: 700px) and (max-width: 720px) {
  html body .our-map-discovery-copy small {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-filters button {
    transition: none !important;
  }
}
