/**
 * 대한민국·서울 관광지 인터랙티브 지도 — 각 시·도 영역 중앙 작은 건수 · 호버 30% 확대
 * Bootstrap 미사용
 */

.pub-sightseeing-map-section {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.kr-map-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 420px;
    margin: 28px auto 12px;
    padding: 20px 12px 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(26, 86, 219, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kr-map-counts-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 6px 8px 2px;
}

.kr-map-counts-strip-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.kr-map-svg {
    display: block;
    width: 100%;
    max-width: 524px;
    height: auto;
    min-height: 380px;
    aspect-ratio: 524 / 631;
    margin: 0 auto;
    overflow: visible;
}

.kr-region {
    cursor: pointer;
    transition: fill 0.22s ease, transform 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 1;
}

.kr-region-label {
    font-size: 10px;
    font-weight: 800;
    fill: #ffffff;
    stroke: rgba(15, 23, 42, 0.35);
    stroke-width: 0.4px;
    paint-order: stroke fill;
    pointer-events: none;
    user-select: none;
}

.kr-region-count-bg {
    fill: rgba(15, 23, 42, 0.72);
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 0.5px;
}

.kr-region-count-num {
    font-size: 10px;
    font-weight: 800;
    fill: #ffffff;
    stroke: none;
    paint-order: stroke fill;
    pointer-events: none;
    user-select: none;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.kr-region-count {
    pointer-events: none;
}

.kr-map-counts-layer {
    pointer-events: none;
}

.kr-region--gangwon    { fill: #60a5fa; }
.kr-region--gyeonggi   { fill: #34d399; }
.kr-region--chungbuk    { fill: #a78bfa; }
.kr-region--chungnam    { fill: #818cf8; }
.kr-region--daejeon     { fill: #6366f1; }
.kr-region--gyeongbuk   { fill: #fb923c; }
.kr-region--daegu       { fill: #f97316; }
.kr-region--ulsan       { fill: #f472b6; }
.kr-region--jeonbuk     { fill: #4ade80; }
.kr-region--jeonnam     { fill: #2dd4bf; }
.kr-region--gwangju     { fill: #22c55e; }
.kr-region--gyeongnam   { fill: #f87171; }
.kr-region--busan       { fill: #ef4444; }
.kr-region--incheon     { fill: #38bdf8; }
.kr-region--seoul       { fill: #7c3aed; }
.kr-region--jeju        { fill: #0ea5e9; }
.kr-region--sejong      { fill: #c084fc; }
.kr-region--default     { fill: #94a3b8; }
.kr-region--disabled    { fill: #cbd5e1; cursor: default; }

.kr-region.is-dim {
    opacity: 0.45;
}

.kr-region.is-hover,
.kr-region:hover {
    filter: url(#kr-region-glow);
    transform: scale(1.3);
    opacity: 1;
    stroke: #1d4ed8 !important;
    stroke-width: 3 !important;
}

.kr-region--disabled:hover {
    transform: none;
    filter: none;
}

.kr-map-tooltip {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.kr-map-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.kr-map-tooltip.is-bounce {
    animation: kr-map-label-float 1.1s ease-in-out infinite;
}

.kr-map-tooltip-no {
    display: inline-block;
    min-width: 18px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1a56db;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.kr-map-tooltip-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.kr-map-tooltip-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    font-weight: 500;
    color: #bfdbfe;
}

@keyframes kr-map-label-float {
    0%, 100% { transform: translate(-50%, -100%) translateY(0); }
    50%      { transform: translate(-50%, -100%) translateY(-10px); }
}

.pub-sightseeing-map-legend-table {
    width: 100%;
    max-width: 640px;
    margin: 18px auto 0;
    border-collapse: separate;
    border-spacing: 8px 10px;
    table-layout: fixed;
}

.pub-sightseeing-map-legend-table td {
    width: 33.33%;
    vertical-align: middle;
    padding: 4px 6px;
}

.pub-sightseeing-map-legend-table--4 {
    max-width: 640px;
}

.pub-sightseeing-map-legend-table--4 td {
    width: 25%;
}

.pub-sightseeing-map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 18px;
    padding: 0 8px;
}

.pub-sightseeing-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #64748b;
}

a.pub-sightseeing-map-legend-item--link {
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 5px;
    transition: background 0.18s, color 0.18s;
}

a.pub-sightseeing-map-legend-item--link:hover {
    background: #e0f2fe;
    color: #1d4ed8;
}

button.pub-sightseeing-map-legend-name {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.76rem;
    color: #64748b;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

button.pub-sightseeing-map-legend-name:hover {
    color: #1d4ed8;
}

.pub-sightseeing-map-legend-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    min-width: 26px;
    height: 18px;
    padding: 0;
    border-radius: 4px;
    background: #1a56db;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}

.pub-sightseeing-map-legend-no.is-zero {
    opacity: 0.72;
}

/* 전국 시·도별 뱃지 색상 — kr-region fill 색과 동일 */
.kr-legend-no--gangwon   { background: #60a5fa; }
.kr-legend-no--gyeonggi  { background: #34d399; color: #064e3b; }
.kr-legend-no--chungbuk  { background: #a78bfa; }
.kr-legend-no--chungnam  { background: #818cf8; }
.kr-legend-no--daejeon   { background: #6366f1; }
.kr-legend-no--gyeongbuk { background: #fb923c; }
.kr-legend-no--daegu     { background: #f97316; }
.kr-legend-no--ulsan     { background: #f472b6; }
.kr-legend-no--jeonbuk   { background: #4ade80; color: #064e3b; }
.kr-legend-no--jeonnam   { background: #2dd4bf; color: #134e4a; }
.kr-legend-no--gwangju   { background: #22c55e; color: #052e16; }
.kr-legend-no--gyeongnam { background: #f87171; }
.kr-legend-no--busan     { background: #ef4444; }
.kr-legend-no--incheon   { background: #38bdf8; color: #0c4a6e; }
.kr-legend-no--seoul     { background: #7c3aed; }
.kr-legend-no--jeju      { background: #0ea5e9; }
.kr-legend-no--sejong    { background: #c084fc; }

/* 서울 구별 뱃지 색상 — kr-region fill 색과 동일 */
.kr-legend-no--gangnam-gu      { background: #7c3aed; }
.kr-legend-no--gangdong-gu     { background: #38bdf8; }
.kr-legend-no--gangbuk-gu      { background: #60a5fa; }
.kr-legend-no--gangseo-gu      { background: #34d399; }
.kr-legend-no--gwanak-gu       { background: #818cf8; }
.kr-legend-no--gwangjin-gu     { background: #f97316; }
.kr-legend-no--guro-gu         { background: #22c55e; }
.kr-legend-no--geumcheon-gu    { background: #a78bfa; }
.kr-legend-no--nowon-gu        { background: #14b8a6; }
.kr-legend-no--dobong-gu       { background: #0ea5e9; }
.kr-legend-no--dongdaemun-gu   { background: #ec4899; }
.kr-legend-no--dongjak-gu      { background: #6366f1; }
.kr-legend-no--mapo-gu         { background: #f472b6; }
.kr-legend-no--seodaemun-gu    { background: #4ade80; color: #064e3b; }
.kr-legend-no--seocho-gu       { background: #2dd4bf; color: #134e4a; }
.kr-legend-no--seongdong-gu    { background: #fb923c; }
.kr-legend-no--seongbuk-gu     { background: #c084fc; }
.kr-legend-no--songpa-gu       { background: #ef4444; }
.kr-legend-no--yangcheon-gu    { background: #f87171; }
.kr-legend-no--yeongdeungpo-gu { background: #4338ca; }
.kr-legend-no--yongsan-gu      { background: #1a56db; }
.kr-legend-no--eunpyeong-gu    { background: #0d9488; }
.kr-legend-no--jongno-gu       { background: #dc2626; }
.kr-legend-no--jung-gu         { background: #eab308; color: #422006; }
.kr-legend-no--jungnang-gu     { background: #84cc16; color: #1a2e05; }

.pub-sightseeing-map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pub-sightseeing-map-legend-dot.kr-legend--gangwon    { background: #60a5fa; }
.pub-sightseeing-map-legend-dot.kr-legend--gyeonggi   { background: #34d399; }
.pub-sightseeing-map-legend-dot.kr-legend--chungbuk   { background: #a78bfa; }
.pub-sightseeing-map-legend-dot.kr-legend--chungnam   { background: #818cf8; }
.pub-sightseeing-map-legend-dot.kr-legend--daejeon    { background: #6366f1; }
.pub-sightseeing-map-legend-dot.kr-legend--gyeongbuk  { background: #fb923c; }
.pub-sightseeing-map-legend-dot.kr-legend--daegu      { background: #f97316; }
.pub-sightseeing-map-legend-dot.kr-legend--ulsan      { background: #f472b6; }
.pub-sightseeing-map-legend-dot.kr-legend--jeonbuk    { background: #4ade80; }
.pub-sightseeing-map-legend-dot.kr-legend--jeonnam    { background: #2dd4bf; }
.pub-sightseeing-map-legend-dot.kr-legend--gwangju    { background: #22c55e; }
.pub-sightseeing-map-legend-dot.kr-legend--gyeongnam  { background: #f87171; }
.pub-sightseeing-map-legend-dot.kr-legend--busan      { background: #ef4444; }
.pub-sightseeing-map-legend-dot.kr-legend--incheon    { background: #38bdf8; }
.pub-sightseeing-map-legend-dot.kr-legend--seoul      { background: #7c3aed; }
.pub-sightseeing-map-legend-dot.kr-legend--jeju       { background: #0ea5e9; }
.pub-sightseeing-map-legend-dot.kr-legend--sejong     { background: #c084fc; }
.pub-sightseeing-map-legend-dot.kr-legend--default    { background: #94a3b8; }

.pub-sightseeing-map-legend-dot.kr-legend--gangnam-gu      { background: #7c3aed; }
.pub-sightseeing-map-legend-dot.kr-legend--gangdong-gu     { background: #38bdf8; }
.pub-sightseeing-map-legend-dot.kr-legend--gangbuk-gu      { background: #60a5fa; }
.pub-sightseeing-map-legend-dot.kr-legend--gangseo-gu      { background: #34d399; }
.pub-sightseeing-map-legend-dot.kr-legend--gwanak-gu       { background: #818cf8; }
.pub-sightseeing-map-legend-dot.kr-legend--gwangjin-gu     { background: #f97316; }
.pub-sightseeing-map-legend-dot.kr-legend--guro-gu         { background: #22c55e; }
.pub-sightseeing-map-legend-dot.kr-legend--geumcheon-gu    { background: #a78bfa; }
.pub-sightseeing-map-legend-dot.kr-legend--nowon-gu        { background: #14b8a6; }
.pub-sightseeing-map-legend-dot.kr-legend--dobong-gu       { background: #0ea5e9; }
.pub-sightseeing-map-legend-dot.kr-legend--dongdaemun-gu   { background: #ec4899; }
.pub-sightseeing-map-legend-dot.kr-legend--dongjak-gu      { background: #6366f1; }
.pub-sightseeing-map-legend-dot.kr-legend--mapo-gu         { background: #f472b6; }
.pub-sightseeing-map-legend-dot.kr-legend--seodaemun-gu    { background: #4ade80; }
.pub-sightseeing-map-legend-dot.kr-legend--seocho-gu       { background: #2dd4bf; }
.pub-sightseeing-map-legend-dot.kr-legend--seongdong-gu    { background: #fb923c; }
.pub-sightseeing-map-legend-dot.kr-legend--seongbuk-gu     { background: #c084fc; }
.pub-sightseeing-map-legend-dot.kr-legend--songpa-gu       { background: #ef4444; }
.pub-sightseeing-map-legend-dot.kr-legend--yangcheon-gu    { background: #f87171; }
.pub-sightseeing-map-legend-dot.kr-legend--yeongdeungpo-gu { background: #4338ca; }
.pub-sightseeing-map-legend-dot.kr-legend--yongsan-gu      { background: #1a56db; }
.pub-sightseeing-map-legend-dot.kr-legend--eunpyeong-gu    { background: #0d9488; }
.pub-sightseeing-map-legend-dot.kr-legend--jongno-gu       { background: #dc2626; }
.pub-sightseeing-map-legend-dot.kr-legend--jung-gu         { background: #eab308; }
.pub-sightseeing-map-legend-dot.kr-legend--jungnang-gu     { background: #84cc16; }

.pub-sightseeing-map-hint {
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 10px 0 0;
}

@media (max-width: 640px) {
    .kr-map-wrap {
        max-width: 100%;
        padding: 16px 10px 10px;
    }

    .kr-map-tooltip-name {
        font-size: 0.84rem;
    }
}
