/**
 * Rooms archive page styles.
 * Loaded on rooms listing: Woo product_cat (/phong/) or CPT mph_room archive.
 *
 * @package MinhPhatHotel
 */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
	--mph-green:        #022b20;
	--mph-green-mid:    #0a4a35;
	--mph-gold:         #c9a84c;
	--mph-gold-light:   #e8c97a;
	--mph-cream:        #f7f3eb;
	--mph-white:        #ffffff;
	--mph-text:         #1a2e27;
	--mph-muted:        #6b7a74;
	--mph-border:       #ddd8ce;
	--mph-radius:       12px;
	--mph-radius-sm:    8px;
	--mph-shadow:       0 4px 20px rgba(16, 35, 29, 0.10), 0 1px 4px rgba(16,35,29,0.06);
	--mph-shadow-md:    0 10px 36px rgba(16, 35, 29, 0.17), 0 2px 8px rgba(16,35,29,0.07);
	--mph-container:    1320px;
}

/* ============================================================
   HERO
   ============================================================ */
.mph-room-archive-hero {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background-color: var(--mph-green);
}

.mph-room-archive-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: 65% center;
	background-repeat: no-repeat;
}

.mph-room-archive-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(2, 43, 32, 0.97) 0%,
		rgba(2, 43, 32, 0.88) 30%,
		rgba(2, 43, 32, 0.45) 58%,
		rgba(2, 43, 32, 0.05) 100%
	);
}

.mph-room-archive-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--mph-container);
	margin: 0 auto;
	padding: 0 40px 88px;
	align-items: end;
}

.mph-room-archive-hero__content {
	padding-top: 130px;
	padding-bottom: 8px;
	max-width: 600px;
}

.mph-room-archive-hero__breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.65);
	margin-bottom: 20px;
}

.mph-room-archive-hero__breadcrumb a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.mph-room-archive-hero__breadcrumb a:hover {
	color: var(--mph-gold-light);
}

.mph-room-archive-hero__breadcrumb-sep {
	color: rgba(255,255,255,0.35);
}

.mph-room-archive-hero__breadcrumb-current {
	color: var(--mph-gold-light);
}

.mph-room-archive-hero__heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(38px, 5vw, 58px);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 20px;
}

.mph-room-archive-hero__heading-white {
	display: block;
	color: var(--mph-white);
}

.mph-room-archive-hero__heading-gold {
	display: block;
	color: var(--mph-gold-light);
}

.mph-room-archive-hero__desc {
	font-size: 1rem;
	color: rgba(255,255,255,0.78);
	line-height: 1.65;
	max-width: 500px;
}

/* ============================================================
   BOOKING BAR IN ARCHIVE CONTEXT
   ============================================================ */
.mph-room-archive-booking {
	position: relative;
	z-index: 10;
	margin-top: -52px;
	margin-bottom: 0;
}

.mph-room-archive-booking .mph-booking-bar {
	padding: 0;
	background: transparent;
}

.mph-room-archive-booking .mph-booking-bar .mph-container {
	padding-left: 40px;
	padding-right: 40px;
}

.mph-room-archive-booking .mph-booking-bar__panel {
	box-shadow: 0 4px 32px rgba(0,0,0,0.13);
	border-radius: 14px;
}

/* Main section: add padding-top to account for booking bar overlap */
.mph-room-archive-section {
	padding-top: 80px;
}

/* ============================================================
   MAIN SECTION
   ============================================================ */
.mph-room-archive-section {
	background: var(--mph-cream);
	padding: 80px 0 90px;
}

.mph-room-archive-wrap {
	max-width: var(--mph-container);
	margin: 0 auto;
	padding: 0 24px;
}

.mph-room-archive-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

/* ============================================================
   SIDEBAR FILTER
   ============================================================ */
.mph-room-filter {
	background: transparent;
	border-radius: 0;
	border: none;
	padding: 0;
	position: sticky;
	top: 100px;
}

.mph-room-filter__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 0;
	border-bottom: none;
}

.mph-room-filter__title {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mph-text);
	margin: 0;
}

.mph-room-filter__clear {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8rem;
	color: var(--mph-gold);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.mph-room-filter__clear:hover {
	color: var(--mph-green);
}

.mph-room-filter-group {
	margin-bottom: 28px;
	padding-bottom: 0;
	border-bottom: none;
}

.mph-room-filter-group:last-of-type {
	margin-bottom: 0;
}

.mph-room-filter__apply {
	margin-top: 16px;
}

.mph-room-filter-group legend {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--mph-text);
	margin-bottom: 16px;
	padding: 0;
	display: block;
	width: 100%;
}

/* Price range */
.mph-room-filter-range {
	padding: 4px 2px;
}

.mph-room-filter-range__track {
	position: relative;
	height: 4px;
	background: var(--mph-border);
	border-radius: 2px;
	margin: 18px 0 10px;
}

.mph-room-filter-range__fill {
	position: absolute;
	height: 100%;
	background: var(--mph-gold);
	border-radius: 2px;
	pointer-events: none;
}

.mph-room-filter-range__thumb {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
	height: 18px;
	background: var(--mph-white);
	border: 2px solid var(--mph-gold);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	z-index: 2;
}

/* Ẩn input number — chỉ dùng hidden để submit giá trị */
.mph-room-filter-range__inputs {
	display: none;
}

.mph-room-filter-range__input {
	display: none;
}

.mph-room-filter-range__sep {
	display: none;
}

.mph-range-dual__labels {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 0.8rem;
	color: var(--mph-muted);
	font-weight: 400;
}

/* Dual range inputs (hidden, used for value) */
.mph-range-dual {
	position: relative;
	height: 26px;
	margin: 8px 0;
}

.mph-range-dual input[type="range"] {
	position: absolute;
	width: 100%;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	background: transparent;
	outline: none;
	top: 50%;
	transform: translateY(-50%);
}

.mph-range-dual input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mph-white);
	border: 2px solid var(--mph-gold);
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mph-range-dual input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mph-white);
	border: 2px solid var(--mph-gold);
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mph-range-dual__track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	background: var(--mph-border);
	border-radius: 2px;
}

.mph-range-dual__fill {
	position: absolute;
	height: 4px;
	background: var(--mph-gold);
	border-radius: 2px;
	pointer-events: none;
}

.mph-range-dual__labels {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 0.75rem;
	color: var(--mph-muted);
}

/* Checkboxes */
.mph-room-filter-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--mph-text);
	line-height: 1.4;
}

.mph-room-filter-check:last-child {
	margin-bottom: 0;
}

.mph-room-filter-check input[type="checkbox"],
.mph-room-filter-check input[type="radio"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 1.5px solid #ccc;
	border-radius: 4px;
	accent-color: var(--mph-gold);
	cursor: pointer;
}

.mph-room-filter-check input:focus-visible {
	outline: 2px solid var(--mph-gold);
	outline-offset: 2px;
}

/* Apply button */
.mph-room-filter__apply {
	display: block;
	width: 100%;
	padding: 13px 24px;
	background: var(--mph-green);
	color: var(--mph-white);
	font-size: 0.88rem;
	font-weight: 600;
	text-align: center;
	border: none;
	border-radius: var(--mph-radius-sm);
	cursor: pointer;
	transition: background 0.22s, transform 0.15s;
	margin-top: 20px;
	letter-spacing: 0.04em;
}

.mph-room-filter__apply:hover {
	background: var(--mph-green-mid);
	transform: translateY(-1px);
}

.mph-room-filter__apply:active {
	transform: translateY(0);
}

/* Mobile toggle button */
.mph-room-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--mph-green);
	color: var(--mph-white);
	border: none;
	border-radius: var(--mph-radius-sm);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 20px;
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.mph-room-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

.mph-room-toolbar__count {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mph-muted);
}

.mph-room-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	color: var(--mph-muted);
}

.mph-room-toolbar__sort-select {
	border: 1px solid var(--mph-border);
	border-radius: var(--mph-radius-sm);
	padding: 8px 32px 8px 14px;
	font-size: 0.85rem;
	color: var(--mph-text);
	background: var(--mph-white);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}

.mph-room-toolbar__sort-select:focus {
	outline: 2px solid var(--mph-gold);
	outline-offset: 2px;
}

/* ============================================================
   ROOM LIST
   ============================================================ */
.mph-room-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ============================================================
   ROOM CARD
   ============================================================ */
.mph-room-list-card {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) 186px;
	background: var(--mph-white);
	border-radius: var(--mph-radius);
	overflow: hidden;
	box-shadow: var(--mph-shadow);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	border: 1px solid rgba(221, 216, 206, 0.5);
}

.mph-room-list-card:hover {
	box-shadow: var(--mph-shadow-md);
	transform: translateY(-3px);
}

/* Image */
.mph-room-card-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/3;
}

.mph-room-card-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.mph-room-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.mph-room-list-card:hover .mph-room-card-image img {
	transform: scale(1.05);
}

.mph-room-card-image__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--mph-gold);
	color: var(--mph-green);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}

/* Content */
.mph-room-card-content {
	padding: 24px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-right: 1px solid var(--mph-border);
}

.mph-room-card-content__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--mph-text);
	margin: 0;
	line-height: 1.25;
}

.mph-room-card-content__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.mph-room-card-content__title a:hover {
	color: var(--mph-gold);
}

.mph-room-card-content__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.mph-room-card-content__meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	color: var(--mph-muted);
}

.mph-room-card-content__meta-item svg {
	flex-shrink: 0;
	color: var(--mph-green-mid);
}

.mph-room-card-content__excerpt {
	font-size: 0.88rem;
	color: var(--mph-muted);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.mph-room-card-content__amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}

.mph-room-card-content__amenity {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--mph-muted);
	font-size: 0.78rem;
}

.mph-room-card-content__amenity svg {
	flex-shrink: 0;
	color: var(--mph-green-mid);
}

/* Price + CTA */
.mph-room-card-price {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px 20px;
	text-align: center;
}

.mph-room-card-price__from {
	font-size: 0.75rem;
	color: var(--mph-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mph-room-card-price__amount {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.mph-room-card-price__number {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--mph-gold);
	line-height: 1;
}

.mph-room-card-price__unit {
	font-size: 0.75rem;
	color: var(--mph-muted);
}

.mph-room-card-price__original {
	font-size: 0.82rem;
	color: var(--mph-muted);
	text-decoration: line-through;
}

.mph-room-card-price__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 18px;
	border: 1.5px solid var(--mph-gold);
	border-radius: var(--mph-radius-sm);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.15s;
	white-space: nowrap;
	text-align: center;
	box-sizing: border-box;
}

.mph-room-card-price__cta + .mph-room-card-price__cta {
	margin-top: 8px;
}

.mph-room-card-price__cta--outline {
	color: var(--mph-gold);
	background: transparent;
}

.mph-room-card-price__cta--outline:hover {
	background: var(--mph-gold);
	color: var(--mph-green);
	transform: translateY(-1px);
}

.mph-room-card-price__cta--solid {
	color: var(--mph-green);
	background: var(--mph-gold);
	border-color: var(--mph-gold);
}

.mph-room-card-price__cta--solid:hover {
	background: #d4b15a;
	border-color: #d4b15a;
	color: var(--mph-green);
	transform: translateY(-1px);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.mph-room-empty {
	text-align: center;
	padding: 64px 32px;
	background: var(--mph-white);
	border-radius: var(--mph-radius);
	border: 1px solid var(--mph-border);
}

.mph-room-empty__icon {
	font-size: 3rem;
	margin-bottom: 16px;
	opacity: 0.4;
}

.mph-room-empty__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--mph-text);
	margin: 0 0 10px;
}

.mph-room-empty__desc {
	font-size: 0.9rem;
	color: var(--mph-muted);
	margin: 0 0 24px;
}

.mph-room-empty__link {
	display: inline-block;
	padding: 12px 28px;
	background: var(--mph-green);
	color: var(--mph-white);
	border-radius: var(--mph-radius-sm);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.88rem;
	transition: background 0.22s;
}

.mph-room-empty__link:hover {
	background: var(--mph-green-mid);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.mph-room-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.mph-room-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--mph-border);
	border-radius: var(--mph-radius-sm);
	font-size: 0.88rem;
	color: var(--mph-text);
	text-decoration: none;
	background: var(--mph-white);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mph-room-pagination .page-numbers:hover {
	border-color: var(--mph-gold);
	color: var(--mph-gold);
}

.mph-room-pagination .page-numbers.current {
	background: var(--mph-green);
	border-color: var(--mph-green);
	color: var(--mph-white);
	font-weight: 600;
}

.mph-room-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	cursor: default;
}

/* ============================================================
   MOBILE FILTER DRAWER
   ============================================================ */
.mph-room-filter-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.25s;
}

.mph-room-filter-overlay.is-open {
	opacity: 1;
}

.mph-room-filter-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(340px, 90vw);
	background: var(--mph-white);
	z-index: 999;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 24px;
	-webkit-overflow-scrolling: touch;
}

.mph-room-filter-drawer.is-open {
	transform: translateX(0);
}

.mph-room-filter-drawer__close {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.mph-room-filter-drawer__close-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--mph-text);
	border-radius: 6px;
	transition: background 0.2s;
}

.mph-room-filter-drawer__close-btn:hover {
	background: var(--mph-cream);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
	.mph-room-archive-layout {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 24px;
	}

	.mph-room-list-card {
		grid-template-columns: 260px minmax(0, 1fr) 180px;
	}
}

@media (max-width: 900px) {
	.mph-room-archive-layout {
		grid-template-columns: 1fr;
	}

	.mph-room-filter {
		display: none;
	}

	.mph-room-filter.drawer-mode {
		display: block;
	}

	.mph-room-filter-toggle {
		display: inline-flex;
	}

	.mph-room-list-card {
		grid-template-columns: 220px minmax(0, 1fr);
		grid-template-rows: auto auto;
	}

	.mph-room-card-price {
		grid-column: 2;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: center;
		padding: 0 20px 20px;
		border-right: none;
		border-top: 1px solid var(--mph-border);
		gap: 12px 16px;
	}

	.mph-room-card-price__cta {
		width: auto;
		min-width: 120px;
	}

	.mph-room-card-price__cta + .mph-room-card-price__cta {
		margin-top: 0;
	}

	.mph-room-card-content {
		border-right: none;
	}

	.mph-room-archive-hero__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.mph-room-archive-hero {
		min-height: 360px;
	}

	.mph-room-archive-hero__inner {
		padding: 0 16px 70px;
	}

	.mph-room-list-card {
		grid-template-columns: 1fr;
	}

	.mph-room-card-image {
		aspect-ratio: 4/3;
	}

	.mph-room-card-price {
		grid-column: 1;
		padding: 16px 20px 20px;
		border-top: 1px solid var(--mph-border);
	}

	.mph-room-card-content {
		padding: 18px 18px 12px;
	}

	.mph-room-archive-section {
		padding: 48px 0 60px;
	}

	.mph-room-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}
