.tribe-events-tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.tribe-events-filter-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.tribe-events-filter-label {
    font-weight: 700;
    color: #585783;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-right: 0;
    width:50px;
}

.tribe-events-category-filter {
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    min-width: 250px;
}

.tribe-events-category-filter:focus {
    outline: none;
    border-color: #585783;
}

.tribe-events-tabs-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
}

.tribe-tabs-scroll-left,
.tribe-tabs-scroll-right {
    background: #585783;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    z-index: 10;
    transition: background 0.3s;
}

.tribe-tabs-scroll-left:hover,
.tribe-tabs-scroll-right:hover {
    background: #434266;
}

.tribe-tabs-scroll-left {
    margin-right: 10px;
}

.tribe-tabs-scroll-right {
    margin-left: 10px;
}

.tribe-events-tabs-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tribe-events-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tribe-event-tab {
    padding: 15px 30px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
    color: #333;
}

.tribe-event-tab:hover {
    background: #f0f0f0;
    border-color: #585783;
}

.tribe-event-tab.active {
    background: #585783;
    color: white;
    border-color: #585783;
}

.tribe-events-tabs-content {
    position: relative;
}

.tribe-event-tab-panel {
    display: none;
}

.tribe-event-tab-panel.active {
    display: block;
}

.tribe-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tribe-event-item {
    display: flex;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tribe-event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.tribe-event-image {
    width: 400px;
    flex-shrink: 0;
}

.tribe-event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tribe-event-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #585783 0%, #764ba2 100%);
}

.tribe-event-details {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tribe-event-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #585783;
    line-height: 1.3;
}

.tribe-event-title a {
    color: inherit;
    text-decoration: none;
}

.tribe-event-title a:hover {
    color: #585783;
}

.tribe-event-category {
    display: inline-block;
    background: #efeff5;
    color: #585783;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    width: fit-content;
}

.tribe-event-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.tribe-event-cost,
.tribe-event-time {
    display: flex;
    align-items: center;
}

.tribe-event-cost svg,
.tribe-event-time svg {
    margin-right: 6px;
    vertical-align: middle;
    stroke: #333;
}

.tribe-event-view-details {
    display: inline-block;
    background: #585783;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 15px;
    width: fit-content;
}

.tribe-event-view-details:hover {
    background: #434266;
    color: white;
}

@media (max-width: 768px) {
    .tribe-event-item {
        flex-direction: column;
    }
    
    .tribe-event-image {
        width: 100%;
        height: 200px;
    }
    
    .tribe-event-details {
        padding: 20px;
    }
    
    .tribe-event-title {
        font-size: 18px;
    }
    
    .tribe-event-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .tribe-event-tab {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .tribe-tabs-scroll-left,
    .tribe-tabs-scroll-right {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .tribe-events-filter-container {
        margin-bottom: 15px;
    }
    
    .tribe-events-category-filter {
        width: 100%;
        max-width: 100%;
    }
}


/* Hide arrows on large screens */
@media (min-width: 992px) {
    .tribe-tabs-scroll-left,
    .tribe-tabs-scroll-right {
        display: none;
    }
    
    .tribe-events-tabs-nav-container {
        justify-content: center;
    }
}

/* Show arrows on smaller screens */
@media (max-width: 991px) {
    .tribe-tabs-scroll-left,
    .tribe-tabs-scroll-right {
        display: block;
    }
}

.tribe-available-tours-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #585783;
    font-weight: 500;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
    max-width:170px !important;
    width:100%;
}

.tribe-available-tours-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #585783;
}

.tribe-available-tours-label span {
    user-select: none;
}

@media (max-width: 768px) {
    .tribe-events-filter-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .tribe-available-tours-label {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
        justify-content: flex-end;
    }
}

.tribe-no-events-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.tribe-no-events-message p {
    margin: 0;
}

.tribe-event-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 600px;
}
