.hris-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line, #e6e5e5);
  border-radius: 10px;
  background: #f4f4f2;
}

.hris-map .hris-map__canvas {
  min-height: 15rem;
  height: clamp(15rem, 38vw, 24rem);
  z-index: 0;
  background-color: #f4f4f2;
  background-image: linear-gradient(#e7e7e3 1px, transparent 1px), linear-gradient(90deg, #e7e7e3 1px, transparent 1px);
  background-size: 40px 40px;
}

.app-dialog .hris-map__canvas { height: clamp(13rem, 34vh, 19rem); min-height: 13rem; }
.hris-map .leaflet-container { font: .875rem/1.45 var(--sans); }
.hris-map .leaflet-tile-pane { filter: saturate(.68); }
.hris-map .leaflet-control-zoom { border: 1px solid #d4d1ce; border-radius: 8px; box-shadow: 0 2px 8px #0e0b0a13; }
.hris-map .leaflet-control-zoom a { display: grid; place-content: center; width: 32px; height: 32px; color: #262323; }
.hris-map .leaflet-control-zoom a:first-child { border-radius: 7px 7px 0 0; }
.hris-map .leaflet-control-zoom a:last-child { border-radius: 0 0 7px 7px; }
.hris-map .leaflet-control-zoom a:focus-visible { outline: 2px solid #262323; outline-offset: -3px; }
.hris-map .leaflet-control-attribution { padding: .18rem .4rem; max-inline-size: 100%; overflow-wrap: anywhere; color: #393533; font: 500 .75rem/1.2 var(--sans); background: #ffffffec; }
.hris-map .leaflet-control-attribution a { color: #262323; text-decoration: underline; }

.hris-site-marker { --marker-rim: #303630; color: #504320; background: transparent; }
.hris-site-marker::before { position: absolute; left: 15px; bottom: 3px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--marker-rim); content: ""; }
.hris-site-marker .map-avatar { position: absolute; top: 1px; left: 1px; display: grid; place-items: center; box-sizing: border-box; width: 38px; height: 38px; padding: 2px; border: 2px solid var(--marker-rim); border-radius: 50%; background: #fbfaf4; box-shadow: 0 2px 8px #18201961; }
.map-avatar .avatar { width: 100%; height: 100%; overflow: hidden; color: #463614; background: #f3d991; font: 700 13px/1 var(--sans); }
.map-avatar .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hris-site-marker.is-inactive { --marker-rim: #7a7870; filter: grayscale(1); }
.hris-site-marker:focus-visible .map-avatar { outline: 3px solid #fff; box-shadow: 0 0 0 5px #282e29; }
.hris-site-marker .map-avatar-count { position: absolute; top: -4px; right: -9px; padding: 2px 4px; border: 1px solid white; border-radius: 10px; background: #303630; color: white; font: 700 10px/1.2 var(--sans); }
.hris-map .leaflet-popup-content-wrapper { border-radius: 9px; color: #0e0b0a; }
.hris-map .hris-map-popup strong { font-size: .97rem; line-height: 1.25; }
.hris-map .hris-map-popup p { margin: .24rem 0 0; line-height: 1.35; overflow-wrap: anywhere; }
.hris-map .hris-map-popup .map-team-title { margin-top: .6rem; padding-top: .4rem; border-top: 1px solid #e7e5df; font-weight: 600; }
.map-team-members { max-height: 8rem; overflow-y: auto; margin: .25rem 0 0; padding: 0; list-style: none; }
.hris-map .leaflet-popup-scrolled .map-team-members { max-height: none; overflow: visible; }
.hris-map .leaflet-popup-scrolled { overscroll-behavior: contain; }
@media (max-width: 700px) {
  .project-atlas .atlas-map .hris-map__canvas { height: clamp(18rem, 76vw, 21rem); }
}

.hris-map__status { position: absolute; top: .65rem; right: .65rem; max-width: min(18rem, calc(100% - 4rem)); z-index: 1; pointer-events: none; margin: 0; padding: .5rem .65rem; border: 1px solid #d4d1ce; border-radius: 7px; background: #fff; color: #393533; font-size: .875rem; line-height: 1.35; }
.hris-map__empty { margin: 0; padding: .9rem 1rem; color: var(--muted, #5f5b58); }

.map-team-members li + li { border-top: 1px solid var(--line); }
.map-team-members a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 34px; padding: .15rem .2rem; color: inherit; text-decoration: none; }
.map-team-members a small { color: #785816; font-weight: 650; white-space: nowrap; }
.map-team-members a:hover small, .map-team-members a:focus-visible small { text-decoration: underline; }
@media (pointer: coarse) {
  .hris-map .leaflet-control-zoom a { width: 44px; height: 44px; }
  .map-team-members a { min-height: 44px; }
}
@media (max-width: 620px) {
  .hris-map__status { max-width: calc(100% - 5rem); padding: .4rem .55rem; font-size: .78rem; }
  .hris-map .leaflet-control-attribution { font-size: .69rem; }
}
