body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
}

#app {
    width: var(--app-width);
    max-width: 900px;
    height: calc(100vh - 80px);
    padding: 20px;
    padding-bottom: 5px;
    margin: 20px auto;
    border-radius: 8px;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    background-color: var(--app-color);
    box-shadow: 0 4px 12px var(--shadow-app);
    overflow-x: clip;
}

h1 {
    margin-bottom: 40px;
    margin-top: 20px;
    padding-left: 10%;
    padding-right: 10%;
    color: var(--dark-base);
    text-transform: uppercase;
    font-family: "Reglo", Arial, Helvetica, sans-serif;
    font-size: 45px;
    font-style: italic;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0px;
    line-height: 36px;
}


ul {
    position: relative;
    width: 100%;
    left: 0;
    padding: 0;
    padding-bottom: 5px;
    margin: 0;
    list-style-type: none;
}

li {
    position: absolute;
    display: flex;
    width: calc(100% - 30px);
    height: 30px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    align-items: center;
    background-color: var(--soft-white);
    box-shadow: 0 2px 5px var(--shadow-app);
    transition: transform 0.6s ease-out;
    cursor: pointer;
}

.name {
    width: 200px;
    padding-right: 20px;
    color: var(--text-dark-mid);
    font-weight: bold;
}

.spaces {
    display: inline-flex;
    width: 450px;
    color: var(--text-dark-soft);
    text-align: left;
    align-items: center;
}

.available_places {
    display: inline-flex;
    padding-left: 10px;
    align-items: center;
}

li p:not(.places) {
    display: table-caption;
    display: -ms-grid;
    -ms-grid-columns: min-content;
    width: min-intrinsic;
    width: -webkit-min-content;
    width: -moz-min-content;
    width: min-content;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 300;
    line-height: 12px;
}

.places {
    width: 50px;
    padding-right: 6px;
    font-size: 22px;
    font-weight: 800;
    text-align: right;
}

li button {
    margin-left: auto;
    border: 0px solid #ddd;
    background-color: transparent;
    font-size: 30px;
    cursor: pointer;
}

li button.star::before {
    content: "★";
    -webkit-text-stroke: 2px;
}

li button.star.on::before {
    color: var(--base);
}

li button.star.off::before {
    color: var(--light-base);
    -webkit-text-fill-color: transparent;
}

li.favorite {
    padding-left: 10px;
    border-left: 5px solid var(--base);
    background-color: var(--white-base);
}

.tabs {
    position: relative;
    display: flex;
    width: 300px;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--soft-white);
    box-shadow: 0 0 1px 0 var(--shadow-base), 0 6px 12px 0 var(--shadow-base);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tabs * {
    z-index: 2;
}

.container input[type="radio"] {
    display: none;
}

.tab {
    display: flex;
    width: 100px;
    height: 30px;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.15s ease-in;
    cursor: pointer;
}

.container input[type="radio"]:checked+label {
    color: var(--base);
}

.container input[type="radio"]:checked+label> {
    margin: 0px;
    color: var(--soft-white);
}

.container input[id="radio-1"]:checked~.glider {
    transform: translateX(0);
}

.container input[id="radio-2"]:checked~.glider {
    transform: translateX(100%);
}

.container input[id="radio-3"]:checked~.glider {
    transform: translateX(200%);
}

.glider {
    position: absolute;
    display: flex;
    width: 100px;
    height: 30px;
    border-radius: 4px;
    background-color: var(--white-base);
    transition: 0.25s ease-out;
    z-index: 1;
}

#progress {
    position: relative;
    width: 150px;
    height: 10px;
    border-radius: 50px;
    background: rgb(29, 253, 69);
    background: linear-gradient(90deg, rgba(29, 253, 69, 1) 0%, rgb(255, 208, 0) 50%, rgba(253, 29, 29, 1) 100%);
    align-self: center;
}

#progressDot {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    right: 0%;
    border: 3px solid var(--soft-white);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0);
    transition: 0.6s;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateY(-50%);
}

.range {
    position: relative;
    width: 20%;
    height: 0.5rem;
    border-radius: 50px;
    background-color: #E5E7EB;
}

.range .fill {
    position: absolute;
    width: 10%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50px;
    background-color: #10B981;
}

#last_update {
    position: fixed;
    left: 6px;
    bottom: 4px;
    margin: 0;
    color: var(--text-dark-soft);
    font-size: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    z-index: 10;
}

#fetch {
    position: absolute;
    display: flex;
    width: 100%;
    height: 200px;
    top: 50%;
    left: 0%;
    justify-content: center;
}

#fetch::before {
    display: block;
    width: 125px;
    height: 125px;
    content: '';
    background-image: url(../img/sync.svg);
    filter: var(--svg-filter);
    background-size: 125px 125px;
    background-repeat: no-repeat;
    animation: fadeIn 0.4s ease-out forwards, rotating 01s ease-in-out infinite;
    opacity: 0;
}

#fetch.map-loading {
    justify-content: center;
    align-items: center;    top: 109px;
    height: calc(100% - 150px);
    width: 100%;
}

#fetch.map-loading::before {
    width: 64px;
    height: 64px;
    background-size: contain;
    filter: var(--svg-filter);
    animation: fadeIn 0.4s ease-out forwards, rotating 01s ease-in-out infinite;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes rotating {
    from { transform: rotate(0deg);    }
    to   { transform: rotate(-360deg); }
}