/* ========================================
   HSJ Tour Search - Material Design
   ======================================== */

/* Base Styles */
.bravo_search_tour {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

/* ========== SEARCH HEADER ========== */
.bravo_search_tour .bg-light-2 {
    background: white;
    padding: 40px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bravo_search_tour .text-30 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

/* ========== TOP BAR ========== */
.search-results-header {
    padding: 10px;
    background: white;  
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.results-count .count {
    color: #F6921E;
}

.search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.layout-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.layout-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.layout-btn.active {
    background: white;
    color: #F6921E;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sort-dropdown {
    position: relative;
}

.sort-btn {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-btn:hover {
    border-color: #F6921E;
}

/* ========== SIDEBAR FILTERS ========== */
.filters-sidebar {
    position: sticky;
    top: 20px;
}

.filter-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F6921E;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-checkbox.checked {
    background: #F6921E;
    border-color: #F6921E;
    color: white;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* ========== TOUR CARDS - GRID VIEW ========== */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.tour-card-grid .tour-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tour-card-grid .tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.tour-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image {
    transform: scale(1.1);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.wishlist-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.wishlist-button:hover,
.service-wishlist.active .wishlist-button {
    background: #F6921E;
    color: white;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #F6921E;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgb(228 235 221);
    color: white;
    padding: 0px 15px;
    border-radius: 8px;
    font-weight: 700;
}

.tour-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-category {
    margin-bottom: 8px;
}

.tour-category span {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tour-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tour-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tour-title a:hover {
    color: #F6921E;
}

.tour-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #e2e8f0;
    font-size: 14px;
}

.stars i.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 12px;
    color: #64748b;
}

.tour-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.info-item i {
    color: #F6921E;
}

.tour-action {
    margin-top: auto;
}

.btn-view-details {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}
 
.btn-view-details:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 146, 30, 0.3);
}

/* ========== TOUR CARDS - LIST VIEW ========== */
.tours-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.tour-card-horizontal {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
}

.tour-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.tour-card__image-horizontal {
    position: relative;
    width: 280px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.tour-card__content-horizontal {
    flex: 1;
    padding: 24px;
    display: flex;
    justify-content: space-between;
}

.content-main {
    flex: 1;
    padding-right: 24px;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 150px;
}

.price-section {
    text-align: right;
}

.price-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.price {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

/* ========== PAGINATION ========== */
.pagination-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item .page-link {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item .page-link:hover,
.page-item.active .page-link {
    background: #F6921E;
    border-color: #F6921E;
    color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .search-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-controls {
        justify-content: space-between;
    }
    
    .tour-card__image-horizontal {
        width: 100%;
        height: 180px;
    }
    
    .tour-card-horizontal {
        flex-direction: column;
    }
    
    .tour-card__content-horizontal {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-sidebar {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== LOADING STATES ========== */
.loading .tours-grid,
.loading .tours-list {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #F6921E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Modern F
ilter Sidebar Styles */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.filter-header { 
    color: #1a4b89;
    padding: 1.5rem;
    margin: 0;
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-header i {
    font-size: 1.125rem;
}
 

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.filter-title i {
    color: #f97316;
    font-size: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.filter-option:hover {
    background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%);
    border-color: #fed7aa;
    transform: translateX(4px);
}

.filter-option.active {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fb923c;
}

/* Modern Checkbox Styles */
.modern-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.modern-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.modern-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: #f97316;
    transform: scale(1.1);
}

.modern-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modern-checkbox input:checked + .checkmark:after {
    display: block;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: rotate(45deg) scale(0);
    }
    50% {
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
}

.filter-label {
    font-size: 0.9375rem;
    color: #475569;
    flex: 1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.filter-option:hover .filter-label {
    color: #1e293b;
}

.filter-option.active .filter-label {
    color: #ea580c;
    font-weight: 600;
}

.filter-count {
    font-size: 0.8125rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block; /* Show counts now */
}

.filter-option:hover .filter-count {
    background: #e2e8f0;
    color: #475569;
}

.filter-option.active .filter-count {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

/* Search within filters */
.filter-search {
    position: relative;
    margin-bottom: 1rem;
}

.filter-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.filter-search input:focus {
    outline: none;
    border-color: #f97316;
    background: white;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Clear filters button */
.clear-filters {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.clear-filters:active {
    transform: translateY(0);
}

/* Apply filters button */
.apply-filters {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.apply-filters:active {
    transform: translateY(0);
}

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

.filter-loading .apply-filters {
    background: #94a3b8;
}

/* Mobile filter toggle */
.mobile-filter-toggle {
    display: none; 
    color: #1a4b89;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .filters-sidebar.show {
        left: 0;
    }
    
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .filter-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .filter-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .filter-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Wishlist Button Styles */
.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wishlist-btn i {
    font-size: 1.125rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.wishlist-btn.active i {
    color: #ef4444;
    transform: scale(1.2);
}

.wishlist-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Service Wishlist Integration */
.service-wishlist {
    display: inline-block;
    cursor: pointer;
}

.service-wishlist .wishlist-btn {
    position: relative;
    top: auto;
    right: auto;
}

.service-wishlist.active .wishlist-btn i {
    color: #ef4444;
}

.service-wishlist.loading {
    opacity: 0.6;
    pointer-events: none;
}/* Boot
strap Pagination Styling */
.pagination-wrapper {
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748b;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination .page-link:hover {
    color: #f97316;
    background: #fff7ed;
    border-color: #fed7aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.pagination .page-item.active .page-link {
    color: white;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: #f97316;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-2px);
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: none;
    box-shadow: none;
}

/* Previous/Next buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.pagination .page-item:first-child .page-link {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.pagination .page-item:last-child .page-link {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* Pagination info text */
.pagination-wrapper .text-center {
    margin-top: 1.5rem;
}

.pagination-wrapper .text-muted {
    color: #64748b !important;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .pagination .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 0.375rem 0.75rem;
    }
    
    /* Hide some page numbers on mobile */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.disabled) {
        display: none;
    }
    
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.disabled):nth-child(-n+3),
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.disabled):nth-last-child(-n+3) {
        display: flex;
    }
}

/* Loading spinner for pagination */
.pagination-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.pagination-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced checkbox styles for better interaction */
.modern-checkbox input:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.modern-checkbox .checkmark.checked {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: #f97316;
    transform: scale(1.1);
}

.modern-checkbox .checkmark.checked:after {
    display: block;
    animation: checkmark 0.3s ease-in-out;
}

/* Loading spinner styles */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Search results enhancements */
.search-results-header {
    background: white;    
    border: 1px solid #f1f5f9;
}

.results-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.results-count .count {
    color: #f97316;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.layout-toggle {
    display: flex;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
}

.layout-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-btn:hover {
    color: #f97316;
    background: white;
}

.layout-btn.active {
    color: white;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.layout-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-controls {
        width: 100%;
        justify-content: space-between;
    }
}/*
 Fix checkbox interaction issues */
.modern-checkbox {
    cursor: pointer;
    user-select: none;
}

.modern-checkbox input {
    cursor: pointer;
}

.filter-option {
    cursor: pointer;
    user-select: none;
}

.filter-label {
    cursor: pointer;
    user-select: none;
}

/* Ensure proper checkbox states */
.modern-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border-color: #f97316 !important;
    transform: scale(1.1);
}

.modern-checkbox input:checked + .checkmark:after {
    display: block !important;
}

/* Active filter option styling */
.filter-option.active {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-color: #fb923c !important;
}

.filter-option.active .filter-label {
    color: #ea580c !important;
    font-weight: 600 !important;
}

.filter-option.active .filter-count {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
}

/* Pagination loading state */
.pagination-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Search form enhancements */
.hsjtravel_form_search {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.hsjtravel_form_search .mainSearch__submit {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
}

.hsjtravel_form_search .mainSearch__submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4) !important;
}

/* Mobile responsive fixes */
@media (max-width: 991px) {
    .search-results-header {
        padding: 1rem;
    }
    
    .filters-sidebar {
        border-radius: 0;
    }
    
    .filter-header {
        padding: 1rem 1.5rem;
    }
    
    .filter-content {
        padding: 1rem 1.5rem;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus states for accessibility */
.modern-checkbox input:focus + .checkmark {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.filter-search input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.apply-filters:focus,
.clear-filters:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}/
* Debug styles for checkbox testing */
.modern-checkbox {
    position: relative;
}

.modern-checkbox::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px dashed transparent;
    border-radius: 8px;
    pointer-events: none;
}

.modern-checkbox:hover::before {
    border-color: #f97316;
}

/* Ensure checkbox is clickable */
.modern-checkbox input[type="checkbox"] {
    z-index: 2;
    position: relative;
}

/* Visual feedback for debugging */
.filter-option:hover {
    background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%) !important;
    border-color: #fed7aa !important;
    transform: translateX(4px) !important;
}

/* Make sure the entire filter option is clickable */
.filter-option {
    position: relative;
    overflow: visible;
}

.filter-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

.modern-checkbox {
    z-index: 2;
    position: relative;
}

.filter-label {
    z-index: 2;
    position: relative;
}

.filter-count {
    z-index: 2;
    position: relative;
}

/* Loading state for apply button */
.apply-filters.loading {
    opacity: 0.7;
    pointer-events: none;
}

.apply-filters.loading i {
    animation: spin 1s linear infinite;
}

/* Success state for applied filters */
.filter-option.just-applied {
    animation: filterApplied 0.5s ease-out;
}

@keyframes filterApplied {
    0% {
        background: #dcfce7;
        border-color: #16a34a;
    }
    100% {
        background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
        border-color: #fb923c;
    }
}/* Moder
n Hero Section Redesign */
.search-hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hsj-theme-primary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100px 100px;
    z-index: 3;
}

.search-hero-section .container {
    position: relative;
    z-index: 10;
}

/* Breadcrumb Styling */
.hero-breadcrumb {
    margin-bottom: 2rem;
}

.hero-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-breadcrumb .breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: white;
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
}

.hero-breadcrumb i {
    margin-right: 0.5rem;
    font-size: 0.8125rem;
}

/* Hero Content */
.hero-content {
    color: white;
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Enhanced Search Form */
.hero-search-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.search-form-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.search-form-body {
    margin-bottom: 1.5rem;
}

/* Popular Searches */
.popular-searches {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.popular-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.popular-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.popular-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.popular-tag:hover {
    background: #f97316;
    color: white;
    border-color: #f97316;
    transform: translateY(-1px);
}

/* Floating Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 4;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-element.element-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-element.element-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 3s;
}

.floating-element.element-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Search Summary Bar */
.search-summary-bar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.filter-tag i {
    font-size: 0.75rem;
}

.remove-filter {
    background: none;
    border: none;
    color: #64748b;
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-filter:hover {
    color: #ef4444;
}

.clear-all-filters {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-all-filters:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Search Actions */
.search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-save-search,
.btn-share-search {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-save-search:hover {
    background: #f97316;
    border-color: #f97316;
    color: white;
    transform: translateY(-1px);
}

.btn-share-search:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .search-hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-search-form {
        padding: 1.5rem;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .search-summary-bar {
        padding: 0.75rem 0;
    }
    
    .search-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .active-filters {
        width: 100%;
    }
}

/* Enhanced form styling for hero */
.hero-search-form .hsjtravel_form_search {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.hero-search-form .mainSearch__submit {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 1rem 2rem !important;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4) !important;
    transition: all 0.3s ease !important;
}

.hero-search-form .mainSearch__submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5) !important;
}

/* Form field enhancements */
.hero-search-form .form-group {
    margin-bottom: 1.5rem;
}

.hero-search-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.hero-search-form .form-control:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}/* Share
 Modal Styles */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-modal-body {
    padding: 2rem;
}

.share-modal-body p {
    margin-bottom: 1rem;
    color: #64748b;
}

.share-url-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.share-url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8fafc;
}

.copy-url-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-url-btn:hover {
    background: #ea580c;
}

.share-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a91da;
    transform: translateY(-1px);
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

/* Enhanced form field focus states */
.field-focused {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.hero-search-form .form-group {
    position: relative;
    transition: all 0.3s ease;
}

.hero-search-form .form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}

/* Loading states */
.hero-search-form .mainSearch__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Animated background for hero */
 

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Improved mobile responsiveness */
@media (max-width: 576px) {
    .hero-search-form {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .search-form-header h3 {
        font-size: 1.5rem;
    }
    
    .popular-searches {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .popular-tags {
        width: 100%;
    }
    
    .share-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .share-modal-body {
        padding: 1.5rem;
    }
    
    .share-social {
        flex-direction: column;
    }
    
    .share-btn {
        min-width: auto;
    }
    
    .hero-breadcrumb .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        margin-top: 0;
        font-size: 0.8125rem;
    }
}

/* Accessibility improvements */
.hero-search-form .form-control:focus,
.share-url-input:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.popular-tag:focus,
.share-btn:focus,
.btn-save-search:focus,
.btn-share-search:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .search-hero-section,
    .search-summary-bar {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .hero-search-form {
        background: white;
        border: 2px solid #000;
    }
    
    .popular-tag {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .search-hero-section::before {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}/* E
nhanced Modern Search Form Styles */
.modern-search-form {
    width: 100%;
}

.search-fields-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-field {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.field-label i {
    color: #f97316;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Search Input with Suggestions */
.service-name-field {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:hover {
    background: #f9fafb;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item i {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Date Range Picker Styling */
.date-range-container {
    position: relative;
}

.flatpickr-input {
    cursor: pointer;
}

.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #f97316 !important;
    border-color: #f97316 !important;
}

.flatpickr-day.inRange {
    background: rgba(249, 115, 22, 0.1) !important;
    border-color: rgba(249, 115, 22, 0.1) !important;
}

/* Enhanced Select2 Styling */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    font-family: inherit;
    box-sizing: border-box !important;
}

.select2-container--bootstrap4 .select2-selection--single {
    height: calc(3.5rem + 2px) !important;
    padding: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 0.9375rem !important;
    background: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    padding: 1rem 1.25rem !important;
    line-height: 1.5 !important;
    color: #374151 !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    height: calc(3.5rem + 2px) !important;
    right: 1rem !important;
    width: 20px !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 6px 6px 0 6px !important;
    height: 0 !important;
    left: 50% !important;
    margin-left: -6px !important;
    margin-top: -3px !important;
    position: absolute !important;
    top: 50% !important;
    width: 0 !important;
}

.select2-container--bootstrap4.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent !important;
    border-width: 0 6px 6px 6px !important;
}

.select2-container--bootstrap4 .select2-selection--multiple {
    min-height: calc(3.5rem + 2px) !important;
    padding: 0.5rem 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
    transform: translateY(-1px) !important;
}

.select2-dropdown {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    margin-top: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.select2-container--bootstrap4 .select2-dropdown .select2-search {
    padding: 1rem !important;
}

.select2-container--bootstrap4 .select2-dropdown .select2-search .select2-search__field {
    padding: 0.75rem 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    background: #f8fafc !important;
}

.select2-container--bootstrap4 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: #f97316 !important;
    outline: none !important;
    background: white !important;
}

.select2-container--bootstrap4 .select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted {
    background: #fff7ed !important;
    color: #ea580c !important;
}

.select2-container--bootstrap4 .select2-results__option[aria-selected="true"] {
    background: #f97316 !important;
    color: white !important;
}

.select2-container--bootstrap4 .select2-results__option[aria-selected="true"]:hover {
    background: #ea580c !important;
}

/* Select2 Multiple Selection Tags */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    color: white !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    padding: 0.375rem 0.75rem !important;
    margin: 0.25rem !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-right: 0.5rem !important;
    font-weight: bold !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white !important;
}

/* Loading state */
.select2-container--bootstrap4.select2-container--loading .select2-selection--single:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 3rem;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #f97316;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* No results message */
.select2-container--bootstrap4 .select2-results__message {
    padding: 1rem !important;
    color: #6b7280 !important;
    font-style: italic !important;
    text-align: center !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .select2-container--bootstrap4 .select2-selection--single {
        height: calc(3rem + 2px) !important;
    }
    
    .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
        padding: 0.875rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
        height: calc(3rem + 2px) !important;
        right: 0.75rem !important;
    }
    
    .select2-dropdown {
        margin-top: 2px !important;
    }
}

/* Search Button */
.search-button-container {
    margin-top: 1rem;
}

.btn-search-modern {
    width: 100%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-search-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5);
}

.btn-search-modern:active {
    transform: translateY(-1px);
}

.btn-search-modern.loading span {
    opacity: 0;
}

.btn-search-modern .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-search-modern.loading .btn-loading {
    opacity: 1;
}

/* Hero Form Specific Styles */
.hero-form .search-fields-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.hero-form .form-control {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.hero-form .btn-search-modern {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .search-fields-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-name-field {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .search-fields-container {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 1rem;
    }
    
    .service-name-field {
        grid-column: auto;
    }
    
    .hero-form .search-fields-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .hero-form .service-name-field {
        grid-column: 1 / -1;
    }
}

/* Loading States */
.form-control:disabled {
    background: #f9fafb;
    cursor: not-allowed;
    opacity: 0.6;
}

.search-field.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Accessibility Improvements */
.form-control:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.suggestion-item:focus {
    background: #f3f4f6;
    outline: 2px solid #f97316;
    outline-offset: -2px;
}

/* Animation for form appearance */
.search-field {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.search-field:nth-child(1) { animation-delay: 0.1s; }
.search-field:nth-child(2) { animation-delay: 0.2s; }
.search-field:nth-child(3) { animation-delay: 0.3s; }
.search-field:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Results Summary Styling */
.search-actions .results-summary {
    text-align: right;
    padding: 0.75rem 0;
}

.search-actions .results-summary small {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Remove unnecessary button styles */
.btn-save-search,
.btn-share-search {
    display: none;
}

/* Enhanced mobile responsiveness */
@media (max-width: 576px) {
    .search-fields-container {
        gap: 1rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-search-modern {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .field-label {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
}/
* Additional Select2 Fixes */
.select2-container {
    z-index: 1000;
}

.select2-dropdown {
    z-index: 9999 !important;
}

/* Fix for Select2 in hero form */
.hero-search-form .select2-container {
    z-index: 1001;
}

.hero-search-form .select2-dropdown {
    z-index: 10000 !important;
}

/* Ensure Select2 doesn't get clipped */
.search-field {
    position: relative;
    z-index: 1;
}

.search-field.location-field {
    z-index: 10;
    width: 100%;
    max-width: 100%;
}

.search-field.location-field .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.search-field.attributes-field {
    z-index: 9;
}

/* Fix Select2 container width issues */
.select2-container--bootstrap4 {
    display: block !important;
    width: 100% !important;
}

/* Improve Select2 dropdown positioning */
.select2-dropdown--below {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: -2px !important;
}

.select2-dropdown--above {
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-bottom: -2px !important;
}

/* Select2 clear button styling */
.select2-container--bootstrap4 .select2-selection__clear {
    color: #6b7280 !important;
    cursor: pointer !important;
    float: right !important;
    font-weight: bold !important;
    margin-right: 2rem !important;
    margin-top: 0.5rem !important;
}

.select2-container--bootstrap4 .select2-selection__clear:hover {
    color: #ef4444 !important;
}

/* Fix for mobile Select2 */
@media (max-width: 768px) {
    .select2-dropdown {
        max-height: 300px !important;
        overflow-y: auto !important;
    }
    
    .select2-container--bootstrap4 .select2-results__option {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .select2-container--bootstrap4 .select2-dropdown .select2-search .select2-search__field {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
}

/* Select2 focus improvements */
.select2-container--bootstrap4.select2-container--open .select2-selection {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-container--bootstrap4.select2-container--open.select2-container--above .select2-selection {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Improve Select2 loading state */
.select2-container--bootstrap4.select2-container--loading .select2-selection__placeholder {
    color: #9ca3af !important;
}

/* Select2 option group styling */
.select2-container--bootstrap4 .select2-results__group {
    background: #f8fafc !important;
    color: #374151 !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Select2 disabled state */
.select2-container--bootstrap4.select2-container--disabled .select2-selection {
    background: #f9fafb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}/* E
nhanced Popular Tags Styling */
.popular-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: inline-block;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.popular-tag:hover {
    background: #f97316;
    color: white;
    border-color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.popular-tag:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popular-tag:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    z-index: 1000;
}

/* Filter count active states */
.filter-option.active .filter-count {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
}

.filter-option:hover .filter-count {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

/* Hide counts when zero */
.filter-count:empty,
.filter-count[data-count="0"] {
    display: none;
}

/* Mobile responsive popular tags */
@media (max-width: 576px) {
    .popular-tag {
        max-width: 120px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .popular-tags {
        gap: 0.25rem;
    }
}/* Fix Sel
ect2 Width Issues */
.hero-search-form .select2-container,
.modern-search-form .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hero-search-form .select2-container--bootstrap4 .select2-selection--single,
.modern-search-form .select2-container--bootstrap4 .select2-selection--single {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hero-search-form .select2-dropdown,
.modern-search-form .select2-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
}

/* Prevent Select2 from extending beyond parent */
.search-fields-container {
    overflow: hidden;
}

.search-field {
    overflow: visible; /* Allow dropdown to show */
    position: relative;
}

/* Force Select2 to respect container boundaries */
.select2-container--bootstrap4 .select2-dropdown {
    position: absolute !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    left: 0 !important;
    right: auto !important;
    box-sizing: border-box !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .select2-container--bootstrap4 .select2-selection--single {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .select2-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
    }
}

/* Hero form specific constraints */
.hero-form .location-field,
.hero-form .attributes-field {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hero-form .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Grid layout fixes */
@media (min-width: 768px) {
    .search-fields-container {
        overflow: visible; /* Allow dropdowns to show */
    }
}

/* Ensure proper positioning */
.select2-container--open .select2-dropdown {
    width: 100% !important;
    max-width: 100% !important;
}