/* East Marvel Hub — Cross-Site Trip List tab & slide-over drawer (list-only).
 * Hand-crafted CSS using the hub's own custom properties (assets/css/styles.css).
 * z-index hierarchy: header 20, cookie-notice 60, trip-tab 65, drawer 80/81, skip-link 100. */

.em-hub-tl-root {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--em-notice-h, 0px));
    z-index: 65;
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.em-hub-tl-root[hidden] {
    display: none !important;
}

.em-hub-tl-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1.05rem;
    border-radius: 9999px;
    border: 1px solid rgba(201, 154, 46, 0.52);
    background: var(--navy, #172f4b);
    color: var(--white, #ffffff);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(16, 31, 46, 0.34), 0 2px 6px rgba(16, 31, 46, 0.16);
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.em-hub-tl-tab:hover {
    background: #1e3d61;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(16, 31, 46, 0.4);
}

.em-hub-tl-tab:focus-visible {
    outline: 2px solid var(--gold-accent, #c99a2e);
    outline-offset: 3px;
}

.em-hub-tl-tab-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--gold-light, #f2d88b);
}

.em-hub-tl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    background: var(--gold-light, #f2d88b);
    color: var(--ink, #161f2b);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.em-hub-tl-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(16, 26, 38, 0.52);
    backdrop-filter: blur(2px);
}

.em-hub-tl-backdrop[hidden] {
    display: none !important;
}

.em-hub-tl-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 81;
    width: min(440px, 100vw);
    max-width: 100vw;
    background: var(--paper, #f6f2ea);
    color: var(--ink, #161f2b);
    box-shadow: -16px 0 48px rgba(16, 31, 46, 0.26);
    display: flex;
    flex-direction: column;
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.em-hub-tl-drawer[hidden] {
    display: none !important;
}

.em-hub-tl-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    background: var(--white, #ffffff);
    border-bottom: 1px solid var(--line, rgba(23, 47, 75, 0.13));
}

.em-hub-tl-head h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--navy, #172f4b);
    line-height: 1.2;
}

.em-hub-tl-sub {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--muted, #5a687a);
}

.em-hub-tl-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    border: 1px solid var(--line, rgba(23, 47, 75, 0.16));
    background: var(--white, #ffffff);
    color: var(--ink, #161f2b);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.em-hub-tl-close:hover {
    background: rgba(23, 47, 75, 0.05);
}

.em-hub-tl-close:focus-visible {
    outline: 2px solid var(--gold-accent, #c99a2e);
    outline-offset: 2px;
}

.em-hub-tl-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px 22px;
}

.em-hub-tl-group {
    margin-bottom: 18px;
}

.em-hub-tl-group:last-child {
    margin-bottom: 0;
}

.em-hub-tl-group-title {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted, #5a687a);
}

.em-hub-tl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.em-hub-tl-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--white, #ffffff);
    border: 1px solid var(--line, rgba(23, 47, 75, 0.13));
}

.em-hub-tl-item-main {
    min-width: 0;
    flex: 1 1 auto;
}

.em-hub-tl-item-link {
    display: inline-block;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--navy, #172f4b);
    text-decoration: none;
    line-height: 1.35;
    word-break: break-word;
}

.em-hub-tl-item-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.em-hub-tl-item-meta {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--muted, #5a687a);
    line-height: 1.4;
}

.em-hub-tl-remove {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted, #5a687a);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.em-hub-tl-remove:hover {
    color: #991b1b;
    background: rgba(185, 28, 28, 0.08);
}

.em-hub-tl-remove:focus-visible {
    outline: 2px solid var(--gold-accent, #c99a2e);
    outline-offset: 2px;
}

.em-hub-tl-explore {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line, rgba(23, 47, 75, 0.13));
}

.em-hub-tl-explore-label {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted, #5a687a);
}

.em-hub-tl-explore-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.em-hub-tl-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid var(--line, rgba(23, 47, 75, 0.16));
    background: var(--white, #ffffff);
    color: var(--navy, #172f4b);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.em-hub-tl-chip:hover {
    border-color: var(--gold-accent, #c99a2e);
    background: #fcfaf5;
}

.em-hub-tl-empty {
    padding: 20px 4px;
    text-align: left;
}

.em-hub-tl-empty p {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted, #5a687a);
}

.em-hub-tl-foot {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--white, #ffffff);
    border-top: 1px solid var(--line, rgba(23, 47, 75, 0.13));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.em-hub-tl-foot[hidden] {
    display: none !important;
}

.em-hub-tl-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 9999px;
    border: 0;
    background: var(--navy, #172f4b);
    color: var(--white, #ffffff);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.16s ease;
}

.em-hub-tl-btn-primary:hover {
    background: #1e3d61;
    color: var(--white, #ffffff);
}

.em-hub-tl-btn-primary:focus-visible,
.em-hub-tl-btn-ghost:focus-visible {
    outline: 2px solid var(--gold-accent, #c99a2e);
    outline-offset: 2px;
}

.em-hub-tl-foot-note {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted, #5a687a);
    text-align: center;
    line-height: 1.4;
}

.em-hub-tl-preview-note {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.4;
}

.em-hub-tl-preview-note[hidden] {
    display: none !important;
}

.em-hub-tl-btn-ghost {
    width: 100%;
    padding: 8px 14px;
    border-radius: 9999px;
    border: 0;
    background: transparent;
    color: var(--muted, #5a687a);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.em-hub-tl-btn-ghost:hover {
    color: var(--navy, #172f4b);
}

@media (max-width: 420px) {
    .em-hub-tl-head,
    .em-hub-tl-body,
    .em-hub-tl-foot {
        padding-left: 14px;
        padding-right: 14px;
    }
}
