/**
 * HostelBook component layer.
 *
 * Every class here is `hb-c-` prefixed, for one reason: frontend.css is 2,200
 * lines old and already owns names like `.hb-pill`. A separate namespace means
 * this file can never silently restyle something written years earlier, and
 * anyone reading markup can tell at a glance which layer a class belongs to.
 *
 * **Nothing in here is applied automatically.** These are opt-in classes; the
 * templates start using them section by section. So this file landing on its
 * own changes not one pixel of the live site - which is the point, because it
 * can then be verified before anything depends on it.
 *
 * Colours, radii, shadows and type all come from the tokens in frontend.css.
 * There is deliberately not a single hex value below: a hardcoded colour here
 * would be invisible to the Elementor style controls, which re-theme a section
 * by writing those same tokens onto the widget wrapper.
 *
 * @package HostelBook
 */

/* ------------------------------------------------------------------ type */

/* Scoped to the plugin's own containers, never to body. The same WordPress
   install also runs a storefront, and its typeface is not ours to change.
 *
 * `.hb-builder` is not optional here and was missed on the first pass: a
 * property page rendered through a page-builder template never gets
 * `.hb-single` at all, so a rule written only against that class applies to
 * exactly the path the live site is NOT using. Caught by reading the computed
 * font off the live page rather than trusting the stylesheet. */
.hb-single,
.hb-builder,
.hb-c-scope {
	font-family: var(--hb-font-body);
}

.hb-single h1,
.hb-single h2,
.hb-single h3,
.hb-builder h1,
.hb-builder h2,
.hb-builder h3,
.hb-c-scope h1,
.hb-c-scope h2,
.hb-c-scope h3 {
	font-family: var(--hb-font-head);
	letter-spacing: -0.015em;
}

/* Numbers only. Tabular figures are the whole reason Inter is loaded: without
   them a column of prices wanders, because a "1" is narrower than a "7". */
.hb-c-num {
	font-family: var(--hb-font-num);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ----------------------------------------------------------------- pills */

.hb-c-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 24px;
	padding: 0 10px;
	border-radius: var(--hb-radius-pill);
	font-family: var(--hb-font-num);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	background: var(--hb-surface-3);
	color: var(--hb-ink);
}

.hb-c-pill-live    { background: var(--hb-accent-soft); color: var(--hb-accent); }
.hb-c-pill-free    { background: var(--hb-free-bg);     color: var(--hb-free); }
.hb-c-pill-pending { background: var(--hb-warn-bg);     color: var(--hb-warn); }
.hb-c-pill-urgent  { background: var(--hb-danger-bg);   color: var(--hb-danger); }
.hb-c-pill-premium { background: var(--hb-premium-bg);  color: var(--hb-premium); }

/* ------------------------------------------------------------ icon tiles */

/* The rounded square that anchors an amenity or a metric. Sized by token so a
   row of them stays on one rhythm. */
.hb-c-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: var(--hb-radius-sm);
	background: var(--hb-accent-soft);
	color: var(--hb-accent);
	font-size: 18px;
	line-height: 1;
}

.hb-c-tile-plain { background: var(--hb-surface-3); color: var(--hb-muted); }

/* ------------------------------------------------------------ trust line */

/* Icon plus two lines of micro copy. Used for the reassurance strip under a
   price, where the claim matters more than the decoration. */
.hb-c-trust {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--hb-muted);
}

.hb-c-trust strong {
	display: block;
	color: var(--hb-ink);
	font-size: 13px;
	font-weight: 600;
}

/* --------------------------------------------------------------- surface */

/* The standard card. Everything on the page that is "a thing" sits in one. */
.hb-c-card {
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	padding: var(--hb-space-lg);
	box-shadow: var(--hb-shadow);
}

/* Focal containers - the booking panel, a hero metric - sit one step larger
   and rounder so they read as the thing to look at first. */
.hb-c-card-focal {
	border-radius: var(--hb-radius-xl);
	padding: var(--hb-space-xl);
}

/* Hover lift is for cards that are actually a link. A static card that moves
   under the cursor promises a click that never happens. */
.hb-c-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: box-shadow var(--hb-transition), border-color var(--hb-transition), transform var(--hb-transition);
}

.hb-c-card-link:hover {
	border-color: var(--hb-accent-line);
	box-shadow: var(--hb-shadow-md);
	transform: translateY(-2px);
}

/* -------------------------------------------------------- section header */

/* Title, one line of plain-language context, and an optional action on the
   right. The note is not decoration: it is where a screen explains itself. */
.hb-c-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--hb-space-md);
	margin-bottom: var(--hb-space-md);
	flex-wrap: wrap;
}

.hb-c-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.hb-c-head p {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-c-head-action {
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-accent);
	text-decoration: none;
	white-space: nowrap;
}

.hb-c-head-action:hover { text-decoration: underline; }

/* ------------------------------------------------------------- buttons */

.hb-c-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: var(--hb-radius);
	font-family: var(--hb-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--hb-transition), border-color var(--hb-transition), color var(--hb-transition);
}

.hb-c-btn:focus-visible {
	outline: none;
	box-shadow: var(--hb-ring);
}

.hb-c-btn-primary {
	background: var(--hb-accent);
	color: var(--hb-accent-ink);
}

.hb-c-btn-primary:hover { background: var(--hb-accent-dark); color: var(--hb-accent-ink); }

.hb-c-btn-secondary {
	background: var(--hb-surface);
	border-color: var(--hb-border);
	color: var(--hb-ink);
}

.hb-c-btn-secondary:hover { background: var(--hb-surface-2); border-color: var(--hb-accent-line); }

.hb-c-btn-ghost {
	background: transparent;
	color: var(--hb-muted);
}

.hb-c-btn-ghost:hover { background: var(--hb-surface-3); color: var(--hb-ink); }

.hb-c-btn-block { width: 100%; }

/* --------------------------------------------------------------- inputs */

.hb-c-field {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 10px 14px;
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	font-family: var(--hb-font-body);
	font-size: 14px;
	color: var(--hb-ink);
	transition: border-color var(--hb-transition), box-shadow var(--hb-transition);
}

.hb-c-field::placeholder { color: var(--hb-muted); }

.hb-c-field:focus {
	outline: none;
	border-color: var(--hb-accent);
	box-shadow: var(--hb-ring);
}

.hb-c-label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--hb-font-num);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--hb-muted);
}

/* ---------------------------------------------------------------- bars */

/* A ratio made visible. The label above it still carries the numbers, because
   a bar alone cannot be read by a screen reader or quoted down a phone. */
.hb-c-bar {
	height: 6px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface-3);
	overflow: hidden;
}

.hb-c-bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--hb-accent);
	transition: width .3s ease;
}

.hb-c-bar-free > span { background: var(--hb-free); }
.hb-c-bar-warn > span { background: var(--hb-warn-line); }

/* -------------------------------------------------------------- tabs */

/* Horizontal on desktop, horizontally scrollable on a phone rather than
   wrapping into a second row that pushes the content down. */
.hb-c-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--hb-border);
	scrollbar-width: none;
}

.hb-c-tabs::-webkit-scrollbar { display: none; }

.hb-c-tab {
	padding: 9px 14px;
	border: 0;
	background: transparent;
	border-radius: var(--hb-radius-sm) var(--hb-radius-sm) 0 0;
	font-family: var(--hb-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--hb-muted);
	white-space: nowrap;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.hb-c-tab:hover { color: var(--hb-ink); }

.hb-c-tab[aria-selected="true"] {
	color: var(--hb-accent);
	border-bottom-color: var(--hb-accent);
}

/* -------------------------------------------------------- breadcrumb */

.hb-c-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 var(--hb-space-md);
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-c-crumbs a { color: var(--hb-muted); text-decoration: none; }
.hb-c-crumbs a:hover { color: var(--hb-accent); text-decoration: underline; }
.hb-c-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--hb-border); }
.hb-c-crumbs [aria-current] { color: var(--hb-ink); font-weight: 600; }

/* ----------------------------------------------------------- spec strip */

/* The amenity row that carries a value, not just a name - "300 Mbps", not
   "WiFi". The number is what a student is actually comparing. */
.hb-c-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--hb-space-md);
}

.hb-c-spec {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.hb-c-spec-text { min-width: 0; }

.hb-c-spec strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.hb-c-spec span {
	display: block;
	font-size: 12px;
	color: var(--hb-muted);
	line-height: 1.35;
}

/* --------------------------------------------------------- media tiles */

/* Gallery: one lead image with a grid beside it, collapsing to a simple
   two-column grid on a phone where a "lead" image has no room to lead. */
.hb-c-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hb-space-sm);
	border-radius: var(--hb-radius-lg);
	overflow: hidden;
}

.hb-c-shot {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface-3);
}

.hb-c-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.hb-c-shot:hover img { transform: scale(1.04); }

/* Caption sits on the image, on a dark wash rather than a solid bar, so it
   stays readable over a bright room photo without hiding it. */
.hb-c-shot figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 10px 8px;
	background: linear-gradient(to top, rgba(23, 43, 58, .72), rgba(23, 43, 58, 0));
	color: var(--hb-surface);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

/* "View all 24 photos".

   A wash over the last tile rather than a tile of its own: the design keeps
   the photograph visible underneath, which says "there are more of these"
   where a flat dark panel says "here is a button". An earlier version made
   this a solid `.hb-c-shot-more` block with no image in it at all - and since
   it is now a `<figure>` that does contain one, the `display: flex` that rule
   set would also have broken the mosaic cell. */
.hb-c-shot-veil {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: var(--hb-space-md);
	text-align: center;
	background: color-mix(in srgb, var(--hb-ink) 62%, transparent);
	color: var(--hb-surface);
	font-size: 13px;
	font-weight: 600;
	transition: background var(--hb-transition);
}

.hb-c-shot-more:hover .hb-c-shot-veil {
	background: color-mix(in srgb, var(--hb-ink) 72%, transparent);
}

.hb-c-shot-veil .hb-i { width: 22px; height: 22px; }

/* The lead photo of the mosaic is already zoomed on hover; the veiled tile
   should not also grow, or the words slide out from under the cursor. */
.hb-c-shot-more:hover img { transform: none; }

/* Two or fewer photos get equal tiles - promoting one of two to "lead" just
   makes the other look like an afterthought. Three or more earn the lead
   layout, and the template decides which by counting. */
.hb-c-gallery-even {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 760px) {
	.hb-c-gallery-lead {
		grid-template-columns: 2fr 1fr 1fr;
		grid-auto-rows: 200px;
	}

	.hb-c-gallery-lead > :first-child {
		grid-row: span 2;
	}

	.hb-c-gallery-even {
		grid-auto-rows: 260px;
	}
}

/* ----------------------------------------------------------- bed tiles */

/* Four states, and the difference between them has to survive being looked at
   quickly on a phone in a hostel corridor. Colour alone is not enough, so each
   state also changes its border and carries a word. */
.hb-c-bed {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px;
	min-height: 86px;
	text-align: left;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface);
	font-family: var(--hb-font-body);
	cursor: pointer;
	transition: border-color var(--hb-transition), background var(--hb-transition), transform var(--hb-transition);
}

.hb-c-bed:hover { border-color: var(--hb-accent-line); transform: translateY(var(--hb-bed-lift)); }

.hb-c-bed-name { font-size: 14px; font-weight: 600; }
.hb-c-bed-note { font-size: 11px; color: var(--hb-muted); line-height: 1.35; }
.hb-c-bed-price { margin-top: auto; font-size: 13px; font-weight: 600; }

.hb-c-bed-free   { border-color: var(--hb-free-line); }
.hb-c-bed-picked { border-color: var(--hb-accent); background: var(--hb-accent-soft); }
.hb-c-bed-picked .hb-c-bed-price { color: var(--hb-accent); }

.hb-c-bed-taken,
.hb-c-bed[disabled] {
	background: var(--hb-surface-2);
	border-style: dashed;
	color: var(--hb-muted);
	cursor: not-allowed;
	transform: none;
}

.hb-c-bed-taken:hover { border-color: var(--hb-border); transform: none; }

/* ---------------------------------------------------------- rule cards */

.hb-c-rules {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--hb-space-md);
}

.hb-c-rule {
	display: flex;
	gap: 10px;
	padding: var(--hb-space-md);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface-2);
}

.hb-c-rule strong { display: block; font-size: 14px; margin-bottom: 3px; }
.hb-c-rule p { margin: 0; font-size: 13px; color: var(--hb-muted); line-height: 1.5; }

/* -------------------------------------------------------- person card */

.hb-c-person {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hb-c-person img,
.hb-c-person .hb-c-avatar {
	width: 44px;
	height: 44px;
	border-radius: var(--hb-radius-pill);
	object-fit: cover;
	flex: 0 0 44px;
}

.hb-c-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hb-accent-soft);
	color: var(--hb-accent);
	font-family: var(--hb-font-num);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.hb-c-person strong { display: block; font-size: 14px; }
.hb-c-person span { display: block; font-size: 12px; color: var(--hb-muted); }

/* -------------------------------------------------------- price lines */

/* The money breakdown. Every row is label plus amount, and the amount column
   uses tabular figures so the rupee signs line up down the edge. */
.hb-c-lines { margin: 0; padding: 0; list-style: none; }

.hb-c-lines li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hb-space-md);
	padding: 9px 0;
	border-bottom: 1px solid var(--hb-border);
	font-size: 14px;
}

.hb-c-lines li:last-child { border-bottom: 0; }

.hb-c-lines small {
	display: block;
	font-size: 11px;
	color: var(--hb-muted);
	font-weight: 400;
	line-height: 1.35;
}

.hb-c-lines b {
	font-family: var(--hb-font-num);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.hb-c-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hb-space-md);
	margin-top: var(--hb-space-sm);
	padding-top: var(--hb-space-md);
	border-top: 2px solid var(--hb-border);
}

.hb-c-total strong { font-size: 15px; }

.hb-c-total b {
	font-family: var(--hb-font-num);
	font-variant-numeric: tabular-nums;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* ------------------------------------------------------ booking panel */

/* Sticky on a wide screen only. On a phone it is simply the last block on the
   page: a panel that follows the scroll on a 640px-tall screen eats the
   content it is meant to summarise. */
@media (min-width: 1000px) {
	.hb-c-sticky {
		position: sticky;
		top: var(--hb-panel-top, 20px);
	}
}

/* --------------------------------------------------------- utilities */

.hb-c-row { display: flex; align-items: center; gap: var(--hb-space-sm); flex-wrap: wrap; }
.hb-c-muted { color: var(--hb-muted); font-size: 13px; }
.hb-c-stack { display: flex; flex-direction: column; gap: var(--hb-space-md); }

/* Visible only to screen readers - for the headings that give a landmark its
   name without adding a line of text nobody asked for. */
.hb-c-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.hb-c-card-link,
	.hb-c-bed,
	.hb-c-shot img,
	.hb-c-bar > span {
		transition: none;
	}

	.hb-c-card-link:hover,
	.hb-c-bed:hover { transform: none; }

	.hb-c-shot:hover img { transform: none; }
}

/* ------------------------------------------------------------ page shell */

/* Two columns on a wide screen, one on a phone. The aside is last in the DOM
   so the single-column order is already correct without reordering anything:
   a student reads the rooms before they think about asking a question. */
.hb-c-page {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hb-space-xl);
	align-items: start;
}

.hb-c-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--hb-space-xl);
}

.hb-c-aside {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--hb-space-md);
}

.hb-c-aside > .hb-c-sticky {
	display: flex;
	flex-direction: column;
	gap: var(--hb-space-md);
}

/* `minmax(0, …)` on the content column, not plain `1fr`: a grid child defaults
   to min-content width, so one wide table or a long unbroken string inside the
   bed picker would push the whole column past the page and bring a horizontal
   scrollbar with it. */
@media (min-width: 1000px) {
	.hb-c-page {
		grid-template-columns: minmax(0, 1fr) var(--hb-panel-w, 320px);
	}

	/* No aside to carry: the content takes the whole width rather than
	   leaving a 320px rail of nothing. The class is set in PHP, because only
	   the template knows whether the sections produced anything. */
	.hb-c-page-wide {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The bed picker's booking bar is fixed to the foot of the page, so the last
   section needs room to clear it - otherwise the final card sits underneath
   the bar and cannot be read or tapped. */
.hb-single .hb-c-page {
	padding-bottom: var(--hb-space-xl);
}

/* -------------------------------------------------- the two-column page */

/* Only the property page gets the wider canvas. `.hb-single` is shared with
   the checkout, the owner sign-up and the owner login, and those are forms:
   widening them would make them harder to read, not easier. So the modifier
   is set by the one template that needs it. */
.hb-single-property {
	max-width: var(--hb-container-wide);
}

/* A hero photo is a photo, not a billboard. Without a cap a tall portrait
   image fills the whole first screen and pushes the name of the property -
   the one thing the visitor came to confirm - below the fold. Cropped rather
   than squashed, so faces and rooms keep their proportions. */
.hb-hero-media img {
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--hb-radius-lg);
}

@media (max-width: 760px) {
	.hb-hero-media img {
		max-height: 260px;
	}
}

/* ------------------------------------------------------------------ hero */

/* Name and price sit on one line on a wide screen and stack on a phone. The
   price keeps its own block so it stays readable as a unit - a figure, what
   it buys, and whether anything is left - rather than running into the
   address beside it. */
.hb-hero-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--hb-space-md);
}

.hb-hero-id {
	min-width: 0;
	flex: 1 1 320px;
}

.hb-hero-id .hb-title {
	margin: 8px 0 6px;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hb-hero-id .hb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

/* Rating, place and the map link read as one sentence of context under the
   name, separated by dots rather than boxed up - they are supporting detail,
   not four more things to look at. */
.hb-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	color: var(--hb-muted);
}

.hb-hero-meta > * + *::before {
	content: "·";
	margin-right: 8px;
	color: var(--hb-border);
}

.hb-hero-rating strong {
	color: var(--hb-ink);
	margin-right: 4px;
}

/* `.hb-hero-map` was a plain text link in the hero's meta line and carried
   `color: var(--hb-accent)`. It is a filled button now - on that same accent -
   so the old rule painted teal text on a teal background and the control
   rendered as an empty pill. The rule is deleted rather than overridden,
   because the link it described no longer exists; the button classes own it. */

.hb-hero-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	flex: 0 0 auto;
}

.hb-hero-price strong {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.hb-hero-price > span:not(.hb-c-pill) {
	font-size: 13px;
	color: var(--hb-muted);
}

@media (min-width: 760px) {
	.hb-hero-price {
		align-items: flex-end;
		text-align: right;
	}
}

/* The link wrapper has to fill its tile, or the image inside shrinks to its
   own height and the grid row collapses around it. */
.hb-c-shot > a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Beats `.hb-gallery img` from the base sheet, which fixes a 140px height
   that predates this layout. Same specificity, loaded later, so it wins
   without an !important. */
.hb-c-shot img {
	height: 100%;
}

/* The gallery section used to be the grid itself, with the photos as its
   direct children. Now it wraps one `.hb-c-gallery` grid, so the old
   `display: grid` on the section turns that wrapper into a single 180px
   column and the whole gallery collapses into it. The section goes back to
   being a plain block and lets its child do the laying out.
   Found by measuring: the section read 790px wide and the grid inside it
   190px, which is the shape this exact mistake always makes. */
.hb-section.hb-gallery {
	display: block;
}

/* ------------------------------------------------------------ bed picker */

/* The picker's classes are load-bearing: frontend.js selects `.hb-bed`,
   `.hb-group` and `.hb-picker-form` by name and drives the whole selection
   from them. Nothing here renames anything - `hb-c-card` was added *beside*
   `hb-room`, and these rules only restyle. */

.hb-room.hb-c-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--hb-space-md);
}

.hb-room + .hb-room {
	margin-top: var(--hb-space-md);
}

.hb-room-line {
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.hb-room-line > strong {
	font-size: 15px;
}

/* Floor reads as a label, not as another heading beside the room number. */
.hb-room-floor {
	font-size: 12px;
	color: var(--hb-muted);
}

.hb-room-price {
	margin-left: auto;
	white-space: nowrap;
}

.hb-room-price strong {
	font-family: var(--hb-font-num);
	font-variant-numeric: tabular-nums;
	font-size: 16px;
}

.hb-room-price small {
	font-size: 12px;
	color: var(--hb-muted);
	margin-left: 3px;
}

.hb-room-meta {
	margin: 0;
}

/* What the owner wrote about this room. It has been in the database since
   rooms existed and was never printed. */
.hb-room-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--hb-muted);
}

/* The group heading, which is the thing a student actually compares - sharing
   type, what it has, and what it costs. */
.hb-group + .hb-group {
	margin-top: var(--hb-space-xl);
}

.hb-group-title {
	font-size: 17px;
	margin: 0;
}

.hb-group-price {
	font-family: var(--hb-font-num);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.hb-group-count {
	font-size: 13px;
	color: var(--hb-muted);
	margin: 2px 0 10px;
}

/* --------------------------------------------------- facilities & extras */

/* The feature list was already a grid; these turn its rows into tiles so a
   facility reads as a thing rather than as a line of a bulleted list. Shared
   by Facilities, "All rooms include" and the meals list, which is why they
   now look like one family instead of three. */
.hb-feature-list li {
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	font-size: 14px;
	line-height: 1.4;
}

.hb-feature-list li.hb-muted {
	background: transparent;
	color: var(--hb-muted);
}

.hb-feature-list li.hb-muted .hb-check {
	color: var(--hb-disabled);
}

.hb-feature-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

/* Name small and quiet, value full size. The value is what is being compared
   - "Full backup" against "Evenings only" - and it used to be the half set in
   the lighter weight. */
.hb-feature-name {
	font-size: 12px;
	color: var(--hb-muted);
	line-height: 1.3;
}

.hb-feature-value {
	font-weight: 600;
}

.hb-amenity-group {
	margin: var(--hb-space-lg) 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

/* Food and transport share one header shape: the figure, what it buys, and
   whether it is optional - so the two sections read as a pair. */
.hb-mess-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.hb-mess-head strong {
	font-family: var(--hb-font-num);
	font-variant-numeric: tabular-nums;
	font-size: 22px;
	letter-spacing: -0.02em;
}

.hb-mess-head > span:not(.hb-tag) {
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-mess-head .hb-tag {
	margin-left: 4px;
	padding: 3px 10px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-accent-soft);
	color: var(--hb-accent);
	font-family: var(--hb-font-num);
	font-size: 11px;
	font-weight: 600;
}

.hb-menu-title {
	margin: var(--hb-space-lg) 0 8px;
	font-size: 15px;
}

/* The menu is wide by nature - seven rows against up to four meals - so it
   scrolls sideways on a phone instead of squeezing every dish to one word. */
.hb-menu-scroll {
	overflow-x: auto;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
}

.hb-menu-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 420px;
}

.hb-menu-table th,
.hb-menu-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid var(--hb-border);
}

.hb-menu-table thead th {
	background: var(--hb-surface-2);
	font-size: 12px;
	color: var(--hb-muted);
	font-weight: 600;
	white-space: nowrap;
}

.hb-menu-table tbody th {
	font-weight: 600;
	white-space: nowrap;
	color: var(--hb-ink);
}

.hb-menu-table tr:last-child th,
.hb-menu-table tr:last-child td {
	border-bottom: 0;
}

/* ==========================================================================
   The property page, v1.91.0
   --------------------------------------------------------------------------
   Everything below is new for the property-page rebuild. Same rules as the
   rest of this file: tokens only, never a hex; `hb-c-` for anything another
   screen could reuse and a plain `hb-` name for the parts that belong to one
   section; no `!important` anywhere - this file is loaded after frontend.css
   and declares it as a dependency, so equal specificity is enough to win.
   ========================================================================== */

/* -------------------------------------------------- icons

   One rule for forty icons. They are drawn on a 24px box with no fill and a
   currentColor stroke, so they take the colour and the weight of whatever
   text they sit beside and need nothing per icon. `flex: none` because an
   icon in a flex row is the one thing that must never be squashed to make
   room for a long label. */
.hb-i {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -.18em;
}

/* The star in a rating is the one icon that reads wrong as an outline. */
.hb-i-fill {
	fill: currentColor;
	stroke: none;
}

/* -------------------------------------------------- hero additions

   `.hb-hero-actions` moved to the v1.92.0 block at the foot of this file,
   where it is laid out inside `.hb-hero-bar` beside the breadcrumb rather
   than stacked underneath it. */

/* Two pills that say something the others do not: one is a check a person
   performed, the other is the platform's own word about the listing. Both get
   a tint so they do not read as another grey type label. Colour only - the
   base .hb-c-pill has no border to recolour and is already an inline-flex row
   with a gap, so anything else here would be dead weight. The trust pill
   takes the accent, deliberately the same tint as "live": this is the
   platform speaking, not a third brand colour. */
.hb-c-pill-trust {
	background: var(--hb-accent-soft);
	color: var(--hb-accent);
}

.hb-c-pill-tag {
	background: var(--hb-premium-bg);
	color: var(--hb-premium);
}

.hb-hero-rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--hb-warn-line);
}

.hb-hero-rating strong { color: var(--hb-ink); }

.hb-hero-rating a {
	color: var(--hb-muted);
	text-decoration-style: dotted;
	text-underline-offset: 3px;
}

.hb-hero-rating a:hover { color: var(--hb-accent); }

.hb-location {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--hb-muted);
}

.hb-location .hb-i { color: var(--hb-accent); }

/* -------------------------------------------------- photo mosaic

   Five or more photos: one tall lead on the left, four in a 2x2 beside it.
   The fixed row height is what makes it read as one composition rather than
   five pictures - rows that size themselves to their content give a ragged
   edge whatever the photos are. Anything past the fifth flows underneath at
   tile height, so nothing is hidden and there is no button promising a
   lightbox this page does not have. */
/* The lead photo takes a little more than its half. Four equal columns gave it
   exactly 50%, which reads as two panels rather than one photograph with a
   strip beside it - the reference leans the composition toward the lead. The
   first two columns are 1.1fr, so the lead spans 2.2 of 4.2 and is about 5%
   wider than it was. */
.hb-c-gallery-mosaic {
	grid-template-columns: 1.1fr 1.1fr 1fr 1fr;
	grid-auto-rows: 150px;
}

.hb-c-gallery-mosaic > .hb-c-shot:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

@media (max-width: 782px) {
	/* On a phone the mosaic becomes a lead photo and a scrolling strip: four
	   tiles at a quarter of 375px are thumbnails nobody can see. */
	.hb-c-gallery-mosaic {
		grid-template-columns: repeat(4, 42vw);
		grid-auto-rows: 160px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.hb-c-gallery-mosaic > .hb-c-shot {
		scroll-snap-align: start;
		grid-row: span 2;
	}

	.hb-c-gallery-mosaic > .hb-c-shot:first-child {
		grid-column: span 2;
	}
}

/* -------------------------------------------------- highlight strip

   The facilities whose value is the selling point. The value is the heavy
   line and the name is the quiet one, which is the opposite of a normal list
   and entirely the point: every hostel has WiFi, not every hostel has
   100 Mbps. */
/* The layout rules for this row live with the slider further down the file -
   it was a wrapping grid until v1.91.3. Only the tile's own look is here. */
.hb-c-strip-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px var(--hb-space-md);
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
}

.hb-c-strip-item > .hb-i {
	width: 22px;
	height: 22px;
	color: var(--hb-accent);
}

.hb-c-strip-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hb-c-strip-text strong {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--hb-ink);
}

.hb-c-strip-text small {
	font-size: 11.5px;
	letter-spacing: .02em;
	color: var(--hb-muted);
}


/* -------------------------------------------------- service cards

   Food and transport, built as one shape so they read as a pair. Two columns
   where there is room; one card alone simply fills the row, which is the
   ordinary case for a PG that feeds students but runs no bus. */
.hb-c-services {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hb-space-md);
}

@media (min-width: 720px) {
	.hb-c-services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

.hb-c-service {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	box-shadow: var(--hb-shadow);
}

.hb-c-service-shot {
	height: 150px;
	background: var(--hb-surface-3);
}

.hb-c-service-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* No photo yet: a tinted band with the icon, so the card still has a head
   instead of starting abruptly at a price. */
.hb-c-service-shot.is-blank {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 84px;
	background: var(--hb-accent-soft);
}

.hb-c-service-shot.is-blank .hb-i {
	width: 32px;
	height: 32px;
	color: var(--hb-accent);
}

.hb-c-service-body {
	display: flex;
	flex-direction: column;
	gap: var(--hb-space-sm);
	padding: var(--hb-space-lg);
}

.hb-c-service-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--hb-space-md);
}

.hb-c-service-head h2 {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}

.hb-c-service-sub {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--hb-muted);
}

.hb-c-service-price {
	flex: none;
	margin: 0;
	text-align: right;
}

.hb-c-service-price strong {
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--hb-ink);
}

.hb-c-service-price span {
	font-size: 11px;
	color: var(--hb-muted);
}

.hb-c-service-note {
	margin: 0;
	font-size: 12.5px;
	color: var(--hb-muted);
}

.hb-c-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

/* Meal times and bus routes: the same quiet row, so the two cards keep one
   rhythm even though they list different things. */
.hb-c-times,
.hb-c-routes {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.hb-c-times li,
.hb-c-routes li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	background: var(--hb-surface-2);
	border-radius: var(--hb-radius-sm);
}

.hb-c-times li .hb-i,
.hb-c-routes li .hb-i {
	width: 15px;
	height: 15px;
	color: var(--hb-accent);
}

.hb-c-times li span,
.hb-c-routes li span {
	flex: 1;
	min-width: 0;
	color: var(--hb-muted);
}

.hb-c-times li strong,
.hb-c-routes li strong {
	font-size: 12.5px;
	color: var(--hb-ink);
}

/* A native <details>, styled to match. No script, no focus trap, no z-index -
   it works when everything else has failed. */
.hb-c-reveal > summary {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	cursor: pointer;
	list-style: none;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-accent);
}

.hb-c-reveal > summary::-webkit-details-marker { display: none; }

.hb-c-reveal > summary:hover {
	background: var(--hb-surface-2);
	border-color: var(--hb-accent-line);
}

.hb-c-reveal[open] > summary { margin-bottom: var(--hb-space-sm); }

/* The opt-in, on the card that describes what is being bought rather than in
   a list at the foot of the page. */
.hb-c-optin {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: auto;
	padding: 12px;
	cursor: pointer;
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	transition: border-color var(--hb-transition), background var(--hb-transition);
}

.hb-c-optin:hover { border-color: var(--hb-accent-line); }

.hb-c-optin:has(input:checked) {
	background: var(--hb-accent-soft);
	border-color: var(--hb-accent-line);
}

.hb-c-optin input {
	flex: none;
	margin-top: 2px;
}

.hb-c-optin span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hb-c-optin strong { font-size: 13.5px; }

.hb-c-optin small {
	font-size: 11.5px;
	line-height: 1.4;
	color: var(--hb-muted);
}

/* -------------------------------------------------- tabs

   The strip is hidden in the markup and revealed by script, so a page whose
   JavaScript never ran shows all four panels stacked rather than one panel
   and three that cannot be reached. */
.hb-tabstrip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: var(--hb-space-lg);
	padding-bottom: var(--hb-space-sm);
	border-bottom: 1px solid var(--hb-border);
}

/* `display: flex` above beats the browser's own `[hidden] { display: none }`,
   which would have shown the tab strip on a page whose script never ran -
   four tabs that do nothing above four panels already stacked below them.
   The whole no-JavaScript guarantee rested on this one rule. The same trap
   waits for any hidden element given a display value, which is why
   `.hb-summary` and `.hb-stay-custom` are deliberately left without one. */
.hb-tabstrip[hidden] { display: none; }

.hb-tab {
	padding: 9px 16px;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: var(--hb-radius-pill);
	background: transparent;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hb-muted);
	transition: all var(--hb-transition);
}

.hb-tab:hover {
	background: var(--hb-surface-2);
	color: var(--hb-ink);
}

.hb-tab.is-on {
	background: var(--hb-accent);
	border-color: var(--hb-accent);
	color: var(--hb-accent-ink);
}

/* The panels carry whole sections, which bring their own top margin. Without
   this the first heading in a panel sits a long way below the tab strip. */
.hb-tabpanel > .hb-section:first-child { margin-top: 0; }

.hb-tabpanel:focus-visible {
	outline: 2px solid var(--hb-accent);
	outline-offset: 4px;
}

/* -------------------------------------------------- review sub-scores */

.hb-c-scores {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 10px var(--hb-space-lg);
	margin: var(--hb-space-md) 0 0;
	padding: 0;
	list-style: none;
}

.hb-c-scores li {
	display: grid;
	grid-template-columns: 1fr 90px auto;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.hb-c-score-name { color: var(--hb-muted); }

.hb-c-score-bar {
	height: 6px;
	overflow: hidden;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface-3);
}

.hb-c-score-bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--hb-accent);
}

/* -------------------------------------------------- the booking panel */

.hb-bookpanel {
	display: flex;
	flex-direction: column;
	gap: var(--hb-space-md);
	padding: var(--hb-space-lg);
	border-radius: var(--hb-radius-xl);
}

.hb-bookpanel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hb-space-sm);
}

.hb-bookpanel-price { margin: 0; }

.hb-bookpanel-price strong {
	display: block;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--hb-ink);
}

.hb-bookpanel-price span {
	font-size: 11.5px;
	color: var(--hb-muted);
}

.hb-bookpanel-controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hb-bookpanel-note {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--hb-muted);
}

.hb-bookpanel-sub {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--hb-muted);
}

.hb-summary-beds {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.hb-summary-beds li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--hb-border);
}

.hb-summary-total,
.hb-summary-line,
.hb-summary-movein {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 13.5px;
}

.hb-summary-line small {
	display: block;
	font-size: 10.5px;
	color: var(--hb-free);
}

.hb-summary-movein {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--hb-border);
	font-size: 15px;
	font-weight: 700;
}

.hb-summary-movein strong { font-size: 19px; }

/* In the rail the bar is simply the last block of the panel. It only becomes
   a bar fixed to the foot of the screen on a phone, where the panel itself
   has scrolled away - which is where the old fixed bar already lived. */
.hb-bookpanel .hb-stickybar {
	position: static;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.hb-bookpanel .hb-stickybar-info {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	color: var(--hb-muted);
}

.hb-bookpanel .hb-stickybar .hb-btn { width: 100%; }

.hb-bookpanel-trust {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: var(--hb-space-md) 0 0;
	border-top: 1px solid var(--hb-border);
	list-style: none;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--hb-muted);
}

.hb-bookpanel-trust li {
	display: flex;
	align-items: flex-start;
	gap: 7px;
}

.hb-bookpanel-trust .hb-i {
	width: 15px;
	height: 15px;
	margin-top: 1px;
	color: var(--hb-accent);
}

/* -------------------------------------------------- the owner card */

.hb-owner-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--hb-space-lg);
}

.hb-c-sub {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--hb-muted);
}

.hb-owner-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* An initial, not a silhouette. There is no avatar field on the profile, and
   a grey outline of a head says "this person could not be bothered" about
   somebody who was never asked for a photo. */
.hb-owner-mark {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-accent-soft);
	font-size: 18px;
	font-weight: 700;
	color: var(--hb-accent);
}

.hb-owner-id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hb-owner-id strong { font-size: 15px; }

.hb-owner-id span {
	font-size: 11.5px;
	color: var(--hb-muted);
}

.hb-owner-verified {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--hb-accent);
}

.hb-owner-verified .hb-i {
	width: 15px;
	height: 15px;
	margin-top: 1px;
}

.hb-owner-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--hb-muted);
}

/* -------------------------------------------------- cancellation */

.hb-cancel-own {
	margin-top: var(--hb-space-lg);
	padding-top: var(--hb-space-md);
	border-top: 1px solid var(--hb-border);
}

.hb-cancel-own h3 {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-cancel-own p {
	margin: 0 0 8px;
	font-size: 13.5px;
	line-height: 1.6;
}

/* -------------------------------------------------- the sticky rail

   Only sticky where there is a second column to be beside. Below 1000px the
   page is one column, and a sticky panel there would pin a 500px card over
   the content the student is trying to read. */
@media (min-width: 1000px) {
	.hb-c-page { --hb-panel-w: 340px; }

	.hb-c-aside > .hb-c-sticky {
		position: sticky;
		top: var(--hb-space-lg);
		max-height: calc(100vh - var(--hb-space-xl));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

/* On a phone the panel is an ordinary block in the flow, and the submit bar
   detaches to the foot of the screen so the price and the button stay
   reachable. */
@media (max-width: 999px) {
	.hb-bookpanel .hb-stickybar {
		position: sticky;
		bottom: 0;
		flex-direction: row;
		align-items: center;
		gap: var(--hb-space-md);
		margin: 0 calc(var(--hb-space-lg) * -1) calc(var(--hb-space-lg) * -1);
		padding: 12px var(--hb-space-lg);
		background: var(--hb-surface);
		border-top: 1px solid var(--hb-border);
	}

	.hb-bookpanel .hb-stickybar-info {
		flex-direction: column;
		gap: 0;
	}

	.hb-bookpanel .hb-stickybar .hb-btn { width: auto; }
}

/* -------------------------------------------------- highlight strip, v1.91.3

   Was a wrapping grid; a property with six valued facilities got two rows of
   tiles in the one place on the page that is meant to be a two-second glance.
   Now a single row that scrolls, so its height is the same whether there are
   three facilities or ten. */
.hb-c-strip-wrap {
	position: relative;
}

.hb-c-strip {
	display: flex;
	gap: var(--hb-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	/* Room for the focus ring on the first and last tile, which a clipped
	   overflow box would otherwise cut in half. */
	scroll-padding: 2px;
}

.hb-c-strip::-webkit-scrollbar { display: none; }

.hb-c-strip-item {
	flex: 0 0 auto;
	min-width: 168px;
	scroll-snap-align: start;
}

/* Arrows are added by script and only when the row actually overflows, so
   these rules describe something that is never drawn otherwise. */
.hb-c-strip-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	transform: translateY(-50%);
	cursor: pointer;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface);
	box-shadow: var(--hb-shadow-md);
	font-size: 18px;
	line-height: 1;
	color: var(--hb-ink);
	transition: border-color var(--hb-transition), background var(--hb-transition);
}

.hb-c-strip-nav:hover {
	background: var(--hb-surface-2);
	border-color: var(--hb-accent-line);
}

.hb-c-strip-nav.is-prev { left: -10px; }
.hb-c-strip-nav.is-next { right: -10px; }

/* `display: flex` above would otherwise beat the browser's own
   `[hidden] { display: none }` and leave a dead arrow at the end of the row -
   the same trap as the tab strip. */
.hb-c-strip-nav[hidden] { display: none; }

/* On a phone the arrows are pointless - the row is swiped - and they would sit
   on top of the tiles. The row still scrolls. */
@media (max-width: 782px) {
	.hb-c-strip-nav { display: none; }
}

/* -------------------------------------------------- the house-rules tick */

.hb-c-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 11px 12px;
	cursor: pointer;
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	font-size: 12px;
	line-height: 1.45;
	color: var(--hb-muted);
}

.hb-c-consent input {
	flex: none;
	margin-top: 1px;
}

.hb-c-consent a {
	color: var(--hb-accent);
	font-weight: 600;
}

/* Until it is ticked it is the thing standing between a student and the
   button, so it earns a little weight the moment they try. :user-invalid only
   matches after an attempt, never on a field they have not reached yet. */
.hb-c-consent:has(input:user-invalid) {
	border-color: var(--hb-danger-line);
	background: var(--hb-danger-bg);
	color: var(--hb-danger);
}

/* ==========================================================================
   Property page, v1.92.0 — matched against the design screenshot
   --------------------------------------------------------------------------
   Everything here replaces something that was built from a text reading of
   the design rather than from the picture. The rules it supersedes are
   removed rather than overridden, so there is one answer per selector.
   ========================================================================== */

/* -------------------------------------------------- the hero's top bar

   Breadcrumb left, controls right, one row. They were stacked, which made the
   controls read as the first item of content instead of the page's toolbar. */
.hb-hero-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hb-space-sm);
	margin-bottom: var(--hb-space-md);
}

.hb-hero-bar > nav { min-width: 0; }

.hb-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hb-space-sm);
	margin: 0;
	margin-left: auto;
}

.hb-hero-actions > * {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* The map is the filled control of the pair, as in the design: it is the only
   route to the map on this page now that the foot section is gone. */
.hb-hero-map {
	text-decoration: none;
	white-space: nowrap;
}

/* -------------------------------------------------- guests & the stepper */

.hb-picker-students {
	padding: var(--hb-space-lg);
}

.hb-guests-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: var(--hb-space-md);
}

.hb-guests-head > .hb-i {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--hb-accent);
}

.hb-guests-head h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
}

.hb-guests-head p {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--hb-muted);
}

.hb-stepper {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
}

.hb-stepper small {
	font-size: 11px;
	color: var(--hb-muted);
}

/* The box is the control; the two buttons are inside its border rather than
   beside it, so it reads as one object the way a quantity field should. */
.hb-stepper-box {
	display: inline-flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface);
}

.hb-stepper-btn {
	width: 40px;
	cursor: pointer;
	border: 0;
	background: var(--hb-surface-2);
	font-size: 18px;
	line-height: 1;
	color: var(--hb-ink);
	transition: background var(--hb-transition), color var(--hb-transition);
}

.hb-stepper-btn:hover:not(:disabled) {
	background: var(--hb-accent-soft);
	color: var(--hb-accent);
}

/* A limit the control states rather than a click it ignores. */
.hb-stepper-btn:disabled {
	color: var(--hb-disabled);
	cursor: not-allowed;
}

.hb-stepper-box input {
	width: 58px;
	padding: 10px 0;
	text-align: center;
	border: 0;
	border-left: 1px solid var(--hb-border);
	border-right: 1px solid var(--hb-border);
	background: transparent;
	font-family: var(--hb-font-num);
	font-size: 15px;
	font-weight: 700;
	color: var(--hb-ink);
}

.hb-stepper-box input:focus { outline: 2px solid var(--hb-accent); outline-offset: -2px; }

/* Chrome and Safari draw spinners on a number input; the buttons are the
   spinner here, and two of them is one too many. */
.hb-stepper-box input::-webkit-outer-spin-button,
.hb-stepper-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hb-stepper-box input { -moz-appearance: textfield; appearance: textfield; }

/* -------------------------------------------------- the room card header

   Number badge, identity, then price and availability on the right. It was
   one flex line holding all four, which made the room number, the floor, the
   price and the Photos button read as the same kind of thing. */
.hb-room-head {
	display: flex;
	align-items: flex-start;
	gap: var(--hb-space-md);
	margin-bottom: var(--hb-space-md);
}

.hb-room-no {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 42px;
	padding: 0 8px;
	border-radius: var(--hb-radius);
	background: var(--hb-surface-3);
	font-family: var(--hb-font-num);
	font-size: 15px;
	font-weight: 700;
	color: var(--hb-ink);
}

.hb-room-id {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hb-room-id strong {
	font-size: 15px;
	line-height: 1.3;
}

.hb-room-floor {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface-3);
	font-size: 11px;
	font-weight: 600;
	color: var(--hb-muted);
}

.hb-room-desc {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--hb-muted);
}

.hb-room-right {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}

.hb-room-price strong {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--hb-ink);
}

.hb-room-price small {
	font-size: 11px;
	color: var(--hb-muted);
}

.hb-room-photo-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 11px;
	cursor: pointer;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	color: var(--hb-accent);
	transition: border-color var(--hb-transition), background var(--hb-transition);
}

.hb-room-photo-btn:hover {
	background: var(--hb-surface-2);
	border-color: var(--hb-accent-line);
}

.hb-room-photo-btn .hb-i { width: 14px; height: 14px; }

/* -------------------------------------------------- the floorplan key */

.hb-bed-key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hb-space-md);
	margin: 0 0 10px;
	font-size: 11.5px;
	color: var(--hb-muted);
}

.hb-bed-key-title {
	margin-right: auto;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--hb-ink);
}

.hb-bed-key > span:not(.hb-bed-key-title) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hb-bed-key > span:not(.hb-bed-key-title)::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
}

.hb-bed-key-free::before { background: var(--hb-free); border-color: var(--hb-free); }
.hb-bed-key-on::before { background: var(--hb-accent); border-color: var(--hb-accent); }
.hb-bed-key-taken::before { background: var(--hb-surface-3); }

/* -------------------------------------------------- bed cards

   Wide cards, not 58px squares. Each carries four lines - which bed, what
   state, where in the room, what it costs - and a square tile could only ever
   hold the first. The grid is a floorplan: four across on a desktop room,
   two on a phone. */
.hb-beds {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	gap: 10px;
}

/* Every property frontend.css sets on `.hb-bed` has to be answered here, not
   just the ones that are changing. That file sizes the old square with
   `width: var(--hb-bed-w); height: var(--hb-bed-h)` and centres its single
   character with `align-items`/`justify-content`. Equal specificity and a
   later load order only win a property that is actually declared - leaving
   width and height out meant the card kept its 58x52 box and silently stayed
   a tile, with four lines of content crushed inside it. */
.hb-bed {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 3px;
	width: auto;
	height: auto;
	min-height: 0;
	padding: 12px;
	text-align: left;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface);
	font-size: 13px;
	font-weight: 400;
	transition: border-color var(--hb-transition), background var(--hb-transition), transform var(--hb-bed-speed);
}

.hb-bed.is-free { cursor: pointer; }

.hb-bed.is-free:hover {
	border-color: var(--hb-accent-line);
	background: var(--hb-surface-2);
	transform: translateY(var(--hb-bed-lift));
}

.hb-bed-top {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hb-bed-top > .hb-i {
	width: 16px;
	height: 16px;
	color: var(--hb-muted);
}

.hb-bed.is-free .hb-bed-top > .hb-i { color: var(--hb-accent); }

.hb-bed-name {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
}

/* The berth rides at the end of the top row, as a pill - it is a label, never
   a price. Charging differently for an upper bunk was cut twice on purpose. */
.hb-bed-berth {
	margin-left: auto;
	padding: 2px 7px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface-3);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--hb-muted);
}

.hb-bed-state {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--hb-free);
}

.hb-bed-state::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.hb-bed-place {
	font-size: 11px;
	line-height: 1.35;
	color: var(--hb-muted);
}

.hb-bed-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: 6px;
}

.hb-bed-cost {
	font-size: 13px;
	font-weight: 700;
	color: var(--hb-ink);
}

.hb-bed-mark .hb-i {
	width: 15px;
	height: 15px;
	color: var(--hb-disabled);
}

.hb-bed.is-free:hover .hb-bed-mark .hb-i { color: var(--hb-accent-line); }

/* A bed that frees up later rather than now: amber, because it is an
   opportunity and not a warning.

   The box itself has to be restated because frontend.css sizes `.is-soon`
   with two classes - `width: calc(var(--hb-bed-w) + 6px)` - which outranks
   the single-class `.hb-bed` above it and would leave this one state still
   drawn as a narrow tile among full cards. */
.hb-bed.is-soon {
	width: auto;
	min-height: 0;
	padding: 12px;
	gap: 3px;
	background: var(--hb-soon-bg);
	border-color: var(--hb-soon-line);
}

.hb-bed.is-soon .hb-bed-state { color: var(--hb-soon); }

/* Taken: dashed as well as grey, because colour alone is not a state anyone
   can rely on - and the card says the word too. It never says who is in it. */
.hb-bed.is-taken {
	border-style: dashed;
	background: var(--hb-surface-3);
	color: var(--hb-taken);
}

.hb-bed.is-taken .hb-bed-state { color: var(--hb-taken); }
.hb-bed.is-taken .hb-bed-top > .hb-i { color: var(--hb-taken); }

/* Selected: filled, with a tick in the corner the way the design marks it. */
.hb-bed.is-selected {
	background: var(--hb-accent);
	border-color: var(--hb-accent);
	color: var(--hb-accent-ink);
}

.hb-bed.is-selected .hb-bed-name,
.hb-bed.is-selected .hb-bed-cost,
.hb-bed.is-selected .hb-bed-state,
.hb-bed.is-selected .hb-bed-place,
.hb-bed.is-selected .hb-bed-top > .hb-i,
.hb-bed.is-selected .hb-bed-mark .hb-i { color: var(--hb-accent-ink); }

/* Mixed from the token rather than written as a literal white, so a site that
   re-themes the accent gets a berth pill that still sits on it correctly. */
.hb-bed.is-selected .hb-bed-berth {
	background: color-mix(in srgb, var(--hb-accent-ink) 22%, transparent);
	color: var(--hb-accent-ink);
}

.hb-bed.is-selected .hb-bed-place { opacity: .85; }

@media (max-width: 782px) {
	.hb-beds { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.hb-room-head { flex-wrap: wrap; }
	.hb-room-right { align-items: flex-start; text-align: left; }
}

/* -------------------------------------------------- enquiry, in the rail

   `.hb-enquiry-bar` is built as a page-wide sticky bar across the foot of the
   page: `position: sticky; bottom: 0`, a 1100px inner column, a top border
   and a shadow thrown upwards. All three are wrong in a 340px rail, and one
   of them is actively broken - a sticky element inside an `overflow-y: auto`
   container sticks to that container rather than to the window, so it pinned
   itself to the bottom of a scrolling box nobody scrolls.

   Where the page puts it in the rail it is an ordinary card instead. The bar
   styling is untouched for every other use. */
.hb-c-aside .hb-enquiry-bar {
	position: static;
	z-index: auto;
	margin-top: 0;
	padding: var(--hb-space-lg);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	box-shadow: var(--hb-shadow);
}

.hb-c-aside .hb-enquiry-bar-inner {
	flex-direction: column;
	align-items: stretch;
	max-width: none;
	gap: 10px;
}

.hb-c-aside .hb-enquiry-lead {
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-ink);
}

.hb-c-aside .hb-enquiry-bar .hb-btn { width: 100%; }

/* The panel is a sibling of the bar, so in the rail it needs the same card
   treatment rather than a bare outline floating under it. */
.hb-c-aside .hb-enquiry-panel {
	margin-top: var(--hb-space-sm);
	padding: var(--hb-space-md);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface);
}

/* The visit form is the other long form in the rail. Its field grid asks for
   210px columns, which at this width can only ever be one - stating that
   directly stops the browser reserving the gap for a second. */
.hb-c-aside .hb-field-grid {
	grid-template-columns: 1fr;
	gap: 10px;
}

/* The visit bar left the rail in v1.94.0; only contact stays. */
.hb-c-aside .hb-contact {
	padding: var(--hb-space-lg);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface);
	box-shadow: var(--hb-shadow);
}


.hb-c-aside .hb-contact h2 {
	margin: 0 0 6px;
	font-size: 15px;
}

.hb-c-aside .hb-section-note {
	font-size: 12px;
	line-height: 1.45;
}

/* -------------------------------------------------- guests row, v1.93.0

   The stepper and the first student's fields on one line, as the design has
   them: how many, then who. They were stacked, which put a block of white
   space between the count and the names it governs. Students 2 to 4 wrap
   underneath on their own, so the markup never has to know which is which. */
.hb-guests-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--hb-space-md);
}

/* The stepper holds its own width; the student blocks take what is left. */
.hb-guests-grid > .hb-stepper {
	flex: none;
	margin-bottom: 0;
}

.hb-guests-grid .hb-picker-student {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

/* `[hidden]` would otherwise lose to the flex item it becomes - the same trap
   as the tab strip, and here it would show all four students at once. */
.hb-guests-grid .hb-picker-student[hidden] { display: none; }

/* -------------------------------------------------- the itemised summary

   Food and transport get a line each. Folding them into the rent is how a
   hostel renting at 7,800 told a student who had ticked the bus that their
   "monthly rent" was 9,300 - every other figure correct, and the one word
   beside the big number wrong. */
.hb-summary-extras {
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}

.hb-summary-extras li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	font-size: 13.5px;
}

.hb-summary-extras li > span {
	min-width: 0;
	color: var(--hb-ink);
}

/* "included" beside a compulsory service, because "why can I not remove this
   one" is the question such a line always raises. */
.hb-summary-extras small {
	display: block;
	font-size: 10.5px;
	color: var(--hb-muted);
}

/* -------------------------------------------------- gallery tiles as links

   The tile is an anchor so it still works with no JavaScript; these make it
   fill its cell rather than shrink to the image's own box. */
.hb-c-shot > a {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.hb-c-shot > a:focus-visible {
	outline: 2px solid var(--hb-accent);
	outline-offset: -2px;
}

/* -------------------------------------------------- v1.94.0 corrections */

/* The summary fills the panel.

   `.hb-summary` carries its own border, padding and tinted background from
   when it sat in the middle of the page. Inside the booking panel - which has
   20px of padding already - that made a box inside a box, and every figure in
   it sat two indents deep while the panel's own heading sat flush. */
.hb-bookpanel .hb-summary {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* The beds keep a light frame, because they are the one part of the summary
   that is a list rather than a line. */
.hb-bookpanel .hb-summary-beds {
	padding: 10px 12px;
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface-2);
}

.hb-bookpanel .hb-summary-beds li { border-bottom: 0; padding: 3px 0; }

/* The rail is not an internally scrolling box.

   `overflow-y: auto` with a max-height drew a scrollbar down the panel's right
   edge on every page, which inset the whole column from the gallery above it
   and made the two columns look unequal. It was there for a rail too tall to
   fit the screen - which it no longer is, now that the visit form has its own
   bar at the foot of the page. A rail longer than the viewport simply scrolls
   with the page, which is what a sticky column is supposed to do. */
@media (min-width: 1000px) {
	.hb-c-aside > .hb-c-sticky {
		max-height: none;
		overflow-y: visible;
	}
}

/* -------------------------------------------------- the visit bar

   Full width at the foot of the page, as the reference has it, rather than a
   long form folded into the rail. The form itself opens in a dialog. */
.hb-visit-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hb-space-md);
	padding: var(--hb-space-lg) var(--hb-space-xl);
	border: 1px solid var(--hb-accent-line);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-accent-soft);
}

.hb-visit-bar-mark {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--hb-radius);
	background: var(--hb-surface);
	color: var(--hb-accent);
}

.hb-visit-bar-mark .hb-i { width: 24px; height: 24px; }

.hb-visit-bar-text {
	flex: 1 1 260px;
	min-width: 0;
}

.hb-visit-bar-text h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.25;
}

.hb-visit-bar-text p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--hb-muted);
}

.hb-visit-bar > .hb-btn,
.hb-visit-bar > .hb-c-btn {
	flex: none;
	margin-left: auto;
}

@media (max-width: 782px) {
	.hb-visit-bar { padding: var(--hb-space-lg); }
	.hb-visit-bar > .hb-btn,
	.hb-visit-bar > .hb-c-btn { width: 100%; margin-left: 0; }
}

/* -------------------------------------------------- mess serving line

   One line outside the card - when the kitchen opens to when it closes - and
   the meal-by-meal times inside the dialog with the menu. Four rows of times
   on the card said four times what one line says, in the place where a
   student is deciding whether to read further. */
.hb-c-serving {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 10px;
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface-2);
	font-size: 13px;
}

.hb-c-serving .hb-i { width: 15px; height: 15px; color: var(--hb-accent); }
.hb-c-serving span { color: var(--hb-muted); }
.hb-c-serving strong { margin-left: auto; font-size: 12.5px; color: var(--hb-ink); }

/* The full list, inside the dialog. */
.hb-details-box .hb-c-times { margin-bottom: var(--hb-space-md); }

/* -------------------------------------------------- route chain

   The routes read as one journey - "IET DAVV - Holkar Science College - DAVV
   Takshashila" - the way the reference writes them, instead of three rows that
   looked like three separate products. */
.hb-c-route-line {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--hb-muted);
}

.hb-c-route-line b {
	font-weight: 600;
	color: var(--hb-ink);
}

/* The key, printed once above the rooms rather than inside each card. */
.hb-bed-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--hb-space-md);
	margin: 0 0 var(--hb-space-md);
	font-size: 11.5px;
	color: var(--hb-muted);
}

.hb-bed-legend > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hb-bed-legend > span::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
}

.hb-bed-legend .hb-bed-key-free::before { background: var(--hb-free); border-color: var(--hb-free); }
.hb-bed-legend .hb-bed-key-on::before { background: var(--hb-accent); border-color: var(--hb-accent); }
.hb-bed-legend .hb-bed-key-taken::before { background: var(--hb-surface-3); }

/* -------------------------------------------------- summary test shortcode

   Everything below is for `[hostelbook_summary_test]` only - a standalone
   preview of the real `.hb-bookpanel`, pre-filled with one bed so it can be
   pasted anywhere and looked at without clicking through a picker first.
   Every selector it shares with the real panel (`.hb-bookpanel`,
   `.hb-summary-*`, `.hb-c-consent`, `.hb-stickybar`, `.hb-bookpanel-trust`)
   is already styled above; only the two pieces unique to this layout are
   added here. */

/* The tinted box around the check-in date and stay duration - the reference
   sets these two fields apart from the bed and price rows beneath them. */
.hb-smtest-box {
	padding: var(--hb-space-md);
	border-radius: var(--hb-radius);
	background: var(--hb-surface-2);
}

.hb-smtest-box .hb-bookpanel-controls { gap: 12px; }

/* The condensed opt-in row this test shows inside the panel itself, rather
   than on the food/transport cards. Same shape as `.hb-c-optin`, one line
   instead of two, because there is no description text to carry here. */
.hb-smtest-extra {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 6px;
	cursor: pointer;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface-2);
	transition: border-color var(--hb-transition), background var(--hb-transition);
}

.hb-smtest-extra:hover { border-color: var(--hb-accent-line); }

.hb-smtest-extra:has(input:checked) {
	background: var(--hb-accent-soft);
	border-color: var(--hb-accent-line);
}

.hb-smtest-extra input { flex: none; }

.hb-smtest-extra > span {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 13.5px;
	color: var(--hb-ink);
}

.hb-smtest-extra .hb-c-pill {
	height: 20px;
	padding: 0 8px;
	font-size: 10px;
}

.hb-stickybar a.hb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	text-decoration: none;
}

/* ------------------------------------------------- the listing, v1.98.0

   Wide cards beside a live map. The map column only exists when HB_Map has a
   provider and a key, so `.hb-explore-mapped` is what switches the two-column
   grid on - never a media query alone. */
.hb-explore {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hb-gap-lg, 24px);
	align-items: start;
	margin-top: var(--hb-gap-lg, 24px);
}

/* Without a map a single column of wide cards would stretch to the full page
   on a desktop, and a 1400px-wide card reads badly. */
.hb-explore:not(.hb-explore-mapped) .hb-explore-list {
	max-width: 880px;
}

.hb-explore-list {
	display: flex;
	flex-direction: column;
	gap: var(--hb-gap, 16px);
	min-width: 0;
}

.hb-explore-map {
	min-width: 0;
}

.hb-explore-map-inner {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface-2);
}

.hb-explore-canvas {
	width: 100%;
	height: 320px;
	background: var(--hb-surface-3);
}

.hb-explore-map-foot {
	margin: 0;
	padding: 10px 14px;
	border-top: 1px solid var(--hb-border);
	background: var(--hb-surface);
	color: var(--hb-muted);
	font-size: 12px;
}

@media (min-width: 900px) {
	.hb-explore-mapped {
		grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
	}

	/* The map follows the reader down the list, which is the whole reason it
	   is beside the cards rather than above them. */
	.hb-explore-mapped .hb-explore-map {
		position: sticky;
		top: 16px;
	}

	.hb-explore-mapped .hb-explore-canvas {
		height: calc(100vh - 160px);
		min-height: 420px;
		max-height: 760px;
	}
}

/* ------------------------------------------------------------- the card */
.hb-xcard {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hb-xcard.is-lifted,
.hb-xcard:hover {
	border-color: var(--hb-accent-line);
	box-shadow: 0 8px 24px -4px rgba(23, 43, 58, .1), 0 3px 6px -2px rgba(23, 43, 58, .04);
}

.hb-xcard-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--hb-surface-3);
}

.hb-xcard-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hb-xcard-noimage {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--hb-muted);
	font-size: 13px;
}

.hb-xcard-tags {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 20px);
}

.hb-xtag {
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(23, 43, 58, .82);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.hb-xcard-rating,
.hb-xcard-photos {
	position: absolute;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--hb-ink);
	font-size: 12px;
	line-height: 1.3;
}

.hb-xcard-rating {
	left: 10px;
	font-weight: 600;
}

.hb-xcard-rating svg {
	width: 13px;
	height: 13px;
	color: #f4b847;
}

.hb-xcard-rating small {
	color: var(--hb-muted);
	font-weight: 400;
}

.hb-xcard-photos {
	right: 10px;
	font-weight: 500;
}

.hb-xcard-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px 16px;
	min-width: 0;
}

.hb-xcard-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.hb-xcard-name {
	min-width: 0;
}

.hb-xcard-body h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.hb-xcard-body h3 a {
	color: var(--hb-ink);
	text-decoration: none;
}

.hb-xcard-body h3 a:hover {
	color: var(--hb-accent);
}

.hb-xcard-place {
	margin: 3px 0 0;
	color: var(--hb-muted);
	font-size: 13px;
	line-height: 1.4;
}

.hb-xcard-place span {
	margin: 0 4px;
}

.hb-xcard-price {
	flex-shrink: 0;
	margin: 0;
	text-align: right;
	line-height: 1.2;
}

.hb-xcard-price small {
	display: block;
	color: var(--hb-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.hb-xcard-price strong {
	font-size: 22px;
	font-weight: 700;
	color: var(--hb-ink);
	font-variant-numeric: tabular-nums;
}

/* "Available from 1 Dec" - shown when every free bed is one on notice, so the
   card carries a price and a date instead of nothing at all (B3, v1.144.0).
   Sits inside .hb-xcard-price rather than beside it, because that paragraph
   is a flex item and a sibling would become a third one. Sentence case, not
   the uppercase of the labels around it: this is information, not a label. */
.hb-xcard-price small.hb-xcard-soon {
	margin-top: 3px;
	color: var(--hb-warn, #8a5a12);
	font-size: 11.5px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}

.hb-xcard-price small:last-child {
	text-transform: none;
	letter-spacing: 0;
}

.hb-xcard-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-xcard-chips li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--hb-surface-2);
	color: var(--hb-ink);
	font-size: 12px;
	line-height: 1.4;
}

.hb-xcard-chips svg {
	width: 13px;
	height: 13px;
	color: var(--hb-accent);
}

.hb-xcard-free {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 12px;
	border-radius: var(--hb-radius-sm);
	background: var(--hb-accent-soft);
	color: var(--hb-ink);
	font-size: 13px;
	font-weight: 500;
}

.hb-xdot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--hb-accent);
}

.hb-xcard-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--hb-border);
}

.hb-xcard-note {
	color: var(--hb-muted);
	font-size: 12.5px;
}

.hb-xcard-cta {
	flex-shrink: 0;
	padding: 9px 16px;
	font-size: 14px;
}

@media (min-width: 640px) {
	.hb-xcard {
		grid-template-columns: 280px minmax(0, 1fr);
	}

	.hb-xcard-media {
		aspect-ratio: auto;
		height: 100%;
	}
}

/* The map pin and its popup. Google draws these, so they are styled by class
   rather than through our own markup. */
.hb-pin-label {
	color: var(--hb-ink);
}

.hb-pin-card {
	display: flex;
	gap: 10px;
	width: 248px;
	max-width: 100%;
}

.hb-pin-card img {
	width: 74px;
	height: 74px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: var(--hb-radius-sm);
}

.hb-pin-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 13px;
}

.hb-pin-text strong {
	color: var(--hb-ink);
	font-size: 14px;
	line-height: 1.3;
}

.hb-pin-rating,
.hb-pin-meta {
	color: var(--hb-muted);
	font-size: 12px;
}

.hb-pin-meta b {
	color: var(--hb-ink);
}

.hb-pin-link {
	margin-top: 4px;
	color: var(--hb-accent);
	font-weight: 600;
	text-decoration: none;
}

.hb-pin-link:hover {
	text-decoration: underline;
}

/* Only an administrator ever sees this, and only while the map is not set up. */
.hb-admin-note {
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px dashed var(--hb-accent-line);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-accent-soft);
	color: var(--hb-ink);
	font-size: 13px;
}

/* ---------------------------------------------------------------------------
   The explore listing: the banded search strip, the heading with its sort and
   its filter pills, and the "how far through the list are you" footer.

   Built to the owner's StayNest canvas. The three things the canvas shows
   that no real data stands behind - a move-in date, an occupancy picker and a
   wishlist heart - are deliberately absent rather than drawn and dead.
--------------------------------------------------------------------------- */

.hb-explore-page {
	background: var(--hb-canvas);
}

.hb-explore-wrap {
	max-width: var(--hb-container-wide);
	margin: 0 auto;
	padding: var(--hb-space-lg) var(--hb-space-md);
}

/* --- the banded strip ---------------------------------------------------- */

.hb-search--explore {
	background: #fff;
	border-bottom: 1px solid var(--hb-border);
	padding: 0;
	margin: 0;
	box-shadow: var(--hb-shadow);
}

.hb-search--explore .hb-search-row {
	max-width: var(--hb-container-wide);
	margin: 0 auto;
	padding: 10px var(--hb-space-md);
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
}

/* Each field is a labelled cell divided by a hairline, the way the canvas
   bands them. The divider is a border rather than a separate element so an
   empty cell - the city dropdown on a one-city site - takes nothing with it. */
.hb-search-cell {
	flex: 1 1 180px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	padding: 8px 16px;
	border-left: 1px solid var(--hb-border);
}

.hb-search-cell:first-of-type {
	border-left: 0;
	padding-left: 4px;
}

.hb-search-cell-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-search--explore .hb-search-input,
.hb-search--explore .hb-search-select {
	border: 0;
	background: transparent;
	padding: 0;
	height: auto;
	min-height: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--hb-ink);
	box-shadow: none;
	width: 100%;
	min-width: 0;
}

.hb-search--explore .hb-search-input:focus,
.hb-search--explore .hb-search-select:focus {
	outline: 2px solid var(--hb-accent);
	outline-offset: 4px;
	border-radius: var(--hb-radius-sm);
}

.hb-search--explore > .hb-search-row > .hb-btn {
	align-self: center;
	margin-left: 16px;
	border-radius: var(--hb-radius-pill);
	padding: 12px 26px;
}

/* --- the Filters button and its panel ------------------------------------ */

.hb-more-filters--cell {
	align-self: center;
	margin-left: 10px;
	position: relative;
}

.hb-more-filters--cell > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	list-style: none;
	padding: 11px 20px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	background: #fff;
	font-weight: 600;
	color: var(--hb-ink);
	white-space: nowrap;
}

.hb-more-filters--cell > summary::-webkit-details-marker {
	display: none;
}

.hb-more-filters--cell > summary:hover {
	border-color: var(--hb-accent);
	color: var(--hb-accent);
}

.hb-more-filters--cell .hb-count {
	background: var(--hb-accent);
	color: #fff;
	border-radius: var(--hb-radius-pill);
	padding: 2px 9px;
	font-size: 12px;
	font-weight: 700;
}

.hb-more-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 10px);
	right: 0;
	width: min(420px, calc(100vw - 32px));
	max-height: min(70vh, 560px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	box-shadow: var(--hb-shadow-lg);
	padding: var(--hb-space-md);
	display: grid;
	gap: var(--hb-space-sm);
	text-align: left;
}

.hb-more-panel fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.hb-more-panel legend {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hb-muted);
	padding: 0 0 4px;
}

.hb-more-panel label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--hb-ink);
}

.hb-more-panel .hb-search-select {
	width: 100%;
}

/* On a phone the panel is the width of the screen rather than a dropdown
   hanging off a button that is itself nearly the width of the screen. */
@media (max-width: 640px) {
	.hb-more-filters--cell {
		width: 100%;
		margin: 10px 0 0;
	}

	.hb-more-filters--cell > summary {
		width: 100%;
		justify-content: center;
	}

	.hb-more-panel {
		position: static;
		width: auto;
		max-height: none;
		margin-top: 10px;
	}

	.hb-search-cell {
		flex: 1 1 100%;
		border-left: 0;
		border-top: 1px solid var(--hb-border);
		padding-left: 4px;
	}

	.hb-search-cell:first-of-type {
		border-top: 0;
	}

	.hb-search--explore > .hb-search-row > .hb-btn {
		width: 100%;
		margin: 10px 0 0;
	}
}

/* --- heading, sort and the pills ----------------------------------------- */

.hb-xhead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--hb-space-sm);
}

.hb-xhead-text {
	min-width: 0;
}

.hb-xhead-title {
	margin: 0;
	font-family: var(--hb-font-head);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
	color: var(--hb-ink);
	text-wrap: balance;
}

.hb-xhead-sub {
	margin: 6px 0 0;
	color: var(--hb-muted);
	font-size: 14px;
}

.hb-xsort {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.hb-xsort-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-xsort select {
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	background: #fff;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hb-ink);
}

.hb-xpills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: var(--hb-space-sm);
}

.hb-xpill,
.hb-xchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: var(--hb-radius-pill);
	border: 1px solid var(--hb-border);
	background: #fff;
	color: var(--hb-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}

.hb-xpill,
.hb-xchip.is-on {
	background: var(--hb-accent-soft);
	border-color: var(--hb-accent-line);
	color: var(--hb-accent-ink);
}

.hb-xpill:hover,
.hb-xchip:hover {
	border-color: var(--hb-accent);
	color: var(--hb-accent);
}

.hb-xpill svg,
.hb-xchip svg {
	opacity: .65;
	flex: 0 0 auto;
}

.hb-xpill-clear {
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hb-xpill-clear:hover {
	color: var(--hb-accent);
}

/* --- how far through the list -------------------------------------------- */

.hb-xmore {
	margin: var(--hb-space-lg) auto 0;
	max-width: 620px;
	padding: var(--hb-space-md);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: #fff;
	text-align: center;
}

.hb-xmore-count {
	margin: 0;
	color: var(--hb-muted);
	font-size: 14px;
}

.hb-xmore-bar {
	height: 4px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-border);
	margin: 12px auto 16px;
	max-width: 420px;
	overflow: hidden;
}

.hb-xmore-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--hb-accent);
}

.hb-xmore-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.hb-xmore-next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--hb-radius-pill);
	padding: 12px 28px;
}

/* The theme sets `flex: 1 1 240px` on the search field. Inside these cells
   the flex direction is COLUMN, so that flex-basis is the field's **height**,
   not its width - which is why the Search cell stood 290px tall while the
   three select cells beside it were 73px, and why setting `height` changed
   nothing at all: in the main axis, flex-basis wins over height. Taking the
   children out of the flow fixes it; `align-items: stretch` stays on the row
   so the hairline dividers still run the full depth of the band. */
.hb-search--explore .hb-search-cell > * {
	flex: 0 0 auto;
}

.hb-search--explore .hb-search-cell .hb-search-input,
.hb-search--explore .hb-search-cell .hb-search-select {
	height: auto;
	min-height: 0;
	max-height: none;
	line-height: 1.45;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.hb-search--explore .hb-search-cell {
	padding-block: 12px;
}

/* The city chip has no cross on it when it is the default one: there is no
   "all cities" to go back to, so an X there would promise something the
   listing cannot do. It still reads as part of the same row. */
.hb-xpill-fixed {
	cursor: default;
}

.hb-xpill-fixed:hover {
	border-color: var(--hb-accent-line);
	color: var(--hb-accent-ink);
}
