/* Property Hive Custom Search - Autocomplete Styles */

.location-autocomplete-wrapper {
    position: relative;
}

.location-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.location-autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.location-autocomplete-item:hover {
    background-color: #f8f9fa;
}

.location-name {
    flex-grow: 1;
    font-weight: 500;
}

.location-count {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

/* Availability checkbox styling */
.include-unavailable-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    font-size: 14px;
    color: #666;
}

.include-unavailable-wrapper input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0;
    cursor: pointer;
}

.include-unavailable-wrapper label {
    cursor: pointer;
    user-select: none;
    line-height: 1.2;
    font-size: 0.8rem !important;
    max-width: 120px;
    font-weight: normal !important;
    margin: 0;
    text-transform: none !important;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .location-autocomplete-results {
        max-height: 150px;
    }
    
    .location-autocomplete-item {
        padding: 10px 12px;
    }
    
    #address_keyword_default {
        max-width: 100%;
    }
    
    .include-unavailable-wrapper {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}