/* Properties Sort Tabs - Clean Single Border Design */
.properties_sort_tabs_form {
	margin: 0;
	padding: 0;
}

.properties_sort_tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 30px 0;
	padding: 1px;
	border-bottom: 1px solid #e0e0e0;
	background: transparent;
	justify-content: flex-end;
	width: 100%;
}

.properties_sort_tab {
	background: #ffffff !important;
	color: #666 !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 400 !important;
	padding: 12px 20px;
	transition: all 0.2s ease;
	white-space: nowrap;
	outline: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.5;
	margin-bottom: -1px;
	position: relative;
}

.properties_sort_tab:hover {
	background: #f8f8f8 !important;
	color: #555 !important;
}

.properties_sort_tab.active {
	background: #f5f5f5 !important;
	color: #333 !important;
	font-weight: 500 !important;
}

.properties_sort_tab.active:hover {
	background: #f5f5f5 !important;
	color: #333 !important;
}

.properties_sort_tab.disabled,
.properties_sort_tab.disabled:hover,
.properties_sort_tab.disabled.active,
.properties_sort_tab.disabled.active:hover {
	opacity: 0.5;
	cursor: not-allowed !important;
	background: #f9f9f9 !important;
	color: #aaa !important;
}

/* Mobile Filter Toggle Styles */
.properties_mobile_filter_toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	margin-bottom: 20px;
	font-weight: 500;
	color: #333;
	transition: all 0.3s ease;
}

.properties_mobile_filter_toggle:hover {
	background: #f8f8f8;
}

.properties_mobile_filter_toggle.active {
	background: #f5f5f5;
	border-color: #ccc;
}

.properties_mobile_filter_toggle .filter_icon {
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: all 0.3s ease;
}

.properties_mobile_filter_toggle.active .filter_icon {
	transform: scale(1.1);
}

/* Mobile Search Container */
#custom_widgets_1 {
	transition: all 0.3s ease;
}

/* Responsive Breakpoint at 950px */
@media (max-width: 950px) {
	/* Show mobile filter toggle on mobile */
	.properties_mobile_filter_toggle {
		display: flex;
	}

	/* Hide sort tabs on mobile */
	.properties_sort_tabs {
		display: none;
	}

	/* Mobile search container - hidden by default */
	#custom_widgets_1 {
		display: none;
		margin-top: 20px;
	}

	/* Hide search title on mobile */
	.properties_search_title {
		display: none !important;
	}

	/* Center search button on mobile */
	.properties_search_button_container {
		display: flex;
		justify-content: center;
		padding-bottom: 2.6em;
	}

	#custom_widgets_1.mobile-open {
		display: block;
	}

	.search_wrap.search_style_normal.layouts_search.inited {
		max-width: 100%;
	}
}

/* Desktop - ensure elements are shown */
@media (min-width: 951px) {
	.properties_mobile_filter_toggle {
		display: none !important;
	}

	.properties_sort_tabs {
		display: flex !important;
	}

	#custom_widgets_1 {
		display: block !important;
	}
}

/* Mobile Search Header Clone Visibility */
.sc_layouts_search_mobile {
    display: none;
}

@media (max-width: 950px) {
    /* Hide original search header */
    .sc_layouts_search:not(.sc_layouts_search_mobile) {
        display: none !important;
    }
    
    /* Show cloned search header */
    .sc_layouts_search_mobile {
        display: block !important;
    }
}
