.dmmw-container {
    position: relative;
    margin: 1em auto;
    max-width: 95vw;
    max-height: 95vh;
    background-color: #e6f7fe;
    font-size: 14px;
    line-height: normal;
    overflow: hidden;
}

.dmmw {
    position: relative;
    aspect-ratio: 900 / 1360;
    min-height: 80vh;
    max-height: 95vh;
    margin: 0 auto;
    background-color: #e6f7fe;
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: contain;

    --zoom-left: 0;
    --zoom-top: 0;
}

.dmmw-detail {
    display: none;
    position: absolute;
    top: var(--zoom-top);
    left: var(--zoom-left);
    width: 200%;
    height: 200%;
    z-index: 0;
    background-image: url('../images/background-zoom.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: contain;
}

.dmmw-tours {
    display: block;
    position: absolute;
    top: var(--zoom-top);
    left: var(--zoom-left);
    z-index: 1;
    width: 100%;
    height: 100%;
}

.dmmw-tours path {
    visibility: hidden;
}

.dmmw-places {
    display: none;
    position: absolute;
    top: var(--zoom-top);
    left: var(--zoom-left);
    z-index: 1;
    width: 200%;
    height: 200%;
    background-image: url('../images/layer-labels.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: contain;
}

.dmmw-zoomed .dmmw-detail {
    display: block;
}

.dmmw-zoomed .dmmw-tours {
    width: 200%;
    height: 200%;
}

.dmmw-zoomed .dmmw-places {
    display: block;
}

.dmmw-zoomed-north {
    --zoom-left: -100%;
    --zoom-top: 0%;
}

.dmmw-zoomed-east {
    --zoom-left: -100%;
    --zoom-top: -23%;
}

.dmmw-zoomed-west {
    --zoom-left: -30%;
    --zoom-top: -30%;
}

.dmmw-zoomed-centre {
    --zoom-left: -50%;
    --zoom-top: -67%;
}

.dmmw-zoomed-southwest {
    --zoom-left: -25%;
    --zoom-top: -100%;
}

.dmmw-zoomed-southeast {
    --zoom-left: -72%;
    --zoom-top: -100%;
}

.dmmw-region-areas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.dmmw-region-areas a {
    opacity: 0;
}

.dmmw-region-labels {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.dmmw-region-label {
    position: absolute;
    display: inline-block;
    width: 11em;
    color: #111;
    font-family: "Lato", Lato, Sans-serif;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    transform: translate(-50%, -50%);
}

.dmmw-region-label span {
    display: inline-block;
    width: 10em;
    font-size: 1.25em;
    font-weight: 400;
    text-shadow: 0 0 3px white;
}

.dmmw-region-label.dmmw-hover span {
    font-weight: bold;
}

.dmmw-region-label.dmmw-expanded span {
    font-weight: bold;
    transform: scale(1.25);
}

#dmmw-label-north {
    top: 24%;
    left: 68%;
}

#dmmw-label-east {
    top: 39.5%;
    left: 77%;
}

#dmmw-label-west {
    top: 40%;
    left: 23%;
}

#dmmw-label-centre {
    top: 57%;
    left: 62%;
}

#dmmw-label-southwest {
    bottom: 9%;
    left: 14%;
    width: 10em;
}

#dmmw-label-southeast {
    bottom: 13%;
    left: 62%;
}

.dmmw-legend strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125em;
}

.dmmw-legend {
    position: absolute;
    bottom: 2em;
    right: 2em;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    border-radius: 5px;
    padding: 1em;
    background-color: white;
    color: #111;
    box-shadow: 0 0 5px rgba(10, 10, 10, 0.5);
    font-family: "Lato", Lato, Sans-serif;
    font-size: 1rem;
}

.dmmw-legend-item,
.dmmw-legend-item label {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

.dmmw-legend-item {
    justify-content: space-between;
    line-height: 1;
}

.dmmw-legend-item span {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: #000;
}

.dmmw-legend-item-luxury span {
    background-color: #ec681c;
}

.dmmw-legend-item-north span {
    background-color: #662d91;
}

.dmmw-legend-item-rn7 span {
    background-color: #c63f8e;
}

.dmmw-legend-item-east span {
    background-color: #0071bc;
}

.dmmw-legend-item-legends span {
    background-color: #00a99d;
}

@media screen and (max-width: 500px) {
    .dmmw-container {
        max-width: 90vw;
        max-height: none;
    }

    .dmmw-legend {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 0.5rem;
    }
}

@media screen and (min-width: 450px) and (max-width: 850px) {
    .dmmw-container {
        max-width: 90vw;
    }

    .dmmw {
        margin-left: 5vw;
        margin-right: 0;
    }
}