/* Tour Sidebar Filter Styling */
.list-sidebar {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.list-sidebar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Sidebar Header */
.sidebar-header {
    background: linear-gradient(135deg, #029e9d 0%, #027f7e 100%);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.filter-reset-btn {
    transition: all 0.3s ease;
}

.filter-reset-btn:hover {
    transform: rotate(180deg);
    background-color: #f8f9fa !important;
}

.bg-theme-custom {
    background: #029e9d !important;
}

/* Accordion Styling */
.sidebar-accordion-item {
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.sidebar-accordion-item:hover {
    background: rgba(248, 250, 252, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    position: relative;
}

.accordion-header:hover {
    background: rgba(240, 249, 255, 0.8);
}

.accordion-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(2, 158, 157, 0.2) 50%, transparent 100%);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.accordion-header[aria-expanded="false"] .accordion-icon {
    transform: rotate(-90deg);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(0deg);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(2, 158, 157, 0.1);
}

.accordion-body .filter-list {
    margin: 0;
    padding: 0;
}

/* Custom Checkbox Styling */
.custom-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    padding-left: 2rem;
    margin-bottom: 0;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: middle;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
}

.custom-control-label::before {
    position: absolute;
    top: 0.5rem;
    left: -2rem;
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: 2px solid #adb5bd;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.custom-control-label::after {
    position: absolute;
    top: 0.5rem;
    left: -2rem;
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    content: "";
    background: no-repeat 50% / 50% 50%;
    transition: all 0.2s ease;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: var(--theme-color, #029e9d);
    background-color: var(--theme-color, #029e9d);
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

.custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.custom-control-label:hover {
    color: var(--theme-color, #029e9d);
}

.custom-control-label:hover::before {
    border-color: var(--theme-color, #029e9d);
}

/* Filter List Styling */
.filter-list {
    animation: fadeIn 0.3s ease;
    padding-left: 0;
    list-style: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-item {
    transition: all 0.2s ease;
    padding: 0;
    margin-bottom: 0.75rem;
    display: block;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-item:hover {
    transform: translateX(5px);
}

.filter-item:hover .custom-control-label {
    color: var(--theme-color, #029e9d);
    font-weight: 500;
}

/* Scrollbar Styling */
.accordion-body::-webkit-scrollbar {
    width: 6px;
}

.accordion-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.accordion-body::-webkit-scrollbar-thumb {
    background: var(--theme-color, #029e9d);
    border-radius: 10px;
}

.accordion-body::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color-dark, #029e9d);
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Featured Tours Styling */
.sidebar-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.sidebar-item .trend-image img {
    transition: transform 0.3s ease;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.sidebar-item .trend-item1:hover .trend-image img {
    transform: scale(1.05);
}

.sidebar-item .color-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-sticky {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .list-sidebar {
        margin-top: 1rem;
    }
}

/* Active Filter Badge */
.filter-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background-color: var(--theme-color, #029e9d);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.filter-badge:hover {
    background-color: var(--theme-color-dark, #029e9d);
    cursor: pointer;
}

.filter-badge i {
    margin-left: 0.25rem;
}

/* Loading State */
.filter-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.filter-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--theme-color, #029e9d);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* List Results Header Styling */
.list-results {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.list-results-sort p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
}

.list-results-sort i {
    color: #029e9d;
}

/* Sort Dropdown Styling */
.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.sort-dropdown-toggle:hover {
    border-color: #029e9d;
    color: #029e9d;
    background: #f0f9ff;
    transform: translateY(-1px);
}

.sort-dropdown-toggle:focus {
    box-shadow: 0 0 0 3px rgba(2, 158, 157, 0.1);
    border-color: #029e9d;
    outline: none;
}

.sort-dropdown-toggle .chevron-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.sort-dropdown.active .chevron-icon {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.sort-dropdown.active .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.sort-dropdown-item:hover {
    background-color: #f0f9ff;
    color: #029e9d;
}

.sort-dropdown-item.active {
    background-color: #e0f2fe;
    color: #029e9d;
    font-weight: 600;
}

.sort-dropdown-item.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    color: #029e9d;
}

.sort-dropdown-item i {
    width: 1.5rem;
    text-align: center;
}

.sort-dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: #e2e8f0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .list-results {
        padding: 0.75rem 1rem;
    }

    .list-results-sort p {
        font-size: 0.85rem;
    }

    .sort-dropdown-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .sort-dropdown-menu {
        min-width: 220px;
    }

    .sort-label {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .list-results {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .list-results-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .sort-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 100%;
    }

    .sort-label {
        display: none;
    }
}

/* Special Services List Styling */
.special-services-list {
    margin-top: 1rem;
}

.special-services-list h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.special-services-list ul {
    padding-left: 0;
    margin-bottom: 0;
}

.special-services-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.special-services-list li i {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.special-services-list li span {
    color: #374151;
    font-weight: 400;
}

/* Responsive Special Services */
@media (max-width: 768px) {
    .special-services-list {
        margin-top: 0.75rem;
    }

    .special-services-list h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .special-services-list li {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
}

/* Tour Card Image Styling */
.trend-item2 {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    border-radius: 0.5rem;
}

.trend-item2 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    transition: transform 0.3s ease;
}

.trend-item2:hover a {
    transform: scale(1.05);
}

.trend-item2 .color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* Responsive Tour Card Images */
@media (max-width: 768px) {
    .trend-item2 {
        padding-top: 60%; /* 16:10 for tablets */
    }
}

@media (max-width: 576px) {
    .trend-item2 {
        padding-top: 56.25%; /* 16:9 for mobile */
        margin-bottom: 1rem;
    }
}

/* Show More Button Styling */
.show-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #029e9d 0%, #027f7e 100%);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 158, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 158, 157, 0.4);
    background: linear-gradient(135deg, #027f7e 0%, #026a69 100%);
}

.show-more-btn:active {
    transform: translateY(0);
}

.show-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: scale(1.1);
}

.show-more-btn.loading i {
    animation: spin 1s linear infinite;
}

/* Responsive Show More Button */
@media (max-width: 768px) {
    .show-more-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .show-more-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* No Results / Empty State Styling */
.no-results-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-results-content {
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(2, 158, 157, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(2, 158, 157, 0);
    }
}

.no-results-icon i {
    font-size: 3rem;
    color: #029e9d;
    opacity: 0.7;
}

.no-results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.no-results-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.no-results-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #029e9d 0%, #027f7e 100%);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 158, 157, 0.3);
}

.no-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 158, 157, 0.4);
    background: linear-gradient(135deg, #027f7e 0%, #026665 100%);
}

.no-results-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(2, 158, 157, 0.3);
}

.no-results-btn i {
    font-size: 0.875rem;
}

/* Error State Styling */
.error-state .no-results-icon {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-icon {
    animation: shake 0.6s ease-out, pulse 2s ease-in-out infinite 0.6s;
}

.error-icon i {
    color: #dc2626;
}

.error-state .no-results-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.error-state .no-results-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.error-state .no-results-btn:active {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .no-results-container {
        min-height: 300px;
        padding: 2rem 1rem;
    }

    .no-results-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .no-results-icon i {
        font-size: 2.5rem;
    }

    .no-results-title {
        font-size: 1.5rem;
    }

    .no-results-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .no-results-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

