﻿#map-title {
    font-family: Trash,Syncopate,serif;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 1rem;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.25rem;
}

#map-wrapper {
    --pink: #cc00e0;
    --tranparent-pink: rgba(179, 0, 194, 0.95);
    --transparent-white: rgba(255,255,255, 0.6);
    --map-control-icon-color: rgb(102, 102, 102);
    --font-family-normal: 'Messina Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --map-height: 80vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 100px auto;
    height: var(--map-height);
    overflow: hidden;
    font-size: 14px;
    font-family: var(--font-family-normal);
    min-height: 300px;
}

#list {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 100px auto;
    height: 100%;
    grid-template-areas:    "list-header"
                            "list-body";
}

#list-body {
    grid-area: list-body;
    display: none;
    outline: 1px solid #3c3c3c;
    outline-offset: -1px;
}

.list-item {
    padding: 15px 20px;
    position: relative;
}

.list-item p {
    margin-bottom: 0.5rem;
}

.list-item + .list-item {
    border-top: 1px solid #3c3c3c;
}

#list-header {
    grid-area: list-header;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    background: var(--pink);
    height: 100px;
    position: relative;
}

#map-controls {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
}

/* all buttons in the list header get this class */
.map-button {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
}

#map-back-btn {
    display: none;
}

.map-button i {
    color: var(--transparent-white);
}

#clear-btn {
    color: var(--transparent-white);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#mobile-map-btn {
    display: none;
}

#map-search-btn {
    margin-right: auto;
    margin-left: 1em;
}

#map {
    height: 100%;
    width: 100%;
}

#map-list-total-count-section {
    font-size: 14px;
    padding: 1em;
    background: #3c3c3c;
    height: 50px;
    color: #6a6a6a;
    text-transform:none;
    font-weight: normal;
}

#list-outer {
    height: calc(var(--map-height) - 100px);
    overflow: hidden scroll;
}

#panel-search {
    max-height: calc(80vh - 50px);
    overflow: hidden scroll;
}

#panel-search {
    position: absolute;
    width: 100%;
    z-index: 1;
    padding: 1em;
    top: 50%;
    left: 0;
    background: var(--tranparent-pink);
}

#count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#filterDropdown {
    background: var(--tranparent-pink);
    width: 100%;
    padding: 1em;
    color: white;
    text-transform: none;
    font-weight: normal;
    top: 48px;
    max-height: calc(80vh - 50px);
    overflow: hidden scroll;
}

.filterListHeader {
    margin-bottom: 1em;
    margin-top: 1em;
    font-size: 12px;
    color: var(--transparent-white);
    letter-spacing: 1px;
    font-weight: normal;
}

.fa-location-arrow:before {
    color: var(--map-control-icon-color);
}

.fa-location-arrow:before:hover {
    color: #151515;
}

#details {
    display: grid;
    gap: 2em;
    padding: 2em;
    height: 100%;
    overflow-y: scroll;
}

#legend-wrapper {
    width: 100%;
    display: flex;
}

#legend {
    width: 100%;
    border: 1px solid grey;
    margin-top: 1em;
    padding: 1em;
}

#legend-title {
    text-transform: uppercase;
    font-size: 26px;
    font-family: Trash, Syncopate, serif !important;
    display: flex;
    justify-content: end;
}

#legend-text {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    display: flex;
    justify-content: end;
}

#legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 0.5rem;
    align-items: flex-end;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
    border: 1px solid #fff;
    margin-left: 5px;
}

.result-items-header {
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--transparent-white);
}

.map-list-item-name {
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    font-size: 0.875rem;
    display: block;
}

.map-list-item-location {
    font-style: italic;
}

.map-list-item-location,
.map-list-item-solution {
    font-size: 0.85rem;
    color: lightgray;
    display: block;
}

.achievement {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    font-weight: bold;
    color: var(--pink);
}

.list-angle {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translateY(-50%);
}

.detailItems label {
    margin-bottom: 0;
    letter-spacing: 1px;
    font-size: 12px;
    text-transform: uppercase;
    color: grey;
}

.result-item-place p,
.result-item-teams {
    text-transform: capitalize;
    font-weight: normal;
}

#map-chk-box {
    transform: scale(1.6, 1.6);
    width: 2em;
}




@media only screen and (max-height: 768px) and (orientation: landscape) {

    #map {
        display: block;
    }

    #legend-title {
        text-transform: uppercase;
        font-size: 26px;
        font-family: Trash, Syncopate, serif !important;
        display: flex;
        justify-content: start;
    }

    #legend-text {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
        display: flex;
        justify-content: start;
    }


}

@media screen and (max-width: 768px) {
    #map {
        margin-top: -50px !important;
    }

    #legend-title {
        text-transform: uppercase;
        font-size: 26px;
        font-family: Trash, Syncopate, serif !important;
        display: flex;
        justify-content: start;
    }

    #legend-text {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
        display: flex;
        justify-content: start;
    }
}

@media screen and (min-width: 768px) {

    #map {
        display: block !important;
    }

    #map-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: unset;
    }

    #list-body {
        display: inherit !important;
    }

    #mobile-controls {
        display: none;
    }

    #map-search-btn {
        margin-right: unset;
        margin-left: unset;
    }

    #legend-wrapper {
        justify-content: flex-end;
    }

    #legend {
        width: 50%;
    }
}

@media screen and (min-width: 992px) {
    #map-wrapper {
        grid-template-columns: 4fr 5fr;
    }

    #legend {
        width: calc(100% / 9 * 5);
    }
}

@media screen and (min-width: 1024px) {
    #map-wrapper {
        grid-template-columns: 4fr 7fr;
    }

    #legend {
        width: calc(100% / 11 * 7);
    }
}