/*
 * HanoPalais — the room card.
 *
 * One component for every place a room appears: the rooms on a property page,
 * the results on /dat-phong/, and whatever availability screen comes later.
 * Loaded only where rooms render.
 *
 * A wide hospitality card: the name across the top, the photograph on the
 * left, the facts in the middle, the price and the decision on the right. On a
 * phone it stacks in that order. Every element that has no value is hidden by
 * the markup, so the card never shows an empty slot.
 */

.hnps-room {
	position: relative;
	padding: var(--hnp-space-4);
	border: 1px solid var(--hnps-line, rgba(14, 26, 38, 0.12));
	border-radius: var(--hnp-radius-panel, 16px);
	background: var(--hnp-color-surface, #ffffff);
	color: var(--hnp-color-ink, #0e1a26);
	box-shadow: var(--hnp-shadow-card);
}

/* T-0953 (Owner FBW2310 §III "Card hết phòng vẫn quá lớn và khó đọc"): a sold-out card is no longer faded as a whole. The status line says it. */

.hnps-room .hnps-room__name {
	margin: 0 0 var(--hnp-space-3);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-3);
	line-height: 1.25;
	font-weight: 700;
	color: var(--hnp-color-ink);
}

.hnps-room__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hnp-space-4);
}

/* --- photograph --- */
.hnps-room__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	/* Reference measures 16px here (its room photo is the only rounded
	   element on an otherwise borderless row); ours already uses 16px
	   everywhere else a card wraps content (.hnp-radius-panel), so match
	   that number instead of the smaller card-image default. */
	border-radius: var(--hnp-radius-panel, 16px);
	background: var(--hnp-color-sand, #efe9df);
}

.hnps-room .hnps-room__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* All-Base UI Unification (2026-09): same rule as the property mosaic -- a
   room photo whose file 404s falls back to the sand tile already behind it
   (.hnps-room__media's background) instead of the broken-image glyph. */
.hnps-room .hnps-room__img.error { display: none; }

.hnps-room__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--hnp-font-display);
	font-size: 2.5rem;
	font-weight: 700;
	color: rgba(14, 26, 38, 0.25);
}

.hnps-room__tag,
.hnps-room__badge {
	position: absolute;
	top: 10px;
	padding: 4px 10px;
	border-radius: var(--hnp-radius-pill, 999px);
	font-size: var(--hnp-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hnps-room__tag { left: 10px; background: var(--hnp-color-ink); color: #ffffff; }
.hnps-room__badge { right: 10px; background: #ffffff; color: var(--hnp-color-danger, #a13a2c); }

.hnps-room__gallery {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.hnps-room__count {
	padding: 3px 10px;
	border-radius: var(--hnp-radius-pill, 999px);
	background: rgba(14, 26, 38, 0.7);
	color: #ffffff;
	font-size: var(--hnp-text-xs);
	font-variant-numeric: tabular-nums;
}

.hnps-room .hnps-room__nav {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--hnp-color-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

/* --- facts --- */
.hnps-room__info { min-width: 0; }

.hnps-room .hnps-room__where {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 6px;
	font-size: var(--hnp-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-room .hnps-room__address {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 var(--hnp-space-3);
	font-size: var(--hnp-text-sm);
	color: var(--hnps-muted, #4f5b66);
}

.hnps-room__address .hnp-icon { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; }

.hnps-room__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 var(--hnp-space-3);
	padding: 0;
	list-style: none;
}

.hnps-room__spec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--hnp-text-sm);
	font-weight: 600;
	color: var(--hnp-color-ink-2);
}

.hnps-room__spec .hnp-icon { width: 18px; height: 18px; color: var(--hnps-accent-text, var(--hnp-color-accent-text)); }

.hnps-room .hnps-room__window {
	margin: 0 0 var(--hnp-space-3);
	font-size: var(--hnp-text-sm);
	color: var(--hnps-muted, #4f5b66);
}

.hnps-room .hnps-room__desc {
	margin: 0 0 var(--hnp-space-3);
	font-size: var(--hnp-text-sm);
	line-height: 1.6;
	color: var(--hnp-color-ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hnps-room .hnps-room__amenities {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 14px;
	margin: 0 0 var(--hnp-space-3);
	padding: 0;
	list-style: none;
	font-size: var(--hnp-text-sm);
	color: var(--hnp-color-ink-2);
}

.hnps-room__amenities li { display: flex; align-items: center; gap: 6px; }
.hnps-room__amenities .hnp-icon { flex: 0 0 auto; width: 15px; height: 15px; color: var(--hnps-accent-text, var(--hnp-color-accent-text)); }

.hnps-room .hnps-room__more { font-size: var(--hnp-text-sm); }

/* B4: "Phù hợp với" chips — shared markup with the booking search listing
   (hnp-booking.css carries the same rule for that context); this covers
   the property-page room list, where the same partial can also render it. */
.hnps-room__suitable { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--hnp-space-2); }
.hnps-room__suitable-label { font-size: var(--hnp-text-xs); font-weight: 500; color: var(--hnps-muted); white-space: nowrap; }
.hnps-room__suitable-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hnps-room__suitable-list li { padding: 4px 10px; border: 1px solid var(--hnps-line); border-radius: 999px; font-size: var(--hnp-text-xs); color: var(--hnp-color-ink-2); }
.hnps-room__suitable-more { background: var(--hnp-color-sand); border-color: transparent !important; font-weight: 600; }

/* --- decision --- */
.hnps-room__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-top: var(--hnp-space-3);
	border-top: 1px solid var(--hnps-line, rgba(14, 26, 38, 0.12));
}

.hnps-room .hnps-room__avail {
	margin: 0;
	font-size: var(--hnp-text-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-room__avail[data-tone="last"],
.hnps-room__avail[data-tone="sold-out"] { color: var(--hnp-color-danger, #a13a2c); }

/*
 * Physical-room availability for the searched window (KVA, hanopalais-availability.js).
 * The words carry the state; the dot / ring beside them is only a second cue.
 * "Unknown" and "checking" are sentences, not labels: sentence case, muted.
 */
.hnps-room__avail[data-hnps-avail-state] {
	line-height: 1.35;
	max-width: 100%;
}
.hnps-room__avail[data-hnps-avail-state]::before {
	content: "";
	display: inline-block;
	vertical-align: 0.1em;
	margin-right: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	box-sizing: border-box;
}
.hnps-room__avail[data-tone="available"] { color: var(--hnp-color-success, #1f6b4a); }
.hnps-room__avail[data-tone="sold-out"][data-hnps-avail-state] { letter-spacing: 0; text-transform: none; }
.hnps-room__avail[data-tone="unknown"],
.hnps-room__avail[data-tone="checking"] {
	color: var(--hnp-color-muted, #4f5b66);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.hnps-room__avail[data-tone="unknown"]::before {
	background: transparent;
	border: 1.5px solid currentColor;
}
.hnps-room__avail[data-tone="checking"]::before {
	width: 9px;
	height: 9px;
	background: transparent;
	border: 2px solid currentColor;
	border-right-color: transparent;
	animation: hnps-avail-spin 0.8s linear infinite;
}
@keyframes hnps-avail-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.hnps-room__avail[data-tone="checking"]::before { animation: none; border-right-color: currentColor; opacity: 0.6; }
}
.hnps-room__avail[hidden],
.hnps-room__avail[data-hnps-avail-state][hidden] { display: none; }

.hnps-room .hnps-room__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; }

.hnps-room__amount {
	font-family: var(--hnp-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--hnp-color-ink);
	font-variant-numeric: tabular-nums;
}

.hnps-room__amount.hnp-card__amount--text { font-size: var(--hnp-text-base); font-family: var(--hnp-font-body); font-weight: 600; color: var(--hnp-color-ink-2); }
.hnps-room__unit { font-size: var(--hnp-text-sm); color: var(--hnps-muted, #4f5b66); }
.hnps-room .hnps-room__pricenote,
.hnps-room .hnps-room__ask { margin: 0; font-size: var(--hnp-text-xs); color: var(--hnps-muted, #4f5b66); }

.hnps-room .hnps-room__cta { margin-top: var(--hnp-space-2); width: 100%; justify-content: center; }
.hnps-room .hnps-room__cta:disabled { background: transparent; color: var(--hnp-color-danger, #a13a2c); border: 1px solid currentColor; opacity: 1; cursor: not-allowed; }
/* FB16-07: coming soon is not sold out — same slot and size, neutral (ink) outline instead of the sold-out red. */
/* FB16-09 N1: the availability line keeps its one-line footprint while the answer is on its way (and if the answer is "nothing to say"). */
.hnps-room .hnps-room__avail[data-hnps-reserve] { min-height: 1.5em; }
.hnps-room .hnps-room__avail[data-hnps-reserve][hidden] { display: block !important; visibility: hidden; } /* beats `.hnps [hidden] { display: none !important }` (hanopalais-site.css) */
.hnps-room .hnps-room__cta--soon:disabled { color: var(--hnp-color-ink-soft, var(--hnp-color-muted, #5b6770)); }
/* KAVAIL16 F-1/F-2: UNKNOWN availability — one line above the (secondary) "Gửi yêu cầu đặt phòng", and the honest headline addition. */
.hnps-room .hnps-room__reqnote { max-width: 100%; min-width: 0; margin: var(--hnp-space-2) 0 0; font-size: var(--hnp-text-xs); line-height: 1.4; color: var(--hnps-muted, #4f5b66); overflow-wrap: anywhere; }
/* FBW2310 T01: a full row by width, not by flex-basis — in a column-direction side (≥ 1100 px) a 100% basis is 100% of the column's
   HEIGHT: the note took the whole column and pushed the price and the button above the card (UNKNOWN state). */
.hnps-room:not(.hnps-result) .hnps-room__reqnote { order: 3; flex: 0 0 auto; width: 100%; }
/* KAVAIL16 R-1: a base card on /dat-phong/ is also .hnps-room, but its side column is a grid (price | CTA, phones) or a
   column / wrapping row (desktop). Its note takes a full row of its own after the CTA (before "Xem đầy đủ bảng giá",
   order 10 on phones), so price and CTA keep their row; the request label may wrap instead of widening the column.
   width (not flex-basis): at 1400+ the side is a wrapping COLUMN, where a 100% basis would start a second column. */
.hnps-room.hnps-result .hnps-room__reqnote { grid-column: 1 / -1; order: 9; flex: 0 0 auto; width: 100%; margin: 0; }
.hnps-room.hnps-result .hnps-result__cta[data-hnps-request-label] { max-width: 100%; white-space: normal; height: auto; text-align: center; }
.hnps-rooms__availsum,
.hnp-results__availsum { font-size: var(--hnp-text-sm); color: var(--hnps-muted, #4f5b66); overflow-wrap: anywhere; }
.hnp-results__availsum { margin: 4px 0 0; }

/* --- widths --- */
@media (min-width: 700px) {
	.hnps-room__body { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
	.hnps-room__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--hnp-space-3) var(--hnp-space-5); }
	.hnps-room .hnps-room__cta { width: auto; margin-top: 0; }
}

@media (min-width: 1024px) {
	.hnps-room { padding: var(--hnp-space-5); }
	.hnps-room__body { grid-template-columns: minmax(0, 32%) minmax(0, 1fr) minmax(190px, 22%); gap: var(--hnp-space-5); }
	/* Centred, not bottom-anchored. With a real room in the card the info
	   column runs taller than the three short lines in this rail, and
	   flex-end left all of that difference as a gap above the price —
	   visible only once there was data to see it with. */
	.hnps-room__side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; padding-top: 0; border-top: 0; border-left: 1px solid var(--hnps-line, rgba(14, 26, 38, 0.12)); padding-left: var(--hnp-space-5); }
	.hnps-room .hnps-room__price { justify-content: flex-end; }
	.hnps-room .hnps-room__cta { margin-top: var(--hnp-space-3); }
}

/* --- on the dark room band the card keeps its light surface --- */
.hnps-rooms .hnps-room { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6); }

/* The booking stylesheet styles some of the leaf hooks this card shares with
   its script (amount, unit, badge, gallery). These repeat the card's own
   rules at a specificity that wins regardless of stylesheet order. */
.hnps-room .hnps-room__amount { font-size: 1.5rem; white-space: normal; color: var(--hnp-color-ink); }
.hnps-room .hnps-room__amount.hnp-card__amount--text { font-size: var(--hnp-text-base); }
.hnps-room .hnps-room__unit { font-size: var(--hnp-text-sm); color: var(--hnps-muted, #4f5b66); }
.hnps-room .hnps-room__badge { position: absolute; top: 10px; right: 10px; left: auto; padding: 4px 10px; border-radius: var(--hnp-radius-pill, 999px); background: #ffffff; color: var(--hnp-color-danger, #a13a2c); font-size: var(--hnp-text-xs); }
.hnps-room .hnps-room__tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--hnp-radius-pill, 999px); background: var(--hnp-color-ink); color: #ffffff; font-size: var(--hnp-text-xs); }
.hnps-room .hnps-room__gallery { position: absolute; left: 0; right: 0; bottom: 8px; top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0; background: none; border-radius: 0; }
.hnps-room .hnps-room__count { min-width: 0; padding: 3px 10px; border-radius: var(--hnp-radius-pill, 999px); background: rgba(14, 26, 38, 0.7); color: #ffffff; font-size: var(--hnp-text-xs); }
.hnps-room .hnps-room__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: rgba(14, 26, 38, 0.25); background: transparent; }
.hnps-room .hnps-room__img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
.hnps-room .hnps-room__where span { padding: 0; border-radius: 0; background: transparent; color: inherit; }
.hnps-room .hnps-room__where .hnp-card__brand { background: transparent !important; color: var(--hnps-muted, #4f5b66) !important; }
.hnps-room .hnps-room__amenities li { padding: 0; border: 0; border-radius: 0; font-size: var(--hnp-text-sm); color: var(--hnp-color-ink-2); }

/* =========================================== PHASE 3 — THE RESULT CARD
   Measured against the live reference at 1440: their card is 940x245, radius
   12, held by a 1px hairline and **no shadow**, with the photograph 35% of
   its width and a 117x40 fully-rounded CTA.

   Ours measured 862x238 — the geometry was already close, which is what the
   baseline meant by "materially matching" — but it carried an 18px shadow at
   35% opacity, a 16px radius, a 150x48 square-cornered button and a 32%
   photograph. A list of shadowed cards reads as a stack of floating panels;
   the reference lets the gap between cards do that work.

   Scoped to the search list. The same card on the property page keeps the
   shadow it was designed with there, on its dark band. */

.hnps-rooms--search .hnps-room,
.hnp-grid .hnps-room {
	box-shadow: none;
	border-radius: 12px;
}

/* The CTA is the reference's pill. The sold-out state keeps the identical
   box so a row of cards does not jog when one is unavailable. */
.hnp-grid .hnps-room .hnps-room__cta,
.hnps-rooms--search .hnps-room .hnps-room__cta {
	/* UX-012: this is the booking CTA on every room card, so it has to be reachable with a thumb. It was 40px,
	   under the 44px minimum, on /dat-phong/ and every Base page (21 buttons measured). */
	min-height: 44px;
	height: 44px;
	border-radius: var(--hnp-radius-pill, 999px);
	padding-inline: var(--hnp-space-5);
	font-size: var(--hnp-text-sm);
}

@media (min-width: 700px) {

	.hnp-grid .hnps-room .hnps-room__cta,
	.hnps-rooms--search .hnps-room .hnps-room__cta { min-width: 117px; width: auto; }
}

/* ========================================= PHASE 3.1 — THE RESULT CARD
   Re-measured against the live reference at all seven required widths, and
   the earlier 35%-of-the-card reading turns out to have described only the
   1440 case. What the reference actually builds is:

     1440   card 940 = photo 330 + text 426 + commerce 182   row
     1280   card 670 = photo 300 + text 258 + commerce 110   row
     1024   card 670 = photo 300 + text 258 + commerce 110   row
      768   card 420 = photo 418x240 over body 418x293       column
      430   card 430 = photo 428x192 over body 428x271       column, full bleed
      390   card 390 = photo 388x192 over body 388x271       column, full bleed
      375   card 375 = photo 373x192 over body 373x292       column, full bleed

   Two structural facts Phase 3 missed. The photograph is *flush*: it runs
   edge to edge and top to bottom of the card, because the card has no
   padding of its own — the padding lives on the text and commerce columns
   (12px/15px each). Ours sat inside 20px of card padding with its own
   radius, which is why it measured 292x188 in a 238-tall card: a picture in
   a frame rather than a face of the card.

   And the card turns at 1024, not at 700: from 768 down the reference
   stacks the photograph over the body full width. Ours stayed a row all the
   way to 768, where the photo had collapsed to a 127x96 thumbnail. */

.hnp-grid .hnps-room,
.hnps-rooms--search .hnps-room {
	padding: 0;
	overflow: hidden;
}

.hnp-grid .hnps-room__body,
.hnps-rooms--search .hnps-room__body {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
}

/* Flush: no radius, no ratio box, the full height of the row. */
.hnp-grid .hnps-room__media,
.hnps-rooms--search .hnps-room__media {
	border-radius: 0;
	height: 192px;
	aspect-ratio: auto;
}

.hnp-grid .hnps-room__info,
.hnps-rooms--search .hnps-room__info,
.hnp-grid .hnps-room__side,
.hnps-rooms--search .hnps-room__side {
	padding: 12px 15px;
}

/* The reference gives the description a fixed 42px box and lets it ellipsis —
   two lines, never three. Ours ran to three, and that single row accounted
   for almost all of the remaining height difference: +22 at 1024 and 1280,
   +23 at 768, +31 on a phone. A list is scanned, and the third line is the
   one nobody reads. */
.hnp-grid .hnps-room__desc,
.hnps-rooms--search .hnps-room__desc {
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

/* Full bleed on a phone: the reference drops the radius rather than carrying
   a rounded card to the screen edge. */
@media (max-width: 767px) {

	/* The radius goes, the hairline stays: the reference's full-bleed card
	   still measures 388 of photograph inside 390 of card. */
	.hnp-grid .hnps-room { border-radius: 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {

	.hnp-grid .hnps-room__media,
	.hnps-rooms--search .hnps-room__media { height: 240px; }
}

@media (min-width: 1024px) {

	/* The reference's card carries a 220px floor, which is why a short entry
	   still reads as a card rather than a strip. Ours measured 211 at 1440
	   with a room that has less to say than one of their branches.

	   The floor goes on the body, not the card: put on the card it grew the
	   card to 220 while the body stayed 209, and the photograph — which is
	   sized by the body's row — stopped short of the card's bottom edge by
	   11px. The reference's photograph is flush with both edges. */
	.hnp-grid .hnps-room__body,
	.hnps-rooms--search .hnps-room__body { min-height: 220px; }

	/* KVA-055: the price column needs room for a 26px price, its eyebrow and the
	   availability line; at 110px (1024–1399, beside the filter rail) the price and the 156px
	   "Chọn phòng" button were
	   clipped at the card edge. The photograph gives way instead. */
	.hnp-grid .hnps-room__body,
	.hnps-rooms--search .hnps-room__body { grid-template-columns: minmax(190px, 32%) minmax(0, 1fr) minmax(190px, 26%); }

	.hnp-grid .hnps-room__media,
	.hnps-rooms--search .hnps-room__media { height: auto; }

	.hnp-grid .hnps-room__side,
	.hnps-rooms--search .hnps-room__side { padding: 12px 15px 16px; }
}

@media (min-width: 1400px) {

	.hnp-grid .hnps-room__body,
	.hnps-rooms--search .hnps-room__body { grid-template-columns: 330px minmax(0, 1fr) minmax(208px, 22%); } /* KVA-063: a 7-digit daily price and its unit on one line */
}

/* =========================================== FB-10 — ROOM CAROUSEL + ROOM DETAIL DIALOG
   One component on every property page (templates/parts/room-card.php,
   public/js/hanopalais-rooms.js). The track is a scroll-snap scroller: native
   swipe on touch; arrows and dots only mirror it. */

.hnps-roomcar { position: absolute; inset: 0; }
.hnps-roomcar__track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	cursor: zoom-in;
	outline: none;
}
.hnps-roomcar__track::-webkit-scrollbar { display: none; }
.hnps-roomcar__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.hnps-roomcar__track:focus-visible { box-shadow: inset 0 0 0 3px var(--hnp-color-accent, #b08968); }
.hnps-roomcar__slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.hnps-room .hnps-roomcar__slide .hnps-room__img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

.hnps-room button.hnps-roomcar__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: -18px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--hnp-color-ink, #0e1a26);
	box-shadow: 0 4px 14px rgba(14, 26, 38, 0.18);
	cursor: pointer;
	opacity: 0;
	transition: opacity .18s ease;
}
.hnps-room button.hnps-roomcar__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hnps-roomcar__nav--prev { left: 10px; }
.hnps-roomcar__nav--next { right: 10px; }
.hnps-roomcar:hover .hnps-roomcar__nav:not(:disabled),
.hnps-roomcar:focus-within .hnps-roomcar__nav:not(:disabled) { opacity: 1; }
.hnps-room button.hnps-roomcar__nav:disabled { opacity: 0 !important; pointer-events: none; }
.hnps-room button.hnps-roomcar__nav:hover,
.hnps-room button.hnps-roomcar__nav:focus { background: #fff; color: var(--hnp-color-ink, #0e1a26); }
.hnps-room button.hnps-roomcar__nav:focus-visible { outline: 2px solid var(--hnp-color-accent, #b08968); outline-offset: 2px; opacity: 1; }
@media (hover: none) { .hnps-room button.hnps-roomcar__nav { display: none; } }

.hnps-roomcar__dots { position: absolute; left: 50%; bottom: 10px; z-index: 2; display: flex; gap: 6px; transform: translateX(-50%); pointer-events: none; }
.hnps-roomcar__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(14, 26, 38, 0.12); transition: background-color .2s ease, transform .2s ease; }
.hnps-roomcar__dot.is-current { background: #fff; transform: scale(1.25); }
.hnps-roomcar__count { position: absolute; right: 10px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgba(14, 26, 38, 0.62); color: #fff; font-size: 0.75rem; font-weight: 600; pointer-events: none; }
.hnps-roomcar__note { position: absolute; left: 10px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgba(14, 26, 38, 0.62); color: #fff; font-size: 0.75rem; pointer-events: none; }

/* FB0611 Task 01 (Owner feedback 06/11, image1 "Helios"): "Xem chi tiết phòng" is a rounded OUTLINE button, no longer an
   underlined link. One look for both forms the card prints: <a> when the room has its own page (navigation) and <button
   data-hnps-room-open> when the detail opens as the room dialog. Secondary to "Chọn phòng" (the filled ink pill): same pill
   shape, warm accent-text outline on the card surface, sentence case, natural width. 44 px touch target; hover tints
   (pointer screens only), press nudges 1 px, keyboard focus gets the site ring; no motion under prefers-reduced-motion.
   :is(a, button) clears the theme's button and .hnp-link rules (underline gradient, uppercase, hover fills). */
.hnps-room :is(a, button).hnps-room__more,
.hnps-room :is(a, button).hnps-room__more:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px 10px 20px;
	border: 1px solid var(--hnp-color-accent-text, #7d5636);
	border-radius: var(--hnp-radius-pill, 999px);
	background: var(--hnp-surface, #fff);
	background-image: none;
	box-shadow: none;
	color: var(--hnp-color-accent-text, #7d5636);
	font-family: inherit;
	font-size: var(--hnp-text-sm, 0.875rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--hnp-dur, 220ms) var(--hnp-ease, ease), border-color var(--hnp-dur, 220ms) var(--hnp-ease, ease), color var(--hnp-dur, 220ms) var(--hnp-ease, ease), transform var(--hnp-dur, 220ms) var(--hnp-ease, ease);
}
.hnps-room .hnps-room__more[hidden] { display: none; }
.hnps-room .hnps-room__more > span[aria-hidden="true"] { display: inline-block; transition: transform var(--hnp-dur, 220ms) var(--hnp-ease, ease); }
@media (hover: hover) {
	.hnps-room :is(a, button).hnps-room__more:hover {
		border-color: var(--hnp-color-ink, #0e1a26);
		background: var(--hnp-color-accent-soft, rgba(176, 137, 104, 0.14));
		color: var(--hnp-color-ink, #0e1a26);
		text-decoration: none;
	}
	.hnps-room .hnps-room__more:hover > span[aria-hidden="true"] { transform: translateX(3px); }
}
.hnps-room :is(a, button).hnps-room__more:active {
	border-color: var(--hnp-color-ink, #0e1a26);
	background: rgba(176, 137, 104, 0.24);
	color: var(--hnp-color-ink, #0e1a26);
	transform: translateY(1px);
}
.hnps-room :is(a, button).hnps-room__more:focus-visible { outline: 2px solid var(--hnp-color-accent, #b08968); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.hnps-room :is(a, button).hnps-room__more,
	.hnps-room .hnps-room__more > span[aria-hidden="true"] { transition: none; }
	.hnps-room :is(a, button).hnps-room__more:active,
	.hnps-room .hnps-room__more:hover > span[aria-hidden="true"] { transform: none; }
}

/* --- the dialog --- */
html.hnps-roommodal-lock, html.hnps-roommodal-lock body { overflow: hidden !important; }
.hnps-roommodal { position: fixed; inset: 0; z-index: 100100; display: grid; place-items: center; padding: 24px; }
.hnps-roommodal[hidden] { display: none !important; }
.hnps-roommodal__backdrop { position: absolute; inset: 0; background: rgba(14, 26, 38, 0.62); }
.hnps-roommodal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1180px, 100%);
	height: min(820px, calc(100vh - 48px));
	height: min(820px, calc(100dvh - 48px));
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	color: var(--hnp-color-text, #1b232c);
	box-shadow: 0 40px 90px -30px rgba(14, 26, 38, 0.6);
	outline: none;
	font-family: var(--hnp-font-body, 'Open Sans', system-ui, sans-serif);
}
.hnps-roommodal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid rgba(14, 26, 38, 0.08); }
.hnps-roommodal .hnps-roommodal__title { margin: 0; font-family: var(--hnp-font-display, 'Quicksand', sans-serif); font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 700; color: var(--hnp-color-ink, #0e1a26); line-height: 1.25; }
.hnps-roommodal button.hnps-roommodal__close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f2efe9; color: var(--hnp-color-ink, #0e1a26); cursor: pointer; }
.hnps-roommodal button.hnps-roommodal__close:hover,
.hnps-roommodal button.hnps-roommodal__close:focus { background: #e7e1d6; color: var(--hnp-color-ink, #0e1a26); }
.hnps-roommodal button.hnps-roommodal__close:focus-visible { outline: 2px solid var(--hnp-color-accent, #b08968); outline-offset: 2px; }
.hnps-roommodal__close svg, .hnps-roommodal__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hnps-roommodal__body { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(320px, 1fr); min-height: 0; flex: 1 1 auto; }
.hnps-roommodal--nogallery .hnps-roommodal__body { grid-template-columns: 1fr; }
.hnps-roommodal--nogallery .hnps-roommodal__gallery { display: none; }

.hnps-roommodal__gallery { display: flex; flex-direction: column; min-height: 0; background: #0e1a26; }
.hnps-roommodal__stage { position: relative; flex: 1 1 auto; min-height: 280px; }
.hnps-roommodal__track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.hnps-roommodal__track::-webkit-scrollbar { display: none; }
.hnps-roommodal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.hnps-roommodal__slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.hnps-roommodal button.hnps-roommodal__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--hnp-color-ink, #0e1a26); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); cursor: pointer; }
.hnps-roommodal button.hnps-roommodal__nav:hover,
.hnps-roommodal button.hnps-roommodal__nav:focus { background: #fff; color: var(--hnp-color-ink, #0e1a26); }
.hnps-roommodal button.hnps-roommodal__nav:disabled { opacity: .35; cursor: default; }
.hnps-roommodal button.hnps-roommodal__nav:focus-visible { outline: 2px solid var(--hnp-color-gold, #d1b286); outline-offset: 2px; }
.hnps-roommodal__nav--prev { left: 14px; }
.hnps-roommodal__nav--next { right: 14px; }
.hnps-roommodal--single .hnps-roommodal__nav, .hnps-roommodal--single .hnps-roommodal__thumbs { display: none; }
.hnps-roommodal__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 28px 18px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; font-size: 0.875rem; pointer-events: none; }
.hnps-roommodal__counter { margin-left: auto; font-weight: 700; font-size: 1rem; letter-spacing: .04em; }
.hnps-roommodal__thumbs { display: flex; gap: 10px; padding: 12px 14px; overflow-x: auto; scrollbar-width: thin; }
.hnps-roommodal button.hnps-roommodal__thumb { flex: 0 0 auto; width: 112px; height: 76px; margin: 0; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #24313d; opacity: .6; cursor: pointer; transition: opacity .15s ease, border-color .15s ease; }
.hnps-roommodal button.hnps-roommodal__thumb:hover,
.hnps-roommodal button.hnps-roommodal__thumb:focus { opacity: 1; background: #24313d; }
.hnps-roommodal button.hnps-roommodal__thumb.is-current { opacity: 1; border-color: var(--hnp-color-gold, #d1b286); }
.hnps-roommodal button.hnps-roommodal__thumb:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.hnps-roommodal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hnps-roommodal__info { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 22px 24px 0; }
.hnps-roommodal__logo { display: block; max-width: 180px; max-height: 44px; object-fit: contain; object-position: left center; margin-bottom: 12px; }
.hnps-roommodal__property { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hnp-color-accent-text, #7d5636); }
.hnps-roommodal__desc { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.6; color: var(--hnp-color-ink-2, #24313d); }
.hnps-roommodal__block { padding: 16px 0; border-top: 1px solid rgba(14, 26, 38, 0.08); }
.hnps-roommodal .hnps-roommodal__blocktitle { margin: 0 0 10px; font-family: var(--hnp-font-display, 'Quicksand', sans-serif); font-size: 1rem; font-weight: 700; color: var(--hnp-color-ink, #0e1a26); }
.hnps-roommodal__facts, .hnps-roommodal__amenities, .hnps-roommodal__notes, .hnps-roommodal__stay { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hnps-roommodal__amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hnps-roommodal__facts li, .hnps-roommodal__amenities li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.hnps-roommodal__facts .hnp-icon, .hnps-roommodal__amenities .hnp-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--hnp-color-accent-text, #7d5636); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }


.hnps-roommodal__notes li { font-size: 0.9375rem; color: var(--hnp-color-ink-2, #24313d); }
.hnps-roommodal__foot { position: sticky; bottom: 0; margin: auto -24px 0; padding: 16px 24px 20px; background: #fff; border-top: 1px solid rgba(14, 26, 38, 0.1); box-shadow: 0 -12px 24px -20px rgba(14, 26, 38, 0.35); display: grid; gap: 10px; }
.hnps-roommodal__foot .hnps-price { margin: 0; }
.hnps-roommodal__foot .hnps-room__amount { font-size: 1.5rem; font-weight: 700; color: var(--hnp-color-ink, #0e1a26); }
.hnps-roommodal__foot .hnp-card__amount--text { font-size: 1rem; }
.hnps-roommodal__foot .hnps-room__price, .hnps-roommodal__foot .hnps-room__pricenote, .hnps-roommodal__foot .hnps-room__avail { margin: 0; }
.hnps-roommodal .hnps-roommodal__cta { width: 100%; min-height: 50px; justify-content: center; border-radius: 999px; }

@media (max-width: 899px) {
	.hnps-roommodal { padding: 0; place-items: stretch; }
	.hnps-roommodal__dialog { width: 100%; max-height: none; height: 100%; border-radius: 0; }
	.hnps-roommodal__body { grid-template-columns: 1fr; overflow-y: auto; display: block; }
	.hnps-roommodal__gallery { position: relative; }
	.hnps-roommodal__stage { min-height: 0; aspect-ratio: 4 / 3; }
	.hnps-roommodal__slide img { object-fit: cover; }
	.hnps-roommodal button.hnps-roommodal__nav { display: none; }
	.hnps-roommodal__thumbs { padding: 8px 12px; }
	.hnps-roommodal button.hnps-roommodal__thumb { width: 72px; height: 52px; }
	.hnps-roommodal__info { overflow: visible; padding: 18px 16px 0; }
	.hnps-roommodal__foot { margin: 16px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
	.hnps-roommodal__amenities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.hnps-roomcar__track, .hnps-roommodal__track { scroll-behavior: auto; }
}

/* CFB-010 — tariff labels printed next to a quoted price (hanopalais-tariffs.js). */
.hnps-tariff-tags { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.hnps-tariff-tags li { margin: 0; padding: 2px 8px; border: 1px solid var(--hnps-line, #e4ddd0); border-radius: 999px; font-size: 12px; line-height: 1.5; letter-spacing: .01em; color: var(--hnps-muted, #5f5a52); background: #fff; white-space: nowrap; }
.hnps-tariff-tags li.is-stay { color: #1f3a2e; border-color: #c9d8cf; background: #eef4f0; }
.hnps-tariff-tags li.is-combo { color: #7a4b12; border-color: #ead3ae; background: #fbf3e5; }
.hnps-tariff-tags li.is-best { color: #fff; border-color: #1f3a2e; background: #1f3a2e; }
.hnps-result__from { font-size: 12px; }

/* ==========================================================================
   CFB-009 — "Phải có nút bấm chuyển tiếp, quay lại của ảnh": previous/next
   controls are always visible, on every width and on touch screens. Swipe and
   arrow keys keep working; a control at the first/last photo is dimmed, not hidden.
   ========================================================================== */
.hnps-room .hnps-roomcar button.hnps-roomcar__nav { display: grid; opacity: 1; width: 40px; height: 40px; margin-top: -20px; }
.hnps-room .hnps-roomcar button.hnps-roomcar__nav:disabled { opacity: 0.4 !important; pointer-events: none; }
@media (hover: none) { .hnps-room .hnps-roomcar button.hnps-roomcar__nav { display: grid; } }
@media (max-width: 767px) {
	.hnps-roommodal .hnps-roommodal__gallery button.hnps-roommodal__nav { display: grid; width: 40px; height: 40px; margin-top: -20px; }
	.hnps-roommodal__nav--prev { left: 10px; }
	.hnps-roommodal__nav--next { right: 10px; }
}

/* NFB2-004 (2026-09-18): the result card's cover is an anchor to the base. It
   fills the media box so the whole photograph is the target; the tag and the
   "Sắp khai trương" badge sit above it and let the click through. */
.hnps-result .hnps-result__medialink { position: absolute; inset: 0; display: block; border-radius: inherit; overflow: hidden; }
.hnps-result .hnps-result__medialink .hnps-room__img { transition: transform 0.5s ease; object-position: left center; } /* The facade cover carries the Base label on its left edge: keep it in frame when the column narrows (KVA-055). */
.hnps-result .hnps-result__medialink:hover .hnps-room__img { transform: scale(1.03); }
.hnps-result .hnps-result__medialink:focus-visible { outline: 2px solid var(--hnp-color-accent, #7d5636); outline-offset: -3px; }
.hnps-result .hnps-room__media > .hnps-room__tag,
.hnps-result .hnps-room__media > .hnps-room__badge { pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hnps-result .hnps-result__medialink .hnps-room__img { transition: none; } }

/* NFB2-005: "Xem trước" sits where an open base has "Chọn phòng". */
.hnps-result .hnps-result__cta--preview { margin-top: 8px; }

/* ============================================ KVB-093 — ROOM CARD ORDER
   The name now heads the facts column on every card (photograph → name +
   facts → price and decision), so it inherits that column's padding in the
   flush layout instead of sitting on the card's top edge. */
.hnps-room .hnps-room__info > .hnps-room__name { margin: 0 0 var(--hnp-space-3); }
@media (min-width: 1024px) {
	.hnps-rooms--search .hnps-room__info,
	.hnp-grid .hnps-room__info { padding-top: 16px; }
}

/* A room without a photograph yet: a quiet, honest note instead of a large initial. */
.hnps-room .hnps-room__placeholder--pending {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	font-family: var(--hnp-font-body, inherit);
	font-size: var(--hnp-text-sm);
	font-weight: 600;
	text-align: center;
	color: var(--hnps-muted, #4f5b66);
}
.hnps-room .hnps-room__placeholder--pending .hnp-icon { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; opacity: 0.7; }

/* The "from" note under the price wraps as a balanced pair of lines, never one orphaned word. */
.hnps-room .hnps-room__pricenote { text-wrap: balance; }
/* QM-UI: the same for the coming-soon line ("Giá sẽ công bố khi mở bán") and the search card's "Giá từ…" label, which left "bán" / "chọn" alone on a line. */
.hnps-room .hnps-room__amount.hnp-card__amount--text,
.hnps-result__from { text-wrap: balance; }

/* ULT-088 (Owner feedback #11, M Village reference): the middle zone reads top-down — chips, name, one-line address,
   "PHÙ HỢP" with checks, amenity pills with icons (+N), a two-line description. Desktop keeps the 3 zones
   (image | info | price + CTA); phones stack them (see the base card rules). */
.hnps-result .hnps-room__address { overflow: hidden; }
.hnps-result .hnps-room__address span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnps-result .hnps-room__suitable { gap: 4px 10px; }
.hnps-result .hnps-room__suitable-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hnps-accent-text, #7d5636); }
.hnps-result .hnps-room__suitable-list { gap: 4px 12px; }
.hnps-result .hnps-room__suitable-list li { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; font-size: var(--hnp-text-xs); color: var(--hnp-color-ink-2); }
.hnps-result .hnps-room__suitable-list li.hnps-room__suitable-more { padding: 1px 8px; border-radius: 999px; background: var(--hnp-color-sand); }
.hnps-result__check { width: 13px; height: 13px; flex: 0 0 13px; color: #2f7d4f; }
.hnps-result .hnps-result__amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.hnps-result .hnps-result__amenities li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--hnps-line); border-radius: 999px; background: #fff; font-size: var(--hnp-text-xs); line-height: 1.2; color: var(--hnp-color-ink-2); }
.hnps-result .hnps-result__amenities li.hnps-result__amenmore { font-weight: 700; background: var(--hnp-color-sand); border-color: transparent; }
.hnps-result .hnps-result__amenities .hnp-icon, .hnps-result .hnps-result__amenities svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--hnps-accent-text, #7d5636); }
.hnps-result .hnps-room__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* ULT-089: room card middle zone — rooms/floors fact, stay types and the base's amenities (chips shared with the
   property result card) fill the column between photo and decision. */
.hnps-room__roomsfact { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; font-size: var(--hnp-text-sm); color: var(--hnp-color-ink-2); }
.hnps-room__roomsfact .hnp-icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--hnps-accent-text, #7d5636); }
.hnps-room__baseamen { margin: 8px 0 6px; }
.hnps-room__baseamen-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hnps-muted); }
.hnps-room__baseamen .hnps-result__amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hnps-room__baseamen .hnps-result__amenities li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--hnps-line); border-radius: 999px; background: #fff; font-size: var(--hnp-text-xs); line-height: 1.2; color: var(--hnp-color-ink-2); }
.hnps-room__baseamen .hnps-result__amenities svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--hnps-accent-text, #7d5636); }

/* =========================================== OFB27 §27–§33 — THE OWNER'S SEVEN PACKAGE PRICES
   templates/parts/price-packages.php. A compact 2-column grid in the card's decision column: the label on the
   left, the price on the right, every package a real button (>= 44px). "Xem đầy đủ bảng giá" opens the weekday +
   weekend table in place. No horizontal scroll at 375px: the grid is fluid, labels wrap, prices never do. */
.hnps-pkgs { width: 100%; margin: 2px 0 0; text-align: left; }
.hnps-pkgs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 0 0 6px; font-size: var(--hnp-text-xs); line-height: 1.3; }
.hnps-pkgs__title { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hnp-color-ink); }
.hnps-pkgs__day { color: var(--hnp-color-ink-soft, rgba(14, 26, 38, .66)); }
.hnps-pkgs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hnps-pkgs__item { margin: 0; min-width: 0; }
.hnps-pkg { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; width: 100%; min-height: 44px; margin: 0; padding: 6px 10px; border: 1px solid var(--hnps-line, rgba(14, 26, 38, .14)); border-radius: 10px; background: var(--hnp-color-surface, #fff); color: var(--hnp-color-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.hnps-pkg:hover { border-color: var(--hnp-color-accent, #b08a4a); }
.hnps-pkg:focus-visible { outline: 2px solid var(--hnp-color-accent, #b08a4a); outline-offset: 2px; }
.hnps-pkg.is-active { border-color: var(--hnp-color-ink); box-shadow: inset 0 0 0 1px var(--hnp-color-ink); background: var(--hnp-color-sand, #f6f1e8); }
.hnps-pkg[disabled] { cursor: default; opacity: .6; }
.hnps-pkg__label { font-size: var(--hnp-text-xs); line-height: 1.25; color: var(--hnp-color-ink-soft, rgba(14, 26, 38, .72)); overflow-wrap: anywhere; }
.hnps-pkg__price { font-size: var(--hnp-text-sm); font-weight: 700; line-height: 1.25; white-space: nowrap; color: var(--hnp-color-ink); }
.hnps-pkg__note { font-size: 11px; line-height: 1.2; color: var(--hnp-color-accent-text, #7a5b25); }
.hnps-pkgs__more { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--hnp-color-accent-text, #7a5b25); font: inherit; font-size: var(--hnp-text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hnps-pkgs__more:focus-visible { outline: 2px solid var(--hnp-color-accent, #b08a4a); outline-offset: 2px; }
.hnps-pkgs__table { width: 100%; border-collapse: collapse; font-size: var(--hnp-text-xs); }
.hnps-pkgs__table th, .hnps-pkgs__table td { padding: 6px 4px; border-bottom: 1px solid var(--hnps-line, rgba(14, 26, 38, .1)); text-align: left; vertical-align: top; }
.hnps-pkgs__table td { text-align: right; white-space: nowrap; font-weight: 600; }
.hnps-pkgs__table thead th { font-weight: 700; color: var(--hnp-color-ink-soft, rgba(14, 26, 38, .66)); }
.hnps-pkgs__table thead th:not(:first-child) { text-align: right; }
.hnps-pkgs__fine { margin: 6px 0 0; font-size: 11px; line-height: 1.4; color: var(--hnp-color-ink-soft, rgba(14, 26, 38, .66)); }
@media (min-width: 1024px) {
	/* The decision column is right-aligned on desktop; the grid reads left-to-right inside it. */
	.hnps-room__side .hnps-pkgs { max-width: 300px; }
	.hnp-grid .hnps-room__body, .hnps-rooms--search .hnps-room__body { grid-template-columns: minmax(0, 30%) minmax(0, 1fr) minmax(230px, 26%); }
}

/* OFB27: the theme's global button style (uppercase + tracking) must not turn "320.000đ" into "320.000Đ". */
.hnps-pkg, .hnps-pkg__label, .hnps-pkg__price, .hnps-pkg__note, .hnps-pkgs__more, .hnps-results-error .hnp-btn { text-transform: none; letter-spacing: normal; }
.hnps-pkg { font-weight: 400; line-height: 1.25; }
.hnps-pkgs__more { font-weight: 600; }

/* =========================================== RFA-FINAL §67–§72 ROOM AMENITY ICON GRID
   Boxed cells: icon (decorative) + label (always visible). Card: 2 columns (fits every card width, incl. 375px);
   dialog: 2 → 3 columns. Labels wrap; nothing overflows. */
.hnps-room .hnps-room__amenities.hnps-amen-grid,
.hnps-roommodal__amenities.hnps-amen-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 var(--hnp-space-3, 12px);
	padding: 0;
	list-style: none;
}
.hnps-amen-grid .hnps-amen {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	min-width: 0;
	padding: 7px 10px;
	border: 1px solid var(--hnp-color-border, rgba(14, 26, 38, .12));
	border-radius: 10px;
	background: #fbf9f5;
	font-size: .84rem;
	line-height: 1.3;
	color: var(--hnp-color-ink-2, #24313d);
}
.hnps-amen-grid .hnps-amen__icon,
.hnps-amen-grid .hnps-amen .hnp-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--hnp-color-accent-text, #7d5636);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.hnps-amen-grid .hnps-amen__label,
.hnps-amen-grid .hnps-amen > span { min-width: 0; overflow-wrap: anywhere; }
.hnps-amen-grid .hnps-amen--more { justify-content: center; border-style: dashed; background: transparent; color: var(--hnps-muted, #4f5b66); font-weight: 600; }
@media (min-width: 768px) {
	.hnps-roommodal__amenities.hnps-amen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hnps-room .hnps-room__amenities.hnps-amen-grid li.hnps-amen { padding: 7px 10px; border: 1px solid var(--hnp-color-border, rgba(14, 26, 38, .12)); border-radius: 10px; font-size: .84rem; }
.hnps-room .hnps-room__amenities.hnps-amen-grid li.hnps-amen--more { border-style: dashed; }

/* ================================================================ OFV2 (Owner DOCX 2026-10-01)
   Room card = summary, popups = detail. Built only from the design tokens (hanopalais-ui.css :root) so the card,
   badges, buttons and both popups share one radius / border / surface / shadow scale.
   Scope: #chon-phong = the property page's room list (ID beats the search-listing grid rules in hnp-booking.css). */

/* ---- card frame + fixed geometry (OFV2-018; FBW2310 T01 re-layout, Owner image1 "Helios") ----
   Before: three stretched columns. The decision column (status, tags, total, a multi-part stay breakdown wrapping in 232 px, the
   price-table link, two buttons) set the card height (630 px at 1440 for a sold-out long stay); the facts column stretched with it
   and pushed "Xem chi tiết phòng" (margin-top: auto) 345 px below the facts; the photo stayed a 240 px block at the top. Now:
   - only the decision column's divider stretches; "Xem chi tiết phòng" follows the facts;
   - the decision column is two groups (room-card.php): the price (__deal) and the actions (__act, at the bottom of the column);
   - a multi-part breakdown folds behind "Chi tiết giá" (<details>, no script); the total, its "Tổng … · dates" line, the
     "priced as" note and the switch link stay in view; amounts and wording are unchanged;
   - a sold-out card's disabled button is a neutral grey slab (never a red outline that reads as a button); "Báo tôi khi có
     phòng" sits under it at the same width. */
#chon-phong .hnps-room {
	padding: var(--hnp-card-pad);
	border: var(--hnp-border-subtle);
	border-radius: var(--hnp-radius-large);
	background: var(--hnp-surface);
	box-shadow: var(--hnp-shadow-card);
}
#chon-phong .hnps-room__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hnp-space-4);
	align-items: start;
}
#chon-phong .hnps-room__media {
	aspect-ratio: 4 / 3;
	height: auto;
	border-radius: var(--hnp-radius-medium);
}
#chon-phong .hnps-room__info { display: flex; flex-direction: column; min-width: 0; }
#chon-phong .hnps-room .hnps-room__name { margin: 0 0 var(--hnp-space-2); font: var(--hnp-type-h3); letter-spacing: -0.01em; }
#chon-phong .hnps-room__specs { margin: 0 0 var(--hnp-space-2); gap: 6px 16px; }
#chon-phong .hnps-room__roomsfact { margin: 0 0 var(--hnp-space-3); font: var(--hnp-type-meta); color: var(--hnp-color-muted); }
#chon-phong .hnps-room .hnps-room__desc { -webkit-line-clamp: 2; margin-bottom: var(--hnp-space-3); }
#chon-phong .hnps-room .hnps-room__window { display: none; } /* OFV2-019 */
#chon-phong .hnps-room .hnps-room__more { margin-top: 0; align-self: flex-start; min-height: 44px; }

/* decision: the status line, the price group, the actions */
#chon-phong .hnps-room__side {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--hnp-space-3);
	padding: var(--hnp-space-4) 0 0;
	border-top: var(--hnp-border-subtle);
	border-left: 0;
	text-align: left;
}
#chon-phong .hnps-room__deal { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hnp-space-1); min-width: 0; }
#chon-phong .hnps-room__deal > .hnps-tariff-tags { margin: 0 0 2px; }
#chon-phong .hnps-room__deal > .hnps-price { width: 100%; }
#chon-phong .hnps-room__side .hnps-room__price { justify-content: flex-start; }
/* T-0768 J-02: "Tổng 1 đêm · 21:00 25/10 – 09:00 26/10" wraps into even lines, never a lone date on the last one */
#chon-phong .hnps-room__deal .hnps-room__unit { text-wrap: balance; }
#chon-phong .hnps-room__deal:not(:has(.hnps-pricefold[open])) .hnps-pricebreak { display: none; }
#chon-phong .hnps-room__deal:not(:has(.hnps-pricebreak)) .hnps-pricefold { display: none; }
#chon-phong .hnps-room__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--hnp-space-4); }
#chon-phong .hnps-room__links .hnps-room__prices { min-height: 44px; justify-content: flex-start; }
#chon-phong .hnps-room__deal .hnps-price__policy { margin-bottom: 0; } /* the theme gave this <p> a 19 px bottom margin */
#chon-phong .hnps-pricefold__toggle {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
	font-size: var(--hnp-text-sm);
	font-weight: 600;
	color: var(--hnp-color-accent-text, #7d5636);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
#chon-phong .hnps-pricefold__toggle::-webkit-details-marker { display: none; }
#chon-phong .hnps-pricefold__toggle::after { content: "\25BE"; display: inline-block; margin-left: 4px; text-decoration: none; }
#chon-phong .hnps-pricefold[open] .hnps-pricefold__toggle::after { content: "\25B4"; }
#chon-phong .hnps-pricefold__toggle:hover { color: var(--hnp-color-ink, #0e1a26); }

#chon-phong .hnps-room__act { display: flex; flex-direction: column; align-items: stretch; gap: var(--hnp-space-2); min-width: 0; }
#chon-phong .hnps-room .hnps-room__act > .hnps-room__cta { width: 100%; margin: 0; border-radius: var(--hnp-radius-pill); }
/* T-0768 F-2: a long label ("Không đủ chỗ cho 6 khách", "Gửi yêu cầu đặt phòng") wraps inside the rail instead of widening it past the
   card edge (the theme button is white-space: nowrap with a fixed height). */
#chon-phong .hnps-room .hnps-room__act > :is(.hnps-room__cta, .hnps-waitlist) { min-width: 0; max-width: 100%; }
#chon-phong .hnps-room .hnps-room__act > .hnps-room__cta { height: auto; white-space: normal; line-height: 1.25; text-align: center; }
#chon-phong .hnps-room__act > .hnps-room__reqnote { order: 0; margin: 0; }
#chon-phong .hnps-room__act > .hnps-waitlist { margin: 0; }
#chon-phong .hnps-room__act .hnps-waitlist__open { width: 100%; margin: 0; border-radius: var(--hnp-radius-pill); }
/* Sold out — and (T-0768, C06 F-2) no_fit, "Không đủ chỗ cho N khách": not a button any more — a neutral slab with the same words;
   the status line above says it. Keyed here for both states, so no inline style is needed (hanopalais-availability.js T01b). */
#chon-phong .hnps-room:is([data-hnps-avail="sold_out"], [data-hnps-avail="no_fit"]) .hnps-room__cta:disabled,
#chon-phong .hnps-room[data-sold-out="true"] .hnps-room__cta:disabled {
	min-height: 40px;
	border: 0;
	background: var(--hnp-surface-muted, #f3f0ea);
	box-shadow: none;
	color: var(--hnp-color-muted, #4f5b66);
	cursor: not-allowed;
}
/* T-0953: with "Báo tôi khi có phòng" on the card, that button takes the action slot and the status line says "Hết phòng", so a sold card is about
   as tall as an available one. Without a waitlist the slab above stays. The note under the card keeps clear of the buttons and stays small. */
#chon-phong .hnps-room .hnps-room__act:has(> .hnps-waitlist) > .hnps-room__cta:disabled { display: none; }
#chon-phong .hnps-room > .hnps-fallback { margin-top: var(--hnp-space-3, 12px); padding: 8px 12px; font-size: 0.875rem; line-height: 1.4; }
#chon-phong .hnps-room > .hnps-fallback > .hnps-fallback__title:only-child { margin: 0; }
/* Every room of the Base is sold: the banner above the list already says it once, so the same no-alternatives note is not repeated on each card. A note with a link stays. */
#chon-phong .hnps-rooms__list.is-all-sold-out .hnps-room > .hnps-fallback:not(:has(a)) { display: none; }

@media (min-width: 700px) {
	/* photograph | facts, the decision underneath as one row: price group left, actions right (bottom-aligned). */
	#chon-phong .hnps-room__body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
	#chon-phong .hnps-room__side {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
		align-items: end;
		gap: var(--hnp-space-2) var(--hnp-space-5);
	}
	#chon-phong .hnps-room__side > * { grid-column: 1 / -1; }
	#chon-phong .hnps-room__side > .hnps-room__deal { grid-column: 1; }
	#chon-phong .hnps-room__side > .hnps-room__act { grid-column: 2; }
}
@media (min-width: 1100px) {
	/* photograph | facts | decision. 284 px: a "2 ngày T6–CN × 700.000đ  1.400.000đ" row stays on one line. Only the decision
	   column stretches: its divider runs the card's height, the price sits at its top and the actions at its bottom. */
	#chon-phong .hnps-room__body { grid-template-columns: 320px minmax(0, 1fr) 284px; gap: var(--hnp-space-5); }
	#chon-phong .hnps-room__side {
		grid-column: auto;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--hnp-space-3);
		padding: 0 0 0 var(--hnp-space-5);
		border-top: 0;
		border-left: var(--hnp-border-subtle);
		text-align: right;
	}
	#chon-phong .hnps-room__deal { align-items: flex-end; }
	#chon-phong .hnps-room__deal > .hnps-tariff-tags { justify-content: flex-end; }
	#chon-phong .hnps-room__side .hnps-room__price { justify-content: flex-end; }
	#chon-phong .hnps-room__links { justify-content: flex-end; }
	#chon-phong .hnps-room__act { margin-top: auto; }
	/* pointer screens: the two links take 32 px rows (target ≥ 24 px, WCAG 2.5.8) instead of two 44 px rows */
	#chon-phong .hnps-room__links :is(.hnps-pricefold__toggle, .hnps-room__prices) { min-height: 32px; }
	/* opened breakdown: one line per row in the 264 px column (label never wraps; 13 px, 8 px gap) */
	#chon-phong .hnps-room__deal .hnps-pricebreak { font-size: 0.8125rem; }
	#chon-phong .hnps-room__deal .hnps-pricebreak li { gap: 8px; }
	#chon-phong .hnps-room__deal .hnps-pricebreak__label { white-space: nowrap; }
}

/* ---- highlight badges / amenity pills (OFV2-023: bordered pills with icon, from the amenity data) ---- */
.hnps-room .hnps-room__amenities.hnps-amen-grid.hnps-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 var(--hnp-space-3);
}
.hnps-room .hnps-room__amenities.hnps-badges li.hnps-amen {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: var(--hnp-badge-h);
	padding: 4px 12px;
	border: var(--hnp-border-subtle);
	border-radius: var(--hnp-radius-pill);
	background: var(--hnp-surface-badge);
	font-size: 0.8125rem;
	line-height: 1.2;
	white-space: nowrap;
}
.hnps-room .hnps-room__amenities.hnps-badges .hnps-amen__icon,
.hnps-room .hnps-room__amenities.hnps-badges .hnp-icon { width: 16px; height: 16px; }
.hnps-room .hnps-room__amenities.hnps-badges li.hnps-amen--more { border-style: solid; background: var(--hnp-color-sand); color: var(--hnp-color-ink-2); }

/* ---- availability: "Chỉ còn N phòng" (1–3) / "Còn phòng" (>3), sentence case ---- */
.hnps-room .hnps-room__avail { text-transform: none; letter-spacing: 0; font-size: var(--hnp-text-sm); font-weight: 600; }

/* ---- the one "Xem đầy đủ bảng giá" control ---- */
.hnps-room__prices.hnps-pkgs__more { min-height: 44px; margin: 0; }

/* ---- price popup (OFV2-021) ---- */
.hnps-pricemodal { position: fixed; inset: 0; z-index: 100200; display: grid; place-items: center; padding: 24px; }
.hnps-pricemodal[hidden] { display: none; }
.hnps-pricemodal__backdrop { position: absolute; inset: 0; background: var(--hnp-modal-backdrop); }
.hnps-pricemodal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	max-height: min(86vh, 760px);
	overflow: hidden;
	border-radius: var(--hnp-radius-large);
	background: var(--hnp-surface);
	box-shadow: var(--hnp-shadow-modal);
	color: var(--hnp-color-ink);
	font-family: var(--hnp-font-body);
}
.hnps-pricemodal__dialog:focus { outline: none; }
.hnps-pricemodal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 14px 24px; border-bottom: var(--hnp-border-subtle); }
.hnps-pricemodal__eyebrow { margin: 0 0 4px; font-size: var(--hnp-text-xs); font-weight: 600; letter-spacing: var(--hnp-tracking-caps); text-transform: uppercase; color: var(--hnp-color-accent-text); }
.hnps-pricemodal .hnps-pricemodal__title { margin: 0; font: var(--hnp-type-h3); color: var(--hnp-color-ink); }
.hnps-pricemodal__sub { margin: 6px 0 0; font: var(--hnp-type-meta); color: var(--hnp-color-muted); }
.hnps-pricemodal button.hnps-pricemodal__close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--hnp-surface-muted); color: var(--hnp-color-ink); cursor: pointer; }
.hnps-pricemodal button.hnps-pricemodal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hnps-pricemodal button.hnps-pricemodal__close:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 2px; }
.hnps-pricemodal__body { padding: 8px 24px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.hnps-pkgs--modal .hnps-pkgs__head { display: none; }
.hnps-pkgs--modal table.hnps-pkgs__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: var(--hnp-text-sm); }
.hnps-pkgs--modal table.hnps-pkgs__table :is(th, td) { border-width: 0 0 1px; border-style: solid; border-color: rgba(14, 26, 38, 0.10); background: transparent; }
.hnps-pkgs--modal table.hnps-pkgs__table tbody th { padding-block: 4px; }
.hnps-pkgs--modal button.hnps-pkgs__pick { font-size: var(--hnp-text-sm); }
.hnps-pkgs--modal .hnps-pkgs__table th,
.hnps-pkgs--modal .hnps-pkgs__table td { padding: 10px 8px; border-bottom: var(--hnp-border-subtle); vertical-align: middle; }
.hnps-pkgs--modal .hnps-pkgs__table td { font-variant-numeric: tabular-nums; font-weight: 600; }
.hnps-pkgs--modal .hnps-pkgs__table thead th { padding-top: 14px; font-size: var(--hnp-text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hnp-color-muted); }
.hnps-pkgs--modal .hnps-pkgs__table thead th.is-day { color: var(--hnp-color-accent-text); }
.hnps-pkgs--modal .hnps-pkgs__table tr.is-active { background: var(--hnp-color-accent-soft); }
.hnps-pkgs--modal button.hnps-pkgs__pick {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	width: 100%; min-height: 44px; margin: 0; padding: 4px 8px 4px 0;
	border: 0; border-radius: var(--hnp-radius-small); background: none;
	color: var(--hnp-color-ink); font: inherit; font-weight: 600; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.hnps-pkgs--modal button.hnps-pkgs__pick:hover { background: none; color: var(--hnp-color-ink); }
.hnps-pkgs--modal button.hnps-pkgs__pick:hover .hnps-pkg__label { text-decoration: underline; text-underline-offset: 3px; }
.hnps-pkgs--modal button.hnps-pkgs__pick:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 2px; }
.hnps-pkgs--modal button.hnps-pkgs__pick:disabled { color: var(--hnp-color-muted); cursor: default; }
.hnps-pkgs--modal .hnps-pkg__note { font-size: var(--hnp-text-xs); font-weight: 400; color: var(--hnp-color-muted); }
.hnps-pkgs--modal .hnps-pkgs__fine { margin-top: 14px; font-size: var(--hnp-text-xs); line-height: 1.55; }
@media (max-width: 599px) {
	/* A bottom sheet on phones: full width, thumb-reachable close, the table scrolls inside. */
	.hnps-pricemodal { place-items: end center; padding: 0; }
	.hnps-pricemodal__dialog { width: 100%; max-height: 88vh; border-radius: var(--hnp-radius-large) var(--hnp-radius-large) 0 0; }
	.hnps-pricemodal__head { padding: 16px 16px 12px 20px; }
	.hnps-pricemodal__body { padding: 4px 16px calc(20px + env(safe-area-inset-bottom)); }
}

/* ---- room popup: same tokens; price block = one price + the popup link, never a second grid ---- */
.hnps-roommodal__dialog { border-radius: var(--hnp-radius-large); }
.hnps-roommodal__foot .hnps-pkgs { display: none; }
.hnps-roommodal .hnps-roommodal__cta { border-radius: var(--hnp-radius-pill); }

/* ---- /dat-phong/ property card: highlight pills (OFV2-023, Owner DOCX p.10–11) + one price link ---- */
.hnps-result ul.hnps-result__amenities > li.hnps-room__amenity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: var(--hnp-badge-h);
	padding: 4px 12px;
	border: var(--hnp-border-strong);
	border-radius: var(--hnp-radius-pill);
	background: var(--hnp-surface-badge);
	font-size: 0.8125rem;
	line-height: 1.2;
	color: var(--hnp-color-ink-2);
}
.hnps-result ul.hnps-result__amenities > li.hnps-result__amenmore { border-color: transparent; background: var(--hnp-color-sand); font-weight: 600; }
.hnps-result ul.hnps-result__amenities svg { width: 16px; height: 16px; flex: 0 0 16px; }
.hnps-result .hnps-result__prices { min-height: 44px; margin: 0; }
@media (max-width: 767px) {
	/* Phone: price and CTA keep their one row (hnp-booking.css); the price link takes its own row underneath, left-aligned
	   — never at the right edge under the floating chat button. */
	.hnp-grid .hnps-result .hnps-result__prices,
	.hnps-result .hnps-result__prices { grid-column: 1 / -1; order: 10; justify-self: start; align-self: start; }
}
.hnps-pricemodal .hnps-pkgs--modal button.hnps-pkgs__pick .hnps-pkg__label { font-size: 0.9375rem; font-weight: 600; color: var(--hnp-color-ink); letter-spacing: 0; text-transform: none; }
.hnps-pricemodal .hnps-pkgs--modal tbody th { font-weight: 600; }

/* OFV2 audit #9: each package name in the price popup reads as a choice (chevron + accent on hover/focus). */
.hnps-pricemodal .hnps-pkgs--modal button.hnps-pkgs__pick { position: relative; padding-right: 22px; }
.hnps-pricemodal .hnps-pkgs--modal button.hnps-pkgs__pick::after { content: "\203A"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; line-height: 1; color: var(--hnp-color-accent-text); }
.hnps-pricemodal .hnps-pkgs--modal button.hnps-pkgs__pick:disabled::after { content: none; }
.hnps-pricemodal .hnps-pkgs--modal tbody tr:hover { background: var(--hnp-surface-muted); }
.hnps-pricemodal .hnps-pkgs--modal button.hnps-pkgs__pick:hover .hnps-pkg__label, .hnps-pricemodal .hnps-pkgs--modal button.hnps-pkgs__pick:focus-visible .hnps-pkg__label { color: var(--hnp-color-accent-text); }

/* OFV2 audit #6: a shorter phone card — 3:2 photo below 700px (4:3 from 700px up). */
@media (max-width: 699px) {
	#chon-phong .hnps-room__media { aspect-ratio: 3 / 2; }
}

/* OFV3-005 (Owner DOCX 14 trang, mục 12 "Khi tôi tìm phòng là lỗi định dạng ảnh"): the photo is a grid item with an
   aspect-ratio inside a row that stretches. When the facts column is taller than the photo, the stretched height was
   transferred through the 4:3 ratio into the width, and the item's automatic min-width let it grow past its
   300/320px track — under the room name and "Xem chi tiết phòng" (768: −2px gap; 1280: 345px photo in a 320px track).
   The photo now takes its track's width and its own ratio's height, top-aligned; the image covers that box. */
#chon-phong .hnps-room__media,
.hnps-rooms--search .hnps-room__media,
.hnp-grid .hnps-room__media {
	align-self: start;
	justify-self: stretch;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* OFV3-005 (b) — /dat-phong/ result cards ("Khi tôi tìm phòng là lỗi định dạng ảnh"). The photo box had no ratio:
   it took the row's shape (0.44 at 1024–1399 beside the filter rail, 1.02 at 1440, 1.74 at 768, 2.02 on a phone)
   and object-position:left cut the 4:3 facade artwork — building or "BASE n" label lost. Now the box IS 4:3 at every
   width (the artwork's own ratio, so nothing is cut) and centred. Desktop cards are padded with a rounded photo, the
   same frame as the room cards (OFV2-018); beside the filter rail the price/CTA takes a full-width bottom row so the
   facts column keeps a readable width. */
.hnp-grid .hnps-result .hnps-room__media {
	align-self: start;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	min-width: 0;
}
.hnps-result .hnps-result__medialink .hnps-room__img { object-position: center; }
@media (min-width: 1024px) {
	.hnp-grid .hnps-room.hnps-result { padding: var(--hnp-card-pad, 16px); }
	.hnp-grid .hnps-result .hnps-room__body { min-height: 0; gap: var(--hnp-space-5, 20px); align-items: start; }
	.hnp-grid .hnps-result .hnps-room__media { border-radius: var(--hnp-radius-medium, 12px); }
	.hnp-grid .hnps-result .hnps-room__info { padding: 0; }
	.hnp-grid .hnps-result .hnps-room__side { padding: 0 0 0 var(--hnp-space-5, 20px); align-self: stretch; }
}
@media (min-width: 1024px) and (max-width: 1399px) {
	.hnp-grid .hnps-result .hnps-room__body { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
	.hnp-grid .hnps-result .hnps-room__side {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--hnp-space-2, 8px) var(--hnp-space-4, 16px);
		padding: var(--hnp-space-4, 16px) 0 0;
		border-left: 0;
		border-top: 1px solid var(--hnps-line, rgba(14, 26, 38, 0.12));
		text-align: left;
	}
	.hnp-grid .hnps-result .hnps-room__side .hnps-room__avail { flex: 1 0 100%; }
	.hnp-grid .hnps-result .hnps-room__side .hnps-room__price { flex: 1 1 auto; justify-content: flex-start; margin: 0; }
	.hnp-grid .hnps-result .hnps-room__side .hnps-room__cta { margin-top: 0; width: auto; min-width: 160px; }
}
@media (min-width: 1400px) {
	.hnp-grid .hnps-result .hnps-room__body { grid-template-columns: 300px minmax(0, 1fr) minmax(208px, 24%); }
}

/* ==========================================================================
   MFP Part G (Owner DOCX 03/10 "ảnh bị lệch trên điện thoại, lúc nào cũng phải ở
   trung tâm, người dùng phải xem được full ảnh"). Root cause, measured: the slide
   had no definite height, so `img { height: 100% }` fell back to the photo's own
   height — the <img> grew taller than the stage (573 px in a 323 px stage at 430 px,
   995 in 647 at 1440) and the stage showed only a slice of it, pushed to one edge.
   Now the slide is exactly the stage, and every room photo is shown WHOLE and
   centred (contain) on the gallery's navy ground — on every width. The stage on a
   phone is near-square so a portrait and a landscape photo both get a fair size.
   ========================================================================== */
.hnps-roommodal__track { align-items: stretch; }
.hnps-roommodal__slide { height: 100%; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hnps-roommodal__slide img,
.hnps-roommodal .hnps-roommodal__slide img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 899px) {
	.hnps-roommodal__stage { aspect-ratio: auto; height: min(100vw, 62vh); height: min(100vw, 62svh); }
}

/* MFP Part G (phones ≤ 767 px): a room photograph is information — the guest must see the whole room. Measured before:
   portrait room photos lost up to 56 % in the 4:3 card frame. On a phone they are now shown whole, centred, on the card's
   sand ground. Base covers on search results (.hnps-result — the Owner's designed facade cards) keep their own rule. */
@media (max-width: 767px) {
	.hnps-room:not(.hnps-result) .hnps-room__img,
	.hnps-room:not(.hnps-result) .hnps-roomcar__slide .hnps-room__img { object-fit: contain; object-position: center; }
	.hnps-room:not(.hnps-result) .hnps-room__media { background: var(--hnp-color-sand, #efe9df); }
}

/* MFP Part L/J: the result name is an H2 now; Astra's heading typography (".entry-content :where(h2) a") must not reach its
   link — the name keeps the design family (Be Vietnam Pro) exactly as before. */
.hnps-result .hnps-result__name a.hnps-result__link { font-family: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }

/* AMD-T28 web fixes — BEGIN (F-06) */
/* Result-card title links were inline, 23 px high on desktop (WCAG 2.2 AA 2.5.8 asks for 24 px). Same inline-flex box the <=1023 px rule
   already uses; :where() = zero specificity, so that rule's 44 px on touch widths keeps winning. */
:where(.hnps-result .hnps-result__name a.hnps-result__link) { display: inline-flex; align-items: center; min-height: 24px; }
/* AMD-T28 web fixes — END */

/* V4-T29 booking UI (C04) — START. Only C08's existing --hnp-* tokens (hanopalais-ui.css); class names: .hnps-pricebreak*,
   .hnps-roommodal__policy*. */
/* RD1: amenity tiles of one height per dialog (no 1-line tile next to a 4-line one) and wide enough that a label keeps to two lines. */
.hnps-roommodal__amenities.hnps-amen-grid { grid-auto-rows: 1fr; }
@media (min-width: 768px) {
	.hnps-roommodal__amenities.hnps-amen-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
}
/* RD1: the sticky price footer never looks like it cuts a row: content scrolls under a short fade, and anything focused by keyboard
   is scrolled clear of the footer. */
.hnps-roommodal__info { scroll-padding-bottom: 200px; }
.hnps-roommodal__foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--hnp-space-6, 32px); background: linear-gradient(to top, var(--hnp-color-surface, #fff), rgba(255, 255, 255, 0)); pointer-events: none; }
/* RD2: the price breakdown (card side + dialog footer). */
.hnps-pricebreak { list-style: none; margin: var(--hnp-space-1, 4px) 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--hnp-text-sm, .875rem); color: var(--hnp-color-muted, #4f5b66); }
.hnps-pricebreak li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--hnp-space-3, 12px); }
.hnps-pricebreak__label { min-width: 0; overflow-wrap: anywhere; }
.hnps-pricebreak__amount { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--hnp-color-text, #1b232c); }
.hnps-pricebreak, .hnps-pricebreak__amount, .hnps-room__amount, .hnp-card__amount { text-transform: none; letter-spacing: normal; } /* CO1: "đ" never becomes "Đ" */
/* RD3: the policy block of the dialog. */
.hnps-roommodal__policyline { margin: 0 0 var(--hnp-space-2, 8px); font-size: .9375rem; line-height: 1.55; color: var(--hnp-color-text, #1b232c); }
.hnps-roommodal__policylinks { display: flex; flex-wrap: wrap; gap: var(--hnp-space-2, 8px) var(--hnp-space-4, 16px); margin: 0; }
.hnps-roommodal__policylinks a { display: inline-flex; align-items: center; min-height: 44px; }
/* V4-T29 booking UI (C04) — END */

/* V4-T44 booking UI follow-ups (C04) — START. Only C08's existing --hnp-* tokens. */
/* RD1 residual: in the two-column dialog (≥ 900 px) the taller price footer (V4-T29 breakdown) left ~1.5 amenity rows visible above it.
   The column gives the amenities the room back instead of shrinking the price block:
   - "Chi tiết" (m² · bed · guests) reads on one wrapping line instead of three stacked rows;
   - amenity rows are as tall as their own labels (tiles in one row stay equal — grid stretch); the V4-T29 "one height per dialog"
     made every row as tall as the longest label (~70 px for "Wi-Fi"); it stays on phones, where the list is one column;
   - tiles keep two columns in the narrower 1024 px dialog (they fell to one at the 168 px minimum);
   - the footer's spacing is one step tighter, and its status line and breakdown rows use a text line-height instead of the theme's
     1.86 body line-height; sizes, colours and the 44 px price link / 50 px CTA targets are unchanged. */
@media (min-width: 900px) {
	.hnps-roommodal__facts { display: flex; flex-wrap: wrap; gap: var(--hnp-space-2, 8px) var(--hnp-space-5, 24px); }
	.hnps-roommodal__amenities.hnps-amen-grid { grid-auto-rows: minmax(40px, auto); grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
	.hnps-roommodal__foot { gap: var(--hnp-space-2, 8px); padding-top: var(--hnp-space-3, 12px); padding-bottom: var(--hnp-space-4, 16px); }
	.hnps-roommodal__foot .hnps-room__avail, .hnps-roommodal__foot .hnps-pricebreak { line-height: 1.45; }
	.hnps-roommodal__foot .hnps-tariff-tags { margin-bottom: 0; }
}
/* V4-T44 booking UI follow-ups (C04) — END */

/* KAVAIL16 F-4 (C08 T-0479) — BEGIN: a check-in more than 15 minutes in the past (hanopalais-availability.js "past"):
   a sentence like "unknown", in the sold-out colour, with an outlined dot; the select button beside it is disabled. */
.hnps-room__avail[data-tone="past"],
.hnp-card__avail[data-tone="past"] {
	color: var(--hnp-color-danger, #a13a2c);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.hnps-room__avail[data-tone="past"]::before {
	background: transparent;
	border: 1.5px solid currentColor;
}
/* KAVAIL16 F-4 — END */

/* T-0542 (C08, visual review WV4-011) — BEGIN
   VR #7: on /dat-phong/ the phone count bar is a fixed 46 px (hnp-booking.css). With the KAVAIL16 F-2 availability line under the
   count it holds three lines, so the count spilled up onto the filter toolbar outside its white bar. It grows to its content, as it
   already does after a refreshed search (.hnp-results--refreshed). */
.hnp-results .hnp-results__header:has([data-hnps-avail-sum]) { height: auto; min-height: 46px; }
/* VR #6: on phones the room dialog's footer (price + CTA) is sticky and starts right under the gallery, so only the top rows of the
   brand logo showed through its fade — a pale, empty-looking strip. The property name under it already names the base; the logo
   stays in the two-column dialog (≥ 900 px). */
@media (max-width: 899px) {
	.hnps-roommodal__logo { display: none; }
}
/* T-0542 — END */
