.vto-sim-search {
	--vto-red: #ef0032;
	--vto-red-dark: #a90027;
	--vto-blue: #3159d9;
	--vto-green: #285b2e;
	--vto-green-light: #3f7a35;
	--vto-border: #e6e6e6;
	--vto-text: #202124;
	margin: 0 auto 28px;
	width: 100%;
}

.vto-sim-search [hidden] {
	display: none !important;
}

/* Chỉ gỡ nền và shadow của cột Flatsome đang chứa bộ tìm kiếm mới. */
.box_timkiem.vto-sim-search-shell,
.box_timkiem.vto-sim-search-shell.box-shadow,
.box_timkiem.vto-sim-search-shell.box-shadow-2,
.box_timkiem.vto-sim-search-shell .col-inner,
.row-box-shadow-2 .box_timkiem.vto-sim-search-shell,
.row-box-shadow-2 .box_timkiem.vto-sim-search-shell .col-inner {
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: inherit;
}

.box_timkiem.vto-sim-search-shell {
	padding: 10px !important;
}

.box_timkiem.vto-sim-search-shell .col-inner {
	padding: 0 !important;
}

.vto-sim-search__panel {
	padding: 10px;
	background:
		radial-gradient(circle at 62% 20%, rgba(109, 163, 77, .22) 0 12%, transparent 12.5%),
		linear-gradient(120deg, var(--vto-green) 0%, var(--vto-green-light) 52%, #24562b 100%);
	color: #fff;
}

.vto-sim-search__form {
	display: flex;
	gap: 0;
	margin: 0;
	width: 100%;
}

.vto-sim-search__field {
	position: relative;
	flex: 1 1 auto;
}

.vto-sim-search__input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 46px 0 16px;
	border: 1px solid #d6d6d6;
	border-radius: 0;
	background-color: #fff;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .09);
	font-size: 18px;
	color: var(--vto-text);
}

.vto-sim-search__input[type="text"]:focus {
	border-color: var(--vto-blue);
	box-shadow: 0 0 0 2px rgba(49, 89, 217, .18);
	outline: 0;
}

.vto-sim-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 58px;
	width: 58px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--vto-blue);
	color: #fff;
	cursor: pointer;
}

.vto-sim-search__submit:hover,
.vto-sim-search__submit:focus {
	background: #2447ba;
	color: #fff;
}

.vto-sim-search__submit-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.vto-sim-search__submit-icon {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.vto-sim-search__clear {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #777;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.vto-sim-search__clear[hidden] {
	display: none;
}

.vto-sim-search__help {
	margin: 16px 0 0 26px;
	padding: 0;
	color: #fff;
	font-size: 16px;
	line-height: 1.55;
}

.vto-sim-search__help li {
	margin: 5px 0;
}

.vto-sim-legacy-help-hidden {
	display: none !important;
}

.vto-sim-legacy-help-wrapper-hidden {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.vto-sim-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 24px 0 14px;
	padding: 15px 20px;
	border: 1px solid #ededed;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
	font-size: 18px;
	line-height: 1.35;
	text-transform: uppercase;
}

.vto-sim-breadcrumb a {
	color: #666;
	font-weight: 400;
}

.vto-sim-breadcrumb a:hover,
.vto-sim-breadcrumb a:focus {
	color: var(--vto-red);
}

.vto-sim-breadcrumb__separator {
	color: #aaa;
}

.vto-sim-breadcrumb strong {
	color: #111;
	font-weight: 800;
}

.vto-sim-search__active-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 24px 0 14px;
	padding: 13px 16px;
	border: 1px solid #ececec;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
	color: #4b4b4b;
}

.vto-sim-search__active-query {
	color: var(--vto-red);
	font-style: italic;
}

.vto-sim-search__clear-all {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4a4a4a;
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.vto-sim-price-filter {
	min-width: 0;
	margin: 0 0 22px;
	padding: 18px 24px 22px;
	border: 1px solid #f2b887;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 0 8px rgba(224, 116, 38, .24);
}

.vto-sim-price-filter legend {
	padding: 0 6px;
	color: var(--vto-red);
	font-size: 20px;
	font-weight: 800;
}

.vto-sim-price-filter__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 42px;
	row-gap: 4px;
}

.vto-sim-price-filter__option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 38px;
	margin: 0;
	color: #171717;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.vto-sim-price-filter__option input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--vto-red);
}

.vto-sim-search__status {
	min-height: 24px;
	margin: 16px 0 10px;
	font-weight: 600;
	color: var(--vto-text);
}

.vto-sim-search__status:empty,
nav.vto-sim-search__pagination.woocommerce-pagination:empty {
	display: none !important;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.vto-sim-search__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 5px;
	border-radius: 8px;
	background: #f9f9f9;
	box-shadow: 0 1px 10px rgba(0, 0, 0, .07);
}

.vto-sim-card {
	position: relative;
	flex: 0 0 25%;
	box-sizing: border-box;
	max-width: 25%;
	padding: 5px;
}

.vto-sim-card__link {
	display: block;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: 5px 5px 5px 60px;
	border: 1px solid #f9f9f9;
	border-radius: 5px;
	background: #fff;
	color: var(--vto-text);
	box-shadow: 0 2px 5px #eee;
	text-align: right;
	text-decoration: none;
	transition: .5s;
}

.vto-sim-card:hover .vto-sim-card__link,
.vto-sim-card__link:focus-visible {
	box-shadow: 0 4px 6px #bbb;
	color: var(--vto-text);
	outline: 0;
}

.vto-sim-card:hover .vto-sim-card__phone,
.vto-sim-card__link:focus-visible .vto-sim-card__phone {
	color: var(--vto-red);
}

.vto-sim-card__image {
	position: absolute;
	top: 5px;
	left: 5px;
	box-sizing: border-box;
	width: 50px;
	height: 50px;
	overflow: hidden;
	border-left: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	border-radius: 50%;
	background-color: #fff;
	line-height: 50px;
	text-align: center;
}

.vto-sim-card__image-file {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: contain;
	transform: translate(-50%, -50%);
}

.vto-sim-card__phone {
	display: block;
	max-width: 100%;
	margin-top: 0;
	padding-top: 15px;
	overflow: visible;
	color: var(--vto-red);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	text-overflow: clip;
	white-space: nowrap;
}

.vto-sim-card__price {
	display: block;
	margin-top: 0;
	color: #111;
	font-size: 15px;
	font-weight: normal;
	line-height: 1.25;
	white-space: nowrap;
}

.vto-sim-search__grid--loading {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 10px;
}

.vto-sim-search__pagination {
	margin-top: 24px;
}

.vto-sim-search__pagination ul.page-numbers {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vto-sim-search__pagination ul.page-numbers > li {
	display: block;
	margin: 0;
	padding: 0;
}

.vto-sim-search__pagination a.page-number,
.vto-sim-search__pagination span.page-number {
	box-sizing: border-box;
	width: auto;
	min-width: 2.25em;
	height: 2.25em;
	padding: 0 7px;
	border: 2px solid;
	border-radius: 99px;
	background: #fff;
	color: #333;
	display: block;
	font-size: 1.1em;
	font-weight: bolder;
	line-height: 2em;
	text-align: center;
	transition: all .3s;
	vertical-align: top;
	text-decoration: none;
}

.vto-sim-search__pagination a.page-number:hover,
.vto-sim-search__pagination a.page-number:focus-visible {
	border-color: var(--vto-red);
	background: var(--vto-red);
	color: #fff;
	transform: translateY(-1px);
	outline: 0;
}

.vto-sim-search__pagination a.page-number:hover i,
.vto-sim-search__pagination a.page-number:focus-visible i {
	color: #fff;
}

.vto-sim-search__pagination span.page-number.current {
	border-color: var(--vto-red);
	background: var(--vto-red);
	color: #fff;
}

.vto-sim-search__pagination a.page-number.prev,
.vto-sim-search__pagination a.page-number.next {
	font-weight: bolder;
}

.vto-sim-search__load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 75%;
	margin: 0;
	padding: 15px;
	border: 0;
	border-radius: 30px;
	background: #ee0000;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	font-size: 0;
	font-weight: bold;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.vto-sim-search__load-more::after {
	content: "Xem thêm";
	font-size: 14px;
	line-height: 1;
}

.vto-sim-search__load-more:hover,
.vto-sim-search__load-more:focus-visible {
	border-color: var(--vto-red-dark);
	background: var(--vto-red-dark);
	color: #fff;
	transform: translateY(-1px);
	outline: 0;
}

.vto-sim-search__load-more[aria-disabled="true"] {
	opacity: 1;
	cursor: wait;
	transform: none;
}

.vto-sim-search__load-more[aria-disabled="true"]::before {
	content: "";
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-right: 16px;
	border: 3px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vto-sim-spinner .7s linear infinite;
}

.vto-sim-search__load-more[aria-disabled="true"]::after {
	content: "Xem thêm";
}

.vto-sim-search__empty {
	padding: 30px 20px;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	color: #4b5563;
}

.vto-sim-search__empty p {
	margin: 5px 0 0;
}

.vto-sim-search__skeleton {
	height: 104px;
	border-radius: 7px;
	background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
	background-size: 400% 100%;
	animation: vto-sim-loading 1.2s ease infinite;
}

.vto-sim-default-hidden {
	display: none !important;
}

/* Tránh nháy các block cũ trước khi JavaScript chạy trên URL kết quả trực tiếp. */
.vto-sim-query-active .row_cat,
.vto-sim-query-active .row_loai_sim,
.vto-sim-query-active .box_sd,
.vto-sim-query-active .row_pro_price,
.vto-sim-query-active .row_pro_tamhoa,
.vto-sim-query-active .row_pro_namsinh,
.vto-sim-query-active .row_post_trade_hot {
	display: none !important;
}

@keyframes vto-sim-loading {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

@keyframes vto-sim-spinner {
	to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
	.vto-sim-search__grid--loading {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 849px) {
	.vto-sim-card__image-file {
		width: 25px;
		height: 25px;
	}

	.vto-sim-search__pagination {
		display: flex;
		justify-content: center;
	}

	.vto-sim-price-filter {
		position: relative;
		overflow: visible;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.vto-sim-price-filter legend {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.vto-sim-price-filter__options {
		display: flex;
		gap: 8px;
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 2px 10px 8px;
		scrollbar-width: thin;
		scrollbar-color: rgba(239, 0, 50, .16) transparent;
		scroll-padding-inline: 10px;
		overscroll-behavior-x: contain;
		touch-action: pan-x;
		-webkit-overflow-scrolling: touch;
	}

	.vto-sim-price-filter__options::-webkit-scrollbar {
		height: 3px;
	}

	.vto-sim-price-filter__options::-webkit-scrollbar-track {
		background: transparent;
	}

	.vto-sim-price-filter__options::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(239, 0, 50, .16);
	}

	.vto-sim-price-filter__option {
		position: relative;
		display: block;
		flex: 0 0 auto;
		min-height: 0;
	}

	.vto-sim-price-filter__option input[type="radio"] {
		position: absolute;
		z-index: 2;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		opacity: 0;
		cursor: pointer;
	}

	.vto-sim-price-filter__option span {
		display: block;
		padding: 9px 13px;
		border: 1px solid #d2d2d2;
		border-radius: 7px;
		background: #fff;
		color: #202124;
		font-size: 0;
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
		transition: border-color .15s ease, background .15s ease, color .15s ease;
	}

	.vto-sim-price-filter__option span::after {
		content: attr(data-mobile-label);
		font-size: 14px;
	}

	.vto-sim-price-filter__option input[type="radio"]:checked + span {
		border-color: var(--vto-red);
		background: var(--vto-red);
		color: #fff;
	}

	.vto-sim-price-filter__option input[type="radio"]:focus-visible + span {
		outline: 2px solid rgba(239, 0, 50, .3);
		outline-offset: 2px;
	}

	.vto-sim-search__grid--loading {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 549px) {
	.box_timkiem.vto-sim-search-shell {
		padding: 6px !important;
	}

	nav.vto-sim-search__pagination.woocommerce-pagination {
		display: flex !important;
		align-items: center;
		clear: both !important;
		justify-content: center;
		padding: 20px 0 !important;
		text-align: center !important;
	}

	.vto-sim-search__panel {
		padding: 10px;
	}

	.vto-sim-card__image-file {
		width: 25px;
		height: 25px;
	}

	.vto-sim-breadcrumb {
		gap: 7px 10px;
		margin-top: 16px;
		padding: 12px 14px;
		font-size: 14px;
	}

	.vto-sim-search__input[type="text"],
	.vto-sim-search__submit {
		height: 46px;
	}

	.vto-sim-search__submit {
		flex-basis: 50px;
		width: 50px;
	}

	.vto-sim-search__submit-icon {
		width: 20px;
		height: 20px;
	}

	.vto-sim-search__clear {
		font-size: 16px;
	}

	.vto-sim-search__help {
		display: block;
		margin: 12px 0 0 20px;
		font-size: 13px;
		line-height: 1.45;
	}

	.vto-sim-search__active-filter {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.vto-sim-price-filter {
		padding: 0;
	}

	.vto-sim-search__status {
		font-size: 14px;
		line-height: 1.4;
	}

	.vto-sim-card__phone {
		font-size: 16px;
	}

	.vto-sim-card__price {
		font-size: 14px;
	}

}

@media (max-width: 379px) {
	.vto-sim-search__grid {
		padding: 2px;
	}

	.vto-sim-card__phone {
		font-size: 16px;
	}

	.vto-sim-card__price {
		font-size: 14px;
	}
}

@media only screen and (max-width: 48em) {
	.vto-sim-card {
		flex-basis: 50%;
		max-width: 50%;
	}

	.vto-sim-card__link {
		padding: 5px 5px 5px 50px;
		font-size: 14px;
	}

	.vto-sim-card__image {
		width: 40px;
		height: 40px;
		line-height: 40px;
	}

	.vto-sim-card__phone {
		font-size: 16px;
	}
}
