@import url("radius.css");
@import url("button.css");
@import url("dropdown.css");

:root {
    --color-primary: #1e87f0;
    /* UIkit blue */
    --color-danger: #e5533d;
    --color-muted: #6b7280;

    --surface-soft: #f5f7fa;
    --surface-hover: #e9edf3;
}

#content:not(.wide) {
    margin: 2rem auto;
}

@media screen and (max-width: 768px) {
    #content {
        padding: 1rem;
    }
}

#content,
.uk-navbar-container>div {
    max-width: 1200px;
}

#content.wide,
.uk-navbar-container .wide {
    max-width: initial;
}

@media screen and (max-width: 768px) {
    .trip-detail>div .distance-from-previous-stop .dot {
        left: -15px;
    }
}

.trip-map-form-container {
    display: flex;
    /* subtract: top-bar, back button, heading, bottom padding */
    height: calc(100vh - 81px - 38px - 41.6px - 40px - 20px - 40px);

    #map {
        /* subtract height of the map settings panel */
        height: calc(100% - 24px);
        min-height: 400px;
    }
}

@media screen and (min-width: 768px) {
    .trip-map-form-container .form {
        width: 400px;
        overflow-y: auto;
        height: 100%;
    }
}

@media screen and (min-width: 768px) {
    #trips {
        position: sticky;
        top: 0;
    }
}

.trip-detail-map-thumbnail {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: block;
    height: 100%;
    min-height: 222px;
}

.uk-navbar-container {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

#map {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.trip-form {
    padding: 16px;
}
