@import url('/js/leafletjs/leaflet.css');


#works {
    padding-left: 0;
    padding-right: 0;
}

#works #map {
    width: 100%;
    aspect-ratio: 3 / 2;
}

#works .text {
    padding: 0 min(6vw, 100px);
    width: 100%;
    margin-top: 30px;
}

#works .group .title {
    font-size: 27px;
    font-weight: 500;
    color: #1F1F1F;
    text-align: center;
    width: 100%;
    margin-top: 0;
}

#works .group .count {
    text-align: center;
    width: 100%;
    font-size: 35px;
    color: #317619;
    margin: 20px 0;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1ch;
}

#works h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 min(6vw, 100px);
}

#works h2 a {
    display: flex;
    align-items: center;
    justify-content: center;
}

#works svg {
    height: 35px;
    aspect-ratio: 1;
}

#works .map-section {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 min(5vw, 90px);
    gap: 10px;
    flex-direction: column;
}

#works .control-panel {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: 100%;
    min-width: 270px;
    background-color: white;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 4px 4px 17px 0px #000A;
}


#works .group {
    display: flex;
    flex-direction: column;
}

/* #works .detail-title, */
#works .checkered-decor {
    display: none;
    max-width: 700px;
}

#works .detail-title {
    text-align: center;
    font-size: min(min(7vw, 60px), 50px);
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 min(6vw, 100px);
}

#works .checkered-decor {
    background-image: url('/img/decor/checker.png');
    width: 55vw;
    height: 40vw;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-30%) translateY(-20%);
    z-index: -1;
}

#works a.disabled {
    pointer-events: none;
    filter: grayscale(0.7);
}

#works .control-panel .mid .date,
#works .control-panel .mid .d {
    margin-left: 20px;
    margin-right: 20px;
}

#works .control-panel .mid {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: start;
    justify-content: space-evenly;
    flex-direction: column;
    padding-bottom: 5%;
    flex-grow: 1;
}

@media only screen and (min-width: 720px) {
    #works {
        max-width: 1350px;
        margin: auto;
    }

    #works h2 {
        justify-content: start;
        gap: 40px;
    }

    #works .map-section {
        display: flex;
        align-items: stretch;
        justify-content: center;
        padding: 0 min(5vw, 90px);
        flex-direction: row;
        gap: 10px;
    }

    #works #map {
        flex-grow: 1;
        width: unset;
        border-radius: 20px;
        box-shadow: 2px 4px 2px 0px #0004;
        aspect-ratio: unset;
    }

    #works .control-panel {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        width: min(400px, 40%);
        min-width: 270px;
        background-color: white;
        border-radius: 20px;
        flex-shrink: 0;
        box-shadow: 4px 4px 17px 0px #000A;
        min-height: 610px;
    }

    #works .control-panel #wsel {
        margin: 0 auto;
    }

    #works .group.d {
        display: flex;
    }

    #works .text {
        display: flex;
        align-items: stretch;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    #works .group {
        flex-direction: column;
        width: 30%;
        justify-content: start;
    }

    #works .group p {
        margin-top: 0;
    }

    #works .group p.title {
        font-weight: 600;
        text-transform: uppercase;
        font-style: italic;
        font-size: min(4vw, 36px);
    }
    #works .group p.count {
        line-height: unset;
        font-weight: 600;
        text-transform: uppercase;
        font-style: italic;
        font-size: min(6vw, 50px);
    }

    #works .detail-title,
    #works .checkered-decor {
        display: block;
    }
    #works .detail-title{
        text-align: left;
    }

    #works p.sm-title {
        font-size: max(1.8vw, 17px);
    }

}

#works .date {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 5px;
    flex-wrap: wrap;
    padding: 0 15px;
}

#works .dsection {
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 4px 0 #0004;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#works .dpair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 5px 8px;
}

#works .dpair p:nth-child(2) {
    font-weight: 600;
}

#works .dpair p {
    margin: 0;
    font-size: 17px;
}

#works p.d {
    margin-bottom: 2px;
    font-weight: 600;
    font-size: 17px;
    padding: 0 15px;
}

#works img {
    width: 80%;
    height: auto;
    margin: 20px auto;
}

#works .sm-title {
    font-weight: 600;
    font-size: 19px;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 15px;
}

#works select {
    width: 80%;
    margin: auto;
    border: 1px solid #000;
    border-radius: 5px;
    height: 35px;
    font-size: 20px;
}

#works select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 1px solid #ccc;
    border-right: none;
    padding: 8px 36px 8px 10px;
    /* Ensure space for custom arrow */
    font-size: 16px;
    cursor: pointer;
    background-image: url('/img/home/dropdown-arrow.png');
    /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right;
    background-size: 36px;
}

/* Hide default arrow in Edge */
#works select::-ms-expand {
    display: none;
}

#works .button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 10px;
    margin-top: 30px;
    text-decoration: none;
    padding: 5px 10px;
}

.leaflet-control-container {
    height: 10px;
    position: absolute;
    bottom: 0;
    width: 100ch;
    z-index: 1000;
    right: 0;
}  

#works .leaflet-control svg{
    height: 10px;
}