* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: #211f1b;
    background: #f7f2ea;
}

.events-page-shell {
    min-height: 100vh;
}

.events-hero {
    min-height: 42vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 44px;
    color: #fffaf2;
    background:
        linear-gradient(rgba(30, 24, 18, 0.38), rgba(30, 24, 18, 0.58)),
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #5c4a37, #1f241d);
}

.events-eyebrow {
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.events-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(3rem, 6vw, 6.2rem);
    line-height: 0.94;
    font-weight: 400;
    letter-spacing: -0.06em;
}

.events-hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    font-size: 1.2rem;
    line-height: 1.55;
    color: rgba(255, 250, 242, 0.82);
}

.events-list-section {
    max-width: 1380px;
    margin: 0 auto;
    padding: 44px;
}

.events-section-header {
    margin-bottom: 28px;
}

.events-section-header .events-eyebrow {
    color: #6f1d1b;
}

.events-section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.04em;
}

/* ==========================================================
   PUBLIC EVENT GRID
   The shared store-card stylesheet owns the 620px perimeter.
========================================================== */

.events-panel-list,
#eventsListMount {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: stretch;

    width: 100%;
    margin: 0;
    padding: 0;

    column-gap: 30px;
    row-gap: 38px;
}

.events-panel-list>*,
#eventsListMount>* {
    width: 100%;
    min-width: 0;
    margin: 0;
}


/* ==========================================================
   BADGE-LED EVENT CARD
========================================================== */

.store-card--event {
    background: #fffaf2;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.store-card--event:hover {
    transform: translateY(-4px);

    border-color:
        rgba(111, 29, 27, 0.24);

    box-shadow:
        0 26px 65px rgba(33, 31, 27, 0.14);
}

.store-card--event.event-card--highlighted {
    border-color:
        rgba(111, 29, 27, 0.52);

    box-shadow:
        0 0 0 4px rgba(111, 29, 27, 0.10),
        0 26px 65px rgba(33, 31, 27, 0.14);
}


/* ==========================================================
   BADGE HERO
   Expands the visual zone without changing total card height.
========================================================== */

.store-card--event .store-card__visual {
    flex: 0 0 390px;

    width: 100%;
    height: 390px;
    min-height: 390px;
}

.store-card--event .event-card-badge-hero {
    position: relative;

    display: grid;
    place-items: center;

    padding: 12px 18px;

    overflow: hidden;

    background: #0b0b08;
}

.store-card--event .event-card-badge-hero-image {
    display: block;

    width: 92%;
    height: 92%;

    object-fit: contain;
    object-position: center;

    transform: none;

    transition:
        transform 260ms ease;

    filter:
        drop-shadow(0 16px 26px rgba(0, 0, 0, 0.28));
}

.store-card--event:hover .event-card-badge-hero-image {
    transform: scale(1.012);
}


.store-card--event .event-card-badge-hero-placeholder {
    display: grid;
    place-items: center;

    width: 240px;
    height: 240px;

    border:
        2px solid rgba(183, 154, 91, 0.58);
    border-radius: 50%;

    background: #12120f;
    color: #d2b467;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 5rem;
}


/* ==========================================================
   BADGE HERO CHIPS
========================================================== */


.store-card--event .event-card-date-chip {
    position: absolute;
    z-index: 3;

    font-family:
        Arial,
        sans-serif;

    text-transform: uppercase;
}



.store-card--event .event-card-date-chip {
    top: 18px;
    right: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 60px;
    min-height: 68px;
    padding: 8px;

    border-radius: 17px;

    background:
        rgba(255, 250, 242, 0.95);

    color: #211f1b;

    box-shadow:
        0 10px 30px rgba(33, 31, 27, 0.16);
}

.event-date-chip-month {
    color: #6f1d1b;

    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.event-date-chip-day {
    margin-top: 2px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}


/* ==========================================================
   COMPACT EVENT CARD BODY
========================================================== */

.store-card--event .store-card__body {
    padding: 12px 22px 14px;
}

.store-card--event .event-card-identity {
    margin-bottom: 5px;
}

.store-card--event .event-card-title {
    min-height: 0;
    margin: 0;

    overflow-wrap: anywhere;

    font-size:
        clamp(1.7rem,
            2.2vw,
            2.15rem);

    line-height: 1.02;
}





/* ==========================================================
   DATE AND TIME
========================================================== */

.store-card--event .event-card-meta {
    display: grid;
    align-content: start;
    gap: 3px;

    min-height: 0;
    margin-top: 7px;
}

.store-card--event .event-card-meta p {
    display: grid;

    grid-template-columns:
        17px minmax(0, 1fr);

    align-items: start;
    gap: 8px;

    margin: 0;

    color:
        rgba(33, 31, 27, 0.68);

    font-family:
        Arial,
        sans-serif;

    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.025em;
}

.store-card--event .event-card-meta i {
    width: 17px;
    padding-top: 1px;

    color: #a2864c;
    text-align: center;
}


/* ==========================================================
   PRICE
========================================================== */

.store-card--event .event-card-commerce {
    margin-top: 10px;
}

.store-card--event .event-card-price {
    display: grid;
    grid-template-columns:
        auto 1px minmax(0, 1fr);
    align-items: center;
    gap: 16px;

    width: 100%;
    min-width: 0;
    padding: 10px 14px;

    border:
        1px solid rgba(33, 31, 27, 0.09);
    border-radius: 17px;

    background: #f7f2ea;
}

.store-card--event .event-card-price-value {
    display: grid;
    gap: 3px;
}

.store-card--event .event-card-price-value span {
    color:
        rgba(33, 31, 27, 0.52);

    font-family:
        Arial,
        sans-serif;

    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.store-card--event .event-card-price-value strong {
    color: #211f1b;

    font-size: 1.22rem;
    font-weight: 400;
    line-height: 1.05;
}

.store-card--event .event-card-commerce-divider {
    width: 1px;
    height: 38px;

    background:
        rgba(33, 31, 27, 0.16);
}

.store-card--event .event-card-ticket-status {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;

    color: #8b231f;

    font-family:
        Arial,
        sans-serif;

    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.store-card--event .event-card-ticket-status i {
    flex: 0 0 auto;

    font-size: 0.9rem;
}

.store-card--event .event-card-availability {
    display: grid;
    gap: 4px;
    min-width: 0;
}

/* ==========================================================
   VIEW EVENT FOOTER
========================================================== */

.store-card--event .event-card-footer {
    grid-template-columns: 1fr;

    min-height: 44px;
    margin-top: auto;
    padding-top: 9px;
}

.store-card--event .event-card-primary-action {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;

    border:
        1px solid #211f1b;
    border-radius: 999px;

    background: #211f1b;
    color: #fffaf2;

    cursor: pointer;

    font-family:
        Arial,
        sans-serif;

    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;

    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}

.store-card--event .event-card-primary-action:hover {
    transform: translateY(-1px);

    border-color: #6f1d1b;
    background: #6f1d1b;
}

.store-card--event .event-card-primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}


/* ==========================================================
   EMPTY STATES
========================================================== */

.events-loading,
.events-empty {
    grid-column: 1 / -1;

    color:
        rgba(33, 31, 27, 0.72);

    font-size: 1.08rem;
    line-height: 1.75;
}


/* ==========================================================
   RESPONSIVE EVENT GRID
========================================================== */

@media (max-width: 1100px) {

    .events-panel-list,
    #eventsListMount {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 26px;
        row-gap: 34px;
    }
}

@media (max-width: 760px) {

    .events-hero {
        min-height: 58vh;
        padding: 72px 24px;
    }

    .events-list-section {
        padding: 42px 20px;
    }

    .events-panel-list,
    #eventsListMount {
        grid-template-columns:
            minmax(0, 1fr);

        row-gap: 28px;
    }

    .store-card--event {
        border-radius: 22px;
    }

    .store-card--event .store-card__visual {
        flex-basis: 360px;

        height: 360px;
        min-height: 360px;
    }
}

/* ==========================================================
   EVENT SHARE COPY TOAST
   ========================================================== */

.event-panel-share {
    position: relative;
}

.copy-toast {
    position: absolute;

    left: -12px;
    top: calc(100% + 6px);

    padding: 5px 10px;

    border-radius: 999px;

    background: #6f1d1b;
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;

    opacity: 0;
    transform: translateY(4px);

    transition:
        opacity .18s ease,
        transform .18s ease;

    pointer-events: none;
    z-index: 100;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   INLINE TICKET MODAL
   ========================================================== */

.ticket-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(33, 31, 27, 0.58);
    backdrop-filter: blur(5px);
}

.ticket-modal-card {
    position: relative;

    width: min(520px, 94vw);
    max-height: calc(100vh - 32px);
    overflow-y: auto;

    padding: 28px;

    border-radius: 28px;

    background: #fffaf2;
    color: #211f1b;

    border: 1px solid rgba(33, 31, 27, 0.14);
    box-shadow: 0 30px 90px rgba(33, 31, 27, 0.28);
}

.ticket-modal-hero {
    width: 100%;
    height: clamp(108px, 20vh, 156px);
    margin: -8px 0 20px;
    overflow: hidden;
    border-radius: 18px;
    background: #e8e0d4;
}

.ticket-modal-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ticket-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;

    width: 34px;
    height: 34px;

    border-radius: 999px;
    border: 1px solid rgba(33, 31, 27, 0.14);

    background: transparent;
    color: #211f1b;
    cursor: pointer;

    font-size: 22px;
    line-height: 1;
}

.ticket-modal-close:hover,
.ticket-modal-close:focus-visible {
    background: #fffaf2;
    border-color: rgba(33, 31, 27, 0.4);
    outline: 2px solid rgba(156, 42, 37, 0.32);
    outline-offset: 2px;
}

.ticket-modal-eyebrow {
    margin: 0 0 10px;

    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #6f1d1b;
}

.ticket-modal-card h3 {
    margin: 0;

    font-size: clamp(1.85rem, 6vw, 2.4rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.ticket-modal-date {
    margin: 12px 0;

    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(33, 31, 27, 0.64);
}

.ticket-modal-inventory {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(139, 35, 31, 0.18);
    border-radius: 14px;
    background: #f7f2ea;
    color: #8b231f;
}

.ticket-modal-inventory > i {
    font-size: 1.15rem;
}

.ticket-modal-inventory div {
    display: grid;
    gap: 2px;
}

.ticket-modal-inventory strong {
    font-family: Arial, sans-serif;
    font-size: 0.86rem;
}

.ticket-modal-inventory span {
    color: rgba(33, 31, 27, 0.62);
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
}

.ticket-form-grid {
    display: grid;
    gap: 12px;
}

.ticket-form-grid label {
    display: grid;
    gap: 6px;

    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(33, 31, 27, 0.7);
}

.ticket-form-grid input,
.ticket-form-grid select {
    width: 100%;

    min-height: 44px;
    padding: 0 14px;

    border-radius: 14px;
    border: 1px solid rgba(33, 31, 27, 0.16);

    background: #f7f2ea;
    color: #211f1b;

    font-size: 1rem;
}

.ticket-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 18px;
    padding: 14px 0;

    border-top: 1px solid rgba(33, 31, 27, 0.12);
    border-bottom: 1px solid rgba(33, 31, 27, 0.12);
}

.ticket-total-row span {
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ticket-total-row strong {
    font-size: 1.4rem;
    font-weight: 400;
}

.ticket-payment-placeholder {
    margin-top: 16px;
    padding: 16px;

    border-radius: 16px;
    border: 1px dashed rgba(111, 29, 27, 0.28);

    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: rgba(33, 31, 27, 0.56);
}

.ticket-pay-button {
    width: 100%;
    min-height: 48px;

    margin-top: 18px;

    border: 0;
    border-radius: 999px;

    background: #6f1d1b;
    color: #fffaf2;

    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ticket-modal-status {
    min-height: 18px;
    margin: 12px 0 0;

    font-family: Arial, sans-serif;
    font-size: 0.78rem;

    color: #6f1d1b;
}

@media (max-width: 560px) {
    .ticket-modal-overlay {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    .ticket-modal-card {
        width: 100%;
        max-height: none;
        padding: 22px;
    }

    .ticket-modal-hero {
        height: 124px;
        margin-bottom: 16px;
    }
}
.event-card-seat-inventory {
    color: rgba(33, 31, 27, 0.68);
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-card-primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
