.sfs-routes {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 48px;
    box-sizing: border-box;
}

.sfs-list-hero {
    position: relative;
    min-height: clamp(220px, 32vw, 390px);
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.18);
}

.sfs-list-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(220px, 32vw, 390px);
    object-fit: cover;
    filter: saturate(1.05);
}

.sfs-list-hero-image.is-contain {
    object-fit: contain;
}

.sfs-list-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .74), rgba(17, 24, 39, .24) 52%, rgba(17, 24, 39, .10)),
        linear-gradient(0deg, rgba(17, 24, 39, .42), rgba(17, 24, 39, .04));
    pointer-events: none;
}

.sfs-list-hero-beta-badge {
    position: absolute;
    z-index: 2;
    top: clamp(18px, 3.6vw, 42px);
    right: clamp(16px, 4vw, 54px);
    transform: rotate(-12deg);
    padding: 8px 18px 10px;
    border: 3px solid rgba(255, 255, 255, .88);
    border-radius: 12px;
    background: rgba(239, 68, 68, .92);
    color: #fff;
    font-size: clamp(30px, 6vw, 78px);
    line-height: .9;
    font-weight: 1000;
    letter-spacing: .08em;
    text-shadow: 0 3px 10px rgba(0,0,0,.26);
    box-shadow: 0 14px 36px rgba(127, 29, 29, .32);
    pointer-events: none;
}

.sfs-list-hero-overlay {
    position: absolute;
    z-index: 1;
    left: clamp(22px, 5vw, 58px);
    right: clamp(22px, 5vw, 58px);
    bottom: clamp(22px, 5vw, 54px);
    color: #fff;
}

.sfs-list-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 7vw, 92px);
    line-height: .95;
    font-weight: 1000;
    letter-spacing: -.04em;
    text-shadow: 0 8px 26px rgba(0,0,0,.34);
}

.sfs-list-hero-subtitle {
    margin: 10px 0 0;
    color: rgba(255,255,255,.92);
    font-size: clamp(17px, 2.2vw, 25px);
    font-weight: 750;
}

.sfs-routes-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.sfs-routes-title-wrap {
    min-width: 180px;
}

.sfs-routes-title {
    margin: 0;
    color: #17202a;
    font-size: 28px;
    font-weight: 760;
    line-height: 1.15;
}

.sfs-routes-summary {
    margin-top: 4px;
    color: #667085;
    font-size: 14px;
}

.sfs-routes-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.sfs-routes-search,
.sfs-routes-select {
    height: 38px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #17202a;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
}

.sfs-routes-search {
    width: min(320px, 72vw);
    padding: 0 12px;
}

.sfs-routes-select {
    min-width: 150px;
    padding: 0 10px;
}

.sfs-routes-add,
.sfs-route-action,
.sfs-routes-page {
    min-height: 38px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
}

.sfs-route-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.sfs-route-card {
    border: 1px solid #b8c6d6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.sfs-route-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-top: 1px solid #d9e2ec;
    border-bottom: 1px solid #eef2f6;
    background: #edf3f7;
    overflow: hidden;
}

.sfs-route-visual.is-tabbed {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.sfs-route-view-tabs {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    padding: 5px 6px 0;
    border-bottom: 1px solid #d9e2ec;
    background: #f8fafc;
}

.sfs-route-view-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    padding: 6px 9px;
}

.sfs-route-view-tab:hover,
.sfs-route-view-tab:focus-visible {
    background: #eef6f3;
    color: #0f766e;
    outline: none;
}

.sfs-route-view-tab:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.24);
}

.sfs-route-view-tab.is-active {
    border-bottom-color: #0f766e;
    background: #fff;
    color: #0f766e;
}

.sfs-route-view-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #edf3f7;
}

.sfs-route-view-panel > .sfs-route-map,
.sfs-route-view-panel > .sfs-route-elevation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sfs-route-photo-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #e8eef3;
}

.sfs-route-photo-stage {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.sfs-route-photo-main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfs-route-photo-main.is-contain {
    object-fit: contain;
}

.sfs-route-photo-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.28);
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background 140ms ease, transform 140ms ease;
}

.sfs-route-photo-nav.is-previous {
    left: 10px;
}

.sfs-route-photo-nav.is-next {
    right: 10px;
}

.sfs-route-photo-nav:hover,
.sfs-route-photo-nav:focus-visible {
    background: rgba(15, 118, 110, 0.92);
    transform: translateY(-50%) scale(1.05);
    outline: none;
}

.sfs-route-photo-nav:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.78), 0 3px 10px rgba(15, 23, 42, 0.28);
}

.sfs-route-visual-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #f3f4f6;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.sfs-route-visual-button[aria-disabled="true"] {
    cursor: default;
}

.sfs-route-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfs-route-thumb.is-contain {
    object-fit: contain;
}

.sfs-route-thumb.is-placeholder {
    object-fit: contain;
    padding: 18px;
    box-sizing: border-box;
}

.sfs-route-source-line {
    padding: 6px 12px 7px;
    border-top: 1px solid #eef2f6;
    color: #667085;
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    text-transform: lowercase;
    font-weight: 400;
}

.sfs-route-source-line a {
    color: inherit;
    text-decoration: none;
}

.sfs-route-source-line a:hover,
.sfs-route-source-line a:focus-visible {
    color: #344054;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sfs-route-access-view {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sfs-route-access-panel {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    display: grid;
    gap: 5px;
    min-width: min(230px, calc(100% - 16px));
    max-width: calc(100% - 16px);
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    box-sizing: border-box;
    pointer-events: none;
}

.sfs-route-access-metric {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sfs-route-access-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #ecfdf3;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sfs-route-access-metric.is-muted .sfs-route-access-icon {
    background: #f1f5f9;
    color: #64748b;
}

.sfs-route-access-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
}

.sfs-route-access-label {
    color: #475467;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.sfs-route-access-copy strong {
    min-width: 0;
    color: #111827;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: right;
}

.sfs-route-map {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #dce8ef;
}

.sfs-route-map.is-route-only {
    background: #f8fafc;
}

.sfs-route-map-shell,
.sfs-route-map-layer {
    position: absolute;
    inset: 0;
}

.sfs-route-map-shell,
.sfs-route-map-dialog-body {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.sfs-route-map-shell.is-dragging,
.sfs-route-map-dialog-body.is-dragging {
    cursor: grabbing;
}

.sfs-route-map-shell.is-elevation-visible,
.sfs-route-map-dialog-body.is-elevation-visible {
    cursor: default;
    touch-action: auto;
}

.sfs-route-map-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sfs-route-osm-tile {
    opacity: 1;
}

.sfs-route-map-line-casing {
    fill: none;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sfs-route-map-line {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 4.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.35));
    vector-effect: non-scaling-stroke;
}

.sfs-route-map.is-route-only .sfs-route-map-line-casing {
    stroke: rgba(15, 23, 42, 0.08);
    stroke-width: 10;
}

.sfs-route-map.is-route-only .sfs-route-map-line {
    stroke: #0f766e;
    stroke-width: 4.8;
    filter: none;
}

.sfs-route-access-line {
    fill: none;
    stroke: rgba(15, 118, 110, 0.82);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
    vector-effect: non-scaling-stroke;
}

.sfs-route-map-start {
    fill: #16a34a;
    stroke: #fff;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.sfs-route-map-end {
    fill: #ef4444;
    stroke: #fff;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.sfs-route-map-user-halo {
    fill: rgba(37, 99, 235, 0.2);
    stroke: rgba(37, 99, 235, 0.32);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.sfs-route-map-user {
    fill: #2563eb;
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
    vector-effect: non-scaling-stroke;
}

.sfs-route-map-place-marker {
    position: absolute;
    z-index: 2;
    width: 30px;
    height: 38px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #7c2d12;
    cursor: pointer;
    transform: translate(-50%, -100%);
}

.sfs-route-map-place-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 5px;
    background: #f59e0b;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.42);
    color: #422006;
    font-size: 13px;
    transform: rotate(-45deg);
}

.sfs-route-map-place-pin i {
    transform: rotate(45deg);
}

.sfs-route-map-place-marker:hover .sfs-route-map-place-pin,
.sfs-route-map-place-marker:focus-visible .sfs-route-map-place-pin,
.sfs-route-map-place-marker.is-active .sfs-route-map-place-pin {
    background: #fbbf24;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.52);
}

.sfs-route-map-place-marker:focus-visible {
    outline: none;
}

.sfs-route-map-place-label {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 42px;
    width: max-content;
    max-width: 190px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.22);
    color: #17202a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px 7px;
    transform: translateX(-50%);
    white-space: normal;
}

.sfs-route-map-place-marker:hover .sfs-route-map-place-label,
.sfs-route-map-place-marker:focus-visible .sfs-route-map-place-label,
.sfs-route-map-place-marker.is-active .sfs-route-map-place-label {
    display: block;
}

.sfs-route-map-checkpoint-marker {
    position: absolute;
    z-index: 3;
    width: 34px;
    height: 42px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -100%);
}

.sfs-route-map-checkpoint-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 5px;
    background: #27806f;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.46);
    font-size: 14px;
    transform: rotate(-45deg);
}

.sfs-route-map-checkpoint-pin i { transform: rotate(45deg); }
.sfs-route-map-checkpoint-marker.is-service .sfs-route-map-checkpoint-pin { background: #2563eb; }
.sfs-route-map-checkpoint-marker.is-logistics .sfs-route-map-checkpoint-pin { background: #d97706; }
.sfs-route-map-checkpoint-marker.is-safety .sfs-route-map-checkpoint-pin { background: #dc2626; }
.sfs-route-map-checkpoint-marker:hover .sfs-route-map-checkpoint-pin,
.sfs-route-map-checkpoint-marker:focus-visible .sfs-route-map-checkpoint-pin,
.sfs-route-map-checkpoint-marker.is-active .sfs-route-map-checkpoint-pin {
    filter: brightness(1.12);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.56);
}

.sfs-route-map-checkpoint-marker:focus-visible { outline: none; }
.sfs-route-map-checkpoint-marker.is-draggable { cursor: grab; touch-action: none; }
.sfs-route-map-checkpoint-marker.is-draggable.is-dragging {
    z-index: 20;
    cursor: grabbing;
}

.sfs-route-map-checkpoint-label {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 46px;
    width: max-content;
    min-width: 150px;
    max-width: min(260px, 75vw);
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.24);
    color: #17202a;
    line-height: 1.3;
    padding: 7px 9px;
    text-align: left;
    transform: translateX(-50%);
    white-space: normal;
}

.sfs-route-map-checkpoint-label strong,
.sfs-route-map-checkpoint-label span,
.sfs-route-map-checkpoint-label small { display: block; }
.sfs-route-map-checkpoint-label strong { font-size: 12px; }
.sfs-route-map-checkpoint-label small { margin-top: 2px; color: #64748b; font-size: 10px; }
.sfs-route-map-checkpoint-label span { margin-top: 5px; color: #475569; font-size: 11px; font-weight: 500; }
.sfs-route-map-checkpoint-label .sfs-route-map-checkpoint-services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 7px;
}
.sfs-route-map-checkpoint-label .sfs-route-map-checkpoint-service {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 3px 6px;
    border-radius: 5px;
    background: #edf7f4;
    color: #276457;
    font-size: 10px;
    font-weight: 650;
}
.sfs-route-map-checkpoint-label .sfs-route-map-checkpoint-service > span { display: inline; margin: 0; color: inherit; font: inherit; }
.sfs-route-map-checkpoint-marker:hover .sfs-route-map-checkpoint-label,
.sfs-route-map-checkpoint-marker:focus-visible .sfs-route-map-checkpoint-label,
.sfs-route-map-checkpoint-marker.is-active .sfs-route-map-checkpoint-label { display: block; }

.sfs-route-map.is-checkpoint-editor { cursor: crosshair; }

.sfs-route-map-controls {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sfs-route-map-control {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.sfs-route-map-control:hover,
.sfs-route-map-control:focus-visible {
    background: #fff;
    color: #0f766e;
    outline: 2px solid rgba(15, 118, 110, 0.25);
    outline-offset: 1px;
}

.sfs-route-map-control:active {
    transform: translateY(1px);
}

.sfs-route-map-control:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.sfs-route-map-control.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.sfs-route-map-control.is-loading i {
    animation: sfs-route-control-spin 0.8s linear infinite;
}

.sfs-route-directions {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.sfs-route-directions-primary {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.sfs-route-directions-toggle {
    width: 24px;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 11px;
}

.sfs-route-directions.is-open .sfs-route-directions-primary,
.sfs-route-directions.is-open .sfs-route-directions-toggle {
    background: #fff;
    color: #0f766e;
}

.sfs-route-directions-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 12;
    display: none;
    min-width: 178px;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.sfs-route-directions.is-open .sfs-route-directions-menu {
    display: grid;
    gap: 2px;
}

.sfs-route-map-controls .sfs-route-directions-menu,
.sfs-route-map-dialog-actions .sfs-route-directions-menu {
    right: 0;
    left: auto;
}

.sfs-route-directions-option {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #17202a;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.sfs-route-directions-option i {
    width: 16px;
    color: #475467;
    text-align: center;
}

.sfs-route-directions-option:hover,
.sfs-route-directions-option:focus-visible {
    background: #ecfdf3;
    color: #0f766e;
    outline: none;
}

.sfs-route-directions-option:hover i,
.sfs-route-directions-option:focus-visible i {
    color: #0f766e;
}

@keyframes sfs-route-control-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sfs-route-map-attribution {
    position: absolute;
    right: 4px;
    bottom: 4px;
    z-index: 2;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.88);
    color: #1f2937;
    font-size: 10px;
    line-height: 1.2;
    padding: 2px 4px;
    text-decoration: none;
}

.sfs-route-map-attribution:hover {
    text-decoration: underline;
}

body.sfs-route-map-dialog-open {
    overflow: hidden;
}

.sfs-route-map-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-sizing: border-box;
}

.sfs-route-map-dialog-panel {
    position: relative;
    width: min(1160px, 100%);
    height: min(760px, 100%);
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.sfs-route-map-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.sfs-route-map-dialog-title {
    color: #17202a;
    font-size: 16px;
    font-weight: 720;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfs-route-map-dialog-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sfs-route-map-dialog-actions .sfs-route-map-control {
    box-shadow: none;
}

.sfs-route-map-dialog-body {
    position: relative;
    min-height: 0;
    background: #dce8ef;
}

.sfs-route-map-dialog-body .sfs-route-map {
    position: absolute;
    inset: 0;
}

.sfs-route-map-controls.is-dialog {
    top: 66px;
    left: 14px;
}

.sfs-route-map-info {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 3;
    max-width: calc(100% - 16px);
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #17202a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    font-size: 12px;
    font-weight: 680;
    line-height: 1.2;
    padding: 6px 8px;
    pointer-events: none;
}

.sfs-route-map-info[hidden] {
    display: none;
}

.sfs-route-map-info.is-dialog {
    left: 14px;
    bottom: 14px;
    font-size: 13px;
}

.sfs-route-elevation {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    background: #f8fafc;
}

.sfs-route-elevation-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sfs-route-elevation-bg {
    fill: #f8fafc;
}

.sfs-route-elevation-grid {
    fill: none;
    stroke: #d8e1eb;
    stroke-width: 1;
    stroke-dasharray: 5 7;
    vector-effect: non-scaling-stroke;
}

.sfs-route-elevation-distance-marker {
    fill: none;
    stroke: rgba(71, 84, 103, 0.3);
    stroke-width: 1;
    stroke-dasharray: 3 6;
    vector-effect: non-scaling-stroke;
}

.sfs-route-elevation-distance-label {
    fill: #475467;
    font-weight: 680;
    dominant-baseline: central;
}

.sfs-route-elevation-area {
    fill: rgba(37, 99, 235, 0.09);
}

.sfs-route-elevation-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sfs-route-elevation-line.is-flat {
    stroke: #94a3b8;
}

.sfs-route-elevation-line.is-climb-easy {
    stroke: #16a34a;
}

.sfs-route-elevation-line.is-climb-medium {
    stroke: #ca8a04;
}

.sfs-route-elevation-line.is-climb-hard {
    stroke: #ea580c;
}

.sfs-route-elevation-line.is-climb-steep {
    stroke: #dc2626;
}

.sfs-route-elevation-label-bg {
    fill: rgba(255, 255, 255, 0.92);
    stroke: rgba(15, 23, 42, 0.12);
}

.sfs-route-elevation-label {
    fill: #17202a;
    font-weight: 760;
    dominant-baseline: central;
}

.sfs-route-elevation-axis {
    fill: #475467;
    font-weight: 620;
}

.sfs-route-elevation-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 13px;
    font-weight: 650;
}

.sfs-route-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 82px;
    padding: 14px 16px 10px;
    box-sizing: border-box;
}

.sfs-route-card-title-block {
    display: grid;
    grid-template-rows: 46px 18px;
    min-width: 0;
    flex: 1 1 auto;
}

.sfs-route-card-title {
    margin: 0;
    color: #17202a;
    font-size: 18px;
    font-weight: 720;
    line-height: 1.25;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sfs-route-card-meta {
    align-self: end;
    margin-top: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfs-route-status {
    flex: 0 0 auto;
    max-width: 96px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #eef2ff;
    color: #3730a3;
}

.sfs-route-status.is-published {
    background: #ecfdf3;
    color: #067647;
}

.sfs-route-status.is-draft {
    background: #fff7ed;
    color: #b45309;
}

.sfs-route-status.is-archived {
    background: #f2f4f7;
    color: #475467;
}

.sfs-route-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.sfs-route-stat {
    padding: 10px 8px;
    text-align: center;
    border-right: 1px solid #eef2f6;
}

.sfs-route-stat:last-child {
    border-right: 0;
}

.sfs-route-stat.is-route-drive-time {
    background: #f0fdfa;
}

.sfs-route-stat.is-route-drive-time strong,
.sfs-route-stat.is-route-drive-time span {
    color: #0f766e;
}

.sfs-route-stat strong,
.sfs-route-stat span {
    display: block;
}

.sfs-route-stat strong {
    color: #17202a;
    font-size: 15px;
    line-height: 1.2;
}

.sfs-route-stat.is-elevation strong,
.sfs-route-stat.is-duration strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.sfs-route-stat.is-elevation strong i,
.sfs-route-stat.is-duration strong i {
    flex: 0 0 auto;
    color: #0f766e;
    font-size: 19px;
    font-weight: 900;
}

.sfs-route-stat span {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.sfs-route-access {
    display: grid;
    gap: 8px;
    margin: 12px 16px 0;
    border: 1px solid #dbe8e3;
    border-radius: 10px;
    background: #f8fbfa;
    padding: 10px 12px;
}

.sfs-route-access-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    color: #344054;
    font-size: 14px;
}

.sfs-route-access-location strong {
    color: #0f766e;
    font-weight: 800;
}

.sfs-route-start-directions {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: auto;
    border: 1px solid #a7d8c6;
    border-radius: 999px;
    background: #fff;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 11px;
    text-decoration: none;
    white-space: nowrap;
}

.sfs-route-start-directions:hover,
.sfs-route-start-directions:focus-visible {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #115e59;
    outline: none;
}

.sfs-route-travel-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0 0;
    border-top: 1px solid #d7ebe4;
    white-space: nowrap;
}

.sfs-route-travel-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #047857;
    font-size: 14px;
    font-weight: 400;
}

.sfs-route-travel-summary + .sfs-route-travel-summary {
    border-left: 1px solid #a7d8c6;
    padding-left: 14px;
}

.sfs-route-travel-summary.is-walking {
    color: #0f766e;
}

.sfs-route-travel-summary.is-waiting {
    color: #64748b;
    border-top-color: #e2e8f0;
}

.sfs-route-travel-summary.is-error {
    color: #9f1239;
    border-top-color: #fecdd3;
}

.sfs-route-estimate-note {
    color: #64748b;
    font-size: 11px;
    font-style: italic;
    line-height: 1.2;
}

.sfs-route-performance {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 16px 0;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    background: #fff1f2;
    padding: 10px 24px 10px 12px;
    white-space: nowrap;
}

.sfs-route-performance-title {
    margin-right: auto;
    color: #9f1239;
    font-size: 14px;
    font-weight: 850;
}

.sfs-route-performance-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-left: 1px solid #fda4af;
    color: #be123c;
    padding-left: 14px;
}

.sfs-route-performance-summary > i {
    width: 20px;
    flex: 0 0 auto;
    color: #be123c;
    font-size: 18px;
    text-align: center;
}

.sfs-route-performance-summary > span {
    color: #881337;
    font-size: 14px;
    font-weight: 800;
}

.sfs-route-description {
    margin: 12px 16px 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sfs-route-description.is-expandable {
    position: relative;
    padding-right: 22px;
    cursor: pointer;
}

.sfs-route-description.is-expandable::after {
    content: "\2304";
    position: absolute;
    right: 2px;
    bottom: 0;
    color: #3f7f74;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.sfs-route-description.is-expandable:hover {
    color: #344054;
}

.sfs-route-description.is-expandable:focus-visible {
    border-radius: 4px;
    outline: 2px solid #3f7f74;
    outline-offset: 3px;
}

.sfs-route-description.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.sfs-route-description.is-expanded::after {
    content: "\2303";
    top: 2px;
    bottom: auto;
}

.sfs-route-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 16px 16px;
}

.sfs-route-action {
    min-height: 34px;
    background: #2563eb;
    border-color: #2563eb;
}

.sfs-route-action-host {
    padding: 0 16px 16px;
}

.sfs-route-action.is-navigate {
    background: #0f766e;
    color: #fff;
}

.sfs-route-action.is-navigate:hover,
.sfs-route-action.is-navigate:focus-visible {
    background: #115e59;
}

.sfs-routes-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 28px;
    color: #667085;
    background: #f8fafc;
    text-align: center;
}

.sfs-routes-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.sfs-routes-page {
    min-width: 38px;
    padding: 0 10px;
    background: #fff;
    color: #0f766e;
}

.sfs-routes-page.is-current {
    background: #0f766e;
    color: #fff;
    cursor: default;
}

@media (max-width: 720px) {
    .sfs-routes {
        padding: 18px 12px 36px;
    }

    .sfs-routes-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sfs-routes-controls,
    .sfs-routes-search,
    .sfs-routes-select,
    .sfs-routes-add {
        width: 100%;
    }

    .sfs-route-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfs-route-performance {
        gap: 8px;
        padding: 9px 16px 9px 10px;
    }

    .sfs-route-performance-title,
    .sfs-route-performance-summary > span {
        font-size: 12px;
    }

    .sfs-route-performance-summary {
        gap: 5px;
        padding-left: 8px;
    }

    .sfs-route-performance-summary > i {
        width: 16px;
        font-size: 15px;
    }

    .sfs-route-travel-row {
        gap: 8px;
    }

    .sfs-route-travel-summary {
        gap: 5px;
        font-size: 12px;
    }

    .sfs-route-travel-summary + .sfs-route-travel-summary {
        padding-left: 8px;
    }

    .sfs-route-start-directions {
        width: 100%;
        margin: 6px 0 0;
    }
}
