.hhim-map {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    line-height: 0;
    touch-action: none
}

.hhim-map__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: none
}

.hhim-map__stage {
    width: 100%;
    transform-origin: 0 0;
    will-change: transform;
    cursor: grab
}

.hhim-map.hhmap-is-dragging .hhim-map__stage {
    cursor: grabbing
}

.hhim-map__stage>svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    user-select: none;
    -webkit-user-select: none
}

.hhim-map__controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 7px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    line-height: 1
}

.hhim-map__btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #455241;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 10px;
    transition: transform .18s ease, background .18s ease
}

.hhim-map__btn:hover {
    transform: translateY(-1px);
    background: #31442a
}

.hhim-map__btn:focus-visible {
    outline: 2px solid #ae9856;
    outline-offset: 2px
}

.hhim-map__btn svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
    color: #fff
}

.hhim-map__btn svg[viewBox="0 0 24 24"] {
    fill: none;
    stroke: currentColor
}

.hhim-map__btn svg[viewBox="0 0 640 640"] {
    fill: currentColor;
    stroke: none
}

.hhmap-county-shape,
.hhmap-county-word {
    cursor: pointer !important
}

.hhmap-county-shape {
    transition: filter .3s ease-in-out, opacity .3s ease-in-out !important
}

.hhmap-county-word,
.hhmap-county-word * {
    transition: fill .3s ease-in-out, stroke .3s ease-in-out !important;
    pointer-events: auto !important
}

.hhmap-county-shape.hhmap-is-hovered {
    filter: hue-rotate(5deg) saturate(120%) brightness(60%) !important;
    opacity: .8 !important
}

.hhmap-county-word.hhmap-is-hovered,
.hhmap-county-word.hhmap-is-hovered * {
    fill: #fff !important;
    stroke: #fff !important;
    paint-order: stroke fill !important
}

.hhmap-city-marker,
.hhmap-city-text {
    cursor: pointer !important;
    transform-box: fill-box;
    transform-origin: center
}

.hhmap-city-marker {
    transition: transform .25s ease, fill .2s ease, stroke .2s ease !important
}

.hhmap-city-marker * {
    transition: fill .2s ease, stroke .2s ease !important
}

.hhmap-city-text {
    transition: transform .25s ease, fill .2s ease, stroke .2s ease !important;
    pointer-events: auto !important
}

.hhmap-city-text * {
    transition: fill .2s ease, stroke .2s ease !important;
    pointer-events: auto !important
}

.hhmap-city-marker.hhmap-is-hovered,
.hhmap-city-text.hhmap-is-hovered {
    transform: scale(1.1) !important
}

.hhmap-city-marker.hhmap-is-hovered,
.hhmap-city-marker.hhmap-is-hovered * {
    fill: #ae9856 !important
}

.hhmap-city-text.hhmap-is-hovered,
.hhmap-city-text.hhmap-is-hovered * {
    fill: #e7d6a0 !important
}

.hhim-map #HighwayLines-2,
.hhim-map #Waterways-2 {
    pointer-events: none !important;
    user-select: none !important
}

.hhmap-city-marker:focus,
.hhmap-city-text:focus,
.hhmap-county-shape:focus,
.hhmap-county-word:focus {
    outline: none
}

@media(max-width:767px) {
    .hhim-map__controls {
        right: 10px;
        bottom: 10px;
        gap: 5px;
        padding: 5px
    }

    .hhim-map__btn {
        width: 36px;
        height: 36px;
        padding: 8px
    }
}

/* Direct SVG links injected from WordPress settings */
.hhim-map svg [data-link],
.hhim-map svg [data-link] * {
    cursor: pointer !important;
}


/* Zoom control position (admin selectable) */
.hhim-map__controls--top_left {
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    bottom: auto !important
}

.hhim-map__controls--top_right {
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important
}

.hhim-map__controls--bottom_left {
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
    top: auto !important
}

.hhim-map__controls--bottom_right {
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    top: auto !important
}

@media(max-width:767px) {
    .hhim-map__controls--top_left {
        top: 10px !important;
        left: 10px !important
    }

    .hhim-map__controls--top_right {
        top: 10px !important;
        right: 10px !important
    }

    .hhim-map__controls--bottom_left {
        bottom: 10px !important;
        left: 10px !important
    }

    .hhim-map__controls--bottom_right {
        bottom: 10px !important;
        right: 10px !important
    }
}