.koz-map {
    --koz-map-green: #3d5540;
    --koz-map-gold: #dead37;
    --koz-map-red: #9f3f35;
    --koz-map-dark: #2e2d29;
    width: 100%;
}

.koz-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 24px;
    color: #2e2d29;
    font-size: 15px;
}

.koz-map__legend span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid rgba(61, 85, 64, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 24px rgba(46, 45, 41, .06);
}

.koz-map__legend i {
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    border: 2px solid currentColor;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .9);
}

.koz-map__legend .is-free {
    color: var(--koz-map-green);
    background: rgba(61, 85, 64, .22);
}

.koz-map__legend .is-reserved {
    color: var(--koz-map-gold);
    background: rgba(222, 173, 55, .28);
}

.koz-map__legend .is-sold {
    color: var(--koz-map-red);
    background: rgba(159, 63, 53, .22);
}

.koz-map__scroll {
    width: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

.koz-map__intro {
    max-width: 760px;
    margin: 64px auto 26px;
    text-align: center;
}

.koz-map__intro h2 {
    margin-left: auto;
    margin-right: auto;
}

.koz-map__intro p {
    max-width: 560px;
    margin: 8px auto 0;
    color: #4a4a4a;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

.koz-map__stage {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.koz-map__stage::before {
    content: "";
    display: block;
    padding-top: calc(var(--koz-map-ratio) * 100%);
}

.koz-map__stage > img,
.koz-map__stage > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.koz-map__stage > img {
    object-fit: contain;
    z-index: 1;
}

.koz-map__stage > svg {
    z-index: 2;
}

.koz-map__shape {
    cursor: pointer;
    fill: transparent;
    stroke: transparent;
    vector-effect: non-scaling-stroke;
    stroke-width: 2.25;
    stroke-linejoin: round;
    pointer-events: all;
    transition: fill .16s ease, stroke .16s ease, opacity .16s ease, filter .16s ease;
}

.koz-map__shape.is-free {
    fill: transparent;
    stroke: transparent;
}

.koz-map__shape.is-reserved,
.koz-map__shape.is-preparing,
.koz-map__shape.is-unknown {
    fill: transparent;
    stroke: transparent;
}

.koz-map__shape.is-sold {
    fill: transparent;
    stroke: transparent;
}

.koz-map__shape:hover,
.koz-map__shape:focus,
.koz-map__shape.is-group-active {
    outline: none;
    filter: none;
}

.koz-map__shape.is-free:hover,
.koz-map__shape.is-free:focus,
.koz-map__shape.is-free.is-group-active,
.koz-map__shape.is-reserved:hover,
.koz-map__shape.is-reserved:focus,
.koz-map__shape.is-preparing:hover,
.koz-map__shape.is-preparing:focus,
.koz-map__shape.is-unknown:hover,
.koz-map__shape.is-unknown:focus,
.koz-map__shape.is-reserved.is-group-active,
.koz-map__shape.is-preparing.is-group-active,
.koz-map__shape.is-unknown.is-group-active,
.koz-map__shape.is-sold:hover,
.koz-map__shape.is-sold:focus,
.koz-map__shape.is-sold.is-group-active {
    fill: rgba(222, 173, 55, .12);
    stroke: rgba(222, 173, 55, .50);
}

.koz-map__shape.is-current-active,
.koz-map__shape.is-current-active:hover,
.koz-map__shape.is-current-active:focus {
    fill: rgba(222, 173, 55, .30);
    stroke: rgba(222, 173, 55, .98);
    stroke-width: 3;
    filter: drop-shadow(0 7px 14px rgba(46, 45, 41, .14));
}

.koz-map__shape:focus-visible {
    stroke-width: 3.25;
    outline: none;
}

.koz-map__tooltip {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: max-content;
    max-width: min(360px, calc(100vw - 40px));
    padding: 12px 14px;
    border: 1px solid rgba(61, 85, 64, .14);
    border-radius: 6px;
    background: rgba(255, 255, 255, .88);
    color: #2e2d29;
    box-shadow: 0 12px 30px rgba(46, 45, 41, .14);
    backdrop-filter: blur(8px) saturate(1.05);
    -webkit-backdrop-filter: blur(8px) saturate(1.05);
    font-size: 14px;
    line-height: 1.35;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 12px));
}

.koz-map__group-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    padding: 8px 14px;
    border-radius: 4px;
    background: rgba(222, 173, 55, .94);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .03em;
    box-shadow: 0 10px 22px rgba(46, 45, 41, .12);
    transform: none;
    pointer-events: none;
}

.koz-map__tooltip[hidden],
.koz-map__group-label[hidden],
.koz-map__drag-hint[hidden] {
    display: none !important;
}

.koz-map__tooltip::after {
    content: "";
    position: absolute;
    left: var(--koz-tooltip-arrow-left, 50%);
    bottom: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid rgba(255, 255, 255, .88);
    filter: drop-shadow(0 2px 1px rgba(46, 45, 41, .08));
    transform: translateX(-50%);
}

.koz-map__tooltip strong {
    display: inline-block;
    color: #3d5540;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.koz-map__tooltip span {
    display: inline-block;
    color: #4a4a4a;
    white-space: nowrap;
}

.koz-map__tooltip .koz-map__meta {
    display: grid;
    grid-template-columns: auto 4px 1fr;
    gap: 10px;
    align-items: center;
    color: #2e2d29;
}

.koz-map__tooltip .koz-map__meta em {
    min-width: 54px;
    color: rgba(74, 74, 74, .68);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.koz-map__tooltip .koz-map__meta i {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #dead37;
}

.koz-map__tooltip .koz-map__meta b {
    color: #2e2d29;
    font-weight: 500;
}

.koz-map__tooltip .koz-map__status {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.koz-map__tooltip .koz-map__status.is-free {
    background: rgba(61, 85, 64, .10);
    color: #3d5540;
}

.koz-map__tooltip .koz-map__status.is-reserved,
.koz-map__tooltip .koz-map__status.is-unknown {
    background: rgba(222, 173, 55, .16);
    color: #8b6815;
}

.koz-map__tooltip .koz-map__status.is-sold {
    background: rgba(159, 63, 53, .11);
    color: #9f3f35;
}

.koz-map__tooltip a {
    color: #3d5540;
    text-decoration: underline;
}

.koz-map__detail-link {
    display: none !important;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #3d5540;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    touch-action: manipulation;
}

.koz-map__drag-hint {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 8;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 210px;
    padding: 14px 18px 13px;
    border: 1px solid rgba(61, 85, 64, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .90);
    color: #3d5540;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 14px 34px rgba(46, 45, 41, .12);
    backdrop-filter: blur(10px) saturate(1.04);
    -webkit-backdrop-filter: blur(10px) saturate(1.04);
    transform: translateX(-50%);
    pointer-events: none;
}

.koz-map__drag-hint span {
    position: relative;
    width: 92px;
    height: 28px;
    overflow: hidden;
    border: 1px solid rgba(61, 85, 64, .14);
    border-radius: 999px;
    background: rgba(61, 85, 64, .06);
}

.koz-map__drag-hint span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #dead37;
    box-shadow: 0 0 0 6px rgba(222, 173, 55, .18);
    transform: translateY(-50%);
}

.koz-map__drag-hint span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 22px;
    width: 48px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(222, 173, 55, .08), rgba(222, 173, 55, .95));
    transform: translateY(-50%);
}

.koz-map.is-showing-drag-hint .koz-map__drag-hint {
    display: inline-flex;
    animation: kozMapHintPulse 2.8s ease both;
}

.koz-map.is-showing-drag-hint .koz-map__drag-hint span::before {
    animation: kozMapFingerSlide 1.2s ease-in-out 2 both;
}

.koz-map.is-showing-drag-hint .koz-map__drag-hint span::after {
    animation: kozMapTrailSlide 1.2s ease-in-out 2 both;
}

@keyframes kozMapHintPulse {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    18%, 78% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes kozMapFingerSlide {
    0%, 100% {
        left: 18px;
        opacity: .92;
    }
    50% {
        left: 62px;
        opacity: 1;
    }
}

@keyframes kozMapTrailSlide {
    0%, 100% {
        opacity: .28;
        transform: translateY(-50%) scaleX(.55);
        transform-origin: left center;
    }
    50% {
        opacity: .9;
        transform: translateY(-50%) scaleX(1);
        transform-origin: left center;
    }
}

.koz-map__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 28px 0 0;
    text-align: center;
    color: #4a4a4a;
}

.koz-map__hint strong {
    color: #2e2d29;
}

.koz-map__hint i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 2px;
    background: #3d5540;
    color: #fff;
}

.koz-map__empty {
    text-align: center;
}

@media (max-width: 991px) {
    .koz-map__scroll {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 14px;
        cursor: grab;
        overscroll-behavior-x: contain;
        scrollbar-color: #3d5540 #ece9df;
        scrollbar-width: thin;
    }

    .koz-map__scroll.is-dragging {
        cursor: grabbing;
    }

    .koz-map__scroll::-webkit-scrollbar {
        height: 12px;
    }

    .koz-map__scroll::-webkit-scrollbar-track {
        background: #ece9df;
        border-radius: 999px;
    }

    .koz-map__scroll::-webkit-scrollbar-thumb {
        background: #3d5540;
        border-radius: 999px;
    }

    .koz-map__stage {
        width: max(980px, 100%);
    }

    .koz-map__intro {
        max-width: 100%;
        margin: 36px auto 16px;
        padding: 0 12px;
    }

    .koz-map__intro p {
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.55;
    }

    .koz-map__hint {
        align-items: flex-start;
        font-size: 15px;
        line-height: 1.45;
    }

    .koz-map__tooltip {
        gap: 6px;
        width: min(300px, calc(100vw - 32px));
        max-width: none;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
        pointer-events: auto;
    }

    .koz-map__tooltip strong {
        white-space: normal;
    }

    .koz-map__tooltip span {
        white-space: normal;
    }

    .koz-map__tooltip .koz-map__meta {
        grid-template-columns: 68px 4px minmax(0, 1fr);
        width: 100%;
    }

    .koz-map__tooltip .koz-map__meta b {
        overflow-wrap: break-word;
    }

    .koz-map__detail-link {
        display: inline-flex !important;
    }

    .koz-map__group-label {
        top: 10px;
        left: 10px;
        padding: 7px 11px;
        font-size: 12px;
    }

}

.koz-location-map {
    width: 100%;
    margin: 0 0 70px;
}

.koz-location-map__scroll {
    width: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

.koz-location-map__stage {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.koz-location-map__stage::before {
    content: "";
    display: block;
    padding-top: calc(var(--koz-map-ratio) * 100%);
}

.koz-location-map__stage > img,
.koz-location-map__stage > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.koz-location-map__stage > img {
    object-fit: contain;
    z-index: 1;
}

.koz-location-map__stage > svg {
    z-index: 2;
}

.koz-location-map__shape {
    fill: transparent;
    stroke: transparent;
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.koz-location-map__shape.is-sold {
    fill: transparent;
    stroke: transparent;
}

.koz-location-map__shape.is-reserved,
.koz-location-map__shape.is-preparing,
.koz-location-map__shape.is-unknown {
    fill: transparent;
    stroke: transparent;
}

.koz-location-map__shape.is-active {
    fill: rgba(222, 173, 55, .18);
    stroke: rgba(222, 173, 55, .90);
    stroke-width: 2.5;
    filter: drop-shadow(0 6px 12px rgba(46, 45, 41, .12));
}

.koz-location-map__label {
    position: absolute;
    z-index: 3;
    padding: 8px 13px;
    border: 1px solid rgba(222, 173, 55, .35);
    border-radius: 999px;
    background: rgba(46, 45, 41, .94);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    pointer-events: none;
}

.koz-location-map__label::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -34px;
    width: 1px;
    height: 34px;
    background: rgba(222, 173, 55, .9);
    transform: translateX(-50%);
}

.koz-location-map__label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -42px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dead37;
    box-shadow: 0 0 0 3px rgba(222, 173, 55, .25), 0 4px 10px rgba(0, 0, 0, .18);
    transform: translateX(-50%);
}

@media (max-width: 991px) {
    .koz-location-map__scroll {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 14px;
        scrollbar-color: #3d5540 #ece9df;
        scrollbar-width: thin;
    }

    .koz-location-map__scroll::-webkit-scrollbar {
        height: 12px;
    }

    .koz-location-map__scroll::-webkit-scrollbar-track {
        background: #ece9df;
        border-radius: 999px;
    }

    .koz-location-map__scroll::-webkit-scrollbar-thumb {
        background: #3d5540;
        border-radius: 999px;
    }

    .koz-location-map__stage {
        width: max(980px, 100%);
    }
}
