.map_section {
    padding-block-start: clamp(40px, 7.6vw, 157px);
    padding-block-end: clamp(40px, 6vw, 100px);
    position: relative;
}

.map-sec-wrapper {
    background-repeat: no-repeat;
    background-position: center;
    padding: 86px 59px 35px 49px;
    border-radius: 50px;
    background-size: cover;
}

.map-sec-title {
    margin-bottom: 86px;
}

.map-sec-left-inner {
    border-radius: 27px;
    border: 1px solid var(--color-secondary);
    background: var(--color-cream);
    padding: 56px 50px 40px 68px;
    overflow: hidden;
    position: relative;
    /* Needed for absolute-positioned county popup */
}

.map-sec-left-inner-wrap {
    position: sticky;
    top: 0;
}

.map_svg {
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.map_svg svg {
    width: 100%;
    height: auto;
    /* Preserve SVG aspect ratio so star positions stay aligned */
    display: block;
    pointer-events: none;
}

.map_svg svg g.county-map-star {
    pointer-events: auto;
}

.map-sec-left {
    width: 100%;
    max-width: 77.7%;
}

.map-sec-right {
    width: 100%;
    max-width: 19.2%;
}

.county-map-item {
    list-style-type: none;
    border-bottom: 1px dashed var(--color-black);
    padding-bottom: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.county-map-popup__text {
    display: none;
}

.county-map-popup {
    pointer-events: none;
    z-index: 2;
    position: absolute;
    background-image: url('data:image/svg+xml,<svg width="213" height="68" viewBox="0 0 213 68" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M211.817 67.5H0.816895L17.9189 33.995L0.816895 0.5H211.817L194.705 33.995L211.817 67.5Z" fill="white" stroke="%23B5975A" stroke-miterlimit="10"/><mask id="mask0_793_160" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="213" height="68"><path d="M211.817 67.5H0.816895L17.9189 33.995L0.816895 0.5H211.817L194.705 33.995L211.817 67.5Z" fill="white" stroke="%23B5975A" stroke-miterlimit="10"/></mask><g mask="url(%23mask0_793_160)"><path d="M18.2459 39.2974C17.8433 39.3074 17.4508 39.428 17.0483 39.4381C15.7501 39.4582 14.4519 39.5586 13.1537 39.5787C11.9461 39.5988 10.7384 39.5988 9.54085 39.4783C9.31946 39.4582 8.98736 38.8352 9.02762 38.5137C9.088 37.9912 9.26915 37.2276 9.63144 37.0367C10.1749 36.7453 10.9296 36.7955 11.5737 36.8257C13.6367 36.9362 14.5425 37.2778 16.6055 37.3984C17.1691 37.4285 18.8195 37.6797 19.3931 37.6998C19.8158 37.7199 20.1982 37.7199 20.6209 37.8204C20.6712 37.8304 20.9027 38.0414 20.9027 38.0615C20.8423 38.6443 20.9932 38.2524 20.8121 38.795C20.7014 39.1165 19.856 39.1567 19.6246 39.1969C19.2925 39.2572 18.9705 39.2773 18.6384 39.2974H18.2459Z" fill="%23B5975A"/><path d="M12.7815 63.6831C12.0166 62.6884 10.658 62.8793 9.85294 63.1104C9.83281 63.1104 9.49065 63.1305 9.43027 63.251C9.16862 63.7534 8.65538 64.497 8.86671 64.7582C9.3397 65.341 10.1649 66.0242 10.8996 66.0744C11.8053 66.1347 13.9186 66.3357 13.7878 64.4668C13.7677 64.1453 12.9324 63.884 12.7714 63.6831H12.7815Z" fill="%23B5975A"/><path d="M15.1162 56.489C14.9351 56.4589 14.3816 56.69 14.2004 56.7001C13.9287 56.7201 13.5564 56.7804 13.2846 56.7905C12.5097 56.8307 12.1475 56.8809 11.3726 56.9311C11.0103 56.9512 9.9536 57.4436 9.55105 57.0216C9.20889 56.6599 9.53092 56.4087 9.22901 55.9867C9.1485 55.8761 9.27934 55.2029 9.44035 55.0422C9.77245 54.6905 10.185 54.3187 10.5775 54.2986C11.4027 54.2484 12.1776 54.6101 13.0029 54.7006C13.8482 54.7809 14.7137 54.9116 15.5489 55.0623C15.7703 55.1025 16.183 55.3235 16.183 55.4139C16.1729 55.9465 16.1326 56.1776 15.7301 56.2479C15.6597 56.2579 15.1766 56.4991 15.1061 56.489H15.1162Z" fill="%23B5975A"/><path d="M10.467 4.693C9.87326 4.67291 9.39022 4.56238 9.18895 4.2509C8.96755 3.90928 8.93736 3.20594 9.18895 2.93465C9.71225 2.35189 10.4066 1.68874 11.1513 1.54807C12.0571 1.37726 13.0836 1.70883 14.0597 1.80931C14.3918 1.83945 14.734 1.82941 15.0761 1.8495C15.8007 1.87964 17.0989 2.19112 17.8436 2.56289C18.377 2.82413 20.1281 2.95475 20.7923 3.01503C20.8728 3.01503 21.0137 3.06527 21.0237 3.11551C21.1244 3.83895 21.4766 3.52747 20.8225 4.15043C20.742 4.22076 18.8601 4.55233 18.7292 4.55233C17.1291 4.5021 15.4183 4.38152 13.7679 4.40162C13.154 4.40162 11.6143 4.74324 10.4771 4.7131L10.467 4.693Z" fill="%23B5975A"/><path d="M12.0468 30.5356C12.8116 30.405 14.5426 30.5758 13.5463 29.139C12.7009 27.9232 11.6442 27.873 10.6077 27.9634C9.9938 28.0136 9.27929 27.9634 8.97738 28.9079C8.97738 30.2342 9.95355 31.0882 10.7989 30.8571C11.2216 30.7466 11.6342 30.6059 12.0568 30.5356H12.0468Z" fill="%23B5975A"/><path d="M16.3743 12.078C16.3743 12.3191 16.2435 12.5 15.9919 12.6406C15.4182 12.9421 14.6434 12.8114 14.0395 12.8215C13.0835 12.8416 12.0771 13.0928 11.1312 13.1229C10.9903 13.1229 10.8292 13.2134 10.7085 13.3339C10.3059 13.6956 9.73232 13.1129 9.48073 12.6306C8.82659 11.3947 9.43041 10.7718 9.86315 10.4402C9.98391 10.3498 10.4166 10.2593 10.7085 10.3096C11.3827 10.4402 12.1275 10.3699 12.8017 10.5206C13.8181 10.7517 14.8446 10.8823 15.851 11.2038C16.0824 11.2741 16.2233 11.4349 16.3038 11.666C16.3441 11.7866 16.3844 11.9775 16.3844 12.078H16.3743Z" fill="%23B5975A"/><path d="M15.1967 21.2013C14.2608 21.4023 12.6909 21.5429 12.0267 21.6836C11.3826 21.8243 10.7385 22.0755 10.0944 22.0554C9.77241 22.0453 9.43025 21.5831 9.17866 21.2013C9.09815 21.0807 9.31955 20.5582 9.40006 20.2267C9.76235 18.8099 10.5674 19.3123 11.2618 19.3023C11.9965 19.2822 13.9689 19.7343 14.7036 19.664C15.569 19.5836 15.6697 19.885 15.3577 21.0405C15.3175 21.2013 15.0961 21.2716 15.1967 21.1913V21.2013Z" fill="%23B5975A"/><path d="M16.5553 47.1848C16.5553 47.426 16.4145 47.6068 16.1528 47.7475C15.549 48.0489 14.7439 47.9183 14.0998 47.9284C13.1035 47.9485 12.0468 48.1997 11.0405 48.2298C10.8895 48.2298 10.7285 48.3202 10.5977 48.4408C10.1851 48.8025 9.58127 48.2097 9.30955 47.7375C8.62522 46.5016 9.25923 45.8786 9.71209 45.5471C9.83285 45.4566 10.2958 45.3662 10.5977 45.4164C11.3122 45.5471 12.0871 45.4767 12.8016 45.6274C13.8684 45.8585 14.9452 45.9892 16.0018 46.3107C16.2434 46.381 16.3943 46.5418 16.4748 46.7729C16.5251 46.8935 16.5654 47.0844 16.5654 47.1848H16.5553Z" fill="%23B5975A"/><path d="M197.016 30.9677H197.398C197.801 30.9577 198.193 30.8371 198.596 30.8371C199.894 30.817 201.192 30.7165 202.49 30.7065C203.698 30.6864 204.906 30.6864 206.103 30.7969C206.325 30.817 206.657 31.4198 206.616 31.7313C206.556 32.2438 206.375 32.9772 206.013 33.1581C205.469 33.4394 204.714 33.3992 204.07 33.3591C202.007 33.2485 201.102 32.927 199.038 32.8064C198.475 32.7763 196.825 32.5351 196.251 32.515C195.828 32.495 195.446 32.495 195.023 32.3945C194.973 32.3844 194.741 32.1835 194.741 32.1634C194.802 31.6007 194.651 31.9725 194.832 31.46C194.943 31.1486 195.788 31.1084 196.019 31.0682C196.352 31.0179 196.674 30.9878 197.006 30.9778L197.016 30.9677Z" fill="%23B5975A"/><path d="M202.852 7.40577C203.617 8.37035 204.976 8.17945 205.781 7.9584C205.801 7.9584 206.143 7.9383 206.204 7.82778C206.465 7.34549 206.978 6.62205 206.767 6.37086C206.294 5.80819 205.469 5.14504 204.734 5.0948C203.829 5.03451 201.715 4.83356 201.846 6.65219C201.866 6.96367 202.701 7.21487 202.862 7.41582L202.852 7.40577Z" fill="%23B5975A"/><path d="M200.528 14.3487C200.709 14.3788 201.262 14.1578 201.443 14.1377C201.715 14.1176 202.088 14.0573 202.359 14.0473C203.134 14.0171 203.496 13.9568 204.271 13.9166C204.634 13.8965 205.69 13.4143 206.093 13.8363C206.435 14.1879 206.113 14.4291 206.415 14.841C206.495 14.9516 206.365 15.6047 206.204 15.7554C205.871 16.0869 205.459 16.4487 205.066 16.4688C204.241 16.509 203.466 16.1673 202.641 16.0869C201.796 16.0066 200.93 15.886 200.095 15.7353C199.863 15.6951 199.461 15.4841 199.461 15.3937C199.471 14.8812 199.511 14.6602 199.914 14.5898C199.984 14.5798 200.467 14.3487 200.538 14.3587L200.528 14.3487Z" fill="%23B5975A"/><path d="M205.167 64.4165C205.761 64.4366 206.244 64.5471 206.445 64.8385C206.667 65.17 206.697 65.8432 206.445 66.1145C205.922 66.6772 205.228 67.3203 204.483 67.4509C203.577 67.6217 202.551 67.3002 201.574 67.1997C201.242 67.1695 200.9 67.1796 200.558 67.1695C199.834 67.1494 198.535 66.838 197.791 66.4863C197.257 66.2351 195.506 66.1045 194.842 66.0442C194.761 66.0442 194.621 65.994 194.61 65.9538C194.51 65.2504 194.158 65.5519 194.812 64.949C194.892 64.8787 196.774 64.5571 196.905 64.5672C198.505 64.6174 200.216 64.7279 201.866 64.7179C202.48 64.7179 204.02 64.3863 205.157 64.4165H205.167Z" fill="%23B5975A"/><path d="M203.598 39.438C202.833 39.5686 201.102 39.4078 202.098 40.7844C202.943 41.96 204 42.0102 205.037 41.9198C205.65 41.8695 206.365 41.9198 206.667 41.0155C206.667 39.7294 205.691 38.9155 204.845 39.1265C204.423 39.237 204.01 39.3676 203.587 39.438H203.598Z" fill="%23B5975A"/><path d="M199.27 57.2724C199.27 57.0413 199.401 56.8605 199.652 56.7299C200.226 56.4385 201.001 56.5691 201.605 56.5591C202.561 56.539 203.567 56.2978 204.513 56.2677C204.654 56.2677 204.815 56.1772 204.936 56.0667C205.328 55.715 205.912 56.2878 206.163 56.75C206.818 57.9356 206.214 58.5485 205.781 58.86C205.66 58.9504 205.228 59.0408 204.936 58.9906C204.261 58.87 203.517 58.9303 202.842 58.7896C201.826 58.5686 200.8 58.438 199.793 58.1265C199.562 58.0562 199.421 57.8954 199.34 57.6844C199.3 57.5638 199.26 57.383 199.26 57.2825L199.27 57.2724Z" fill="%23B5975A"/><path d="M200.447 48.4606C201.383 48.2697 202.953 48.129 203.617 47.9884C204.262 47.8577 204.906 47.6065 205.55 47.6266C205.872 47.6367 206.214 48.0788 206.465 48.4506C206.546 48.5611 206.325 49.0635 206.244 49.395C205.882 50.7615 205.077 50.2792 204.382 50.2893C203.648 50.3094 201.675 49.8773 200.941 49.9376C200.075 50.0079 199.974 49.7266 200.286 48.6013C200.327 48.4405 200.548 48.3802 200.447 48.4606Z" fill="%23B5975A"/><path d="M199.079 23.3514C199.079 23.1203 199.22 22.9394 199.481 22.8088C200.085 22.5174 200.89 22.648 201.534 22.638C202.531 22.6179 203.587 22.3767 204.594 22.3466C204.745 22.3466 204.906 22.2562 205.036 22.1456C205.449 21.794 206.053 22.3667 206.324 22.8289C207.009 24.0145 206.375 24.6274 205.922 24.9389C205.801 25.0293 205.338 25.1198 205.036 25.0695C204.322 24.949 203.547 25.0092 202.832 24.8686C201.766 24.6475 200.689 24.5169 199.632 24.2054C199.391 24.1351 199.24 23.9743 199.159 23.7633C199.109 23.6428 199.069 23.4619 199.069 23.3614L199.079 23.3514Z" fill="%23B5975A"/></g></svg>');
    background-repeat: no-repeat;
    min-width: 211px;
    text-align: center;
    padding: 0px 0;
    background-size: cover;
    min-height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    /* transition: 0.4s ease; */
    flex-direction: column;
}

.county-map-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.county-map-hover-popup {
    z-index: 3;
    pointer-events: none;
}

.county-map-hover-popup .county-map-popup__image,
.county-map-hover-popup .county-map-popup__title,
.county-map-hover-popup .county-map-popup__text {
    pointer-events: none !important;
}

.county-map-popup .county-map-popup__image,
.county-map-popup .county-map-popup__title {
    pointer-events: auto;
}

.county-map-popup--banner-link .county-map-popup__image,
.county-map-popup--banner-link .county-map-popup__title {
    cursor: pointer;
}

.county-map-popup::after {
    width: 110px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg width="116" height="11" viewBox="0 0 116 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 5H110" stroke="%23B5975A" stroke-width="2" stroke-miterlimit="10" stroke-dasharray="0.99 0.99"/><path d="M110.28 10.1201C111.53 8.01012 113.47 6.35012 115.54 5.06012C113.45 3.79012 111.59 2.07012 110.28 0.000116808L109.03 0.000116917C110.34 2.00012 111.92 3.75012 113.86 5.06012C111.91 6.39012 110.28 8.15012 109.01 10.1201L110.28 10.1201Z" fill="%23B5975A"/><path d="M107.27 10.1201C108.52 8.01012 110.46 6.35012 112.53 5.06012C110.44 3.79012 108.58 2.07012 107.27 0.000116808L106.02 0.000116917C107.33 2.00012 108.91 3.75012 110.85 5.06012C108.91 6.39012 107.27 8.15012 106 10.1201L107.27 10.1201Z" fill="%23B5975A"/></svg>');
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 92%;
    z-index: 0;
    display: block;
    content: "";
    background-repeat: no-repeat;
    background-position: right;
    pointer-events: none;
}

.county-map-popup--pittsburgh::after {
    left: auto;
    right: 92%;
    transform: scaleX(-1);
}

.county-map-layout__item-link {
    text-decoration: none;
    color: var(--color-black);
    font-family: var(--font-gold-coast);
    font-size: clamp(20px, 2.79px + 2.07vw, 40px);
    line-height: 1.25;
    width: calc(100% - 36px);
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.county-map-layout__item-link:hover {
    color: #B32417;
}

.county-map-layout__item-arrow {
    width: 24px;
    min-width: 24px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.county-map-layout__item-arrow span {
    width: 100%;
    height: 100%;
    display: inline-block;
    background-image: url('data:image/svg+xml,<svg width="24" height="9" viewBox="0 0 24 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.5 0.353577L22.5 4.35358L18.5 8.35358" stroke="%23937944"/><path d="M22.5 4.35358H0" stroke="%23937944"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.county-map-layout__item-arrow:hover span {
    background-image: url('data:image/svg+xml,<svg width="24" height="9" viewBox="0 0 24 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.5 0.353577L22.5 4.35358L18.5 8.35358" stroke="%23B32417"/><path d="M22.5 4.35358H0" stroke="%23B32417"/></svg>');
}

.map-sec-title-wrap {
    padding-left: 64px;
}

.map-sec-right-inner-content p {
    line-height: 1.45;
}

.map-sec-right-inner-content {
    margin: 0 0 34px 0;
}

.county-map-layout__items {
    margin: 0;
}

.map-controls {
    text-align: right;
    margin-block-start: 20px;
}

.map-control-btn {
    width: 67px;
    height: 35px;
    border-radius: 999px;
    background-color: var(--color-secondary);
    line-height: 1;
    cursor: pointer;
    font-size: 0;
    border: none;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-position: center;
}

.map-control-btn:hover {
    background-color: var(--color-primary);
}

.map-zoom-in {
    background-image: url('data:image/svg+xml,<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.49512 0V15" stroke="white"/><path d="M15 7.49512L0 7.49512" stroke="white"/></svg>');
}

.map-zoom-out {
    background-image: url('data:image/svg+xml,<svg width="15" height="1" viewBox="0 0 15 1" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 0.5L0 0.499999" stroke="white"/></svg>');

}

.map-fullscreen {
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 8.5V0.5H8.5" stroke="white"/><path d="M19.5 11.5L19.5 19.5L11.5 19.5" stroke="white"/><path d="M11.5 0.5L19.5 0.5L19.5 8.5" stroke="white"/><path d="M8.5 19.5L0.5 19.5L0.500001 11.5" stroke="white"/></svg>');
}

.map-control-btn:hover {
    filter: brightness(1.08);
}

.map-control-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.county-map-popup__title {
    display: block;
    margin: 0;
    color: var(--color-black);
    font-family: var(--font-gold-coast);
    font-size: var(--font-size-24);
    line-height: 1.25;
    text-transform: uppercase;
    font-weight: var(--fw-400);
}

.county-map-popup__image {
    display: none;
    width: 100%;
    max-width: 106px;
    height: auto;
}

g.county-map-star:focus {
    outline: none !important;
}

@media screen and (max-width: 1600px) {
    .map-sec-wrapper {
        padding: 80px 40px 35px 40px;
    }

    .map-sec-title {
        margin-bottom: 70px;
    }

    .county-map-popup {
        min-width: 190px;
        min-height: 60px;
        background-size: contain;
    }
}

@media screen and (max-width: 1440px) {
    .map_section {
        padding-block-start: clamp(36px, 5.6vw, 157px);
        padding-block-end: clamp(40px, 4vw, 100px);
    }

    .map-sec-wrapper {
        padding: 70px 30px 35px 30px;
    }

}

@media screen and (max-width: 1200px) {
    .map-sec-left {
        max-width: 72%;
    }

    .map-sec-right {
        max-width: 25%;
    }

}

@media screen and (max-width: 1024px) {

    .map-sec-left,
    .map-sec-right {
        max-width: 100%;
    }

    .map-sec-right {
        padding-top: 42px;
    }
}

@media screen and (max-width: 768px) {
    .map-sec-wrapper {
        padding: 40px 15px 35px 15px;
        border-radius: 0;
    }

    .map_section .container {
        padding: 0;
    }

    .map-sec-title-wrap {
        padding-left: 0;
    }

    .map-sec-title {
        margin: 0 0 28px 0;
    }

    .map-sec-left-inner {
        padding: 28px 10px 48px 15px;
    }

    .map-controls {
        text-align: unset;
        display: flex;
        gap: 7px;
    }

    .map-control-btn.map-fullscreen {
        margin-inline-start: auto;
    }

    .map-sec-right-inner-content p {
        line-height: 1.6875;
    }

    .county-map-layout__item-link {
        font-size: clamp(24px, 2.79px + 2.07vw, 40px);

    }

    .map-sec-right {
        padding: 30px 3px 0 3px;
    }

    .map-sec-right-inner-content {
        margin: 0 0 21px 0;
    }

    .county-map-item {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .county-map-popup::after {
        width: 70px;
    }
}

@media screen and (max-width: 640px) {
    .county-map-popup {
        min-width: 86px;
        min-height: 28px;
        background-size: contain;
        background-position: center;
    }

    .county-map-popup__title {
        font-size: 11px;
    }

    .county-map-popup::after {
        left: 91.6%;
    }

    .county-map-popup--pittsburgh::after {
        left: auto;
        right: 91.6%;
    }

    .county-map-popup__image {
        width: 40px;
    }
}


.county-map-popup--luzerne-pin .county-map-popup__title {
    color: #B32417;
}