﻿body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

#pageScaleWrapper {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

.desc-preview {
    max-height: 7rem;
    padding: 0.5rem;
    overflow: hidden;
    position: relative;
}

    .desc-preview *,
    .modal-content * {
        color: #212529;
        font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    }

    .desc-preview::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3rem;
        background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    }

/* Custom Toastr Styling */
#toast-container > div {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(10, 26, 86, 0.15);
    padding: 16px 20px 16px 50px;
    opacity: 1;
}

#toast-container > .toast-success {
    background-color: #00aeef !important;
    color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFEA00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-success .toast-title {
    color: #FFEA00 !important;
    font-weight: 700;
    font-size: 14px;
}

#toast-container > .toast-success .toast-message {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 13px;
}

#toast-container > .toast-error {
    background-color: #ffffff !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-error .toast-title {
    color: #dc3545 !important;
    font-weight: 700;
    font-size: 14px;
}

#toast-container > .toast-error .toast-message {
    color: #00aeef !important;
    font-weight: 500;
    font-size: 13px;
}

#toast-container > div:hover {
    box-shadow: 0 12px 32px rgba(10, 26, 86, 0.25);
}

#toast-container .toast-close-button {
    color: inherit;
    opacity: 0.7;
    font-weight: 300;
    font-size: 20px;
    top: -4px;
    right: 0;
}

#toast-container .toast-close-button:hover {
    opacity: 1;
}

#toast-container .toast-progress {
    background-color: #FFEA00;
    height: 4px;
    border-radius: 0 0 12px 12px;
}

#toast-container > .toast-error .toast-progress {
    background-color: #dc3545;
}

.calendar-container {
    border: 1px solid rgba(11, 26, 87, 1);
    width: 100%;
    max-width: 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.calendar-day {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

    .calendar-day:hover {
        background-color: #ccc;
    }

    .calendar-day.selected {
        background-color: #00aeef;
        color: white;
    }

#calendarGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

#monthPicker {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tag-image {
    position: relative;
    border-radius: 0px 8px 0px 0px;
    display: flex;
    transition: 0.1s ease-in-out;
    font-size: 0.8rem;
    background: white;
}

.tag-icon {
    width: 1rem;
    height: auto;
}

.tag-color {
    background-color: var(--color, var(--bs-dark));
    color: #fff;
}


.customBtn {
    border: 1.5px solid #00aeef;
    border-radius: 50px;
    padding: 0.5rem 2.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
    background: #ffffff;
    color: #00aeef;
}

    .customBtn:hover {
        background: #00aeef;
        color: #ffffff;
    }

.toast-center-screen {
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
    width: auto;
    max-width: 350px;
}

/* Mobile-First Styles */

/* Pricing Box */
.pricing-box {
    background-color: #f5f5f5;
    border-radius: 0.5rem;
    text-align: right;
}

@media (min-width: 768px) {
    .pricing-box {
    }
    
    .pricing-box .d-flex {
        justify-content: flex-end;
    }
    
    .pricing-box .d-flex.gap-3 {
        gap: 0.75rem;
    }
}

/* Ticket Cards - Mobile */
.ticket-card {
    background-color: #f5f5f5;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
}

.ticket-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ticket-card .item-className {
    font-size: 0.95rem;
    line-height: 1.4;
}

.ticket-card .item-price {
    font-size: 1rem;
}

.ticket-card .button {
    min-width: 2rem;
    min-height: 2rem;
    font-size: 1.1rem;
}

.ticket-card .count {
    font-size: 1rem;
    font-weight: 600;
}

/* Action Buttons */
.customBtn {
    min-height: 44px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .customBtn {
        width: auto;
        min-width: 150px;
        padding: 0.5rem 2.5rem;
    }
}

.customBtn-primary {
    background: #00aeef;
    color: #ffffff;
    border-color: #00aeef;
}

.customBtn-primary:hover {
    background: #0090c8;
    color: #ffffff;
    border-color: #0090c8;
}

/* Mobile spacing adjustments */
@media (max-width: 767.98px) {
    #product .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #product h2 {
        font-size: 1.5rem;
    }
    
    .desc-preview {
        font-size: 0.9rem;
    }
    
    .gallery-main,
    .openGallery {
        height: 250px !important;
        min-height: 250px;
    }
    
    #product .row.g-2 .col-12.col-md-4 .mb-2 img,
    #product .row.g-2 .col-12.col-md-4 .position-relative img {
        height: 120px !important;
        min-height: 120px;
    }
    
    /* Single thumbnail on mobile */
    #product .row.g-2 .col-12.col-md-4 img.openGallery {
        height: 250px !important;
        min-height: 250px;
    }
    
    /* Pricing box mobile adjustments */
    .pricing-box {
        margin-top: 1.5rem;
    }
    
    .pricing-box .d-flex.gap-3 {
        gap: 0.75rem;
    }
    
    .pricing-box svg {
        width: 40px !important;
        height: 25px !important;
    }
    
    .pricing-box .fw-bold.fs-5 {
        font-size: 1.25rem !important;
    }
}

/* Tablet adjustments (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-main,
    .openGallery {
        height: 20rem !important;
    }

    #product .row.g-2 .col-12.col-md-4 .mb-2 img,
    #product .row.g-2 .col-12.col-md-4 .position-relative img {
        height: 9.5rem !important;
    }

    /* Single thumbnail on tablet */
    #product .row.g-2 .col-12.col-md-4 > img.openGallery {
        height: 20rem !important;
    }

    #product h1.fs-2 {
        font-size: 1.5rem !important;
    }

    .pricing-box .fw-bold.fs-5 {
        font-size: 1.1rem !important;
    }

    .desc-preview {
        max-height: 6rem;
    }

    /* Adjust description and pricing columns for tablet */
    #product .col-md-9 {
        flex: 0 0 auto;
        width: 65%;
    }

    #product .col-md-3 {
        flex: 0 0 auto;
        width: 35%;
    }
}

/* Desktop adjustments (992px and up) */
@media (min-width: 992px) {
    .gallery-main,
    .openGallery {
        height: 35.938rem !important;
    }

    #product .row.g-2 .col-12.col-md-4 .mb-2 img,
    #product .row.g-2 .col-12.col-md-4 .position-relative img {
        height: 17.719rem !important;
    }
}

/* Extra small mobile (max-width: 480px) */
@media (max-width: 480px) {
    #product h1.fs-2 {
        font-size: 1.25rem !important;
    }

    #product .fs-4 {
        font-size: 1rem !important;
    }

    .gallery-main,
    .openGallery {
        height: 200px !important;
        min-height: 200px;
    }

    #product .row.g-2 .col-12.col-md-4 .mb-2 img,
    #product .row.g-2 .col-12.col-md-4 .position-relative img {
        height: 100px !important;
        min-height: 100px;
    }

    .pricing-box {
        padding: 0.75rem !important;
    }

    .pricing-box .fw-bold.fs-5 {
        font-size: 1.1rem !important;
    }

    .pricing-box svg {
        width: 36px !important;
        height: 22px !important;
    }

    .customBtn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    /* CTA bar adjustments */
    #ctaBar .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    #ctaBar .d-flex.justify-content-end {
        justify-content: center !important;
    }
}

/* Lightbox modal responsive fixes */
#galleryModal #prevImg,
#galleryModal #nextImg {
    width: 15%;
    min-width: 50px;
}

@media (max-width: 767.98px) {
    #galleryModal #prevImg,
    #galleryModal #nextImg {
        width: 20%;
        font-size: 1.5rem !important;
    }

    #galleryModal #galleryImg {
        max-width: 95vw !important;
        max-height: 70vh !important;
    }

    #galleryModal #closeGallery {
        height: 3rem !important;
        width: 3rem !important;
        font-size: 2rem !important;
    }
}

/* CTA Bar - fixed at bottom of product section */
#ctaBar {
    background: white;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 767.98px) {
    #ctaBar {
        padding: 1rem !important;
    }

    #ctaBar .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    #ctaBar .d-flex.justify-content-end {
        justify-content: stretch !important;
    }

    #ctaBar .text-end {
        text-align: center !important;
    }

    #ctaBar .mt-4 {
        margin-top: 0 !important;
    }

    #ctaBar .mb-4 {
        margin-bottom: 0 !important;
    }
}

/* Ticket selection area responsive */
#ticketBox {
    background-color: #fff;
}

#partialList .ticket-card {
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

/* Tablet ticket box (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #ticketBox {
        padding: 1rem !important;
    }

    #ticketBox .ticket-card {
        padding: 1rem !important;
    }

    #ticketBox .ticket-card h6 {
        font-size: 1rem;
    }

    #ticketBox .ticket-card .item-price {
        font-size: 0.95rem;
    }

    #ticketBox .ticket-card .button {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1.25rem;
    }

    #ticketBox .ticket-card .count {
        width: 3rem !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 767.98px) {
    #partialList {
        padding: 0;
    }

    #ticketBox {
        padding: 0.75rem !important;
    }

    .ticket-card {
        padding: 0.75rem !important;
    }

    .ticket-card .d-flex {
        flex-wrap: wrap;
    }

    .ticket-card .item-className,
    .ticket-card h6 {
        font-size: 0.9rem;
    }

    .ticket-card .item-price {
        font-size: 0.9rem;
    }

    .ticket-card .button {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
}

/* Modal responsive adjustments */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 0.5rem;
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .modal-title {
        font-size: 1rem !important;
    }
}