/* tour.css — split from styles.css. Edit here; npm run build copies to /css. */

.tour-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem;
    min-height: calc(100vh - 200px);
}

.tour-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tour-pretitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

.tour-title {
    font-size: 4.5rem;
    font-weight: 400;
    font-family: 'Bebas Neue', sans-serif;
    margin-bottom: 0.25rem;
    text-align: left;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.1;
}

.tour-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 60ch;
}

.tour-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.tour-summary .tour-subtitle {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
}

.tour-callouts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-left: auto;
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    border: 0;
    white-space: nowrap;
}

.tour-request-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.34rem 0.6rem;
    border: 1px solid currentColor;
    border-radius: 2px;
    color: #fff;
    background: transparent;
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.tour-request-link:hover,
.tour-request-link:focus-visible {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.tour-page--archive .tour-callouts {
    margin-top: 0.15rem;
}

.tour-next-line {
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.45;
}

.tour-dates {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tour-dates-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tour-dates-heading {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tour-dates-group--past .tour-dates-heading {
    color: rgba(255, 255, 255, 0.48);
}

.tour-table-wrapper {
    container-type: inline-size;
    container-name: tour-table;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 26, 58, 0.15);
}

.tour-table-wrapper--past {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.tour-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    font-size: 1rem;
    table-layout: fixed;
}

.tour-table thead th:nth-child(4),
.tour-table tbody td:nth-child(4) {
    width: 280px;
    min-width: 280px;
}

.tour-table thead th:first-child,
.tour-table tbody td:first-child {
    padding-left: 1.75rem;
}

.tour-table thead th:nth-child(4),
.tour-table tbody td:nth-child(4) {
    padding-right: 1.75rem;
}

.tour-table thead th {
    text-align: left;
    padding: 1.25rem 1.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tour-table tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tour-table tbody tr {
    transition: background-color 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), opacity 0.35s ease;
}

.tour-table tbody tr:hover {
    background: rgba(255, 26, 58, 0.055);
    box-shadow: inset 4px 0 0 0 var(--accent-color);
}

.tour-table tbody tr.tour-row--next {
    background: rgba(255, 26, 58, 0.08);
    box-shadow: inset 4px 0 0 0 var(--accent-color);
}

.tour-table tbody tr.tour-row--next:hover {
    background: rgba(255, 26, 58, 0.11);
}

.tour-table tbody tr.tour-row--past {
    opacity: 0.58;
}

.tour-table tbody tr.tour-row--past:hover {
    opacity: 0.78;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 4px 0 0 0 rgba(255, 255, 255, 0.22);
}

.tour-played {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tour-table tbody td {
    padding: 1.25rem 1.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.tour-table tbody td:first-child {
    font-weight: 500;
    color: #fff;
}

.tour-table tbody td:nth-child(2) {
    color: rgba(255, 255, 255, 0.75);
}

.tour-table tbody td:nth-child(3) {
    font-weight: 500;
}

.tour-support-symbol {
    color: var(--accent-color);
    font-weight: 800;
    margin-left: 0.25em;
}

.tour-table tbody td:nth-child(3) .tour-support-symbol {
    margin-left: 0;
    margin-right: 0.35em;
}

.tour-venue-value {
    display: inline;
}

.tour-support-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.tour-support-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tour-support-legend a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 26, 58, 0.55);
}

.tour-support-legend a:hover {
    color: var(--accent-color);
    border-bottom-color: currentColor;
}

.tour-support-legend .tour-support-symbol {
    margin-left: 0;
}

.tour-tba {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.tour-venue-with-note {
    white-space: nowrap;
}

.tour-acoustic-asterisk {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 0.15em;
}

.tour-legend {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
}

.tour-status-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.tour-table .tour-link {
    display: block;
    width: 100%;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    text-align: center;
    box-sizing: border-box;
}

.tour-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.45rem;
}

.tour-table .tour-actions .tour-link {
    flex: 1 1 auto;
    width: auto;
    min-width: fit-content;
    overflow: visible;
    letter-spacing: 1px;
    padding: 0.35rem 0.85rem;
}

.tour-support-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.12);
    color: var(--accent-color);
    box-shadow: inset 0 0 0 1px rgba(196, 30, 58, 0.18);
}

.tour-support-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.35);
}

.tour-support-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.6px;
    background: rgba(196, 30, 58, 0.18);
    color: var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.tour-support-name {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: none;
}

.tour-link {
    white-space: nowrap;
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
}

.tour-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    justify-self: end;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
}

.tour-status-hold {
    background: rgba(255, 193, 59, 0.18);
    color: #e8b84a;
    border: 1px solid rgba(255, 193, 59, 0.4);
}

@media (max-width: 768px) {
    .tour-title {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        letter-spacing: 3px;
    }

    .tour-heading {
        gap: 0.5rem;
        margin-bottom: 1.75rem;
    }

    .tour-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .tour-summary .tour-subtitle {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.4;
    }

    .tour-callouts {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.45rem 0.65rem;
    }

    .tour-badge {
        font-size: 0.78rem;
        letter-spacing: 0;
        padding: 0;
        white-space: normal;
    }

    .tour-request-link {
        min-height: 28px;
        padding: 0.32rem 0.62rem;
        font-size: 0.58rem;
        letter-spacing: 0.06em;
    }

    .tour-page {
        padding: 1.75rem 1.5rem;
    }

    .tour-table thead th,
    .tour-table tbody td {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .tour-table .tour-link {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
    }

    .tour-page {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tour-table-wrapper {
        width: 100% !important;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
    }

    .tour-table {
        display: block;
        width: 100% !important;
        min-width: 100%;
        table-layout: auto;
    }

    .tour-table thead {
        display: none;
    }

    .tour-table tbody {
        display: block;
        width: 100%;
    }

    .tour-table tbody tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1.25rem 1.25rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition:
            transform 0.4s var(--ease-premium),
            box-shadow 0.4s var(--ease-premium),
            border-color 0.35s ease,
            background-color 0.35s ease;
    }

    .tour-table tbody tr:hover {
        background: rgba(26, 22, 23, 0.98);
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.38),
            inset 4px 0 0 0 var(--accent-color);
        border-color: rgba(255, 26, 58, 0.33);
    }

    @media (hover: hover) and (prefers-reduced-motion: no-preference) {
        .tour-table tbody tr:hover {
            transform: translateY(-4px);
        }
    }

    .tour-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .tour-table tbody td {
        display: grid;
        grid-template-columns: 6.5rem 1fr;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0;
        border: none;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }

    .tour-table tbody td:first-child {
        padding-left: 0;
    }

    .tour-table tbody td:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .tour-table tbody td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.5);
        text-align: left;
        justify-self: start;
    }

    .tour-table tbody td:not(:nth-child(4)) {
        text-align: right;
    }

    .tour-table tbody td:nth-child(3) .tour-venue-value {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        text-align: right;
    }

    .tour-table tbody td:nth-child(4) {
        border-bottom: none;
        padding-top: 1rem;
        grid-template-columns: 1fr;
    }

    .tour-table tbody td:nth-child(4)::before {
        display: none;
    }

    .tour-table .tour-link {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tour-table .tour-actions .tour-link {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .tour-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        letter-spacing: 2px;
    }

    .tour-heading {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tour-request-link {
        min-height: 26px;
        padding: 0.3rem 0.5rem;
        font-size: 0.52rem;
    }

    .tour-page {
        padding: 1.5rem 0.75rem;
    }

    .tour-heading {
        padding: 0 0.75rem;
    }

    .tour-title {
        font-size: 2.25rem;
    }

    .tour-subtitle {
        font-size: 0.95rem;
    }
}

@container tour-table (max-width: 36rem) {
    .tour-table tbody td {
        letter-spacing: 0.01em;
    }
}

.tour-heading.page-header--photo {
    margin-bottom: 2.75rem;
}

.tour-heading.page-header--photo .page-header-media img {
    object-position: center 72%;
}
