.tt-home-route-map {
    position: relative;
    min-height: clamp(430px, 36vw, 560px);
    overflow: hidden;
    margin-top: 32px;
    border: 0;
    border-radius: 22px;
    background: #15231f;
    box-shadow: none;
    isolation: isolate;
}

.tt-home-route-map__canvas,
.tt-home-route-map__shade,
.tt-home-route-map__loading {
    position: absolute;
    inset: 0;
}

.tt-home-route-map__canvas {
    z-index: 0;
    cursor: grab;
}

.tt-home-route-map__canvas:active {
    cursor: grabbing;
}

.tt-home-route-map__canvas .maplibregl-canvas {
    outline: none;
}

.tt-home-route-map__canvas .maplibregl-ctrl-top-right {
    top: 84px;
    right: 14px;
}

.tt-home-route-map__canvas .maplibregl-ctrl-group {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 15px;
    background: rgba(11, 20, 22, .78);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
}

.tt-home-route-map__canvas .maplibregl-ctrl-group button {
    width: 40px;
    height: 40px;
}

.tt-home-route-map__canvas .maplibregl-ctrl-group button + button {
    border-top-color: rgba(255, 255, 255, .14);
}

.tt-home-route-map__canvas .maplibregl-ctrl-icon {
    filter: brightness(0) invert(1);
}

.tt-home-route-map__shade {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 12, 14, .3), transparent 27%, transparent 68%, rgba(4, 12, 14, .32)),
        linear-gradient(90deg, rgba(4, 12, 14, .18), transparent 35%, transparent 68%, rgba(4, 12, 14, .12));
}

.tt-home-route-map__search {
    position: absolute;
    z-index: 8;
    top: 18px;
    left: 18px;
    display: grid;
    width: min(620px, calc(100% - 104px));
    min-height: 54px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 18px;
    background: rgba(12, 22, 24, .78);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .26);
    padding: 5px;
    backdrop-filter: blur(18px);
}

.tt-home-route-map__search-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 103, 42, .14);
}

.tt-home-route-map__search-icon img {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
}

.tt-home-route-map__search input {
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 12px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 780;
}

.tt-home-route-map__search input::placeholder {
    color: rgba(255, 255, 255, .58);
}

.tt-home-route-map__search button {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    background: #ff672a;
    box-shadow: 0 9px 22px rgba(255, 81, 24, .28);
    padding: 0 17px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.tt-home-route-map__search button:hover,
.tt-home-route-map__search button:focus-visible {
    background: #ff7740;
    transform: translateY(-1px);
}

.tt-home-route-map__search.is-loading button {
    pointer-events: none;
    opacity: .7;
}

.tt-home-route-map__location {
    position: absolute;
    z-index: 6;
    top: 142px;
    left: 18px;
    display: flex;
    max-width: 330px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 15px;
    background: rgba(9, 18, 20, .72);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    padding: 9px 13px 9px 9px;
    color: #fff;
    backdrop-filter: blur(16px);
}

.tt-home-route-map__basemap {
    position: absolute;
    z-index: 7;
    top: 88px;
    left: 18px;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(9, 18, 20, .74);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    padding: 4px;
    backdrop-filter: blur(16px);
}

.tt-home-route-map__basemap button {
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 0 13px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tt-home-route-map__basemap button:hover,
.tt-home-route-map__basemap button:focus-visible {
    color: #fff;
}

.tt-home-route-map__basemap button.is-active {
    background: #ff672a;
    box-shadow: 0 7px 18px rgba(255, 81, 24, .28);
    color: #fff;
}

.tt-home-route-map__location > img {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #ff672a;
    padding: 7px;
    filter: brightness(0) invert(1);
}

.tt-home-route-map__location span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.tt-home-route-map__location strong,
.tt-home-route-map__location small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-home-route-map__location strong {
    font-size: 13px;
    font-weight: 900;
}

.tt-home-route-map__location small {
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 750;
}

.tt-home-route-map__card {
    position: absolute;
    z-index: 10;
    top: 104px;
    right: 70px;
    display: grid;
    width: min(560px, calc(100% - 110px));
    min-height: 238px;
    grid-template-columns: minmax(190px, 42%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(0, 0, 0, .34);
    animation: tt-home-route-card-in .25s ease both;
}

.tt-home-route-map__card.has-no-media {
    grid-template-columns: 1fr;
}

.tt-home-route-map__card[hidden],
.tt-home-route-map__location[hidden],
.tt-home-route-map__country[hidden],
.tt-home-route-map__reset[hidden],
.tt-home-route-map__notice[hidden] {
    display: none;
}

@keyframes tt-home-route-card-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.tt-home-route-map__card-media {
    min-height: 238px;
    background: #dce6df;
}

.tt-home-route-map__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-home-route-map__card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 18px;
}

.tt-home-route-map__card-close {
    position: absolute;
    z-index: 2;
    top: 11px;
    right: 11px;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f5f7;
    cursor: pointer;
}

.tt-home-route-map__card-close img {
    width: 14px;
    height: 14px;
    opacity: .68;
}

.tt-home-route-map__card-kind {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    gap: 6px;
    padding-right: 35px;
    color: #ff672a;
    font-size: 10px;
    font-weight: 900;
}

.tt-home-route-map__card-kind img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff1ea;
    padding: 4px;
}

.tt-home-route-map__card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 8px;
    color: #17202c;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tt-home-route-map__card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #667284;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tt-home-route-map__card-facts {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin: auto 0 14px;
    padding-top: 12px;
}

.tt-home-route-map__card-facts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4e5a69;
    font-size: 10px;
}

.tt-home-route-map__card-facts img {
    width: 14px;
    height: 14px;
    opacity: .72;
}

.tt-home-route-map__card-facts b {
    font-weight: 850;
}

.tt-home-route-map__card-copy > a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 12px;
    background: #ff672a;
    box-shadow: 0 9px 20px rgba(255, 81, 24, .22);
    padding: 0 17px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.tt-home-route-map__country,
.tt-home-route-map__reset {
    position: absolute;
    z-index: 7;
    bottom: 18px;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(9, 18, 20, .78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
    color: #fff;
    backdrop-filter: blur(16px);
    cursor: pointer;
}

.tt-home-route-map__country {
    left: 18px;
    gap: 9px;
    border-radius: 15px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 900;
}

.tt-home-route-map__reset {
    right: 18px;
    width: 46px;
    border-radius: 15px;
}

.tt-home-route-map__country img,
.tt-home-route-map__reset img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.tt-home-route-map__country:hover,
.tt-home-route-map__country:focus-visible,
.tt-home-route-map__reset:hover,
.tt-home-route-map__reset:focus-visible {
    border-color: rgba(255, 112, 55, .9);
    background: rgba(255, 89, 29, .9);
}

.tt-home-route-map__loading {
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: linear-gradient(145deg, #1f302d, #0e1c21);
    color: #fff;
    transition: opacity .32s ease, visibility .32s ease;
}

.tt-home-route-map__loading.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.tt-home-route-map__loading span {
    width: 23px;
    height: 23px;
    border: 3px solid rgba(255, 255, 255, .24);
    border-top-color: #ff672a;
    border-radius: 50%;
    animation: tt-home-route-spin .8s linear infinite;
}

.tt-home-route-map__loading strong {
    font-size: 12px;
    font-weight: 900;
}

@keyframes tt-home-route-spin {
    to { transform: rotate(360deg); }
}

.tt-home-route-map__notice {
    position: absolute;
    z-index: 9;
    right: 76px;
    bottom: 18px;
    max-width: min(390px, calc(100% - 150px));
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 13px;
    background: rgba(9, 18, 20, .82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    padding: 11px 14px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(16px);
}

.tt-home-route-map__notice.is-error {
    border-color: rgba(255, 115, 77, .72);
    background: rgba(80, 23, 15, .88);
}

.tt-home-route-map__attribution {
    position: absolute;
    z-index: 7;
    right: 7px;
    bottom: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .78);
    padding: 2px 5px;
    color: #313b42;
    font-size: 7px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .tt-home-route-map__card {
        right: 64px;
        width: min(500px, calc(100% - 92px));
    }
}

@media (max-width: 760px) {
    .tt-home-route-map {
        min-height: 620px;
        margin-top: 24px;
        border-radius: 18px;
    }

    .tt-home-route-map__search {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
        grid-template-columns: 38px minmax(0, 1fr) auto;
        min-height: 50px;
        border-radius: 16px;
    }

    .tt-home-route-map__search-icon {
        width: 38px;
        height: 38px;
    }

    .tt-home-route-map__search input {
        height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }

    .tt-home-route-map__search button {
        min-height: 38px;
        padding: 0 11px;
        font-size: 10px;
    }

    .tt-home-route-map__basemap {
        top: 74px;
        left: 12px;
    }

    .tt-home-route-map__basemap button {
        padding: 0 10px;
    }

    .tt-home-route-map__location {
        top: 124px;
        left: 12px;
        max-width: calc(100% - 76px);
    }

    .tt-home-route-map__canvas .maplibregl-ctrl-top-right {
        top: 68px;
        right: 10px;
    }

    .tt-home-route-map__canvas .maplibregl-ctrl-group button {
        width: 38px;
        height: 38px;
    }

    .tt-home-route-map__card {
        top: auto;
        right: 12px;
        bottom: 72px;
        left: 12px;
        width: auto;
        min-height: 0;
        grid-template-columns: 112px minmax(0, 1fr);
        border-radius: 17px;
    }

    .tt-home-route-map__card-media {
        min-height: 180px;
    }

    .tt-home-route-map__card-copy {
        padding: 15px 14px 13px;
    }

    .tt-home-route-map__card h3 {
        margin-top: 5px;
        font-size: 15px;
    }

    .tt-home-route-map__card p {
        -webkit-line-clamp: 2;
    }

    .tt-home-route-map__card-facts {
        gap: 6px 9px;
        margin-bottom: 9px;
    }

    .tt-home-route-map__card-facts span:nth-child(2) {
        display: none;
    }

    .tt-home-route-map__card-copy > a {
        min-height: 34px;
    }

    .tt-home-route-map__country {
        bottom: 13px;
        left: 12px;
        max-width: calc(100% - 78px);
        min-height: 44px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tt-home-route-map__reset {
        right: 12px;
        bottom: 13px;
        width: 44px;
        min-height: 44px;
    }

    .tt-home-route-map__notice {
        right: 12px;
        bottom: 65px;
        left: 12px;
        max-width: none;
    }
}

@media (max-width: 470px) {
    .tt-home-route-map__search button {
        width: 42px;
        overflow: hidden;
        padding: 0;
        color: transparent;
    }

    .tt-home-route-map__search button::after {
        color: #fff;
        content: "→";
        font-size: 18px;
    }

    .tt-home-route-map__card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .tt-home-route-map__card p,
    .tt-home-route-map__card-facts span:nth-child(3) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-home-route-map__loading span,
    .tt-home-route-map__card {
        animation: none;
    }
}
