/* PublicShop.Web Styles
 * Uses CSS custom properties for vendor branding: --vendor-primary
 */

/* Header */
.shop-header {
    background-color: var(--vendor-primary, #3C60A8);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.shop-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    overflow-wrap: anywhere;
}

/* Footer */
.shop-footer {
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

/* Section titles */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    border-bottom: 3px solid var(--vendor-primary, #3C60A8);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Event Cards */
.event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.event-card.featured-card {
    border-color: var(--vendor-primary, #3C60A8);
    border-width: 2px;
}

.event-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-card-body {
    padding: 1rem;
}

/* Badges */
.event-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.category-badge {
    background-color: #e9ecef;
    color: #495057;
}

.featured-badge {
    background-color: var(--vendor-primary, #3C60A8);
    color: #fff;
}

/* Event card content */
.event-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
    margin-top: 0.5rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.vs-text {
    font-weight: 400;
    color: #6c757d;
    font-size: 0.9em;
}

.event-venue {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.event-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vendor-primary, #3C60A8);
}

/* Detail page */
.event-detail-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.event-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #16202B;
    margin: 0;
}

/* ── Redesigned event/seat-selection header (map-first) ────────────── */

/* Optional hero banner */
.event-hero {
    border: 1px solid #E2E7EC;
    border-radius: 12px;
    overflow: hidden;
}

.event-hero img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Header row: identity (left) + Details toggle (right) */
.event-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 4px 0 14px;
}

.event-header-main {
    flex: 1;
    min-width: 280px;
}

/* Teams-vs: name | logo | VS | logo | name */
.teams-vs-layout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.team-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.team-name {
    font-size: 23px;
    font-weight: 800;
    color: #16202B;
    line-height: 1.15;
}

.team-logo {
    height: 54px;
    width: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vs-badge {
    font-size: 13px;
    font-weight: 800;
    color: #8B97A3;
    padding: 4px 13px;
    border: 2px solid #E2E7EC;
    border-radius: 30px;
    line-height: 1;
}

/* Meta row under the title/teams */
.event-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 9px;
    font-size: 13px;
    color: #5B6B7B;
}

.event-meta-date {
    font-weight: 600;
    color: #3E4A56;
}

.event-meta-sep {
    color: #C4CCD4;
}

.season-badge {
    background: #EAF0F7;
    color: #3E5A80;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    padding: 2px 8px;
}

/* Details toggle button */
.details-toggle {
    border: 1px solid #CFD6DD;
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3E4A56;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.details-toggle:hover {
    border-color: var(--vendor-primary, #3C60A8);
}

.details-toggle-caret {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.details-toggle.open .details-toggle-caret {
    transform: rotate(180deg);
}

/* Collapsible details panel */
.event-details-panel {
    background: #fff;
    border: 1px solid #E2E7EC;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    font-size: 13px;
}

.details-label {
    color: #8B97A3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-value {
    font-weight: 600;
    color: #16202B;
    margin-top: 2px;
}

.details-description {
    margin: 12px 0 0;
    font-size: 13px;
    color: #5B6B7B;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .event-hero img {
        height: 130px;
    }
}

/* Info card */
.event-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
}

.info-row {
    padding: 0.3rem 0;
    color: #495057;
}

/* Price display */
.from-price-display {
    text-align: center;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vendor-primary, #3C60A8);
}

.sale-info {
    text-align: center;
}

/* Pricing table */
.pricing-section {
    margin-bottom: 2rem;
}

.pricing-table {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.pricing-table thead {
    background-color: var(--vendor-primary, #3C60A8);
    color: #fff;
}

.pricing-table thead th {
    font-weight: 600;
    padding: 0.75rem 1rem;
    border: none;
}

.pricing-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.pricing-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Empty state */
.empty-state {
    padding: 4rem 1rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .event-detail-title {
        font-size: 20px;
    }

    .event-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-header-main {
        min-width: 0;
        width: 100%;
    }

    .teams-vs-layout {
        justify-content: center;
        gap: 14px;
    }

    .team-name {
        font-size: 14px;
    }

    .team-logo {
        height: 42px;
        width: 42px;
    }

    .event-meta-row {
        justify-content: center;
    }

    .details-toggle {
        margin: 4px auto 0;
    }
}

/* ===== Venue Map ===== */

/* Map container */
.venue-map-container {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 60vh;
    background: #fafafa;
}
@media (max-width: 991.98px) { .venue-map-container { height: 55vh; } }
@media (max-width: 767.98px) { .venue-map-container { height: 50vh; } }

/* SVG fills container */
.venue-map-container svg { width: 100%; height: 100%; display: block; }

/* Section SVG interaction transitions */
.venue-map-container svg g[data-section-id] { transition: opacity 0.2s, stroke-width 0.2s; cursor: pointer; }

/* Tooltip */
.venue-map-tooltip { position: fixed; z-index: 1000; background: #fff; border: 1px solid #dee2e6; border-radius: 6px; padding: 10px 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.15); pointer-events: none; max-width: 280px; font-size: 0.875rem; }
.venue-map-tooltip .tooltip-name { font-weight: 600; margin-bottom: 2px; }
.venue-map-tooltip .tooltip-zone { color: #6c757d; font-size: 0.8rem; }
.venue-map-tooltip .tooltip-category { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.venue-map-tooltip .color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.venue-map-tooltip .tooltip-price { margin-top: 2px; color: #495057; }
.venue-map-tooltip .tooltip-seats { color: #6c757d; font-size: 0.8rem; margin-top: 2px; }

/* Venue Map Wrapper (for side panel layout) */
.venue-map-wrapper { position: relative; overflow: hidden; }

/* Fallback card grid */
.venue-fallback-grid .fallback-card { border: 1px solid #dee2e6; border-radius: 0.5rem; padding: 16px; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; }
.venue-fallback-grid .fallback-card:hover { border-color: var(--vendor-primary, #3C60A8); box-shadow: 0 2px 8px rgba(60,96,168,0.15); }
.venue-fallback-grid .fallback-card .card-section-name { font-weight: 600; margin-bottom: 4px; }
.venue-fallback-grid .fallback-card .card-zone { font-size: 0.85rem; color: #6c757d; }
.venue-fallback-grid .fallback-card .card-price-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.85rem; }
.venue-fallback-grid .fallback-card .card-price-badge .color-swatch { width: 12px; height: 12px; border-radius: 3px; }
.venue-fallback-grid .fallback-card .card-seats { font-size: 0.85rem; color: #6c757d; margin-top: 4px; }

/* ===== Auth Controls ===== */

/* Header auth section */
.shop-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    row-gap: 0.4rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-wrap: wrap;
}

/* Header row: identity (left) + auth controls (right). At narrow widths the
   auth block (cart icon, username, "Mijn bestellingen", "Mijn abonnementen",
   "Afmelden") is wide enough on its own to exceed the viewport — with the row
   forced to stay on one line, that block was pushed past the right edge of the
   screen, clipping "Mijn bestellingen" mid-word and dragging the document's
   scrollWidth past the viewport's clientWidth (confirmed via a 412px-viewport
   scrollWidth/clientWidth diagnostic: .shop-auth was the overflowing node, not
   .venue-map-container). Constrain by letting the row — and the auth block
   itself — wrap onto additional lines instead of forcing one unbroken row. */
.shop-header-row {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .shop-header-row {
        justify-content: center;
        text-align: center;
    }

    /* Higher specificity than Bootstrap's single-class .ms-auto so the auth
       block centers under the vendor name instead of being pushed off-screen. */
    .shop-header-row .shop-auth {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
}

.shop-auth-user {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-auth-link {
    color: #fff;
    text-decoration: none;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: background 0.15s, border-color 0.15s;
}

.shop-auth-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Sign-in banner (event detail page) */
.signin-banner {
    background: #f0f4fa;
    border: 1px solid #d0daf0;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #495057;
}

.signin-banner a {
    color: var(--vendor-primary, #3C60A8);
    font-weight: 600;
    text-decoration: none;
}

.signin-banner a:hover {
    text-decoration: underline;
}

/* ============================================================================
 * Vendor shop root (/shop/{slug}) — one hero + date-ordered list
 * ------------------------------------------------------------------------
 * Scoped to Pages/Shop/Index.cshtml. Deliberately does NOT reuse .event-card:
 * that is an event-detail component, and reusing it for list rows is what made
 * "featured" indistinguishable from "normal". Vendor colour still arrives via
 * --vendor-primary, exactly as everywhere else in this file.
 * ========================================================================= */

.shop-glyph-defs { display: none; }

/* Filtering hides rows and whole month groups; .event-row is display:grid, which
   would otherwise beat the UA stylesheet's [hidden] rule. Scoped to this page —
   shop.css is shared by every shop surface and a global !important here would
   silently change how `hidden` behaves on all of them. */
[data-shop-index] [hidden] { display: none !important; }

/* --- Hero: a distinct component, not a card with a heavier border --- */
.shop-hero {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
    background: linear-gradient(100deg, #253D75 0%, var(--vendor-primary, #3C60A8) 100%);
}

.shop-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 270px;
}

.shop-hero-copy {
    padding: 32px 34px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-hero-kicker {
    align-self: flex-start;
    background-color: #D4920A;
    color: #3a2600;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 4px;
}

.shop-hero-when {
    margin: 16px 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #B9CBE7;
}

.shop-hero-title {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.14;
    font-weight: 750;
    letter-spacing: -0.022em;
}

.shop-hero-vs {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.6;
    padding: 0 0.35em;
}

.shop-hero-meta {
    margin: 14px 0 0;
    font-size: 0.875rem;
    color: #DEE7F4;
}

.shop-hero-cta {
    align-self: flex-start;
    margin-top: 22px;
    background-color: #D4920A;
    color: #3a2600;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    transition: background-color 0.16s ease;
}

.shop-hero-cta:hover,
.shop-hero-cta:focus-visible { background-color: #B5790A; color: #3a2600; }

.shop-hero-art {
    background-color: #1D2F5C;
    display: grid;
    place-items: center;
}

.shop-hero-art .event-media { gap: 14px; }
.shop-hero-art .media-tile {
    width: 96px;
    height: 96px;
    font-size: 26px;
    border-color: rgba(255, 255, 255, 0.16);
}
.shop-hero-art .media-tile-placeholder svg { width: 40px; height: 40px; }

/* --- Filter chips: category is a filter, never the page's structure --- */
.shop-filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
    margin: 34px 0 8px;
}

.filter-chip {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    background-color: #fff;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.filter-chip:hover { border-color: #CBD5E1; color: #1E293B; }
.filter-chip:focus-visible { outline: 2px solid var(--vendor-primary, #3C60A8); outline-offset: 2px; }

.filter-chip[aria-pressed="true"] {
    background-color: var(--vendor-primary, #3C60A8);
    border-color: var(--vendor-primary, #3C60A8);
    color: #fff;
}

.filter-chip-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 7px;
}

.shop-filters-count {
    margin-left: auto;
    font-size: 0.83rem;
    color: #94A3B8;
}

/* --- Month marker --- */
.shop-month {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 30px 0 10px;
}

.shop-month h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94A3B8;
}

.shop-month-rule { flex: 1; height: 1px; background-color: #E2E8F0; }

/* --- Event row: stub | media | body | cta --- */
.event-row {
    display: grid;
    grid-template-columns: 78px 91px 1fr auto;
    gap: 18px;
    align-items: center;
    background-color: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 11px;
    padding: 15px 20px 15px 15px;
    margin-bottom: 9px;
    text-decoration: none;
    transition: border-color 0.17s ease, box-shadow 0.17s ease, transform 0.17s ease;
}

.event-row:hover {
    border-color: #CBD5E1;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.event-row:focus-visible {
    outline: 2px solid var(--vendor-primary, #3C60A8);
    outline-offset: 2px;
}

/* Signature detail: the perforation from the Ticketminds ticket mark, used as the
   date-stub divider. Pure CSS, no image. */
.date-stub {
    position: relative;
    text-align: center;
    padding-right: 22px;
}

.date-stub::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    right: 0;
    width: 2px;
    background-image: linear-gradient(#CBD5E1 55%, transparent 0);
    background-size: 2px 8px;
}

.date-stub-day {
    display: block;
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0F172A;
}

.date-stub-weekday {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--vendor-primary, #3C60A8);
}

.date-stub-time {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #94A3B8;
}

/* --- Media slot: fixed width so every title starts at the same x --- */
.event-media { display: flex; align-items: center; gap: 7px; }

.media-tile {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    flex-shrink: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 750;
    color: #64748B;
    background-color: #fff;
    border: 1px solid #E2E8F0;
}

/* A club mark is often a wide wordmark — contain, never crop. */
.media-tile img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* A photo is fine cropped to the square, and must not letterbox. */
.media-tile-photo { padding: 0; border-color: transparent; }
.media-tile-photo img { object-fit: cover; padding: 0; }

.media-tile-placeholder svg { width: 20px; height: 20px; opacity: 0.55; }

/* --- Row body --- */
.event-row-body { min-width: 0; }

.event-row-title {
    display: block;
    margin-bottom: 3px;
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.011em;
    color: #0F172A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-row-vs {
    font-weight: 500;
    font-size: 0.9rem;
    color: #94A3B8;
    padding: 0 0.35em;
}

.event-row-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.855rem;
    color: #64748B;
}

.event-row-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #F1F5F9;
    color: #475569;
}

.event-row-go {
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
    color: var(--vendor-primary, #3C60A8);
}

.event-row:hover .event-row-go { text-decoration: underline; }

/* --- Abonnementen: a real destination, not a lone button above the list --- */
.passes-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 38px 0 46px;
    padding: 20px 24px;
    background-color: #fff;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #D4920A;
    border-radius: 11px;
}

.passes-card h4 { margin: 0 0 3px; font-size: 1rem; font-weight: 700; color: #0F172A; }
.passes-card p { margin: 0; font-size: 0.885rem; color: #475569; }

.passes-card-cta {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 7px;
    border: 1px solid #CBD5E1;
    background-color: #fff;
    color: #1E293B;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.passes-card-cta:hover,
.passes-card-cta:focus-visible {
    border-color: var(--vendor-primary, #3C60A8);
    color: var(--vendor-primary, #3C60A8);
}

@media (max-width: 767.98px) {
    .shop-hero-inner { grid-template-columns: 1fr; }
    .shop-hero-art { height: 150px; order: -1; }
    .shop-hero-art .media-tile { width: 72px; height: 72px; font-size: 20px; }
    .shop-hero-copy { padding: 24px 22px; }
    .shop-hero-title { font-size: 1.45rem; }

    .event-row { grid-template-columns: 58px 91px 1fr; gap: 13px; padding: 14px; }
    .date-stub { padding-right: 14px; }
    .date-stub-day { font-size: 1.35rem; }

    .event-row-go {
        grid-column: 1 / -1;
        margin-top: 3px;
        padding-top: 11px;
        border-top: 1px solid #E2E8F0;
        text-align: right;
    }

    .passes-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .passes-card-cta { margin-left: 0; }
}
