/* Extracted from STG whats-on-2025.php: preserve visual design. */

        #primary {
            background-color: #fdfdfd;
        }

        .facetwp-facet {
            margin-bottom: 1.5rem;
        }

        .facetwp-radio,
        .facetwp-checkbox {
            display: inline-block;
            line-height: 1em;
            padding: 10px 12px;
            /* top/bottom right/left */
            margin: 0 8px 8px 0;
            /* top right bottom left */
            /* border: 1px solid #ddd; */
            border-radius: 6px;
            font-weight: 500;
            font-size: .9rem;
            background-color: #f0f0f0;
        }

        /* Preserve existing checkbox appearance; radio indicators use FacetWP's image. */
        .facetwp-checkbox {
            background-image: none;
        }

        /* Inset the format radio image from the facet's coloured background edge. */
        .facetwp-facet-post_type_filter .facetwp-radio {
            background-position: 10px center !important;
            padding-left: 34px !important;
        }

        /* Style the hover and 'checked' states */
        .facetwp-radio:hover,
        .facetwp-radio.checked {
            background-color: #82CAEF;
            border-color: #82CAEF;
            color: #000;
        }

        .facetwp-checkbox:hover,
        .facetwp-checkbox.checked {
            background-image: none;
            background-color: #F2C7B5;
            border-color: #F2C7B5;
            color: #000;
        }

        .facetwp-date {
            background: none;
            display: inline-block;
            line-height: 1em;
            padding: 6px;
            /* top/bottom right/left */
            margin: 0 8px 8px 0;
            /* top right bottom left */
            /* border: 1px solid #ddd; */
            border-radius: 6px;
            font-weight: 500;
            font-size: .9rem;
            border: 1px solid #d2d2d2;
        }

        .facetwp-facet-new_date_filter {
            position: relative;
        }

        .facetwp-facet-new_date_filter input.facetwp-date {
            color: black;
            padding-left: 2rem;
            /* space for icon */
            background-image: url('data:image/svg+xml;utf8,<svg fill="black" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.89-1.99 2L3 20c0 1.1.89 2 1.99 2H19c1.11 0 2-.9 2-2V6c0-1.11-.89-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z"/></svg>');
            background-repeat: no-repeat;
            background-position: 0.5rem center;
            background-size: 1rem;
            background-color: #f0f0f0;
            border: 1px solid #f0f0f0;
            font-weight: 500;
        }

        .facetwp-facet-new_date_filter input.facetwp-date::placeholder {
            color: black;
            opacity: 1;
            /* Required in some browsers like Firefox */
        }

        .facetwp-facet-new_date_filter.facetwp-type-date_range.is-active input.facetwp-date {
            background-color: #FFFBC2;
            border-color: #FFFBC2;
        }

        .facetwp-reset {
            text-decoration: none;
            color: #000;
            font-size: .9rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            background-color: #FBE5E9;
            padding: .4rem 1rem;
            border-radius: 6px;
        }

        /* .facetwp-reset::before {
            content: '';
            display: inline-block;
            width: 0.9em;
            height: 0.9em;
            margin-right: 0.6em;
            background-image: url('/wp-content/themes/bootscore-5-child/img/closeX.svg');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        } */

        .facetwp-reset:hover {
            color: #000;
            background-color: #f0f0f0;
        }
    

    /* Custom CSS for wider scrollable flex row */
    .scrollable-row {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
    }

    .scrollable-row .col {
        flex: 0 0 auto;
        max-width: 90%;
        padding-bottom: 2rem;
    }

    .panel {
        display: flex;
        flex-direction: column;
        box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.1), -1px 5px 10px rgba(0, 0, 0, 0.1);
    }

    .panel-image {
        width: 100%;
    }

    .panel-body {
        width: 100%;
        flex: 1;
        padding: 16px 10px;
    }

    .border {
        border: 1px solid #ccc;
    }

    .rotate-45 {
        display: inline-block;
        transform: rotate(90deg);
    }

    /* #dev-header-copy {
        padding: 2.5rem 1.5rem;
        background-color: #E8094D;
        color: #fff;
    }

    #dev-header-img {
        background: none;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        min-height: 220px;
    } */

    .series-name {
        font-size: 1.2rem;
    }

    @media (min-width: 576px) {

        .series-name {
            font-size: 1.4rem;
        }

        .scrollable-row {
            overflow-x: auto;
            flex-wrap: nowrap;
        }

        .scrollable-row .col {
            flex: 0 0 auto;
            width: 75%;
            padding-bottom: 2rem;
        }

    }

    @media (min-width: 768px) {

        #dev-header {
            height: 500px;
        }

        .scrollable-row {
            overflow-x: auto;
            flex-wrap: nowrap;
        }

        .scrollable-row .col {
            flex: 0 0 auto;
            width: 45%;
            padding-bottom: 2rem;
        }

    }

    @media (min-width: 992px) {

        #dev-header-copy {

            max-width: 500px;
            padding: 1.75rem 3rem;
        }

        .scrollable-row {
            flex: 0 0 auto;
            overflow-x: visible;
            flex-wrap: wrap;
            margin-right: -.8rem;
        }

        .scrollable-row .col {
            flex: 1 0 auto;
            max-width: 33.33%;
            padding-bottom: 2rem;
        }

    }

    @media (min-width: 1400px) {

        .scrollable-row .col {
            flex: 0 0 auto;
            max-width: 33.33%;
            width: auto;
            padding-bottom: 2rem;
        }

    }

    .scrolling-wrapper {
        overflow-x: scroll;
        white-space: nowrap;
        cursor: grab;
    }

    .scrolling-wrapper:active {
        cursor: grabbing;
    }

    .scrolling-wrapper>.col {
        width: 400px;
        margin-right: 10px;
        white-space: normal;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .scrollable-row::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .scrollable-row {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    #dev-header-copy>div>a {
        color: #fff;
    }

    .special-intro-copy p {
        font-size: 1.125rem;
    }

    .panel-body>.h3 {
        font-size: 1.5rem;
        font-weight: 700;
        padding-bottom: .8rem;
        margin: 0;
    }

    .signup-section {
        margin-top: 0;
    }

    .site-main h2 {
        margin-top: 4rem;
        margin-bottom: 2.5rem;
        padding: 0 0 1rem 0;
        border-bottom: 2px solid #2c2c2c;
    }

    #event-container {
        display: block;
    }

    .wo-event-copy p {
        line-height: 130% !important;
        color: #717171 !important;
    }

    .wo-date-header {
        position: -webkit-sticky;
        /* For Safari */
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .wo-date-header.sticky {
        position: sticky;
        top: 0;
    }

    .wo-date-header.absolute {
        position: absolute;
    }


                .btn-wo-white {
                    background-color: #fff;
                    border: 1px solid #000;
                    border-radius: 4px;
                    padding: 5px 10px;
                    font-size: .8rem;
                    pointer-events: none;
                }

                .btn-wo-grey {
                    background-color: #F1F1F1;
                    border: 1px solid #F1F1F1;
                    border-radius: 4px;
                    padding: 5px 10px;
                    font-size: .8rem;

                }

                .free-check {
                    border: 1px solid #d2d2d2;
                    border-radius: 4px;
                    padding: 7px 10px;
                    font-size: .8rem;

                }

                .form-check {
                    padding-left: 0;
                }

                .form-check .form-check-input {
                    float: right;
                    margin-left: 1.5em;
                }

                .form-check-input {
                    margin-top: .15em;
                    border: 1px solid rgba(0, 0, 0, .4);
                }

                .series-adbox {
                    position: relative;
                    background-image: none;
                    background-size: cover;
                    background-repeat: no-repeat;
                    background-position: center;
                    height: 100px;
                    border-radius: 2px;
                    background-color: #000;
                }

                /* .image-container {
                            position: relative;
                            height: 100%;
                            overflow: hidden;
                        }

                        .full-height-img {
                            height: 100%;
                            width: auto;
                            object-fit: cover;
                        } */

                .image-container {
                    position: relative;
                    width: 100%;
                    padding-bottom: 75%;
                    /* Aspect ratio 4:3 (height/width = 3/4 = 0.75) */
                    overflow: hidden;
                }

                .full-height-img {
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 100%;
                    width: 100%;
                    object-fit: cover;
                    /* Ensure the image covers the container */
                    object-position: center;
                    /* Center the image */
                }

                .date-copy {
                    padding: 1.5rem 10px;
                }

                .date-copy.col>* {
                    width: 100%;
                }

                .adbox-tag {
                    font-size: .9rem;
                }

                #whats-on-options {
                    --bs-gutter-x: 0 !important;
                    padding-left: 1rem !important;
                }

                #whats-on-options>.row {
                    padding-right: 0 !important;

                }

                @media (min-width: 768px) {
                    .date-copy {
                        padding: 1.5rem;
                    }

                    .date-copy>* {
                        /* width: 85%; */
                    }

                    .adbox-tag {
                        font-size: .8rem;
                    }

                    #whats-on-options {
                        --bs-gutter-x: 1.5rem !important;
                    }
                }

                @media (max-width: 992px) {
                    .scrollable-menu {
                        overflow-x: auto;
                        white-space: nowrap;
                    }

                    #wo-quick-links,
                    #wo-free-option {
                        display: inline-block;
                        vertical-align: top;
                    }

                }

                .wo-content::-webkit-scrollbar {
                    display: none;
                    /* for Chrome, Safari, and Opera */
                }

                #wo-free-option:hover,
                .form-check-input:hover,
                .form-check-label:hover {
                    cursor: pointer;
                }

                .wo-event.row {
                    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 1px 6px 0 rgba(0, 0, 0, 0.1);
                    margin-top: 2.25rem;
                }

                .wo-event:hover,
                .wo-event:focus {
                    color: #000;
                    -webkit-box-shadow: 5px 3px 7px -2px rgba(0, 0, 0, 0.33);
                    box-shadow: 5px 3px 7px -2px rgba(0, 0, 0, 0.33);
                }

                .wo-event:hover img,
                .wo-event:focus img {
                    -webkit-transform: scale(1.05);
                    transform: scale(1.05);
                }

                .wo-event img {
                    -webkit-transition: all 0.2s ease;
                    transition: all 0.2s ease;
                }
            

/* V2: no secondary navigation. The original card and facet presentation remains. */
.hc-wo-v2-status {min-height:1.5em;font-size:.9rem;color:#555;margin-top:1rem}
.hc-wo-v2-empty {padding:2rem 0;font-size:1rem}
#hc-wo-v2-sentinel {height:2px;margin-bottom:3rem}
.hc-wo-v2-fallback {text-align:center;margin:1.5rem 0 3rem}
#hc-wo-v2-app[aria-busy="true"] #hc-wo-v2-status:before {content:"";display:inline-block;vertical-align:middle;width:.8rem;height:.8rem;border:2px solid #ccc;border-top-color:#333;border-radius:50%;margin-right:.5rem;animation:hc-wo-v2-spin .7s linear infinite}
@keyframes hc-wo-v2-spin {to {transform:rotate(360deg)}}

/* A theme-specific height/padding conflict put the ribbons below the image.
   Keep the overlay inside a correctly-sized image container at every width. */
#hc-wo-v2-results .wo-event > .col-md-4 > a {display:block;height:100%}
#hc-wo-v2-results .image-container {
    position:relative!important;
    height:auto!important;
    padding-bottom:0!important;
    aspect-ratio:4 / 3;
    overflow:hidden;
    isolation:isolate;
}
#hc-wo-v2-results .image-container img.full-height-img {
    display:block;
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
}
#hc-wo-v2-results .image-container .term-tags {
    position:absolute!important;
    bottom:0!important;
    left:0!important;
    z-index:2;
    margin-top:0;
}
#hc-wo-v2-results .image-container .price-note {z-index:3}
@media (min-width:768px) {
    #hc-wo-v2-results .image-container {
        height:100%!important;
        aspect-ratio:auto;
        min-height:220px;
    }
}

/* V2: reduce whitespace above the first visible calendar date only.
   Keep existing spacing between subsequent date groups. */
#hc-wo-v2-results > .wo-date-header:first-child {
    margin-top: -3rem !important;
}

@media (max-width: 767.98px) {

    /* Compact the stacked filter controls */
    #calendar-section .cal-sec {
        row-gap: 1rem;
    }

    #calendar-section .cal-sec > .col-auto {
        width: 100%;
    }

    #calendar-section .cal-sec .pb-3 {
        padding-bottom: .5rem !important;
    }

    #calendar-section .cal-sec .facetwp-facet {
        margin-bottom: 0;
    }

    /* Reduce space above the first calendar date */
    #hc-wo-v2-results > .wo-date-header:first-child {
        margin-top: 0 !important;
    }
}
