:root {
    --journey-ink: #17221c;
    --journey-muted: #657169;
    --journey-paper: #f5f2e9;
    --journey-line: #dfe4df;
    --journey-green: #214b38;
    --journey-orange: #d36b42;
    --journey-dark: #102018;
}

.lim-journey-header {
    padding: 3.5rem 0 3.25rem;
    background:
        radial-gradient(
            circle at 86% 12%,
            rgba(211, 107, 66, .15),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #15261d,
            #203e2e
        );
    color: #fff;
}

.lim-journey-header-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, .55fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
}

.lim-journey-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 2.3rem;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 750;
}

.lim-journey-back:hover {
    color: #fff;
}

.lim-journey-eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: #e4c39f;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.lim-journey-eyebrow.dark {
    color: #8b603f;
}

.lim-journey-header h1 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(3.5rem, 7vw, 6.7rem);
    line-height: .92;
    letter-spacing: -.06em;
}

.lim-journey-tagline {
    max-width: 680px;
    margin: 1.3rem 0 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, .86);
}

.lim-journey-header-note {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
}

.lim-journey-header-note strong {
    display: block;
    margin-bottom: .7rem;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.35rem;
}

.lim-journey-header-note p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.65;
}

.lim-journey-planner {
    padding: 4.5rem 0;
    background: var(--journey-paper);
}

.lim-journey-question {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 800px;
}

.lim-journey-question.second {
    margin-top: 3.8rem;
}

.lim-journey-question > span {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--journey-green);
    color: #fff;
    font-size: .72rem;
    font-weight: 850;
}

.lim-journey-question h2 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -.035em;
}

.lim-journey-question p {
    margin: .45rem 0 0;
    color: var(--journey-muted);
}

.lim-origin-controls {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: .8rem;
    max-width: 880px;
    margin-top: 1.5rem;
}

.lim-origin-search-wrap {
    position: relative;
}

.lim-origin-search-wrap > i {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    z-index: 2;
    transform: translateY(-50%);
    color: #66716b;
}

.lim-origin-search-wrap input {
    width: 100%;
    min-height: 3.8rem;
    padding:
        .8rem
        1rem
        .8rem
        3rem;
    border: 1px solid #ccd4cf;
    border-radius: .85rem;
    background: #fff;
    color: var(--journey-ink);
    font-size: 1rem;
    box-shadow:
        0 8px 25px rgba(22, 34, 28, .05);
}

.lim-origin-search-wrap input:focus {
    outline: none;
    border-color: #6f927e;
    box-shadow:
        0 0 0 .22rem rgba(33, 75, 56, .12);
}

.lim-location-button,
.lim-find-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    border-radius: .85rem;
    font-weight: 850;
}

.lim-location-button {
    min-height: 3.8rem;
    padding: .8rem 1.25rem;
    background: #fff;
    color: var(--journey-green);
    border: 1px solid #ccd4cf;
}

.lim-origin-message {
    min-height: 1.5rem;
    max-width: 880px;
    margin-top: .65rem;
    color: #50705e;
    font-size: .84rem;
}

.lim-origin-message.error {
    color: #a34432;
}

.lim-time-options {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.5rem;
}

.lim-time-options button {
    display: grid;
    align-content: start;
    min-height: 150px;
    padding: 1.25rem;
    border: 1px solid #d6ddd8;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .72);
    color: var(--journey-ink);
    text-align: left;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.lim-time-options button:hover {
    transform: translateY(-2px);
    border-color: #91a99b;
}

.lim-time-options button.active {
    border-color: var(--journey-green);
    background: #fff;
    box-shadow:
        inset 0 0 0 1px var(--journey-green),
        0 12px 32px rgba(25, 57, 42, .1);
}

.lim-time-options i {
    margin-bottom: 1.2rem;
    color: var(--journey-orange);
    font-size: 1.35rem;
}

.lim-time-options strong {
    font-size: .95rem;
}

.lim-time-options small {
    margin-top: .35rem;
    color: var(--journey-muted);
    line-height: 1.45;
}

.lim-journey-action-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.lim-find-button {
    min-height: 3.7rem;
    padding: .85rem 1.35rem;
    background: var(--journey-orange);
    color: #fff;
}

.lim-find-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

#lim-calculation-status {
    color: var(--journey-muted);
    font-size: .85rem;
}

.lim-journey-results {
    padding: 4.8rem 0 5.5rem;
    background: #fff;
}

.lim-results-heading {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, .45fr);
    gap: 3rem;
    align-items: end;
    max-width: 1450px;
    margin: 0 auto 2.5rem;
    padding: 0 1.2rem;
}

.lim-results-heading h2 {
    max-width: 760px;
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.lim-results-heading > p {
    margin: 0;
    color: var(--journey-muted);
    line-height: 1.7;
}

.lim-journey-workspace {
    display: grid;
    grid-template-columns:
        minmax(320px, 420px)
        minmax(0, 1fr);
    min-height: 690px;
    border-top: 1px solid var(--journey-line);
    border-bottom: 1px solid var(--journey-line);
    background: #f8faf8;
}

.lim-journey-list {
    max-height: 760px;
    overflow-y: auto;
    border-right: 1px solid var(--journey-line);
    background: #fff;
}

.lim-empty-journeys {
    display: grid;
    min-height: 420px;
    padding: 3rem 2rem;
    place-content: center;
    text-align: center;
}

.lim-empty-journeys i {
    margin-bottom: 1rem;
    color: #87988f;
    font-size: 2rem;
}

.lim-empty-journeys strong {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.4rem;
}

.lim-empty-journeys p {
    max-width: 300px;
    margin: .7rem auto 0;
    color: var(--journey-muted);
    line-height: 1.6;
}

.lim-journey-card {
    padding: 1.6rem;
    border-bottom: 1px solid var(--journey-line);
    background: #fff;
    cursor: pointer;
    transition:
        background .2s ease,
        border-left-color .2s ease;
    border-left: 4px solid transparent;
}

.lim-journey-card:hover {
    background: #fafcfb;
}

.lim-journey-card.active {
    border-left-color: var(--journey-orange);
    background: #f9f5ef;
}

.lim-journey-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lim-journey-number {
    color: #839087;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: .9rem;
}

.lim-journey-fit {
    padding: .35rem .55rem;
    border-radius: 999px;
    background: #e7f1eb;
    color: #316647;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.lim-journey-path {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    color: #77817b;
    font-size: .73rem;
    font-weight: 750;
}

.lim-journey-path span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lim-journey-card h3 {
    margin: .6rem 0 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.7rem;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.lim-journey-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    margin-top: .9rem;
    color: #4e5e55;
    font-size: .78rem;
    font-weight: 750;
}

.lim-journey-stats i {
    margin-right: .25rem;
    color: var(--journey-orange);
}

.lim-journey-card > p {
    margin: .9rem 0 0;
    color: var(--journey-muted);
    font-size: .85rem;
    line-height: 1.6;
}

.lim-journey-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.1rem;
}

.lim-journey-card-actions button,
.lim-journey-card-actions a {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    padding: .5rem .7rem;
    border: 1px solid #ccd5cf;
    border-radius: .6rem;
    background: #fff;
    color: #294838;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 800;
}

.lim-view-route-button {
    border-color: var(--journey-green) !important;
    background: var(--journey-green) !important;
    color: #fff !important;
}

.lim-journey-map-wrap {
    position: relative;
    min-height: 690px;
}

.lim-journey-map {
    position: absolute;
    inset: 0;
}

.lim-map-placeholder {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    text-align: center;
    pointer-events: none;
    background:
        linear-gradient(
            rgba(240, 244, 241, .9),
            rgba(240, 244, 241, .9)
        );
}

.lim-map-placeholder[hidden] {
    display: none;
}

.lim-map-placeholder i {
    color: #85948b;
    font-size: 2.3rem;
}

.lim-map-placeholder strong {
    margin-top: .8rem;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.45rem;
}

.lim-map-placeholder span {
    margin-top: .4rem;
    color: var(--journey-muted);
}

.lim-map-legend {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 4;
    display: flex;
    gap: 1rem;
    padding: .7rem .9rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .7rem;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 8px 25px rgba(20, 35, 27, .12);
    font-size: .68rem;
    font-weight: 750;
}

.lim-map-legend span {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.lim-map-legend i {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
}

.lim-legend-origin {
    background: var(--journey-dark);
}

.lim-legend-route {
    width: 1.4rem !important;
    height: .25rem !important;
    border-radius: 999px !important;
    background: var(--journey-orange);
}

.lim-legend-destination {
    background: var(--journey-orange);
}

.lim-prototype-note {
    padding: 2.7rem 0;
    background: var(--journey-dark);
    color: #fff;
}

.lim-prototype-note .container {
    display: grid;
    grid-template-columns:
        minmax(220px, .35fr)
        minmax(0, 1fr);
    gap: 2rem;
}

.lim-prototype-note strong {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.35rem;
}

.lim-prototype-note p {
    margin: 0;
    color: rgba(255, 255, 255, .67);
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .lim-time-options {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .lim-journey-workspace {
        grid-template-columns:
            minmax(290px, 360px)
            minmax(0, 1fr);
    }
}

@media (max-width: 850px) {
    .lim-journey-header-grid,
    .lim-results-heading,
    .lim-prototype-note .container {
        grid-template-columns: 1fr;
    }

    .lim-journey-workspace {
        grid-template-columns: 1fr;
    }

    .lim-journey-list {
        max-height: none;
        border-right: 0;
    }

    .lim-journey-map-wrap {
        min-height: 520px;
        grid-row: 1;
    }
}

@media (max-width: 650px) {
    .lim-journey-header {
        padding: 2.3rem 0;
    }

    .lim-journey-header h1 {
        font-size: 3.7rem;
    }

    .lim-origin-controls {
        grid-template-columns: 1fr;
    }

    .lim-time-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .lim-time-options button {
        min-height: 130px;
    }

    .lim-journey-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .lim-find-button {
        width: 100%;
    }

    .lim-journey-map-wrap {
        min-height: 420px;
    }

    .lim-map-legend {
        right: .6rem;
        bottom: .6rem;
        left: .6rem;
        justify-content: center;
        gap: .7rem;
    }
}

@media (max-width: 420px) {
    .lim-time-options {
        grid-template-columns: 1fr;
    }

    .lim-time-options button {
        min-height: 105px;
    }
}
