/* ServerWeb specific CSS
 * Customer-facing styles: hero banners, event cards, public UI, seat map cursors.
 * Seating checkout layout → seating-checkout section below (global allowlist).
 * Seat map canvas → seat-map-viewer.css (SharedUI).
 */

.web-appbar-nav {
    gap: 1.5rem;
}

.app-header-logo {
    width: auto;
    height: 55px;
    display: block;
}

.web-search-menu-panel {
    min-width: 300px;
    padding: 12px;
}

.home-page-container {
    max-width: none;
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 2rem;
}

.home-hero-loading,
.home-hero-empty {
    min-height: 360px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 24px;
}

.home-hero-swiper {
    --swiper-navigation-color: var(--mud-palette-white);
    --swiper-navigation-size: 30px;
    height: calc(70vh - 56px);
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

.home-hero-swiper .mud-swiper,
.home-hero-swiper .swiper,
.home-hero-swiper .swiper-wrapper,
.home-hero-swiper .swiper-slide {
    height: 100%;
}

.home-hero-swiper .mud-swiper,
.home-hero-swiper .swiper,
.home-hero-swiper .home-hero-slide {
    border-radius: 0 0 32px 32px;
}

.home-hero-swiper .mud-swiper-slide {
    align-items: stretch;
}

.home-hero-swiper .swiper-pagination-bullet-active {
    background: var(--mud-palette-secondary);
}

.home-hero-swiper .swiper-button-prev,
.home-hero-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--mud-palette-white);
    background: rgba(0, 0, 0, 0.22);
    z-index: 20;
}

.home-hero-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: calc(70vh - 56px);
    border-radius: 0 0 32px 32px;
}

.home-hero-scroll-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 100%;
}

.home-search-form {
    width: 100%;
}

.home-search-input-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 1rem;
}

.home-search-native-input {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    outline: none;
}

.home-search-native-input::placeholder {
    color: var(--mud-palette-text-secondary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-hero-slide-link,
.home-featured-card-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-hero-swiper .swiper-slide > *,
.home-hero-swiper .mud-swiper-slide > * {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    cursor: pointer;
    overflow: hidden;
    background: var(--mud-palette-background-grey);
}

.home-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero-image-placeholder {
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: clamp(1.5rem, 5vw, 4rem);
    padding-bottom: clamp(4.75rem, 10vh, 7rem);
    pointer-events: none;
    color: var(--mud-palette-white);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.42) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0) 72%);
}

.home-hero-overlay-content {
    max-width: 760px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto;
}

.home-hero-meta,
.home-hero-title {
    color: var(--mud-palette-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.home-hero-title {
    max-width: min(680px, 100%);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
}

.home-hero-cta {
    margin-top: 0.75rem;
    width: 190px;
    min-height: 40px;
    align-self: flex-start;
    border-radius: 999px;
    border: 1.5px solid var(--mud-palette-white);
    color: var(--mud-palette-white);
    background: transparent;
    padding-inline: 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: none;
}

.home-hero-cta:hover,
.home-hero-cta:focus-visible {
    border-color: var(--mud-palette-white);
    background: rgba(255, 255, 255, 0.12);
}

.home-hero-cta .mud-button-end-icon {
    margin-left: 0.5rem;
}

.home-search-panel {
    position: relative;
    z-index: 2;
    margin: -1.5rem auto 1.75rem;
    width: min(91%, 1120px);
    border-radius: 16px;
    background: var(--mud-palette-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.45rem 0.85rem;
}

.home-search-stack {
    min-height: 58px;
}

.home-search-input {
    flex: 1 1 360px;
    min-width: 240px;
}

.home-search-input .mud-input-root {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.home-search-input .mud-input-root::before,
.home-search-input .mud-input-root::after {
    display: none;
}

.home-search-divider {
    width: 1px;
    align-self: stretch;
    margin: 0 1rem;
    background: var(--mud-palette-lines-default);
}

.home-search-filter {
    position: relative;
    min-width: 145px;
    padding-right: 1.75rem;
}

.home-search-filter-label {
    color: var(--mud-palette-text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.home-search-filter-value {
    color: var(--mud-palette-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.home-search-filter-icon {
    position: absolute;
    right: 0;
    top: 50%;
    color: var(--mud-palette-text-secondary);
    transform: translateY(-50%);
}

.home-search-button {
    min-width: 104px;
    height: 38px;
    border-radius: 12px;
    font-weight: 800;
}

.home-featured-section {
    width: min(91%, 1120px);
    margin: 2rem auto 0;
}

.home-featured-header {
    margin-bottom: 1rem;
}

.home-featured-title {
    color: var(--mud-palette-primary);
    font-weight: 800;
}

.home-featured-all-button {
    border-radius: 999px;
    font-weight: 700;
    text-transform: none;
}

.home-featured-card {
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: var(--mud-palette-white);
}

.home-featured-card-image,
.home-featured-card-image .mud-card-media {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.home-featured-card-image-placeholder {
    height: 280px;
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
}

.home-featured-card-content {
    min-height: 148px;
}

.home-featured-card-title {
    color: var(--mud-palette-text-primary);
    font-weight: 800;
    line-height: 1.15;
}

.home-featured-card-meta {
    display: block;
    margin-top: 0.35rem;
    color: var(--mud-palette-text-secondary);
}

.home-featured-card-cta {
    margin-top: 1rem;
    border-radius: 999px;
    text-transform: none;
    font-weight: 700;
}

.home-fallback-all-events {
    width: min(91%, 1120px);
    margin: 1rem auto 0;
}

@media (max-width: 960px) {
    .home-hero-overlay {
        padding-bottom: clamp(2rem, 8vh, 4rem);
    }

    .home-search-panel {
        margin-top: 1rem;
    }

    .home-search-stack {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .home-search-divider {
        display: none;
    }

    .home-search-filter {
        flex: 1 1 140px;
    }

    .home-search-button {
        flex: 1 1 100%;
    }

    .home-featured-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }
}

.home-featured-event-card-shell {
    cursor: pointer;
    display: block;
    outline: none;
}

.home-featured-event-card-shell:focus-visible .home-featured-event-card {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.quickpay-json {
    font-family: monospace;
    font-size: 0.875rem;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Hero banner image styling - customer site */
body.web .hero-banner-image {
    width: 100%;
    height: clamp(240px, 45vh, 440px);
    object-fit: cover;
    display: block;
    filter: brightness(0.88);
}

body.web .hero-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

/* Event card placeholder images - customer event listings */
.event-card-placeholder {
    height: 140px;
    background: var(--mud-palette-background-grey);
}

.event-card-placeholder-tall {
    height: 180px;
    background: #f0f0f0;
}

body.web .seat-area-clickable,
body.web .seat-clickable,
body.web .seat-clickable rect,
body.web .seat-clickable text,
body.web .seat-clickable tspan {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

body.web .seat-clickable text,
body.web .seat-clickable tspan {
    pointer-events: none;
}

/* Layout utilities */
.web-page-loading {
    min-height: 60vh;
}

.web-basket-drawer {
    --mud-drawer-width: 380px;
}

.web-flex-wrap {
    flex-wrap: wrap;
}

.web-event-details-description {
    height: 100%;
}

.web-event-booking-sticky {
    top: 24px;
}

/* Status / outcome pages */
.web-status-icon-lg {
    font-size: 96px;
}

.web-status-icon-xl {
    font-size: 6rem;
}

.web-alert-narrow {
    max-width: 500px;
}

.web-action-stack {
    width: 100%;
    max-width: 400px;
}


/* Seating checkout layout */
.seating-checkout-page {
    --seating-accent: var(--mud-palette-secondary);
    --seating-accent-strong: var(--mud-palette-secondary-darken);
    --seating-subtle-surface: color-mix(in srgb, var(--mud-palette-text-primary) 4%, var(--mud-palette-surface));
    --seating-subtle-border: color-mix(in srgb, var(--mud-palette-text-primary) 12%, transparent);

    margin: 0 auto;
    max-width: none;
    padding: 1.25rem 0 2rem;
    width: 100%;
}

.seating-checkout-loading {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 56vh;
}

.seating-checkout-layout {
    align-items: flex-start;
    margin: 0 auto;
    max-width: none;
    width: 100%;
}

.seating-checkout-back-link {
    align-self: flex-start;
    margin-bottom: 0.6rem;
}

.seating-checkout-main-column {
    padding: 0;
}

.seating-checkout-main-stack {
    max-width: none;
}

.seating-checkout-intro {
    border-radius: 1rem;
    padding: 1.05rem 1.2rem 1.15rem;
}

.seating-checkout-intro-header {
    margin-bottom: 0.95rem;
}

.seating-checkout-intro-title {
    font-size: clamp(1.7rem, 2.25vw, 2.55rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-bottom: 0.65rem;
}

.seating-checkout-restore-removal-notice {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
    line-height: 1.45;
}

.seating-checkout-restore-removal-notice .mud-alert-message {
    color: var(--mud-palette-text-primary);
}

.seating-checkout-intro-venue {
    margin-bottom: 0;
}

.seating-checkout-description {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-top: 0;
    overflow-wrap: anywhere;
}

.seating-checkout-description :where(p, ul, ol) {
    margin: 0 0 0.9rem;
}

.seating-checkout-description :where(p:last-child, ul:last-child, ol:last-child) {
    margin-bottom: 0;
}

.seating-checkout-description :where(span, strong, em) {
    color: inherit;
}

.seating-checkout-intro-meta {
    margin-top: 1rem;
}

.seating-checkout-intro-meta-line {
}

.seating-checkout-target-select {
    margin-top: 1.15rem;
    max-width: 28rem;
}

.seating-checkout-workspace {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    padding: 0;
}

.seating-checkout-map-section {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.seating-checkout-ticket-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.seating-checkout-sidebar-step-navigation {
    margin-top: 0 !important;
}

.seating-checkout-sidebar-step-navigation .mud-button-root {
    font-weight: 700;
    min-height: 3rem;
    text-transform: none;
}

.seating-checkout-price-chip-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem 0.75rem 0.55rem;
}

.seating-checkout-price-chip {
    border-radius: 0.4rem;
    font-weight: 700;
}

.seating-checkout-map-frame {
    background: #11161f;
    border: 1px solid #E1E1E1;
    border-radius: var(--mud-default-borderradius);
    display: flex;
    flex-direction: column;
    min-height: 34rem;
    height: clamp(30rem, 62vh, 44rem);
    overflow: hidden;
    padding: 0;
}

.seating-checkout-map-frame .seat-map-viewer,
.seating-checkout-map-frame .seat-map-viewer-stretch,
.seating-checkout-map-frame .seat-map-canvas-shell {
    flex: 1;
    height: 100%;
    min-height: 0;
}

.seating-checkout-map-frame:focus-within {
    border-color: color-mix(in srgb, var(--mud-palette-secondary) 65%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-secondary) 18%, transparent);
}

.seating-checkout-focused-area-summary,
.seating-checkout-large-venue-panel {
    background: var(--seating-subtle-surface);
    border-color: var(--seating-subtle-border);
}

.seating-checkout-card {
    border-radius: 1rem;
}

.seating-checkout-ticket-card.mud-paper {
    padding: 0 1rem 1rem;
}

.seating-checkout-ticket-card > .mud-typography-h6,
.seating-checkout-ticket-card > #selected-seats-panel-title {
    margin: 0;
}

.seating-checkout-summary-chip-row {
    display: flex;
    flex-wrap: wrap !important;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}

.seating-checkout-summary-chip-row .mud-chip {
    align-self: flex-start;
    border: 1px solid var(--seating-subtle-border);
    font-weight: 700;
    height: auto;
    max-width: 100%;
    min-width: 0;
    padding-inline: 0.7rem;
    white-space: normal;
}

.seating-checkout-summary-chip-row .mud-chip-content {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.seating-checkout-summary-chip-row .mud-chip.mud-chip-color-info {
    border-color: rgba(96, 165, 250, 0.26);
}

.seating-checkout-summary-chip-row .seating-checkout-capacity-chip {
    width: 100%;
}

.seating-checkout-summary-chip-row .seating-checkout-capacity-chip .mud-chip-content {
    width: 100%;
}

.seating-checkout-summary-chip-row .mud-chip.mud-chip-color-success {
    background: var(--mud-palette-secondary) !important;
    border-color: color-mix(in srgb, var(--mud-palette-secondary) 72%, transparent);
    color: var(--mud-palette-secondary-text) !important;
}

.seating-checkout-selection-summary-list {
    margin-top: 0.35rem;
    padding: 0;
}

.seating-checkout-reservation-expiry {
    align-items: center;
    background: color-mix(in srgb, var(--mud-palette-secondary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-secondary) 48%, transparent);
    border-radius: 0.75rem;
    display: flex;
    margin-top: 0.55rem;
    padding: 0.7rem 0.8rem;
}

.seating-checkout-reservation-expiry-label {
    color: var(--mud-palette-text-primary);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.25;
}

.seating-checkout-selection-summary-item {
    list-style: none;
}

.seating-checkout-selection-summary-item + .seating-checkout-selection-summary-item {
    border-top: 1px solid var(--seating-subtle-border);
    margin-top: 0.25rem;
    padding-top: 0.45rem;
}

.seating-checkout-selection-summary-content {
    gap: 0.35rem;
}

.seating-checkout-selection-summary-label {
    font-weight: 600;
    line-height: 1.35;
}

.seating-checkout-selection-summary-list .mud-list-item {
    align-items: flex-start;
}

.seating-checkout-selection-summary-meta {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    min-width: 0;
}

.seating-checkout-selection-summary-line {
    flex: 1;
    min-width: 0;
}

.seating-checkout-remove-reservation-button {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.seating-checkout-selection-summary-status,
.seating-checkout-selection-summary-line {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
    line-height: 1.35;
}

.seating-checkout-selection-summary-resale.mud-typography-caption {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 72%, transparent);
}

.seating-checkout-selection-summary-item[data-seat-summary-pending="true"] .seating-checkout-selection-summary-line {
    opacity: 0.82;
}

.seating-checkout-map-first-hint-summary {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 88%, transparent);
    line-height: 1.5;
}

#selected-seats-accessibility-summary {
    background: var(--seating-subtle-surface);
    border: 1px solid var(--seating-subtle-border);
    border-radius: 0.75rem;
    line-height: 1.5;
    padding: 0.6rem 0.75rem;
}

.seating-checkout-seat-fallback-list {
    background: var(--seating-subtle-surface);
    border: 1px solid var(--seating-subtle-border);
    border-radius: 0.75rem;
    margin-top: 0.35rem;
    padding: 0.35rem 0.55rem;
}

.seating-checkout-seat-fallback-item {
    list-style: none;
}

.seating-checkout-seat-fallback-button {
    justify-content: flex-start;
    padding: 0.55rem 0.2rem;
    text-align: left;
    text-transform: none;
}

.seating-checkout-seat-fallback-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mud-palette-secondary) 90%, transparent);
    outline-offset: 2px;
}

.seating-checkout-active-panel-stack {
    gap: 0.65rem;
}

.seating-checkout-active-panel-stack > .mud-typography-subtitle2:first-child {
    letter-spacing: 0.01em;
    font-weight: 700;
}

.seating-checkout-active-panel-stack :where(
    [data-testid="pending-seat-selection-summary"],
    [data-testid="pending-standing-selection-summary"],
    [data-testid="seat-fallback-summary"],
    #active-selection-panel-guidance
) {
    background: var(--seating-subtle-surface);
    border: 1px solid var(--seating-subtle-border);
    border-radius: 0.75rem;
    line-height: 1.5;
    padding: 0.6rem 0.75rem;
}

.seating-checkout-active-panel-stack .mud-button-root {
    text-transform: none;
}

.seating-checkout-swatch {
    align-items: center;
    border-radius: 0.45rem;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    height: 1.5rem;
    justify-content: center;
    line-height: 1;
    width: 1.5rem;
}

.seating-checkout-ticket-cta-row {
    display: flex;
    padding-top: 0.1rem;
}

.seating-checkout-cta-button:not(:disabled) {
    background: var(--mud-palette-secondary) !important;
    border-radius: 0;
    color: var(--mud-palette-secondary-text) !important;
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 3.65rem;
    min-width: 100%;
    padding: 0.45rem 1.7rem;
    text-transform: none;
}

.seating-checkout-cta-button:not(:disabled):hover {
    background: var(--mud-palette-secondary-darken) !important;
}

.seating-checkout-cta-button:disabled {
    background-color: var(--mud-palette-action-disabled-background) !important;
    color: var(--mud-palette-action-disabled) !important;
}

.seating-checkout-best-available-button {
    transition: box-shadow 120ms ease, outline-color 120ms ease;
}

.seating-checkout-best-available-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mud-palette-secondary) 90%, transparent);
    outline-offset: 2px;
}

.seating-checkout-mobile-sticky-shell {
    display: none;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .seating-checkout-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem);
    }
}

@media (max-width: 640px) {
    .seating-checkout-main-column {
        padding: 0;
    }

    .seating-checkout-workspace {
        grid-template-columns: 1fr;
    }

    .seating-checkout-map-section,
    .seating-checkout-ticket-column {
        grid-column: 1;
        grid-row: auto;
    }

    .seating-checkout-map-frame {
        min-height: 26rem;
        height: 60vh;
    }

    .seating-checkout-cta-button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .seating-checkout-page {
        padding-bottom: 7.5rem;
        padding-top: 0.75rem;
    }

    .seating-checkout-ticket-cta-row {
        display: none;
    }

    .seating-checkout-intro-title {
        font-size: 2rem;
    }

    .seating-checkout-map-frame {
        min-height: 22rem;
        height: 52vh;
    }

    .seating-checkout-description {
        font-size: 1rem;
    }

    .seating-checkout-mobile-sticky-shell {
        align-items: center;
        backdrop-filter: blur(14px);
        background: rgba(18, 24, 34, 0.94);
        border-top: 1px solid color-mix(in srgb, var(--mud-palette-secondary) 22%, transparent);
        bottom: 0;
        box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.34);
        display: flex;
        justify-content: flex-end;
        left: 0;
        padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
        position: sticky;
        right: 0;
        z-index: 20;
    }

    .seating-checkout-mobile-sticky-button {
        flex-shrink: 0;
        min-width: 9rem;
        text-transform: none;
    }
}