
/**
 * Hero Search Styles
 * Styles for the improved hero search component
 */

/* Search container */
#buildify-search {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

/* Input and button */
#buildify-search .input-group {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

#buildify-search .search-input {
	padding: 12px 16px;
	font-size: 16px;
	border: none;
	outline: none;
	height: 52px;
}

#buildify-search .search-button {
	background-color: var(--primary-color, #0073e6);
	color: white;
	border: none;
	padding: 0 20px;
	cursor: pointer;
	transition: background-color .2s;
}

#buildify-search .search-button:hover {
	background-color: var(--primary-color-dark, #0062c4);
}

/* Results dropdown */
.search-results-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: white;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
	max-height: 350px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	margin-top: 4px;
}

/* Result items */
.search-result-item, .detect-location {
	padding: 10px 16px;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: background-color .2s;
	border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover, .detect-location:hover {
	background-color: #f5f8ff;
}

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

.search-result-item i, .detect-location i {
	font-size: 16px;
	margin-right: 8px;
	color: var(--primary-color, #0073e6);
}

.search-result-item.text-muted {
	cursor: default;
	color: #777;
}

.search-result-item .flex-grow-1 {
	flex-grow: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Property count badge */
.post-count {
	background-color: #f0f5ff;
	color: var(--primary-color, #0073e6);
	border-radius: 30px;
	padding: 3px 10px;
	font-size: 13px;
	white-space: nowrap;
	font-weight: 500;
}

/* Location type styling */
.search-result-item.region i {
	color: #e63900;
}

.search-result-item.city i {
	color: #619356;
}

.search-result-item.neighborhood i {
	color: #00b86b;
}

/* Detect location button */
.detect-location {
	background-color: #f9f9f9;
	font-weight: 500;
}

.detect-location i {
	color: #ff6b00;
}

/* Media queries */
@media (max-width: 768px) {
	#buildify-search {
		max-width: 100%;
	}
	
	.search-results-dropdown {
		max-height: 280px;
	}
}
