* {
    box-sizing: border-box;
}

@font-face {
    font-family: Eurostile-Ext;
    src: url(/assets/fonts/EurostileExt-Bla.otf);
}

@font-face {
    font-family: Montserrat;
    src: url(/assets/fonts/Montserrat.ttf);
}

html,
body {
    margin: 0;
    height: 100%;
    font-family: system-ui, sans-serif;
}

.widget-container {
    position: relative;
    height: 100vh;
    width: 100vw;
}

#map {
    width: 100%;
    height: 100%;
}

.panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: 0px;
    left: 100px;
    z-index: 10;
    background: black;
    padding: 22px;
    padding-bottom: 0px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    height: clamp(300px, 75%, 900px);
    width: 475px;
    color: white;
    transition: 0.3s;
}

.panel button:hover {
    background: #374151;
}

.map-pin {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #ef4444;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.map-pin:hover {
    transform: scale(1.15);
}

.top-panel {
    position: relative;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

input {
    flex: 1;
}

h1 {
    text-transform: uppercase;
    font-family: "eurostile-extended", Sans-serif;
    font-size: 1.5em;
    font-weight: bold;
}

span.biggym-main {
    color: #E6007E
}

.panel .locations {
    overflow-y: auto;
    padding: 10px;
}

.location-button {
    font-family: "eurostile-extended", Sans-serif;
    font-weight: bold;
    border-bottom: 1px solid gray;
    padding: 20px 5px;
    cursor: pointer;
}

.location-button h2 {
    margin: 4px 0px 10px 0px;
    text-transform: uppercase;
}

.location-button span.address {
    color: gray;
    font-family: Montserrat
}

.map-pin {
    width: 40px;
    height: 40px;
    border: 0px;
    background-color: transparent;
    box-shadow: none;
}

.gym-popup {
    position: fixed;
    z-index: 777;
    width: 100%;
    height: 100%;
    overflow: auto;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    background-color: #00000045;
}

.gym-popup-body {
    width: 600px;
}

.gym-popup-body img {
    width: 100%;
    display: block;
}

.gym-popup-body .image-container {
    position: relative;
}

.gym-popup-body .image-container .close {
    position: absolute;
    color: white;
    top: 0;
    right: 0;
    margin: 10px;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    font-family: "eurostile-extended", Sans-serif;
}

.gym-popup-body .description {
    color: white;
    background-color: black;
    padding: 30px;
}

.gym-popup-body .description h2 {
    margin-top: 0px;
    font-family: "eurostile-extended", Sans-serif;
    font-weight: bold;
    margin-bottom: 0px;
}

.gym-popup-body .description a {
    color: lightgray;
}

.gym-popup-body .description a.gym-page {
    display: block;
    margin: 25px 0;
    color: lightgray;
    text-decoration: underline;
}


.facilities {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0px;
    cursor: default;
}

.facility {
    background-color: #E6007E;
    display: inline-block;
    padding: 5px;
    border-radius: 0 7px;
    text-transform: uppercase;
    font-family: "eurostile-extended", Sans-serif;
    font-weight: bold;
    font-size: 10px;
}

.gym-popup-body .popup-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: "eurostile-extended", Sans-serif;
    font-weight: bold;
}

.gym-popup a.act-btn,
.gym-buttons a.act-btn {
    color: white;
    display: block;
    width: 100%;
    height: 50px;
    font-size: 20px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 0px 10px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.gym-popup a.act-btn:hover {
    background-color: #E6007E;
    border-color: #E6007E;
    transition: 0.3s;
    color: white;
}

a.act-btn.join-now {
    border-color: #E6007E;
}

#search-holder {
    flex: 1;
    position: relative;
}

#search-gym {
    width: 100%;
    font-size: 20px;
    color: black;
    padding: 10px;
    position: relative;
}

.search-logo {
    position: absolute;
    color: black;
    right: 10px;
    top: 15px;
    width: 20px;
    height: 20px;
}

.filters {
    border: 2px solid #E6007E;
    padding: 10px;
    min-width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #E6007E;
    cursor: pointer;
    gap: 20px;
}

img {
    user-select: none;
    -webkit-user-select: none;
}

.address-holder {
    margin: 10px 0px 20px 0px;
    font-size: 13px;
}

a.gym-page {
    color: lightgray !important;
    font-family: system-ui;
    text-decoration: underline !important;
}

.gym-buttons {
    margin: 10px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-button.inactive {
    opacity: 50%;
}

.maplibregl-ctrl.maplibregl-ctrl-attrib {
    font-size: 5px;
}

button.maplibregl-ctrl-fullscreen {
    display: none;
}

.additional-gym-info {
    display: none;
}

.filter-selection {
    z-index: 103;
    position: absolute;
    width: 60%;
    right: 0;
    top: 60px;

    background-color: #1e1e1e;
    padding: 20px;

    display: flex;
    flex-direction: column;

    max-height: calc(100vh - 80px);
}



.remove-filters {
    color: #E6007E;
    text-decoration: underline;
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
}

.filter {
    margin: 10px 0;
}

.filter * {
    cursor: pointer;
}

.filter-selection .close {
    position: absolute;
    right: 15px;
    top: 15px;
    user-select: none;
    cursor: pointer;
    font-family: "eurostile-extended", Sans-serif;
}

.filter-block {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    max-height: 500px;
}

.filter-block h3 {
    margin: 0px;
}

@media (max-width: 576px) {
    button.maplibregl-ctrl-fullscreen {
        display: block;
    }

    .panel {
        opacity: 100 !important;
        position: relative;
        width: 100%;
        height: 60%;
        left: 0;
        bottom: 0;
    }

    #map {
        height: 40%
    }

    .search-logo {
        right: 10px;
    }

    .filter-selection {
        width: 100%
    }

    .filter-block {
        max-height: 200px;
    }
}