/* ===== CẤU HÌNH CHUNG ===== */
html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: hidden;
	font-family: Arial, sans-serif;
	box-sizing: border-box;
}

*, *::before, *::after {
	box-sizing: inherit;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: auto;
	padding: 0 15px;
}
img {
	max-width: 100%;
	height: auto;
}
a {
	text-decoration: none;
	color: #333;
}

/* ===== GRID CƠ BẢN ===== */
.row {
	display: flex;
	flex-wrap: wrap;
	margin: -10px;
}
.col {
	padding: 10px;
	box-sizing: border-box;
}
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-6 { width: 50%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-12 { width: 100%; }

/* ===== HEADER ===== */
.header-wrapper {
	background: #f8f8f8;
	border-bottom: 1px solid #ddd;
	width: 100%;
}

/* Header chính chứa logo + menu */
.header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	position: relative;
	box-sizing: border-box;
}

/* Logo + tagline ngang hàng */
.header-left {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
}

.logo a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.logo img {
	height: 40px;
	width: auto;
}

.mobile-only {
	display: none;
}

.desktop-only {
	display: block;
}

/* Tagline */
.tagline-header {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #ff6600;
	font-weight: 700;
	white-space: nowrap;

	margin-left: auto;
	margin-right: auto;
}

/* Tagline xuống dòng khi màn hình hẹp */
@media (max-width: 576px) {
	.mobile-only {
		display: inline-block;
	}

	.desktop-only {
		display: none;
	}
	
	.tagline-header {
	font-size: 12px;
	white-space: normal;
	text-align: left;
	line-height: 1.3;
	margin-left: 0;
	}

	.tagline-header .line-1::after {
	content: '\A';
	white-space: pre;
	}
}

/* Nút menu ☰ */
.nav-toggle {
	display: none;
	font-size: 26px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 6px;
}

/* Menu mặc định (desktop) */
.menu {
	display: flex;
	gap: 20px;
	align-items: center;
	position: relative;
}

.menu a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	padding: 6px 0;
}

/* Dropdown menu */
.dropdown {
	position: relative;
}

.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #ccc;
	min-width: 200px;
	z-index: 1000;
	padding: 5px 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
	display: block;
}

.dropdown-content a {
	display: block;
	padding: 10px 14px;
	color: #333;
	text-decoration: none;
	transition: background-color 0.2s;
}

.dropdown-content a:hover {
	background-color: #f0f0f0;
}

/* Responsive (Tablet & Mobile) */
@media (max-width: 768px) {
	html, body {
	overflow-x: hidden;
	}

	.nav-toggle {
	display: block;
	position: absolute;
	top: 12px;
	right: 20px;
	font-size: 26px;
	cursor: pointer;
	background: none;
	border: none;
	}

	.menu {
	flex-direction: column;
	gap: 10px;
	background: white;
	position: absolute;
	top: 100%;
	right: 20px;
	max-width: 200px;
	padding: 16px;
	z-index: 1000;
	border: 1px solid #ddd;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 8px;

	opacity: 0;
	transform: scaleY(0.95);
	transition: all 0.3s ease;
	pointer-events: none;
	}

	.menu.active {
	opacity: 1;
	transform: scaleY(1);
	pointer-events: auto;
	}

	.menu a {
	padding: 10px 0;
	font-size: 16px;
	text-align: left;
	border-bottom: 1px solid #eee;
	}

	.menu a:last-child {
	border-bottom: none;
	}

	.dropdown {
	position: relative;
	}

	.dropdown-content {
	display: none;
	position: absolute;
	top: 0;
	right: 100%; /* ✅ xuất hiện bên trái */
	left: auto;
	background: #fff;
	border: 1px solid #ccc;
	max-width: 240px;
	z-index: 1001;
	padding: 6px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	margin-right: 8px;
	}

	.dropdown-content.open {
	display: block;
	}

	.dropdown-content a {
	padding: 10px 14px;
	display: block;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #eee;
	font-size: 15px;
	}

	.dropdown-content a:last-child {
	border-bottom: none;
	}

	/* Optional: triangle pointer (nút mũi tên chỉ dropdown) */
	.dropdown-content::before {
	content: "";
	position: absolute;
	top: 14px;
	right: -6px;
	border-width: 6px;
	border-style: solid;
	border-color: transparent transparent transparent #ccc;
	}
}

/* ====== Card tin đăng trên trang chủ ====== */
/* Grid hiển thị tin: 4 -> 3 -> 2 -> 1 cột */
/* Mobile: 2 cột */
.listing-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* Tablet */
@media (min-width: 768px) {
	.listing-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Desktop */
@media (min-width: 1200px) {
	.listing-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Thẻ tin */
.listing-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: box-shadow 0.2s ease;
	max-width: 400px;
}

.listing-card:hover {
	box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Ảnh thumbnail */
.listing-thumb {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 210px;
	display: flex;
	justify-content: center;
	align-items: stretch;
	background: #ffffff;
}

.listing-thumb img {
	max-width: 100%;
	/*max-height: 100%;*/
	object-fit: contain;
	display: block;
}

.vip-star {
	position: absolute;
	top: 6px;
	left: 6px;
	font-size: 22px;
	color: red;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	width: 28px;
	height: 28px;
	text-align: center;
	line-height: 28px;
	font-weight: bold;
	box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Nội dung trong card */
.listing-info {
	padding: 6px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
}

/* Tiêu đề tin */
.listing-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.3;

	max-height: calc(1.3em * 2);  /* 2 dòng */
	overflow: hidden;
}

/* Mô tả ngắn */
.listing-summary {
	font-size: 12px;
	color: #666;
	margin: 0px 0px 8px 0px;
}

/* Địa chỉ và giá */
.listing-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 5px;
}

.meta-left,
.meta-center,
.meta-right {
	flex: 1;
	margin: 10px 0 10px 0;
}

.meta-left {
	font-size: 13px;
	text-align: left;
}

.meta-center {
	text-align: right;
	font-size: 13px;
	color: #089107;
}

.meta-right {
	text-align: right;
	margin: auto;
}

.price-bold {
	color: #fb0a02; /* đỏ tươi */
	font-weight: bold;
	font-size: 16px;
	max-width: 60px;
	white-space: nowrap;
	overflow: hidden;
	display: inline-block;
}

/* Hàng thông số DT, T, PN, N, Đ */
.listing-stats {
	background-color: #ff9800;
	border-radius: 4px;
	padding: 6px 6px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	display: flex;
	gap: 10px;
	overflow: hidden;		/* ẩn phần tràn */
	white-space: nowrap;	 /* không xuống dòng */
	justify-content: space-between;
}

.listing-stats span {
	white-space: nowrap;
	overflow: hidden;
	display: inline-block;
	color: #f6f9f9;
	justify-content: space-between;
}

@media (max-width: 768px) {

	.listing-stats {
		background-color: #ff9800;
		border-radius: 4px;
		padding: 6px 6px;
		font-size: 9px;
		font-weight: 500;
		line-height: 1.4;
		display: flex;
		gap: 5px;
		overflow: hidden;		/* ẩn phần tràn */
		white-space: nowrap;	 /* không xuống dòng */
		justify-content: space-between;
	}

	.listing-stats span {
		white-space: nowrap;
		overflow: hidden;
		display: inline-block;
		color: #f6f9f9;
		justify-content: space-between;
	}
	
	.listing-thumb img {
		max-width: 170%;
		/* max-height: 100%; */
		object-fit: contain;
		display: block;
	}

	.listing-title {
		margin: 0 0 6px;
		font-size: 14px;
		font-weight: bold;
		line-height: 1.3;
		max-height: calc(1.3em * 2);
		overflow: hidden;
	}

	.listing-summary {
		font-size: 10px;
		color: #666;
		margin: 0px 0px 8px 0px;
	}
	
	.meta-left {
		font-size: 11px;
		text-align: left;
	}
	.meta-center {
		text-align: center;
		font-size: 11px;
		color: #089107;
	}
	.meta-right {
		text-align: right;
		margin: auto;
	}
	
	.price-bold {
		color: #fb0a02;
		font-weight: bold;
		font-size: 14px;
		max-width: 60px;
		white-space: nowrap;
		overflow: hidden;
		display: inline-block;
	}
}

.clamp-2 {
	line-height: 1.4;
	max-height: calc(1.4em * 2);  /* 2 dòng */
	overflow: hidden;
}

.map-link {
	color: #ff9800;
	font-weight: 500;
	display: inline-block;
	max-width: 100px;
	white-space: nowrap;
	overflow: hidden;
	text-decoration: none;
}

/* ===== FOOTER ===== */
.footer-wrapper {
	background-color: #f8f9fa;
	padding: 5px 0;
	border-top: 1px solid #dee2e6;
	margin-top: 40px;
	font-size: 14px;
	color: #6c757d;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

@media (min-width: 600px) {
	.footer-content {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* ===== USER LAYOUT ===== */
.user-layout {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	min-height: 100vh;
}

.user-sidebar {
	width: 250px;
	background-color: #f8f9fa;
	padding: 20px;
	box-sizing: border-box;
	border-right: 1px solid #ddd;
	flex-shrink: 0;
}

.user-main {
	flex: 1;
	padding: 20px;
	box-sizing: border-box;
	min-width: 0;
}

.post-edit-main {
	max-width: 800px;
}

/* form-row destop 2, di động 1 */
/* Mặc định: mobile (1 cột) */
.user-layout {
	display: flex;
	flex-wrap: wrap;
}

/* Sidebar mặc định bên trái */
.user-sidebar {
	width: 250px;
}

/* Nội dung chiếm phần còn lại */
.user-main {
	flex: 1;
	padding: 20px;
}

/* Hai khối trong nội dung */
.form-row-21 {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 20px;
}

.form-group-21 {
	flex: 1 1 48%;
}

/* Responsive cho mobile */
@media (max-width: 767px) {
	.user-layout {
	flex-direction: column; /* sidebar lên trên */
	}

	.user-sidebar {
	width: 100%;
	}

	.form-row-21 {
	flex-direction: column; /* chuyển từ hàng ngang -> dọc */
	}

	.form-group-21 {
	width: 100%;
	}
}

/* form-row destop 2, di động 2 */
.form-row-22 {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.form-group-22 {
	flex: 1 1 48%;
}

/* form-row search 4 - 3 - 2 */
/* Dùng cho C:\xampp\htdocs\templates\search_form.php */
.search-form-wrapper {
	width: 65%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 20px 0;
}

.form-row-432 {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.form-group-432 {
	flex: 1 1 100%;
}

@media (min-width: 768px) {
	.form-group-432 {
	flex: 1 1 calc(100% / 3 - 20px); /* 3 cột tablet */
	}
}

@media (min-width: 1200px) {
	.form-group-432 {
	flex: 1 1 calc(100% / 4 - 20px); /* 4 cột desktop */
	}
}

.form-split-2 {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.form-split-2 img,
.form-split-2 input,
.form-split-2 select {
	flex: 1;
	padding: 0px 0px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	height: 36px;
}

/* Giữ cho toàn bộ input/select đồng bộ */
.form-group-432 select,
.form-group-432 input {
	width: 100%;
	padding: 6px 10px;
	height: 36px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

/* form-row đăng bài */
/* C:\xampp\htdocs\user\post_listing.php */
.form-row-pe {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 16px;
}

.user-main .form-row-pe {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 16px;
}

.user-main .form-row-pe .form-group-pe {
	flex: 1 1 calc(50% - 20px);
	min-width: 240px;
}

.form-group-pe label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
}

.form-group-pe input,
.form-group-pe select {
	width: 100%;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}
.form-group-pe textarea {
	width: 100%;
	height: 300px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.user-main .form-row-pe .form-group-pe {
	flex: 1 1 calc(50% - 10px);
	min-width: 140px;
	}
}

/* form tìm kiếm trong admin */
/* C:\xampp\htdocs\admin\notify_logs.php */
.filter-form-au {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 15px;
}

.filter-form-au label {
	display: flex;
	flex-direction: column;
	min-width: 160px;
}

.filter-form-au button {
	padding: 6px 12px;
	border: 1px solid #ccc;
	background-color: #f8f8f8;
	cursor: pointer;
	border-radius: 4px;
}

.filter-form-au button:hover {
	background-color: #e0e0e0;
}

.button-group-au {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.button-group-au button {
	padding: 6px 16px;
	min-width: 30px;
	font-size: 14px;
}

@media (max-width: 600px) {
	.filter-form-au {
		flex-direction: column;
		align-items: stretch;
	}

	.filter-form-au label {
		width: 100%;
	}
	
}

/* ===== SIDEBAR MENU ===== */
.user-sidebar h2 {
	font-size: 18px;
	margin-bottom: 20px;
	color: #333;
}
.user-sidebar a {
	display: block;
	padding: 10px 12px;
	margin-bottom: 8px;
	color: #333;
	background-color: #fff;
	border-radius: 6px;
	transition: background-color 0.2s, color 0.2s;
	font-size: 15px;
}
.user-sidebar a:hover {
	background-color: #007bff;
	color: #fff;
}
.user-sidebar a.active {
	background-color: #0056b3;
	color: #fff;
	font-weight: bold;
}

.user-sidebar-toggle {
	display: none;
	background-color: #007bff;
	color: white;
	padding: 10px 15px;
	font-size: 16px;
	border: none;
	border-radius: 6px;
	margin-bottom: 10px;
	width: 100%;
	text-align: left;
}

/* ===== custom-table ===== */
/* C:\xampp\htdocs\admin\users.php */
.custom-table {
	width: 100%;
	border-collapse: collapse;
}

.custom-table th,
.custom-table td {
	border: 1px solid #ddd;
	padding: 8px;
	font-size: 14px;
}

/* 🌐 Di động: hiển thị theo dạng dọc */
@media screen and (max-width: 768px) {
	.custom-table thead {
	display: none;
	}

	.custom-table tr {
	display: block;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 8px;
	background: #f9f9f9;
	}

	.custom-table td {
	display: block;
	padding-left: 30%;
	position: relative;
	border: none;
	border-bottom: 1px solid #eee;
	}

	.custom-table td::before {
	content: attr(data-label);
	position: absolute;
	left: 8px;
	width: 45%;
	padding-right: 10px;
	font-weight: bold;
	white-space: nowrap;
	}
}

/* phân trang */
.pagination {
	margin-top: 20px;
	text-align: center;
	font-size: 14px;
}

.pagination-info {
	display: inline-block;
	margin-bottom: 10px;
	font-weight: bold;
	color: #333;
	padding: 5px 10px;
	border-radius: 4px;
}

.pagination-links {
	display: inline-block;
	margin-top: 10px;
}

.pagination a,
.pagination strong,
.pagination span.disabled {
	margin: 0 4px;
	padding: 6px 10px;
	border-radius: 4px;
	text-decoration: none;
	background-color: #eee;
	color: #333;
	border: 1px solid #ccc;
}

.pagination a:hover {
	background-color: #ddd;
}

.pagination strong {
	background-color: #ff9800;
	color: white;
	border-color: #f99f1b;
}

.pagination span.disabled {
	opacity: 0.5;
	cursor: default;
}

/* checkbox */
.checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-items: center;
	margin-top: 6px;
}

.checkbox-group label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	font-weight: normal;
}

/* Menu gốc */
.user-sidebar-menu {
	display: block;
}

/* Trên mobile */
@media (max-width: 768px) {
	.user-sidebar-toggle {
		display: block;
	}

	.user-sidebar-menu {
		display: none;
	}

	.user-sidebar-menu.open {
		display: block;
	}
}

/* ===== THÔNG TIN TÀI KHOẢN ===== */
.user-profile-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-top: 15px;
}

.user-avatar-box {
	flex-shrink: 0;
}

.user-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ccc;
}

.user-info-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.user-info-list li {
	margin-bottom: 10px;
	font-size: 14px;
}

.user-info-list a {
	color: #007bff;
}

.user-info-list a:hover {
	text-decoration: underline;
}

/* ===== Ngoại Lệ ===== */
/* gợi ý thông minh */
.price-suggestion-box {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	max-width: 300px;
}

.relative {
	position: relative;
}

/* Nút submit */
.user-submit-btn {
	padding: 10px 16px;
	background-color: #ff9800; /* cam */
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.user-submit-btn:hover {
	background-color: #ffc107; /* vàng */
	transform: translateY(-1px);
}

.user-submit-btn:active {
	transform: scale(0.97);
}

/* user-preview-thumb */
.user-preview-thumb {
	width: 120px;
	height: 90px;
	object-fit: cover;
	border: 1px solid #ccc;
	margin: 4px;
}

/* nút xoá */
.img-wrapper {
	position: relative;
	display: inline-block;
	margin: 5px;
}
.img-wrapper img {
	max-width: 110px;
	border-radius: 4px;
}
.img-remove {
	position: absolute;
	top: 2px;
	right: 5px;
	background: red;
	color: white;
	font-size: 16px;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
}

 /* Nút TOP */
#backToTopBtn {
	width: 30px;
	display: none;
	position: fixed;
	bottom: 40px;
	right: 30px;
	z-index: 999;
	font-size: 18px;
	border: none;
	outline: none;
	background-color: #ef9b03;
	color: white;
	cursor: pointer;
	padding: 6px 6px;
	border-radius: 6px;
	opacity: 0.7;
	transition: opacity 0.3s;
}
#backToTopBtn:hover {
	opacity: 1;
}
.backToTopBtn.visible {
	display: block !important;
}

/* Video youtube*/
.video-wrapper {
	position: relative;
	width: 90%;
	max-width: 800px;
	margin: 0 auto;
	padding-top: 56.25%; /* 16:9 ratio */
}

.responsive-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* price */
.highlight-price {
	color: #f70303;
	font-size: 24px;
	font-weight: bold;
}

/* view */
.view-count {
	font-size: 14px;
	color: #888;
}

/* no-result */
.no-result-msg {
	text-align: center;
	color: red;
	font-size: 18px;
	font-weight: bold;
	margin-top: 20px;
}

/* màu text maps */
.text-orange-maps {
    color: #ff9800;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.text-green {
	color: green;
}

.text-red {
	color: red;
}

/* Thông báo */
.message-success {
	color: green;
	font-size: 16px;
	padding: 10px;
}

.message-error {
	color: red;
	font-size: 16px;
	padding: 10px;
}

.message-warning {
	color: orange;
	font-size: 16px;
	padding: 10px;
}

.video-icon.youtube-icon {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 18px;
	height: 16px;
	background-color: red;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-icon.youtube-icon::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-left: 6px solid white;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	margin-left: 2px;
}

.map-icon {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
}

.map-icon::before {
    content: "📍";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.listing-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 0 10px 0;
	gap: 40px;
}
.listing-header p {
	margin: 0;
	text-align: center;
	color: #ff9800;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

/* captcha */
.captcha-img{
    height:38px;
    border:1px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    user-select:none;
}

.search-heading {
	font-size: 22px;
	color: #ff6600;
	font-weight: bold;
	margin: 20px 0 10px;
	text-align: center;
}

.seo-breadcrumb {
	display: none !important;
}

.seo-breadcrumb li + li::before {
	content: "›";
	margin: 0 4px;
	color: #888;
}

.option-btn {
    width: 44px;
    height: 20px;
    padding: 0;
    background: #fff;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.option-btn.active {
	color: #f44336;
	font-weight: bold;
}

/* Desktop */
#advanced-filters {
    display: contents;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {

    /* Hiện icon ⚙ */
    .mobile-only {
        display: flex;
        margin: 10px 0;
		justify-content: flex-start;
    }

    /* Ẩn bộ lọc nâng cao */
    #advanced-filters {
        display: none;
        width: 100%;
    }

    #advanced-filters.active {
        display: block;
    }

    /* Mỗi field full width */
    .form-group-432 {
        width: 100% !important;
        margin-bottom: 12px;
    }
	
	.form-row-432 {
		display: flex;
		flex-wrap: wrap;
		gap: 0px;
		margin-top: 20px;
	}

    /* Input đôi cách đều */
    .form-split-2 {
        display: flex;
        gap: 10px;
    }

    .form-split-2 input,
    .form-split-2 select {
        width: 100%;
    }
}

.agent-header {
    padding: 20px 0;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 25px;
	justify-content: center;
}

.agent-avatar img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.agent-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.agent-phone {
    font-size: 16px;
    color: #e65100;
    font-weight: 600;
}

.agent-phone a {
    text-decoration: none;
    color: #ff3d00;
    font-weight: 600;
}

.agent-phone a:hover {
    text-decoration: none;
    color: #ff9800;
    font-weight: 600;
}

/* Input khi profile bị khóa */
input[readonly] {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    cursor: not-allowed;
}

/* Bỏ hiệu ứng focus khi readonly */
input[readonly]:focus {
    outline: none;
    box-shadow: none;
    border-color: #d1d5db;
}

.cookie-notice{
    position: fixed;
    left:50%;
    bottom:20px;
    transform:translateX(-50%);
    background:#9e9e9ec2;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    font-size:14px;
    z-index:9999;
    display:none;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
    max-width:590px;
    width:calc(100% - 40px);
    text-align:center;
}
.cookie-notice button{
    margin-left:12px;
    background:#2563eb;
    color:#fff;
    border:none;
    padding:6px 14px;
    border-radius:6px;
    cursor:pointer;
	max-width: 80px;
}

/* Tel */
.listing-sticky-contact-bar{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:9998;
}

.listing-sticky-contact-inner{
    max-width:300px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background:#0f9b44;
    color:#fff;
    border-radius:12px;
    padding:10px 12px;
    box-shadow:0 12px 28px rgba(0,0,0,.18);
}

.listing-sticky-contact-text{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
}

.listing-sticky-contact-label{
    display:none;
}

.listing-sticky-contact-phone{
    font-size:14px;
}

.listing-sticky-contact-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
}

.listing-sticky-contact-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:32px;
    padding:0 10px;
    border-radius:7px;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    border:1px solid transparent;
    white-space:nowrap;
}

.listing-sticky-contact-btn-primary{
    background:#22c55e;
    color:#fff;
}

.listing-sticky-contact-btn-secondary{
    background:#fff;
    color:#111827;
    border-color:#d1d5db;
}

.listing-sticky-contact-btn-call{
    background:#22c55e;
    color:#fff;
}

/* Sự kiện */
.promo-popup{
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.promo-popup[hidden]{
    display: none !important;
}

.promo-popup-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.promo-popup{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.promo-popup[hidden]{
    display:none !important;
}

.promo-popup-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}

.promo-popup-dialog{
    position:relative;
    z-index:1;
    width:min(92vw,500px);
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.28);
}

.promo-popup-close{
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #FF5722;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.promo-box-home--image-only{
    padding: 0;
    background: transparent;
}

.promo-box-home-image{
    margin: 0;
    text-align: center;
}

.promo-box-home-image picture,
.promo-box-home-image img{
    display: block;
    width: 100%;
}

.promo-box-home-image img{
    max-width: 100%;
    height: auto;
}

/* related-search-links */
/* home_related_links */
.related-search-links{
	margin:18px 0 24px;
	padding:16px 18px;
	background:#f7f7f7;
	border:1px solid #dcdcdc;
	border-radius:4px;
}
.related-search-links h2{
	margin:0 0 12px;
	font-size:18px;
	font-weight:700;
	color:#222;
	line-height:1.35;
}
.related-links-grid{
	display:grid;
	grid-template-columns:repeat(4, minmax(0, 1fr));
	gap:10px 26px;
}
.related-links-grid a{
	display:block;
	color:#1a0dab;
	text-decoration:none;
	line-height:1.45;
	font-size:13px;
	word-break:break-word;
}
.related-links-grid a:hover{
	text-decoration:underline;
}
@media (max-width: 768px){
	.related-links-grid{
		grid-template-columns:repeat(2, minmax(0, 1fr));
	}
}
