/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Tab'd event display style */
.event-tabs-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.venue-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
}

.tab-navigation {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.tab-btn {
    background-color: inherit;
    float: left;
    border: 1px solid transparent;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

    .tab-btn:hover {
        background-color: #ddd;
        border-color: #999;
    }

    .tab-btn.active {
        background-color: #ccc;
        border-color: black;
    }

.ats-tab-contents {
    min-height: 200px;
}

.ats-tab-content {
    display: none;
    padding: 6px 0px 6px 0px;
    border: 1px solid #ccc;
    border-top: none;
    clear: both;
}

.showings-list > *:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .venue-info {
        padding: 12px;
        font-size: 14px;
    }
}

.agile-tab-subheader {
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: left;
    padding-left: 0;
}

.agl-epgbutton {
    font-weight: normal;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
    padding: 4px 8px;
}

.agileLink {
    display: inline-block;
    padding: 12px 24px;
    background-color: #89d6ff;
    color: #000;
    text-decoration: none;
    border: 2px solid #0056b3;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

    .agileLink:hover {
        background-color: #0056b3;
        border-color: #27b4ff;
        color: #fff;
        transform: translateY(-2px);
    }

    .agileLink:focus {
        outline: 2px solid #3498db;
    }

.hiddenTags {
    display: none;
}

.tablinks {
    border: 1px solid black;
}

/* Event List Styles */
.ats_event_list_events_container {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.ats_event_list_events_header {
    background-color: #000;
    color: #fff;
    padding: 10px 15px;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.ats_event_list_events_icons {
    float: right;
    font-size: 16px;
}

.ats_event_list_event_item {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.ats_event_list_event_content {
    display: flex;
    padding: 15px;
    gap: 15px;
}

.ats_event_list_event_image {
    display: flex;
    flex-shrink: 0;
    width: 150px;
    margin-right: 4px;
}

    .ats_event_list_event_image img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        object-fit: cover;
    }

.ats_event_list_event_details {
    flex: 1;
}

.ats_event_list_event_title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.ats_event_list_event_description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.ats_event_list_event_showtimes {
    margin-bottom: 15px;
}

.ats_event_list_showtime_row {
    display: grid;
    grid-template-columns: 70px repeat(auto-fit, 80px);
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

    .ats_event_list_showtime_row[class*="ats_showtime_hidden_"] {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

.ats_event_list_showtime_date {
    font-weight: bold;
    width: 70px;
    flex-shrink: 0;
    margin-right: 10px;
    color: #333;
}

.ats_event_list_showtime_time {
    background-color: #f0f8ff;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-size: 12px;
    width: 80px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 80px;
    max-width: 80px;
}

.ats_event_list_event_single_date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.ats_showtime_toggle_container {
    margin: 0.5em 0;
}

.ats_showtime_toggle_btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 3px;
}

.ats_showtime_toggle_btn_active {
    background: #666;
}

.ats_event_list_more_details_btn {
    background-color: #888888;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

    .ats_event_list_more_details_btn:hover {
        background-color: #555555;
        color: #fff;
    }

@media (max-width: 768px) {
    .ats_event_list_event_content {
        flex-direction: column;
    }

    .ats_event_list_event_image {
        width: 100%;
    }

    .ats_event_list_showtime_row {
        flex-wrap: wrap;
    }

    .ats_event_list_showtime_date {
        width: 60px;
    }

    .ats_event_list_showtime_time {
        width: 70px;
        height: 22px;
        min-width: 70px;
        max-width: 70px;
        margin-right: 5px;
        margin-bottom: 5px;
        font-size: 11px;
    }
}

/* Filter Styles */
.ats_event_list_filter_container {
    margin-bottom: 8px;
}

.ats_filter_toggle_btn,
.ats_filter_btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.6rem 1.0rem;
    color: #4a5568;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

    .ats_filter_toggle_btn:hover,
    .ats_filter_btn:hover {
        background: #edf2f7;
        border-color: #cbd5e0;
        transform: scale(1.02);
    }

    .ats_filter_toggle_btn.active,
    .ats_filter_btn.active {
        background: #667eea;
        border-color: #667eea;
        color: white;
    }

    .ats_filter_btn:disabled,
    .ats_filter_btn[disabled] {
        opacity: 0.4;
    }

/* Timeline Styles */
.ats_event_timeline_container {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 20px;
}

.ats_timeline_day {
    margin-bottom: 25px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.ats_timeline_date_header {
    background: #e9ecef;
    padding: 8px 15px;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

.ats_timeline_day_name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    line-height: 1.2;
}

.ats_timeline_date {
    display: none;
}

.ats_timeline_events {
    padding: 0;
}

.ats_timeline_event {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f3f4;
    min-height: 60px;
    transition: background-color 0.2s ease;
}

    .ats_timeline_event:last-child {
        border-bottom: none;
    }

    .ats_timeline_event:hover {
        background: #f8f9fa;
    }

.ats_timeline_event_times {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
    text-align: left;
    margin: 0;
    margin-right: 2px;
}

.ats_timeline_time {
    background: none;
    color: #495057;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.ats_timeline_event_thumbnail {
    flex-shrink: 0;
}

    .ats_timeline_event_thumbnail img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 4px;
    }

.ats_timeline_event_content {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ats_timeline_event_details {
    flex: 1;
    min-width: 0;
}

.ats_timeline_event_title {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

    .ats_timeline_event_title a {
        color: #495057;
        text-decoration: none;
    }

        .ats_timeline_event_title a:hover {
            color: #007bff;
            text-decoration: underline;
        }

.ats_timeline_event_description {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ats_timeline_event_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .ats_timeline_event_meta .calendar-icon {
        width: 16px;
        height: 16px;
        opacity: 0.6;
    }

    .ats_timeline_event_meta .venue-text {
        font-size: 11px;
        color: #6c757d;
        white-space: nowrap;
    }

.ats_no_events_message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

/* Timeline Responsive Design */
@media (max-width: 768px) {
    .ats_timeline_event {
        flex-wrap: wrap;
        padding: 8px 12px;
    }


    .ats_timeline_event_thumbnail img {
        width: 35px;
        height: 35px;
    }

    .ats_timeline_event_title {
        font-size: 13px;
    }

    .ats_timeline_event_description {
        font-size: 11px;
    }
}

/* Calendar Styles */
.ats-calendar {
    --side-padding: 20px;
    --border-radius: 34px;
    --accent-br: 15px;
    width: 400px;
    position: absolute;
    z-index: 1000;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: var(--border-radius);
    display: none;
}

    .ats-calendar select {
        background-color: #f3f4f6;
        padding: 15px 20px;
        font-family: inherit;
        font-weight: 700;
        font-size: 1.02rem;
        border-radius: 20px;
        outline: none;
        border: 0;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='960px' height='560px' viewBox='0 0 960 560' enable-background='new 0 0 960 560' xml:space='preserve'%3E%3Cg id='Rounded_Rectangle_33_copy_4_1_'%3E%3Cpath d='M480,344.181L268.869,131.889c-15.756-15.859-41.3-15.859-57.054,0c-15.754,15.857-15.754,41.57,0,57.431l237.632,238.937 c8.395,8.451,19.562,12.254,30.553,11.698c10.993,0.556,22.159-3.247,30.555-11.698l237.631-238.937 c15.756-15.86,15.756-41.571,0-57.431s-41.299-15.859-57.051,0L480,344.181z'/%3E%3C/g%3E%3C/svg%3E");
        background-size: 24px;
        background-repeat: no-repeat;
        background-position: calc(100% - var(--side-padding)) center;
    }

.ats-calendar__opts,
.ats-calendar__buttons {
    background-color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
}

.ats-calendar__opts {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    padding: 20px var(--side-padding);
}

.ats-calendar__body {
    background-image: linear-gradient(to bottom, #f3f4f6, #fff);
}

.ats-calendar__days {
    background-color: #fff;
    padding: 0 var(--side-padding) 10px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

    .ats-calendar__days > div {
        text-align: center;
        font-weight: 700;
        font-size: 1.02rem;
        color: #c5c8ca;
    }

.ats-calendar__dates {
    padding: 10px var(--side-padding);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.ats-calendar__date {
    --height: calc(400px / 6 - var(--side-padding));
    text-align: center;
    height: var(--height);
    line-height: var(--height);
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    position: relative;
}

    .ats-calendar__date::before {
        content: "";
        position: absolute;
        background-color: rgba(255, 255, 255, 0);
        width: 100%;
        height: calc(var(--height) * 0.9);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: var(--accent-br);
        transition: background-color 0.3s ease;
    }

    .ats-calendar__date:not(.calendar__date--selected):not(.calendar__date--grey):hover::before {
        background-color: #ededed;
    }

.ats-calendar__date--grey {
    color: #c5c8ca;
    cursor: not-allowed;
}

.ats-calendar__date--selected {
    color: #ff374b;
}

    .ats-calendar__date--selected::before {
        background-color: #ffeaec;
        border-radius: var(--accent-br);
    }

.ats-calendar__date--has-events {
    color: #667eea;
    font-weight: 700;
}

    .ats-calendar__date--has-events::after {
        content: "";
        position: absolute;
        bottom: 3px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #667eea;
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

.ats-calendar__date span {
    position: relative;
    z-index: 1;
}

.ats-calendar__buttons {
    padding: 10px var(--side-padding) 20px;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.ats-calendar__button {
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.02rem;
    border-radius: 20px;
    outline: none;
    border: 0;
    padding: 15px 20px;
}

.ats-calendar__button--red {
    background-color: #CE2029;
}

.ats-calendar__button--primary {
    background-color: #667eea;
    color: #fff;
    transition: box-shadow 0.3s cubic-bezier(0.21, 0.68, 0.09, 0.27), transform 0.2s linear;
}

    .ats-calendar__button--primary:hover {
        box-shadow: 0 20px 30px -13px rgba(23, 82, 255, 0.45);
        transform: translateY(-3px);
    }

    .ats-calendar__button--primary:active {
        box-shadow: 0 10px 10px -6px rgba(23, 82, 255, 0.45);
        transform: translateY(-1px);
    }

.ats-calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.ats-calendar-container {
    position: relative;
    display: inline-block;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--lx-gap);
    margin-bottom: 50px;
}

.carousel {
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.media-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .media-wrapper img {
        --border-radius: 5x;
    }


.carousel .item {
    opacity: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

    .carousel .item.active {
        opacity: 1;
        display: block;
    }

    .carousel .item img {
        max-height: 100%;
        max-width: 100%;
        height: auto;
        width: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }
    
/* YouTube embeds */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.carousel .caption {
    width: 100%;
    padding: var(--lx-space-01);
    position: absolute;
    bottom: 0;
    text-transform: uppercase;
    text-align: center;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Carousel Controls */
.carousel-container .btn {
    border-radius: 50%;
    padding: 1em 2em;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    outline: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    color: #10100e;
    background-color: #ffffff;
}

/*    .carousel-container .btn:active,
    .carousel-container .btn:focus {
        transform: translateY(-50%) scale(0.9);
    }

    .carousel-container .btn:hover {
        transform: translateY(-50%) scale(0.96);
    }*/

    .ats-svg-arrow {
        transition: transform 0.2s ease-in-out;
    }

    .ats-svg-arrow:hover {
        transform: scale(1.2);
    }


.carousel-container .prev {
    left: -4%;
}

.carousel-container .next {
    right: -4%;
}

.carousel-container .dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.carousel-container .dot {
    border-radius: 50%;
    height: 10px;
    width: 10px;
    background-color: #242421;
    transition: background-color 0.2s ease;
}

    .carousel-container .dot.active,
    .carousel-container .dot:hover {
        background-color: #666699;
    }


img[data-carousel-conditional="true"] {
    display: none;
}

.no-carousel img[data-carousel-conditional="true"] {
    display: block;
}

/* end media carousel style*/


#ats-location-link-svg:hover {
    transform: scale(1.1);
}

#ats-location-link-svg path {
    fill: #667eea;
    transition: fill 0.3s ease;
}

#ats-location-link-svg:hover path {
    fill: #764ba2;
}

/* Fix for SVG container size during post creation */
#ats-location-link-svg-div {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#ats-location-link-svg-div .ats-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
}

#ats-location-link-svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Rating Display Styles */
.agile-rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    flex-wrap: wrap;
}

.agile-rating-stars {
    display: flex;
    gap: 2px;
    font-size: 24px;
    line-height: 1;
}

.agile-star {
    color: #ddd;
    transition: color 0.2s ease;
}

.agile-star-full {
    color: #ffc107;
}

.agile-star-half {
    position: relative;
    color: #ddd;
}

    .agile-star-half::before {
        content: '★';
        position: absolute;
        left: 0;
        top: 0;
        width: 50%;
        overflow: hidden;
        color: #ffc107;
    }

.agile-star-empty {
    color: #ddd;
}

.agile-rating-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 16px;
    color: #333;
}

.agile-rating-score {
    font-weight: bold;
    font-size: 20px;
    color: #333;
}

.agile-rating-max {
    color: #666;
    font-size: 16px;
}

.agile-rating-count {
    color: #666;
    font-size: 14px;
    margin-left: 4px;
}

.agile-rating-tmdb {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.agile-tmdb-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.agile-tmdb-logo {
    height: 16px;
    width: auto;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: block;
}

.agile-tmdb-link:hover .agile-tmdb-logo {
    opacity: 1;
}

.agile-tmdb-disclaimer {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.agile-tmdb-disclaimer::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 6px solid transparent;
    border-top-color: #333;
}

.agile-tmdb-link:hover .agile-tmdb-disclaimer {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .agile-rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .agile-rating-stars {
        font-size: 20px;
    }

    .agile-rating-score {
        font-size: 18px;
    }

    .agile-rating-tmdb {
        margin-left: 0;
        margin-top: 8px;
    }

    .agile-tmdb-logo {
        height: 14px;
    }

    .agile-tmdb-disclaimer {
        right: auto;
        left: 0;
        white-space: normal;
        max-width: 200px;
    }

    .agile-tmdb-disclaimer::after {
        right: auto;
        left: 12px;
    }
}