.location-feature-dialog {
  --location-ink: #283540;
  --location-muted: #65717d;
  --location-gutter: 28px;
  --location-scrollbar: 12px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  width: min(600px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: hidden;
  background: #fffdf9;
  color: var(--location-ink);
  font-family: Pretendard, sans-serif;
  box-shadow: 0 24px 80px rgb(0 0 0 / 20%);
}
.location-explainer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}
.location-feature-dialog::backdrop {
  background: rgb(32 39 47 / 48%);
  backdrop-filter: blur(3px);
}
.location-feature-dialog * {
  box-sizing: border-box;
}
.location-feature-dialog button,
.location-feature-dialog a {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.location-feature-dialog button:focus-visible,
.location-feature-dialog a:focus-visible {
  outline: 2px solid #535681;
  outline-offset: 3px;
}
.location-explainer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px calc(var(--location-gutter) - var(--location-scrollbar)) 20px;
  border-bottom: 1px solid #eee7df;
}
.location-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #69638a;
  font-size: 13px;
  font-weight: 600;
}
.location-eyebrow img {
  width: 21px;
  height: 21px;
}
.location-explainer-header h2 {
  margin: 12px 0 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -0.8px;
  color: var(--location-ink);
  word-break: keep-all;
}
.location-explainer-header h2.location-eyebrow {
  margin: 0;
  min-height: 44px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
  color: #69638a;
  letter-spacing: -0.3px;
}
/* .nsv-landing button{border-radius:0} 보다 우선 — 핸드오프 원형 유지 */
.location-feature-dialog .location-close,
.nsv-landing .location-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  background: #ede9e2 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #43505a;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease;
}
.location-feature-dialog .location-close svg,
.nsv-landing .location-close svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  fill: none;
  stroke: currentColor;
}
.location-feature-dialog .location-close:active,
.nsv-landing .location-close:active {
  background: #e1dbd1 !important;
}
.location-explainer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: auto;
  scrollbar-color: auto;
}
.location-explainer-content {
  padding: 20px calc(var(--location-gutter) - var(--location-scrollbar)) 22px;
}
.location-explainer-scroll::-webkit-scrollbar {
  width: var(--location-scrollbar);
}
.location-explainer-scroll::-webkit-scrollbar-track {
  margin-block: 12px;
  background: transparent;
}
.location-explainer-scroll::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  border-radius: 999px;
  background: #d0cbc3;
  background-clip: padding-box;
}
.location-explainer-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #bcb6ac;
}
@supports not selector(::-webkit-scrollbar) {
  .location-explainer-scroll {
    --location-scrollbar: 10px;
    scrollbar-width: thin;
    scrollbar-color: #d0cbc3 transparent;
  }
}
#location-feature-summary {
  margin: 0 0 24px;
  color: var(--location-muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.3px;
}
.location-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.location-step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: #eeeaf5;
  color: #68648a;
  font-size: 12px;
  font-weight: 650;
}
.location-step-heading h3 {
  margin: 0;
  color: var(--location-ink);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.location-step-heading p {
  margin: 4px 0 0;
  color: var(--location-muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.2px;
}
.location-mode-selector {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 2px;
  margin: 0;
  border-radius: 7px;
  background: #dce5df;
}
.location-mode-selector button {
  min-height: 26px;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #697680;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 180ms,
    color 180ms,
    box-shadow 180ms;
}
.location-mode-selector button[aria-pressed='true'] {
  color: #535681;
  background: white;
  box-shadow: 0 1px 4px rgb(0 0 0 / 5%);
  font-weight: 650;
}
.location-map {
  overflow: hidden;
  margin-top: 14px;
  border-radius: 12px;
  background: #f1f3f1;
}
.location-map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #e9eeea;
}
.location-map-label {
  min-width: 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: -0.15px;
  color: #596b60;
  white-space: nowrap;
}
.location-map-canvas {
  position: relative;
}
.location-map-canvas > svg {
  display: block;
  width: 100%;
  height: auto;
}
.location-map-camera {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: matrix(1, 0, 0, 1, 0, 0);
  pointer-events: none;
  transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Both modes share one map. Transform the camera between the radius and district viewBoxes
 * (0 0 440 220 -> -150 -90 760 380) so switching modes reads as a continuous zoom. */
.location-map-canvas--district .location-map-camera {
  transform: matrix(0.5789473684, 0, 0, 0.5789473684, 86.84210526, 52.10526316);
}
.location-map-radius-overlay {
  opacity: 1;
  transition: opacity 320ms ease;
}
.location-map-district-overlay {
  opacity: 0;
  transition: opacity 420ms ease;
}
.location-map-canvas--district .location-map-radius-overlay {
  opacity: 0;
}
.location-map-canvas--district .location-map-district-overlay {
  opacity: 1;
}
.location-map-target {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    left 640ms cubic-bezier(0.22, 1, 0.36, 1),
    top 640ms cubic-bezier(0.22, 1, 0.36, 1);
}
.location-map-target--inside {
  left: 37.954545%;
  top: 56.818182%;
}
.location-map-target--outside {
  left: 77.5%;
  top: 58.636364%;
}
.location-map-canvas--district .location-map-target--inside {
  left: 41.710526%;
  top: 56.578947%;
}
.location-map-canvas--district .location-map-target--outside {
  left: 64.605263%;
  top: 57.631579%;
}
.location-feature-dialog .location-map-target:focus-visible {
  outline: 2px solid #535681;
  outline-offset: 2px;
}
.location-map-target {
  -webkit-tap-highlight-color: transparent;
}
.location-map-target:active {
  background: rgb(83 86 129 / 6%);
}
.location-map-person {
  opacity: 0.45;
  transform-box: view-box;
  transform-origin: 0 0;
  transition:
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
}
.location-map-person--inside {
  transform: translate(167px, 125px);
}
.location-map-person--outside {
  transform: translate(341px, 129px);
}
.location-map-canvas--district .location-map-person--inside {
  transform: translate(183.5263158px, 124.4736842px);
}
.location-map-canvas--district .location-map-person--outside {
  transform: translate(284.2631579px, 126.7894737px);
}
.location-map--inside .location-map-person--inside,
.location-map--outside .location-map-person--outside {
  opacity: 1;
}
.location-map-pulse {
  opacity: 0;
}
.location-map--inside .location-map-pulse {
  animation: location-pulse 1.7s ease-out 3;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes location-pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}
.location-verification {
  margin-top: 24px;
}
.location-verification .location-step-heading {
  margin-bottom: 12px;
}
.location-auth-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 11px;
  background: #edf5ef;
  color: #427750;
  min-height: 78px;
}
.location-auth-result--outside {
  background: #fcefed;
  color: #b54743;
}
.location-auth-result > svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.location-auth-result strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.location-auth-result p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--location-muted);
  word-break: keep-all;
}
.location-auth-result--outside p {
  color: #8b5d59;
}
.location-result-check {
  stroke-dasharray: 22;
  animation: location-check 450ms ease-out;
}
@keyframes location-check {
  from {
    stroke-dashoffset: 22;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.location-demo-note {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #82786d;
}
.location-explainer-footer {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  margin: 0 var(--location-gutter);
  padding: 16px 0;
  border-top: 1px solid #eee7df;
  background: #fffdf9;
}
.location-explainer-footer button,
.location-explainer-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.location-explainer-footer button {
  flex: 1;
  background: #f0ede7;
  color: #4f4943;
  font-weight: 650;
}
.location-explainer-footer a {
  flex: 2;
  background: var(--nown-brand-orange);
  color: #fff;
  -webkit-text-fill-color: #fff;
  transition: background-color 160ms ease;
}
.location-explainer-footer a:link,
.location-explainer-footer a:visited,
.location-explainer-footer a:hover,
.location-explainer-footer a:active {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
@media (hover: hover) {
  .location-explainer-footer a:hover {
    background: var(--nown-brand-orange-hover);
  }
  .location-close:hover {
    background: #e5e0d7;
  }
}
@media (max-width: 600px) {
  .location-feature-dialog {
    --location-gutter: 18px;
    width: calc(100% - 24px);
    max-height: 92dvh;
    border-radius: 18px;
  }
  .location-explainer-header {
    padding: 20px calc(var(--location-gutter) - var(--location-scrollbar)) 16px;
  }
  .location-explainer-header h2 {
    font-size: 23px;
  }
  .location-explainer-content {
    padding: 16px calc(var(--location-gutter) - var(--location-scrollbar)) 18px;
  }
  #location-feature-summary {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .location-step-heading h3 {
    font-size: 14px;
  }
  .location-step-heading p {
    font-size: 11px;
  }
  .location-verification {
    margin-top: 20px;
  }
  .location-explainer-footer {
    padding: 14px 0;
  }
}
@media (max-width: 359px) {
  .location-map-toolbar {
    padding-inline: 8px;
    gap: 4px;
  }
  .location-map-label {
    font-size: 10px;
  }
  .location-mode-selector button {
    font-size: 10px;
    padding-inline: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .location-feature-dialog *,
  .location-feature-dialog *::before {
    animation: none;
    transition: none;
  }
}
