/*
 * Property Archive & Sidebar Filter Stylesheet (taxonomy-mua_ban.php)
 * Mobile-First Responsive 2-Column Layout
 */

.homie9-archive-page {
	background-color: #ffffff;
	min-height: 100vh;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==================== HERO BANNER ==================== */
.property-hero-banner {
	background-color: #07172e;
	background-image: url('https://homie9.vn/wp-content/uploads/2023/07/Homie9-Page-Banner.jpg');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	padding: 135px 0 45px;
	position: relative;
	text-align: center;
	color: #ffffff;
}

.property-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(7, 23, 46, 0.72) 0%, rgba(32, 56, 109, 0.65) 100%);
	pointer-events: none;
}

.property-hero-container {
	position: relative;
	z-index: 2;
}

.property-hero-inner {
	max-width: 900px;
	margin: 0 auto;
}

.property-breadcrumbs {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 12px;
	color: #ffffff;
}

.property-breadcrumbs a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.25s ease;
}

.property-breadcrumbs a:hover {
	color: #ba8632;
}

.property-breadcrumbs .breadcrumb-sep {
	color: rgba(255, 255, 255, 0.6);
}

.property-breadcrumbs .breadcrumb-current {
	color: #ffffff;
	font-weight: 800;
}

.property-hero-title {
	font-size: 38px;
	font-weight: 800;
	color: #ffffff !important;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 14px;
	line-height: 1.25;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.property-hero-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	max-width: 160px;
	margin: 0 auto 24px;
}

.property-hero-divider .divider-line {
	flex: 1;
	height: 1.5px;
	background: linear-gradient(90deg, transparent, #ba8632, transparent);
	opacity: 0.85;
}

.property-hero-divider .divider-diamond {
	color: #ba8632;
	font-size: 11px;
}

.homie9-hero-search-bar {
	background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
	padding: 40px 0;
	color: #ffffff;
}

.hero-search-box {
	display: flex;
	gap: 12px;
	max-width: 850px;
	margin: 0 auto;
	background: #ffffff;
	padding: 8px;
	border-radius: var(--radius-md);
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero-search-box input {
	flex: 1;
	border: none;
	padding: 12px 18px;
	font-size: 15px;
	outline: none;
	color: var(--navy-dark);
}

.btn-primary-search {
	background: var(--gold-primary);
	color: var(--navy-dark);
	border: none;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	transition: var(--transition);
}

.btn-primary-search:hover {
	background: var(--gold-hover);
}

/* 2-Column Archive Layout */
.main-archive-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 35px;
	padding: 40px 20px;
}

/* Sidebar Filter */
.homie9-filter-sidebar {
	background: #ffffff;
	padding: 24px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	height: fit-content;
}

.sidebar-filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid var(--light-bg);
	padding-bottom: 14px;
	margin-bottom: 20px;
}

.filter-main-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--navy-dark);
}

.btn-close-sidebar-filter {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
}

.filter-group {
	margin-bottom: 22px;
}

.filter-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--navy-dark);
	margin-bottom: 8px;
}

.filter-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.filter-label-row .filter-label {
	margin-bottom: 0;
}

.filter-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 14px;
	outline: none;
	background: #fff;
}

.filter-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.currency-toggle-wrap {
	display: flex;
	background: var(--light-bg);
	border-radius: 20px;
	padding: 2px;
	border: 1px solid var(--border-color);
}

.btn-currency {
	border: none;
	background: transparent;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 16px;
	cursor: pointer;
	color: var(--text-muted);
}

.btn-currency.active {
	background: var(--navy-dark);
	color: var(--gold-primary);
}

.range-slider-container {
	margin-top: 8px;
}

.range-values-display {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-dark);
	margin-bottom: 6px;
}

.range-slider {
	width: 100%;
	accent-color: var(--gold-primary);
	cursor: pointer;
}

.bedroom-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.btn-pill {
	border: 1px solid var(--border-color);
	background: #fff;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.btn-pill.active,
.btn-pill:hover {
	background: var(--navy-dark);
	color: var(--gold-primary);
	border-color: var(--navy-dark);
}

.filter-actions-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.btn-filter-reset {
	background: var(--light-bg);
	border: 1px solid var(--border-color);
	padding: 10px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
}

.btn-filter-apply {
	background: var(--navy-dark);
	color: var(--gold-primary);
	border: 1px solid var(--gold-primary);
	padding: 10px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	cursor: pointer;
}

.btn-filter-apply:hover {
	background: var(--gold-primary);
	color: var(--navy-dark);
}

/* Products Main Column */
.products-header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border-color);
}

.archive-heading-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--navy-dark);
}

.results-count {
	font-size: 14px;
	color: var(--text-muted);
}

.select-sort {
	padding: 8px 12px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 14px;
	background: #fff;
	outline: none;
}

/* Property Grid */
.homie9-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.homie9-property-card {
	background: var(--card-bg);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 0.3px solid #ba8632;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.homie9-property-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
	border-color: var(--gold-primary);
}

.property-card-thumb-wrap {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: #cbd5e1;
}

.property-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.homie9-property-card:hover .property-card-img {
	transform: scale(1.06);
}

/* Badge [MỚI]: Nền xanh navy, chữ trắng, viền vàng golden 0.3px */
.badge-status-new {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #0a192f;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 4px;
	border: 0.3px solid #ba8632;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	z-index: 2;
}

/* Logo icon Homie9 góc trên bên phải: width 60px, height 30px */
.property-card-brand-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 60px;
	height: 30px;
	object-fit: contain;
	z-index: 2;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
	pointer-events: none;
}

.badge-status-code {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(10, 25, 47, 0.9);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	border: 0.3px solid #ba8632;
	z-index: 2;
}

.property-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	box-sizing: border-box;
}

.property-card-price-row {
	height: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	flex-shrink: 0;
}

.property-card-price {
	font-size: 18.5px;
	font-weight: 800;
	color: #ba8632;
	line-height: 1;
}

.btn-fav {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: var(--text-muted);
	padding: 0;
	line-height: 1;
}

.property-card-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.45;
	height: 43px;
	min-height: 43px;
	max-height: 43px;
	margin-bottom: 12px;
	color: var(--navy-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-shrink: 0;
}

.property-card-title a {
	color: inherit;
	text-decoration: none;
}

.property-card-title:hover,
.property-card-title a:hover {
	color: var(--gold-dark);
}

.property-card-specs {
	height: 38px;
	min-height: 38px;
	max-height: 38px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--text-muted);
	padding: 0 4px;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 10px;
	flex-shrink: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.property-card-location {
	height: 22px;
	min-height: 22px;
	max-height: 22px;
	margin-top: auto;
	display: flex;
	align-items: center;
	font-size: 13px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
}

/* Spinner & Pagination */
.homie9-loading-spinner {
	text-align: center;
	padding: 50px 0;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e2e8f0;
	border-top-color: var(--gold-primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.homie9-pagination {
	margin-top: 35px;
	text-align: center;
}

.homie9-pagination ul {
	display: inline-flex;
	list-style: none;
	gap: 6px;
}

.homie9-pagination li a,
.homie9-pagination li span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-weight: 600;
	background: #fff;
}

.homie9-pagination li span.current {
	background: var(--navy-dark);
	color: var(--gold-primary);
	border-color: var(--navy-dark);
}

.mobile-filter-trigger-wrap {
	display: none;
}

@media (max-width: 991px) {
	.main-archive-layout {
		grid-template-columns: 1fr;
	}

	.mobile-filter-trigger-wrap {
		display: block;
		margin-bottom: 15px;
	}

	.btn-mobile-filter {
		width: 100%;
		background: var(--navy-dark);
		color: var(--gold-primary);
		border: 1px solid var(--gold-primary);
		padding: 12px;
		border-radius: var(--radius-sm);
		font-weight: 700;
		cursor: pointer;
	}

	.homie9-filter-sidebar {
		position: fixed;
		top: 0;
		left: -100%;
		width: 85%;
		max-width: 340px;
		height: 100vh;
		z-index: 10000;
		overflow-y: auto;
		transition: left 0.3s ease;
		box-shadow: 10px 0 30px rgba(0,0,0,0.4);
	}

	.homie9-filter-sidebar.open {
		left: 0;
	}

	.btn-close-sidebar-filter {
		display: block;
	}
}
