.show-details {
    flex: 1;  /* Allow this section to grow and push the actions down */
}

.show-actions {
    margin-top: auto; /* This pushes the booking button to the bottom of the card */
}

.show-card {
    display: flex;
    flex-direction: column;
}

/* Countdown CSS */
#countdown {
    text-align: center;
    margin-top: 40px;
    display: none; /* Initially hidden */
    color: black;
}
#countdown h2 {
    /*SHREK color: #b9ff2c!important;*/
    color: #ff5900 !important;
    font-weight: bold;
    font-size: 60px;
    display: inline;
}
#countdown br {
    content: "";
    display: block;
    font-size: 100%;
}

#countdown-alternate {
    text-align: center;
    margin-top: 40px;
    display: none; /* Initially hidden */
    color: black;
}
#countdown-alternate h2 {
    color: #ff5900 !important;
    /*color: #b9ff2c!important;*/
    font-weight: bold;
    font-size: 60px;
    display: inline;
}
#countdown-alternate br {
    content: "";
    display: block;
    font-size: 100%;
}


.countdown {
    font-size: 38px;
    letter-spacing: 2px;
    color: white;
}
@media (max-width: 600px) {
    #countdown {
        padding: 0 53px;
    }
    
    #countdown h2 {
        font-size: 38px;
        line-height: 1;
        display: block;
    }
    #countdown br {
        font-size: 75%;
    }
    .countdown {
        line-height: .8;
    }
    #countdown-alternate {
        padding: 0 53px;
    }
    
    #countdown-alternate h2 {
        font-size: 38px;
        line-height: 1;
        display: block;
    }
    #countdown-alternate br {
        font-size: 75%;
    }
}


/* Touring Image Styling */
#touring-image {
    max-width: 763px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 24px;
}
#touring-image img {
    width: 763px;
    margin-left: auto;
    margin-right: auto;
}
@media only screen and (max-width: 780px) {
    #touring-image {
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #touring-image img {
        max-width: 90%;
        /*content: url('https://shrekmusical.com.au/wp-content/uploads/2024/06/WA-Shrek-Tour-Mobile-1280x340.webp');*/
    }
}

/* Touring Image Second Tour Alternate Styling */
#touring-image-alternate {
    max-width: 763px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 24px;
}
#touring-image-alternate img {
    width: 763px;
    margin-left: auto;
    margin-right: auto;
}
@media only screen and (max-width: 780px) {
    #touring-image-alternate {
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 24px;
    }
    #touring-image-alternate img {
        max-width: 90%;
        /*content: url('https://shrekmusical.com.au/wp-content/uploads/2024/06/WA-Shrek-Tour-Mobile-1280x340.webp');*/
    }
}

/* Ticket Sales Styling */
.ticket-sales {
    text-align: center;
    color: #000000 !important;
    line-height: 1;
    padding-top: 12px;
}
.ticket-sales h2 {
    color: #ff5900 !important;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 24px;
    line-height: 1.8;
}
.ticket-sales p,
.ticket-sales .facebook-event {
    font-size: 50px;
    /*margin-bottom: 13px;*/
    margin-bottom: 26px;
    padding-bottom: 0px;
    color: white;
    text-decoration: none;
}
.ticket-sales a:hover {
    text-decoration: underline;
}
.ticket-sales b {
    color: #b9ff2d;
    font-weight: bold;
}

/* Booking Button Styles */
.booking-button-link {
    display: none; /* Initially hidden */
    position: relative;
    width: 262px; /* Updated width */
    height: 67px; /* Updated height */
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 40px;
}
.booking-button,
.booking-button.hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://shrekmusical.com.au/wp-content/uploads/2024/07/Buy-Now.webp');
    background-size: 262px 135px; /* Updated background size */
    transition: opacity 0.3s ease;
}
.booking-button {
    background-position: 0 0;
}
.booking-button.hover {
    background-position: 0 -68px; /* Updated to correct hover position */
    opacity: 0;
}
.booking-button-link:hover .booking-button.hover {
    opacity: 1;
}

/* Mobile specific styles for Booking and Ticket Sales */
@media (max-width: 600px) {
    .ticket-sales p,
    .ticket-sales facebook-event {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 39px;
        padding-bottom: 34px;
    }
    .booking-button-link {
        width: 214px; /* 35% of original width for mobile */
        height: 59px; /* 35% of original height for mobile */
        margin-top: 0px;
        display: none; /* Initially hidden for mobile */
    }
    .booking-button,
    .booking-button.hover {
        background-size: 214px 118px; /* Adjusted background size for 35% scale */
    }
    .booking-button.hover {
        background-position: 0 -60px; /* Correct hover position for 35% scale */
    }
    .ticket-sales h2 {
        font-size: 21px;
        line-height: 1.6;
        display: block;
    }
}
@media (max-width: 600px) {
    .ticket-sales p:last-child {
        padding-bottom: 0;
    }
    
}

/* Upcoming Shows and Booking Title (New version overrides main) */
#upcoming-shows, #upcoming-shows-alternate {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
.booking-title {
    font-size: 56px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: solid 4px #b9ff2d;
    max-width: 316px;
    margin-left: auto;
    margin-right: auto;
}

/* Additional New Styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px;
}

/* Updated Show Card Styling (New replaces main version) */
.show-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}
.show-card:hover {
    transform: scale(1.05);
}

/* Retained Show Card Subselectors from Main */
.show-card .selling-fast {
    display: block;
    position: absolute;
    top: 10px;
    /*background-color: #b9ff2d;
    color: #000;*/
    color: white;
    background-color: #f00808;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
}

@media only screen and (max-width: 1500px){
 .show-card .selling-fast {
    display: block;
    position: absolute;
    top: -26px;
    /* right: 36px; */
    left: 16px;
    color: white;
    background-color: #f00808;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 18px;
    margin-left: auto;
    text-transform: uppercase;
    margin-right: auto;
    font-weight: bold;
}

#touring-image, #touring-image-alternate {
    margin-bottom: 54px;
}
}

@media only screen and (min-width: 1501px) {
    .show-card .selling-fast {
        right: 10px;
    }
    #touring-image, #touring-image-alternate {
        margin-bottom: 24px;
    }
  }
  

.show-card .city,
.show-card .dates,
.show-card .venue {
    margin-bottom: 10px;
}
.show-card .alternate-booking-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
}
.show-card .alternate-booking-button:hover {
    background-color: #469fff;
}

/* New Show Card Button */
.show-card .button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #ccc;
    color: #6c757d;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
    cursor: not-allowed;
}

/* Updated Facebook Link Styling (New version overrides main if needed) */
.show-card .facebook-link {
    position: absolute;
    bottom: 15px;
    right: 13px;
    width: 32px;
    height: 32px;
    background-color: #3b5998;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
}
.show-card .facebook-link:hover {
    background-color: #5f93ff;
}

/* Main Carousel Styles (Retained from Main) */
.outer-wrapper {
    position: relative;
    width: 94%;
    margin: 0 auto;
    overflow: visible; /* Allows buttons to overflow */
}
.carousel-wrapper {
    overflow: hidden; /* Hides overflow of the show cards */
    width: 100%;
}
.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    min-width: 25%;
    box-sizing: border-box;
    padding: 10px;
}
.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Ensures buttons don't block interaction with carousel items */
}
.carousel-button {
    background-color: white;
    border: none;
    color: black;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    pointer-events: all; /* Re-enables button interaction */
    opacity: 1;
}
.carousel-button#prevBtn {
    margin-left: -20px; /* Adjusts position */
}
.carousel-button#nextBtn {
    margin-right: -20px; /* Adjusts position */
}
.carousel-button#nextBtn:hover,
.carousel-button#prevBtn:hover {
    opacity: 0.8;
    -webkit-transition: opacity 200ms linear;
    -ms-transition: opacity 200ms linear;
    transition: opacity 200ms linear;
}
.city {
    font-size: 36px;
}
.dates {
    font-size: 22px;
    font-weight: bold;
    padding-top: 7px;
}
.venue {
    font-size: 21px;
    padding-top: 3px;
}
.city,
.dates,
.venue {
    margin-left: 3px;
}
@media (max-width: 768px) {
    .carousel-item {
        min-width: 100%;
    }
}

/* Sold Out Homepage CSS */
.show-container {
    position: relative;
    /* Ensure that each show has a relative position */
    padding: 20px;
    margin-bottom: 30px;
}
.sold-out-overlay {
    border: rgb(0 163 255 / 0.3) 5px solid;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 432, 0, 0.27), rgba(255, 255, 255, 0.1)); /* Black to white gradient */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    display: none; /* Hidden initially */
    border-radius: 80px;
}
.show-container.sold-out .sold-out-overlay {
    display: flex; /* Show overlay when the 'sold-out' class is added */
}

/* Additional New Styles */
.booking-active {
    background-color: #1578f8 !important;
    color: #fff !important;
    cursor: pointer !important;
    opacity: 1;
}
.booking-active:hover {
    opacity: 0.8;
    transition: 0.6s;
}
.js-hide {
    visibility: hidden;
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 6px;
    }
}
