/**
 * ═══════════════════════════════════════════════════════════════════
 * ATC Premium Search & Booking - Mobile First, Premium Design
 * Compact, flexible search with mobile-first responsive design
 * ═══════════════════════════════════════════════════════════════════
 */

/* ==================== PREMIUM YELLOW/GOLD SEARCH FORM ==================== */
/* Premium Yellow/Gold Background Template - Matches Service Grid */
.atc-premium-search-page {
    background: linear-gradient(135deg, 
        #F4D03F 0%,      /* Light Gold */
        #D4AF37 25%,     /* Gold */
        #F4E4C1 50%,     /* Cream Gold */
        #D4AF37 75%,     /* Gold */
        #F4D03F 100%     /* Light Gold */
    );
    background-size: 400% 400%;
    animation: goldenShimmer 8s ease infinite;
    padding: 25px 15px;
    margin: 20px -15px 25px;
    border-radius: 30px; /* Rounded corners */
    position: relative;
    min-height: 200px;
    box-shadow: 
        0 20px 60px rgba(212, 175, 55, 0.4),
        0 8px 30px rgba(212, 175, 55, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(212, 175, 55, 0.2);
    border: 3px solid rgba(212, 175, 55, 0.5);
    position: relative;
    overflow: hidden;
}

/* Golden shimmer animation */
@keyframes goldenShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Blue accent line at top */
.atc-premium-search-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(30, 58, 95, 0.8) 0%, 
        rgba(30, 58, 95, 0.6) 50%, 
        rgba(30, 58, 95, 0.8) 100%);
    z-index: 1;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.4);
    border-radius: 30px 30px 0 0;
}

/* Premium White Search Form Container - On Gold Background */
.atc-premium-search-form-compact {
    /* White background container */
    background: #FFFFFF;
    border-radius: 24px;
    padding: 30px;
    margin: 0 auto;
    max-width: 1000px;
    box-shadow: 
        0 20px 60px rgba(30, 58, 95, 0.2),
        0 8px 30px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(30, 58, 95, 0.2);
    position: relative;
    z-index: 2;
}

/* Force visibility on mobile - stronger background */
@supports not (backdrop-filter: blur(1px)) {
    .atc-premium-search-form-compact {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(240, 244, 255, 0.97) 25%,
            rgba(237, 242, 255, 0.95) 50%,
            rgba(240, 244, 255, 0.97) 75%,
            rgba(255, 255, 255, 0.95) 100%) !important;
        box-shadow: 0 35px 95px rgba(102, 126, 234, 0.3),
                    0 15px 55px rgba(102, 126, 234, 0.2),
                    0 8px 30px rgba(0, 0, 0, 0.18),
                    inset 0 4px 0 rgba(255, 255, 255, 1),
                    inset 0 -4px 0 rgba(255, 255, 255, 0.95),
                    inset 3px 3px 12px rgba(255, 255, 255, 1),
                    inset -2px -2px 10px rgba(102, 126, 234, 0.1) !important;
    }
}

/* Remove old blue overlays - using clean white container */
.atc-premium-search-form-compact::before,
.atc-premium-search-form-compact::after {
    display: none;
}

.atc-search-form-row {
    display: flex;
    flex-direction: column; /* Stacked on mobile: input above, button below */
    gap: 12px;
    align-items: stretch;
}

/* Flexible Search Input - Takes more space, appears first */
.atc-form-group-flexible {
    flex: 1;
    order: 1;
    min-width: 0; /* Prevents flex overflow */
}

/* Premium Search Button - Default Blue Gradient, appears after input */
.atc-btn-search-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35),
                0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    order: 2; /* Ensure button appears after input field */
    width: 100%; /* Full width on mobile */
}

.atc-btn-search-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.atc-btn-search-compact:hover::before {
    left: 100%;
}

.atc-btn-search-compact:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45),
                0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.atc-btn-search-compact:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.atc-search-icon {
    font-size: 16px;
}

.atc-search-text {
    font-weight: 600;
}

/* Form Groups - Clean and Simple */
.atc-premium-search-form-compact .atc-form-group {
    position: relative;
    flex: 1;
}

.atc-premium-search-form-compact label {
    display: none;
}

.atc-premium-search-form-compact input,
.atc-premium-search-form-compact select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(30, 58, 95, 0.2);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    box-sizing: border-box;
    font-family: inherit;
    color: #1E3A5F;
    margin: 0;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
}

@supports not (backdrop-filter: blur(1px)) {
    .atc-premium-search-form-compact input,
    .atc-premium-search-form-compact select {
        background: #FFFFFF !important;
        box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1) !important;
    }
}

.atc-premium-search-form-compact select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23475569" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
}

.atc-premium-search-form-compact input::placeholder {
    color: #94a3b8;
}

.atc-premium-search-form-compact input:focus,
.atc-premium-search-form-compact select:focus {
    outline: none;
    border-color: rgba(30, 58, 95, 0.5);
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.2),
                0 0 0 3px rgba(30, 58, 95, 0.1);
    transform: translateY(-1px);
}

@supports not (backdrop-filter: blur(1px)) {
    .atc-premium-search-form-compact input:focus,
    .atc-premium-search-form-compact select:focus {
        background: rgba(255, 255, 255, 1) !important;
        box-shadow: 0 8px 28px rgba(102, 126, 234, 0.3),
                    0 4px 12px rgba(102, 126, 234, 0.2),
                    inset 0 2px 5px rgba(255, 255, 255, 1),
                    inset 0 -1px 3px rgba(102, 126, 234, 0.12) !important;
    }
}

.atc-premium-search-form-compact input:hover:not(:focus),
.atc-premium-search-form-compact select:hover:not(:focus) {
    border-color: rgba(203, 213, 225, 1);
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(22px) saturate(165%) brightness(1.04);
    -webkit-backdrop-filter: blur(22px) saturate(165%) brightness(1.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 2px 3px rgba(255, 255, 255, 1);
}

/* Advanced Filters Toggle - Clean Style */
.atc-search-advanced-toggle {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.atc-advanced-toggle-btn {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.atc-advanced-toggle-btn:hover {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 3px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    color: #334155;
}

.atc-toggle-icon {
    transition: transform 0.3s;
    font-size: 12px;
}

.atc-advanced-toggle-btn[aria-expanded="true"] .atc-toggle-icon {
    transform: rotate(180deg);
}

/* Advanced Filters - Enhanced Glassmorphism */
.atc-search-advanced-filters {
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.atc-advanced-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.atc-advanced-filters-row .atc-form-group {
    margin: 0;
}

.atc-advanced-filters-row .atc-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atc-advanced-filters-row .atc-form-group select {
    border: 1.5px solid rgba(203, 213, 225, 0.8);
    padding: 10px 32px 10px 12px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%23475569" d="M5 6L0 0h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(160%) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(1.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06),
                inset 0 1px 2px rgba(255, 255, 255, 0.98);
}

@supports not (backdrop-filter: blur(1px)) {
    .atc-advanced-filters-row .atc-form-group select {
        background-color: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                    inset 0 2px 3px rgba(255, 255, 255, 1) !important;
    }
}

.atc-advanced-filters-row .atc-form-group select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(35px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(35px) saturate(180%) brightness(1.05);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 2px 5px rgba(255, 255, 255, 1),
                inset 0 -1px 3px rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.atc-advanced-filters-row .atc-form-group select:hover:not(:focus) {
    border-color: rgba(203, 213, 225, 1);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(32px) saturate(175%) brightness(1.03);
    -webkit-backdrop-filter: blur(32px) saturate(175%) brightness(1.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 2px 4px rgba(255, 255, 255, 0.98);
}

/* ==================== TABLET & DESKTOP (640px+) ==================== */
@media (min-width: 640px) {
    .atc-search-form-row {
        flex-direction: row; /* Side by side on tablet/desktop */
        gap: 12px;
        align-items: stretch;
    }
    
    .atc-form-group-flexible {
        order: 1; /* Input field first */
        flex: 1;
    }
    
    .atc-btn-search-compact {
        order: 2; /* Button beside input on tablet/desktop */
        width: auto;
        flex-shrink: 0;
        min-width: 140px;
    }
}

@media (min-width: 768px) {
    .atc-premium-search-page {
        padding: 35px 25px;
        margin: 25px -15px 35px;
        /* Keep golden gradient on desktop - same as mobile */
        background: linear-gradient(135deg, 
            #F4D03F 0%,      /* Light Gold */
            #D4AF37 25%,     /* Gold */
            #F4E4C1 50%,     /* Cream Gold */
            #D4AF37 75%,     /* Gold */
            #F4D03F 100%     /* Light Gold */
        );
        background-size: 400% 400%;
        animation: goldenShimmer 8s ease infinite;
    }
    
    .atc-premium-search-page::before {
        /* Keep blue accent line on desktop */
        background: linear-gradient(90deg, 
            rgba(30, 58, 95, 0.8) 0%, 
            rgba(30, 58, 95, 0.6) 50%, 
            rgba(30, 58, 95, 0.8) 100%);
    }
    
    .atc-premium-search-form-compact {
        padding: 32px;
        border-radius: 26px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.82) 0%, 
            rgba(240, 244, 255, 0.88) 25%,
            rgba(237, 242, 255, 0.85) 50%,
            rgba(240, 244, 255, 0.88) 75%,
            rgba(255, 255, 255, 0.82) 100%);
        backdrop-filter: blur(40px) saturate(190%) brightness(1.22);
        -webkit-backdrop-filter: blur(40px) saturate(190%) brightness(1.22);
        box-shadow: 0 42px 105px rgba(102, 126, 234, 0.28),
                    0 18px 60px rgba(102, 126, 234, 0.2),
                    0 10px 35px rgba(0, 0, 0, 0.16),
                    0 5px 18px rgba(0, 0, 0, 0.13),
                    0 2px 9px rgba(0, 0, 0, 0.11),
                    inset 0 5px 0 rgba(255, 255, 255, 1),
                    inset 0 -5px 0 rgba(255, 255, 255, 0.94),
                    inset 4px 4px 10px rgba(255, 255, 255, 0.98),
                    inset -3px -3px 8px rgba(102, 126, 234, 0.1);
        border: 3.5px solid rgba(255, 255, 255, 1);
        max-width: 1100px;
    }
    
    .atc-premium-search-form-compact::before {
        border-radius: 26px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.85) 0%, 
            rgba(240, 244, 255, 0.7) 30%,
            rgba(237, 242, 255, 0.65) 50%,
            rgba(230, 238, 255, 0.6) 70%,
            rgba(255, 255, 255, 0.8) 100%);
        opacity: 1;
    }
    
    .atc-premium-search-form-compact::after {
        border-radius: 34px;
        filter: blur(32px);
        -webkit-filter: blur(32px);
        opacity: 1;
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        background: radial-gradient(ellipse at center, 
            rgba(102, 126, 234, 0.18) 0%, 
            rgba(118, 75, 162, 0.15) 25%,
            rgba(240, 244, 255, 0.35) 45%,
            rgba(255, 255, 255, 0.25) 65%,
            rgba(255, 255, 255, 0.12) 85%,
            transparent 100%);
    }
    
    .atc-search-form-row {
        flex-direction: row; /* Side by side on tablet */
        gap: 16px;
        align-items: stretch;
    }
    
    .atc-form-group-flexible {
        order: 1; /* Input field first */
        flex: 1;
    }
    
    .atc-premium-search-form-compact input,
    .atc-premium-search-form-compact select {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .atc-btn-search-compact {
        order: 2; /* Button beside input on tablet */
        padding: 15px 36px;
        font-size: 16px;
        width: auto;
        min-width: 140px;
    }
    
    .atc-advanced-filters-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ==================== DESKTOP (1024px+) ==================== */
@media (min-width: 1024px) {
    .atc-premium-search-page {
        padding: 40px 30px;
        margin: 30px -15px 40px;
        /* Keep golden gradient on desktop - same as mobile */
        background: linear-gradient(135deg, 
            #F4D03F 0%,      /* Light Gold */
            #D4AF37 25%,     /* Gold */
            #F4E4C1 50%,     /* Cream Gold */
            #D4AF37 75%,     /* Gold */
            #F4D03F 100%     /* Light Gold */
        );
        background-size: 400% 400%;
        animation: goldenShimmer 8s ease infinite;
    }
    
    .atc-premium-search-page::before {
        /* Keep blue accent line on desktop */
        background: linear-gradient(90deg, 
            rgba(30, 58, 95, 0.8) 0%, 
            rgba(30, 58, 95, 0.6) 50%, 
            rgba(30, 58, 95, 0.8) 100%);
    }
    
    .atc-premium-search-form-compact {
        padding: 36px;
        border-radius: 30px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.8) 0%, 
            rgba(240, 244, 255, 0.87) 25%,
            rgba(237, 242, 255, 0.83) 50%,
            rgba(240, 244, 255, 0.87) 75%,
            rgba(255, 255, 255, 0.8) 100%);
        backdrop-filter: blur(50px) saturate(200%) brightness(1.25);
        -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.25);
        box-shadow: 0 48px 115px rgba(102, 126, 234, 0.32),
                    0 22px 65px rgba(102, 126, 234, 0.24),
                    0 12px 40px rgba(0, 0, 0, 0.18),
                    0 6px 22px rgba(0, 0, 0, 0.15),
                    0 3px 12px rgba(0, 0, 0, 0.13),
                    inset 0 6px 0 rgba(255, 255, 255, 1),
                    inset 0 -6px 0 rgba(255, 255, 255, 0.96),
                    inset 5px 5px 12px rgba(255, 255, 255, 1),
                    inset -4px -4px 10px rgba(102, 126, 234, 0.12);
        border: 4px solid rgba(255, 255, 255, 1);
        max-width: 1200px;
    }
    
    .atc-premium-search-form-compact::before {
        border-radius: 30px;
        opacity: 1;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.9) 0%, 
            rgba(240, 244, 255, 0.75) 25%,
            rgba(237, 242, 255, 0.7) 50%,
            rgba(230, 238, 255, 0.65) 75%,
            rgba(255, 255, 255, 0.85) 100%);
    }
    
    .atc-premium-search-form-compact::after {
        border-radius: 38px;
        filter: blur(38px);
        -webkit-filter: blur(38px);
        opacity: 1;
        top: -14px;
        left: -14px;
        right: -14px;
        bottom: -14px;
        background: radial-gradient(ellipse at center, 
            rgba(102, 126, 234, 0.2) 0%, 
            rgba(118, 75, 162, 0.17) 20%,
            rgba(240, 244, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.3) 60%,
            rgba(255, 255, 255, 0.15) 80%,
            transparent 100%);
    }
    
    .atc-search-form-row {
        flex-direction: row; /* Side by side on desktop */
        gap: 18px;
        align-items: stretch;
    }
    
    .atc-form-group-flexible {
        order: 1; /* Input field first */
        flex: 1;
    }
    
    .atc-premium-search-form-compact input,
    .atc-premium-search-form-compact select {
        padding: 16px 22px;
        font-size: 16px;
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
    }
    
    .atc-btn-search-compact {
        order: 2; /* Button beside input on desktop */
        padding: 16px 42px;
        font-size: 17px;
        width: auto;
        min-width: 160px;
    }
}

/* ==================== PREMIUM RESULTS PAGE ==================== */
.atc-premium-results-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

/* Global search results container */
.atc-global-search-results {
    width: 100%;
    display: block;
}

.atc-global-search-results .atc-premium-results-main {
    width: 100%;
    display: block;
}

/* Ensure results grid is visible when results are shown */
.atc-global-search-results .atc-premium-results-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px; /* Ensure it has height */
}

/* Mobile First - Results Layout */
.atc-premium-results-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Filters Sidebar - HIDDEN (removed as per user request) */
.atc-premium-filters {
    display: none !important;
}

.atc-premium-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.atc-premium-filters-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.atc-filter-reset-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
    border-radius: 4px;
}

.atc-filter-reset-btn:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
}

.atc-filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.atc-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.atc-filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atc-filter-section h4::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Price Range Slider */
.atc-price-range-wrapper {
    padding: 8px 0;
}

.atc-price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.atc-price-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
}

.atc-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.atc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.atc-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Filter Checkboxes */
.atc-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atc-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.atc-filter-option:hover {
    background: #f8fafc;
}

.atc-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.atc-filter-option span {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    margin: 0;
}

/* Results Main Area */
.atc-premium-results-main {
    order: 1;
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
}

/* Results Header - Premium White Container on Gold Background */
.atc-premium-results-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(30, 58, 95, 0.2),
        0 4px 16px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(30, 58, 95, 0.2);
}

.atc-results-count {
    font-size: 14px;
    color: #64748B;
    text-align: center;
}

.atc-results-count strong {
    color: #1E3A5F;
    font-weight: 700;
    font-size: 16px;
}

.atc-results-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

/* View toggle removed - only grid view is supported */

.atc-sort-select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    color: #475569;
    width: 100%;
    box-sizing: border-box;
}

/* Premium Package Cards - Mobile First */
.atc-premium-results-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Grid View Only - List view removed */
.atc-premium-results-grid {
    grid-template-columns: 1fr;
}

/* Premium Package Cards - White on Gold Background */
.atc-premium-package-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(30, 58, 95, 0.2),
        0 4px 16px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(30, 58, 95, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    position: relative;
}

.atc-premium-package-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 60px rgba(30, 58, 95, 0.3),
        0 10px 40px rgba(212, 175, 55, 0.3),
        0 5px 20px rgba(30, 58, 95, 0.2);
    border-color: rgba(30, 58, 95, 0.4);
}

.atc-premium-package-image {
    position: relative;
    width: 100%;
    height: 280px;
    min-height: 280px;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.atc-premium-package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background: #f1f5f9;
}

/* Fallback for missing images - using placeholder div */
.atc-premium-package-image > div:not(.atc-premium-badge) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 48px;
    background: #f1f5f9;
}

/* Ensure image placeholder doesn't interfere with badges */
.atc-premium-package-image > div:not(.atc-premium-badge) {
    position: relative;
    z-index: 1;
}

.atc-premium-package-card:hover .atc-premium-package-image img {
    transform: scale(1.08);
}

.atc-premium-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.atc-premium-badge:not(:first-child) {
    top: 48px;
}

.atc-badge-featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
}

.atc-badge-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.atc-premium-package-content {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    overflow: visible;
}

.atc-premium-package-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.atc-premium-package-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 12px;
}

.atc-premium-package-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.atc-premium-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.atc-premium-package-description {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 0 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.atc-premium-package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.atc-premium-package-features li {
    font-size: 11px;
    color: #64748b;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 10px;
}

.atc-premium-package-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px 20px 20px;
    border-top: 2px solid #f1f5f9;
    margin-top: auto;
    flex-shrink: 0;
    background: white;
    border-radius: 0 0 16px 16px;
}

.atc-premium-package-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atc-price-original {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.atc-price-current {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.atc-price-label {
    font-size: 11px;
    color: #64748b;
}

.atc-premium-package-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;
}

.atc-premium-package-actions .atc-btn-premium {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.atc-btn-premium {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atc-btn-premium-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.atc-btn-premium-outline:hover {
    background: #667eea;
    color: white;
}

.atc-btn-premium-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.atc-btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== TABLET (768px+) ==================== */
@media (min-width: 768px) {
    .atc-premium-results-wrapper {
        padding: 0 20px 40px;
    }
    
    .atc-premium-results-layout {
        flex-direction: row;
        gap: 25px;
        margin-top: 25px;
    }
    
    .atc-premium-filters {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
        height: fit-content;
        order: 1;
    }
    
    .atc-premium-results-main {
        order: 1;
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    
    .atc-premium-results-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }
    
    .atc-results-count {
        text-align: left;
        font-size: 16px;
    }
    
    .atc-results-count strong {
        font-size: 20px;
    }
    
    .atc-results-controls {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
    
    .atc-sort-select {
        width: auto;
        min-width: 180px;
    }
    
    .atc-premium-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .atc-premium-package-image {
        height: 300px;
        min-height: 300px;
    }
    
    .atc-premium-package-content {
        padding: 24px;
    }
    
    .atc-premium-package-title {
        font-size: 20px;
    }
    
    /* Buttons always stacked vertically in grid view */
    .atc-premium-package-footer {
        flex-direction: column;
        gap: 16px;
        flex-shrink: 0;
    }
    
    .atc-premium-package-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .atc-premium-package-actions .atc-btn-premium {
        width: 100%;
        flex-shrink: 0;
    }
}

/* ==================== DESKTOP (1024px+) ==================== */
@media (min-width: 1024px) {
    .atc-premium-results-wrapper {
        padding: 0 20px 40px;
    }
    
    /* Filters removed - no longer needed */
    
    .atc-premium-results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .atc-premium-package-image {
        height: 320px;
        min-height: 320px;
    }
    
    .atc-premium-package-content {
        padding: 28px;
    }
    
    .atc-premium-package-title {
        font-size: 22px;
    }
    
    /* Buttons always stacked vertically on desktop too */
    .atc-premium-package-footer {
        padding: 20px 28px 28px 28px;
        gap: 20px;
        flex-shrink: 0;
        flex-direction: column;
    }
    
    .atc-premium-package-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .atc-premium-package-actions .atc-btn-premium {
        width: 100%;
        flex-shrink: 0;
    }
}

/* List view removed - only grid view is supported */

/* ==================== LOADING STATES ==================== */
.atc-premium-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.atc-premium-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f5f9;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== EMPTY STATE ==================== */
.atc-premium-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.atc-premium-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.atc-premium-empty h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 10px;
}

/* ==================== PAGINATION ==================== */
.atc-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.atc-page-btn {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
    min-width: 44px; /* Touch target size for mobile */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.atc-page-btn:hover:not(:disabled):not(.active) {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.atc-page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.atc-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pagination - Desktop */
@media (min-width: 768px) {
    .atc-page-btn {
        min-width: 40px;
        height: 40px;
        padding: 8px 14px;
    }
}

/* ==================== LEGACY SUPPORT (Old Hero Style) ==================== */
.atc-search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.atc-search-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.atc-search-hero h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.atc-search-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
}

/* Legacy Premium Search Form */
.atc-premium-search-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

.atc-premium-search-form .atc-form-group {
    position: relative;
}

.atc-premium-search-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atc-premium-search-form input,
.atc-premium-search-form select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafc;
    box-sizing: border-box;
}

.atc-premium-search-form input:focus,
.atc-premium-search-form select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.atc-premium-search-form .atc-btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.atc-premium-search-form .atc-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

@media (min-width: 768px) {
    .atc-search-hero {
        padding: 50px 30px;
    }
    
    .atc-search-hero h1 {
        font-size: 36px;
    }
    
    .atc-search-hero p {
        font-size: 18px;
        margin-bottom: 35px;
    }
    
    .atc-premium-search-form {
        padding: 30px;
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .atc-search-hero {
        padding: 60px 40px;
    }
    
    .atc-search-hero h1 {
        font-size: 42px;
    }
}
