/* ---- Map route planner ---- */

.map-route-warning {
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    background: rgba(244, 197, 66, 0.06);
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.map-route-enable-btn {
    width: 100%;
}

#map-route-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-route-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.map-route-mode-btn {
    font-size: 0.78rem;
    padding: 8px 6px;
}

.map-route-mode-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.map-route-summary {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.16);
    font-family: var(--font-code);
    font-size: 0.74rem;
    line-height: 1.55;
}

.map-route-summary .map-route-swim {
    color: #4db8ff;
}

#map-route-status {
    min-height: 18px;
}

.map-route-floor-widget {
    position: fixed;
    z-index: 100002;
    width: 196px;
    padding: 10px;
    border: 2px solid var(--border-strong);
    background: var(--panel-deep);
    box-shadow: 6px 6px 0 #000000;
}

.map-route-floor-widget h4 {
    margin: 0 0 8px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.map-route-floor-widget p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.map-route-floor-widget .map-route-floor-options {
    display: grid;
    gap: 6px;
}

.map-route-floor-widget button {
    width: 100%;
    text-align: left;
    font-size: 0.78rem;
    padding: 7px 9px;
}

.map-route-floor-widget .map-route-floor-cancel {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

body.map-page .map-sidebar.sqs-area {
    padding-right: 22px;
}

.map-sidebar .map-poi-list.sqs-area {
    padding-right: 15px;
}

.awj-territory-list.sqs-area,
.awj-label-list.sqs-area {
    padding-right: 15px;
}

