:root {
    --luxe-gold: #D4AF37;
    --luxe-gold-light: #E4C76D;
    --luxe-dark: #1A1A2E;
    --luxe-text: #2C3E50;
    --luxe-text-light: #6C757D;
    --luxe-border: #E8E8E8;
    --luxe-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.t-search,
.t-search * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.t-search {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--luxe-text);
    background: #FAFAFA;
    overflow-x: hidden;
    min-height: calc(100svh - 240px);
}

.t-search .container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .t-search .container-wide {
        padding: 0 1rem;
    }
}

/* No padding on search pages */
.t-search .h-content,
.t-search .main-container {
    padding-top: 0;
}

/* === Luxury Cascade Animation === */
@keyframes luxuryFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cascadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Filter Bar */
.t-search .luxe-filter-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(250, 248, 245, 0.98) 100%
    );
    backdrop-filter: blur(8px);
    box-shadow: var(--luxe-shadow);
    padding: 1.25rem 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: luxuryFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Container dentro do filter bar precisa ser relative para o ::after funcionar */
.t-search .luxe-filter-bar .container-wide {
    position: relative;
}

/* Barra dourada que ocupa toda a largura da tela */
.t-search .luxe-filter-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 2px;
    background: var(--luxe-gold);
    z-index: 1;
}

.t-search .luxe-filter-bar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(212, 175, 55, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 245, 240, 0.95) 100%
    );
}

/* Filter Form */
.t-search .luxe-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 100;
}

/* Main Search Row - Padrão da Home */
.t-search .luxe-search-main {
    background: white;
    border-radius: 12px;
    padding: 0.5rem 0.9rem 0.5rem 0.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    animation: cascadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
    animation-delay: 0.1s;
}

/* Location Filter - Wrapper do Input */
.t-search .luxe-filter-location {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    min-width: 0;
}

.t-search .luxe-filter-location .location-icon {
    width: 20px;
    height: 20px;
    color: var(--luxe-gold);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.t-search .luxe-main-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--luxe-text);
    background: transparent;
    padding: 0.75rem 0;
    font-weight: 500;
}

.t-search .luxe-main-input::placeholder {
    color: #94a3b8;
}

.t-search .luxe-location-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(250, 248, 245, 0.98) 100%
    );
    backdrop-filter: blur(12px);
    border: 2px solid var(--luxe-gold);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 
                0 4px 16px rgba(212, 175, 55, 0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.t-search .luxe-location-suggestions.active {
    display: block;
    animation: luxuryFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t-search .luxe-suggestion-item {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.t-search .luxe-suggestion-item:hover {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.12) 0%, 
        rgba(26, 26, 46, 0.05) 100%
    );
    transform: translateX(4px);
}

/* Advanced Filters Toggle - Inside Search Bar */
.t-search .luxe-filters-toggle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.t-search .luxe-toggle-btn {
    padding: 0.875rem 1.125rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-width: 54px;
    height: 54px;
}

.t-search .luxe-toggle-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.t-search .luxe-toggle-btn svg:last-child {
    display: none !important;
}

.t-search .luxe-toggle-btn .chevron-icon {
    transition: transform 0.3s ease;
}

.t-search .luxe-toggle-btn.active .chevron-icon {
    transform: rotate(180deg);
}

/* Search Submit Button */
.t-search .luxe-btn-search {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.45rem;
}

.t-search .luxe-btn-search svg {
    flex-shrink: 0;
}

/* Dropdown Filters */
.t-search .luxe-filter-dropdown {
    position: relative;
}

/* Critical z-index fix for mobile - quando dropdown está ativo, aumenta z-index do wrapper */
.t-search .luxe-filter-dropdown:has(.luxe-dropdown-panel.active) {
    z-index: 10000;
}

/* Advanced Filters Panel */
.t-search .luxe-advanced-panel {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(250, 248, 245, 0.95) 100%
    );
    border: 2px solid var(--luxe-gold);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: none;
    overflow: visible;
    animation: luxuryFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t-search .luxe-advanced-panel.active {
    display: block;
}

.t-search .luxe-advanced-panel.active .luxe-filter-field {
    animation: cascadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.t-search .luxe-advanced-panel.active .luxe-filter-field:nth-child(1) { animation-delay: 0.05s; }
.t-search .luxe-advanced-panel.active .luxe-filter-field:nth-child(2) { animation-delay: 0.1s; }
.t-search .luxe-advanced-panel.active .luxe-filter-field:nth-child(3) { animation-delay: 0.15s; }
.t-search .luxe-advanced-panel.active .luxe-filter-field:nth-child(4) { animation-delay: 0.2s; }
.t-search .luxe-advanced-panel.active .luxe-filter-field:nth-child(5) { animation-delay: 0.25s; }
.t-search .luxe-advanced-panel.active .luxe-filter-field:nth-child(6) { animation-delay: 0.3s; }
.t-search .luxe-advanced-panel.active .luxe-filter-field:nth-child(7) { animation-delay: 0.35s; }

/* Filters Grid */
.t-search .luxe-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Filter Field */
.t-search .luxe-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.t-search .luxe-filter-field.luxe-field-full {
    grid-column: span 4;
}

.t-search .luxe-field-label {
    font-weight: 700;
    color: var(--luxe-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t-search .luxe-field-select {
    height: 48px;
    padding: 0 2.75rem 0 1.125rem;
    border: 2px solid var(--luxe-border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--luxe-text);
    background: white url('data:image/svg+xml;charset=UTF-8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 8l5 5 5-5" stroke="%23374151" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 0.75rem center;
    background-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Ícones inline - Removido completamente o uso de ::before */

.t-search .luxe-field-select:hover {
    border-color: var(--luxe-gold);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        transparent 100%
    );
}

.t-search .luxe-field-select:focus {
    outline: none;
    border-color: var(--luxe-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 252, 245, 1) 100%
    );
}

/* Radio Group */
.t-search .luxe-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.t-search .luxe-radio-option {
    flex: 1;
    min-width: 120px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.125rem;
    border: 2px solid var(--luxe-border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.t-search .luxe-radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.t-search .luxe-radio-option span {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--luxe-text);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t-search .luxe-radio-option:hover {
    border-color: var(--luxe-gold);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(26, 26, 46, 0.02) 100%
    );
}

.t-search .luxe-radio-option input:checked + span {
    color: var(--luxe-gold);
}

.t-search .luxe-radio-option:has(input:checked) {
    border-color: var(--luxe-gold);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(26, 26, 46, 0.05) 100%
    );
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

/* Price Range in Advanced Panel */
.t-search .luxe-price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.t-search .luxe-price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.t-search .luxe-price-value {
    flex: 1;
    text-align: center;
}

.t-search .luxe-price-value-display {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--luxe-gold);
}

.t-search .luxe-price-slider-wrapper {
    position: relative;
    height: 6px;
    background: var(--luxe-border);
    border-radius: 3px;
}

.t-search .luxe-price-slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--luxe-gold) 0%, var(--luxe-gold-light) 100%);
    border-radius: 3px;
}

.t-search .luxe-price-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.t-search .luxe-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--luxe-gold);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.t-search .luxe-price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--luxe-gold);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.t-search .luxe-price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.4);
}

.t-search .luxe-price-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .t-search .luxe-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .t-search .luxe-filter-field.luxe-field-full {
        grid-column: span 2;
    }
    
    /* Ocultar texto do Search no tablet */
    .t-search .luxe-btn-search span {
        display: none;
    }
    
    .t-search .luxe-btn-search {
        width: 54px;
        height: 54px;
        padding: 0;
        min-width: 54px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .t-search .luxe-search-main {
        flex-wrap: nowrap;
        padding: 0.5rem;
        gap: 0.5rem;
        position: relative;
        z-index: 100;
        pointer-events: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .t-search .luxe-filter-location {
        flex: 1;
        min-width: 0;
        padding: 0 1rem;
        order: 1;
    }
    
    .t-search .luxe-main-input {
        font-size: 0.9rem;
    }
    
    .t-search .luxe-filters-toggle {
        flex-shrink: 0;
        pointer-events: auto;
        order: 2;
    }
    
    .t-search .luxe-toggle-btn {
        width: 54px;
        height: 54px;
        min-width: 54px;
        padding: 0;
        justify-content: center;
        pointer-events: auto;
    }
    
    .t-search .luxe-toggle-btn .filter-icon {
        margin: 0;
    }
    
    .t-search .luxe-toggle-btn span {
        display: none;
    }
    
    .t-search .luxe-btn-search {
        width: 54px;
        height: 54px;
        padding: 0;
        min-width: 54px;
        flex-shrink: 0;
        justify-content: center;
        pointer-events: auto;
        order: 3;
    }
    
    .t-search .luxe-btn-search span {
        display: none;
    }
    
    .t-search .luxe-advanced-panel {
        padding: 1.5rem;
    }
    
    .t-search .luxe-filters-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .t-search .luxe-filter-field.luxe-field-full {
        grid-column: span 1;
    }
    
    .t-search .luxe-radio-group {
        flex-direction: column;
    }
    
    .t-search .luxe-radio-option {
        width: 100%;
    }
}

/* Beds & Baths Panel (não usado mais, mas mantém compatibilidade) */
.t-search .luxe-beds-baths-panel {
    min-width: 320px;
}

.t-search .luxe-beds-baths-panel .luxe-filter-section {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.t-search .luxe-beds-baths-panel .luxe-filter-section:last-child {
    margin-bottom: 0;
}

.t-search .luxe-filter-section {
    display: grid;
    gap: 0.5rem;
}

.t-search .luxe-filter-label {
    font-weight: 700;
    color: var(--luxe-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t-search .luxe-filter-select {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: 2px solid var(--luxe-border);
    border-radius: 8px;
    font-weight: 600;
    color: var(--luxe-text);
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.t-search .luxe-filter-select:hover {
    border-color: var(--luxe-gold);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        transparent 100%
    );
}

.t-search .luxe-filter-select:focus {
    outline: none;
    border-color: var(--luxe-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 252, 245, 1) 100%
    );
}

/* Price & More Panel (não usado mais) */
.t-search .luxe-price-more-panel {
    min-width: 340px;
    width: 340px;
    right: 0;
    left: auto;
}

.t-search .luxe-price-slider-container {
    padding: 1rem 0 1.5rem 0;
}

.t-search .luxe-price-inputs {
    display: none;
}

.t-search .luxe-filter-divider {
    height: 1px;
    background: var(--luxe-border);
    margin: 1.5rem 0;
}

/* Breadcrumb */
.t-search .luxe-breadcrumb {
    padding: 1.5rem 0;
}

.t-search .luxe-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.t-search .luxe-breadcrumb-nav a {
    color: var(--luxe-text-light);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.t-search .luxe-breadcrumb-nav a:hover {
    color: var(--luxe-gold);
}

.t-search .luxe-breadcrumb-separator {
    color: var(--luxe-text-light);
}

/* Main Layout */
.t-search .luxe-search-layout {
    display: grid;
    grid-template-columns: 1fr var(--layout-sidebar-width);
    gap: 2rem;
    padding: 2rem 0;
}

/* Results Header */
.t-search .luxe-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.t-search .luxe-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--luxe-dark);
    margin: 0;
}

.t-search .luxe-results-count {
    font-size: 1rem;
    color: var(--luxe-text-light);
    font-weight: 600;
}

.t-search .luxe-results-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.t-search .luxe-action-btn {
    height: 44px;
    padding: 0 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-search .luxe-action-btn i {
    font-size: 0.875rem;
}

.t-search .luxe-view-toggle {
    display: flex;
    gap: 0.5rem;
}

/* Map View */
.t-search .luxe-map-container {
    position: fixed;
    top: calc(var(--luxe-filter-bar-height, 80px) + 20px);
    right: 0;
    width: var(--layout-map-width);
    height: calc(100vh - var(--luxe-filter-bar-height, 80px) - 40px);
    bottom: 20px;
    min-height: 420px;
    max-height: none;
    z-index: 980;
    background: var(--bg-white);
    border-left: 2px solid var(--border-color);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
    display: none;
    transition: top 0.3s ease, height 0.3s ease;
}

/* Show map when active class is added */
.t-search .luxe-map-container.active {
    display: block !important;
}

.t-search .luxe-search-map {
    width: 100%;
    height: 100%;
}

body.map-view-active .t-search .luxe-search-layout {
    grid-template-columns: 1fr;
}

body.map-view-active .t-search .luxe-results-column {
    width: var(--layout-results-width);
    padding-right: 2rem;
    padding-left: 1rem;
    max-width: var(--layout-results-width);
}

body.map-view-active .t-search .luxe-sidebar-column {
    display: none;
}

body.map-view-active .t-search .luxe-properties-grid {
    grid-template-columns: 1fr;
}

body.map-view-active .t-search .luxe-properties-grid.list-view {
    grid-template-columns: 1fr !important;
}

/* Map View - List Mode Card Fixes */
body.map-view-active .t-search .luxe-properties-grid.list-view .property-card-modern {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .card-image-link {
    position: relative;
    width: 280px;
    min-width: 280px;
    padding-bottom: 0;
    height: 100%;
    min-height: 240px;
    display: flex;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
    width: 100%;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .card-specs {
    width: 100%;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .pf-project-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    align-items: start !important;
    width: 100% !important;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .spec-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-size: 0.85rem !important;
}

/* Map View - Grid Mode Card Fixes */
body.map-view-active .t-search .luxe-properties-grid:not(.list-view) {
    grid-template-columns: 1fr !important;
}

body.map-view-active .t-search .luxe-properties-grid:not(.list-view) .property-card-modern {
    display: flex;
    flex-direction: column;
    height: auto;
}

body.map-view-active .t-search .luxe-properties-grid:not(.list-view) .card-image-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    aspect-ratio: 21 / 9;
    min-height: 0;
}

body.map-view-active .t-search .luxe-properties-grid:not(.list-view) .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Map View Controls */
.t-search .luxe-map-view-controls {
    position: fixed;
    top: calc(var(--luxe-filter-bar-height, 80px) + 96px);
    left: calc(var(--layout-results-width) + 1rem);
    z-index: 1050;
    display: none !important;
    flex-direction: column;
    gap: 0.5rem;
    transition: top 0.3s ease, left 0.3s ease;
}

body.map-view-active .t-search .luxe-results-column {
    min-width: 0;
    overflow-x: visible;
}

body.map-view-active .t-search .luxe-properties-grid.list-view {
    grid-template-columns: 1fr !important;
    width: 100%;
    overflow: visible;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .property-card-modern {
    max-width: 100%;
    box-sizing: border-box;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .card-content {
    min-width: 0;
    overflow: hidden;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .card-image-overlay {
    display: none;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .btn-call,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-email,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-whatsapp,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-call.is-disabled,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-email.is-disabled {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 0.9rem;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body.map-view-active .t-search .luxe-properties-grid.list-view .btn-call svg,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-email svg,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-whatsapp svg,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-call.is-disabled svg,
body.map-view-active .t-search .luxe-properties-grid.list-view .btn-email.is-disabled svg {
    width: 18px;
    height: 18px;
}

/* Show controls when map view is active */
body.map-view-active .t-search .luxe-map-view-controls {
    display: flex !important;
}

/* Adjust position when scrolled */
body.scrolled.map-view-active .t-search .luxe-map-view-controls {
    top: calc(var(--luxe-filter-bar-height, 80px) + 84px);
}

/* Show map container when map view is active */
body.map-view-active .t-search .luxe-map-container {
    display: block !important;
}

/* Hide map button when map is showing */
body.map-view-active .t-search #mapViewBtn {
    display: none;
}

/* Hide view toggle buttons when map is active */
body.map-view-active .t-search .luxe-view-toggle {
    display: none;
}

.t-search .luxe-map-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-search .luxe-map-control-btn:hover {
    transform: scale(1.05);
}

/* Mobile map-first layout (Airbnb-like) */
@media (max-width: 991px) {
    .t-search .top-filter-bar {
        display: none;
    }

    .t-search .luxe-search-layout {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .t-search .luxe-results-actions,
    .t-search .luxe-view-toggle,
    .t-search #mapViewBtn {
        display: none !important;
    }

    .t-search .luxe-map-container {
        position: relative;
        top: 0;
        right: auto;
        width: 100%;
        height: 50vh;
        min-height: 280px;
        max-height: none;
        display: block !important;
        margin-bottom: 1rem;
        border-left: none;
        border-radius: 16px;
        overflow: hidden;
    }

    body.mobile-map-hidden .t-search .luxe-map-container {
        display: none;
    }

    .t-search .luxe-properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem;
    }

    .t-search .luxe-properties-grid.list-view {
        grid-template-columns: 1fr !important;
    }
    .t-search .luxe-search-map {
        height: 100%;
    }

    .t-search .luxe-mobile-map-toggle {
        position: fixed;
        bottom: 6.5rem;
        right: 1rem;
        z-index: 1001;
        border-radius: 999px;
        padding: 0.5rem 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
    }
}

/* Mobile Bottom Bar - Search */
.t-search .luxe-mobile-bottom-bar.search-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--luxe-gold);
    padding: 0.75rem 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .t-search .luxe-mobile-bottom-bar.search-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    .t-search {
        padding-bottom: 80px;
    }
}

/* Properties Grid */
.t-search .luxe-properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
}

@media (max-width: 768px) {
    .t-search .luxe-properties-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

.t-search .luxe-properties-grid.list-view {
    grid-template-columns: 1fr;
}

/* Property Cards Styling */
.t-search .property-card-modern {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.t-search .property-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Cards are clickable in map view */
body.map-view-active .t-search .property-card-modern {
    cursor: pointer;
}

body.map-view-active .t-search .property-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
}

.t-search .card-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.t-search .badge-superagent {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.t-search .badge-new-label {
    background: var(--danger-color, #ef4444);
    color: var(--bg-white);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.t-search .card-image-container {
    position: relative;
}

/* Carousel buttons for map view - hidden by default */
.t-search .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.t-search .carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.t-search .carousel-prev {
    left: 8px;
}

.t-search .carousel-next {
    right: 8px;
}

.t-search .carousel-btn i {
    font-size: 14px;
    color: var(--text-primary);
}

/* Show carousel buttons in map view on hover */
body.map-view-active .t-search .property-card-modern:hover .carousel-btn {
    display: flex;
}

.t-search .card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 66.67%;
}

.t-search .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.t-search .property-card-modern:hover .card-image {
    transform: scale(1.05);
}

.t-search .image-count {
        color: var(--bg-white);
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 15;
}

.t-search .image-count svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.t-search .card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
}

.t-search .card-favorite svg {
    width: 20px;
    height: 20px;
    display: block;
}

.t-search .card-favorite:hover {
    background: var(--bg-white);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.t-search .card-favorite.active {
    color: #DC2626;
    background: #FEF2F2;
    border-color: #DC2626;
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

.t-search .card-content {
    padding: 1.25rem;
}

/* Overlay em grid (informações sobre a imagem) */
.t-search .card-image-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.65) 45%, rgba(26, 26, 46, 0.85) 100%);
    background: linear-gradient(
        180deg,
        rgba(var(--secondary-rgb), 0) 0%,
        rgba(var(--secondary-rgb), 0.65) 45%,
        rgba(var(--secondary-rgb), 0.85) 100%
    );
    color: var(--bg-white);
    z-index: 12;
    pointer-events: none;
}

.t-search .card-image-overlay .card-category {
        color: var(--bg-white);
    margin: 0;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.t-search .card-image-overlay .card-price {
    margin: 0;
    color: var(--bg-white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.t-search .card-image-overlay .price-frequency {
    color: rgba(255, 255, 255, 0.85);
}

.t-search .card-image-overlay .card-title {
    margin: 0;
    color: var(--bg-white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.t-search .card-image-overlay .card-location {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Esconde blocos duplicados em grid (overlay já mostra) */
.t-search .luxe-properties-grid:not(.list-view) .card-content .card-category,
.t-search .luxe-properties-grid:not(.list-view) .card-content .card-price,
.t-search .luxe-properties-grid:not(.list-view) .card-content .card-title,
.t-search .luxe-properties-grid:not(.list-view) .card-content .card-location {
    display: none;
}

.t-search .luxe-properties-grid:not(.list-view) .card-content {
    padding-top: 0.75rem;
}

.t-search .card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.t-search .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.t-search .price-frequency {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.t-search .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.t-search .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.t-search .card-title a:hover {
    color: var(--primary-color);
}

.t-search .card-location {
        color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--luxe-text-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.t-search .card-location svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-shrink: 0;
    fill: currentColor;
}

.t-search .card-specs {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.t-search .spec-item {
        color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--luxe-text);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 0;
}

.t-search .spec-item svg {
    color: var(--luxe-gold);
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
    flex-shrink: 0;
    display: block;
    overflow: visible;
    color: var(--primary-color);
}

.t-search .spec-item svg * {
    vector-effect: non-scaling-stroke;
}

.t-search .spec-item i {
    color: var(--luxe-gold);
    font-size: 14px;
    width: 14px;
    flex-shrink: 0;
}

.t-search .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.t-search .btn-call,
.t-search .btn-email,
.t-search .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid var(--luxe-border);
    background: white;
    color: var(--luxe-text);
}

.t-search .card-action-label {
    line-height: 1;
}

.t-search .btn-call svg,
.t-search .btn-email svg,
.t-search .btn-whatsapp svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.t-search .btn-call:hover,
.t-search .btn-email:hover,
.t-search .btn-whatsapp:hover {
    background: var(--luxe-bg);
    border-color: var(--luxe-gold);
    transform: translateY(-2px);
}

.t-search .btn-whatsapp {
    background: var(--brand-whatsapp);
    color: var(--bg-white);
    border-color: var(--brand-whatsapp);
}

.t-search .btn-whatsapp:hover {
    background: color-mix(in srgb, var(--brand-whatsapp) 85%, var(--secondary-color) 15%);
    border-color: color-mix(in srgb, var(--brand-whatsapp) 85%, var(--secondary-color) 15%);
    color: var(--bg-white);
}

.t-search .btn-call.is-disabled,
.t-search .btn-email.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.t-search .card-agent {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--luxe-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.t-search .card-agent:hover {
    opacity: 0.8;
}

.t-search .agent-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--luxe-gold);
}

.t-search .agent-avatar-placeholder {
    background: linear-gradient(135deg, var(--luxe-gold), var(--luxe-gold-light));
    color: var(--luxe-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.t-search .agent-avatar-placeholder.is-hidden {
    display: none;
}

.t-search .agent-avatar-placeholder span {
    display: block;
    line-height: 1;
}

.t-search .agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.t-search .agent-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--luxe-text);
}

.t-search .agent-text {
    font-size: 0.75rem;
    color: var(--luxe-text-light);
    font-weight: 600;
}

/* List View Styles - 1 card por linha */
.t-search .luxe-properties-grid.list-view {
    grid-template-columns: 1fr !important;
}

.t-search .luxe-properties-grid.list-view .property-card-modern {
    display: flex;
    flex-direction: row;
    gap: 0;
    height: auto;
    min-height: 280px;
}

.t-search .luxe-properties-grid.list-view .card-image-link {
    padding-bottom: 0;
    width: 320px;
    min-width: 320px;
    height: 100%;
    position: relative;
    display: flex;
    align-self: stretch;
}

.t-search .luxe-properties-grid.list-view .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-search .luxe-properties-grid.list-view .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.t-search .luxe-properties-grid.list-view .card-image-overlay {
    display: none;
}

.t-search .luxe-properties-grid.list-view .card-specs {
    width: 100%;
}

.t-search .luxe-properties-grid.list-view .pf-project-details {
    width: 100% !important;
}

@media (max-width: 768px) {
    .t-search .luxe-properties-grid.list-view .property-card-modern {
        flex-direction: column;
    }
    
    .t-search .luxe-properties-grid.list-view .card-image-link {
        width: 100%;
        padding-bottom: 66.67%;
        min-height: 0;
    }
    
    .t-search .luxe-properties-grid.list-view .card-image {
        position: absolute;
        min-height: 0;
    }
}

@media (min-width: 992px) {
    .t-search .card-actions {
        grid-template-columns: repeat(3, minmax(74px, 1fr));
        gap: 0.6rem;
    }

    .t-search .btn-call,
    .t-search .btn-email,
    .t-search .btn-whatsapp {
        min-width: 74px;
        padding: 0.72rem 0.72rem;
    }

    .t-search .card-action-label {
        display: none !important;
    }
}

/* Sidebar */
.t-search .luxe-sidebar-column {
    position: sticky;
    top: 95px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    padding-bottom: 2rem;
}

.t-search .luxe-sidebar-mobile-header {
    display: none;
}

.t-search .luxe-sidebar-column::-webkit-scrollbar {
    width: 6px;
}

.t-search .luxe-sidebar-column::-webkit-scrollbar-track {
    background: var(--luxe-border);
    border-radius: 3px;
}

.t-search .luxe-sidebar-column::-webkit-scrollbar-thumb {
    background: var(--luxe-gold);
    border-radius: 3px;
}

.t-search .luxe-sidebar-column::-webkit-scrollbar-thumb:hover {
    background: var(--luxe-gold-light);
}

body.scrolled .t-search .luxe-sidebar-column {
    top: 95px;
    max-height: calc(100vh - 110px);
}

.t-search .luxe-sidebar-widget {
    background: white;
    border: 2px solid var(--luxe-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--luxe-shadow);
}

.t-search .luxe-search-sidebar-ad {
    display: block;
    margin-top: 1rem;
}

.t-search .luxe-search-sidebar-ad .partnerads-slot__placeholder {
    min-height: 220px;
}

@media (max-width: 1024px) {
    .t-search .luxe-search-sidebar-ad {
        display: none !important;
    }
}

.t-search .luxe-widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--luxe-gold);
}

.t-search .luxe-widget-icon {
    color: var(--luxe-gold);
    font-size: 1.5rem;
}

.t-search .luxe-widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--luxe-dark);
}

/* Custom Filter Form */
.t-search .luxe-custom-filter-form {
    display: grid;
    gap: 1.25rem;
}

.t-search .luxe-custom-filter-group label {
    display: block;
    font-weight: 700;
    color: var(--luxe-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.t-search .luxe-custom-filter-group input,
.t-search .luxe-custom-filter-group select,
.t-search .luxe-custom-filter-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--luxe-border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.t-search .luxe-custom-filter-group input:focus,
.t-search .luxe-custom-filter-group select:focus,
.t-search .luxe-custom-filter-group textarea:focus {
    outline: none;
    border-color: var(--luxe-gold);
}

.t-search .luxe-custom-filter-submit {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--luxe-gold) 0%, var(--luxe-gold-light) 100%);
    border: none;
    border-radius: 10px;
    color: var(--luxe-dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.t-search .luxe-custom-filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

/* No Results */
.t-search .luxe-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--luxe-text-light);
}

.t-search .luxe-no-results i {
    font-size: 4rem;
    color: var(--luxe-gold);
    margin-bottom: 1.5rem;
}

.t-search .luxe-no-results h3 {
    font-size: 1.5rem;
    color: var(--luxe-dark);
    margin-bottom: 1rem;
}

/* Mobile Specific */
@media (max-width: 1024px) {
    .t-search .luxe-search-layout {
        grid-template-columns: 1fr;
    }
	
    .t-search .luxe-sidebar-column {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        max-height: 100vh;
        background: white;
        z-index: 9999;
        overflow-y: auto;
        padding: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 32px rgba(0, 0, 0, 0.2);
    }
	
    .t-search .luxe-sidebar-column.active {
        right: 0;
    }
	
    .t-search .luxe-sidebar-mobile-header {
        position: sticky;
        top: 0;
        background: white;
        padding: 1.25rem 1.5rem;
        border-bottom: 2px solid var(--luxe-gold);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 10;
    }
	
    .t-search .luxe-sidebar-mobile-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--luxe-dark);
        margin: 0;
    }
	
    .t-search .luxe-sidebar-close-btn {
        width: 40px;
        height: 40px;
        border: 2px solid var(--luxe-border);
        border-radius: 50%;
        background: white;
        color: var(--luxe-text);
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
	
    .t-search .luxe-sidebar-close-btn:hover {
        background: var(--luxe-gold);
        color: var(--luxe-dark);
        border-color: var(--luxe-gold);
    }
	
    .t-search .luxe-sidebar-content {
        padding: 1.5rem;
    }
	
    .t-search .luxe-mobile-filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        display: none;
    }
	
    .t-search .luxe-mobile-filter-overlay.active {
        display: block;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 1025px) {
    .d-lg-none {
        display: none !important;
    }
}

/* S3: Back-to-top visibility fix on search page */
/* The mobile bottom bar (z-index: 1000) covers the back-to-top button (z-index: 1000).
   Push back-to-top above the bar on mobile/tablet when the bar is visible. */
@media (max-width: 991px) {
    .t-search #back-to-top {
        bottom: 5.5rem; /* above the ~60px mobile bottom bar */
        z-index: 1001;
    }
}
