/* F1 Ticket Layout Styles */
.f1-ticket-layout {
    /* max-width: 1200px; */
    margin: 0 auto;
    font-family: "work sans";
    line-height: 1.6;
    color: #333;
}

.f1-ticket-layout * {
    box-sizing: border-box;
}

.seating-chart-image {
    text-align: -webkit-center;
}

/* Main Container */
.gpe-package-page {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* gap: 30px; */
    /* padding: 0px 20px 20px 20px; */
}

@media (max-width: 768px) {
    .gpe-package-page {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
}

/* Sidebar - Form and Seating Chart */
.form-and-seating-chart {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    position: relative;
    
    /*  background-color: #f7f7f7; */
}

.gpe-seating-chart-image {
    position: relative;
    height: 300px;
    overflow: hidden;
     background-color: #f7f7f7;
    /* border-radius: 8px; */
}

.seating-chart-image::after {
    background-color: #db0032;
    bottom: 0px;
    content: "";
    height: 16px;
    left: -3px;
    position: absolute;
    -webkit-transform: skew(-20deg);
    transform: skew(-20deg);
    width: 30%;
}

.gpe-seating-chart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gpe-seating-chart-image {
        display: none;
    }
}

/* Red Form Container */
.red-form {
    background: #db0032;
    /* border-radius: 12px; */
    padding: 25px;
    color: white;
    /* box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3); */
}

.red-form .details {
    width: 100%;
}

/* Pricing Header */
.pricing_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Work Sans';
    color: #272727;
}

.pricing_header .field {
    flex-shrink: 0;
    /* border: 1px solid #ccc;
            font-size: 12px; */
    max-height: 30px;
}

.form-control.currency {
    /* background: rgba(255, 255, 255, 0.9); */
    border: 1px solid #ccc;
    /* border-radius: 6px; */
    padding: 6px 10px;
    color: #272727;
    font-weight: 500;
    min-width: 80px;
    font-family: 'work sans';
    font-size: 12px;
}

.form-control.currency:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Package Form */
.package_purchasing_form {
    /* background: rgba(255, 255, 255, 0.1); */
    border-radius: 8px;
    /* padding: 20px; */
    backdrop-filter: blur(10px);
}

.package_purchasing_form .heading {
    margin-bottom: 0;
}

div#packageForm {
    background: #fff;
    padding: 20px;
}

.heading {
    margin-bottom: 15px;
}

.occupancy-desc {
    font-size: 17px;
    font-weight: 600;
    color: #272727;
    font-family: 'Work Sans';
}

/* Package and Quantity Selection */
.new_order_item {
    margin-bottom: 20px;
}

.package-and-quantity {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 25px;
}

@media (max-width: 480px) {
    .package-and-quantity {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.form-group {
    /* margin-bottom: 15px; */
}


.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    /* color: rgba(255, 255, 255, 0.9); */
    color: #272727;
    font-family: 'Work Sans';
    font-size: 13px;
}

select#vue_package_id {
    font-size: 11px;
    border: 1px solid #ccc;
}

select#bottom_form_customer_qty {
    font-size: 11px;
    border: 1px solid #ccc;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* border-radius: 6px; */
    /* background: rgba(255, 255, 255, 0.9); */
    color: #272727;
    font-size: 12px;
}

.form-control:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-control option {
    background: white;
    color: #333;
}

/* Add to Cart Button */
.f1-add-to-cart {
    background: #272727 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    /* border-radius: 6px !important; */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: 'Work Sans';
}

.f1-add-to-cart:hover {
    background: #272727 !important;
    transform: translateY(-1px) !important;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; */
}

.f1-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Subtotal */
.money-info {
    /* margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); */
    font-size: 18px;
    text-transform: uppercase;

}

.subtotal {
    font-size: 18px;
    font-weight: 300;
    color: #272727;
    margin: 0;
    font-family: 'Work Sans';
}

.currency-to-update {
    font-size: 18px;
    font-weight: 700;
    color: #272727;
    margin: 0;
    font-family: 'Work Sans';
}

/* Disclaimers */
.tax_disclaimer,
.currency-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    line-height: 1.4;
}

span.tax_disclaimer.small {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    margin: 0;
    font-family: 'Work Sans';
}

.currency-disclaimer.small span {
    font-size: 13px;
    font-weight: 300;
    color: #000;
    margin: 0;
    font-family: 'Work Sans';
}

.currency-disclaimer {
    margin-top: 5px;
}

/* Content Section */
.gpe-package-details {
    /* background: #fff; */
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
}

.ticket-header-image.mobile {
    display: none;
}

@media (max-width: 768px) {
    .ticket-header-image.mobile {
        display: block;
        position: relative;
        height: 400px;
        overflow: hidden;
    }

    .ticket-header-image.mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .white-arrow {
        position: absolute;
        bottom: 10px;
        right: 20px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid white;
    }

    .mobile-seating-chart-container {
        order: 2;
    }

    .seating-chart-image::after {
        display: none;
    }
}

.extend-section-full-width {
    padding: 30px;
}

@media (max-width: 768px) {
    .extend-section-full-width {
        padding: 20px;
    }
}

/* Product Title and Days */
.gpe-package-details h1 {
    font-size: 45px;
    color: #272727;
    font-style: normal;
    font-weight: 300;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: "work sans";
}

p.ticket-days {
    color: #db0032;
    font-family: "Gilroy", sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .5pt;
    text-transform: uppercase;
}

.package-body-description {
    font-size: 15px;
    font-family: 'Work Sans';
    color: #272727;
}

/* Facilities */
.facilities {
    margin-bottom: 40px;
    display: inline-block;
}

.facilities ul {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.facilities li {
    position: relative;
    cursor: pointer;
}

.facilities li::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.numbered-seating::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><path d="M3 5v14h18V5H3zm2 2h14v10H5V7z"/></svg>');
}

.tv-screen::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><path d="M2 4v16h20V4H2zm2 2h16v12H4V6z"/></svg>');
}

.wheelchair-access::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><circle cx="15" cy="15" r="2"/><path d="M17 19h2v2h-2v-2zm-4 0h2v2h-2v-2zM5 5h14v10H5V5zm0 2v6h14V7H5z"/></svg>');
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    background: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.facilities li:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Description */
.f1-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #4b5563;
}

.f1-description p {
    margin-bottom: 15px;
}

.small {
    font-size: 0.875em;
    color: #6b7280;
}

/* Ticket Includes */
.ticket-includes {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
}

.ticket-includes li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #4b5563;
    font-size: 15px;
}

.ticket-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

/* Loading State */
.f1-loading {
    opacity: 0.7;
    pointer-events: none;
}

.f1-loading .f1-add-to-cart {
    position: relative;
}

.f1-loading .f1-add-to-cart::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #dc2626;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Message */
.f1-success-message {
    background: #10b981;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .f1-ticket-layout {
        padding: 10px;
    }

    .red-form {
        padding: 20px;
    }

    .gpe-package-details h1 {
        font-size: 1.8em;
    }

    .facilities ul {
        flex-wrap: wrap;
    }

    .package-and-quantity {
        grid-template-columns: 1fr;
    }

    .extend-section-full-width {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .pricing_header {
        /* flex-direction: column; */
        gap: 15px;
        text-align: center;
    }

    .pricing_header h2 {
        margin: 0;
    }

    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* WooCommerce Integration */
.woocommerce .f1-ticket-layout .quantity input[type="number"] {
    display: none;
}

.f1-ticket-layout .single_add_to_cart_button {
    display: none;
}

/* Animation on load */
.f1-ticket-layout {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* F1 Ticket Layout - Gallery section styles (only for .package-gallery) */
/* Place this file in assets/css/f1-ticket-layout.css and ensure it's enqueued. */

.package-gallery {
    margin-top: 80px;
    width: 100%;
    box-sizing: border-box;
}

/* Wrapper to center and constrain width if needed */
.package-gallery .media-grid-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Grid: left large image, right column with two stacked images */
.media-container-lg-img.media-container-lg-3-img {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

/* Anchor blocks act as grid items; we'll control placement below */
/* First anchor is the large left image spanning both rows */
.media-container-lg-img.media-container-lg-3-img>a:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: block;
    overflow: hidden;
    /* border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); */
}

/* Second and third anchors stack in right column */
.media-container-lg-img.media-container-lg-3-img>a:nth-child(2),
.media-container-lg-img.media-container-lg-3-img>a:nth-child(3) {
    grid-column: 2 / 3;
    display: block;
    overflow: hidden;
    /* border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); */
}

/* Ensure each right anchor occupies its own row */
.media-container-lg-img.media-container-lg-3-img>a:nth-child(2) {
    grid-row: 1 / 2;
}

.media-container-lg-img.media-container-lg-3-img>a:nth-child(3) {
    grid-row: 2 / 3;
}

/* Image styling */
.package-gallery .media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* subtle hover zoom */
.media-container-lg-img.media-container-lg-3-img>a:hover .media-item {
    transform: scale(1.03);
}

/* make anchor fill item */
.media-container-lg-img.media-container-lg-3-img>a {
    width: 100%;
    height: 100%;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
    .media-container-lg-img.media-container-lg-3-img {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .media-container-lg-img.media-container-lg-3-img>a:nth-child(1),
    .media-container-lg-img.media-container-lg-3-img>a:nth-child(2),
    .media-container-lg-img.media-container-lg-3-img>a:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .media-container-lg-img.media-container-lg-3-img>a {
        height: 260px;
    }
}

/* Accessibility: focus outline for keyboard users */
.media-container-lg-img.media-container-lg-3-img>a:focus {
    outline: 3px solid rgba(0, 0, 0, 0.12);
    outline-offset: 3px;
}

/* Optional small spacing tweaks for container when content width is narrow */
.media-container-lg-img.media-container-lg-3-img > a:focus {
    outline: 0px solid rgb(255 255 255 / 0%);
    /* outline-offset: 3px; */
}








































@media (min-width: 1025px) {
    .gpe-package-page .gpe-seating-chart-image.desktop {
        display: block;
    }
    .form-and-seating-chart {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    transition: height .5s ease-out;

}
.nav-shift .gpe-package-page .form-and-seating-chart {
    top: 70px;
}

.gpe-seating-chart-image.desktop {
    height: 258px;
}
    .form-and-seating-chart {
        position: sticky;
        top: 0;
        width: 100%;
    }
    
.gpe-package-page .gpe-seating-chart-image {
    background-color: rgb(247, 247, 247);
    overflow: hidden;
    position: relative;
    transition: transform .5s ease-out,
        -webkit-transform .5s ease-out;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
}

.gpe-package-page .red-form {
    overflow: auto;
    background-color: #db0032;
    /* margin-top: -7px; */
    padding: 30px;
    z-index: 1;
    height: 50%;
}
}