@charset "UTF-8";
/* 대형 이미지(지도·안내도) 제자리 확대 뷰어
   - 본문의 a.dev-mapZoom 을 .mapZoomBox 로 바꿔 그 자리에서 확대·축소한다.
   - .imgZoomViewer 는 "전체화면" 버튼으로만 열리는 덮어쓰기 뷰.
   - /js/imageZoomViewer.js 와 한 쌍. */

/* =========================================================
   JS 적용 전(또는 JS 미동작) — 그냥 이미지 + 고해상본 링크
   ========================================================= */
.dev-mapZoom {
    position: relative;
    display: block;
    cursor: zoom-in;
    text-decoration: none;
}

.dev-mapZoom img {
    display: block;
    width: 100%;
    height: auto;
}

.dev-mapZoom .zoomHint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    pointer-events: none;
}

.dev-mapZoom:focus {
    outline: 3px solid #1a5fb4;
    outline-offset: 2px;
}

/* =========================================================
   인라인 확대 상자
   ========================================================= */
.mapZoomBox {
    position: relative;
    margin: 0;
    /* 테두리·배경을 두지 않는다. 지도 바깥이 페이지와 다른 색이면
       이미지가 잘린 것처럼 보인다. */
    border: 0;
    background: transparent;
    overflow: hidden;
}

.mapZoomBox .mzb-stage {
    position: relative;
    /* JS 가 이미지 비율대로 다시 잡는다(= 예전 width:100% 와 같은 높이).
       아래 값은 이미지가 로드되기 전까지의 임시 높이. */
    height: 300px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.mapZoomBox .mzb-stage:active {
    cursor: grabbing;
}

.mapZoomBox .mzb-stage:focus {
    outline: 3px solid #1a5fb4;
    outline-offset: -3px;
}

/* 이미지는 자연 크기로 두고 transform 으로만 움직인다. */
.mapZoomBox .mzb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
}

/* 조작 버튼 — 지도 위 좌상단 */
/* 조작 버튼 — 평소에는 숨기고 커서를 올렸을 때만 보여준다.
   초점이 들어왔을 때(키보드)와 확대 중일 때도 보여야 한다. 확대해 둔 채로
   커서가 떠나면 되돌릴 수단이 사라지기 때문이다. */
.mapZoomBox .mzb-tools {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}

.mapZoomBox:hover .mzb-tools,
.mapZoomBox:focus-within .mzb-tools,
.mapZoomBox.is-zoomed .mzb-tools,
.mapZoomBox.is-touch .mzb-tools {
    opacity: 1;
    visibility: visible;
}

/* 커서가 없는 기기(휴대폰·태블릿)에서는 숨기면 꺼낼 방법이 없다. 항상 보여준다. */
@media (hover: none) {
    .mapZoomBox .mzb-tools {
        opacity: 1;
        visibility: visible;
    }
}

.mapZoomBox .mzb-tools button {
    min-width: 38px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #c3cad2;
    border-radius: 5px;
    background: #fff;
    color: #1f2933;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.mapZoomBox .mzb-tools button:hover:not(:disabled) {
    background: #eef2f6;
}

.mapZoomBox .mzb-tools button:focus {
    outline: 3px solid #1a5fb4;
    outline-offset: 1px;
}

.mapZoomBox .mzb-tools button:disabled {
    opacity: 0.38;
    cursor: default;
}

.mapZoomBox .mzb-scale {
    min-width: 56px;
    text-align: center;
    font-size: 14px;
    color: #1f2933;
    font-variant-numeric: tabular-nums;
}

.mapZoomBox .mzb-full {
    font-size: 14px !important;
}

/* Ctrl+휠 안내 */
.mapZoomBox .mzb-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.74);
    color: #fff;
    font-size: 15px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.mapZoomBox .mzb-hint.is-on {
    opacity: 1;
}

.mapZoomBox .mzb-loading {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 13px;
    pointer-events: none;
}

.mapZoomBox .mzb-loading[hidden] {
    display: none;
}

@media screen and (max-width: 640px) {
    .mapZoomBox .mzb-tools {
        top: 8px;
        left: 8px;
        gap: 3px;
    }

    .mapZoomBox .mzb-tools button {
        min-width: 34px;
        height: 34px;
        padding: 0 7px;
        font-size: 15px;
    }

    .mapZoomBox .mzb-full {
        font-size: 12px !important;
    }

    .mapZoomBox .mzb-scale {
        min-width: 46px;
        font-size: 13px;
    }

    .mapZoomBox .mzb-hint {
        font-size: 13px;
        width: calc(100% - 40px);
    }
}

/* =========================================================
   전체화면 뷰 ("전체화면" 버튼으로만 열린다)
   ========================================================= */
.imgZoomViewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #1b1b1b;
    display: none;
}

.imgZoomViewer.is-open {
    display: block;
}

.imgZoomViewer .izv-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.imgZoomViewer .izv-stage:active {
    cursor: grabbing;
}

.imgZoomViewer .izv-img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
}

.imgZoomViewer .izv-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.imgZoomViewer .izv-title {
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imgZoomViewer .izv-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.imgZoomViewer button {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.imgZoomViewer button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
}

.imgZoomViewer button:focus {
    outline: 3px solid #8ab4f8;
    outline-offset: 2px;
}

.imgZoomViewer button:disabled {
    opacity: 0.4;
    cursor: default;
}

.imgZoomViewer .izv-scale {
    min-width: 58px;
    text-align: center;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.imgZoomViewer .izv-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 15px;
    text-align: center;
}

.imgZoomViewer .izv-loading[hidden] {
    display: none;
}

.imgZoomViewer .izv-spinner {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: izvSpin 0.8s linear infinite;
}

@keyframes izvSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .imgZoomViewer .izv-spinner {
        animation-duration: 2.4s;
    }
}

body.izv-lock {
    overflow: hidden;
}

@media screen and (max-width: 640px) {
    .imgZoomViewer .izv-title {
        font-size: 14px;
    }
}
