html {
    font-family: "literata-variable", serif;
    font-optical-sizing: auto;
    font-style: normal;

    font-size: 18px;
}

h1 {
    font-size: 1.5em;
    color: #003C61FF;
    margin-top: 0;
    margin-bottom: 30px;
}

input[type="text"] {
    display: block;
    width: 100%;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px #bbb;
    padding: 15px;
    color: #797979;
    background: #fff;
    border: none;
    box-sizing: border-box;
    font-size: 0.8888888888888888em;
}

.text-medium {
    font-size: 1.2em;
    font-weight: bold;
    padding-bottom: 20px;
}

.text-small {
    font-weight: 700;
    font-size: 0.888em;
    padding: 3px 0;
}

.text-small.miles {
    font-weight: 600;
    font-size: 0.777em;
    margin-bottom: 10px;
    font-style: italic;
}

.text-small.address {
    color: #003C61FF;
}

.text-small.title,
.text-small.city {
    color: #003C61FF;
    opacity: 0.6;
}

.results .item-result a {
    font-size: 0.777em;
    color: #003C61FF;
    padding-top: 10px;
    display: block;
}

.results .item-result .icon {
    position: absolute;
    right: 0;
    top: 40px;
}

.results .item-result .icon svg {
    width: 24px;
    height: 24px;
}

#main-container {
    display: flex;
    height: 100vh;
}

#main-container .sidebar {
    display: block;
    width: 25%;
    border-right: 1px solid #ddd;
    padding: 20px;
    overflow-y: scroll;
    height: calc(100vh - 40px);
    min-width: 320px;
}

#main-container .content {
    width: 75%;
}

.results {
    padding-top: 30px;
}

.results .item-result {
    border-top: 1px solid #a8a6a1;
    padding: 30px 0;
    position: relative;
}


#main-container .content #map {
    height: 100%;
}

.slider-wrapper {
    width: 100%;
    margin: 2rem auto;
    font-family: sans-serif;
}

.slider-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    margin: 0;
}

/* WebKit track fill before thumb */
.slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

.slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

/* Thumb */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #003C61FF;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    margin-top: -6px; /* center thumb vertically on track */
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #003C61FF;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Tick labels */
.ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #444;
    font-weight: bold;
}

.ticks span {
    text-align: center;
    cursor: pointer;
}

.results .item-result a svg path {
    fill: #003C61FF;
}

@media (max-width: 768px) {

    #main-container {
        display: block;
        height: auto;
    }
    #main-container .sidebar {
        width: 100%;
        height: auto;
    }
    #main-container .content {
        width: 100%;
        height: 450px;
    }
}