/* ==== hero ==== */

.hero__image {
    background-image: url(../images/associations/top-banner-associations.png);
}

/* ==== associations title ==== */

.associations-title {
    display: none;
    width: 100%;
    margin-top: 24px;
    padding-bottom: 8px;
    border-bottom: 2px #006072 solid;
    font: 600 36px Quicksand, sans-serif;
}

/* ==== top buttons ==== */

.top-buttons {
    width: 100%;
    margin: auto;
    margin-top: 36px;
    margin-bottom: 12px;
    display: flex;
    gap: 22px;
}
.top-buttons__member-list {
    position: relative;
    width: 345px;
    flex: initial;
    white-space: nowrap;
}
.top-buttons__member-list-button {
    position: relative;
    width: 100%;
    padding: 12px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    color: white;
    font: 700 18px 'Inter', sans-serif;
    background-color: var(--app-teal);
    border: none;
    cursor: pointer;
}
.top-buttons__member-list-button-chevron {
    height: 12px;
    aspect-ratio: 1;
    margin-right: 10px;
    border-left: 2px white solid;
    border-bottom: 2px white solid;
    transform: translateY(-20%) rotate(-45deg);
    transition: 0.3s ease-in-out;
}
/* JS */
.top-buttons__member-list-button-chevron.up {
    transform: translateY(20%) rotate(135deg);
}
.top-buttons__member-list-dropdown {
    position: absolute;
    left: 5px;
    top: 100%;
    width: calc(100% - 10px);
    height: 580px;
    overflow: hidden;
    overflow-y: scroll;
    background-color: white;
    border: 1px var(--app-gray) solid;
    display: block;
    z-index: 5;
}
/* JS */
.top-buttons__member-list-dropdown.hidden {     
    display: none;
}
.top-buttons__member-list-dropdown ul {
    padding-left: 2px;
    padding-right: 2px;
    border-right: var(--app-gray) 1px solid;
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 400;
    list-style: none;
}
.top-buttons__member-list-dropdown li {
    padding-top: 4px;
    padding-bottom: 6px;
    cursor: pointer;
}
.top-buttons__member-list-dropdown p {
    width: 100%;
    padding-left: 21px;
}
.top-buttons__member-list-dropdown li:hover p {
    background-color: var(--app-gray);
}
.top-buttons__member-list-dropdown li.selected p {
    background-color: #8b8b8b;
}
::-webkit-scrollbar {
    width: 15px;
}
::-webkit-scrollbar-thumb {
    background-color: #d9d9d9;
    border-radius: 5px;
    border: white 2px solid;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--app-gray);
    transition: 500ms;
}
.top-buttons__search {
    width: 345px;
    padding: 12px;
    flex: initial;
    color: var(--app-gray);
    background-color: var(--app-background);
    border: none;
    cursor: pointer;
}

/* ==== main ==== */

.main {
    width: var(--clamped-vw);
    padding-top: 20px;
    padding-bottom: 13px;
    margin-bottom: 80px;
    /* flex: 1 0; */
    background-color: rgba(0, 60, 72, .1);
}
.main__container {
    width: var(--content-width);
    height: 557px;
    margin: auto;
    display: flex;
    gap: 17px;
}
.main__map-and-tiles {
    /* width: 741px; */
    flex: auto;
    /* display: flex;
    flex-direction: column;
    gap: 10px; */
}
.main__map {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: end;
    align-items: start;
    background-color: #f2f5f5;
    border: white 5px solid;
}
.map-europe-svg {
    width: 100%;
    height: 100%;
}
.main__map-and-tiles path {
    fill: #15384d;
    transition: fill 400ms;
}
.main__map-and-tiles path.highlighted,
.tile.highlighted path {
    fill: var(--app-teal);
    transition: fill 0ms;
}
.main__tiles {
    /* width: fit-content; */
    width: 97px;
    position: absolute;
    bottom: -5px;
    right: -5px;
    /* align-self: center; */
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background-color: #ffffff;
}
.tile {
    width: 87px;
    height: 87px;
    padding: 3px;
    background-color: #f2f5f5;
    cursor: pointer;
}
.tile svg {
    width: 100%;
    height: 100%;
}
.main__details {
    width: 350px;
    height: 100%;
    display: flex;
    flex: none;
    flex-direction: column;
    background-color: white;
    overflow: auto;
}
.main__details--title {
    width: 100%;
    min-height: 45px;
    padding-left: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    color: white;
    font: 700 24px Inter, sans-serif;
    background-color: var(--app-teal);
}
.main__details--contact-details-title,
.main__details--committee-title {
    width: 100%;
    margin-top: 8px;
    padding: 6px 0 5px 24px;
    border-top: 1px var(--app-teal) solid;
    border-bottom: 1px var(--app-teal) solid;
    color: var(--app-teal);
}
.main__details p,
.main__details li {
    font-size: 16px;
}

.main__details--contact-details-text {
    margin: 11px 10px 10px 24px;
}
.main__details--committee-text {
    margin: 11px 10px 10px 45px;
}
.main__details--contact-details-text a {
    /* color: var(--app-teal); */
    color: black;
    text-decoration: none;
}
.main__details--contact-details-text a:hover {
    text-decoration: underline;
}
.main__details--spacer {
    width: 100%;
    flex: auto;
}
.main__details--more-info-button {
    margin-top: 34px;
    margin-bottom: 8px;
    padding: 10px 20px;
    align-self: center;
    color: white;
    font: var(--h3);
    background-color: #006072;
    border: 1px solid #006072;
    border-radius: 999em;
    cursor: pointer;
    width: fit-content;
}

/* ==== tablets ==== */

@media(max-width: 1024px) {
    .associations-title {
        display: block;
    }
    .top-buttons {
        margin-top: 18px;
    }
    .top-buttons__member-list {
        width: 250px;
    }    
    .top-buttons__member-list-dropdown {
        height: 120px;
    }    
    .main {
        background-color: white;
        padding-top: 0;
    }
    .main__container {
        height: auto;
        flex-direction: column;
    }
    .main__map {
        border: none;
        width: 100%;
        height: auto;
    }
    .main__tiles {
        display: none;
    }
    .main__details {
        width: 100%;
    }
    .main__details--contact-details-title,
    .main__details--committee-title {
        color: black;
        background-color: var(--app-background);
    }
    .main__details--more-info-button {
        display: none;
    }
}

/* ==== phones ==== */

@media(max-width: 640px) {
    .hero {
        display: none;
    }
}