/**
 * DesignClone Search CSS
 * Based on the exact styling from DesignClone React components
 */

/* CSS Variables matching DesignClone */
:root {
  --primary: 47 79% 50%; /* Bayut signature green #2FB755 */
  --primary-foreground: 0 0% 100%;
  --background: 0 0% 100%;
  --foreground: 0 0% 13%;
  --muted: 0 0% 97%;
  --muted-foreground: 0 0% 45%;
  --border: 0 0% 90%;
  --card: 0 0% 98%;
  --card-foreground: 0 0% 13%;
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);
  --radius: 0.5rem;
  --shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.06), 0px 1px 2px -1px hsl(0 0% 0% / 0.04);
  --shadow-md: 0px 4px 6px -1px hsl(0 0% 0% / 0.08), 0px 2px 4px -1px hsl(0 0% 0% / 0.05);
  --shadow-lg: 0px 10px 15px -3px hsl(0 0% 0% / 0.08), 0px 4px 6px -2px hsl(0 0% 0% / 0.04);
  --shadow-xl: 0px 20px 25px -5px hsl(0 0% 0% / 0.09), 0px 10px 10px -5px hsl(0 0% 0% / 0.03);
}

/* LIQUID GLASS STYLES */
.liquidGlass-wrapper {
    position: relative;
    display: flex;
    font-weight: 600;
    overflow: visible; /* allow dropdowns to extend outside */
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
}


.liquidGlass-effect {
    position: absolute;
    z-index: 0;
    inset: 0;
    backdrop-filter: blur(0px);
    filter: url(#glass-distortion);
    overflow: hidden;
    border-radius: inherit;
    isolation: isolate;
}

.liquidGlass-tint {
    z-index: 1;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: inherit;
}

.liquidGlass-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.75),
                inset 0 0 5px rgba(255, 255, 255, 0.75);
}

.liquidGlass-text {
    z-index: 3;
    font-size: 1rem;
    color: black;
    width: 100%;
}

/* Main Container - Liquid Glass Effect */
.designclone-search-card {
    width: 100%;
    max-width: 80rem; /* max-w-5xl */
    margin: 0 auto;
    position: relative;
    display: flex;
    font-weight: 600;
    overflow: visible; /* prevent dropdown clipping */
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    border-radius: 1rem; /* rounded-2xl */
    padding: 1.5rem; /* p-6 */
    z-index: 10;
}

/* Fix for Login Register Modal - Put it on TOP of everything */
.login-register-form.modal {
    z-index: 999999 !important;
    overflow: visible !important;
}

.login-register-form.modal.show {
    z-index: 999999 !important;
    overflow: visible !important;
}

.login-register-form .modal-dialog {
    overflow: visible !important;
    max-height: none !important;
}

.login-register-form .modal-content {
    overflow: visible !important;
    max-height: none !important;
}

.login-register-form .modal-body {
    overflow: visible !important;
    max-height: none !important;
}

/* Register form wrapper overflow fix */
.login-register-form .register-form-tab,
.login-register-form #register-form-tab {
    overflow: visible !important;
    max-height: none !important;
}

/* Modal backdrop for login-register */
.modal-backdrop.show {
    z-index: 999998 !important;
}

/* Bootstrap Select dropdown inside login-register modal */
.login-register-form .bootstrap-select .dropdown-menu,
.modal.login-register-form .bootstrap-select .dropdown-menu {
    z-index: 9999999 !important;
}

/* Bootstrap Select when opened */
.login-register-form .bootstrap-select.open .dropdown-menu,
.login-register-form .bootstrap-select.show .dropdown-menu {
    z-index: 9999999 !important;
}

/* Bootstrap Select container for login-register */
.login-register-form .bootstrap-select.bs-container {
    z-index: 9999999 !important;
}

/* Selectpicker dropdown appended to body for login-register */
body > .bootstrap-select .dropdown-menu {
    z-index: 9999999 !important;
}

/* Dropdown menu that appears when bootstrap-select is clicked */
.dropdown-menu[aria-labelledby] {
    z-index: 9999999 !important;
}

/* Bootstrap select dropdown menu show state */
.bootstrap-select .dropdown-menu.show,
.dropdown-menu.show[role="menu"] {
    z-index: 9999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Bootstrap select dropdown list items - Match Houzez theme style */
.bootstrap-select .dropdown-menu li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bootstrap-select .dropdown-menu li a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 5px 15px !important;
    clear: both !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #4a5568 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

/* Bootstrap select dropdown list item hover - Houzez theme colors */
.bootstrap-select .dropdown-menu li a:hover {
    background-color: #f7f8f9 !important;
    color: #2d3748 !important;
}

.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li.active a {
    background-color: #edf2f7 !important;
    color: #2d3748 !important;
}

/* Bootstrap select dropdown inner ul */
.bootstrap-select .dropdown-menu ul {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bootstrap select dropdown text */
.bootstrap-select .dropdown-menu li a span.text {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Bootstrap select dropdown item content */
.bootstrap-select .dropdown-menu .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 5px 15px !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #4a5568 !important;
    text-align: left !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Make sure dropdown has proper background - Houzez theme style */
.login-register-form .bootstrap-select .dropdown-menu,
.modal .bootstrap-select .dropdown-menu {
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding: 3px 0 !important;
    margin: 2px 0 0 !important;
    min-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Specific fix for bootstrap-select in modal */
.modal .dropdown.bootstrap-select .dropdown-menu,
.modal .bootstrap-select > .dropdown-menu {
    z-index: 9999999 !important;
    position: absolute !important;
}

/* When dropdown toggle is active */
.modal .bootstrap-select .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    z-index: 9999999 !important;
    display: block !important;
}

/* Bootstrap Select inner dropdown */
.bootstrap-select .dropdown-menu.inner,
.bootstrap-select .dropdown-menu .inner {
    z-index: 9999999 !important;
    position: static !important;
    display: block !important;
    visibility: visible !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

/* Custom scrollbar for dropdown - Match Houzez theme */
.bootstrap-select .dropdown-menu.inner::-webkit-scrollbar {
    width: 6px !important;
}

.bootstrap-select .dropdown-menu.inner::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}

.bootstrap-select .dropdown-menu.inner::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 3px !important;
}

.bootstrap-select .dropdown-menu.inner::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
}

/* Bootstrap Select wrapper */
.bootstrap-select[class*="bs-"] {
    z-index: 9999999 !important;
}

/* All dropdown menus inside bootstrap-select */
div.bootstrap-select .dropdown-menu {
    z-index: 9999999 !important;
    position: absolute !important;
}

/* Override any conflicting styles */
.login-register-form select.selectpicker + .bootstrap-select .dropdown-menu,
.modal select.selectpicker + .bootstrap-select .dropdown-menu {
    z-index: 9999999 !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Fix for selectpicker wrapper in modal */
.login-register-form .bootstrap-select,
.modal .bootstrap-select {
    overflow: visible !important;
}

/* Fix form-group overflow */
.login-register-form .form-group,
.login-register-form .register-form-wrap {
    overflow: visible !important;
    max-height: none !important;
}

/* Tab content overflow fix */
.login-register-form .tab-content,
.login-register-form .tab-pane {
    overflow: visible !important;
    max-height: none !important;
}

/* Override designclone dropdown when modal is active */
body.modal-open .designclone-search-card {
    z-index: 1 !important;
}

body.modal-open .designclone-search-card .dropdown-menu:not(.bootstrap-select .dropdown-menu) {
    z-index: 1 !important;
}

body.modal-open .designclone-search-card .auto-complete {
    z-index: 1 !important;
}


/* Content positioning */
.designclone-search-card .search-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.search-container {
    width: 100%;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

/* Search Rows */
.search-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* gap-3 */
    align-items: flex-start;
}

/* Row 1: Buy/Rent Toggle - separate row */
.row-1 {
    justify-content: flex-start;
    width: 100%;
}

/* Row 2: Location Input + Search Button - in same row */
.row-2 {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .row-2 {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Rent Mode - Single Line Layout */
.search-form.rent-mode {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-form.rent-mode .search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.search-form.rent-mode .row-1 {
    justify-content: flex-start;
    flex-shrink: 0;
}

.search-form.rent-mode .row-2 {
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.search-form.rent-mode .row-3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

/* Rent Mode - All filters in single line */
.search-form.rent-mode .filters-left,
.search-form.rent-mode .filters-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form.rent-mode .property-type-filter {
    display: flex;
    gap: 0.5rem;
}

.search-form.rent-mode .price-period-toggle {
    display: block !important;
}

/* Hide All/Ready/Off-Plan when in Rent mode */
.search-form.rent-mode .property-type-filter {
    display: none !important;
}

/* Single row for all filters in rent mode */
.search-form.rent-mode .row-3 .filters-left,
.search-form.rent-mode .row-3 .filters-right {
    display: contents;
}

.search-form.rent-mode .row-3 .price-period-toggle,
.search-form.rent-mode .row-3 .property-type-filter,
.search-form.rent-mode .row-3 .filter-dropdown {
    display: inline-flex;
    flex-shrink: 0;
}

/* Rent Mode - Responsive adjustments */
@media (max-width: 768px) {
    .search-form.rent-mode .search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form.rent-mode .row-2 {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Hide row 3 filters on mobile even in rent mode */
    .search-form.rent-mode .row-3 {
        display: none !important;
    }
    
    .search-form.rent-mode .filters-left,
    .search-form.rent-mode .filters-right {
        justify-content: center;
    }
}

/* Rent Mode - Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .search-form.rent-mode .search-row {
        flex-direction: row;
        align-items: center;
    }
    
    .search-form.rent-mode .row-2 {
        flex-direction: row;
        gap: 1rem;
    }
    
    /* Hide row 3 filters on tablet even in rent mode */
    .search-form.rent-mode .row-3 {
        display: none !important;
    }
}


/* Row 3: Filters */
.row-3 {
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .row-3 {
        flex-direction: row;
        align-items: center;
    }
}

/* Buy/Rent Toggle */
.buy-rent-toggle {
    display: inline-flex;
    background: hsl(var(--muted));
    border-radius: 9999px; /* rounded-full */
    padding: 0.25rem; /* p-1 */
    gap: 0.25rem; /* gap-1 */
}

.toggle-btn {
    padding: 0.375rem 1rem; /* px-4 py-1.5 */
    border-radius: 9999px; /* rounded-full */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    background: transparent;
    color: hsl(var(--muted-foreground));
}

.toggle-btn.active {
    background: #C68D2A;
    color: hsl(var(--primary-foreground));
}

.toggle-btn:hover:not(.active) {
    background: #D19B54;
}

/* Location Input */
.location-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    overflow: visible;
}

.location-icon {
    position: absolute;
    left: 0.75rem; /* left-3 */
    top: 50%;
    transform: translateY(-50%);
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.location-input {
    width: 100%;
    height: 2.5rem; /* h-10 */
    padding-left: 2.5rem; /* pl-10 */
    padding-right: 1rem; /* pr-4 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.875rem; /* text-sm */
    font-weight: 400;
    color: white;
    outline: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.3),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.1);
}

.location-input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 
        0 0 0 2px hsl(var(--primary) / 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.4),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.location-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Search Button */
.search-button {
    height: 2.5rem; /* h-10 */
    padding: 0 1.5rem; /* px-6 */
    background: #C68D2A;
    color: hsl(var(--primary-foreground));
    font-weight: 600; /* font-semibold */
    font-size: 0.875rem; /* text-sm */
    border-radius: 0.5rem; /* rounded-lg */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover {
    background: #D19B54; /* darker green */
    box-shadow: var(--shadow-sm);
}

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

/* Filters Layout */
.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* gap-3 */
    align-items: center;
}

.filters-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* gap-3 */
}

/* Property Type Filter */
.property-type-filter {
    display: inline-flex;
    gap: 0.5rem; /* gap-2 */
}

.filter-btn {
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    color: white;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.3),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.5),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.3);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.4),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.2);
}

/* Property Type as segmented toggle (match Buy/Rent toggle) */
.property-type-filter {
    display: inline-flex;
    background: hsl(var(--muted));
    border-radius: 9999px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.property-type-filter .filter-btn {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    background: transparent;
    color: hsl(var(--muted-foreground));
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.property-type-filter .filter-btn.active {
    background: #C68D2A;
    color: hsl(var(--primary-foreground));
    box-shadow: none;
}

.property-type-filter .filter-btn:hover:not(.active) {
    background: #D19B54;
}

/* Filter Dropdowns */
.filter-dropdown,
.price-period-toggle {
    position: relative;
    min-width: 140px;
}

.dropdown-trigger {
    height: 2.5rem; /* h-10 */
    padding: 0 1rem; /* px-4 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    width: 100%;
    justify-content: space-between;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.3),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.1);
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.4),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.2);
}

.dropdown-trigger.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 1px 0 rgba(255, 255, 255, 0.5),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.3);
}

.dropdown-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    color: white;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu - Only for designclone search, NOT bootstrap-select */
.designclone-search-card .dropdown-menu:not(.bootstrap-select .dropdown-menu) {
    position: absolute;
    top: calc(100% + 8px); /* small gap below trigger */
    left: 0;
    margin-top: 0; /* use top offset instead */
    background: rgba(3, 3, 3, 0.329); /* liquid glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: var(--shadow-xl);
    z-index: 1050 !important;
    display: none;
    min-width: 100%;
    overflow: hidden;
}

.designclone-search-card .dropdown-menu.show:not(.bootstrap-select .dropdown-menu) {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li {
    width: 100%;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    text-align: left;
    font-size: 0.875rem; /* text-sm */
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-menu li:hover { background: rgba(255, 255, 255, 0.12); }

.dropdown-menu li.selected { background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 500; }

/* Hidden Select */
.hidden-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    pointer-events: none; /* prevent covering the dropdown menu */
}

/* Auto-complete */
.auto-complete {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 60rem;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1049 !important;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    box-sizing: border-box;
    /* Ensure it doesn't go off screen */
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100vw - 2rem);
}

.auto-complete ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auto-complete li {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #2d3748 !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    background: transparent;
    margin: 0;
    border-radius: 0;
    position: relative;
    border: none;
    min-height: auto;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.auto-complete li:last-child {
    border-bottom: none;
}

.auto-complete li:hover {
    background: #f7fafc !important;
    color: #1a202c !important;
}

.auto-complete li.highlighted {
    background: #edf2f7 !important;
    color: #1a202c !important;
}

/* Auto-complete property details styling */
.auto-complete li .item-title,
.auto-complete li a {
    color: #2d3748 !important;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.auto-complete li:hover .item-title,
.auto-complete li:hover a {
    color: #1a202c !important;
}

.auto-complete li .item-price {
    color: #C68D2A !important;
    font-weight: 600;
    font-size: 14px;
}

.auto-complete li .item-sub-price,
.auto-complete li .item-type {
    color: #718096 !important;
    font-size: 12px;
    margin-top: 2px;
}

.auto-complete li:hover .item-sub-price,
.auto-complete li:hover .item-type {
    color: #4a5568 !important;
}

/* Property image in autocomplete */
.auto-complete li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Auto-complete scrollbar styling */
.auto-complete::-webkit-scrollbar {
    width: 6px;
}

.auto-complete::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.auto-complete::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.auto-complete::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .designclone-search-card {
        margin: 0 1.25rem; /* mx-5 */
        max-width: calc(100% - 2.5rem);
    }
    
    .auto-complete {
        max-width: 50rem;
    }
}

/* Tablet specific - hide filters but keep some layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .designclone-search-card {
        margin: 0 1.25rem;
        padding: 1.25rem;
        max-width: calc(100% - 2.5rem);
    }
    
    /* Hide all filters on tablet - only show Buy/Rent tabs and location input */
    .row-3 {
        display: none !important;
    }
    
    /* Hide all filter elements specifically */
    .price-period-toggle,
    .property-type-filter,
    .filter-dropdown,
    .filters-left,
    .filters-right {
        display: none !important;
    }
    
    /* Hide All/Ready/Off-Plan tabs specifically */
    .property-type-filter .filter-btn {
        display: none !important;
    }
    
    /* Hide dropdown triggers */
    .dropdown-trigger {
        display: none !important;
    }
    
    .auto-complete {
        max-width: 45rem;
    }
}

@media (max-width: 768px) {
    .designclone-search-card {
        margin: 0 1rem;
        padding: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .location-input-wrapper {
        min-width: 100%;
    }
    
    .search-button {
        width: 100%;
    }
    
    /* Hide all filters on mobile and tablet - only show Buy/Rent tabs and location input */
    .row-3 {
        display: none !important;
    }
    
    /* Hide all filter elements specifically */
    .price-period-toggle,
    .property-type-filter,
    .filter-dropdown,
    .filters-left,
    .filters-right {
        display: none !important;
    }
    
    /* Hide All/Ready/Off-Plan tabs specifically */
    .property-type-filter .filter-btn {
        display: none !important;
    }
    
    /* Hide dropdown triggers */
    .dropdown-trigger {
        display: none !important;
    }
    
    .auto-complete {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: auto;
        max-width: calc(100vw - 2rem);
        margin: 0;
        z-index: 1049;
    }
    
    .auto-complete li {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        min-height: 2.5rem;
        width: calc(100% - 0.5rem);
        margin: 0.125rem;
    }
    
    .auto-complete li:hover {
        transform: none;
    }
    
    .auto-complete li.highlighted {
        transform: translateX(4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .designclone-search-card {
        margin: 0 0.5rem;
        padding: 0.75rem;
        max-width: calc(100% - 1rem);
    }
    
    /* Ensure all filters are hidden on small mobile devices */
    .row-3,
    .price-period-toggle,
    .property-type-filter,
    .filter-dropdown,
    .filters-left,
    .filters-right,
    .dropdown-trigger {
        display: none !important;
    }
    
    .toggle-btn {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
    
    .location-input {
        height: 2.5rem;
        padding-left: 2.5rem;
        font-size: 0.875rem;
    }
    
    .location-icon {
        left: 0.75rem;
        width: 1rem;
        height: 1rem;
    }
    
    .search-button {
        height: 2.5rem;
        padding: 0 1.5rem;
        font-size: 0.875rem;
    }
    
    .filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .dropdown-trigger {
        height: 2.25rem;
        padding: 0 0.75rem;
        font-size: 0.75rem;
    }
    
    .dropdown-arrow {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .auto-complete {
        position: fixed;
        top: auto;
        left: 0.5rem;
        right: 0.5rem;
        transform: none;
        width: auto;
        max-width: calc(100vw - 1rem);
        margin: 0;
        max-height: 200px;
        z-index: 1049;
    }
    
    .auto-complete li {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        margin: 0.125rem;
        min-height: 2rem;
        width: calc(100% - 0.25rem);
    }
    
    .auto-complete li:hover {
        transform: none;
    }
    
    .auto-complete li.highlighted {
        transform: translateX(2px) scale(1.01);
    }
}

/* Touch interactions */
@media (hover: none) and (pointer: coarse) {
    .toggle-btn,
    .filter-btn,
    .search-button,
    .dropdown-trigger {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .location-input {
        -webkit-appearance: none;
        border-radius: 0.5rem;
    }
}

/* Prevent zoom on input focus on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .location-input {
        font-size: 16px;
    }
}

/* Loading state */
.search-form.loading .search-button {
    background: hsl(var(--muted-foreground));
    cursor: not-allowed;
    transform: none;
}

.search-form.loading .search-button::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .location-icon,
    .dropdown-arrow {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Custom scrollbar for dropdown menus */
.dropdown-menu::-webkit-scrollbar,
.auto-complete::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track,
.auto-complete::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb,
.auto-complete::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover,
.auto-complete::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}
