.app-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.app-sidebar {
    width: min(36vw, 480px);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.list-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

#map,
.app-map {
    flex: 1;
    height: 100%;
    width: 100%;
}

.delivered-marker {
    filter: grayscale(100%) opacity(0.3);
}

/* user location small symbol */
.user-location {
    border-radius: 50%;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

/* highlight for selected marker */
.highlight-marker {
    transform: scale(1.4);
    transition: transform 0.15s ease-in-out;
    /* use box-shadow instead of filter so it doesn't override the delivered grayscale filter */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 1000;
}

/* Edit modal styling */
#editModal {
    pointer-events: none;
}

#editModal:not(.hidden) {
    pointer-events: auto;
}

#editModal:not(.hidden) * {
    pointer-events: auto;
}

@media (max-width: 768px) and (orientation: portrait) {
    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        min-width: 0;
        height: 48%;
        border-bottom: 1px solid rgba(209, 213, 219, 1);
    }

    #map,
    .app-map {
        height: 52%;
        min-height: 240px;
    }
}
