.ticketwp-search-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%; /* Ensure the container spans the full width */
}

.ticketwp-date-range {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.ticketwp-date-wrapper {
    position: relative;
    flex: 1;
}

.ticketwp-date-input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    outline: none;
    cursor: pointer; /* Indicate clickable for date picker */
}

/* Ensure placeholder and text styling matches search input */
.ticketwp-date-input,
.ticketwp-date-input::placeholder,
.ticketwp-search-input,
.ticketwp-search-input::placeholder {
    color: #333;
    background-color: #FFFFFF !important;
    font-size: 16px;
    border-radius: 4px;
}

.ticketwp-date-input:focus {
    border-color: #28a745;
}

.ticketwp-date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    cursor: pointer; /* Indicate clickable for date picker */
}

.ticketwp-search-input-wrapper {
    position: relative;
    flex: 1;
}

.ticketwp-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    outline: none;
}

.ticketwp-search-input:focus {
    border-color: #28a745;
}

.ticketwp-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.ticketwp-search-input-wrapper .ticketwp-search-input {
    padding-right: 40px;
}

.ticketwp-performer-venue-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticketwp-performer-venue-search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticketwp-performer-venue-search-results li {
    padding: 8px 12px;
    cursor: pointer;
}
.ticketwp-performer-venue-search-results li:hover {
    padding: 8px 12px;
    cursor: pointer;
    background: #f0f0f0;
}

.ticketwp-performer-venue-search-results .selected {
    background-color: #FFFFFF !important;
}

.ticketwp-performer-venue-search-results a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
}
.ticketwp-performer-venue-search-results a:hover {
    text-decoration: none;
    color: #0000FF;
    font-size: 14px;
}

.ticketwp-event-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticketwp-event-search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticketwp-event-search-results li {
    padding: 8px 12px;
    cursor: pointer;
}

.ticketwp-event-search-results .selected {
    background-color: #e0e0e0 !important;
}

.ticketwp-event-search-results a {
    text-decoration: none;
}

.ticketwp-search-button {
    border-style: solid;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.ticketwp-search-image {
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
}/* Custom styling for jQuery UI Datepicker */

.ui-datepicker {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 280px;
    font-family: Arial, sans-serif;
    z-index: 1000 !important;
}

.ui-datepicker-header {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
}

.ui-datepicker-title {
    margin: 0;
    line-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Month and year display */
.ui-datepicker-month {
    font-weight: bold;
    margin-right: 5px;
}

.ui-datepicker-year {
    font-weight: bold;
}

/* Navigation arrows */
.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute;
    top: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #666;
    font-size: 22px; /* Larger text for arrows */
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.ui-datepicker-prev {
    left: 5px;
}

.ui-datepicker-next {
    right: 5px;
}

/* Hide the default span elements */
.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: none;
}

/* Create text-based arrows
.ui-datepicker-prev:before {
    content: "<";
}

.ui-datepicker-next:before {
    content: ">";
}


/* Calendar table */
.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* Day names row (Sun, Mon, etc.) */
.ui-datepicker th {
    padding: 8px 0;
    text-align: center;
    font-weight: normal;
    font-size: 14px;
    color: #333;
    border: none;
}

/* Day cells */
.ui-datepicker td {
    padding: 1px;
    text-align: center;
    border: none;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: block;
    padding: 0;
    text-align: center;
    text-decoration: none;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    font-size: 14px;
    margin: 0 auto;
    color: #333;
}

/* Default day state */
.ui-datepicker td a.ui-state-default {
    background: transparent;
    border: none;
}

/* Hover state */
.ui-datepicker td a.ui-state-hover {
    background: #f0f0f0;
}

/* Selected day - blue circle like in the image */
.ui-datepicker td a.ui-state-active,
.ui-datepicker td.ui-datepicker-current-day a {
    background: #4a90e2;
    color: #fff;
}

/* Today's date */
.ui-datepicker td.ui-datepicker-today a {
    background: #f2f2f2;
}

/* Specifically style day 13 with blue circle to match image */
.ui-datepicker td a.ui-state-highlight {
    background: #4a90e2;
    color: #fff;
}

/* Disabled dates */
.ui-datepicker-unselectable span {
    color: #ccc;
    opacity: 0.6;
}

/* Category headers for tagged search results */
.search-result-title {
    text-transform: capitalize;
    color: #333;
    background-color: #FFFFFF !important;
    font-weight: 900;
    font-size: 13px;
    padding: 6px 18px;
    line-height: 18px;
    border-left: 4px solid #007bff;
    cursor: default !important;
}


.search-result-title:hover {
    color: #333 !important;
    background-color: #FFFFFF !important;
}

/* Backwards compatibility with old class name */
.ticketwp-category-header {
    text-transform: capitalize;
    color: #999;
    font-weight: bold;
    font-size: 11px;
    padding: 5px 15px;
    line-height: 16px;
    cursor: default !important;
}

.ticketwp-category-header:hover {
    background: transparent !important;
    color: #999 !important;
}

.ticketwp-result-item {
    border-bottom: 1px solid #eee !important;
    border-left: 4px solid #007bff !important;
}

.ticketwp-result-item:last-child {
    border-bottom: none !important;
}



/* CSS FOR ticketwp-search-widgets searchresults.php - START */

.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.date-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.date-input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.search-input-container {
    position: relative;
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 12px;
    padding-right: 50px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 55px;
    background: #007BFF !important;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-button:hover {
    background: #000000 !important;
    border: 1px solid #007BFF !important;
}


.search-results h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.event-date-wrapper {
    min-width: 100px;
    margin-right: 20px;
}

.event-month-day {
    text-align: left;
}

.month-day {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.day-time {
    font-size: 14px;
    color: #666;
}

.event-info {
    flex-grow: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

.venue-location {
    font-size: 14px;
    color: #e91e63;
    margin-bottom: 3px;
    font-weight: 500;
}

.venue-location a {
    color: #e91e63;
    text-decoration: none;
}

.venue-location a:hover {
    text-decoration: underline;
}

.venue-address {
    font-size: 14px;
    color: #666;
}

.ticket-button-wrapper {
    margin-left: 20px;
}

.view-tickets-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.view-tickets-btn:hover {
    background-color: #000000 !important;
    border: 1px solid #007BFF !important;
    color: #FFFFFF !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    background: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a:hover:not(.active) {
    background: #f0f0f0;
}

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

    .event-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 15px;
        margin-bottom: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        cursor: pointer;
    }

    .event-date-wrapper {
        width: auto;
        min-width: 90px;
        margin-right: 15px;
        margin-bottom: 0;
    }

    .event-month-day {
        text-align: left;
    }

    .month-day {
        font-size: 16px;
        font-weight: 600;
    }

    .day-time {
        color: #666;
        font-size: 14px;
    }

    .event-info {
        width: auto;
        flex-grow: 1;
        margin-bottom: 0;
    }

    .event-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .venue-location, .venue-location a {
        font-size: 14px;
        font-weight: 500;
        color: #e91e63;
        margin-bottom: 3px;
    }

    .venue-address {
        font-size: 14px;
        color: #666;
    }

    .venue-location a {
        pointer-events: none;
        text-decoration: none;
    }

    .ticket-button-wrapper {
        display: none;
    }
}

/* Matching Venues & Cities */
.matching-entities {
    margin-bottom: 30px;
}
.matching-entities-title {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}
.matching-entities-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.matching-entities-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 25px;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}
.matching-entities-list li a:hover {
    background: #e9ecef;
    color: #0056b3;
}
@media (max-width: 768px) {
    .matching-entities-list li a {
        padding: 10px 18px;
        font-size: 14px;
    }
}
.did-you-mean {
    font-size: 16px;
    margin-top: 10px;
}
.did-you-mean a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}
.did-you-mean a:hover {
    text-decoration: underline;
}

/* CSS FOR ticketwp-search-widgets searchresults.php - END */





/* Priority Indicator Styles - START */
.twp-priority-indicator {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 0.75em !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.twp-priority-indicator:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700) !important;
    transform: scale(1.05) !important;
    transition: all 0.2s ease !important;
}

/* Make sure priority indicators are visible in search results */
.ticketwp-performer-venue-search-results li a .twp-priority-indicator {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.ticketwp-performer-venue-search-results li:hover a .twp-priority-indicator {
    background: linear-gradient(135deg, #FFA500, #FFD700) !important;
    color: #000 !important;
}

/* Responsive adjustments for priority indicators */
@media (max-width: 768px) {
    .twp-priority-indicator {
        font-size: 0.7em !important;
        padding: 1px 4px !important;
        margin-left: 4px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .twp-priority-indicator {
        background: #000 !important;
        color: #FFD700 !important;
        border: 2px solid #FFD700 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .twp-priority-indicator:hover {
        transform: none !important;
        transition: none !important;
    }
}
/* Priority Indicator Styles - END */

/* CSS for filters - START */

/* Search results wrapper for filter layout */
.search-results-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Filter toggle button */
.filter-toggle-btn {
    position: relative;
    float: right;
    margin-bottom: 15px;
    background: #007bff !important;
    color: white !important;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.filter-toggle-btn:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.filter-toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* Filter panel - now inline within page and sticky */
.filter-panel {
    width: 0;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: width 0.3s ease;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 90;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
}

.filter-panel.open {
    width: 300px;
    padding: 20px;
}

/* Filter panel header */
.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-panel-buttons {
    display: flex;
    gap: 8px;
}

.hide-filters-btn {
    background: #6c757d !important;
    border: none;
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hide-filters-btn:hover {
    background: #5a6268 !important;
    color: #FFFFFF !important;
}

.clear-filters-btn {
    background: #dc3545 !important;
    border: none;
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #c82333 !important;
    color: #FFFFFF !important;
}

/* Filter sections */
.filter-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.filter-options label:hover {
    color: #007bff;
}

.filter-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

/* Show more button */
.show-more-btn {
    color: #007cba !important;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 124, 186, 0.05) !important;
    border: 1px solid rgba(0, 124, 186, 0.2) !important;
    font-weight: 500;
}

.show-more-btn:hover {
    background: rgba(0, 124, 186, 0.1) !important;
    border-color: #007cba !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.15) !important;
    text-decoration: none;
}

/* Results area */
.search-results {
    flex: 1;
    transition: all 0.3s ease;
}

/* Selected filters section */
.selected-filters {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.selected-filters h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.selected-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.filter-pill-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
}

.filter-pill-remove:hover {
    color: #ffdddd;
}

/* Clear all button in selected filters */
.clear-all-btn {
    background: #dc3545;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clear-all-btn:hover {
    background: #c82333;
}

/* Responsive design */
@media (max-width: 768px) {
    .search-results-wrapper {
        flex-direction: column;
    }
    
    .filter-panel {
        width: 100%;
        order: 2;
    }
    
    .filter-panel.open {
        width: 100%;
    }
    
    .search-results {
        order: 1;
    }
    
    .filter-toggle-btn {
        position: relative;
        float: none;
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filter-panel.open {
        padding: 15px;
    }
    
    .filter-panel-header h3 {
        font-size: 14px;
    }
    
    .filter-options label {
        font-size: 13px;
    }
    
    .selected-filters-list {
        gap: 6px;
    }
    
    .filter-pill {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Filter active state */
.filter-options input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: #007bff;
}

/* Smooth scrolling for filter panel */
.filter-panel {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.filter-panel::-webkit-scrollbar {
    width: 6px;
}

.filter-panel::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.filter-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filter-panel::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Filter item count display */
.filter-item-count {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* Animation for filter panel */
@keyframes slideInFromRight {
    from {
        right: -350px;
    }
    to {
        right: 0;
    }
}

@keyframes slideOutToRight {
    from {
        right: 0;
    }
    to {
        right: -350px;
    }
}

.filter-panel.opening {
    animation: slideInFromRight 0.3s ease forwards;
}

.filter-panel.closing {
    animation: slideOutToRight 0.3s ease forwards;
}

/* CSS for filters - END */