/* Region picker: our own map of Korea laid over the map home. */
/* The name of the place in view, by the map's zoom buttons at its top right. It lies on the map as a note does,
   not as a button: seen through, its ground more than its letters, so the map under it is not lost. */
.am-place-name {
  position: absolute;
  right: 58px;
  top: 17px;
  z-index: 3;
  max-width: calc(100% - 210px);
  padding: 4px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgb(11 39 51 / 46%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: rgb(255 255 255 / 94%);
  text-shadow: 0 0 3px rgb(5 26 36 / 60%);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  cursor: default;
}
.am-place-name[hidden] { display: none; }
.am-place-name[aria-expanded="true"] { background: rgb(11 39 51 / 82%); }
.am-place-name:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* The 읍면동 about the one named, under the name: headed as the cards and the scales are. */
.am-place-near { position: absolute; right: 64px; top: 43px; z-index: 6; display: grid; min-width: 108px; max-width: 200px; border: 1px solid #a4b8c1; background: #fff; box-shadow: 0 4px 10px #253d4833; }
.am-place-near[hidden] { display: none; }
.am-place-near p { margin: 0; padding: 3px 9px 4px; background: #0b2733; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 14px; letter-spacing: .04em; }
.am-place-near button { min-height: 31px; padding: 4px 10px; overflow: hidden; color: #2c4753; font-size: 12.5px; font-weight: 650; letter-spacing: -.02em; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.am-place-near button + button { border-top: 1px solid #e8eef1; }
.am-place-near button:hover { background: #eaf5fa; color: #0b2733; }
.am-place-near button:focus-visible { outline: 2px solid #076e9e; outline-offset: -2px; }
.am-layout:has(.am-zoom-presets:not([hidden])) .am-place-near { visibility: hidden; }
/* The rail is 44 wide now: the name stands clear of it, and gives way while the scales are laid out beside it. */
.am-place-name { right: 64px; }
.am-layout:has(.am-zoom-presets:not([hidden])) .am-place-name { visibility: hidden; }
@media (pointer:coarse) { .am-place-name { right: 64px; } }
.am-region-layer { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.am-region-layer path { fill: rgb(0 174 239 / 7%); stroke: #046c9c; stroke-width: 2.5; stroke-linejoin: round; }

/* Our own map under the markers. Zoomed out to the whole country it also sits above the held frame. */
.am-stage > .am-region-base { z-index: 0; pointer-events: none; transition: opacity var(--am-fade,.34s) ease; }
/* Hidden only once the fade into the base map has finished. */
.am-stage > .am-region-base[data-off] { visibility: hidden; transition: opacity var(--am-fade,.34s) ease, visibility 0s var(--am-fade,.34s); }
.am-stage[data-region-view="nation"] > .am-region-base { z-index: 2; }
.am-stage[data-region-view="nation"] > .am-pins { visibility: hidden; }
/* On our own flat map the see-through count bubbles need a solid ground. */
.am-stage:is([data-region-view="region"],[data-region-view="local"]) .am-pin.am-group {
  background: #fff;
  border-color: #046c9c;
  box-shadow: 0 1px 4px rgb(11 39 51 / 20%);
}
.am-stage:is([data-region-view="region"],[data-region-view="local"]) .am-pin.am-group:is(:hover,[aria-pressed=true],:focus-visible) { background: #cdeefc; }
.am-pins.am-pins-enter { animation: am-pins-in .34s ease both; }
@keyframes am-pins-in { from { opacity: 0; } 45% { opacity: 0; } to { opacity: 1; } }
.am-stage:is(.am-region-pick,.am-area-pick), .am-stage:is(.am-region-pick,.am-area-pick) .am-kakao, .am-stage:is(.am-region-pick,.am-area-pick) .am-kakao * { cursor: pointer !important; }
@media (prefers-reduced-motion: reduce) { .am-stage > .am-region-base { transition: none; } }

.rp {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(320px,34%,430px);
  color: var(--ink);
  background: rgb(240 247 251 / 78%);
  -webkit-backdrop-filter: blur(5px) saturate(.7);
  backdrop-filter: blur(5px) saturate(.7);
  opacity: 0;
  transition: opacity .22s ease;
}
.rp[hidden] { display: none; }
.rp.rp-open { opacity: 1; }
.rp-map { position: relative; min-width: 0; min-height: 0; padding: 16px 6px 16px 20px; }
.rp-map-status { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; color: var(--muted); font-size: 14px; }
.rp-svg { display: block; width: 100%; height: 100%; }
.rp-context { fill: #dce6eb; opacity: .7; }
.rp-provinces { filter: drop-shadow(0 2px 5px rgb(11 39 51 / 13%)); }
.rp-province, .rp-district {
  fill: #dbf1fb;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .14s ease;
}
.rp-district { stroke-width: 1; }
.rp-province[data-dim] { fill: #e5edf1; }
.rp-province[data-open] { fill: #fff; pointer-events: none; }
.rp-province[data-hover], .rp-district[data-hover] { fill: var(--lime) !important; }
.rp-province[data-dim][data-hover] { fill: #bfe6f8 !important; }
.rp-outline { fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.rp-labels { pointer-events: none; }
.rp-labels text {
  font-size: calc(var(--rp-unit,1) * 12px);
  font-weight: 720;
  letter-spacing: -.02em;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgb(255 255 255 / 82%);
  stroke-width: .26em;
  stroke-linejoin: round;
}
.rp-labels text[hidden] { display: none; }
.rp-tip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
  pointer-events: none;
}
.rp-tip[hidden] { display: none; }
.rp-tip span { color: #9fdcf8; font-variant-numeric: tabular-nums; }

.rp-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 26px 22px 16px;
  border-left: 1px solid var(--line);
  background: rgb(255 255 255 / 95%);
  box-shadow: -8px 0 24px rgb(11 39 51 / 6%);
}
.rp-eyebrow { margin: 0; color: var(--forest); font-size: 12px; font-weight: 760; }
.rp-side h2 { margin: 5px 34px 6px 0; font-size: clamp(20px,1.9vw,25px); font-weight: 800; line-height: 1.25; letter-spacing: -.045em; outline: 0; }
.rp-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.rp-crumbs { display: flex; align-items: center; gap: 7px; min-height: 30px; margin: 14px 0 8px; font-size: 13px; }
.rp-crumbs button { padding: 4px 10px; border-radius: 999px; background: #e4f5fd; color: var(--forest); font-weight: 720; }
.rp-crumbs button:hover { background: #cdeefc; }
.rp-crumbs strong { font-weight: 760; }
.rp-crumbs span { color: #8aa0aa; }
.rp-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  align-content: start;
  min-height: 0;
  margin: 0 -3px;
  padding: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rp-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -.02em;
  text-align: left;
  transition: background .12s ease, border-color .12s ease;
}
.rp-list button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-list button b { min-height: 1.35em; color: var(--muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-list button:hover, .rp-list button[data-hover] { border-color: var(--forest); background: #e4f5fd; }
.rp-list button[data-empty] span { color: #6d8590; font-weight: 640; }
.rp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rp-whole { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 14px; border-radius: 9px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 760; }
.rp-whole[hidden] { display: none; }
.rp-whole:hover { background: #33c1f5; }
.rp-skip { min-height: 38px; margin-left: auto; padding: 8px 4px; color: var(--forest); font-size: 13px; font-weight: 700; }
.rp-skip:hover { text-decoration: underline; text-underline-offset: 4px; }
.rp-source { margin: 9px 0 0; color: #7b929c; font-size: 10.5px; line-height: 1.5; }
.rp-source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rp-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #445c67; }
.rp-close:hover { background: #e8eef1; }
.rp :is(button):focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }

@media (max-width: 760px) {
  .am-place-name { right: 60px; top: 15px; max-width: calc(100% - 190px); font-size: 12px; }
  .am-place-near { right: 60px; top: 41px; }
  .rp { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(150px,43%) minmax(0,1fr); }
  .rp-map { padding: 8px 10px 4px; }
  .rp-side { padding: 12px 14px 10px; border-left: 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgb(11 39 51 / 6%); }
  .rp-eyebrow { display: none; }
  .rp-side h2 { margin: 0 0 3px; font-size: 18px; }
  .rp-lead { font-size: 12px; }
  .rp-crumbs { margin: 8px 0 6px; }
  .rp-list button { min-height: 44px; padding: 6px 9px; font-size: 13.5px; }
  .rp-actions { margin-top: 8px; padding-top: 8px; }
  .rp-close { top: 6px; right: 6px; background: rgb(255 255 255 / 85%); }
}
@media (prefers-reduced-motion: reduce) {
  .rp, .rp-province, .rp-district, .rp-list button { transition: none; }
}
