/* ========================================
   SINGLE EVENT PAGE
   ======================================== */

/* Remove default WooCommerce styling */
.tr-single-event .woocommerce-breadcrumb,
.tr-single-event .related.products,
.tr-single-event .woocommerce-tabs,
.tr-single-event .product_meta {
    display: none !important;
}

/* Hide the theme-level WooCommerce breadcrumb */
body.single-product .woocommerce-breadcrumb {
    display: none !important;
}

/* Make event template break out of WooCommerce container */
/* Remove white gap from WooCommerce/theme wrappers */
body.single-product #primary,
body.single-product .site-main,
body.single-product .product {
    background: var(--color-bg-section);
    padding: 0;
    margin: 0;
}

.tr-single-event {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--color-bg-section);
}

/* ========================================
   HERO SECTION
   ======================================== */
.tr-se-hero {
    position: relative;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-color: #111;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.tr-se-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

.tr-se-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 40px 48px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.tr-se-hero__content {
    flex: 1;
    min-width: 0;
}

.tr-se-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.tr-se-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.tr-se-hero__breadcrumb a:hover {
    color: #fff;
}

.tr-se-hero__tag {
    margin-left: 8px;
    margin-bottom: 0;
    position: relative;
    top: -1px;
}

.tr-se-hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.05;
    margin: 0 0 24px;
}

.tr-se-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.tr-se-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
}

.tr-se-hero__meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.tr-se-hero__circuit-svg {
    flex-shrink: 0;
    width: 200px;
    opacity: 0.25;
    filter: brightness(0) invert(1);
}

.tr-se-hero__circuit-svg img {
    width: 100%;
    height: auto;
}

/* ========================================
   INFO BAR
   ======================================== */
.tr-se-infobar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tr-se-infobar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: stretch;
}

.tr-se-infobar__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
}

.tr-se-infobar__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.tr-se-infobar__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tr-se-infobar__label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tr-se-infobar__text strong {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-se-infobar__avail--open,
.tr-se-infobar__avail--spots-left {
    color: #22a653 !important;
}

.tr-se-infobar__avail--almost-full {
    color: #e88c1a !important;
}

.tr-se-infobar__avail--sold-out {
    color: var(--color-accent) !important;
}

.tr-se-infobar__price {
    color: var(--color-accent) !important;
    font-size: 16px !important;
}

.tr-se-infobar__divider {
    width: 1px;
    background: var(--color-border);
    align-self: stretch;
    margin: 12px 16px;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.tr-se-content {
    background: var(--color-bg-section);
    padding: 48px 0 80px;
}

.tr-se-content__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.tr-se-content__main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ========================================
   CONTENT BLOCKS
   ======================================== */
.tr-se-block {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tr-se-block__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.tr-se-block__title svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.tr-se-prose {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.tr-se-prose p {
    margin: 0 0 16px;
}

.tr-se-prose p:last-child {
    margin-bottom: 0;
}

/* ========================================
   SCHEDULE
   ======================================== */
.tr-se-schedule {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tr-se-schedule__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.tr-se-schedule__row:last-child {
    border-bottom: none;
}

.tr-se-schedule__time {
    flex-shrink: 0;
    width: 70px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

.tr-se-schedule__line {
    flex-shrink: 0;
    width: 24px;
    height: 2px;
    background: #e0e0e0;
    border-radius: 1px;
}

.tr-se-schedule__desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-dark);
    font-weight: 500;
}

/* ========================================
   CIRCUIT DETAILS
   ======================================== */
.tr-se-circuit {
    display: flex;
    gap: 32px;
    align-items: center;
}

.tr-se-circuit__layout {
    flex-shrink: 0;
    width: 180px;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr-se-circuit__layout img {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.tr-se-circuit__info {
    flex: 1;
    min-width: 0;
}

.tr-se-circuit__name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.tr-se-circuit__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.tr-se-circuit__location svg {
    flex-shrink: 0;
}

.tr-se-circuit__stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.tr-se-circuit__stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tr-se-circuit__stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.tr-se-circuit__stat-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tr-se-circuit__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.2s;
}

.tr-se-circuit__link:hover {
    gap: 10px;
    color: var(--color-accent-hover);
}

/* ========================================
   GALLERY
   ======================================== */
.tr-se-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tr-se-gallery__item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.tr-se-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tr-se-gallery__item:hover img {
    transform: scale(1.05);
}

.tr-se-gallery__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.tr-se-gallery__item:hover .tr-se-gallery__zoom {
    opacity: 1;
}

/* Lightbox */
.tr-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.tr-lightbox.is-open {
    display: flex;
}

.tr-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.tr-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tr-lightbox__close:hover { opacity: 1; }

.tr-lightbox__prev,
.tr-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 8px 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tr-lightbox__prev:hover,
.tr-lightbox__next:hover { opacity: 1; }

.tr-lightbox__prev { left: 12px; }
.tr-lightbox__next { right: 12px; }

.tr-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 14px;
}

/* ========================================
   BOOKING CARD (Sidebar)
   ======================================== */
.tr-se-booking-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.tr-se-booking-card__date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tr-se-booking-card__date-day {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.tr-se-booking-card__date-month {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tr-se-booking-card__date-year {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-muted);
}

.tr-se-booking-card__price {
    margin-bottom: 16px;
}

.tr-se-booking-card__price-label {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.tr-se-booking-card__price-amount {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1;
}

.tr-se-booking-card__price-amount .woocommerce-Price-currencySymbol {
    font-size: 28px;
}

/* Availability */
.tr-se-booking-card__avail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.tr-se-booking-card__avail--open .tr-dot,
.tr-se-booking-card__avail--spots-left .tr-dot {
    background: #22a653;
}
.tr-se-booking-card__avail--open,
.tr-se-booking-card__avail--spots-left {
    color: #22a653;
}

.tr-se-booking-card__avail--almost-full .tr-dot {
    background: #e88c1a;
}
.tr-se-booking-card__avail--almost-full {
    color: #e88c1a;
}

.tr-se-booking-card__avail--sold-out .tr-dot {
    background: var(--color-accent);
}
.tr-se-booking-card__avail--sold-out {
    color: var(--color-accent);
}

/* Progress bar */
.tr-se-booking-card__progress {
    margin-bottom: 24px;
}

.tr-se-booking-card__progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tr-se-booking-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #ff6b6b);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.tr-se-booking-card__progress-text {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Book button */
.tr-se-booking-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 24px;
}

.tr-se-booking-card__btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.tr-se-booking-card__btn:active {
    transform: translateY(0);
}

.tr-se-booking-card__sold-out-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: #f5f5f5;
    color: #999;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Highlights */
.tr-se-booking-card__highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.tr-se-booking-card__highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.tr-se-booking-card__highlight svg {
    flex-shrink: 0;
    color: #22a653;
    margin-top: 1px;
}

/* ========================================
   SHARE SECTION
   ======================================== */
.tr-se-content__sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* Calendar */
.tr-se-calendar {
    margin-top: 16px;
    text-align: center;
}
.tr-se-calendar__label {
    font-size: 13px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}
.tr-se-calendar__links {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.tr-se-calendar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}
.tr-se-calendar__btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: #fef2f2;
}
.tr-se-calendar__btn svg { flex-shrink: 0; }

.tr-se-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.tr-se-share__label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
}

.tr-se-share__links {
    display: flex;
    gap: 8px;
}

.tr-se-share__link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tr-se-share__link:hover {
    background: var(--color-text-dark);
    color: #fff;
}

.tr-se-share__link--whatsapp:hover {
    background: #25D366;
    color: #fff;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .tr-se-content__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tr-se-content__sidebar {
        order: -1;
        position: static;
    }

    .tr-se-hero__tag {
        display: none;
    }

    .tr-se-hero__title {
        font-size: 42px;
    }

    .tr-se-hero__circuit-svg {
        display: none;
    }
}

@media (max-width: 768px) {
    .tr-se-hero {
        min-height: 360px;
    }

    .tr-se-hero__inner {
        padding: 40px 20px 32px;
    }

    .tr-se-hero__title {
        font-size: 32px;
    }

    .tr-se-hero__meta {
        flex-direction: column;
        gap: 12px;
    }

    .tr-se-infobar__inner {
        flex-direction: column;
        padding: 0 20px;
    }

    .tr-se-infobar__item {
        padding: 12px 0;
    }

    .tr-se-infobar__divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .tr-se-content__inner {
        padding: 0 20px;
    }

    .tr-se-block {
        padding: 24px 20px;
    }

    .tr-se-circuit {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-se-circuit__layout {
        width: 140px;
    }

    .tr-se-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-se-booking-card {
        padding: 24px 20px;
    }

    .tr-se-booking-card__date-day {
        font-size: 44px;
    }

    .tr-se-booking-card__price-amount {
        font-size: 32px;
    }
}
