/* map container */

.svg-county-map {
    display: block;
    width: 100%;
    max-width: 533px;
    position: relative;
}

.svg-county-map svg {
    display: block;
    width: 100%;
    height: auto;
}

/* hover */

.county-path {
    cursor: default;
    transition: fill 0.15s ease;
}

a.county-link .county-path,
a.county-link:hover .county-path {
    cursor: pointer;
}

a.county-link:hover .county-path,
g.county-link:hover .county-path {
    fill: #00CCFF;
}

/* tooltip */

.svg-map-tooltip {
    display: none;
    position: absolute;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 226px;
    background: #ffffff;
    border-radius: 16px;
    padding: 17px 16px;
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.5),
        0 4px 5px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
}

.svg-tooltip-name {
    font-size: 13px;
    font-weight: 600;
    color: #012D74;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* arrow button */

.svg-tooltip-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* Astra has a global svg { max-width:100% } that would stretch these —
   !important wins the specificity fight */
.svg-tooltip-link svg {
    display: block;
    flex-shrink: 0;
    width: 21px !important;
    height: 21px !important;
    overflow: visible;
}

/* caret */

.svg-tooltip-caret {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 32px !important;
    height: 24px !important;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.1));
}

@media (max-width: 650px) {
    .svg-county-map {
        padding-left: 16px;
        padding-right: 16px;
    }

    .svg-map-tooltip {
        transform: scale(0.7);
        transform-origin: top left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .county-path {
        transition: none;
    }
}