.search-page {
    min-height: 100vh;
    background: linear-gradient(135deg, rgb(var(--primary) / 0.02) 0%, rgb(var(--accent) / 0.02) 100%);
    padding: 2rem 0;
}

.search-header {
    background-color: rgb(var(--card) / 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgb(var(--border));
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgb(0 0 0 / 0.1);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .search-form {
        flex-direction: row;
        align-items: center;
    }
}

.search-field {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgb(var(--primary) / 0.1);
}

/* Location Autocomplete Dropdown */
.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.location-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgb(var(--border));
    transition: background-color 0.2s ease;
    color: rgb(var(--foreground));
}

.location-option:hover {
    background-color: rgb(var(--muted));
}

.location-option:last-child {
    border-bottom: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(var(--muted-foreground));
    width: 1.25rem;
    height: 1.25rem;
}

.search-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgb(var(--primary) / 0.4);
}

/* Search Tabs */
.search-tabs {
    display: flex;
    background-color: rgb(var(--card) / 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgb(var(--border));
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.search-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: rgb(var(--muted-foreground));
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.search-tab.active {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    color: white;
    transform: scale(1.02);
}

.search-tab:hover:not(.active) {
    background-color: rgb(var(--muted) / 0.5);
    color: rgb(var(--foreground));
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgb(var(--card) / 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--border));
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgb(var(--background));
    border: 1px solid rgb(var(--border));
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    border-color: rgb(var(--primary));
    transform: scale(1.05);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    color: white;
    border-color: transparent;
}

.filter-chip i {
    width: 1rem;
    height: 1rem;
}

.filters-toggle {
    margin-left: auto;
    padding: 0.5rem 1.5rem;
    background-color: rgb(var(--muted));
    color: rgb(var(--foreground));
    border: 1px solid rgb(var(--border));
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters-toggle:hover {
    background-color: rgb(var(--primary));
    color: white;
}

/* Search Results */
.search-results {
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgb(var(--card) / 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--border));
}

.results-count {
    font-weight: 600;
    color: rgb(var(--foreground));
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background-color: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.15);
    border-color: rgb(var(--primary) / 0.5);
}

.result-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgb(var(--primary) / 0.1), rgb(var(--accent) / 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover .result-image img {
    transform: scale(1.05);
}

.result-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.result-content {
    padding: 1.5rem;
}

.result-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: rgb(var(--foreground));
    line-height: 1.4;
}

.result-subtitle {
    color: rgb(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.result-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgb(var(--muted-foreground));
}

.result-meta-item i {
    width: 1rem;
    height: 1rem;
    color: rgb(var(--primary));
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-tag {
    background-color: rgb(var(--muted));
    color: rgb(var(--foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.result-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: rgb(var(--primary));
    margin-left: auto;
}

.btn-outline {
    padding: 0.5rem 1rem;
    border: 1px solid rgb(var(--primary));
    color: rgb(var(--primary));
    background: transparent;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: rgb(var(--primary));
    color: white;
    transform: translateY(-1px);
}

/* Advanced Filters Drawer */
.filters-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background-color: rgb(var(--background));
    border-left: 1px solid rgb(var(--border));
    box-shadow: -10px 0 30px rgb(0 0 0 / 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.filters-drawer.open {
    right: 0;
}

.filters-overlay {
    position: fixed;
    inset: 0;
    background-color: rgb(0 0 0 / 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filters-overlay.open {
    opacity: 1;
    visibility: visible;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(var(--border));
}

.filters-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgb(var(--foreground));
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(var(--foreground));
}

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

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

.filter-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(var(--primary));
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.price-input {
    flex: 1;
    min-width: 0; /* Prevent flex items from overflowing */
    padding: 0.5rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 0.875rem;
}

.price-range span {
    color: rgb(var(--muted-foreground));
    font-weight: 500;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-page {
        padding: 1rem 0;
    }

    .search-header {
        padding: 1.5rem;
    }

    .search-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .search-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-chips {
        padding: 0.75rem;
    }

    .filters-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .filters-drawer {
        width: 100%;
        right: -100%;
        max-width: 100vw;
        padding: 1rem;
    }
    
    .price-presets {
        gap: 0.25rem;
    }
    
    .preset-btn {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Loading State */
.loading-results {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: rgb(var(--muted-foreground));
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgb(var(--border));
    border-top: 2px solid rgb(var(--primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

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

/* Empty State */
.empty-results {
    text-align: center;
    padding: 4rem 2rem;
    color: rgb(var(--muted-foreground));
}

.empty-results i {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    color: rgb(var(--muted-foreground) / 0.5);
}

/* Professional Cards - Complete Styling System */
.professional-card {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.08);
    height: fit-content;
}

.professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.15);
    border-color: rgb(var(--primary) / 0.3);
}

/* Card Image Container */
.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(var(--primary) / 0.1), rgb(var(--accent) / 0.1));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.professional-card:hover .card-image img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.badge-verified {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 12px rgb(34 197 94 / 0.3);
}

.badge-standard {
    background: rgb(var(--muted) / 0.9);
    color: rgb(var(--foreground));
    border: 1px solid rgb(var(--border));
}

.badge-next-available {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgb(59 130 246 / 0.3);
    top: 3.5rem; /* Position below other badges */
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-next-available i {
    width: 12px;
    height: 12px;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: rgb(var(--foreground));
}

.card-subtitle {
    font-size: 0.875rem;
    color: rgb(var(--muted-foreground));
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta Information */
.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Rating System */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating i {
    width: 1rem;
    height: 1rem;
    color: #d1d5db; /* Gray for empty stars */
    transition: color 0.2s ease;
}

.rating i.filled {
    color: #fbbf24; /* Yellow for filled stars */
}

.rating-text {
    color: rgb(var(--muted-foreground));
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Location and Price */
.card-meta .location {
    color: rgb(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}

.card-meta .location:before {
    content: "📍";
    font-size: 0.75rem;
}

.card-meta .price {
    color: rgb(var(--primary));
    font-weight: 600;
    margin: 0;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    background: rgb(var(--muted) / 0.6);
    color: rgb(var(--muted-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgb(var(--border));
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgb(var(--primary) / 0.1);
    color: rgb(var(--primary));
    border-color: rgb(var(--primary) / 0.3);
}

/* Action Buttons */
.card-actions {
    margin-top: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(var(--primary) / 0.4);
    color: white;
    text-decoration: none;
}

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

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: rgb(var(--muted-foreground));
    grid-column: 1 / -1;
}

.no-results-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    color: rgb(var(--muted-foreground) / 0.5);
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(var(--foreground));
}

.no-results p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 32rem;
    margin: 0 auto;
}

/* Responsive Professional Cards Grid */
@media (max-width: 640px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .professional-card:hover {
        transform: translateY(-4px);
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1025px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(var(--border));
}

.pagination-btn {
    padding: 0.75rem 1rem;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    color: rgb(var(--foreground));
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pagination-btn:hover {
    background: rgb(var(--muted));
    border-color: rgb(var(--primary));
    color: rgb(var(--primary));
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(var(--primary) / 0.15);
}

.pagination-btn.pagination-current {
    background: rgb(var(--primary));
    border-color: rgb(var(--primary));
    color: white;
    box-shadow: 0 2px 8px rgb(var(--primary) / 0.3);
    cursor: default;
}

.pagination-btn.pagination-current:hover {
    transform: none;
    background: rgb(var(--primary));
    color: white;
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: rgb(var(--muted-foreground));
    font-weight: 500;
}

.pagination-first,
.pagination-prev,
.pagination-next,
.pagination-last {
    min-width: 2.5rem;
}

/* Mobile Pagination */
@media (max-width: 640px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.625rem 0.75rem;
        min-width: 2.5rem;
        font-size: 0.875rem;
    }
    
    .pagination-first,
    .pagination-prev,
    .pagination-next,
    .pagination-last {
        min-width: 2rem;
    }
    
    .pagination-ellipsis {
        padding: 0.625rem 0.25rem;
    }
}

/* Compact Search Header Styles */
.compact-search-header {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.search-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgb(var(--foreground));
    margin: 0 0 0.25rem 0;
}

.result-count {
    font-size: 0.875rem;
    color: rgb(var(--muted-foreground));
    font-weight: 500;
}

.search-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sort-select-compact {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background: rgb(var(--card));
    color: rgb(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 140px;
}

.filters-toggle-compact {
    padding: 0.5rem 0.75rem;
    background: rgb(var(--muted));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    color: rgb(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.filters-toggle-compact:hover {
    background: rgb(var(--primary));
    color: white;
    border-color: rgb(var(--primary));
}

.search-bar-row {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
}

.search-form-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-field-compact {
    position: relative;
    flex: 1;
}

.search-field-compact .search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-field-compact .search-input:focus {
    outline: none;
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 2px rgb(var(--primary) / 0.1);
}

.search-field-compact .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(var(--muted-foreground));
    width: 1rem;
    height: 1rem;
}

.search-btn-compact {
    padding: 0.75rem 1.5rem;
    background: rgb(var(--primary));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-btn-compact:hover {
    background: rgb(var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(var(--primary) / 0.3);
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 0.75rem;
    background: rgb(var(--background));
    border: 1px solid rgb(var(--border));
    border-radius: 2rem;
    color: rgb(var(--foreground));
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: rgb(var(--primary));
    color: white;
    border-color: rgb(var(--primary));
}

.filter-chip.active {
    background: rgb(var(--primary));
    color: white;
    border-color: rgb(var(--primary));
}

.filter-chip i {
    width: 0.875rem;
    height: 0.875rem;
}

/* Mobile Responsive for Compact Header */
@media (max-width: 768px) {
    .search-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-field-compact {
        width: 100%;
    }
    
    .search-btn-compact {
        width: 100%;
        justify-content: center;
    }
    
    .quick-filters {
        justify-content: center;
    }
    
    /* Professional Cards Mobile Fixes */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .professional-card {
        margin-bottom: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-actions {
        margin-top: 0.75rem;
    }
    
    /* Badge positioning for mobile */
    .badge-next-available {
        top: 2.5rem;
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Filters drawer mobile improvements */
    .filters-toggle-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .sort-select-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: 120px;
    }
    
    /* Search input mobile improvements */
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
}

/* Advanced Filter Specific Styles */
.price-presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 0.375rem 0.75rem;
    background: rgb(var(--muted));
    border: 1px solid rgb(var(--border));
    border-radius: 1rem;
    color: rgb(var(--foreground));
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover,
.preset-btn.active {
    background: rgb(var(--primary));
    color: white;
    border-color: rgb(var(--primary));
}

.rating-filter .rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-filter .stars {
    color: #fbbf24;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.rating-filter span:last-child {
    font-size: 0.875rem;
    color: rgb(var(--muted-foreground));
}

.availability-options,
.distance-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(var(--border));
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgb(var(--foreground));
}

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

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(var(--primary));
}

.filter-option span {
    color: rgb(var(--foreground));
    line-height: 1.4;
}

/* Events Section Styles */
.events-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(var(--border));
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(var(--foreground));
}

.see-all-link {
    color: rgb(var(--primary));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.see-all-link:hover {
    color: rgb(var(--primary) / 0.8);
}

/* Event Card Specific Styles */
.event-card .card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-card .card-meta p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    color: rgb(var(--muted-foreground));
}

.event-card .card-meta i {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.event-card .event-date {
    font-weight: 500;
    color: rgb(var(--foreground));
}

.event-card .price {
    font-weight: 600;
    color: rgb(var(--primary));
}

.event-card .card-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.event-card .save-event {
    background: transparent;
    border: 1px solid rgb(var(--border));
    color: rgb(var(--muted-foreground));
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.event-card .save-event:hover {
    border-color: rgb(var(--primary));
    color: rgb(var(--primary));
}

.event-card .save-event i {
    width: 1rem;
    height: 1rem;
}

/* Badge Styles for Events */
.badge-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-soon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-urgent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* CTA Actions */
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.get-updates-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgb(var(--primary));
    color: rgb(var(--primary-foreground));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.get-updates-btn:hover {
    background: rgb(var(--primary) / 0.9);
}

.get-updates-btn i {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgb(var(--border));
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(var(--foreground));
}

.modal-close {
    background: none;
    border: none;
    color: rgb(var(--muted-foreground));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgb(var(--accent));
    color: rgb(var(--foreground));
}

.modal-close i {
    width: 1rem;
    height: 1rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: rgb(var(--muted-foreground));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgb(var(--foreground));
}

.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgb(var(--primary) / 0.1);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem !important;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(var(--primary));
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid rgb(var(--border));
}

.modal-footer button {
    min-width: 100px;
}

/* Toast Styles */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: rgb(var(--foreground));
}

.toast-content i {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.toast-success .toast-content i {
    color: #10b981;
}

.toast-error .toast-content i {
    color: #ef4444;
}

.toast-info .toast-content i {
    color: rgb(var(--primary));
}

/* Save button states */
.save-event.saved {
    background: rgb(var(--primary));
    color: rgb(var(--primary-foreground));
    border-color: rgb(var(--primary));
}

.save-event.saved:hover {
    background: rgb(var(--primary) / 0.9);
    border-color: rgb(var(--primary) / 0.9);
}