/* Home: "what can I do here" orientation block + mobile hero fit for the tab bar. */

.tt-home-tasks {
    padding-top: 32px;
}

.tt-home-tasks__head {
    margin-bottom: 18px;
}

.tt-home-tasks__head h2 {
    margin: 0;
    color: var(--tt-home-ink);
    font-size: clamp(22px, 5.6vw, 28px);
    font-weight: 900;
    line-height: 1.2;
}

.tt-home-tasks__head p {
    max-width: 52ch;
    margin: 6px 0 0;
    color: var(--tt-home-muted);
    font-size: 14px;
    line-height: 1.45;
}

.tt-home-tasks__list {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tt-home-tasks__list > li {
    position: relative;
    min-width: 0;
}

/* Dashed "trail" joining the step icons on the stacked mobile layout. */
.tt-home-tasks__list > li:not(:last-child)::after {
    position: absolute;
    top: 100%;
    left: 43px;
    height: 20px;
    border-left: 2px dashed rgba(255, 103, 29, .42);
    content: "";
}

.tt-task {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 16px 16px 16px 16px;
    border: 1px solid var(--tt-home-border);
    border-radius: 20px;
    color: var(--tt-home-ink);
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 45, .06);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    -webkit-tap-highlight-color: transparent;
}

.tt-task:hover,
.tt-task:focus-visible {
    border-color: #ffb78f;
    box-shadow: 0 16px 34px rgba(255, 103, 29, .16);
    transform: translateY(-2px);
}

.tt-task:focus-visible {
    outline: 3px solid rgba(255, 103, 29, .3);
    outline-offset: 3px;
}

.tt-task:active {
    transform: scale(.985);
}

.tt-task__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #ff7f3f 0%, #ff5a14 100%);
    box-shadow: 0 8px 18px rgba(255, 90, 20, .28);
}

.tt-task__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tt-task__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tt-task__step {
    color: var(--tt-home-orange-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tt-task__copy strong {
    font-size: 17px;
    font-weight: 850;
    line-height: 1.25;
}

.tt-task__copy > span {
    color: var(--tt-home-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.tt-task__go {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #98a2b3;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease, stroke .22s ease;
}

.tt-task:hover .tt-task__go,
.tt-task:focus-visible .tt-task__go {
    stroke: var(--tt-home-orange);
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .tt-home-tasks {
        padding-top: 44px;
    }

    .tt-home-tasks__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .tt-home-tasks__list > li:not(:last-child)::after {
        display: none;
    }

    .tt-task {
        grid-template-columns: 54px minmax(0, 1fr) 20px;
        min-height: 112px;
    }
}

/* The fixed tab bar owns the bottom of the first screen on phones: keep the hero's own controls above it. */
@media (max-width: 767px) {
    .tt-home-tasks {
        margin-inline: 16px;
    }

    body.page-home-redesign.has-tt-tabbar .tt-home-hero {
        min-height: calc(100svh - 96px - env(safe-area-inset-bottom, 0px));
    }
}

html[data-theme="dark"] .tt-task {
    border-color: var(--tt-home-border);
    background: linear-gradient(180deg, #111d2c 0%, #0d1827 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .tt-task:hover,
html[data-theme="dark"] .tt-task:focus-visible {
    border-color: rgba(255, 122, 56, .55);
    box-shadow: 0 18px 44px rgba(255, 90, 20, .16);
}

html[data-theme="dark"] .tt-task__step {
    color: #ff9460;
}

html[data-theme="dark"] .tt-task__go {
    stroke: #6f8199;
}

@media (prefers-reduced-motion: reduce) {
    .tt-task,
    .tt-task__go {
        transition: none;
    }
}

/* "Where are you travelling from?": the guest's first decision, right above the route cards. */
.tt-home-origin {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: -6px 0 18px;
}

.tt-home-origin__label {
    color: var(--tt-home-muted);
    font-size: 13px;
    font-weight: 700;
}

.tt-home-origin__chips {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 2px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.tt-home-origin__chips::-webkit-scrollbar {
    display: none;
}

.tt-home-origin__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--tt-home-border);
    border-radius: 999px;
    color: var(--tt-home-ink);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.tt-home-origin__chip:hover,
.tt-home-origin__chip:focus-visible {
    border-color: #ffb78f;
    color: var(--tt-home-orange-dark);
    background: #fff5ee;
}

.tt-home-origin__chip:focus-visible {
    outline: 2px solid var(--tt-home-orange);
    outline-offset: 2px;
}

.tt-home-origin__chip--more {
    color: var(--tt-home-muted);
    background: transparent;
    border-style: dashed;
}

@media (min-width: 768px) {
    .tt-home-origin {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .tt-home-origin__chips {
        margin: 0;
        padding: 0;
        overflow: visible;
        flex-wrap: wrap;
    }
}

html[data-theme="dark"] .tt-home-origin__chip {
    border-color: var(--tt-home-border);
    color: var(--tt-home-ink);
    background: #111d2c;
}

html[data-theme="dark"] .tt-home-origin__chip:hover,
html[data-theme="dark"] .tt-home-origin__chip:focus-visible {
    border-color: rgba(255, 122, 56, .55);
    background: #1a2538;
    color: #ff9460;
}

/* Phones: trim what repeats other entry points (activity chips above, Journal in the menu). */
@media (max-width: 767px) {
    body.page-home-redesign .tt-route-finder.tt-route-finder--compact,
    body.page-home-redesign .tt-home-section.tt-home-publications {
        display: none;
    }
}
