@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

#tp-root {
    --navy-900: #050A1F;
    --navy-800: #0B1233;
    --navy-700: #161F45;
    --gold: #C9A227;
    --gray-50: #F7F7FA;
    --gray-100: #EEF0F4;
    --gray-200: #E2E4EA;
    --gray-500: #6B7280;
    --white: #FFFFFF;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--navy-900);
    -webkit-font-smoothing: antialiased;
}

#tp-root * {
    box-sizing: border-box;
}

#tp-root .tp-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

#tp-root .tp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 96px;
}

/* Header */
#tp-root .tp-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

#tp-root .tp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}

#tp-root .tp-eyebrow::before,
#tp-root .tp-eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold);
    opacity: .6;
}

#tp-root .tp-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 14px;
}

#tp-root .tp-sub {
    font-size: 15.5px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Tabs */
#tp-root .tp-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px 18px;
    margin-bottom: 32px;
    scrollbar-width: thin;
    justify-content: center;
    flex-wrap: wrap;
}

#tp-root .tp-tabs::-webkit-scrollbar {
    height: 4px;
}

#tp-root .tp-tab {
    flex: 0 0 auto;
    cursor: pointer;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--navy-800);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
    transition: all .25s ease;
}

#tp-root .tp-tab:hover {
    border-color: var(--navy-800);
}

#tp-root .tp-tab.is-active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
    box-shadow: 0 8px 20px -8px rgba(5, 10, 31, .45);
}

/* Panel grid */
#tp-root .tp-panel {
    display: none;
    animation: tpFade .35s ease;
}

#tp-root .tp-panel.is-active {
    display: block;
}

@keyframes tpFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tp-root .tp-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 44px;
    align-items: start;
}

/* Filters */
#tp-root .tp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

#tp-root .tp-chip {
    cursor: pointer;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--navy-800);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    transition: all .2s ease;
}

#tp-root .tp-chip:hover {
    border-color: var(--navy-700);
}

#tp-root .tp-chip.is-active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

/* Category groups */
#tp-root .tp-cat {
    margin-bottom: 30px;
}

#tp-root .tp-cat-title {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gray-500);
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#tp-root .tp-cat-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

#tp-root .tp-routes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* Ticket-style route card — signature element */
#tp-root .tp-route-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#tp-root .tp-route-card:hover {
    transform: translateY(-3px);
    border-color: var(--navy-800);
    box-shadow: 0 14px 28px -18px rgba(5, 10, 31, .35);
}

#tp-root .tp-route-from-to {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.45;
}

#tp-root .tp-route-from-to .tp-arrow {
    color: var(--gold);
    margin: 0 6px;
}

#tp-root .tp-route-divider {
    position: relative;
    width: 0;
    align-self: stretch;
    margin: 0 2px;
    border-left: 2px dashed var(--gray-200);
}

#tp-root .tp-route-divider::before,
#tp-root .tp-route-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
}

#tp-root .tp-route-divider::before {
    top: -16px;
}

#tp-root .tp-route-divider::after {
    bottom: -16px;
}

#tp-root .tp-route-price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--navy-900);
    white-space: nowrap;
}

#tp-root .tp-route-price span {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    margin-left: 3px;
}

/* Showcase / vehicle card */
#tp-root .tp-showcase {
    position: sticky;
    top: 24px;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px 30px;
    overflow: hidden;
}

#tp-root .tp-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 100% 0%, rgba(201, 162, 39, .14), transparent 55%);
    pointer-events: none;
}

#tp-root .tp-ribbon {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--gold);
    line-height: 1.3;
    text-transform: uppercase;
}

#tp-root .tp-vehicle-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    position: relative;
}

#tp-root .tp-vehicle-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

#tp-root .tp-vehicle-title {
    font-size: 22px;
    font-weight: 700;
    color: wheat;
    margin: 0 0 6px;
    position: relative;
}

#tp-root .tp-vehicle-note {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6;
    margin: 0 0 20px;
    position: relative;
}

#tp-root .tp-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    position: relative;
}

#tp-root .tp-spec {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

#tp-root .tp-spec svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

#tp-root .tp-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--navy-900);
    border: none;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

#tp-root .tp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .4);
}

#tp-root .tp-cta .tp-cta-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

#tp-root .tp-cta .tp-cta-circle svg {
    width: 13px;
    height: 13px;
}

/* ============ Responsive ============ */

/* Small laptops / large tablets landscape — tighten spacing slightly, keep 2-col grid */
@media (max-width:1180px) {
    #tp-root .tp-container {
        padding: 60px 20px 84px;
    }

    #tp-root .tp-grid {
        gap: 32px;
    }
}

/* Tablet portrait (iPad Mini/Air/Pro portrait ≈ 744–1024px) */
@media (max-width:1024px) {
    #tp-root .tp-grid {
        grid-template-columns: 1fr;
    }

    #tp-root .tp-showcase {
        position: static;
        order: -1;
    }

    #tp-root .tp-showcase {
        max-width: 480px;
        margin: 0 auto 8px;
    }

    #tp-root .tp-title {
        font-size: 32px;
    }
}

@media (max-width:768px) {
    #tp-root .tp-container {
        padding: 52px 18px 72px;
    }

    #tp-root .tp-tabs {
        gap: 8px;
        padding: 4px 2px 16px;
    }

    #tp-root .tp-tab {
        padding: 11px 20px;
        font-size: 13px;
    }

    #tp-root .tp-showcase {
        max-width: 100%;
        padding: 30px 24px 24px;
    }
}

/* Bridge: narrow tablets / phones in landscape — drop route cards to 1 column early
so the "from → to" text never gets cramped against the price */
@media (max-width:680px) {
    #tp-root .tp-routes {
        grid-template-columns: 1fr;
    }
}

/* Mobile portrait (≈ 320–480px) */
@media (max-width:480px) {
    #tp-root .tp-container {
        padding: 40px 14px 56px;
    }

    #tp-root .tp-header {
        margin-bottom: 34px;
    }

    #tp-root .tp-title {
        font-size: 26px;
    }

    #tp-root .tp-sub {
        font-size: 14px;
    }

    #tp-root .tp-tabs {
        justify-content: flex-start;
        gap: 6px;
    }

    #tp-root .tp-tab {
        padding: 10px 16px;
        font-size: 12.5px;
    }

    #tp-root .tp-filters {
        gap: 6px;
        margin-bottom: 18px;
    }

    #tp-root .tp-chip {
        padding: 7px 13px;
        font-size: 12px;
    }

    #tp-root .tp-cat-title {
        font-size: 11px;
        letter-spacing: .1em;
        margin-bottom: 12px;
    }

    #tp-root .tp-route-card {
        grid-template-columns: 1fr auto;
        padding: 14px 14px;
        gap: 10px;
    }

    #tp-root .tp-route-from-to {
        font-size: 13px;
    }

    #tp-root .tp-route-price {
        font-size: 17px;
    }

    #tp-root .tp-route-divider::before,
    #tp-root .tp-route-divider::after {
        width: 12px;
        height: 12px;
    }

    #tp-root .tp-showcase {
        padding: 26px 20px 20px;
        border-radius: 18px;
    }

    #tp-root .tp-vehicle-image img {
        height: 170px;
    }

    #tp-root .tp-vehicle-title {
        font-size: 19px;
    }

    #tp-root .tp-ribbon {
        width: 62px;
        height: 62px;
        font-size: 9px;
        top: 16px;
        right: 16px;
    }

    #tp-root .tp-specs {
        gap: 8px;
        margin-bottom: 20px;
    }

    #tp-root .tp-spec {
        padding: 7px 12px;
        font-size: 12px;
    }

    #tp-root .tp-cta {
        padding: 13px 20px;
        font-size: 13.5px;
    }
}

/* Very small phones (≤360px) */
@media (max-width:360px) {
    #tp-root .tp-title {
        font-size: 23px;
    }

    #tp-root .tp-route-from-to {
        font-size: 12.3px;
    }

    #tp-root .tp-route-price {
        font-size: 16px;
    }
}
