/* Property Search Dropdown Styles */

.property-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.property-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.property-search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.property-search-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.property-search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item.selected {
    background-color: #e3f2fd;
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-details {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.search-result-location {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-result-price {
    color: var(--main-text-head);
    font-weight: 600;
    font-size: 13px;
}

.search-no-results {
    padding: 20px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Search input enhancements */
.seach-input {
    position: relative;
}

.seach-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

/* Loading state */
.search-loading {
    padding: 12px 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

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

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

/* Property type badge */
.property-type-badge {
    background: #e3f2fd;
    color: var(--main-text-head);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    display: inline-block;
}

/* Enhanced search result styling */
.search-result-item {
    position: relative;
}

.search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background-color 0.2s;
}

.search-result-item:hover::before,
.search-result-item.selected::before {
    background: var(--red-text);
}

/* Search input container positioning */
.search-filter-wrapper {
    position: relative;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .property-search-dropdown {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-item img {
        width: 50px;
        height: 50px;
    }
    
    .search-result-title {
        font-size: 13px;
    }
    
    .search-result-location {
        font-size: 11px;
    }
    
    .search-result-price {
        font-size: 12px;
    }
    
    .property-type-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
}
