.MapCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.InsetCanvas {
  display: block;
}

.MapAttribution {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  color: #9a9a9a;
  font-size: 10px;
  line-height: 16px;
  text-align: right;
  word-break: break-all;
  pointer-events: none;
  z-index: 5;
}

.MapSelect {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  box-sizing: border-box;
  max-height: 240px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.MapSelect-Option {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: 28px;
  flex-shrink: 0;
  padding: 0 20px 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: #9a9a9a;
  text-decoration: none;
  appearance: none;
  border: none;
  background: none;
  border-radius: 2px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.MapSelect-Option:hover:not([data-current]) {
  background: #323232;
}
.MapSelect-Option[data-current] {
  color: #ededed;
  cursor: default;
}

.MapSelect-Option-Check {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  visibility: hidden;
}
.MapSelect-Option-Check svg {
  display: block;
  width: 10px;
  height: 10px;
}

.MapSelect-Option[data-current] .MapSelect-Option-Check {
  visibility: visible;
}

.MapSelect-Option-Label {
  white-space: nowrap;
}

.MapPanel {
  position: absolute;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  background: #363636;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  overflow: hidden;
  z-index: 10;
}
.MapPanel[data-hidden] {
  display: none;
}
.MapPanel-Header {
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.MapPanel-Header:active {
  cursor: grabbing;
}
.MapPanel-Title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  background: #323232;
  border-bottom-right-radius: 12px;
  font-size: 11px;
  color: #ededed;
}
.MapPanel-Close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ededed;
  cursor: pointer;
}
.MapPanel-Close svg {
  width: 9px;
  visibility: hidden;
}
.MapPanel-Close:hover svg {
  visibility: visible;
}
.MapPanel-Body {
  flex: 1;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.MapPanel-Row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.MapPanel-Row + .MapPanel-Row {
  margin-top: 6px;
}
.MapPanel-Label {
  font-size: 11px;
  color: #9a9a9a;
}
.MapPanel-Value {
  font-size: 13px;
  color: #ededed;
  font-variant-numeric: tabular-nums;
}

.MapPanel:has(.MapSelect) {
  min-width: 0;
}

.PanelResize {
  position: absolute;
  z-index: 1;
  touch-action: none;
}
.PanelResize[data-edge=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.PanelResize[data-edge=s] {
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  cursor: ns-resize;
}
.PanelResize[data-edge=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.PanelResize[data-edge=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.PanelResize[data-edge=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}
.PanelResize[data-edge=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.PanelResize[data-edge=se] {
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.PanelResize[data-edge=sw] {
  left: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}

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

body {
  overflow: hidden;
}

#japan-land-price {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #16181c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#japan-land-price:empty {
  position: static;
  height: 0;
}

body:has(#japan-land-price:empty) {
  overflow: auto;
}