html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 9px 12px;
  background: #fff;
  color: #18453b;
  border: 2px solid #18453b;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.map-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 360px;
  overflow: hidden;
  background: #e9eef0;
}

#map {
  width: 100%;
  height: 100%;
}

.details-panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 5;
  width: min(340px, 88vw);
  background: #f7f7f7;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
  transform: translateX(-104%);
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
}

.details-panel.is-open {
  transform: translateX(0);
}

.details-header {
  display: flex;
  align-items: center;
  min-height: 48px;
  background: #18453b;
  color: #fff;
}

.details-close {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.details-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

.details-header h1 {
  flex: 1;
  margin: 0;
  padding: 0 12px 0 16px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.details-content {
  padding: 18px 24px 28px;
  overflow: auto;
}

.detail-row + .detail-row {
  margin-top: 22px;
}

.detail-label {
  display: block;
  margin-bottom: 6px;
  color: #8a8f94;
  font-size: 12px;
  line-height: 1.25;
}

.detail-value {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.accessible-list {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  width: min(340px, calc(100% - 24px));
  max-height: min(330px, calc(100% - 24px));
  overflow: auto;
  padding: 14px;
  background: #fff;
  border: 2px solid #18453b;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-120%);
}

.accessible-list:focus,
.accessible-list:focus-within {
  transform: translateX(0);
}

.accessible-list h2 {
  margin: 0 0 10px;
  color: #18453b;
  font-size: 16px;
  line-height: 1.25;
}

.accessible-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.accessible-list li + li {
  margin-top: 6px;
}

.location-list-button {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #d2d7d3;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
}

.location-list-button[aria-current="true"],
.location-list-button:focus {
  border-color: #18453b;
  outline: 2px solid #18453b;
  outline-offset: 1px;
}

.map-marker {
  width: 25px;
  height: 25px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #08743b;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: rotate(-45deg);
}

.map-marker::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.map-marker.is-selected {
  background: #0b8f49;
  box-shadow: 0 0 0 11px rgba(255, 255, 255, 0.9), 0 4px 14px rgba(0, 0, 0, 0.36);
}

.map-marker:focus-visible {
  outline: 3px solid #18453b;
  outline-offset: 12px;
}

.maplibregl-ctrl-top-right {
  top: 10px;
  right: 10px;
}

.maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  .details-panel {
    inset: auto 0 0 0;
    width: 100%;
    max-height: 58%;
    transform: translateY(104%);
  }

  .details-panel.is-open {
    transform: translateY(0);
  }

  .details-content {
    padding: 16px 20px 24px;
  }
}
