:root {
    --ink: #172033;
    --muted: #667085;
    --line: #d8dee9;
    --primary: #1a73e8;
    --primary-dark: #1558b0;
    --primary-soft: #e8f0fe;
    --panel: #ffffff;
    --app-height: 100dvh;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: var(--app-height);
    margin: 0;
    overflow: hidden;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--ink);
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 0 14px;
}

button:hover {
    background: var(--primary-dark);
}

button.secondary {
    background: #eef2ff;
    color: var(--primary);
}

input {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    outline: none;
    padding: 0 12px;
    width: 100%;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.map-shell,
.map-canvas {
    height: var(--app-height);
    width: 100vw;
}

.map-canvas {
    inset: 0;
    position: fixed;
}

@supports (height: 100dvh) {
    :root {
        --app-height: 100dvh;
    }
}

.leaflet-container {
    background: #dce8ef;
    cursor: grab;
    font-family: Tahoma, Arial, sans-serif;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x pan-y;
    user-select: none;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    left: 0;
    position: absolute;
    top: 0;
}

.leaflet-pane {
    z-index: 400;
}

.leaflet-tile-pane {
    z-index: 200;
}

.leaflet-overlay-pane {
    z-index: 400;
}

.leaflet-shadow-pane {
    z-index: 500;
}

.leaflet-marker-pane {
    z-index: 600;
}

.leaflet-tooltip-pane {
    z-index: 650;
}

.leaflet-popup-pane {
    z-index: 700;
}

.leaflet-map-pane canvas {
    z-index: 100;
}

.leaflet-map-pane svg {
    z-index: 200;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    user-select: none;
}

.leaflet-tile {
    border: 0;
    height: 256px;
    max-width: none;
    padding: 0;
    pointer-events: none;
    -webkit-user-drag: none;
    width: 256px;
}

.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-interactive,
.leaflet-control {
    pointer-events: auto;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
    pointer-events: none;
    position: absolute;
    z-index: 1000;
}

.leaflet-control-container .leaflet-top {
    top: 0;
}

.leaflet-control-container .leaflet-bottom {
    bottom: 0;
}

.leaflet-control-container .leaflet-left {
    left: 0;
}

.leaflet-control-container .leaflet-right {
    right: 0;
}

.leaflet-control {
    clear: both;
    float: left;
    pointer-events: auto;
}

.leaflet-right .leaflet-control {
    float: right;
}

.leaflet-bottom .leaflet-control {
    margin-bottom: 18px;
}

.leaflet-right .leaflet-control {
    margin-right: 18px;
}

.location-center-button,
.route-fit-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 999px;
    bottom: 86px;
    box-shadow: 0 6px 18px rgba(32, 33, 36, 0.2);
    display: flex;
    height: 46px;
    justify-content: center;
    min-height: 46px;
    padding: 0;
    position: fixed;
    right: 18px;
    width: 46px;
    z-index: 1050;
}

.route-fit-button {
    bottom: 140px;
}

.route-fit-button[hidden] {
    display: none;
}

.location-center-button:hover,
.location-center-button:focus-visible,
.route-fit-button:hover,
.route-fit-button:focus-visible {
    background: #f8fafd;
    outline: none;
}

.location-center-button span {
    border: 2px solid var(--primary);
    border-radius: 999px;
    height: 20px;
    position: relative;
    width: 20px;
}

.location-center-button span::before,
.location-center-button span::after {
    background: var(--primary);
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.location-center-button span::before {
    height: 28px;
    width: 2px;
}

.location-center-button span::after {
    height: 2px;
    width: 28px;
}

.location-center-button:disabled {
    cursor: pointer;
    opacity: 1;
}

.map-layer-control {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 1100;
}

.destination-search-control {
    left: 18px;
    position: fixed;
    top: 18px;
    z-index: 1120;
}

.destination-search-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(32, 33, 36, 0.2);
    display: flex;
    height: 46px;
    justify-content: center;
    min-height: 46px;
    padding: 0;
    width: 46px;
}

.destination-search-toggle span {
    border: 3px solid var(--primary);
    border-radius: 999px;
    height: 17px;
    position: relative;
    width: 17px;
}

.destination-search-toggle span::after {
    background: var(--primary);
    border-radius: 999px;
    content: "";
    height: 3px;
    position: absolute;
    right: -9px;
    top: 12px;
    transform: rotate(45deg);
    width: 10px;
}

.destination-search-panel {
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(32, 33, 36, 0.22);
    display: none;
    margin-top: 8px;
    padding: 12px;
    width: min(430px, calc(100vw - 32px));
}

.destination-search-control.is-open .destination-search-panel {
    display: block;
}

.destination-search-field {
    align-items: center;
    background: #f1f3f4;
    border-radius: 999px;
    display: grid;
    gap: 10px;
    grid-template-columns: 22px 1fr;
    padding: 0 12px;
}

.destination-search-field > span {
    border: 2px solid #5f6368;
    border-radius: 999px;
    height: 15px;
    position: relative;
    width: 15px;
}

.destination-search-field > span::after {
    background: #5f6368;
    border-radius: 999px;
    content: "";
    height: 2px;
    position: absolute;
    right: -7px;
    top: 10px;
    transform: rotate(45deg);
    width: 8px;
}

.destination-search-panel input {
    background: transparent;
    border: 0;
    border-radius: 999px;
    height: 42px;
    min-height: 42px;
    padding: 0;
}

.destination-search-panel input:focus {
    box-shadow: none;
}

.destination-search-results {
    display: grid;
    gap: 6px;
    margin-top: 9px;
    max-height: 280px;
    overflow: auto;
}

.destination-search-results p {
    color: #5f6368;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 6px 4px;
}

.destination-search-results .destination-result {
    align-items: center;
    background: #f8fafd;
    border-radius: 12px;
    color: #202124;
    display: grid;
    gap: 11px;
    grid-template-columns: 34px 1fr 12px;
    height: auto;
    justify-items: start;
    min-height: 58px;
    padding: 9px 10px;
    text-align: left;
}

.destination-search-results .destination-result:hover,
.destination-search-results .destination-result:focus-visible {
    background: #e8f0fe;
    color: var(--primary);
    outline: none;
}

.destination-result-icon {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.08);
    height: 34px;
    position: relative;
    width: 34px;
}

.destination-result-icon::before {
    background: var(--primary);
    border-radius: 999px 999px 999px 4px;
    content: "";
    height: 16px;
    left: 9px;
    position: absolute;
    top: 7px;
    transform: rotate(-45deg);
    width: 16px;
}

.destination-result-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.destination-search-results strong,
.destination-search-results small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.destination-search-results strong {
    font-size: 0.86rem;
}

.destination-search-results small {
    color: #5f6368;
    font-size: 0.74rem;
    font-weight: 800;
}

.destination-result-chevron {
    align-self: center;
    border-right: 2px solid #9aa0a6;
    border-top: 2px solid #9aa0a6;
    height: 8px;
    justify-self: end;
    transform: rotate(45deg);
    width: 8px;
}

.map-layer-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(32, 33, 36, 0.2);
    display: flex;
    height: 46px;
    justify-content: center;
    min-height: 46px;
    padding: 0;
    width: 46px;
}

.map-layer-toggle span,
.map-layer-toggle span::before,
.map-layer-toggle span::after {
    border: 2px solid var(--primary);
    border-radius: 5px;
    height: 16px;
    position: absolute;
    transform: rotate(-24deg);
    width: 20px;
}

.map-layer-toggle span {
    position: relative;
}

.map-layer-toggle span::before,
.map-layer-toggle span::after {
    content: "";
    left: -2px;
}

.map-layer-toggle span::before {
    top: -7px;
}

.map-layer-toggle span::after {
    top: 3px;
}

.map-layer-menu {
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(32, 33, 36, 0.22);
    display: none;
    gap: 4px;
    margin-top: 8px;
    padding: 6px;
    width: 150px;
}

.map-layer-control.is-open .map-layer-menu {
    display: grid;
}

.map-layer-menu button {
    align-items: center;
    background: transparent;
    border-radius: 10px;
    color: #202124;
    display: grid;
    font-size: 0.84rem;
    font-weight: 800;
    grid-template-columns: 18px 1fr;
    height: 38px;
    justify-items: start;
    min-height: 38px;
    padding: 0 9px;
    text-align: left;
}

.map-layer-menu button:hover,
.map-layer-menu button:focus-visible,
.map-layer-menu button.is-active {
    background: #e8f0fe;
    color: var(--primary);
    outline: none;
}

.map-layer-menu button span {
    border: 2px solid currentColor;
    border-radius: 999px;
    height: 10px;
    width: 10px;
}

.map-layer-menu button.is-active span {
    background: currentColor;
}

.route-fit-button span {
    border: 2px solid var(--primary);
    border-radius: 6px;
    height: 22px;
    position: relative;
    width: 22px;
}

.route-fit-button span::before,
.route-fit-button span::after {
    border-color: var(--primary);
    border-style: solid;
    content: "";
    height: 7px;
    position: absolute;
    width: 7px;
}

.route-fit-button span::before {
    border-width: 2px 0 0 2px;
    left: -1px;
    top: -1px;
}

.route-fit-button span::after {
    border-width: 0 2px 2px 0;
    bottom: -1px;
    right: -1px;
}

.leaflet-popup {
    margin-bottom: 18px;
    position: absolute;
    text-align: center;
}

.leaflet-popup-content-wrapper {
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(32, 33, 36, 0.22);
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
}

.leaflet-popup-tip-container {
    height: 20px;
    left: 50%;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    width: 40px;
}

.leaflet-popup-tip {
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(32, 33, 36, 0.14);
    height: 17px;
    margin: -10px auto 0;
    padding: 1px;
    transform: rotate(45deg);
    width: 17px;
}

.leaflet-popup-close-button {
    color: #667085;
    font: 18px/24px Arial, sans-serif;
    height: 24px;
    position: absolute;
    right: 4px;
    text-align: center;
    text-decoration: none;
    top: 2px;
    width: 24px;
}

.gidora-pin-icon {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    justify-content: center;
}

.gidora-pin-icon span {
    align-items: center;
    border: 3px solid #ffffff;
    border-radius: 999px 999px 999px 4px;
    box-shadow: 0 10px 25px rgba(24, 32, 47, 0.28);
    color: #ffffff;
    display: flex;
    font-size: 0.95rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    transform: rotate(-45deg);
    width: 34px;
}

.gidora-pin-icon b {
    display: block;
    line-height: 1;
    transform: rotate(45deg);
}

.gidora-pin-icon-destination span {
    background: #dc2626;
}

.gidora-origin-icon {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    justify-content: center;
}

.gidora-origin-icon span {
    background: var(--primary);
    border: 4px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.36);
    display: block;
    height: 22px;
    position: relative;
    width: 22px;
}

.gidora-origin-icon span::after {
    border: 2px solid rgba(26, 115, 232, 0.22);
    border-radius: 999px;
    content: "";
    inset: -8px;
    position: absolute;
}

.gidora-start-icon {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    justify-content: center;
}

.gidora-start-icon span {
    background: #80868b;
    border: 4px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.28);
    display: block;
    height: 20px;
    width: 20px;
}

.gidora-place-icon {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    justify-content: center;
}

.gidora-place-icon span {
    background: #ffffff;
    border: 3px solid #fbbc04;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(32, 33, 36, 0.22);
    height: 16px;
    position: relative;
    width: 16px;
}

.gidora-place-icon span::after {
    background: #fbbc04;
    border-radius: 999px;
    content: "";
    height: 5px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
}

.gidora-place-icon-landmark span {
    border-color: #a142f4;
}

.gidora-place-icon-landmark span::after {
    background: #a142f4;
}

.gidora-place-icon-park span {
    border-color: #188038;
}

.gidora-place-icon-park span::after {
    background: #188038;
}

.destination-popup {
    display: grid;
    min-width: 172px;
    text-align: left;
}

.destination-popup-head {
    align-items: center;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 3px;
    padding: 10px 10px 9px 12px;
}

.destination-popup-head strong {
    color: #202124;
    font-size: 0.86rem;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.destination-popup-head small {
    color: #5f6368;
    direction: ltr;
    font-size: 0.7rem;
    grid-column: 1;
    line-height: 1.4;
}

.destination-popup.is-expanded {
    min-width: 232px;
}

.destination-popup.is-expanded .destination-popup-head {
    border-bottom: 1px solid #eef0f3;
}

.destination-popup-toggle {
    align-items: center;
    background: #f1f3f4;
    border-radius: 999px;
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 1;
    height: 28px;
    justify-content: center;
    min-height: 28px;
    padding: 0;
    width: 28px;
}

.destination-popup.is-expanded .destination-popup-toggle {
    grid-row: 1 / span 2;
}

.destination-popup-toggle::before {
    border-right: 2px solid #5f6368;
    border-top: 2px solid #5f6368;
    content: "";
    height: 7px;
    transform: rotate(135deg);
    width: 7px;
}

.destination-popup.is-expanded .destination-popup-toggle::before {
    transform: rotate(-45deg);
}

.destination-popup-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 5px;
}

.destination-popup-actions button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #202124;
    display: grid;
    gap: 9px;
    grid-template-columns: 30px 1fr 12px;
    height: 42px;
    justify-items: start;
    min-height: 42px;
    padding: 0 8px;
    position: relative;
    text-align: left;
    transition: background 140ms ease, color 140ms ease;
    width: 100%;
}

.destination-popup-actions button span:nth-child(2) {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.destination-popup-actions button:hover,
.destination-popup-actions button:focus-visible {
    background: #f1f3f4;
    color: var(--primary);
    outline: none;
}

.destination-action-icon {
    align-self: center;
    background: #f1f3f4;
    border: 0;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 28px;
    position: relative;
    width: 28px;
}

.destination-popup-actions button:hover .destination-action-icon,
.destination-popup-actions button:focus-visible .destination-action-icon {
    background: var(--primary-soft);
}

.destination-action-chevron {
    align-self: center;
    border-right: 2px solid #9aa0a6;
    border-top: 2px solid #9aa0a6;
    height: 8px;
    justify-self: end;
    transform: rotate(45deg);
    width: 8px;
}

.destination-popup-actions button:hover .destination-action-chevron,
.destination-popup-actions button:focus-visible .destination-action-chevron {
    border-color: var(--primary);
}

.destination-directions-icon::before {
    border-right: 3px solid var(--primary);
    border-top: 3px solid var(--primary);
    content: "";
    height: 10px;
    left: 7px;
    position: absolute;
    top: 5px;
    transform: rotate(45deg);
    width: 10px;
}

.destination-directions-icon::after {
    background: var(--primary);
    border-radius: 999px;
    content: "";
    height: 12px;
    left: 12px;
    position: absolute;
    top: 12px;
    width: 3px;
}

.destination-save-icon::before {
    border: 2px solid var(--primary);
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    content: "";
    height: 16px;
    left: 8px;
    position: absolute;
    top: 5px;
    width: 12px;
}

.destination-save-icon::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary);
    content: "";
    left: 9px;
    position: absolute;
    top: 17px;
}

.destination-share-icon {
    overflow: hidden;
}

.destination-share-icon::before {
    box-shadow: 12px -4px 0 var(--primary);
}

.destination-share-icon::after {
    background: transparent;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-radius: 0;
    height: 12px;
    left: 8px;
    top: 8px;
    transform: rotate(-24deg);
    width: 12px;
}

.destination-share-icon::before,
.destination-share-icon::after {
    content: "";
    position: absolute;
}

.destination-share-icon::before {
    background: var(--primary);
    border-radius: 999px;
    height: 8px;
    left: 5px;
    top: 14px;
    width: 8px;
}

.destination-label-icon::before {
    border: 2px solid var(--primary);
    border-radius: 4px;
    content: "";
    height: 12px;
    left: 5px;
    position: absolute;
    top: 9px;
    transform: rotate(-12deg);
    width: 16px;
}

.destination-label-icon::after {
    background: var(--primary);
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 8px;
    position: absolute;
    top: 12px;
    width: 4px;
}

.route-notice {
    background: #202124;
    border-radius: 999px;
    bottom: 172px;
    box-shadow: 0 8px 24px rgba(32, 33, 36, 0.24);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    left: 50%;
    max-width: calc(100vw - 32px);
    opacity: 0;
    padding: 11px 16px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 14px);
    transition: opacity 160ms ease, transform 160ms ease;
    white-space: nowrap;
    z-index: 1200;
}

.route-notice.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.route-summary {
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.9);
    border-radius: 18px 18px 0 0;
    bottom: 0;
    box-shadow: 0 -8px 28px rgba(32, 33, 36, 0.18);
    left: 50%;
    max-width: 560px;
    padding: 14px 14px 16px;
    position: fixed;
    transform: translateX(-50%);
    width: min(100vw, 560px);
    z-index: 1100;
}

.route-summary.is-collapsed {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 360px;
    padding: 0 14px 16px;
    width: min(100vw, 360px);
}

.route-summary-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 4px 12px;
}

.route-summary-head strong {
    color: #202124;
    font-size: 1rem;
    line-height: 1.3;
}

.route-summary-head > div {
    align-items: center;
    display: flex;
    gap: 8px;
}

.route-summary-head span {
    background: #e8f0fe;
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 9px;
}

.route-summary-minimize,
.route-summary-swap,
.route-summary-remove {
    align-items: center;
    background: #f1f3f4;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    min-height: 30px;
    padding: 0;
    position: relative;
    width: 30px;
}

.route-summary-minimize::before,
.route-summary-remove::before,
.route-summary-remove::after {
    background: #5f6368;
    border-radius: 999px;
    content: "";
    height: 2px;
    width: 12px;
}

.route-summary-swap::before,
.route-summary-swap::after {
    border-color: #5f6368;
    border-style: solid;
    content: "";
    height: 8px;
    position: absolute;
    width: 14px;
}

.route-summary-swap::before {
    border-width: 2px 2px 0 0;
    left: 7px;
    top: 8px;
}

.route-summary-swap::after {
    border-width: 0 0 2px 2px;
    bottom: 8px;
    right: 7px;
}

.route-summary-remove::before {
    transform: rotate(45deg);
}

.route-summary-remove::after {
    position: absolute;
    transform: rotate(-45deg);
}

.route-summary-minimize:hover,
.route-summary-minimize:focus-visible,
.route-summary-swap:hover,
.route-summary-swap:focus-visible,
.route-summary-remove:hover,
.route-summary-remove:focus-visible {
    background: #e8f0fe;
    outline: none;
}

.route-summary-minimize:hover::before,
.route-summary-minimize:focus-visible::before,
.route-summary-swap:hover::before,
.route-summary-swap:hover::after,
.route-summary-swap:focus-visible::before,
.route-summary-swap:focus-visible::after,
.route-summary-remove:hover::before,
.route-summary-remove:hover::after,
.route-summary-remove:focus-visible::before,
.route-summary-remove:focus-visible::after {
    background: var(--primary);
    border-color: var(--primary);
}

.route-summary-swap:hover::before,
.route-summary-swap:hover::after,
.route-summary-swap:focus-visible::before,
.route-summary-swap:focus-visible::after {
    background: transparent;
}

.route-summary-mini {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(32, 33, 36, 0.22);
    color: #202124;
    display: grid;
    gap: 10px;
    grid-template-columns: 28px auto auto auto;
    height: 54px;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px 0 12px;
    width: 100%;
}

.route-summary-mini:hover,
.route-summary-mini:focus-visible {
    background: #f8fafd;
    outline: none;
}

.route-summary-mini strong {
    font-size: 0.98rem;
    line-height: 1;
}

.route-summary-mini > span:nth-child(3) {
    color: #5f6368;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
}

.route-summary-mini small {
    color: #5f6368;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.route-tabs {
    background: #f1f3f4;
    border-radius: 14px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px;
}

.route-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 11px;
    color: #5f6368;
    display: grid;
    gap: 7px;
    grid-template-columns: 28px 1fr;
    height: 44px;
    min-height: 44px;
    min-width: 0;
    padding: 0 8px;
    text-align: left;
}

.route-tab:hover,
.route-tab:focus-visible {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    outline: none;
}

.route-tab.is-active {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(32, 33, 36, 0.12);
    color: #202124;
}

.route-tab span:last-child {
    font-size: 0.8rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-mode-icon {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.08);
    height: 28px;
    position: relative;
    width: 28px;
}

.route-detail {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    margin-top: 10px;
    padding: 14px;
}

.route-city-strip {
    align-items: center;
    color: #5f6368;
    display: grid;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 11px;
}

.route-city-strip span {
    background: #f8fafd;
    border-radius: 999px;
    min-width: 0;
    overflow: hidden;
    padding: 6px 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-detail-main {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding-bottom: 12px;
}

.route-detail-main strong {
    color: #202124;
    font-size: 1.35rem;
    line-height: 1.1;
}

.route-detail-main span {
    color: #5f6368;
    font-size: 0.86rem;
    font-weight: 800;
}

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

.route-detail dl div {
    background: #f8fafd;
    border-radius: 10px;
    min-width: 0;
    padding: 9px 10px;
}

.route-detail dt,
.route-detail dd {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-detail dt {
    color: #5f6368;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
}

.route-detail dd {
    color: #202124;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.5;
}

.route-city-list {
    border-top: 1px solid #eef0f3;
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
}

.route-city-list > strong {
    color: #202124;
    font-size: 0.78rem;
    line-height: 1.3;
}

.route-city-list p {
    color: #5f6368;
    font-size: 0.76rem;
    font-weight: 700;
    margin: 0;
}

.route-city-item {
    align-items: center;
    background: #f8fafd;
    border-radius: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    min-width: 0;
    padding: 8px 10px;
}

.route-city-item span,
.route-city-item small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-city-item span {
    color: #202124;
    font-size: 0.8rem;
    font-weight: 800;
}

.route-city-item small {
    color: #5f6368;
    direction: ltr;
    font-size: 0.75rem;
    font-weight: 800;
}

.route-walk-icon::before,
.route-walk-icon::after {
    background: var(--primary);
    border-radius: 999px;
    content: "";
    position: absolute;
}

.route-walk-icon::before {
    height: 6px;
    left: 11px;
    top: 6px;
    width: 6px;
}

.route-walk-icon::after {
    height: 12px;
    left: 12px;
    top: 13px;
    transform: rotate(18deg);
    width: 4px;
}

.route-car-icon::before {
    border: 2px solid var(--primary);
    border-radius: 5px;
    content: "";
    height: 10px;
    left: 5px;
    position: absolute;
    top: 9px;
    width: 18px;
}

.route-car-icon::after {
    background: var(--primary);
    border-radius: 999px;
    box-shadow: 13px 0 0 var(--primary);
    content: "";
    height: 4px;
    left: 7px;
    position: absolute;
    top: 20px;
    width: 4px;
}

.route-air-icon::before {
    border-bottom: 6px solid transparent;
    border-left: 17px solid var(--primary);
    border-top: 6px solid transparent;
    content: "";
    left: 7px;
    position: absolute;
    top: 8px;
    transform: rotate(-18deg);
}

.arrival-modal {
    align-items: center;
    background: rgba(32, 33, 36, 0.42);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1400;
}

.arrival-modal.is-visible {
    display: flex;
}

.arrival-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 54px rgba(32, 33, 36, 0.28);
    max-width: 420px;
    padding: 24px;
    text-align: center;
    width: min(100%, 420px);
}

.arrival-icon {
    background: #e6f4ea;
    border-radius: 999px;
    height: 58px;
    margin: 0 auto 14px;
    position: relative;
    width: 58px;
}

.arrival-icon::before {
    border-bottom: 4px solid #188038;
    border-right: 4px solid #188038;
    content: "";
    height: 24px;
    left: 22px;
    position: absolute;
    top: 13px;
    transform: rotate(45deg);
    width: 12px;
}

.arrival-card h2 {
    color: #202124;
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0 0 8px;
}

.arrival-card p {
    color: #5f6368;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.arrival-card dl {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 18px;
    text-align: left;
}

.arrival-card dl div {
    background: #f8fafd;
    border-radius: 12px;
    min-width: 0;
    padding: 10px;
}

.arrival-card dt,
.arrival-card dd {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrival-card dt {
    color: #5f6368;
    font-size: 0.72rem;
    font-weight: 800;
}

.arrival-card dd {
    color: #202124;
    font-size: 0.86rem;
    font-weight: 800;
    margin-top: 3px;
}

.arrival-card button {
    background: var(--primary);
    border-radius: 999px;
    height: 44px;
    min-height: 44px;
    width: 100%;
}

.destination-setup-modal {
    bottom: 84px;
    display: none;
    left: 18px;
    position: fixed;
    z-index: 1250;
}

.destination-setup-modal.is-visible {
    display: block;
}

.destination-setup-pin {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(32, 33, 36, 0.2);
    display: flex;
    height: 48px;
    justify-content: center;
    min-height: 48px;
    padding: 0;
    width: 48px;
}

.destination-setup-pin span {
    background: var(--primary);
    border-radius: 999px 999px 999px 4px;
    height: 20px;
    position: relative;
    transform: rotate(-45deg);
    width: 20px;
}

.destination-setup-pin span::after {
    background: #ffffff;
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
}

.coordinate-modal {
    align-items: flex-end;
    background: rgba(32, 33, 36, 0.18);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 1300;
}

.coordinate-modal.is-visible {
    display: flex;
}

.coordinate-card {
    background: #ffffff;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(32, 33, 36, 0.26);
    max-width: 420px;
    padding: 18px;
    position: relative;
    width: min(100%, 420px);
}

.coordinate-close {
    background: #f1f3f4;
    border-radius: 999px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 30px;
}

.coordinate-close::before,
.coordinate-close::after {
    background: #5f6368;
    border-radius: 999px;
    content: "";
    height: 2px;
    left: 9px;
    position: absolute;
    top: 14px;
    width: 12px;
}

.coordinate-close::before {
    transform: rotate(45deg);
}

.coordinate-close::after {
    transform: rotate(-45deg);
}

.coordinate-card > strong {
    color: #202124;
    display: block;
    font-size: 1rem;
    line-height: 1.3;
    padding-right: 36px;
}

.coordinate-address {
    color: #5f6368;
    display: -webkit-box;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 8px 36px 0 0;
    max-height: 3.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.coordinate-values {
    align-items: center;
    background: #f8fafd;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 34px;
    margin: 14px 0;
    padding: 12px;
}

.coordinate-values span {
    color: #202124;
    direction: ltr;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coordinate-values button {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.08);
    height: 34px;
    min-height: 34px;
    padding: 0;
    position: relative;
    width: 34px;
}

.coordinate-values button::before,
.coordinate-values button::after {
    border: 2px solid var(--primary);
    border-radius: 4px;
    content: "";
    height: 13px;
    position: absolute;
    width: 10px;
}

.coordinate-values button::before {
    left: 9px;
    top: 11px;
}

.coordinate-values button::after {
    background: #ffffff;
    left: 13px;
    top: 7px;
}

.coordinate-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, 44px);
    justify-content: center;
}

.coordinate-actions button {
    background: #f1f3f4;
    border-radius: 999px;
    color: #202124;
    height: 42px;
    min-height: 42px;
    padding: 0 10px;
}

.coordinate-actions .coordinate-share-icon {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 44px;
}

.coordinate-share-icon::before,
.coordinate-share-icon::after {
    content: "";
    position: absolute;
}

.coordinate-link-copy-icon {
    background: #eef2ff;
}

.coordinate-link-copy-icon::before,
.coordinate-link-copy-icon::after {
    border: 2px solid var(--primary);
    border-radius: 4px;
    height: 13px;
    width: 10px;
}

.coordinate-link-copy-icon::before {
    left: 14px;
    top: 16px;
}

.coordinate-link-copy-icon::after {
    background: #eef2ff;
    left: 18px;
    top: 12px;
}

.coordinate-whatsapp-icon {
    background: #e7f8ee;
}

.coordinate-whatsapp-icon::before {
    border: 2px solid #128c4a;
    border-radius: 999px;
    height: 20px;
    width: 20px;
}

.coordinate-whatsapp-icon::after {
    border-bottom: 5px solid transparent;
    border-left: 6px solid #128c4a;
    bottom: 9px;
    height: 0;
    left: 13px;
    transform: rotate(18deg);
    width: 0;
}

.coordinate-telegram-icon {
    background: #eaf6ff;
}

.coordinate-telegram-icon::before {
    border-bottom: 9px solid transparent;
    border-left: 24px solid #229ed9;
    border-top: 9px solid transparent;
    height: 0;
    left: 11px;
    top: 13px;
    transform: rotate(-18deg);
    width: 0;
}

.coordinate-telegram-icon::after {
    border-bottom: 2px solid #ffffff;
    height: 8px;
    left: 20px;
    top: 17px;
    transform: rotate(-28deg);
    width: 9px;
}

.coordinate-turbo-icon {
    background: #fff3e6;
}

.coordinate-turbo-icon::before {
    background: #ff7a00;
    border-radius: 999px 999px 999px 4px;
    height: 20px;
    left: 12px;
    top: 11px;
    transform: rotate(-45deg);
    width: 20px;
}

.coordinate-turbo-icon::after {
    border-bottom: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    height: 7px;
    left: 19px;
    top: 17px;
    transform: rotate(-45deg);
    width: 7px;
}

.coordinate-native-share-icon {
    background: #eef2ff;
}

.coordinate-native-share-icon::before {
    border-right: 3px solid var(--primary);
    border-top: 3px solid var(--primary);
    height: 12px;
    left: 15px;
    top: 10px;
    transform: rotate(-45deg);
    width: 12px;
}

.coordinate-native-share-icon::after {
    background: var(--primary);
    border-radius: 999px;
    height: 14px;
    left: 20px;
    top: 18px;
    width: 3px;
}

.coordinate-actions button:hover,
.coordinate-actions button:focus-visible {
    background: #e8f0fe;
    color: var(--primary);
    outline: none;
}

@media (max-width: 520px) {
    .route-summary {
        padding: 12px 12px 14px;
    }

    .route-tabs {
        grid-template-columns: 1fr;
    }

    .route-tab {
        grid-template-columns: 30px 1fr;
    }

    .route-notice {
        bottom: 370px;
    }

    .arrival-card dl {
        grid-template-columns: 1fr;
    }

    .coordinate-actions {
        grid-template-columns: repeat(5, 44px);
    }
}
