/* Route planner surfaces. Keep map, station sheets and advertising independent. */
.ff-route {
    --route-ink: #163c36;
    --route-accent: #086b59;
    --route-paper: #f4f7f5;
    --route-line: #dce5df;
    --route-surface: #fff;
}
.dark .ff-route {
    --route-ink: #d6ede4;
    --route-accent: #63d7b5;
    --route-paper: #101b1c;
    --route-line: #2c4040;
    --route-surface: #172527;
}
.ff-route .ff-route__header {
    background: var(--route-surface);
    border-color: var(--route-line);
    border-top: 3px solid var(--route-accent);
}
.ff-route__header h2 {
    color: var(--route-ink);
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.035em;
    font-weight: 750;
}
.ff-route .ff-route__body { background: var(--route-paper); overscroll-behavior: contain; }
.dark .ff-route .text-gray-500, .dark .ff-route .text-gray-400 { color: #a8bbb7 !important; }
.ff-route .ff-route__journey {
    background: var(--route-surface);
    border: 1px solid var(--route-line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 6px 24px rgb(16 53 41 / 4%);
}
.ff-route__journey h2, .ff-route__journey h3 { letter-spacing: -.025em; }
.ff-route .ff-route__locations { border-color: var(--route-line); border-radius: 16px; }
.ff-route__locations > div, .ff-route__locations > template + div { border-color: var(--route-line); }
.ff-route__locations .space-y-3 { gap: 0; }
.ff-route__locations p + p { margin-top: 4px; }
.ff-route__locations .sm\:flex-row { flex-direction: column; }
.ff-route__locations .sm\:flex-row > .flex { flex-wrap: wrap; }
.ff-route__locations > div { padding-top: 12px; padding-bottom: 12px; }
.ff-route input[type="text"], .ff-route select { font-size: 16px; min-height: 46px; }
.ff-route input[type="text"] { border-radius: 10px; }
.ff-route button { touch-action: manipulation; }
.ff-route button:focus-visible, .ff-route input:focus-visible, .ff-route select:focus-visible {
    outline: 3px solid var(--route-accent);
    outline-offset: 3px;
}
.ff-route button[aria-label="Close route planner"] { min-width: 44px; min-height: 44px; flex-shrink: 0; }
.ff-route .ff-route__primary {
    background: #096b57;
    border-radius: 14px;
    min-height: 52px;
    box-shadow: 0 4px 12px rgb(9 107 87 / 16%);
    transition: background .15s ease, box-shadow .15s ease;
}
.ff-route .ff-route__primary:hover:not(:disabled) { background: #075443; box-shadow: 0 6px 16px rgb(9 107 87 / 22%); }
.ff-route .ff-route__primary:active { transform: none; }
.ff-route .ff-route__primary:disabled { box-shadow: none; }
.ff-route .ff-route__map-bar { background: var(--route-surface); border-color: var(--route-line); }
.ff-route__map-bar button { min-height: 44px; flex-shrink: 0; }
.ff-route__map-bar p { font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
    .ff-route__header h2 { font-size: 22px; }
    .ff-route .ff-route__journey { padding: 16px; }
    .ff-route__locations > div { padding-left: 12px; padding-right: 12px; }
    .ff-route__body { padding-bottom: 20px; }
    .ff-route__map-bar > div:last-child > div:first-child { gap: 8px; }
    .ff-route__map-bar > div:last-child > div:first-child > div { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ff-route, .ff-route * { animation: none !important; transition: none !important; }
}

.ff-route__pro { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; border-radius: 4px; padding: 1px 4px; }
