
/* gmap-investment-map.css */

/* 1) Container positioning (if not already in your CSS) */
#investment-map-wrapper, #senate-map-wrapper, #house-map-wrapper, #starbond-map-wrapper {
    position: relative;
    width: 100%;
    height: 350px !important;
}
.city-modal #investment-map-wrapper,.city-modal  #senate-map-wrapper,.city-modal #house-map-wrapper,
.city-modal #starbond-map-wrapper{
    height: calc(100vh - 200px) !important;
}
#investment-map-wrapper .gm-ui-hover-effect span,
#senate-map-wrapper .gm-ui-hover-effect span,
#house-map-wrapper .gm-ui-hover-effect span,
#starbond-map-wrapper .gm-ui-hover-effect span{
    mask-repeat: no-repeat;
    width: 1.1em !important;
    height: 1.1em !important;
    background-position: 100%;
    display: inline-block;
    margin-top: 6px !important;
    margin-left: 6px;
}
#investment-map {
    width: 100%;
    height: 100%;
}
.map-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}
#investment-map, #senate-map, #house-map , #starbond-map {
    width: 100%;
    height: 100%;
}
#senate-map-wrapper,
#house-map-wrapper,
#starbond-map-wrapper{
    display: none;
}
/* 2) Overlay filter panel */
#investment-filter {
    position: absolute;
    bottom: 30px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: auto;
}

/* 3) Hide the label text but keep the input visible */
#investment-filter label {
    color: transparent;      /* hides the text */
    cursor: pointer;
}

/* 4) Style the checkboxes as circles */
#investment-filter input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    visibility: visible;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* 5) Five‐color ramp, matching your JS colors */
#investment-filter input[value="0"] { background: #B7D4FF; }
#investment-filter input[value="1"] { background: #7AAFFF; }
#investment-filter input[value="2"] { background: #538DFF; }
#investment-filter input[value="3"] { background: #0A23DC; }
#investment-filter input[value="4"] { background: #000096; }

/* 6) Checked state: enlarge & add outline */
#investment-filter input[type="checkbox"]:checked {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
}

.gm-style-iw-d div, .gm-style-iw-d div strong,
.gm-style-iw-d div, .gm-style-iw-d div span{
    color: #323232;
    font-family: "TradeGothicNext", "Trade Gothic Next LT Pro", "Arial Narrow", Arial, sans-serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height:1.5;
}
.gm-style .gm-style-iw-d{
    padding:0 !important;
    margin-bottom: -6px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}
.gm-style-iw-d div .popup-county-title,
.gm-style-iw-d div .popup-county-title strong,
.gm-style-iw-d div .infoTip-county,
.gm-style-iw-d div .infoTip-county strong,
.gm-style-iw-d div .infoTip-senate,
.gm-style-iw-d div .infoTip-senate strong,
.gm-style-iw-d div .popup-senate-title,
.gm-style-iw-d div .popup-senate-title strong,
.gm-style-iw-d div .popup-house-title,
.gm-style-iw-d div .popup-house-title strong,
.gm-style-iw-d div .popup-house-hover strong,
.gm-style-iw-d div .hover-popup strong:first-child,
.gm-style-iw-d div .popup-county-hover strong:first-child,
.gm-style-iw-d div .popup-senate-hover strong:first-child{
    font-size: 20px;
    font-weight: 700;
}
.gm-style-iw-d div .popup-county-title,
.gm-style-iw-d div .popup-senate-title,
.gm-style-iw-d div .popup-house-title{
    padding-right: 25px;
}

.gm-style-iw-d div span.infoTip-investment,
.gm-style-iw-d div span.infoTip-investment strong,
.gm-style-iw-d div span.popup-county-investment,
.gm-style-iw-d div span.popup-county-investment strong,
.gm-style-iw-d div span.popup-senate-investment,
.gm-style-iw-d div span.popup-senate-investment strong,
.gm-style-iw-d div span.popup-house-member,
.gm-style-iw-d div span.popup-house-member strong,
.gm-style-iw-d div span.popup-house-investment,
.gm-style-iw-d div span.popup-house-investment strong{
    display: block;
    font-size: 18px;
    font-weight: 500;
}
.gm-style-iw-d div .popup-county-hover,
.gm-style-iw-d div .popup-senate-hover,
.gm-style-iw-d div .popup-house-hover{
    font-size: 18px;
    font-weight: 500;
}
.gm-style-iw-d div span.popup-senate-investment strong,
.gm-style-iw-d div span.infoTip-investment strong,
.gm-style-iw-d div span.popup-county-investment strong,
.gm-style-iw-d div span.popup-house-member strong,
.gm-style-iw-d div span.popup-house-investment strong{
    display: inline;
}
.infoTip-investment strong{
    font-weight: 500;
}
.infoTip-category{
    margin-top: 12px;
    display: inline-block;
    width: 100%;
}
.gm-style-iw-d div span .label,
.infoTip-category .label{
    padding-bottom: 0;
    margin-top: 0;
    font-size: inherit;
}
.gm-style-iw.gm-style-iw-c{
    padding: 16px 0 !important;
    min-width: 350px !important;
}

.gm-style-iw-chr{
    position:absolute;
    top: 8px;
    right: 10px;
    pointer-events: all;
}
.gm-ui-hover-effect{
    display: none !important;
    border-radius: 50% !important;
    background-color: #FFC700 !important;
    transition: 0.25s ease-in !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 5;
    pointer-events: all;
}
button.gm-ui-hover-effect:hover{
    transform: unset !important;
}
.gm-ui-hover-effect span{
    margin: 0 !important;
}
span.infoTip-county, span.infoTip-senate{
    display: block;
}
.gm-style-iw-d .disclaimer-text{
    display: block;
    color: #757575;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 20px;
    width: 100%;
}
.gm-style-iw-d span{
    display: block;
}
.gm-style-iw-d .popup-starbond-title{
    margin-bottom: 12px;
    padding: 0 16px;
}
.gm-style-iw-d .popup-starbond-hover{
    padding: 0 16px;
}
.gm-style-iw-d .popup-year-section{
    padding: 0 16px;
}
.gm-style-iw-d .popup-starbond-title strong{
    font-weight: 800;
}
.gm-style-iw-d span.popup-year-heading{
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}
.gm-style-iw-d span.popup-year-heading strong{
    font-weight: 800;
    font-size: 14px;
}
.gm-style-iw-d .popup-starbond-investment{
    font-size: 12px;
}
.gm-style-iw-d .popup-starbond-investment:last-of-type{
    padding-bottom: 8px;
}
.gm-style-iw-d .popup-starbond-investment strong{
    font-size: 12px;
}
.gm-style .gm-style-iw-t{
    display: none;
}
.city-modal .gm-style .gm-style-iw-t{
    display: block !important;
}
.gm-style-iw-d span.popup-senate-category,
.gm-style-iw-d span.popup-house-category,
.gm-style-iw-d span.popup-county-category{
    display: flex;
    flex-wrap: wrap;
    grid-gap: 4px;
}
.popup-house-investment + .popup-house-category,
.popup-senate-investment + .popup-senate-category,
.popup-county-investment + .popup-county-category{
    margin-top: 16px;
}
@media screen and (max-width: 1200px) {

    .gm-style-iw-d div .popup-county-title,
    .gm-style-iw-d div .popup-county-title strong,
    .gm-style-iw-d div .infoTip-county,
    .gm-style-iw-d div .infoTip-county strong,
    .gm-style-iw-d div .infoTip-senate,
    .gm-style-iw-d div .infoTip-senate strong,
    .gm-style-iw-d div .popup-senate-title,
    .gm-style-iw-d div .popup-senate-title strong,
    .gm-style-iw-d div .popup-house-title,
    .gm-style-iw-d div .popup-house-title strong,
    .gm-style-iw-d div .popup-house-hover strong,
    .gm-style-iw-d div .hover-popup strong:first-child,
    .gm-style-iw-d div .popup-county-hover strong:first-child,
    .gm-style-iw-d div .popup-senate-hover strong:first-child{
        font-size: 16px;
    }
    .gm-style-iw-d div span.infoTip-investment,
    .gm-style-iw-d div span.infoTip-investment strong,
    .gm-style-iw-d div span.popup-county-investment,
    .gm-style-iw-d div span.popup-county-investment strong,
    .gm-style-iw-d div span.popup-senate-investment,
    .gm-style-iw-d div span.popup-senate-investment strong,
    .gm-style-iw-d div span.popup-house-member,
    .gm-style-iw-d div span.popup-house-member strong,
    .gm-style-iw-d div span.popup-house-investment,
    .gm-style-iw-d div span.popup-house-investment strong,
    .gm-style-iw-d div .popup-county-hover,
    .gm-style-iw-d div .popup-senate-hover,
    .gm-style-iw-d div .popup-house-hover{
        font-size: 14px;
    }

    .popup-house-investment + .popup-house-category,
    .popup-senate-investment + .popup-senate-category,
    .popup-county-investment + .popup-county-category {
        margin-top: 14px;
    }
    .gm-style-iw.gm-style-iw-c{
        min-width: 300px !important;
    }
    .gm-ui-hover-effect{
        width: 36px !important;
        height: 36px !important;
    }
    .gm-ui-hover-effect span{
        width: 18px !important;
        height: 18px !important;
    }
    .gm-style-iw-d .disclaimer-text{
        font-size: 10px;
        margin-top: 14px;
    }
}

@media screen and (max-width: 600px) {
    #investment-map-wrapper .gm-ui-hover-effect span,
    #senate-map-wrapper .gm-ui-hover-effect span,
    #house-map-wrapper .gm-ui-hover-effect span{
        margin-top: 4px !important;
    }
    .gm-style-iw-d div .popup-county-title,
    .gm-style-iw-d div .popup-senate-title,
    .gm-style-iw-d div .popup-house-title{
        padding-right: 40px;
    }
    .im-region-map-wrap .gm-ui-hover-effect{
        width: 30px !important;
        height: 30px !important;
        right: 6px !important;
        top: 8px !important;
    }
    .gm-ui-hover-effect span{
        width: 16px !important;
        height: 16px !important;
    }
    .gm-style.active{
        position:fixed !important;
        z-index: 999 !important;
    }
    .gm-style.active .gmnoprint{
        opacity:0;
        pointer-events:none;
    }
    .gm-style.active .gm-ui-hover-effect,.gm-style.active .gm-style-iw-chr{
        display: flex !important;
        top:8px !important;
        bottom: auto !important;
        right: 7px !important;
    }
    .gm-style .gm-style-iw-d{
        padding-top: 12px !important;
        scrollbar-width: none;
        height: 100%;
    }
    .gm-style .gm-style-iw-d div{
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .gm-style-iw-d .disclaimer-text{
        margin-top: auto;
        padding-top: 10px;
        max-width: calc(100% - 50px);
    }
    .gm-style-iw-a {
        position: fixed !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.70) !important;
        backdrop-filter: blur(10px);
        top: 0vh !important;
        bottom: 0 !important;
        width: 100vw !important;
        right: 0;
        left: 0vw !important;
    }
    .gm-style-iw.gm-style-iw-c {
        min-width: 100vw !important;
        position: fixed;
        left: 0% !important;
        right: 0%;
        background: #ffffff;
        z-index: 9;
        height: 0;
        top: auto;
        bottom: 0;
        border-radius: 24px 24px 0 0;
        overflow: hidden;
        transition: height 0.6s ease-in-out, top 0.6s ease-in-out;
        transform:inherit !important;
    }
    .gm-style.active div{
        left:0 !important;
        right:0 !important;
        top:auto !important;
        bottom:0 !important;
    }
    .gm-style.active .gm-style-iw.gm-style-iw-c {
        min-height: 40vh;
        max-height: 85vh !important;
        padding-bottom: 90px;
        overflow-y: auto;
        scrollbar-width: none;
        padding-bottom: 90px !important;
        height:auto;
    }
    .transparency-map-modal-box{
        position: relative;
    }
    .transparency-map-box.city-modal .transparency-map-modal-box{
        height: 85vh;
        overflow:hidden;
    }
    .city-modal #investment-map-wrapper,.city-modal  #senate-map-wrapper,.city-modal #house-map-wrapper {
        height: calc(85vh - 135px) !important;
    }
    .city-modal div#investment-map-wrapper:after,.city-modal div#investment-map-wrapper::after,
    .city-modal div#senate-map-wrapper:after,.city-modal div#senate-map-wrapper::after,
    .city-modal div#house-map-wrapper:after,.city-modal div#house-map-wrapper::after,
    div#investment-map-wrapper:after,div#senate-map-wrapper:after,div#house-map-wrapper:after
    {
        height: 30px;
        content: '';
        background: #ffffff;
        width: 100%;
        position: absolute;
        z-index: 5555;
        bottom: 0;
        pointer-events: none;
    }
    #transparency-region-map{
        margin-bottom:1em;
    }
    #investment-map .gmnoprint > div:first-of-type,
    #senate-map .gmnoprint > div:first-of-type,
    #house-map .gmnoprint > div:first-of-type{
        top: 50px !important;
    }

    #investment-map-wrapper, #senate-map-wrapper, #house-map-wrapper{
        height:380px !important;
        overflow:visible;
    }
    div#investment-map-wrapper:after,div#investment-map-wrapper::after,
    div#senate-map-wrapper:after,div#senate-map-wrapper::after,
    div#house-map-wrapper:after,div#house-map-wrapper::after{
        background:#f2f2f2;
        width:101%;
        right:0;
        left:0;
        bottom:-1px;
    }

    .transparency-map-modal-box:has(.gm-style.active) {
        background-color: transparent !important;
        background: transparent;
        border-radius: 0;
        height:0;
        overflow:visible;
    }
    .transparency-map-box.city-modal:has(.gm-style.active) {
        background-color: transparent !important;
    }

    .gm-style.active:after {
        content: '';
        display: block;
        position: absolute;
        height: 40px;
        width: 100px;
        background: #ffffff;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999999;
    }
}

/* iPhone Safari only*/

@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 600px) {
        .gm-style.active .gm-style-iw.gm-style-iw-c {
            padding-bottom:130px !important;
            height: max-content !important;
            -webkit-overflow-scrolling: touch;
        }
        .gm-style .gm-style-iw-d{
            height:auto;
        }
        .gm-ui-hover-effect>span{
            background-color:#000000;
        }
    }
}
.county-title{
    text-decoration: underline !important;
}
span.popup-starbond-image {
    padding: 10px 0;
}
span.popup-starbond-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    max-height: 175px;
    object-fit: cover;
}