/**
 * Ticket Schedule Premium Styling
 */

.tour-schedule-wrapper {
    width: 100%;
    margin: 20px 0;
}

/* Custom Dropdown Styling - High Specificity */
.elementor-widget-tour_schedule .tour-filter-wrapper {
    margin-bottom: 30px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    position: relative !important;
    z-index: 9999 !important;
}

.elementor-widget-tour_schedule .tour-custom-dropdown {
    position: relative !important;
    width: 100% !important;
    max-width: 320px !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-family: 'Inter', sans-serif !important;
    border: 2px solid #000000 !important;
    border-radius: 4px !important;
    user-select: none !important;
    display: block !important;
}

.elementor-widget-tour_schedule .tour-dropdown-trigger {
    padding: 15px 20px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #000000 !important;
    background-color: #FFFFFF !important;
}

.elementor-widget-tour_schedule .tour-dropdown-trigger .arrow {
    width: 0 !important; 
    height: 0 !important; 
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 8px solid #000000 !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.elementor-widget-tour_schedule .tour-custom-dropdown.open .tour-dropdown-trigger .arrow {
    transform: rotate(180deg) !important;
}

.elementor-widget-tour_schedule .tour-dropdown-options {
    position: absolute !important;
    top: 100% !important;
    left: -2px !important;
    right: -2px !important;
    background-color: #FFFFFF !important;
    border: 2px solid #000000 !important;
    border-top: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    display: none !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
}

.elementor-widget-tour_schedule .tour-custom-dropdown.open .tour-dropdown-options {
    display: block !important;
}

.elementor-widget-tour_schedule .tour-dropdown-option {
    padding: 15px 20px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    color: #000000 !important;
    background-color: #FFFFFF !important;
    border: none !important;
    margin: 0 !important;
    list-style-type: none !important;
    display: block !important;
    line-height: 1.4 !important;
}

.elementor-widget-tour_schedule .tour-dropdown-option[data-value="all"] {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    border-bottom: 1px solid #EEEEEE !important;
}

.elementor-widget-tour_schedule .tour-dropdown-option::before,
.elementor-widget-tour_schedule .tour-dropdown-option::after {
    display: none !important;
}

.elementor-widget-tour_schedule .tour-dropdown-option:hover {
    background-color: #EEEEEE !important;
}

.elementor-widget-tour_schedule .tour-dropdown-option.active {
    background-color: #0066FF !important;
    color: #FFFFFF !important;
}

/* Custom Scrollbar for Dropdown */
.elementor-widget-tour_schedule .tour-dropdown-options::-webkit-scrollbar {
    width: 10px !important;
}
.elementor-widget-tour_schedule .tour-dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}
.elementor-widget-tour_schedule .tour-dropdown-options::-webkit-scrollbar-thumb {
    background: #000000 !important;
    border-radius: 0 !important;
}

.tour-table {
    width: 100%;
    border-collapse: collapse;
}

.tour-table-row {
    border-bottom-style: solid;
    transition: background-color 0.3s ease;
}

.tour-table-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tour-table-cell {
    vertical-align: middle;
}

.tour-date {
    width: 230px;
}

.tour-location {
    flex: 1;
}

.tour-title {
    letter-spacing: 2px;
}

.tour-action {
    width: 220px;
    text-align: right;
}

/* Button Styles */
.tour-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    border: none;
}

.tour-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #FFF;
}

.btn-sold-out {
    background-color: #FF0000;
    color: #FFFFFF;
}

.btn-tickets {
    background-color: #FFD700;
    color: #000000;
}

/* Responsive Stacking */
@media (max-width: 768px) {
    .tour-table,
    .tour-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .tour-filter-wrapper {
        flex-direction: column !important;
    }

    .tour-table-row {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 10px 0 !important;
    }

    .tour-table-row .tour-table-cell {
        text-align: center !important;
        margin: 0 !important;
        padding: 5px !important;
        box-sizing: border-box !important;
    }

    .tour-table-row .tour-date {
        order: 1 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        display: block !important;
        padding-right: 5px !important;
        opacity: 0.7;
    }

    .tour-table-row .tour-location {
        order: 2 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        display: block !important;
        padding-left: 5px !important;
    }

    .tour-table-row .tour-title {
        order: 3 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        display: block !important;
    }

    .tour-table-row .tour-action {
        order: 4 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        display: block !important;
        text-align: center !important;
    }
}
