@font-face {
    font-family: 'T2 Rooftop';
    src: url('../fonts/t2-Rooftop-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'T2 Rooftop';
    src: url('../fonts/t2-Rooftop-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'T2 Halvar Breit';
    src: url('../fonts/T2HalvarBreit-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'T2 Halvar Breit', sans-serif;
    font-weight: 800;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

body {
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.t2-routes-page{
    max-width: 460px;
    margin: 0 auto;
}

.t2-hero__logo{
    margin-bottom: 12px;
}

.t2-hero{
    background: #000;
    color: #fff;
    padding: 12px 16px 34px 16px;
}
.t2-hero__banner{
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.t2-hero__image {
    display: block;
    width: 100%;
}

.t2-hero__content {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: block;
    padding: 16px;
    border-radius: 16px;
    color: #000;
    background-color: #fff;
}
.t2-hero__title{
    font-family: 'T2 Halvar Breit', serif;
    font-style: normal;
    font-weight: 800;
    font-size: 22px;
    line-height: 100%;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 12px;
}

.t2-hero__text{
    font-family: 'T2 Rooftop', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
}

.t2-routes{
    border-radius: 20px;
    overflow: hidden;
    padding: 16px;
    margin-top: -18px;
    background-color: #fff;
}

.t2-routes__title{
    letter-spacing: -0.03em;
    text-transform: uppercase;
    font-family: 'T2 Halvar Breit', serif;
    font-size: 18px;
    line-height: 20px;
    margin: 0 0 12px;
}

.t2-route-card{
    background-color: #F2F2F2;
    border-radius: 16px;
}

.t2-route-card{
    display: flex;
    padding: 8px 10px 8px 16px;
    justify-content: space-between;
}

.t2-route-card:not(:last-child){
    margin-bottom: 8px;
}

.t2-route-card__content{
    display: flex;
    flex-direction: column;
}

.t2-route-card__meta{
    display: flex;
    font-family: 'T2 Rooftop', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #696D75;
}

.t2-route-card__title{
    font-family: 'T2 Halvar Breit', serif;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
    color: #000;
    margin-top: 8px;
}

.t2-route-card__distance{
    font-family: 'T2 Halvar Breit', serif;
    font-size: 22px;
    line-height: 24px;
    text-transform: uppercase;
    color: #000000;
    font-weight: bold;
    margin: 16px 0;
}

.t2-route-card__map img{
    width: 115px;
    height: 104px;
    max-width: none;
}

.t2-route-card__meta-time{
    margin-right: 16px;
}

.t2-route-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.t2-route-sheet[hidden] {
    display: none;
}

.t2-route-sheet__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.t2-route-sheet__panel {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 460px;
    height: 100dvh;
    overflow-y: auto;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 0;
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.28s ease;
    overscroll-behavior: contain;
}

.t2-route-sheet.is-open .t2-route-sheet__panel {
    transform: translateX(-50%) translateY(0);
}

.t2-route-sheet__close {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 0 -32px auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.t2-route-sheet__close::before,
.t2-route-sheet__close::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 15px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.t2-route-sheet__close::before {
    transform: rotate(45deg);
}

.t2-route-sheet__close::after {
    transform: rotate(-45deg);
}
.t2-route-sheet__title{
    font-family: 'T2 Halvar breit', serif;
    font-size: 22px;
    line-height: 24px;
    text-transform: uppercase;
    color: #000;
    margin-top: 20px;
    margin-bottom: 10px;
}

.t2-route-sheet__summary{
    display: flex;
    font-family: 'T2 Halvar breit', serif;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
    color: #000;
}

.t2-route-sheet__summary-item{
    display: flex;
    align-items: center;
}

.t2-route-sheet__summary-item-icon{
    margin-right: 10px;
}

.t2-route-sheet__summary-item:not(:last-child){
    margin-right: 16px;
}

.t2-route-sheet__map-button img{
    margin-right: 8px;
}

.t2-route-sheet__image {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.t2-route-sheet__map-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: 24px 0 24px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    font-family: 'T2 Halvar Breit', serif;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    text-decoration: none;
}

.t2-route-sheet__timeline {
    position: relative;
    padding-left: 42px;
}

.t2-route-sheet-point::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: -18px;
    left: -31px;
    width: 3px;
    background: #ff2f93;
}

.t2-route-sheet-point:last-child::before {
    display: none;
}

.t2-route-sheet-point {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    column-gap: 12px;
    min-height: 76px;
    padding-bottom: 18px;
}

.t2-route-sheet-point__marker {
    position: absolute;
    top: 0;
    left: -42px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff2f93;
}

.t2-route-sheet-point--office .t2-route-sheet-point__marker {
    left: -42px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
}

.t2-route-sheet-point--office .t2-route-sheet-point__marker::before {
    content: "";
    position: absolute;
    inset: 4px;
    background: url("/img/t2-logo.svg") center / contain no-repeat;
}

.t2-route-sheet-point__body {
    min-width: 0;
}

.t2-route-sheet-point__title {
    margin: 0 0 4px;
    font-family: 'T2 Halvar Breit', serif;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
    color: #000;
}

.t2-route-sheet-point__text {
    margin: 0;
    font-family: 'T2 Rooftop', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #696d75;
}

.t2-route-sheet-point__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 2px;
    font-family: 'T2 Rooftop', serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    color: #696d75;
    white-space: nowrap;
}

.t2-route-sheet-point__meta span:first-child {
    color: #000;
}

.t2-route-sheet-point--office {
    grid-template-columns: minmax(0, 1fr) 54px;
}

.t2-route-sheet-point:not(:has(.t2-route-sheet-point__meta)) {
    grid-template-columns: minmax(0, 1fr);
}

.t2-route-sheet-point:not(:has(.t2-route-sheet-point__meta)) .t2-route-sheet-point__body {
    grid-column: 1 / -1;
}

body.t2-route-sheet-open {
    overflow: hidden;
}

