:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #17201e;
  background: #f7f5ef;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.6rem 0.8rem;
  color: white;
  background: #17201e;
  border-radius: 0.4rem;
  transform: translateY(-150%);
}

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

.app-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 22rem) 1fr;
  height: 100dvh;
}

.explorer {
  position: relative;
  z-index: 1001;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  overflow: hidden;
  background: #f7f5ef;
  border-right: 1px solid #d8d7d1;
  box-shadow: 0 0 2rem rgb(23 32 30 / 8%);
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: #63716e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.intro {
  max-width: 32rem;
  margin-bottom: 0;
  color: #59635f;
  font-size: 0.9rem;
  line-height: 1.5;
}

label {
  margin-bottom: -0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

input[type="search"] {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.65rem 0.75rem;
  color: #17201e;
  background: white;
  border: 1px solid #c5c9c6;
  border-radius: 0.45rem;
  outline: none;
}

input[type="search"]:focus {
  border-color: #0f5f73;
  box-shadow: 0 0 0 3px rgb(15 95 115 / 16%);
}

.result-count {
  margin: 0;
  color: #63716e;
  font-size: 0.75rem;
}

.location-list {
  min-height: 0;
  margin: 0 -0.5rem;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.location-list button {
  width: 100%;
  padding: 0.58rem 0.65rem;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  cursor: pointer;
}

.location-list button:hover,
.location-list button:focus-visible,
.location-list button.is-selected {
  color: #0b4c5d;
  background: #e2eeed;
  outline: none;
}

.map-key {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding-top: 0.75rem;
  color: #59635f;
  font-size: 0.75rem;
  border-top: 1px solid #d8d7d1;
}

.map-key__marker {
  color: #0f5f73;
  font-size: 1.1rem;
}

.capture-note {
  margin: -0.45rem 0 0;
  color: #7a827f;
  font-size: 0.7rem;
}

.map-region {
  position: relative;
  min-width: 0;
  min-height: 0;
}

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

.panorama-marker {
  display: grid;
  width: 28px !important;
  height: 28px !important;
  place-items: center;
  margin: 0 !important;
  color: white;
  background: #0f5f73;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgb(0 0 0 / 42%);
  transition: transform 150ms ease, background 150ms ease;
}

.panorama-marker:hover,
.panorama-marker.is-selected {
  z-index: 1000 !important;
  background: #b24a2c;
  transform: scale(1.22);
}

.panorama-marker svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgb(15 95 115 / 22%);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  color: white;
  font-weight: 700;
  background: #0f5f73;
}

.panorama-panel {
  position: absolute;
  z-index: 1001;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  width: min(38rem, calc(100% - 2rem));
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #f7f5ef;
  border: 1px solid rgb(23 32 30 / 14%);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgb(23 32 30 / 24%);
}

.panorama-panel[hidden] {
  display: none;
}

.panorama-header,
.panorama-navigation {
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.panorama-header {
  border-bottom: 1px solid #d8d7d1;
}

.panorama-navigation {
  border-top: 1px solid #d8d7d1;
}

#panorama-frame {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  background: #101413;
  border: 0;
}

.panorama-navigation button,
.text-button {
  padding: 0.48rem 0.7rem;
  font-weight: 650;
  background: white;
  border: 1px solid #c5c9c6;
  border-radius: 0.4rem;
  cursor: pointer;
}

.panorama-navigation button:disabled {
  cursor: default;
  opacity: 0.4;
}

.text-button {
  color: #0b4c5d;
  background: transparent;
  border: 0;
}

.map-action {
  clear: both;
}

.map-action__button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  background: white;
  border: 0;
  cursor: pointer;
}

.map-action__button:hover,
.map-action__button:focus-visible,
.map-action__button.is-active {
  color: white;
  background: #0f5f73;
}

.map-action__button.is-loading {
  opacity: 0.55;
}

.map-status {
  position: absolute;
  z-index: 1000;
  bottom: 1rem;
  left: 50%;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.6rem 0.8rem;
  color: white;
  font-size: 0.8rem;
  background: #17201e;
  border-radius: 0.45rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.map-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .explorer {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    max-height: min(38dvh, 19rem);
    padding: 1rem;
    border: 1px solid rgb(23 32 30 / 14%);
    border-radius: 0.65rem;
    box-shadow: 0 0.5rem 2rem rgb(23 32 30 / 18%);
  }

  .intro,
  .map-key,
  .capture-note {
    display: none;
  }

  h1 {
    font-size: 1.45rem;
  }

  .map-region {
    width: 100%;
    height: 100dvh;
  }

  .panorama-open .explorer {
    display: none;
  }

  .panorama-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(70dvh, 40rem);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0.8rem 0.8rem 0 0;
  }

  .map-status {
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
