/* ============================================================
   trip-planner-activation.css — Scoped Homepage Planner Activation
   ============================================================ */

.tp-home-activation {
    position: relative;
    z-index: 30;
    margin-bottom: 4rem;
}

/* Master Activation Card Surface */
.tp-act-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 16px 44px -8px rgba(0, 109, 119, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 109, 119, 0.12);
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 768px) {
    .tp-home-activation {
        margin-bottom: 2.5rem;
    }

    .tp-act-card {
        padding: 1.35rem 1rem;
        border-radius: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tp-act-card {
        padding: 1.15rem 0.85rem;
        border-radius: 1rem;
    }
}

/* 2-Column Responsive Layout Grid */
.tp-act-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .tp-act-grid {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
        align-items: stretch;
    }
}

@media (min-width: 1280px) {
    .tp-act-grid {
        grid-template-columns: 1fr 300px;
        gap: 2.75rem;
        align-items: stretch;
    }
}

/* Content Left Column (Spaced out vertically, H2 anchored top-left) */
.tp-act-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1.4rem;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .tp-act-content {
        gap: 1.1rem;
    }
}

/* Visual Right Column (Moved towards right edge) */
.tp-act-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .tp-act-visual {
        justify-content: flex-end;
    }
}

/* Top Header Bar (State 4) */
.tp-act-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tp-act-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}

.tp-act-pill-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0;
    max-width: 100%;
}

/* Section Heading — exact match for .article-content h2 across the site */
.tp-act-heading {
    font-size: 1.5rem;
    width: fit-content;
    background-color: var(--tertiary, #fd9d1a);
    color: #F9F9F9;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    margin: 0;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    line-height: 1.2;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.tp-act-heading a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tp-act-heading a:hover {
    color: #ffffff;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .tp-act-heading {
        font-size: 1.25rem;
        letter-spacing: 0.08em;
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

/* Badges & Tags */
.tp-act-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-label, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
}

@media (max-width: 480px) {
    .tp-act-pill {
        font-size: 0.66rem;
        padding: 0.22rem 0.5rem;
    }

    .tp-act-pill-extra {
        display: none;
    }
}

.tp-act-pill--guest {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid rgba(3, 105, 161, 0.2);
}

.tp-act-pill--warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.25);
}

.tp-act-pill--active {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid rgba(6, 95, 70, 0.2);
}

.tp-act-pill--member {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.tp-act-free-badge {
    font-family: var(--font-label, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #065f46;
    background: #d1fae5;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
}

/* Typography */
.tp-act-title {
    font-family: var(--font-headline, 'Montserrat', sans-serif);
    font-weight: 900;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    line-height: 1.2;
    color: var(--on-surface, #0f172a);
    letter-spacing: -0.015em;
    margin: 0;
}

.tp-act-desc {
    font-family: var(--font-headline, 'Montserrat', sans-serif);
    font-size: 0.975rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    max-width: none;
}

/* Features List (State 1) */
.tp-act-features {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tp-act-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.925rem;
    color: #334155;
    line-height: 1.45;
}

.tp-act-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #e0f2f1;
    color: #006d77;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
}

/* Action Button Row (Anchored to bottom on desktop) */
.tp-act-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 640px) {
    .tp-act-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        padding-top: 0.5rem;
    }
}

.tp-act-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-family: var(--font-label, sans-serif);
    box-shadow: 0 4px 16px rgba(0, 109, 119, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 640px) {
    .tp-act-btn-main {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.925rem;
        box-sizing: border-box;
    }
}

.tp-act-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 109, 119, 0.35);
}

.tp-act-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-label, sans-serif);
    font-weight: 700;
    font-size: 0.9rem;
    color: #006d77;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease;
}

@media (max-width: 640px) {
    .tp-act-link-secondary {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

.tp-act-link-secondary:hover {
    color: #004d55;
    text-decoration: underline;
}

/* Real Sidebar Showcase Graphic (State 1) */
.tp-act-sidebar-showcase {
    position: relative;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 48px -10px rgba(0, 109, 119, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 109, 119, 0.16);
    background: #f1f5f7;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
    .tp-act-sidebar-showcase {
        margin: 0 0 0 auto;
    }
}

.tp-act-sidebar-showcase:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 26px 56px -8px rgba(0, 109, 119, 0.32), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tp-act-sidebar-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 40, 45, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: var(--font-label, sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tp-act-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.tp-act-sidebar-img-wrap {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.tp-act-sidebar-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top;
}

.tp-act-sidebar-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 45, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tp-act-sidebar-showcase:hover .tp-act-sidebar-hover-overlay {
    opacity: 1;
}

.tp-act-sidebar-hover-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #006d77;
    font-family: var(--font-label, sans-serif);
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(6px);
    transition: transform 0.25s ease;
}

.tp-act-sidebar-showcase:hover .tp-act-sidebar-hover-btn {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .tp-act-sidebar-showcase {
        max-width: 240px;
    }

    .tp-act-sidebar-img-wrap {
        max-height: 380px;
    }
}

/* State 1 & 2: Dark title card */
.tp-act-card--state1 .tp-act-title,
.tp-act-card--state2 .tp-act-title {
    background: linear-gradient(135deg, #00343b 0%, #001f24 100%);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* State 2's first sentence ("You have N place(s) planned across N days.")
   is longer than State 1's, so at mid-desktop widths it wraps with only
   "N days." spilling onto its own line — the number/unit nowrap pairing
   keeps that unit together but can't stop the whole sentence from wrapping
   in the first place. A smaller size fits more of the sentence per line.
   Scoped to (min-width: 769px) so it can't win over the mobile override below. */
@media (min-width: 769px) {
    .tp-act-card--state2 .tp-act-title {
        font-size: clamp(1.2rem, 2.1vw, 1.85rem);
    }
}

@media (max-width: 768px) {
    .tp-act-card--state1 .tp-act-title,
    .tp-act-card--state2 .tp-act-title {
        padding: 1rem 0.95rem;
        border-radius: 0.95rem;
        font-size: 1.15rem;
    }
}

.tp-act-card--state1 .tp-act-title .text-primary,
.tp-act-card--state2 .tp-act-title .text-primary {
    color: #5eead4;
}

.tp-act-card--state2 .tp-act-title .text-tertiary {
    color: #fdba74;
}

/* "1 place" / "5 days" must never break between the number and its unit —
   looks broken with the unit stranded alone on the next line. */
.tp-act-card--state2 .tp-act-title .text-primary,
.tp-act-card--state2 .tp-act-title .text-tertiary {
    white-space: nowrap;
}

/* Always its own line, however many lines the first sentence wraps to —
   avoids a hardcoded <br> mid-sentence orphaning a word when "across N
   days." doesn't fit on one line at narrower widths. */
.tp-act-title-line2 {
    display: block !important;
    margin-top: 0.35rem;
}

/* State 2: Dynamic Trip HUD */
.tp-act-hud {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.85rem 1.25rem;
    gap: 1.25rem;
    margin: 0.25rem 0;
    max-width: 100%;
    box-sizing: border-box;
}

.tp-act-hud-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.tp-act-hud-item strong {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.1;
    white-space: nowrap;
}

.tp-act-hud-item span {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tp-act-hud-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tp-act-hud {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
    }

    .tp-act-hud-divider {
        display: none;
    }
}

/* State 2: Responsive Grid & Sync Card */
@media (min-width: 1024px) {
    .tp-act-card--state2 .tp-act-grid {
        grid-template-columns: 1fr 340px;
        gap: 2.25rem;
    }
}

@media (min-width: 1280px) {
    .tp-act-card--state2 .tp-act-grid {
        grid-template-columns: 1fr 375px;
        gap: 2.75rem;
    }
}

.tp-act-card--state2 .tp-act-visual {
    align-items: stretch;
    justify-content: flex-end;
}

.tp-act-sync-card {
    position: relative;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    box-shadow: 0 12px 32px -4px rgba(0, 52, 59, 0.08), 0 4px 12px -2px rgba(0, 52, 59, 0.04);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tp-act-sync-card {
        padding: 1rem 0.85rem;
        border-radius: 1rem;
        gap: 0.75rem;
        min-height: auto;
    }
}

@media (min-width: 1024px) {
    .tp-act-sync-card {
        max-width: 375px;
        margin-left: auto;
        height: 100%;
        min-height: 380px;
    }
}

.tp-act-sync-card-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #006d77 100%);
}

.tp-act-sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.2rem;
    flex-wrap: wrap;
    width: 100%;
}

.tp-act-sync-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.08);
}

.tp-act-sync-pulse-amber {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
    display: inline-block;
    flex-shrink: 0;
    animation: tp-act-pulse-amber 2s infinite ease-in-out;
}

@keyframes tp-act-pulse-amber {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    }
}

.tp-act-sync-device-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 650;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
}

.tp-act-sync-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.tp-act-sync-meta-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tp-act-sync-meta-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #006d77;
    background: #e6f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.tp-act-sync-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
    min-height: 0;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.tp-act-sync-item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.tp-act-sync-item-row:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.tp-act-sync-item-thumb {
    width: 46px;
    height: 46px;
    border-radius: 0.55rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #e2e8f0;
}

.tp-act-sync-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, #e6f4f6 0%, #ccfbf1 100%);
    color: #006d77;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 109, 119, 0.15);
}

.tp-act-sync-item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tp-act-sync-item-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tp-act-sync-item-day {
    font-size: 0.65rem;
    font-weight: 800;
    color: #006d77;
    background: #e6f4f6;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tp-act-sync-item-cat {
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-act-sync-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.tp-act-sync-add-prompt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.75rem;
    font-size: 0.76rem;
    font-weight: 650;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tp-act-sync-add-prompt:hover {
    border-color: #006d77;
    color: #006d77;
    background: #f0fdfa;
}

.tp-act-sync-add-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}

.tp-act-sync-more-note {
    font-size: 0.75rem;
    font-weight: 650;
    color: #006d77;
    text-align: center;
    padding: 0.2rem 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.tp-act-sync-more-note:hover {
    color: #004d55;
    text-decoration: underline;
}

.tp-act-sync-vault-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    margin-top: auto;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tp-act-sync-vault-box:hover {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #86efac;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
    transform: translateY(-1px);
}

.tp-act-sync-vault-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.55rem;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.tp-act-sync-vault-body {
    min-width: 0;
    flex: 1;
}

.tp-act-sync-vault-title {
    font-size: 0.82rem;
    font-weight: 750;
    color: #065f46;
    line-height: 1.2;
}

.tp-act-sync-vault-desc {
    font-size: 0.72rem;
    color: #047857;
    line-height: 1.3;
    margin-top: 0.1rem;
}

.tp-act-sync-vault-arrow {
    color: #10b981;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.tp-act-sync-vault-box:hover .tp-act-sync-vault-arrow {
    transform: translateX(2px);
}

/* State 3: Starter Routes Stack */
.tp-act-header-center {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.tp-act-title-center {
    font-family: var(--font-headline, 'Montserrat', sans-serif);
    font-size: clamp(1.35rem, 3vw, 2.25rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 640px) {
    .tp-act-header-center {
        margin-bottom: 1.25rem;
        gap: 0.5rem;
    }

    .tp-act-title-center {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .tp-act-sub-center {
        font-size: 0.875rem;
    }
}

.tp-act-sub-center {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.tp-act-route-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .tp-act-route-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tp-act-route-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .tp-act-route-card {
        padding: 1.15rem 0.9rem;
    }
}

.tp-act-route-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 109, 119, 0.12);
    border-color: rgba(0, 109, 119, 0.25);
}

.tp-act-route-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #e0f2f1;
    color: #006d77;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.tp-act-route-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 147, 159, 0.16) 0%, rgba(0, 147, 159, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
}

.tp-act-route-name {
    font-family: var(--font-headline, sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.tp-act-route-stops {
    font-size: 0.8rem;
    font-weight: 700;
    color: #006d77;
    margin: 0;
}

.tp-act-route-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.tp-act-route-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.tp-act-footer-center {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .tp-act-footer-center {
        flex-direction: column;
        gap: 0.35rem;
        margin-top: 1.25rem;
    }
}

.tp-act-link-underlined {
    color: #006d77;
    font-weight: 700;
    text-decoration: underline;
}

/* State 4: Member HUD & Snapshot */
.tp-act-pulse-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    display: inline-block;
    flex-shrink: 0;
}

/* Unified Trip Switcher (State 4) */
.tp-act-trip-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.2rem 0.55rem 0.2rem 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .tp-act-trip-switcher {
        width: 100%;
        justify-content: space-between;
    }
}

.tp-act-trip-switcher-label {
    font-family: var(--font-label, sans-serif);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tp-act-trip-select {
    background: transparent;
    border: none;
    font-family: var(--font-headline, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    color: #006d77;
    cursor: pointer;
    padding-right: 0.35rem;
    outline: none;
    max-width: 160px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-act-trip-select:focus-visible {
    outline: 2px solid #006d77;
    border-radius: 0.25rem;
}

.tp-act-member-hud {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0.25rem 0;
    width: 100%;
}

@media (max-width: 640px) {
    .tp-act-member-hud {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

.tp-act-util-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

@media (max-width: 640px) {
    .tp-act-util-pill {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

.tp-act-util-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tp-act-all-trips-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    margin-left: 0.5rem;
}

@media (max-width: 640px) {
    .tp-act-all-trips-link {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
}

.tp-act-all-trips-link:hover {
    color: #006d77;
}

.tp-act-member-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    width: 100%;
}

@media (min-width: 1024px) {
    .tp-act-member-card {
        max-width: 360px;
        margin-left: auto;
    }
}

.tp-act-member-card-hero {
    position: relative;
    height: 160px;
}

.tp-act-member-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-act-member-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 40, 45, 0.85) 0%, transparent 60%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tp-act-member-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #10b981;
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    align-self: flex-start;
    margin-bottom: 0.25rem;
}

.tp-act-member-card-trip-title {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.2;
}

.tp-act-member-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tp-act-member-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tp-act-member-card-action {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
    color: #006d77;
    text-decoration: none;
}
