/*
 * HanoPalais — property detail page (0.10, owner-feedback pass).
 *
 * Loaded on property pages only. Everything a base page needs beyond the
 * shared UI: identity, the photograph mosaic, the section tabs, the
 * introduction beside the map, the amenity list, the dark room-selection band,
 * the neighbourhood, the notes, the gallery by area and its lightbox, and the
 * related bases. The room card itself lives in hanopalais-rooms.css because
 * the booking page renders the same card.
 */

/* ================================================= property detail (v0.9 base) */

/* One page, every base. The photograph carries the argument, so the gallery
   sits at the top at full width; the decision panel rides alongside the copy
   on desktop and becomes a bar at the bottom of the screen on a phone. */

.hnps--propdetail { padding-bottom: var(--hnp-space-8); }

.hnps-propdetail__top { padding-top: calc(var(--hnp-header-h) + var(--hnp-space-6)); }

/* --- breadcrumb --- */
.hnps-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: var(--hnp-space-4);
	font-size: var(--hnp-text-sm);
	color: var(--hnps-muted);
}

.hnps-crumbs a { color: var(--hnps-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.hnps-crumbs a:hover { color: var(--hnps-ink); border-bottom-color: currentColor; }
.hnps-crumbs [aria-current] { color: var(--hnps-ink); font-weight: 600; }

/* --- identity --- */
.hnps-propid { margin-bottom: var(--hnp-space-5); }

.hnps-propid__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--hnp-space-3);
}

.hnps-propid .hnps-basetag--inline,
.hnps-propid .hnps-soonbadge--inline { position: static; margin: 0; }

.hnps .hnps-propid__title {
	margin: 0 0 var(--hnp-space-2);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-1);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hnp-color-ink);
	max-width: 22ch;
	text-wrap: balance;
}

.hnps .hnps-propid__brand {
	margin: 0 0 var(--hnp-space-2);
	font-size: var(--hnp-text-sm);
	font-weight: 700;
	letter-spacing: var(--hnp-tracking-caps);
	text-transform: uppercase;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-propid__brand a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.hnps-propid__brand a:hover { border-bottom-color: currentColor; }

/* Plain text flow, not a flex row. A flex row decides to wrap before it
   decides to shrink, which stranded the pin on a line of its own as soon as the
   address was wider than a phone. As inline content the pin simply leads the
   first line and the address wraps under it, at every width. */
.hnps-propid__address {
	display: block;
	margin: 0;
	font-size: var(--hnp-text-base);
	line-height: 1.5;
	color: var(--hnp-color-ink-2);
}

.hnps-propid__address .hnp-icon {
	display: inline-block;
	vertical-align: -3px;
	margin-right: 6px;
	width: 18px;
	height: 18px;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-propid__map {
	margin-left: 10px;
	font-size: var(--hnp-text-sm);
	white-space: nowrap;
}


/* --- gallery mosaic --- */
.hnps-propshots {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-bottom: var(--hnp-space-7);
	overflow: hidden;
}

.hnps-propshots__lead,
.hnps-propshots__cell {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--hnp-color-sand);
}

.hnps-propshots__lead { aspect-ratio: 3 / 2; }
.hnps-propshots__cell { aspect-ratio: 4 / 3; }

.hnps .hnps-propshots__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--hnp-ease);
}

/* All-Base UI Unification (2026-09): a photograph whose file 404s (LiteSpeed's
   lazyload lib marks it `.error` once the load fails) must degrade the same
   way a property with no photograph at all does -- the sand tile behind it,
   not the browser's broken-image glyph and raw alt text sitting on top of a
   giant colored box. Root cause of the P0 "huge background bleed" report on
   Base 11 was exactly this: one dead file with nothing here to catch it. */
.hnps .hnps-propshots__img.error { display: none; }

.hnps-propshots__lead:hover .hnps-propshots__img,
.hnps-propshots__cell:hover .hnps-propshots__img { transform: scale(1.03); }

.hnps-propshots__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.hnps-propshots__all {
	position: absolute;
	right: var(--hnp-space-4);
	bottom: var(--hnp-space-4);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: var(--hnp-radius-pill);
	background: rgba(255, 255, 255, 0.94);
	color: var(--hnp-color-ink);
	font-size: var(--hnp-text-sm);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 20px -10px rgba(14, 26, 38, 0.5);
	transition: background var(--hnp-dur) var(--hnp-ease), transform var(--hnp-dur) var(--hnp-ease);
}

.hnps-propshots__all svg { width: 17px; height: 17px; }
.hnps-propshots__all:hover { background: #ffffff; transform: translateY(-2px); }

/* An upcoming base has no photograph yet. The placeholder says so plainly and
   stays deliberately shorter than a real hero, so a page with nothing to show
   does not open with half a screen of empty ground. */
.hnps-propshots--placeholder {
	aspect-ratio: 24 / 7;
	display: grid;
	/* One column, not the mosaic's two: the mark belongs in the middle of the
	   whole band, not the middle of where a lead photograph would have gone. */
	grid-template-columns: 1fr;
	place-items: center;
	background: linear-gradient(160deg, var(--hnps-accent-soft, var(--hnp-color-sand)), var(--hnp-color-sand));
}

.hnps-propshots--placeholder .hnps-property__mark {
	position: static;
	margin: 0;
	text-align: center;
	justify-self: center;
}

.hnps-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hnps-chips__item {
	padding: 7px 14px;
	border: 1px solid var(--hnps-line);
	border-radius: var(--hnp-radius-pill);
	background: var(--hnp-color-surface);
	font-size: var(--hnp-text-sm);
	font-weight: 600;
	color: var(--hnp-color-ink-2);
}

.hnps-prose { max-width: 68ch; }

.hnps-prose p {
	margin: 0 0 var(--hnp-space-3);
	font-size: var(--hnp-text-base);
	line-height: var(--hnp-leading-body);
	color: var(--hnp-color-ink-2);
}

.hnps-prose p:last-child { margin-bottom: 0; }

/* --- amenities --- */
.hnps-amenities {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hnp-space-3) var(--hnp-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hnps-amenity {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--hnp-color-ink-2);
}

.hnps-amenity__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-amenities__toggle {
	margin-top: var(--hnp-space-4);
	padding: 8px 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: inherit;
}

.hnps-amenities__chev { display: inline-block; transition: transform var(--hnp-dur) var(--hnp-ease); }
.hnps-amenities__toggle[aria-expanded="true"] .hnps-amenities__chev { transform: rotate(180deg); }

/* --- highlights --- */
.hnps-highlights {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--hnp-space-2);
	max-width: 62ch;
}

.hnps-highlights li {
	position: relative;
	padding-left: 26px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--hnp-color-ink-2);
}

.hnps-highlights li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.6em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hnps-accent, var(--hnp-color-accent));
}

/* --- stay information --- */
.hnps-stayinfo { display: grid; gap: 0; margin: 0; max-width: 46rem; }

.hnps-stayinfo > div {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	padding: 13px 0;
	border-bottom: 1px solid var(--hnps-line);
}

.hnps-stayinfo dt {
	margin: 0;
	font-size: var(--hnp-text-xs);
	font-weight: 700;
	letter-spacing: var(--hnp-tracking-caps);
	text-transform: uppercase;
	color: var(--hnps-muted);
}

.hnps-stayinfo dd {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--hnp-color-ink-2);
}

/* --- mobile decision bar --- */
.hnps-propbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 10px var(--hnp-gutter) calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--hnps-line);
	transform: translateY(110%);
	transition: transform 260ms var(--hnp-ease);
}

.hnps-propbar.is-shown { transform: translateY(0); }

.hnps-propbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hnp-space-3);
}

.hnps-propbar__label {
	font-size: var(--hnp-text-sm);
	font-weight: 700;
	color: var(--hnp-color-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hnps-propbar .hnp-btn { flex: 0 0 auto; }

/* The support button would sit on top of the bar; it steps aside instead. */
body:has(.hnps-propbar.is-shown) .hnp-support { bottom: 84px; }

@media (min-width: 700px) {


	.hnps-propshots { grid-template-columns: 1.6fr 1fr; gap: 10px; }
	.hnps-propshots--single { grid-template-columns: 1fr; }
	.hnps-propshots__lead { aspect-ratio: auto; height: 100%; min-height: 380px; }
	.hnps-propshots__grid { grid-template-columns: repeat(2, 1fr); }
	.hnps-amenities { grid-template-columns: repeat(2, 1fr); }
	.hnps-stayinfo > div { grid-template-columns: 180px 1fr; gap: var(--hnp-space-4); align-items: baseline; }
}



@media (min-width: 1024px) {


	.hnps-propshots__lead { min-height: 460px; }
	.hnps-amenities { grid-template-columns: repeat(2, 1fr); gap: var(--hnp-space-3) var(--hnp-space-7); }

	/* A phone-sized decision bar has no business on a desktop. */
	.hnps-propbar { display: none; }
}



@media (min-width: 1280px) {


	.hnps-amenities { grid-template-columns: repeat(3, 1fr); }
}



@media (prefers-reduced-motion: reduce) {


	.hnps-propshots__img,
	.hnps-propbar { transition: none; }
	.hnps-propshots__lead:hover .hnps-propshots__img,
	.hnps-propshots__cell:hover .hnps-propshots__img { transform: none; }
}



/* --- gallery band, shared with the owner-managed gallery partial --- */
.hnps-propgallery-section { margin-top: var(--hnp-space-7); }

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

.hnps-propgallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--hnp-radius-card);
	aspect-ratio: 4 / 3;
	background: var(--hnp-color-sand);
}

.hnps .hnps-propgallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--hnp-ease);
}

/* Room Product Completion (2026-09): the compact gallery preview missed the
   same broken-photo guard the mosaic/room-card/related-card already carry. */
.hnps .hnps-propgallery__img.error { display: none; }

.hnps-propgallery__item:hover .hnps-propgallery__img { transform: scale(1.03); }

@media (min-width: 640px) {


	.hnps-propgallery { grid-template-columns: repeat(2, 1fr); gap: var(--hnp-space-4); }
}



@media (min-width: 1024px) {


	.hnps-propgallery { grid-template-columns: repeat(3, 1fr); }

}



/* --- related properties --- */
.hnps-related { margin-top: var(--hnp-space-8); }

/* Parity Correction Mission Section 30 finding: this file's own unconditional
   `display: grid` fought hanopalais-site.css's `.hnps-rail { display: flex }`
   (scoped to max-width:639px, the intended horizontal swipe carousel this
   section's own "Vuốt để xem thêm" hint text was written for) at every width
   below 640px -- same specificity, this file loads later, so grid silently
   won and the 3 related-property cards stacked vertically instead of
   swiping, nearly quadrupling this section's real mobile height (1678px
   measured vs an expected ~450-500px for one row). display now only
   applies at the same 640px+ breakpoint as its own grid-template-columns,
   so the rail's flex rule owns every width below that with no conflict. */
.hnps-relatedgrid {
	gap: var(--hnps-gap);
}

.hnps-relcard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.hnps-relcard__link:focus-visible {
	outline: 2px solid var(--hnp-color-accent);
	outline-offset: -2px;
	border-radius: var(--hnp-radius-card);
}

.hnps-relcard__media { display: block; }

.hnps .hnps-relcard__img { height: 100%; object-fit: cover; }

.hnps-relcard__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: var(--hnp-space-5);
	flex: 1 1 auto;
}

.hnps-relcard__name {
	font-family: var(--hnp-font-display);
	font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--hnp-color-ink);
}

.hnps-relcard__place {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: var(--hnp-text-sm);
	color: var(--hnp-color-ink-2);
}

.hnps-relcard__place .hnp-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-relcard__brand {
	font-size: var(--hnp-text-sm);
	font-weight: 700;
	line-height: 1.4;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-relcard__cta {
	margin-top: auto;
	padding-top: var(--hnp-space-3);
	align-self: flex-start;
	font-size: 0.9375rem;
}

.hnps-relcard:hover .hnps-property__arrow { transform: translateX(4px); }

@media (min-width: 640px) {


	.hnps-relatedgrid { display: grid; grid-template-columns: repeat(3, 1fr); }
}



/* A single photograph keeps a controlled frame rather than growing to the
   natural height of a portrait shot. */
.hnps-propshots--single .hnps-propshots__lead {
	aspect-ratio: 16 / 9;
	min-height: 0;
	height: auto;
}

@media (min-width: 700px) {


	.hnps-propshots--single .hnps-propshots__lead { aspect-ratio: 21 / 9; }
}



/* The mosaic's four cells share the lead photograph's height rather than each
   keeping its own ratio, so the block reads as one composition. */
@media (min-width: 700px) {


	.hnps-propshots__grid {
		grid-template-rows: 1fr 1fr;
		height: 100%;
	}

	.hnps-propshots__cell {
		aspect-ratio: auto;
		height: 100%;
		min-height: 0;
	}
}



/* The support button lives bottom-right, so the gallery control sits left. */
.hnps-propshots__all {
	right: auto;
	left: var(--hnp-space-4);
}

/* GLF-013: bottom-left is exactly where every Base cover carries the HanoPalais mark, which the button hid. The gallery
   sits at the top of the page, far from the fixed support button (bottom-right of the screen), so it goes right. */
.hnps-propshots__all {
	left: auto;
	right: var(--hnp-space-4);
}

/* The side rail holds up to four photographs in a 2×2 grid. A property with
   one or three leaves a gap in that grid, which reads as a missing picture
   rather than a property with fewer pictures — so the odd one out is widened
   to fill its row. Two need no help: they already complete a row. */
.hnps-propshots__cell:first-child:last-child {
	grid-column: span 2;
	/* Alone in the rail (no second row exists to share with), so it also
	   fills the row it would have left empty -- one full-rail tile instead
	   of a half-height wide one with dead space below. */
	grid-row: span 2;
}
.hnps-propshots__cell:nth-child(3):last-child {
	grid-column: span 2;
}

/* The desktop mosaic rule that splits .hnps-propshots into a lead column and a
   side rail lands later in this file than the placeholder block, so it has to
   be undone here: an upcoming base has no lead and no rail, just one band with
   its mark in the middle. */
@media (min-width: 1024px) {


	.hnps-propshots--placeholder { grid-template-columns: 1fr; }
}




/* ================================================= property detail (0.10 owner pass) */

/* The page follows the reference's sequence — identity, photographs, tabs,
   introduction beside the map, amenities, the dark room band, the
   neighbourhood, the notes, the gallery — in HanoPalais's own ink, sand and
   accent, with its own type and radii. Nothing below borrows a colour. */

.hnps--propdetail { padding-bottom: 0; }

/* --- the mosaic tiles are buttons now: every tile opens the lightbox --- */
.hnps-propshots__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	/* !important: All-Base UI Unification (2026-09) root cause for the P0
	   "giant background bleed" report -- Astra's global button reset
	   (button { background-color: var(--ast-global-color-0) }) is emitted as
	   inline theme CSS late in <head> and otherwise paints this tile solid
	   theme-accent-yellow the moment its photo errors out and disappears
	   (see the .error rule below), covering the sand placeholder it should
	   fall back to. Every tile on every Base is this same transparent
	   button, so this is a general override, not a per-Base color. */
	background: transparent !important;
	cursor: zoom-in;
}

.hnps-propshots__open:focus-visible { outline: 3px solid var(--hnp-color-accent); outline-offset: -3px; }

.hnps-propshots__all { border: 0; cursor: pointer; font-family: inherit; }

.hnps-propshots { margin-bottom: var(--hnp-space-5); }

/* --- section tabs --- */
.hnps-proptabs {
	position: sticky;
	top: var(--hnp-header-h-mobile);
	z-index: 20;
	display: flex;
	gap: 0;
	margin: 0 0 var(--hnp-space-5);
	border-bottom: 1px solid var(--hnps-line);
	background: var(--hnp-color-bg);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hnps-proptabs::-webkit-scrollbar { display: none; }

.hnps-proptabs__link {
	flex: 0 0 auto;
	padding: 14px 18px 12px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-text-base);
	font-weight: 600;
	color: var(--hnps-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--hnp-dur) var(--hnp-ease), border-color var(--hnp-dur) var(--hnp-ease);
}

.hnps-proptabs__link:hover { color: var(--hnp-color-ink); }
.hnps-proptabs__link.is-current { color: var(--hnp-color-ink); border-bottom-color: var(--hnp-color-accent); }
.hnps-proptabs__link:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: -2px; }

/* --- the card: introduction beside the map --- */
.hnps-propcard {
	padding: var(--hnp-space-5);
	border: 1px solid var(--hnps-line);
	border-radius: var(--hnp-radius-panel);
	background: var(--hnp-color-surface);
	box-shadow: var(--hnp-shadow-card);
}

.hnps-propintro {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hnp-space-6);
	scroll-margin-top: 140px;
}

.hnps-propintro__main { min-width: 0; }

.hnps .hnps-propintro__title {
	margin: 0 0 var(--hnp-space-4);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-2);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
	max-width: 24ch;
	text-wrap: balance;
}

/* The reference lets its story paragraph run the full width of its 760px
   column; a 64ch cap here left ~150px of dead space beside the text at
   1440 instead. The grid column is already the real measure constraint. */
.hnps-propintro__text { max-width: none; }
.hnps-propintro__text p { margin: 0 0 1em; }
.hnps-propintro__text p:last-child { margin-bottom: 0; }

.hnps .hnps-propintro__more,
.hnps .hnps-propintro__more:hover,
.hnps .hnps-propintro__more:focus,
.hnps .hnps-propintro__more:active { display: inline-flex; gap: 6px; align-items: center; margin-top: var(--hnp-space-2); padding: 8px 0; border: 0; background: none; box-shadow: none; cursor: pointer; font-family: inherit; font-weight: 600; }
.hnps .hnps-propintro__more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hnps .hnps-propintro__more[hidden] { display: none; }
.hnps-propintro__more[aria-expanded="true"] .hnps-amenities__chev { transform: rotate(180deg); }
/* CFB-032: phones see five lines of the introduction, then "Xem thêm". */
@media (max-width: 767px) {
	.hnps-propintro__text[data-hnps-clamp]:not(.is-open) { max-height: calc(var(--hnp-leading-body, 1.7) * 1em * 5); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
}
@media (min-width: 768px) {
	.hnps-propintro__more { display: none !important; }
}
.hnps-propintro__chips { margin-top: var(--hnp-space-4); }

/* --- quick facts, under the introduction --- */
.hnps-propfacts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hnp-space-4);
	margin: var(--hnp-space-5) 0 0;
	padding: var(--hnp-space-4) 0;
	border-top: 1px solid var(--hnps-line);
	border-bottom: 1px solid var(--hnps-line);
}

.hnps-propfacts div { min-width: 0; }

.hnps-propfacts dt {
	margin: 0 0 4px;
	font-size: var(--hnp-text-xs);
	font-weight: 700;
	letter-spacing: var(--hnp-tracking-caps);
	text-transform: uppercase;
	color: var(--hnps-muted);
}

.hnps-propfacts dd {
	margin: 0;
	font-size: var(--hnp-text-sm);
	font-weight: 600;
	line-height: 1.45;
	color: var(--hnp-color-ink);
}

/* --- amenities: compact, scannable, four to a row on desktop --- */
.hnps-propamenities { margin-top: var(--hnp-space-6); scroll-margin-top: 140px; }

/* Reference caps the visible grid at 6 below 430px; the template only
   marks items 7-8 with this class when an expand button exists to reach
   them (see property-intro.php), so nothing is ever stranded. */
@media (max-width: 429px) {
	.hnps-amenity--mobile-more { display: none; }
}

.hnps .hnps-propamenities__title {
	margin: 0 0 var(--hnp-space-4);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-3);
	font-weight: 700;
	color: var(--hnp-color-ink);
}

.hnps-propamenities .hnps-amenities { gap: var(--hnp-space-3) var(--hnp-space-4); }
.hnps-propamenities .hnps-amenity { font-size: var(--hnp-text-sm); gap: 10px; }
.hnps-propamenities .hnps-amenity__icon { width: 20px; height: 20px; }

.hnps-amenities-all { margin-top: var(--hnp-space-5); padding-top: var(--hnp-space-4); border-top: 1px dashed var(--hnps-line); }
.hnps-amenities-all__group + .hnps-amenities-all__group { margin-top: var(--hnp-space-4); }

.hnps-amenities-all__label {
	margin: 0 0 var(--hnp-space-2);
	font-size: var(--hnp-text-xs);
	font-weight: 700;
	letter-spacing: var(--hnp-tracking-caps);
	text-transform: uppercase;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps-chev { display: inline-block; margin-left: 4px; transition: transform var(--hnp-dur) var(--hnp-ease); }
[aria-expanded="true"] > .hnps-chev { transform: rotate(180deg); }

/* --- the map column --- */
.hnps-propintro__side { min-width: 0; scroll-margin-top: 140px; }

.hnps-propmap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--hnp-radius-card);
	background:
		linear-gradient(rgba(14, 26, 38, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(14, 26, 38, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--hnp-color-sand);
}

.hnps-propmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* T-0414 R7: Chrome never matches :focus / :focus-within for an iframe holding focus, so the map's inline loader marks the box
   while a keyboard user is inside the map (property-intro.php) and the ring is drawn here. */
.hnps-propmap.is-kbfocus { outline: 3px solid var(--hnp-color-accent); outline-offset: 2px; }









.hnps-propintro__address {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: var(--hnp-space-4) 0 var(--hnp-space-3);
	font-size: var(--hnp-text-sm);
	line-height: 1.5;
	color: var(--hnp-color-ink-2);
}

.hnps-propintro__address .hnp-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--hnps-accent-text, var(--hnp-color-accent-text)); }

.hnps-propintro__directions { width: 100%; justify-content: center; }

.hnps-propintro__nearby { margin-top: var(--hnp-space-5); padding-top: var(--hnp-space-4); border-top: 1px solid var(--hnps-line); }

.hnps-propintro__nearby-title {
	margin: 0 0 var(--hnp-space-3);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-text-base);
	font-weight: 700;
	color: var(--hnp-color-ink);
}

.hnps-propintro__nearby .hnp-link { display: inline-block; margin-top: var(--hnp-space-3); font-size: var(--hnp-text-sm); }

/* --- places list, shared by the map column and the neighbourhood block --- */
.hnps-places { margin: 0; padding: 0; list-style: none; }

.hnps-place {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hnp-space-3);
	padding: 6px 0;
	border-bottom: 1px solid var(--hnps-line);
	font-size: var(--hnp-text-sm);
	line-height: 1.45;
}

.hnps-places--compact .hnps-place { padding: 6px 0; }
.hnps-place:last-child { border-bottom: 0; }
.hnps-place__name { color: var(--hnp-color-ink); min-width: 0; }
.hnps-place__name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hnps-line); }
.hnps-place__name a:hover { border-bottom-color: currentColor; }
.hnps-place__group { display: inline-block; margin-left: 8px; font-size: var(--hnp-text-xs); color: var(--hnps-muted); }
.hnps-place__dist { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--hnps-muted); }

/* --- the room band --- */
.hnps-rooms {
	margin-top: var(--hnp-space-7);
	scroll-margin-top: 110px;
}

/* Parity Correction Mission Section 15 (P0): the dark treatment now scopes
   to the booking controls only (title/search/policy), not the whole room
   list below it -- see property-rooms.php. Keeps the same brand surface,
   just sized to what it represents instead of the entire catalog. */
.hnps-roomsband {
	padding: var(--hnp-space-7) 0 var(--hnp-space-7);
	background: var(--hnp-color-ink);
	color: rgba(255, 255, 255, 0.86);
}

.hnps-rooms__head { margin-bottom: var(--hnp-space-5); }

.hnps .hnps-rooms__title {
	margin: 0;
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-2);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.hnps-rooms__state {
	max-width: 62ch;
	padding: var(--hnp-space-5);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--hnp-radius-panel);
	background: rgba(255, 255, 255, 0.04);
}

.hnps-rooms__state p { margin: 0 0 var(--hnp-space-4); font-size: var(--hnp-text-base); line-height: 1.6; }
.hnps-rooms__state p:last-child { margin-bottom: 0; }
.hnps-rooms__state--soft { margin-top: var(--hnp-space-5); }
.hnps-rooms__actions { display: flex; flex-wrap: wrap; gap: var(--hnp-space-3); }

.hnps-rooms__list { display: grid; gap: var(--hnp-space-4); margin-top: var(--hnp-space-5); }

/* --- the search strip inside the band: light control on dark ground --- */


/* Pinned by class, not `position: sticky` — see hanopalais-property.js for
   why (same containing-block trap the tab bar hit). Reference keeps its own
   equivalent reachable on a white strip under the header while scrolling
   through the room list; the stay-type switch collapses when pinned so the
   bar stays compact — it's still the exact same fields/values underneath,
   just hidden until the visitor scrolls back to change stay type. */
.hnps-roomsearch.is-pinned {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 29;
	padding: 10px var(--hnp-gutter);
	background: var(--hnp-color-surface, #ffffff);
	box-shadow: 0 10px 24px -16px rgba(14, 26, 38, 0.35);
}





.hnps-roomsearch.is-pinned .hnps-roomsearch__strip {
	padding: 0;
	border-radius: 0;
	background: transparent;
}

/* P0-B (Owner regression report): the pinned strip's grid column for a
   time field is wide enough to hold "HH:MM" alone but not quite wide
   enough for Chromium's native time control to also fit its AM/PM
   segment -- it still tries, and clips it to "PI"/"AI" instead of
   cleanly omitting it the way the resting (unpinned, wider natural
   column) state does. A concrete min-width, confirmed visually against
   the live pinned state, gives the control enough room to render the
   full value with nothing cut off. */












.hnps-roomsearch__strip {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hnp-space-3);
	padding: var(--hnp-space-4);
	border-radius: var(--hnp-radius-panel);
	background: var(--hnp-color-surface);
	color: var(--hnp-color-ink);
}





/* The stay type decides which labels show — the site script flips data-rental. */










/* --- the neighbourhood --- */
.hnps-nearby {
	margin-top: var(--hnp-space-7);
	padding: var(--hnp-space-5);
	border: 1px solid var(--hnps-line);
	border-radius: var(--hnp-radius-panel);
	background: var(--hnp-color-surface);
	scroll-margin-top: 120px;
}

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

.hnps .hnps-nearby__title {
	margin: 0 0 var(--hnp-space-3);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-2);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
	max-width: 18ch;
	text-wrap: balance;
}

.hnps-nearby__intro { max-width: 46ch; }
.hnps-nearby__intro p { margin: 0 0 1em; }
.hnps-nearby__intro p:last-child { margin-bottom: 0; }

.hnps-nearby__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--hnp-space-2);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-text-base);
	font-weight: 700;
	color: var(--hnp-color-ink);
}

.hnps-nearby__heading .hnp-icon { width: 18px; height: 18px; color: var(--hnps-accent-text, var(--hnp-color-accent-text)); }
.hnps-nearby__more { margin-top: var(--hnp-space-3); padding: 6px 0; border: 0; background: none; cursor: pointer; font-family: inherit; }

/* --- notes: highlights and stay information side by side --- */
.hnps-propnotes {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hnp-space-6);
	margin-top: var(--hnp-space-7);
	padding-top: var(--hnp-space-6);
	border-top: 1px solid var(--hnps-line);
}

.hnps .hnps-propnotes__title {
	margin: 0 0 var(--hnp-space-4);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-3);
	font-weight: 700;
	color: var(--hnp-color-ink);
}

/* --- gallery by area --- */
.hnps-propgallery-section { margin-top: var(--hnp-space-7); padding-bottom: var(--hnp-space-7); }

.hnps-propgallery__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--hnp-space-4);
	margin-bottom: var(--hnp-space-5);
}

.hnps .hnps-propgallery__title {
	margin: 0;
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-2);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hnp-color-ink);
}

.hnps-gallerytabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 100%;
}

.hnps-gallerytabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--hnps-line);
	border-radius: var(--hnp-radius-pill);
	background: var(--hnp-color-surface);
	color: var(--hnp-color-ink-2);
	font: inherit;
	font-size: var(--hnp-text-sm);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--hnp-dur) var(--hnp-ease), color var(--hnp-dur) var(--hnp-ease), border-color var(--hnp-dur) var(--hnp-ease);
}

.hnps-gallerytabs__tab:hover { border-color: var(--hnp-color-ink); }
.hnps-gallerytabs__tab.is-current { background: var(--hnp-color-ink); border-color: var(--hnp-color-ink); color: #ffffff; }
.hnps-gallerytabs__n { font-size: var(--hnp-text-xs); opacity: 0.7; }
.hnps-gallerytabs__tab:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 2px; }

.hnps-propgallery__item { position: relative; }

.hnps-propgallery__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.hnps-propgallery__open:focus-visible { outline: 3px solid var(--hnp-color-accent); outline-offset: -3px; }

.hnps-propgallery__cap {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 4px 10px;
	border-radius: var(--hnp-radius-pill);
	background: rgba(14, 26, 38, 0.72);
	color: #ffffff;
	font-size: var(--hnp-text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	pointer-events: none;
}

/* Parity Correction Mission Section 14 (P0): compact mobile gallery --
   preview cap + expand, matching the same pattern as .hnps-amenities__toggle. */
.hnps-propgallery__toggle {
	display: block;
	margin-top: var(--hnp-space-4);
	padding: 8px 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: inherit;
}

/* --- lightbox --- */
.hnps-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: auto 1fr;
	background: rgba(9, 15, 22, 0.96);
	color: #ffffff;
}

html.hnps-lightbox-open { overflow: hidden; }

.hnps-lightbox__bar {
	display: flex;
	align-items: center;
	gap: var(--hnp-space-3);
	padding: 12px var(--hnp-gutter);
}

.hnps-lightbox__count { font-variant-numeric: tabular-nums; font-weight: 700; }
.hnps-lightbox__label { flex: 1 1 auto; font-size: var(--hnp-text-sm); color: rgba(255, 255, 255, 0.7); }

.hnps-lightbox__close,
.hnps-lightbox__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.hnps-lightbox__close:hover,
.hnps-lightbox__nav:hover { background: rgba(255, 255, 255, 0.16); }
.hnps-lightbox__close:focus-visible,
.hnps-lightbox__nav:focus-visible { outline: 2px solid var(--hnp-color-gold); outline-offset: 2px; }

.hnps-lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0 var(--hnp-gutter) calc(var(--hnp-gutter) + 56px);
	min-height: 0;
}

.hnps-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--hnp-radius-md);
	transition: opacity 200ms var(--hnp-ease);
}

.hnps-lightbox__stage.is-loading .hnps-lightbox__img { opacity: 0.35; }

.hnps-lightbox__nav {
	position: absolute;
	bottom: var(--hnp-gutter);
	z-index: 2;
}

.hnps-lightbox__nav--prev { left: var(--hnp-gutter); }
.hnps-lightbox__nav--next { right: var(--hnp-gutter); }

/* --- related bases sit after the gallery; the closing band follows --- */
.hnps--propdetail + .hnps-related,
.hnps-related { margin-top: 0; padding-top: var(--hnp-space-7); }

/* --------------------------------------------------------- responsive */

@media (min-width: 700px) {
	.hnps-propshots { grid-template-columns: 1fr 1fr; }
	.hnps-propshots__lead { min-height: 420px; }
	.hnps-propfacts { grid-template-columns: repeat(4, 1fr); }
	.hnps-propamenities .hnps-amenities { grid-template-columns: repeat(2, 1fr); }
	.hnps-roomsearch__strip { grid-template-columns: repeat(2, 1fr); }
	
	.hnps-propnotes { grid-template-columns: 1fr 1fr; }
	/* Reference's "có gì vui quanh đây" card holds its lead text to a 358px
	   column and lets the place list take the rest — ours was splitting
	   1:1.4, which let the lead column sprawl to ~490px at 1440. */
	.hnps-nearby__inner { grid-template-columns: minmax(0, clamp(240px, 30%, 358px)) minmax(0, 1fr); gap: var(--hnp-space-7); }
	.hnps-lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); }
	.hnps-lightbox__stage { padding: 0 calc(var(--hnp-gutter) + 60px) var(--hnp-gutter); }
}

@media (min-width: 1024px) {
	.hnps-proptabs { top: var(--hnp-header-h); }
	.hnps-proptabs__link { padding: 16px 22px 14px; }
	.hnps-propcard { padding: var(--hnp-space-6); }
	.hnps-propintro { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: var(--hnp-space-8); }
	.hnps-propamenities .hnps-amenities { grid-template-columns: repeat(3, 1fr); }
	
	.hnps-roomsearch__strip { grid-template-columns: 1.1fr 0.8fr 1.1fr 0.8fr 0.9fr auto; align-items: end; padding: var(--hnp-space-3) var(--hnp-space-4); }
	
	
	
	.hnps-propshots__lead { min-height: 480px; }
	.hnps-propbar { display: none; }
}

@media (min-width: 1280px) {
	.hnps-propamenities .hnps-amenities { grid-template-columns: repeat(4, 1fr); }
	.hnps-propintro { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.hnps-proptabs__link,
	.hnps-gallerytabs__tab,
	.hnps-lightbox__img,
	.hnps-chev { transition: none; }
}

/* ---------------------------------------------- pass 2 refinements */

/* Amenity labels are Vietnamese and some are long ("Cửa hàng tiện lợi 24/7");
   a fixed four-column grid squeezed them into two lines. Columns now take the
   width a label needs and wrap to as many as fit. */
.hnps-propamenities .hnps-amenities,
.hnps-amenities-all .hnps-amenities { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

@media (min-width: 1024px) {
	.hnps-propamenities .hnps-amenities,
	.hnps-amenities-all .hnps-amenities { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* Without a verified map the location column still has to read as a place:
   the address and the directions link sit in a sand panel of their own rather
   than floating in a blank column. */
.hnps-proplocbox {
	padding: var(--hnp-space-5);
	border-radius: var(--hnp-radius-card);
	background: var(--hnp-color-sand);
}

.hnps-proplocbox .hnps-propintro__address { margin-top: 0; }
.hnps-proplocbox__title {
	margin: 0 0 var(--hnp-space-3);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-text-base);
	font-weight: 700;
	color: var(--hnp-color-ink);
}

/* A base with one photograph (Base 1 today) gets one wide frame, not a lead
   column beside an empty rail. This has to follow the desktop mosaic rule
   above, which would otherwise win on source order. */
@media (min-width: 700px) {
	.hnps-propshots--single { grid-template-columns: 1fr; }
	.hnps-propshots--single .hnps-propshots__lead { aspect-ratio: 21 / 9; min-height: 0; height: auto; }
}

/* Tablet: the stay-type switch beside the strip left six fields 800px at
   1024 and the labels broke. The switch sits above the strip until there is
   room for both, and the strip takes the full width in between. */
@media (min-width: 1024px) and (max-width: 1279px) {
	
	.hnps-roomsearch__strip { grid-template-columns: 1.1fr 0.8fr 1.1fr 0.8fr 0.9fr auto; }
}

/* Long stay on the property strip: start day + duration, no clock. */







/* --- House Guide: what a guest needs to know once here --- */
.hnps-guide { margin-top: var(--hnp-space-7); padding-top: var(--hnp-space-6); border-top: 1px solid var(--hnps-line); }
.hnps-guide__head { max-width: 60ch; margin-bottom: var(--hnp-space-5); }
.hnps .hnps-guide__title { margin: 0 0 var(--hnp-space-2); font-family: var(--hnp-font-display); font-size: var(--hnp-heading-3); font-weight: 700; color: var(--hnp-color-ink); }
.hnps-guide__lead { margin: 0; color: var(--hnps-muted); line-height: var(--hnp-leading-body); }
.hnps-guide__list { display: grid; grid-template-columns: 1fr; gap: var(--hnp-space-3); margin: 0; }
.hnps-guide__item { padding: var(--hnp-space-4); border: 1px solid var(--hnps-line); border-radius: var(--hnp-radius-panel, 12px); background: #fff; }
.hnps-guide__item dt { margin: 0 0 4px; font-size: var(--hnp-text-xs); font-weight: 700; letter-spacing: var(--hnp-tracking-caps); text-transform: uppercase; color: var(--hnps-muted); }
.hnps-guide__item dd { margin: 0; line-height: var(--hnp-leading-body); color: var(--hnp-color-ink); }
@media (min-width: 768px) { .hnps-guide__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hnps-guide__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- the base's FAQ --- */
.hnps-propfaq { margin-top: var(--hnp-space-7); padding-top: var(--hnp-space-6); border-top: 1px solid var(--hnps-line); max-width: 52rem; }
.hnps-propfaq__head { margin-bottom: var(--hnp-space-4); }
.hnps .hnps-propfaq__title { margin: 0; font-family: var(--hnp-font-display); font-size: var(--hnp-heading-3); font-weight: 700; color: var(--hnp-color-ink); }
.hnps-propfaq__more { margin: var(--hnp-space-4) 0 0; }
.hnps-propfaq__more a { font-weight: 700; color: var(--hnps-accent-text, var(--hnp-color-accent-text)); text-decoration: underline; text-underline-offset: 3px; }

/* --- contextual policy summary, beside the room search --- */
.hnps-policysum { margin: var(--hnp-space-4) 0 0; padding: var(--hnp-space-4) var(--hnp-space-5); border-radius: var(--hnp-radius-panel, 12px); border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; }
.hnps-policysum--dark { border-color: var(--hnps-line); background: var(--hnps-sand); color: var(--hnp-color-ink); }
.hnps-policysum__title { margin: 0 0 var(--hnp-space-3); font-size: var(--hnp-text-xs); font-weight: 700; letter-spacing: var(--hnp-tracking-caps); text-transform: uppercase; opacity: 0.8; }
.hnps-policysum__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px 24px; }
.hnps-policysum__list li { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: var(--hnp-text-sm); line-height: 1.5; }
.hnps-policysum__list strong { font-weight: 700; }
.hnps-policysum__list span { opacity: 0.85; }
.hnps-policysum__more { margin: var(--hnp-space-3) 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--hnp-text-sm); }
.hnps-policysum__more:empty { display: none; }
.hnps-policysum__more a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .hnps-policysum__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   VISUAL POLISH (2026-09) — gallery proportions
   The lead had been stretched to a min-height, which left the four
   thumbnails squashed to a ratio no photograph is shot at. Letting the
   lead keep its 3:2 crop and dividing the same height between the two
   thumbnail rows puts every cell back on a ~3:2 footing.
   ===================================================================== */
@media (min-width: 700px) {
	.hnps-propshots__lead {
		min-height: 0;
		height: auto;
		aspect-ratio: 3 / 2;
	}
	.hnps-propshots__grid {
		height: 100%;
		grid-template-rows: 1fr 1fr;
	}
	.hnps-propshots__cell { aspect-ratio: auto; }
}

/* =====================================================================
   PARITY PASS (2026-09-14) — Phase A2 gallery, checkpoint 1
   Measured against the live reference at 1440/1280/1024/768/430/390/375
   (getBoundingClientRect, Puppeteer). Three real geometry differences:
   1. The reference holds one constant block height (~410px) from 768 up
      through 1440 instead of shrinking with the lead's own aspect ratio.
   2. Every tile there carries its own small corner radius with a visible
      seam between tiles, instead of one outer radius over a flush grid.
   3. Below 768 the reference is a single-photo swipeable carousel, not a
      stacked lead + 2x2 grid.
   The counter/CTA chip keeps its LEFT position from the 2026-09 pass
   above (the fixed support bubble occupies bottom-right there) — a
   deliberate, documented difference from the reference's bottom-right
   badge, not an oversight.
   ===================================================================== */

.hnps-propshots__lead,
.hnps-propshots__cell { border-radius: 4px; }

@media (min-width: 700px) {
	/* Matches the canonical reference exactly: its own gallery block is a flat
	   410px at every desktop width (1440/1280/1024/768), not something that
	   shrinks with the viewport. Giving .hnps-propshots itself this same
	   definite height (not just the lead) is also the fix for a real bug
	   (Property V2 gap HNP-0541/0542): .hnps-propshots__grid and
	   .hnps-propshots__cell both rely on `height: 100%` to size the side
	   rail and crop its photos via object-fit. A percentage height only
	   resolves against a DEFINITE parent height -- without it here, a rail
	   with fewer than 4 photos (so the 2x2 grid isn't fully packed) falls
	   back to sizing itself from its image's own intrinsic ratio instead of
	   being cropped, and a portrait-shot photo then renders at full
	   uncropped height instead of a cover-cropped tile (reproduced on Base
	   11, whose single rail photo is a 288x512 portrait crop -- but this was
	   never Base-11-specific, any property with 1-3 portrait rail photos
	   would hit the same collapse).

	   Scoped to :not(--single): a property with only one usable gallery
	   photo has no rail to crop, and pinning the wrapper to this same
	   flat 410px broke IT instead (FB-09, Owner feedback 2026-09) -- the
	   single-photo lead already sizes itself correctly via its own
	   aspect-ratio rule below (16/9 mobile, 21/9 desktop), but this block
	   used to override the WRAPPER'S height/overflow unconditionally, so
	   a lead taller than 410px (any wide viewport, since 21/9 on a
	   near-full-bleed width is well over 410px) just visually bled out of
	   the fixed-height, overflow:visible box into the tab bar and
	   identity section below it. Excluding --single here restores the
	   base rule's overflow:hidden (line ~110) and lets the wrapper's grid
	   row auto-size to its one real child again, so container and lead
	   stay the same height by construction instead of by coincidence. */
	.hnps-propshots:not(.hnps-propshots--single) {
		gap: 4px;
		border-radius: 0;
		overflow: visible;
		height: 410px;
		/* The row itself must be an explicit, definite track -- height alone
		   on the grid container does not stop its single implicit "auto" row
		   from growing to whatever a child's own content demands (which is
		   exactly the bug: the rail's height:100% chain has nothing definite
		   to resolve against until the track itself is fixed). */
		grid-template-rows: 410px;
	}
	.hnps-propshots:not(.hnps-propshots--single) .hnps-propshots__lead {
		aspect-ratio: auto;
		height: 410px;
	}
	.hnps-propshots__grid { gap: 4px; }
}

/* Below 768, the mosaic becomes one swipeable, single-photo track: the
   lead and the four rail cells become equal-width slides in a horizontal
   scroller, native CSS scroll-snap providing the swipe. The counter chip
   stays a sibling of the track (not inside it) so it never scrolls away. */
@media (max-width: 699px) {
	.hnps-propshots__track {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 0;
		scrollbar-width: none;
		border-radius: var(--hnp-radius-panel);
	}
	.hnps-propshots__track::-webkit-scrollbar { display: none; }
	.hnps-propshots__grid { display: contents; }
	.hnps-propshots__lead,
	.hnps-propshots__cell {
		flex: 0 0 100%;
		width: 100%;
		aspect-ratio: 3 / 2;
		scroll-snap-align: start;
		border-radius: 0;
	}
}

@media (min-width: 700px) {
	/* Flattens the track wrapper so the lead + grid resume being direct
	   items of the .hnps-propshots two-column grid, unchanged from before. */
	.hnps-propshots__track { display: contents; }
}

/* =====================================================================
   CUSTOMER JOURNEY (2026-09) — the honest "we cannot look yet" state
   A silent empty area reads as a broken page. One status line, the
   owner's explanation, one primary action.
   ===================================================================== */
.hnps-rooms__status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--hnp-space-3);
	font-size: var(--hnp-text-sm);
	font-weight: 700;
	letter-spacing: var(--hnp-tracking-caps);
	text-transform: uppercase;
	color: var(--hnp-color-surface);
}

.hnps-rooms__status .hnp-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	opacity: 0.85;
}

.hnps-rooms__state[data-state="offline"] {
	border-left: 3px solid var(--hnp-color-accent);
	padding-left: var(--hnp-space-5);
}

/* ============================== PHASE 6 — THE PROPERTY TAB BAR
   Measured on the live reference property pages (Savvy and Express render
   this identically, so it is the global template, not one property's
   styling):

     bar      1440x45, full bleed, sticky at the top of the viewport
     tabs     Giới thiệu · Chọn phòng · Vị trí
     content  held to the same stepped container the rest of the page uses

   Ours measured 1160x62 and sat inside the page container, so it read as a
   component on the page rather than as the page's own chrome — the same
   distinction the search band had before Phase 3. The three labels were
   already right. */

.hnps-proptabs {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	min-height: 45px;
	align-items: stretch;
	background: var(--hnp-color-surface, #ffffff);
}

/* The links stay on the page's own measure while the bar runs full bleed. */
.hnps-proptabs::before,
.hnps-proptabs::after {
	content: "";
	flex: 0 0 auto;
	width: max(16px, calc(50vw - var(--hnps-shell, 100vw) / 2));
}

.hnps-proptabs__link {
	display: flex;
	align-items: center;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 500;
}

.hnps-proptabs { --hnps-shell: 100vw; }

@media (min-width: 768px)  { .hnps-proptabs { --hnps-shell: 750px; } }
@media (min-width: 1024px) { .hnps-proptabs { --hnps-shell: 968px; } }
@media (min-width: 1400px) { .hnps-proptabs { --hnps-shell: 1239px; } }

/* Pinned by class, not by `position: sticky` — see hanopalais-property.js
   for why sticky cannot hold inside an Elementor widget wrapper. */
.hnps-proptabs.is-pinned {
	position: fixed;
	left: 0;
	right: 0;
	margin-inline: 0;
	width: 100%;
	z-index: 30;
	box-shadow: 0 10px 24px -20px rgba(14, 26, 38, 0.5);
}

/* A direct link to #chon-phong (or a browser restoring one) must clear the
   header and the pinned tab bar too, not only a click on the tab. */
#gioi-thieu,
#chon-phong,
#vi-tri { scroll-margin-top: 140px; }

/* ========================= PHASE 6 — THE PROPERTY PAGE'S MEASURE
   The reference does not scale its container, it steps it, and the property
   pages use the same steps as the search page:

     1440 -> 1270    1280 -> 1000    1024 -> 1000    768 -> 750    < 768 -> viewport

   Ours was the global 1240 token less two 40px gutters — a flat 1160 at
   every desktop width, so the page sat narrower than the reference at 1440
   and wider at 1280. Scoped to the property page: the global token still
   serves the homepage and the rest of the site, which were composed against
   it. The tab bar above already uses these numbers. */

.hnps--propdetail .hnp-shell {
	--hnps-step: 100vw;
	max-width: var(--hnps-step);
	padding-inline: 16px;
}

@media (min-width: 768px) {
	.hnps--propdetail .hnp-shell { --hnps-step: 750px; padding-inline: 0; }
}

@media (min-width: 1024px) {
	.hnps--propdetail .hnp-shell { --hnps-step: 968px; }
}

@media (min-width: 1400px) {
	.hnps--propdetail .hnp-shell { --hnps-step: 1239px; }
}

/* =====================================================================
   PARITY PASS (2026-09-14) — Phase A3 property tabs
   Measured against the live reference at seven widths. Four residuals:

   1. Bar height 45px here, 44px there.
   2. No gap between tabs here — the spacing lived entirely in the links'
      20px side padding (40px between labels). The reference splits it:
      32px gap plus 16px link padding (64px between labels), halving to
      16px + 8px below 768.
   3. Type was a flat 14px/500. The reference reads 16px, and carries the
      current tab on weight alone: 600 and near-black against 400 and
      grey. So the accent underline goes — it has no counterpart there,
      and weight still gives a non-colour cue.
   4. The first-tab inset was floored at 16px, which broke alignment with
      the page measure at exactly the two widths where the real inset is
      smaller: 9px at 768 and 12px at 1024 (the residual in the brief).
      The floor now only applies below 768, where the shell is full bleed
      and a gutter has to come from somewhere.

   The gap goes on the links rather than the flex container on purpose:
   the bar's ::before/::after spacers are flex items too, so a container
   gap would push the first tab inward by another 32px and undo (4).

   The bar keeps its background and hairline. The reference's bar is
   transparent because it is not full bleed; ours is, and the pinned
   state needs something to sit on. Sticky offset is untouched: we pin
   below our own sticky header (76/60px), the reference pins at 0 because
   its header leaves. That is a header decision — Phase C.
   ===================================================================== */

.hnps-proptabs {
	min-height: 44px;
	gap: 0;
	--hnps-tabs-inset-min: 16px;
}

.hnps-proptabs::before,
.hnps-proptabs::after {
	width: max(var(--hnps-tabs-inset-min), calc(50vw - var(--hnps-shell, 100vw) / 2));
}

.hnps-proptabs__link {
	padding: 0 8px;
	font-size: 14px;
	font-weight: 400;
	border-bottom: 0;
	margin-bottom: 0;
}

.hnps-proptabs__link + .hnps-proptabs__link { margin-left: 16px; }

.hnps-proptabs__link.is-current {
	font-weight: 600;
	color: var(--hnp-color-ink);
}

@media (min-width: 768px) {
	.hnps-proptabs { --hnps-tabs-inset-min: 0px; }
	.hnps-proptabs__link { padding: 0 16px; font-size: 16px; }
	.hnps-proptabs__link + .hnps-proptabs__link { margin-left: 32px; }
}

/* =====================================================================
   PARITY PASS (2026-09-14) — Phase A4 identity / intro
   The reference opens on the photographs. Its order is breadcrumb,
   gallery, tab bar, and only then the property's name — which reads as
   the heading of the introduction rather than a second title stacked
   above a picture. Ours put the whole identity block first. The order
   now matches (see HNPS_Property_View::sections(); the breadcrumb split
   out into parts/property-crumbs.php so it could stay on top while the
   name moved down).

   That move left the header clearance on the wrong block: it belonged
   to whatever comes first, which is now the breadcrumb. Hence the
   padding swap below. Measured gap from the tab bar to the name there
   is 37px; 32px is the nearest step on our scale.

   The name itself reads 48px/56px on two lines there against our
   64px/1.05. Size and leading follow; the typeface and ink stay ours
   (they use a red serif, we use the HanoPalais display face).
   ===================================================================== */

.hnps-propdetail__crumbs { padding-top: calc(var(--hnp-header-h-mobile) + var(--hnp-space-4)); }

/* The tab bar already carries 24px below it, so this is the remainder of
   the 37px the reference leaves between the bar and the name. */
.hnps-propdetail__top { padding-top: var(--hnp-space-4); }

.hnps .hnps-propid__title {
	font-size: clamp(2.125rem, 5.6vw, 3rem);
	line-height: 1.167;
}

@media (min-width: 1024px) {
	.hnps-propdetail__crumbs { padding-top: calc(var(--hnp-header-h) + var(--hnp-space-4)); }
}

/* =====================================================================
   PARITY PASS (2026-09-14) — Phase A5 amenities
   The reference lays eight amenities out as four columns of two inside
   its 760px column: 184px columns with an 8px gutter, ~22px between
   rows, a 26px icon, a 15px label, and a 24px heading. Two mobile
   columns below that.

   Ours had drifted to `auto-fill, minmax(190px, 1fr)`, which lands on
   three columns in our 718px column, with a 20px icon and a 14px label.

   Note this is mostly geometry: Base 8 carries two real amenities
   against the reference's eight, and nothing here invents any. Four
   columns simply leave the remaining cells empty, which is the honest
   way for sparse data to read.
   ===================================================================== */

.hnps-propamenities .hnps-amenities,
.hnps-amenities-all .hnps-amenities {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hnp-space-5) 8px;
}

.hnps-propamenities .hnps-amenity { font-size: 15px; gap: 12px; }
.hnps-propamenities .hnps-amenity__icon { width: 26px; height: 26px; }

@media (min-width: 1024px) {
	.hnps-propamenities .hnps-amenities,
	.hnps-amenities-all .hnps-amenities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =====================================================================
   PARITY PASS (2026-09-14) — Phase A6 location / map
   The reference holds its map at a constant 192px tall on every desktop
   and tablet width — 400px wide at 1440 and 1280, 350px at 1024 and
   768 — and below 430 drops the map entirely for a 56px rounded row
   carrying the address, linking out to Google Maps.

   Ours was `aspect-ratio: 4/3`, so the frame grew with its column: 317px
   at 1440, and 525px at 768 where the layout stacks and the map takes
   the full 700px width. Half a screen of empty placeholder. On a phone
   it still reserved ~230px of blank sand before the visitor had asked
   for anything.

   Fixed height now, and a compact resting row on phones. The row stays
   a real control — it is still the click-to-load button, so no map is
   fetched until asked, and `.is-loaded` reopens it to a usable height.

   Not changed here: at 768 the reference still runs two columns while
   we stack, so our map is 700 wide against their 350. That is the intro
   grid's breakpoint, which also governs the amenity columns — it moves
   with G-S1, not from inside the map rules.
   ===================================================================== */

.hnps-propmap {
	aspect-ratio: auto;
	/* OFB-010: the map is on the page from the start, so it gets a frame a
	   visitor can actually read a neighbourhood in. */
	height: 250px;
}

@media (max-width: 767px) {
	.hnps-propmap:not(.is-loaded) {
		height: 56px;
		border-radius: 8px;
	}
	
	
	/* No room for the privacy note in a 56px row; the label still says the
	   map has to be asked for. */
	
	.hnps-propmap.is-loaded { height: 220px; }
}

/* CFB-009 — lightbox controls: centred on the photograph at every width, solid enough
   to be seen on any image, never below the fold of a phone screen. */
.hnps-lightbox .hnps-lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255, 255, 255, 0.92); border-color: transparent; color: var(--hnp-color-ink, #0e1a26); font-size: 30px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.hnps-lightbox .hnps-lightbox__nav:hover { background: #fff; }
@media (max-width: 699px) {
	.hnps-lightbox .hnps-lightbox__stage { padding: 0 8px 24px; }
	.hnps-lightbox .hnps-lightbox__nav { width: 44px; height: 44px; }
	.hnps-lightbox .hnps-lightbox__nav--prev { left: 12px; }
	.hnps-lightbox .hnps-lightbox__nav--next { right: 12px; }
}
.hnps-lightbox button.hnps-lightbox__nav { min-width: 0; padding: 0; border-radius: 50%; }

/* CFB-028 — tall enough for Google to show the listing card (name, address, rating) when the column is ≥ 400px wide. */
.hnps .hnps-propmap, .hnps-propmap.is-loaded { height: 360px; min-height: 360px; }
.hnps-propmap iframe { width: 100%; height: 100%; }
@media (max-width: 767px) { .hnps .hnps-propmap, .hnps-propmap.is-loaded { height: 300px; min-height: 300px; } }

/* KVB-097 — a small line icon before each nearby place (category from the Owner's "Nhóm"). */
.hnps-place__icon { flex: 0 0 18px; width: 18px; height: 18px; align-self: flex-start; margin-top: max(0px, calc((1.45em - 18px) / 2)); margin-right: calc(8px - var(--hnp-space-3)); color: var(--hnp-color-accent-text, #7d5636); }
.hnps-place__icon[data-cat="pin"] { color: var(--hnps-muted); }
.hnps-place__icon + .hnps-place__name { flex: 1 1 auto; }

/* ULT-087 (Owner feedback #13 "sắp xếp thẳng phần địa điểm xung quanh"): a flex row with space-between started
   every address where its name happened to end. A grid puts every address on the same vertical line; the category
   always sits under the name; the icon keeps its own column. Narrow screens stack the address under the name. */
.hnps-place {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) auto;
	grid-template-areas: "name addr dist";
	column-gap: var(--hnp-space-4);
	align-items: start;
	justify-content: stretch;
}
.hnps-place:has(> .hnps-place__icon) {
	grid-template-columns: 18px minmax(0, 1fr) minmax(0, 0.9fr) auto;
	grid-template-areas: "icon name addr dist";
	column-gap: 10px;
}
.hnps-place > .hnps-place__icon { grid-area: icon; margin: 2px 0 0; }
.hnps-place > .hnps-place__name { grid-area: name; }
.hnps-place > .hnps-place__addr { grid-area: addr; text-align: left; color: var(--hnp-color-text); }
.hnps-place > .hnps-place__dist { grid-area: dist; text-align: right; white-space: nowrap; }
.hnps-place__group { display: block; margin: 2px 0 0; }
@media (max-width: 479px) {
	.hnps-place { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name dist" "addr addr"; row-gap: 2px; }
	.hnps-place:has(> .hnps-place__icon) { grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "icon name dist" ". addr addr"; }
}

/* --- Trải nghiệm: what a guest can do here, beyond the room -------------------------------------------- */
.hnps-xp {
	margin-top: var(--hnp-space-7);
	scroll-margin-top: 120px;
}

.hnps-xp__inner { display: grid; gap: var(--hnp-space-5); }

.hnps-xp__eyebrow {
	margin: 0 0 var(--hnp-space-1);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hnps-accent-text, var(--hnp-color-accent-text));
}

.hnps .hnps-xp__title {
	margin: 0;
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-2);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	max-width: 20ch;
	text-wrap: balance;
}

.hnps-xp__lead { margin: var(--hnp-space-2) 0 0; max-width: 52ch; }

/* One large story, the others beside it — a place, not a product grid. */
.hnps-xp__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hnp-space-4);
}

.hnps-xp__grid.is-single { grid-template-columns: minmax(0, 1fr); }

.hnps-xp__item {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--hnps-line);
	border-radius: var(--hnp-radius-panel);
	background: var(--hnp-color-surface);
	min-height: 220px;
}

.hnps-xp__item--hero { grid-row: span 2; }
.hnps-xp__grid.is-single .hnps-xp__item--hero { grid-row: auto; }

.hnps-xp__media { margin: 0; overflow: hidden; background: var(--hnp-color-surface-2, #f3f1ee); }

.hnps-xp__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	transition: transform 420ms ease;
}

.hnps-xp__item--hero .hnps-xp__img { aspect-ratio: 4 / 3.4; }

@media (hover: hover) {
	.hnps-xp__item:hover .hnps-xp__img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
	.hnps-xp__img { transition: none; }
	.hnps-xp__item:hover .hnps-xp__img { transform: none; }
}

.hnps-xp__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: var(--hnp-space-4);
}

.hnps-xp__tag {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hnp-color-muted, #6b6560);
}

.hnps .hnps-xp__name {
	margin: 0;
	font-family: var(--hnp-font-display);
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.hnps-xp__item--hero .hnps-xp__name { font-size: 1.5rem; }
.hnps-xp__text { margin: 0; max-width: 54ch; }
.hnps-xp__note { margin: 0; font-size: 0.875rem; color: var(--hnp-color-muted, #6b6560); }

.hnps-xp__cta {
	align-self: flex-start;
	margin-top: 4px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.hnps-xp__item.is-textonly { min-height: 0; }

@media (max-width: 900px) {
	.hnps-xp__grid { grid-template-columns: minmax(0, 1fr); }
	.hnps-xp__item--hero { grid-row: auto; }
	.hnps-xp__item--hero .hnps-xp__img { aspect-ratio: 4 / 3; }
	.hnps-xp__item--hero .hnps-xp__name { font-size: 1.3125rem; }
}

/* GLF-015: (1) the theme's generic `button:focus` background (Astra yellow) won over the lightbox controls, so the close
   button turned yellow the moment it received focus on opening; (2) a tall photo could exceed the screen, cutting its
   bottom (percent max-height does not bind inside the grid cell here) — the image is capped by the viewport instead. */
.hnps-lightbox .hnps-lightbox__close:focus,
.hnps-lightbox .hnps-lightbox__close:active,
.hnps-lightbox .hnps-lightbox__nav:focus,
.hnps-lightbox .hnps-lightbox__nav:active {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.3);
}
.hnps-lightbox .hnps-lightbox__img {
	max-height: calc(100vh - 150px);
	max-height: calc(100dvh - 150px);
}

/* GLF-063: a Base page now has the solid, in-flow header (not the transparent hero header), so the space that used to
   clear a header drawn over the page is only the page's own spacing. */
body.hnps-property-page:not(.hnps-hero-page) .hnps-propdetail__top { padding-top: var(--hnp-space-5); }
body.hnps-property-page:not(.hnps-hero-page) .hnps-propdetail__crumbs { padding-top: var(--hnp-space-4); }
/* GLF-063: Astra prints an empty entry header (no title — the Base template has its own H1) with a 60px top margin; on a
   Base page it only pushed the breadcrumb down. */
body.hnps-property-page .entry-header.ast-no-title { display: none; }

/* RFA-FINAL (UX audit MAJOR-1): the appended Trải nghiệm section sits in the page container, spaced like its neighbours. */
.hnps--propdetail .hnps-xp-shell { margin-block: var(--hnp-space-7, 48px); }
.hnps--propdetail .hnps-xp-shell .hnps-xp { margin-top: 0; }

/* ================================================================ OFV2 (Owner DOCX 2026-10-01)
   Gallery inside the page frame (OFV2-016), active-tab underline (OFV2-017). Design tokens: hanopalais-ui.css. */

/* ---- gallery frame: same left/right edges as breadcrumb, tabs and content ---- */
.hnps-propshots-frame { margin-bottom: 0; }
.hnps-propshots.hnps-propshots--framed { margin-bottom: var(--hnp-space-4); }
.hnps-propshots--framed .hnps-propshots__lead,
.hnps-propshots--framed .hnps-propshots__cell { border-radius: var(--hnp-radius-small); overflow: hidden; }
.hnps-propshots--framed .hnps-propshots__all {
	border: var(--hnp-border-subtle);
	border-radius: var(--hnp-radius-pill);
	box-shadow: var(--hnp-shadow-card);
}
@media (min-width: 700px) {
	/* Desktop mosaic: one lead + 2×2, one height for the whole block so every crop is stable. */
	.hnps-propshots.hnps-propshots--framed:not(.hnps-propshots--single) {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 8px;
		height: clamp(320px, 33vw, 460px);
		grid-template-rows: 100%;
	}
	.hnps-propshots--framed:not(.hnps-propshots--single) .hnps-propshots__lead { height: 100%; }
	.hnps-propshots--framed .hnps-propshots__grid { gap: 8px; }
	.hnps-propshots--framed.hnps-propshots--single .hnps-propshots__lead { border-radius: var(--hnp-radius-large); }
}
@media (max-width: 699px) {
	/* Mobile: one swipeable photo at a time, framed with the page gutter and a rounded edge. */
	.hnps-propshots--framed .hnps-propshots__track { border-radius: var(--hnp-radius-large); }
	.hnps-propshots--framed .hnps-propshots__lead,
	.hnps-propshots--framed .hnps-propshots__cell { border-radius: 0; aspect-ratio: 4 / 3; }
}

/* ---- tabs: inside the frame, clear active underline (keyboard focus keeps its own ring) ---- */
.hnps-proptabs:not(.is-pinned) {
	width: auto;
	max-width: none;
	margin-inline: 0;
	background: transparent;
}
.hnps-proptabs:not(.is-pinned)::before,
.hnps-proptabs:not(.is-pinned)::after { display: none; }
.hnps-proptabs .hnps-proptabs__link { position: relative; min-height: 48px; }
.hnps-proptabs .hnps-proptabs__link::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: transparent;
	transition: background-color var(--hnp-dur) var(--hnp-ease);
}
.hnps-proptabs .hnps-proptabs__link:hover::after { background: var(--hnp-color-border); }
.hnps-proptabs .hnps-proptabs__link.is-current { color: var(--hnp-color-ink); font-weight: 600; }
.hnps-proptabs .hnps-proptabs__link.is-current::after { background: var(--hnp-color-accent-text); }
.hnps-proptabs .hnps-proptabs__link[aria-current="location"]::after { background: var(--hnp-color-accent-text); }
@media (min-width: 768px) {
	.hnps-proptabs .hnps-proptabs__link::after { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.hnps-proptabs .hnps-proptabs__link::after { transition: none; }
}

/* ---- OFV2-025 check-in policy drawer (right side; bottom sheet on phones) ---- */
.hnps-policydrawer { position: fixed; inset: 0; z-index: 100150; }
.hnps-policydrawer[hidden] { display: none; }
.hnps-policydrawer__backdrop { position: absolute; inset: 0; background: var(--hnp-modal-backdrop); }
.hnps-policydrawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	background: var(--hnp-surface);
	box-shadow: var(--hnp-shadow-modal);
	color: var(--hnp-color-text);
	font-family: var(--hnp-font-body);
	transform: translateX(16px);
	opacity: 1; /* OFV3 independent audit: 0.98 let the page (a CTA, the chat bubble) show through the drawer. */
	transition: transform var(--hnp-dur) var(--hnp-ease-out);
}
.hnps-policydrawer.is-open .hnps-policydrawer__panel { transform: none; }
.hnps-policydrawer__panel:focus { outline: none; }
.hnps-policydrawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 24px; border-bottom: var(--hnp-border-subtle); }
.hnps-policydrawer .hnps-policydrawer__title { margin: 0; font: var(--hnp-type-h3); color: var(--hnp-color-ink); }
.hnps-policydrawer button.hnps-policydrawer__close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--hnp-surface-muted); color: var(--hnp-color-ink); cursor: pointer; }
.hnps-policydrawer button.hnps-policydrawer__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hnps-policydrawer button.hnps-policydrawer__close:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 2px; }
.hnps-policydrawer__scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 32px; }
.hnps-policydrawer__eyebrow { margin: 0 0 12px; font: var(--hnp-type-meta); color: var(--hnp-color-muted); }
.hnps-policydrawer__card { margin: 0 0 24px; padding: 18px 20px; border-radius: var(--hnp-radius-medium); background: var(--hnp-surface-muted); }
.hnps-policydrawer__tag { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: var(--hnp-radius-pill); background: rgba(14, 26, 38, 0.06); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hnp-color-ink-2); }
.hnps-policydrawer .hnps-policydrawer__h { margin: 0 0 12px; font: var(--hnp-type-h3); font-size: 1.0625rem; color: var(--hnp-color-ink); }
.hnps-policydrawer__facts { margin: 0; display: grid; gap: 10px; }
.hnps-policydrawer__facts div { display: grid; gap: 2px; }
.hnps-policydrawer__facts dt { font-size: var(--hnp-text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hnp-color-muted); }
.hnps-policydrawer__facts dd { margin: 0; font-size: var(--hnp-text-sm); line-height: 1.55; }
.hnps-policydrawer__acc { border: var(--hnp-border-subtle); border-radius: var(--hnp-radius-medium); overflow: hidden; }
.hnps-policydrawer__item + .hnps-policydrawer__item { border-top: var(--hnp-border-subtle); }
.hnps-policydrawer__item > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 52px; padding: 12px 16px;
	font-weight: 600; font-size: var(--hnp-text-sm); color: var(--hnp-color-ink);
	list-style: none; cursor: pointer;
}
.hnps-policydrawer__item > summary::-webkit-details-marker { display: none; }
.hnps-policydrawer__item > summary::after { content: "+"; flex: 0 0 auto; font-size: 1.25rem; font-weight: 400; line-height: 1; color: var(--hnp-color-accent-text); }
.hnps-policydrawer__item[open] > summary::after { content: "\2212"; }
.hnps-policydrawer__item > summary:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: -2px; }
.hnps-policydrawer__body { padding: 0 16px 16px; font-size: var(--hnp-text-sm); line-height: 1.65; color: var(--hnp-color-ink-2); }
.hnps-policydrawer__body > :first-child { margin-top: 0; }
.hnps-policydrawer__body > :last-child { margin-bottom: 0; }
.hnps-policydrawer__body ul, .hnps-policydrawer__body ol { margin: 0 0 10px; padding-left: 20px; }
.hnps-policydrawer__body li + li { margin-top: 4px; }
.hnps-policydrawer__more { margin: 20px 0 0; }
@media (max-width: 599px) {
	.hnps-policydrawer__panel { top: auto; left: 0; width: 100%; max-height: 90vh; border-radius: var(--hnp-radius-large) var(--hnp-radius-large) 0 0; transform: translateY(16px); }
	.hnps-policydrawer__scroll { padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.hnps-policydrawer__panel { transition: none; transform: none; }
}

/* MFP Part G (phones ≤ 767 px): the base's own photo tiles show the whole photograph, centred on sand — portrait photos lost
   up to 44 % in the 4:3 tile before. The tile keeps its size, so the layout does not move. The lightbox already used contain. */
@media (max-width: 767px) {
	.hnps .hnps-propshots__img,
	.hnps .hnps-propgallery__img { object-fit: contain; object-position: center; }
}

/* AMD-T28 web fixes — BEGIN (F-01, F-06) */
/* F-01: the tab bar has margin-bottom var(--hnp-space-5) (24 px). When the bar is pinned (position: fixed) its margin leaves the flow
   but the spacer that holds its place only had the bar's height, so every section below jumped up 24 px on pin and down 24 px on
   unpin (CLS 0.11 - 0.22 at >= 1280 px). The spacer now carries the same margin, so the layout is identical pinned or not. */
.hnps-proptabs__spacer { margin-bottom: var(--hnp-space-5); }
/* F-06: target size >= 24 px (WCAG 2.2 AA 2.5.8) for the map link, the brand link and "Xem tất cả … địa điểm".
   :where() = zero specificity: only fills the gap on desktop, never lowers the 44 px the touch rules already give. */
:where(.hnps-propid__map, .hnps-nearby__more) { min-height: 24px; }
:where(.hnps-propid__brand a) { display: inline-flex; align-items: center; min-height: 24px; }
/* AMD-T28 web fixes — END */

/* FB15-R01 / FB15-R02 — BEGIN
   R02: "Tất cả ảnh" = category thumbnail strip + masonry that keeps each photograph's own proportions.
   R01: the Shopping Room section. Reuses the existing tokens, radius, pill/ink/accent colours. */

/* ----------------------------------------------------- R02 category strip */
.hnps-catstrip {
	display: flex;
	gap: var(--hnp-space-3);
	margin: 0 0 var(--hnp-space-5);
	padding: 4px 2px 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.hnps-catstrip__tab {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: grid;
	grid-template-columns: 1fr auto;
	align-content: start;
	gap: 6px 8px;
	width: 120px;
	padding: 4px;
	border: 2px solid transparent;
	border-radius: var(--hnp-radius-card);
	background: transparent;
	color: var(--hnp-color-ink-2);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--hnp-dur) var(--hnp-ease), background var(--hnp-dur) var(--hnp-ease);
}

.hnps-catstrip__tab:hover { border-color: var(--hnps-line); }
.hnps-catstrip__tab:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 2px; }
.hnps-catstrip__tab.is-current { border-color: var(--hnp-color-ink); background: var(--hnp-color-surface); color: var(--hnp-color-ink); }

.hnps-catstrip__thumb {
	grid-column: 1 / -1;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: calc(var(--hnp-radius-card) - 2px);
	background: var(--hnp-color-sand);
}

.hnps .hnps-catstrip__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hnps .hnps-catstrip__img.error { display: none; }

.hnps-catstrip__label { font-size: var(--hnp-text-sm); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.hnps-catstrip__tab.is-current .hnps-catstrip__label { font-weight: 700; }
.hnps-catstrip__n { align-self: start; font-size: var(--hnp-text-xs); font-variant-numeric: tabular-nums; color: var(--hnp-color-ink-2); }

@media (min-width: 1024px) {
	.hnps-catstrip { flex-wrap: wrap; overflow-x: visible; }
	.hnps-catstrip__tab { width: 132px; }
}

/* --------------------------------------------------------- R02 masonry */
.hnps-propgallery { display: block; column-count: 2; column-gap: var(--hnp-space-3); }

@media (min-width: 1024px) {
	.hnps-propgallery { column-count: 3; column-gap: var(--hnp-space-4); }
}

.hnps-propgallery__item {
	display: block;
	aspect-ratio: auto;
	margin: 0 0 var(--hnp-space-3);
	break-inside: avoid;
}

.hnps-propgallery__item[hidden] { display: none; }

.hnps .hnps-propgallery__img { display: block; height: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
	.hnps-catstrip__tab { transition: none; }
}

/* ---------------------------------------------------- R01 Shopping Room */
.hnps-shopping { margin-top: var(--hnp-space-7); padding: var(--hnp-space-6) 0; background: var(--hnp-color-sand); }

.hnps-shopping__inner { display: grid; gap: var(--hnp-space-5); align-items: start; }

.hnps .hnps-shopping__title {
	margin: 0 0 var(--hnp-space-4);
	font-family: var(--hnp-font-display);
	font-size: var(--hnp-heading-2);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hnp-color-ink);
}

.hnps-shopping__text { margin: 0 0 var(--hnp-space-3); font-size: var(--hnp-text-base); line-height: 1.65; color: var(--hnp-color-ink-2); }

.hnps-shopping__features { list-style: none; margin: var(--hnp-space-4) 0 0; padding: 0; display: grid; gap: var(--hnp-space-2); }
.hnps-shopping__features li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--hnp-text-base); color: var(--hnp-color-ink); }
.hnps-shopping__features .hnp-icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--hnps-accent-text, var(--hnp-color-accent-text)); }

.hnps-shopping__photos { display: grid; gap: var(--hnp-space-3); min-width: 0; }

.hnps-shopping__lead,
.hnps-shopping__thumb { position: relative; margin: 0; overflow: hidden; border-radius: var(--hnp-radius-card); background: var(--hnp-color-surface); }

.hnps-shopping__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.hnps-shopping__open:focus-visible { outline: 3px solid var(--hnp-color-accent); outline-offset: -3px; }

.hnps .hnps-shopping__img { display: block; width: 100%; height: auto; }
.hnps .hnps-shopping__lead .hnps-shopping__img { max-height: 560px; object-fit: contain; }
.hnps .hnps-shopping__thumb .hnps-shopping__img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.hnps .hnps-shopping__img.error { display: none; }

.hnps-shopping__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hnp-space-3); }

.hnps-shopping__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(14, 26, 38, 0.55);
	color: #ffffff;
	font-size: var(--hnp-heading-3, 1.5rem);
	font-weight: 700;
	pointer-events: none;
}

.hnps-shopping__all { justify-self: start; padding: 8px 0; border: 0; background: none; cursor: pointer; font-family: inherit; min-height: 44px; }

@media (min-width: 1024px) {
	.hnps-shopping { padding: var(--hnp-space-7) 0; }
	.hnps-shopping__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--hnp-space-7); }
	.hnps-shopping__inner--text { grid-template-columns: minmax(0, 46rem); }
}
/* FB15-R01 / FB15-R02 — END */

/* FB16-01 — BEGIN
   The expanded gallery ("Xem tất cả N ảnh"): an overlay above the header (z-index 500) and below the photograph viewer (1000), the
   page's own tokens, the R02 category strip reused for the tabs, a masonry grid that keeps each photograph's proportions.
   Desktop: a centred panel on a dim backdrop. Under 700px: full screen. The admin bar offset keeps it clear of the WP toolbar. */
.hnps-gal {
	position: fixed;
	inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0;
	z-index: 990;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(9, 15, 22, 0.62);
}

.hnps-gal[hidden] { display: none; }
html.hnps-gal-open { overflow: hidden; }

.hnps-gal__panel {
	display: flex;
	flex-direction: column;
	width: min(1180px, 100%);
	height: min(100%, 920px);
	overflow: hidden;
	border-radius: var(--hnp-radius-large);
	background: var(--hnp-color-surface);
	color: var(--hnp-color-ink);
	box-shadow: 0 30px 80px -30px rgba(9, 15, 22, 0.7);
}

.hnps-gal__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hnp-space-3);
	padding: 14px 20px 10px;
}

.hnps .hnps-gal__title {
	margin: 0;
	min-width: 0;
	font-family: var(--hnp-font-display);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--hnp-color-ink);
	overflow-wrap: anywhere;
}

.hnps-gal__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hnps-line);
	border-radius: 50%;
	background: var(--hnp-color-surface);
	color: var(--hnp-color-ink);
	cursor: pointer;
}

.hnps-gal__close svg { width: 20px; height: 20px; }
/* The theme's generic `button:hover / button:focus` background (Astra brown, specificity 0,1,1) would paint these controls (same trap as GLF-015 on the viewer),
   so every state is stated here at a higher specificity. */
.hnps-gal button.hnps-gal__close,
.hnps-gal button.hnps-gal__close:focus,
.hnps-gal button.hnps-gal__close:active { background: var(--hnp-color-surface); color: var(--hnp-color-ink); border: 1px solid var(--hnps-line); border-radius: 50%; min-width: 0; box-shadow: none; }
.hnps-gal button.hnps-gal__close:hover { background: var(--hnp-color-sand); color: var(--hnp-color-ink); }
.hnps-gal button.hnps-gal__close:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 2px; }
.hnps-gal button.hnps-catstrip__tab,
.hnps-gal button.hnps-catstrip__tab:focus,
.hnps-gal button.hnps-catstrip__tab:active { background: transparent; color: var(--hnp-color-ink-2); border: 2px solid transparent; box-shadow: none; }
.hnps-gal button.hnps-catstrip__tab:hover { background: transparent; color: var(--hnp-color-ink); border-color: var(--hnps-line); }
.hnps-gal button.hnps-catstrip__tab.is-current,
.hnps-gal button.hnps-catstrip__tab.is-current:hover,
.hnps-gal button.hnps-catstrip__tab.is-current:focus { background: var(--hnp-color-surface); color: var(--hnp-color-ink); border-color: var(--hnp-color-ink); }
.hnps-gal button.hnps-catstrip__tab:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 2px; }
.hnps-gal button.hnps-gal__open,
.hnps-gal button.hnps-gal__open:hover,
.hnps-gal button.hnps-gal__open:focus,
.hnps-gal button.hnps-gal__open:active { background: transparent; border: 0; box-shadow: none; }
.hnps-gal button.hnps-gal__arrow,
.hnps-gal button.hnps-gal__arrow:focus,
.hnps-gal button.hnps-gal__arrow:active { background: rgba(14, 26, 38, 0.62); color: #ffffff; border: 0; min-width: 0; box-shadow: none; }
.hnps-gal button.hnps-gal__arrow:hover { background: rgba(14, 26, 38, 0.82); color: #ffffff; }
/* Tab labels: sentence case like the reference, not the button's capitals with wide tracking (which broke "Caldera" mid-word). */
.hnps-gal .hnps-catstrip__label { text-transform: none; letter-spacing: 0; font-size: var(--hnp-text-sm); overflow-wrap: break-word; }
.hnps-gal .hnps-catstrip__n { text-transform: none; letter-spacing: 0; }
/* The photograph viewer opened from the gallery is solid, so the gallery behind does not ghost through it. */
html.hnps-gal-open .hnps-lightbox { background: #090f16; }

.hnps-gal__tabswrap { position: relative; flex: 0 0 auto; padding: 0 20px; border-bottom: 1px solid var(--hnps-line); }

/* The R02 strip, kept on one scrollable line at every width (it wraps in the page; in the overlay it scrolls). */
.hnps-gal .hnps-gal__tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin: 0; padding: 4px 2px 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.hnps-gal .hnps-catstrip__tab { width: 132px; min-height: 44px; }

.hnps-gal__arrow {
	position: absolute;
	top: 38px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(14, 26, 38, 0.62);
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.hnps-gal__arrow--prev { left: 24px; }
.hnps-gal__arrow--next { right: 24px; }
@media (hover: hover) and (min-width: 700px) { .hnps-gal__arrow:not([hidden]) { display: inline-flex; } }

.hnps-gal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; }

.hnps-gal__grid { column-count: 3; column-gap: var(--hnp-space-3); }
.hnps-gal__item { display: block; margin: 0 0 var(--hnp-space-3); break-inside: avoid; border-radius: var(--hnp-radius-small); overflow: hidden; background: var(--hnp-color-sand); }
.hnps-gal__item[hidden] { display: none; }

.hnps-gal__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.hnps-gal__open:focus-visible { outline: 3px solid var(--hnp-color-accent); outline-offset: -3px; }
.hnps .hnps-gal__img { display: block; width: 100%; height: auto; transition: transform 500ms var(--hnp-ease); }
.hnps .hnps-gal__img.error { display: none; }
.hnps-gal__open:hover .hnps-gal__img { transform: scale(1.02); }

@media (max-width: 1023px) { .hnps-gal__grid { column-count: 2; } }

@media (max-width: 699px) {
	.hnps-gal { padding: 0; background: var(--hnp-color-surface); }
	.hnps-gal__panel { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
	.hnps-gal__head { padding: 10px 12px 8px 16px; }
	.hnps-gal__tabswrap { padding: 0 12px; }
	.hnps-gal__body { padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); }
	.hnps-gal .hnps-catstrip__tab { width: 112px; }
	.hnps-gal__grid { column-gap: 8px; }
	.hnps-gal__item { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) { .hnps .hnps-gal__img { transition: none; } }
/* FB16-01 — END */
/* T-0409 (SEO-6) — the area and stay-type values in the quick facts link to their hub pages: same text, underlined so the link
 * does not rely on colour alone (WCAG 1.4.1), 24 px target like the brand link above. */
.hnps-propfacts dd a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hnps-muted); display: inline-flex; align-items: center; min-height: 24px; }
.hnps-propfacts dd a:hover, .hnps-propfacts dd a:focus-visible { text-decoration-color: currentColor; }
/* T-0409 — END */
/* GAL17 — BEGIN (Owner 17/10: "khoảng cách giữa các ảnh hợp lý như ở M Village, phần chữ … sắp xếp sao cho hợp lý")
   The expanded gallery only (everything below is scoped to .hnps-gal). One padding for header / tabs / photographs, a plain close
   icon, category tabs = equal thumbnails with ONE label line "Name (n)" under them (long names end in "…", the full name is in the
   tab's title + aria-label), the current tab in the accent text colour with a ring on its thumbnail (no boxed card), round arrows on
   desktop and swipe on touch; photographs = 3 / 2 columns with small even gaps (8 px, 6 px on phones) and one small radius. */
.hnps-gal {
	--hnps-gal-pad: 24px;
	--hnps-gal-gap: 8px;
	--hnps-gal-radius: 6px; /* literal: --hnp-radius-md is 6px in the tokens but redefined to 12px later in hanopalais-ui.css */
	--hnps-gal-thumb-w: 168px;
	--hnps-gal-thumb-h: 108px;
	--hnps-gal-tabgap: 12px;
}

.hnps-gal .hnps-gal__head { padding: 16px calc(var(--hnps-gal-pad) - 10px) 12px var(--hnps-gal-pad); border-bottom: 0; }

/* Plain close icon (no ring), still a 44 px target; its hover / focus states keep the theme's brown out (specificity as FB16-01). */
.hnps-gal button.hnps-gal__close,
.hnps-gal button.hnps-gal__close:focus,
.hnps-gal button.hnps-gal__close:active { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--hnp-color-ink); }
.hnps-gal button.hnps-gal__close:hover { background: var(--hnp-color-sand); color: var(--hnp-color-ink); }
.hnps-gal .hnps-gal__close svg { width: 22px; height: 22px; }

/* Tabs: the strip keeps 3 px each side so the ring / focus outline of the first and last tab are not clipped by the scroller. */
.hnps-gal .hnps-gal__tabswrap { padding: 0 calc(var(--hnps-gal-pad) - 3px); }
.hnps-gal .hnps-gal__tabs { gap: var(--hnps-gal-tabgap); padding: 4px 3px 12px; scroll-padding-inline: 3px; scrollbar-width: none; }
.hnps-gal .hnps-gal__tabs::-webkit-scrollbar { display: none; }

.hnps-gal .hnps-catstrip__tab,
.hnps-gal button.hnps-catstrip__tab,
.hnps-gal button.hnps-catstrip__tab:focus,
.hnps-gal button.hnps-catstrip__tab:active,
.hnps-gal button.hnps-catstrip__tab:hover,
.hnps-gal button.hnps-catstrip__tab.is-current,
.hnps-gal button.hnps-catstrip__tab.is-current:hover,
.hnps-gal button.hnps-catstrip__tab.is-current:focus {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: var(--hnps-gal-thumb-w);
	min-width: 0;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hnp-color-ink-2);
}

.hnps-gal .hnps-catstrip__thumb {
	flex: 0 0 auto;
	width: 100%;
	height: var(--hnps-gal-thumb-h);
	aspect-ratio: auto;
	border-radius: var(--hnps-gal-radius);
	transition: box-shadow var(--hnp-dur) var(--hnp-ease), opacity var(--hnp-dur) var(--hnp-ease);
}

.hnps-gal button.hnps-catstrip__tab:hover .hnps-catstrip__thumb { opacity: 0.88; }
.hnps-gal button.hnps-catstrip__tab.is-current .hnps-catstrip__thumb { opacity: 1; box-shadow: 0 0 0 2px var(--hnp-color-surface), 0 0 0 3px var(--hnps-accent-text, var(--hnp-color-accent-text)); }

/* ONE line: the name shrinks with "…", the count never does. */
.hnps-gal .hnps-catstrip__line {
	display: flex;
	align-items: baseline;
	gap: 0.25em;
	min-width: 0;
	white-space: nowrap;
	font-size: 0.875rem;
	line-height: 1.35;
	font-weight: 500;
	text-align: left;
}

.hnps-gal .hnps-catstrip__label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.hnps-gal .hnps-catstrip__count { flex: 0 0 auto; }
.hnps-gal .hnps-catstrip__n { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.hnps-gal button.hnps-catstrip__tab:hover .hnps-catstrip__line { color: var(--hnp-color-ink); }
.hnps-gal button.hnps-catstrip__tab.is-current .hnps-catstrip__line { color: var(--hnps-accent-text, var(--hnp-color-accent-text)); font-weight: 600; }
.hnps-gal button.hnps-catstrip__tab.is-current .hnps-catstrip__label { font-weight: inherit; }
.hnps-gal button.hnps-catstrip__tab:focus-visible { outline: 2px solid var(--hnp-color-accent); outline-offset: 3px; border-radius: var(--hnps-gal-radius); }

/* Round arrows over the strip's ends, centred on the thumbnails (desktop with a pointer; touch swipes). */
.hnps-gal button.hnps-gal__arrow,
.hnps-gal button.hnps-gal__arrow:focus,
.hnps-gal button.hnps-gal__arrow:active {
	top: calc(4px + var(--hnps-gal-thumb-h) / 2 - 20px);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--hnp-color-ink);
	box-shadow: 0 2px 10px rgba(9, 15, 22, 0.22);
}
.hnps-gal button.hnps-gal__arrow:hover { background: #ffffff; color: var(--hnp-color-ink); }
.hnps-gal .hnps-gal__arrow svg { width: 20px; height: 20px; }
.hnps-gal .hnps-gal__arrow--prev { left: calc(var(--hnps-gal-pad) - 8px); }
.hnps-gal .hnps-gal__arrow--next { right: calc(var(--hnps-gal-pad) - 8px); }

/* Photographs: small even gaps both ways, one radius, every photograph at its own proportions (never stretched). */
.hnps-gal .hnps-gal__body { padding: 16px var(--hnps-gal-pad) 24px; }
.hnps-gal .hnps-gal__grid { column-count: 3; column-gap: var(--hnps-gal-gap); }
/* Elementor's `.elementor .elementor-widget:not(…):not(…) figure { margin: 0 }` (0,4,1) wiped the bottom margin, so photos touched vertically
   while the column gap was 12 px: this selector (0,5,1) wins without !important. */
.hnps-gal .hnps-gal__grid > figure.hnps-gal__item.hnps-gal__item:not([hidden]) { display: block; width: 100%; margin: 0 0 var(--hnps-gal-gap); padding: 0; border-radius: var(--hnps-gal-radius); break-inside: avoid; page-break-inside: avoid; }
.hnps-gal .hnps-gal__grid > .hnps-gal__item[hidden] { display: none; }
.hnps-gal button.hnps-gal__open { display: block; width: 100%; margin: 0; padding: 0; line-height: 0; border-radius: inherit; }
.hnps-gal .hnps-gal__open:focus-visible { outline-offset: -3px; }
.hnps .hnps-gal .hnps-gal__img { width: 100%; max-width: 100%; height: auto; object-fit: initial; margin: 0; border-radius: 0; }

@media (max-width: 1023px) {
	.hnps-gal { --hnps-gal-pad: 20px; --hnps-gal-thumb-w: 148px; --hnps-gal-thumb-h: 96px; }
	.hnps-gal .hnps-gal__grid { column-count: 2; }
}

@media (max-width: 699px) {
	.hnps-gal { --hnps-gal-pad: 12px; --hnps-gal-gap: 6px; --hnps-gal-thumb-w: 120px; --hnps-gal-thumb-h: 80px; --hnps-gal-tabgap: 10px; }
	.hnps-gal .hnps-gal__head { padding: 8px 2px 8px var(--hnps-gal-pad); }
	.hnps-gal .hnps-gal__body { padding: 12px var(--hnps-gal-pad) calc(20px + env(safe-area-inset-bottom)); }
	.hnps-gal .hnps-catstrip__line { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) { .hnps-gal .hnps-catstrip__thumb { transition: none; } }
/* GAL17 — END */
