/**
 * Design tokens.
 *
 * On :root, deliberately, not on a wrapper. They used to be declared on
 * .hb-single - the plugin's own page wrapper - so anything Elementor drew sat
 * outside it and every one of these resolved to nothing: borders fell back to
 * currentColor, muted text stopped being muted, the accent disappeared. Every
 * widget a page builder renders is outside .hb-single by definition, which
 * made the builder-drawn pages the one place the design system did not reach.
 * All of them are --hb- prefixed, so a global scope collides with nothing.
 *
 * Redeclare any of these on a narrower selector to restyle everything inside
 * it. That is exactly what the Elementor style controls do: they write these
 * onto the widget wrapper, so one colour control re-themes a whole section
 * without a line of markup changing.
 */
:root {
	/* Brand — teal, not blue (13 Oct 2026). Hospitality reads warmer than a
	   fintech blue, and the whole palette is lifted from the design system the
	   owner approved. Names never change: Elementor's style controls write
	   these onto widget wrappers, so a rename would blank a live template. */
	--hb-accent: #256b68;
	--hb-accent-dark: #1d5553;
	--hb-accent-soft: #ddf4ef;
	--hb-accent-line: #7dd3c7;
	--hb-accent-ink: #fff;

	/* State */
	--hb-free: #15803d;
	--hb-free-bg: #f0fdf4;
	--hb-free-line: #bbf7d0;
	--hb-taken: #9ca3af;
	--hb-soon: #92400e;
	--hb-soon-bg: #fffbeb;
	--hb-soon-line: #fde68a;
	--hb-danger: #b91c1c;
	--hb-danger-bg: #fef2f2;
	--hb-danger-line: #fecaca;
	--hb-disabled: #cbd5e1;

	/* Amber — money that is pending rather than wrong. Deliberately separate
	   from --hb-soon, which means "a bed frees up soon": one is a warning
	   about a payment, the other is an opportunity, and a single token for
	   both would force one of them to read in the wrong voice. */
	--hb-warn: #b47d16;
	--hb-warn-bg: #fef7ea;
	--hb-warn-line: #f4b847;

	/* Premium / tier badges */
	--hb-premium: #6355b9;
	--hb-premium-bg: #f1eefa;

	/* The bed picker, sized by token so one control can resize the grid
	   without a selector per state. */
	--hb-bed-w: 58px;
	--hb-bed-h: 52px;
	--hb-bed-gap: 8px;
	--hb-bed-lift: -2px;
	--hb-bed-speed: .12s;

	/* Ink and lines */
	--hb-ink: #172b3a;
	--hb-muted: #798694;
	--hb-border: #e2e8f0;

	/* Surfaces */
	--hb-surface: #fff;
	--hb-surface-2: #f8fafc;
	--hb-surface-3: #f3f4f6;

	/* The page behind the cards. Defined but NOT applied yet: .hb-single is a
	   960px centred column, so tinting it would paint a coloured stripe down
	   the middle of a white page rather than the full canvas the design
	   intends. It is applied when the page itself is ours to set. */
	--hb-canvas: #f6f8fc;

	/* Shape */
	--hb-radius-sm: 8px;
	--hb-radius: 10px;
	--hb-radius-lg: 16px;
	--hb-radius-xl: 20px;
	--hb-radius-pill: 999px;

	/* Depth — tinted with the ink colour rather than pure black, which is what
	   keeps a stack of white cards from looking grey and dirty. */
	--hb-shadow: 0 2px 8px -2px rgba(23, 43, 58, .04), 0 1px 3px -1px rgba(23, 43, 58, .02);
	--hb-shadow-md: 0 8px 24px -4px rgba(23, 43, 58, .08), 0 3px 6px -2px rgba(23, 43, 58, .03);
	--hb-shadow-lg: 0 20px 36px -8px rgba(23, 43, 58, .16);
	--hb-ring: 0 0 0 3px rgba(37, 107, 104, .15);

	/* Type. Scoped to .hb-single, never to body — the same site also runs a
	   storefront, and its font is not ours to change. Inter carries numbers
	   only: tabular figures keep a column of prices aligned. */
	--hb-font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--hb-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--hb-font-num: 'Inter', ui-monospace, system-ui, sans-serif;

	/* Rhythm and motion */
	--hb-gap: 12px;
	--hb-gap-lg: 20px;
	--hb-space-xs: 4px;
	--hb-space-sm: 8px;
	--hb-space-md: 16px;
	--hb-space-lg: 20px;
	--hb-space-xl: 28px;
	--hb-container: 960px;

	/* A second width, for pages that carry a sidebar. 960px was chosen when
	   every page was one column; split into content plus a 320px rail it
	   leaves 580px, which is not enough for the bed picker. Kept as its own
	   token rather than widening --hb-container, because that one also sizes
	   the checkout and the sign-up forms, and a 1200px-wide form is worse
	   than a narrow one. */
	--hb-container-wide: 1200px;
	--hb-transition: .15s ease;
}

.hb-single {
	max-width: var(--hb-container);
	margin: 0 auto;
	padding: 24px 16px 140px;
	color: var(--hb-ink);
	line-height: 1.6;
}

.hb-hero-media img {
	width: 100%;
	height: auto;
	border-radius: var(--hb-radius-lg);
	display: block;
}

.hb-title {
	margin: 18px 0 4px;
	font-size: 30px;
	line-height: 1.2;
}

.hb-location {
	margin: 0 0 10px;
	color: var(--hb-muted);
}

.hb-tags {
	margin: 0 0 14px;
}

.hb-tag {
	display: inline-block;
	padding: 3px 12px;
	margin-right: 6px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-hero-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	padding: 14px 0;
	border-top: 1px solid var(--hb-border);
	border-bottom: 1px solid var(--hb-border);
}

.hb-hero-price strong {
	font-size: 24px;
}

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

.hb-availability {
	margin-left: auto;
	color: var(--hb-free) !important;
	font-weight: 600;
}

.hb-section {
	margin-top: 36px;
}

.hb-section > h2 {
	font-size: 20px;
	margin: 0 0 6px;
}

.hb-section-note {
	margin: 0 0 12px;
	color: var(--hb-muted);
	font-size: 14px;
}

.hb-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.hb-gallery img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: var(--hb-radius-sm);
	display: block;
	/* Declared here so a hover transform set from the page builder animates
	   instead of snapping. Costs nothing while no transform is set. */
	transition: transform var(--hb-transition), box-shadow var(--hb-transition);
}

.hb-feature-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 8px;
}

.hb-feature-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.hb-check {
	color: var(--hb-free);
	font-weight: 700;
}

.hb-rule-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	overflow: hidden;
}

.hb-rule-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 12px 16px;
	border-bottom: 1px solid var(--hb-border);
}

.hb-rule-list li:last-child {
	border-bottom: 0;
}

.hb-rule-list span {
	color: var(--hb-muted);
}

.hb-rule-bullets {
	list-style: disc;
	margin: 14px 0 0;
	padding: 0 0 0 20px;
}

.hb-rule-bullets li {
	margin: 0 0 6px;
}

.hb-rule-bullets li:last-child {
	margin-bottom: 0;
}

.hb-picker-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 16px 0 24px;
}

.hb-control {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.hb-control span {
	color: var(--hb-muted);
}

.hb-control select,
.hb-control input {
	padding: 9px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	font-size: 15px;
	background: var(--hb-surface);
	color: var(--hb-ink);
}

/* The picker's own asides - the stay-length hint, and the lead-ins to the two
   blocks below. Same voice as .hb-section-note, which sits in <section>s. */
.hb-picker-note {
	margin: 0 0 12px;
	color: var(--hb-muted);
	font-size: 14px;
}

/*
 * Who is staying, asked beside the beds since v1.47.0. One card per student,
 * and the cards past the chosen count carry the hidden attribute, so nothing
 * here has to know how many are showing.
 */
.hb-picker-students {
	margin: 0 0 24px;
}

.hb-picker-students h3 {
	margin: 0 0 4px;
	font-size: 17px;
}

.hb-picker-student {
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	padding: 4px 16px 14px;
	margin: 12px 0 0;
}

.hb-picker-student legend {
	padding: 0 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--hb-accent);
}

.hb-picker-student-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.hb-picker-student-row .hb-control input {
	width: 100%;
	box-sizing: border-box;
}

/* Food and transport, moved here from checkout so the whole cost of living at
   this hostel is decided on one screen. */
.hb-picker-extras {
	border-top: 1px solid var(--hb-border);
	margin: 26px 0 0;
	padding: 22px 0 0;
}

.hb-picker-extras h3 {
	margin: 0 0 4px;
	font-size: 17px;
}

.hb-picker-extras .hb-pay-options {
	margin-top: 14px;
}

.hb-group {
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	padding: 18px;
	margin-bottom: 16px;
}

.hb-group-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

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

.hb-group-price {
	font-size: 19px;
	font-weight: 700;
}

.hb-group-price small {
	font-size: 13px;
	font-weight: 400;
	color: var(--hb-muted);
}

.hb-group-features {
	margin-top: 10px;
}

.hb-chip {
	display: inline-block;
	padding: 3px 11px;
	margin: 0 6px 6px 0;
	border-radius: var(--hb-radius-pill);
	font-size: 13px;
	border: 1px solid var(--hb-border);
}

.hb-chip.is-on {
	background: var(--hb-accent-soft);
	border-color: var(--hb-accent-line);
	color: var(--hb-accent-dark);
}

.hb-chip.is-off {
	color: var(--hb-taken);
	text-decoration: line-through;
}

.hb-group-count {
	margin: 10px 0 4px;
	font-size: 13px;
	color: var(--hb-free);
	font-weight: 600;
}

.hb-room {
	padding: 12px 0;
	border-top: 1px solid var(--hb-border);
}

.hb-room-line {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}

/* Pushed to the end of the room line so prices form a column the eye can run
   down, rather than sitting wherever the room name happens to end. */
.hb-room-price {
	margin-left: auto;
	white-space: nowrap;
}

.hb-room-price small {
	color: var(--hb-muted);
}

.hb-room-floor {
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-beds {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hb-bed-gap);
}

.hb-bed {
	width: var(--hb-bed-w);
	height: var(--hb-bed-h);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--hb-radius-sm);
	border: 1.5px solid var(--hb-border);
	background: var(--hb-surface);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform var(--hb-bed-speed), border-color var(--hb-bed-speed), background var(--hb-bed-speed);
	padding: 0;
	color: var(--hb-ink);
}

.hb-bed.is-free {
	border-color: var(--hb-free-line);
	background: var(--hb-free-bg);
	color: var(--hb-free);
}

.hb-bed.is-free:hover {
	border-color: var(--hb-free);
	transform: translateY(var(--hb-bed-lift));
}

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

.hb-bed.is-soon {
	background: var(--hb-soon-bg);
	border-color: var(--hb-soon-line);
	color: var(--hb-soon);
	flex-direction: column;
	gap: 1px;
	height: auto;
	min-height: var(--hb-bed-h);
	padding: 6px 4px;
	/* Wider than a plain bed: it carries a date as well as a number. */
	width: calc(var(--hb-bed-w) + 6px);
}

.hb-bed-from {
	font-size: 10px;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
}

.hb-bed.is-unavailable {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.hb-group.is-empty {
	display: none;
}

.hb-bed.is-taken {
	background: var(--hb-surface-3);
	color: var(--hb-taken);
	cursor: not-allowed;
	text-decoration: line-through;
}

.hb-summary {
	margin-top: 22px;
	padding: 16px 18px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface-2);
}

.hb-summary h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.hb-summary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

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

.hb-summary-total {
	display: flex;
	justify-content: space-between;
	margin: 12px 0 0;
	font-size: 17px;
}

/* Deposit line and the move-in total beneath the monthly figure. The move-in
   line is the one a student is really deciding on, so it carries the weight. */
.hb-summary-line {
	display: flex;
	justify-content: space-between;
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--hb-muted);
}

.hb-summary-movein {
	display: flex;
	justify-content: space-between;
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--hb-border);
	font-size: 17px;
	font-weight: 600;
}

.hb-summary-note {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-stickybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 18px;
	background: var(--hb-surface);
	border-top: 1px solid var(--hb-border);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

.hb-stickybar-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.hb-stickybar-info strong {
	font-size: 15px;
}

.hb-stickybar-info span {
	font-size: 14px;
	color: var(--hb-muted);
}

.hb-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--hb-radius-sm);
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

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

.hb-btn-primary:disabled {
	background: var(--hb-disabled);
	cursor: not-allowed;
}

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

.hb-search {
	margin: 20px 0 28px;
}

.hb-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px;
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.hb-search-input {
	flex: 1 1 240px;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: var(--hb-radius-sm);
	font-size: 15px;
	color: var(--hb-ink);
	background: var(--hb-surface-2);
}

.hb-search-input:focus {
	background: var(--hb-surface);
	border-color: var(--hb-accent);
	outline: none;
}

.hb-search-select {
	padding: 10px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface);
	font-size: 14px;
	color: var(--hb-ink);
}

.hb-search .hb-btn {
	padding: 10px 24px;
}

.hb-grid {
	display: grid;
	grid-template-columns: repeat(var(--hb-cols, 3), minmax(0, 1fr));
	gap: 18px;
	margin: 24px 0;
}

.hb-card {
	display: flex;
	flex-direction: column;
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: var(--hb-ink);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.hb-card:hover {
	border-color: var(--hb-accent);
	box-shadow: var(--hb-shadow-lg);
	color: var(--hb-ink);
	transform: translateY(-2px);
}

.hb-card-media {
	aspect-ratio: 16 / 10;
	background: var(--hb-surface-3);
	overflow: hidden;
}

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

.hb-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hb-card-body strong {
	font-size: 16px;
	line-height: 1.3;
}

.hb-card-place {
	color: var(--hb-muted);
	font-size: 13px;
}

.hb-card-tags {
	margin-top: 2px;
}

.hb-card-price {
	margin-top: 4px;
	font-size: 15px;
}

.hb-card-price strong {
	font-size: 17px;
	color: var(--hb-ink);
}

.hb-card-price small {
	color: var(--hb-muted);
	font-weight: 400;
	margin-left: 2px;
}

.hb-card-avail {
	font-size: 12px;
	color: var(--hb-free);
	font-weight: 600;
}

.hb-price-inline strong {
	font-size: 18px;
}

.hb-price-inline small {
	color: var(--hb-muted);
	font-weight: 400;
	margin-left: 2px;
}

.hb-availability-inline {
	color: var(--hb-free);
	font-weight: 600;
}

.hb-map-section {
	margin-top: 30px;
}

.hb-map-actions {
	margin-top: 12px;
}

.hb-map {
	margin: 14px 0;
	border-radius: var(--hb-radius);
	overflow: hidden;
	border: 1px solid var(--hb-border);
	line-height: 0;
}

.hb-map iframe {
	width: 100%;
	height: 280px;
	border: 0;
	display: block;
}

.hb-contact-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.hb-empty-note {
	padding: 22px;
	border: 1px dashed var(--hb-border);
	border-radius: var(--hb-radius);
	color: var(--hb-muted);
	text-align: center;
}

.hb-error {
	padding: 12px 16px;
	margin: 0 0 16px;
	border-radius: var(--hb-radius-sm);
	background: var(--hb-danger-bg);
	border: 1px solid var(--hb-danger-line);
	color: var(--hb-danger);
}

.hb-checkout {
	padding-bottom: 60px;
}

.hb-hold-note {
	display: inline-block;
	padding: 8px 14px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-soon-bg);
	border: 1px solid var(--hb-soon-line);
	color: var(--hb-soon);
	font-size: 14px;
}

.hb-summary-beds,
.hb-price-lines {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	overflow: hidden;
}

.hb-summary-beds li,
.hb-price-lines li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	padding: 13px 16px;
	border-bottom: 1px solid var(--hb-border);
}

.hb-summary-beds li:last-child,
.hb-price-lines li:last-child {
	border-bottom: 0;
}

.hb-summary-beds small,
.hb-price-lines small {
	color: var(--hb-muted);
	font-weight: 400;
}

.hb-price-lines small {
	display: block;
	font-size: 13px;
}

.hb-price-total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0 0;
	padding: 14px 16px;
	border-radius: var(--hb-radius);
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-border);
	font-size: 19px;
}

.hb-student {
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	padding: 6px 18px 18px;
	margin: 0 0 16px;
}

.hb-student legend {
	padding: 0 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--hb-accent);
}

.hb-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
}

.hb-field-grid label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.hb-field-grid label span {
	color: var(--hb-muted);
}

.hb-field-grid input,
.hb-field-grid select {
	padding: 9px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	font-size: 15px;
	background: var(--hb-surface);
	color: var(--hb-ink);
	width: 100%;
	box-sizing: border-box;
}

.hb-field-grid input:focus,
.hb-field-grid select:focus {
	outline: 2px solid var(--hb-accent);
	outline-offset: 1px;
	border-color: var(--hb-accent);
}

.hb-student-row {
	display: grid;
	/* Fixed pixel columns were written when this form had the whole page. In
	   the redesign's left column they squashed every label into one letter per
	   line, so the track sizes follow the space there actually is. */
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	align-items: flex-end;
}

.hb-student-row .hb-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.hb-student-row .hb-col span {
	color: var(--hb-muted);
	font-size: 12px;
}

.hb-student-row .hb-col input,
.hb-student-row .hb-col select {
	padding: 9px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	font-size: 14px;
	background: var(--hb-surface);
	color: var(--hb-ink);
	width: 100%;
	box-sizing: border-box;
}

.hb-student-row .hb-col input:focus,
.hb-student-row .hb-col select:focus {
	outline: 2px solid var(--hb-accent);
	outline-offset: 1px;
	border-color: var(--hb-accent);
}

.hb-student-row .hb-col-upload input[type="file"] {
	padding: 6px 8px;
	font-size: 12px;
}

.hb-upload-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-style: normal;
	color: var(--hb-muted);
}

.hb-student-row .hb-col-checkbox {
	display: flex;
	flex-direction: row;
	gap: 6px;
	align-items: center;
	justify-content: flex-start;
	padding-bottom: 9px;
}

.hb-student-row .hb-col-checkbox span {
	color: var(--hb-ink);
	font-size: 12px;
}

.hb-student-row .hb-col-checkbox input[type="checkbox"] {
	width: auto;
	margin: 0;
}

/* `hidden` alone does nothing here: `.hb-student-row .hb-col { display: flex }`
   is a class rule and beats the browser's own [hidden] rule, so the WhatsApp
   box, the exam question and the college box would have stayed on screen for
   ever. */
.hb-student-row .hb-col[hidden],
.hb-student-row .hb-profession[hidden] {
	display: none;
}

.hb-student-row .hb-same-as-first span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hb-student-row .hb-same-as-first em {
	color: var(--hb-muted);
	font-size: 11px;
	font-style: normal;
}

.hb-student-row .hb-wa-same-wrap {
	padding-bottom: 0;
}

/* The question itself. A fieldset carries the five radios so the legend is the
   group's label for a screen reader, not a loose line of text above it. */
.hb-student-row .hb-profession {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
}

.hb-student-row .hb-profession legend {
	padding: 0;
	color: var(--hb-muted);
	font-size: 12px;
}

.hb-profession-note {
	color: var(--hb-muted);
	font-size: 11px;
	font-style: normal;
	line-height: 1.45;
}

.hb-profession-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px;
}

/* A tap target, not a radio dot. 44px is the floor on a phone, and the whole
   card is the label, so the dot itself never has to be hit. */
.hb-profession-option {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface);
	cursor: pointer;
	font-size: 13px;
	line-height: 1.3;
}

.hb-profession-option:hover {
	border-color: var(--hb-accent);
}

.hb-student-row .hb-profession-option input[type="radio"] {
	width: auto;
	margin: 0;
	flex: 0 0 auto;
}

.hb-profession-option span {
	color: var(--hb-ink);
	font-size: 13px;
}

/* Not relied on: the outline is a nicety, and the radio dot still says which
   one is chosen in a browser without :has(). */
.hb-profession-option:has( input:checked ) {
	border-color: var(--hb-accent);
	box-shadow: inset 0 0 0 1px var(--hb-accent);
}

@media ( max-width: 600px ) {
	.hb-profession-options {
		grid-template-columns: 1fr;
	}
}

.hb-idproof-note {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: var(--hb-radius);
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-border);
	font-size: 14px;
}

.hb-idproof-note strong {
	display: block;
	margin-bottom: 4px;
}

.hb-idproof-note p {
	margin: 0 0 6px;
	color: var(--hb-muted);
}

.hb-idproof-privacy {
	font-size: 13px;
}

.hb-field-grid label span em {
	font-style: normal;
	font-size: 12px;
	color: var(--hb-muted);
	opacity: 0.8;
}

.hb-field-wide {
	grid-column: 1 / -1;
}

.hb-pay-options {
	display: grid;
	gap: 10px;
	margin: 14px 0;
}

.hb-pay-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border: 1.5px solid var(--hb-border);
	border-radius: var(--hb-radius);
	cursor: pointer;
}

.hb-pay-option:has(input:checked) {
	border-color: var(--hb-accent);
	background: var(--hb-accent-soft);
}

.hb-pay-option span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hb-pay-option small {
	color: var(--hb-muted);
}

.hb-agree {
	margin: 16px 0;
	font-size: 14px;
}

.hb-agree label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

/* The marketing tick. `.hb-agree` sets no `display`, so the browser's own
   [hidden] rule hides the whole paragraph when the booker is under 18 - but
   it is stated here rather than relied on, because a `display` added to
   `.hb-agree` later would silently un-hide it. */
.hb-marketing[hidden] {
	display: none;
}

.hb-marketing-note {
	display: block;
	margin-top: 4px;
	/* Lines up under the label's text, past the checkbox and its gap. */
	padding-left: 24px;
	color: var(--hb-muted);
	font-size: 11px;
	font-style: normal;
	line-height: 1.45;
}

.hb-btn-wide {
	min-width: 220px;
}

.hb-checkout-form .hb-section {
	margin-top: 30px;
}

.hb-field-wide {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 12px;
	font-size: 14px;
}

.hb-field-wide span {
	color: var(--hb-muted);
}

.hb-field-wide textarea {
	padding: 9px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-sm);
	font-size: 15px;
	font-family: inherit;
	background: var(--hb-surface);
	color: var(--hb-ink);
	width: 100%;
	box-sizing: border-box;
}

.hb-owner-signup .hb-location {
	max-width: 560px;
}

.hb-authswitch {
	display: inline-block;
	margin: 4px 0 18px;
	padding: 10px 16px;
	border-radius: var(--hb-radius);
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-border);
	font-size: 14px;
	color: var(--hb-muted);
}

.hb-authswitch a {
	font-weight: 600;
	margin-left: 4px;
}

.hb-confirm-head {
	text-align: center;
	padding: 20px 0 6px;
}

.hb-confirm-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--hb-free-bg);
	color: var(--hb-free);
	font-size: 30px;
	font-weight: 700;
	border: 2px solid var(--hb-free-line);
}

.hb-confirmed .hb-title {
	margin-top: 14px;
}

.hb-confirmed .hb-location {
	max-width: 480px;
	margin: 0 auto;
}

.hb-account-card {
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	padding: 18px;
	margin-bottom: 16px;
}

.hb-account-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.hb-account-card-head strong {
	font-size: 16px;
}

.hb-pill {
	display: inline-block;
	padding: 3px 12px;
	border-radius: var(--hb-radius-pill);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.hb-pill-booked { background: var(--hb-accent-soft); color: var(--hb-accent-dark); }
.hb-pill-active { background: var(--hb-free-bg); color: var(--hb-free); }
.hb-pill-pending { background: var(--hb-soon-bg); color: var(--hb-soon); }
.hb-pill-notice { background: var(--hb-warn-bg); color: var(--hb-warn); }
.hb-pill-completed { background: var(--hb-surface-3); color: var(--hb-muted); }
.hb-pill-cancelled { background: var(--hb-danger-bg); color: var(--hb-danger); }

.hb-account-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.hb-account-facts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.hb-account-facts span {
	font-size: 12px;
	color: var(--hb-muted);
}

.hb-account-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--hb-border);
	align-items: center;
}

.hb-inline-post {
	margin: 0;
}

.hb-btn-quiet {
	color: var(--hb-muted);
	border-color: var(--hb-border);
}

.hb-account-subhead {
	margin: 24px 0 10px;
	font-size: 15px;
	color: var(--hb-muted);
}

.hb-account-past {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	overflow: hidden;
}

.hb-account-past li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 16px;
	border-bottom: 1px solid var(--hb-border);
}

.hb-account-past li:last-child {
	border-bottom: 0;
}

.hb-account-past small {
	color: var(--hb-muted);
	margin-left: 8px;
}

.hb-account-deposit {
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	padding: 14px 16px;
	margin-bottom: 10px;
}

.hb-account-deposit p {
	margin: 0 0 6px;
}

.hb-account-deposit p:last-child {
	margin-bottom: 0;
}

.hb-account-deposit-head small {
	color: var(--hb-muted);
	margin-left: 8px;
}

.hb-account-deposit-note {
	color: var(--hb-muted);
	font-size: 14px;
}

.hb-account-extras {
	list-style: none;
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 1px dashed var(--hb-border);
}

.hb-account-extras li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 5px 0;
	font-size: 14px;
}

.hb-account-extras small { color: var(--hb-muted); margin-left: 4px; }
.hb-account-extras strong { margin-left: 4px; }

/*
 * Starting a service mid-stay (D28). The row above is a space-between flex
 * line, which is right for a one-word action and wrong for a form carrying
 * route choices, a sentence and a button - so that row stacks instead.
 */
.hb-account-extras-stack {
	display: block !important;
	border-top: 1px dashed var(--hb-border);
	margin-top: 6px !important;
	padding-top: 10px !important;
}

.hb-account-start {
	margin: 8px 0 0;
}

.hb-account-start-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
}

/* A tap target, not a radio dot: 44px is the floor on a phone. */
.hb-account-route {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 4px 10px;
	margin-bottom: 6px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius, 8px);
	cursor: pointer;
}

.hb-account-route span { flex: 1 1 auto; }
.hb-account-route strong { margin-left: 0; }

/* A full route is shown with its reason, never hidden - a student who cannot
   find the route they wanted rings the hostel instead. */
.hb-account-route:has( input:disabled ) {
	opacity: 0.6;
	cursor: not-allowed;
}

.hb-account-start-when {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--hb-muted);
}

@media ( max-width: 600px ) {
	.hb-account-start .hb-btn { width: 100%; }
}

.hb-btn-link {
	background: none;
	border: 0;
	padding: 0;
	font-size: 13px;
	color: var(--hb-muted);
	text-decoration: underline;
	cursor: pointer;
}

.hb-btn-link:hover { color: var(--hb-ink); }

.hb-mess-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 10px 0;
}

.hb-mess-head strong { font-size: 22px; }
.hb-mess-head span { color: var(--hb-muted); font-size: 14px; }





.hb-route-pick { margin-top: 8px; }

.hb-account-empty {
	text-align: center;
	padding: 30px 20px;
	color: var(--hb-muted);
}

.hb-note {
	padding: 12px 16px;
	border-radius: var(--hb-radius-sm);
	margin-bottom: 16px;
}

.hb-note-ok { background: var(--hb-free-bg); border: 1px solid var(--hb-free-line); color: var(--hb-free); }
.hb-note-bad { background: var(--hb-danger-bg); border: 1px solid var(--hb-danger-line); color: var(--hb-danger); }

.hb-account-owing {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px;
	border-radius: var(--hb-radius-lg);
	background: var(--hb-soon-bg);
	border: 1px solid var(--hb-soon-line);
	margin-bottom: 16px;
}

.hb-account-owing span { color: var(--hb-soon); font-size: 14px; }
.hb-account-owing strong { font-size: 26px; color: var(--hb-soon); line-height: 1.1; }
.hb-account-owing small { color: var(--hb-warn); font-size: 12px; }

.hb-account-owing-clear {
	background: var(--hb-free-bg);
	border-color: var(--hb-free-line);
}

.hb-account-owing-clear span { color: var(--hb-free); font-weight: 600; font-size: 16px; }

/* The heading over settled months, and the list under it. Kept quieter than
   the list of what is still owed, which is what the student came to see. */
.hb-rent-past-title {
	margin: 24px 0 10px;
	font-size: 15px;
	color: var(--hb-muted);
}

.hb-rent-list-past {
	opacity: 0.85;
}

/* GST sits in the price list like any other line, but is worth marking as
   the one thing that is not part of what the hostel charges. */
.hb-price-gst {
	border-top: 1px dashed var(--hb-border);
}

.hb-rent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	overflow: hidden;
}

.hb-rent-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border-bottom: 1px solid var(--hb-border);
	border-left: 3px solid transparent;
}

.hb-rent-row:last-child {
	border-bottom: 0;
}

.hb-rent-row small {
	display: block;
	color: var(--hb-muted);
	font-size: 12px;
}

.hb-rent-amount {
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

.hb-rent-ok { border-left-color: var(--hb-free); }
.hb-rent-ok .hb-rent-amount { color: var(--hb-free); }
.hb-rent-due { border-left-color: var(--hb-accent); }
.hb-rent-late { border-left-color: var(--hb-danger); }
.hb-rent-late .hb-rent-amount { color: var(--hb-danger); }

@media (max-width: 900px) {
	.hb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hb-title {
		font-size: 24px;
	}

	.hb-grid {
		grid-template-columns: 1fr;
	}

	.hb-search-row {
		flex-direction: column;
	}

	.hb-search-select,
	.hb-search-input {
		width: 100%;
	}

	.hb-picker-controls {
		flex-direction: column;
	}

	.hb-control select,
	.hb-control input {
		width: 100%;
	}

	.hb-bed {
		width: 52px;
		height: 48px;
	}

	.hb-btn-primary {
		padding: 12px 18px;
	}
}

/* Search filters: chips, budget and the "More filters" drawer. */
.hb-search-filters {
	margin-top: 12px;
}

.hb-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hb-chip {
	position: relative;
	cursor: pointer;
}

/* Visually hidden, still focusable and still announced. */
.hb-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.hb-chip span {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface);
	font-size: 14px;
	color: var(--hb-ink);
	transition: background .15s, border-color .15s;
}

.hb-chip:hover span {
	border-color: var(--hb-accent);
}

.hb-chip input:checked + span {
	background: var(--hb-accent);
	border-color: var(--hb-accent);
	color: var(--hb-surface);
}

.hb-chip input:focus-visible + span {
	outline: 2px solid var(--hb-accent);
	outline-offset: 2px;
}

.hb-budget {
	border-radius: var(--hb-radius-pill);
}

.hb-clear-filters {
	font-size: 14px;
	color: var(--hb-muted);
	margin-left: 4px;
}

.hb-more-filters {
	margin-top: 10px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface);
}

.hb-more-filters summary {
	cursor: pointer;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hb-ink);
}

.hb-more-filters[open] summary {
	border-bottom: 1px solid var(--hb-border);
}

.hb-more-filters .hb-count {
	display: inline-block;
	min-width: 20px;
	margin-left: 6px;
	padding: 0 6px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-accent);
	color: var(--hb-surface);
	font-size: 12px;
	text-align: center;
}

.hb-more-filters fieldset {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 8px 16px;
	margin: 0;
	padding: 14px;
	border: 0;
}

.hb-more-filters legend {
	padding: 0;
	margin-bottom: 4px;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-more-filters label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.hb-more-note {
	margin: 0 14px 10px;
	font-size: 12px;
	color: var(--hb-muted);
}

.hb-more-filters .hb-btn {
	margin: 0 14px 14px;
}

/* Elementor-designed templates. */
/*
 * The builder wrapper must be exactly as wide as the PHP page it replaces.
 *
 * `templates/builder/*.php` wraps the page in `<main id="primary">`, which is
 * the id themes use for the content column beside a sidebar. Woostify's own
 * rule is `.has-sidebar:not(.offcanvas-sidebar) #primary { width: calc(80%) }`
 * above 992px, and this site carries `has-sidebar` on the body for every post
 * type - while printing NO sidebar element at all on a property page. So an
 * active Elementor template silently lost a fifth of the page to empty space
 * on the right, and the non-builder path, which has no `#primary`, kept the
 * full width. Two routes to one page may not disagree about how wide it is.
 *
 * `!important` is here because specificity cannot win this one, and that was
 * proved on the live page rather than argued: v1.161.0 shipped
 * `#primary.hb-builder` - one id and ONE class - and measured 936px again.
 * The theme's selector is one id and TWO classes, because `:not(.x)` carries
 * the weight of what is inside it. Adding a third class to ours would only
 * tie, and a tie is decided by source order, where the theme's inline block
 * in `<head>` wins. The rule matches nothing but our own wrapper, and the
 * width of that wrapper is not a design choice anyone should be overriding.
 */
.hb-builder,
#primary.hb-builder {
	width: 100% !important;
}

.hb-grid-designed .hb-card-slot {
	min-width: 0;
}

.hb-card-preview {
	max-width: 380px;
	margin: 0 auto 60px;
}

.hb-preview-note {
	max-width: 380px;
	margin: 30px auto 10px;
	font-size: 13px;
	color: var(--hb-muted);
}

/* Shown only inside the Elementor editor, never to visitors. */
.hb-widget-hint {
	padding: 14px 16px;
	border: 1px dashed var(--hb-border);
	border-radius: var(--hb-radius-sm);
	background: var(--hb-surface-2);
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-title-el a {
	color: inherit;
	text-decoration: none;
}

.hb-image-el img {
	display: block;
	width: 100%;
	height: auto;
}

.hb-badges-el {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hb-location-el {
	color: var(--hb-muted);
}

.hb-result-count {
	margin: 0 0 12px;
	color: var(--hb-muted);
}

/* Weekly mess menu on the property page. */
.hb-menu-title {
	margin: 18px 0 8px;
	font-size: 16px;
}

.hb-menu-scroll {
	overflow-x: auto;
}

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

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

.hb-menu-table thead th {
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-menu-table tbody th {
	white-space: nowrap;
	font-weight: 600;
}

/* Room photo icon + shared lightbox (bed-grid.php, both student and owner). */
.hb-room-photo-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	padding: 3px 9px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface);
	color: var(--hb-accent);
	font-size: 12px;
	cursor: pointer;
}

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

body.hb-photo-modal-open {
	overflow: hidden;
}

.hb-photo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 24, 39, .82);
	padding: 20px;
}

.hb-photo-modal-inner {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: var(--hb-surface);
	border-radius: var(--hb-radius-lg);
	padding: 16px;
	text-align: center;
}

.hb-photo-modal-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: var(--hb-surface-3);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.hb-photo-modal-title {
	margin: 0 40px 10px 0;
	font-weight: 600;
	text-align: left;
}

.hb-photo-modal-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hb-photo-modal-stage img {
	max-width: 100%;
	max-height: 60vh;
	border-radius: var(--hb-radius-sm);
	display: block;
}

.hb-photo-modal-prev,
.hb-photo-modal-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	font-size: 20px;
	cursor: pointer;
}

.hb-photo-modal-prev {
	left: -6px;
}

.hb-photo-modal-next {
	right: -6px;
}

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

/* Amenity groups on the property page (1.28) */
.hb-amenities .hb-amenity-group{font-size:1rem;margin:18px 0 6px;opacity:.85}
.hb-amenities .hb-feature-list li.hb-muted{opacity:.6}

/* ---------------------------------------------- list shapes (1.37) --------
   The "Shape" control on a list widget writes hb-list-<shape> onto the
   Elementor wrapper. Only these rules act on it, so a section changes shape
   without the shortcode's markup changing by one character — the same reason
   the colour controls write tokens rather than rules.

   Each block sets the shape's own defaults. The widget's Columns, Gap and
   item controls are emitted by Elementor after this file and override them,
   so this is the starting point, not the last word. */

.hb-list-rows .hb-feature-list {
	grid-template-columns: 1fr;
}

.hb-list-rows .hb-rule-list {
	display: block;
}

.hb-list-grid .hb-feature-list,
.hb-list-cards .hb-feature-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* A rule list normally wears one outer frame with hairlines between the rows.
   Laid out as a grid or as cards it has to give that up, or every item would
   sit inside a box that no longer fits around them. */
.hb-list-grid .hb-rule-list,
.hb-list-cards .hb-rule-list,
.hb-list-chips .hb-rule-list {
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.hb-list-grid .hb-rule-list,
.hb-list-cards .hb-rule-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hb-gap);
}

.hb-list-grid .hb-rule-list > li,
.hb-list-chips .hb-rule-list > li {
	border-bottom: 0;
}

.hb-list-cards .hb-feature-list > li,
.hb-list-cards .hb-rule-list > li {
	align-items: flex-start;
	padding: var(--hb-gap);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface);
}

/* Label above value reads better once a rule is a card of its own. */
.hb-list-cards .hb-rule-list > li {
	flex-direction: column;
	justify-content: flex-start;
	gap: 4px;
}

.hb-list-chips .hb-feature-list,
.hb-list-chips .hb-rule-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hb-list-chips .hb-feature-list > li,
.hb-list-chips .hb-rule-list > li {
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	background: var(--hb-surface);
}

@media (max-width: 600px) {
	.hb-list-grid .hb-feature-list,
	.hb-list-cards .hb-feature-list,
	.hb-list-grid .hb-rule-list,
	.hb-list-cards .hb-rule-list {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------- bed picker side panel (1.38) -------
   The Bed Picker's "Rooms with a side panel" arrangement. .hb-picker-main and
   .hb-summary become the two columns of ONE grid row, so the row is as tall as
   the room list and the panel has the full height to stay put against. The
   sticky bar is position:fixed and out of flow, so it is not a grid item and
   needs nothing here. */

.hb-picker-2col .hb-picker-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--hb-panel-w, 320px);
	gap: var(--hb-gap-lg);
	align-items: start;
}

.hb-picker-2col .hb-summary {
	position: sticky;
	top: var(--hb-panel-top, 20px);
	margin-top: 0;
}

/* The panel is the whole point of this arrangement, so it is on screen from
   the start rather than appearing only once a bed is picked. */
.hb-picker-2col .hb-summary[hidden] {
	display: block;
}

@media (max-width: 860px) {
	.hb-picker-2col .hb-picker-form {
		grid-template-columns: 1fr;
	}

	.hb-picker-2col .hb-summary {
		position: static;
		margin-top: 22px;
	}

	/* Back to appearing on selection - a panel pinned above the room list on a
	   phone would push the beds off the screen. */
	.hb-picker-2col .hb-summary[hidden] {
		display: none;
	}
}

/* ------------------------------------------- facility chips (1.38) --------
   Reuses .hb-chip, which the bed picker and the search filters already use, so
   a chip looks the same wherever it appears. */

.hb-chips-el {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* .hb-chip carries cursor:pointer for the search filters, where it wraps a
   checkbox. These are read-only, so they say so. */
.hb-chips-el .hb-chip {
	margin: 0;
	cursor: default;
}

.hb-chip-more {
	color: var(--hb-muted);
}

.hb-price-dash {
	margin: 0 4px;
	color: var(--hb-muted);
}

/* ------------------------------------------------------------ visits
   "Schedule a visit" on the property page and in My Account. Reuses the
   field grid from checkout so the two forms feel like the same site. */
.hb-visit-form .hb-field-grid {
	margin-bottom: 14px;
}

.hb-visit .hb-note-ok {
	margin-bottom: 12px;
}

.hb-account-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

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

/* -------------------------------------------------- enquiry bar (D2)
   Sticky, because the moment a student decides they are interested is
   after they have scrolled past everything — making them hunt back up
   for a way to ask is how the enquiry is lost. */
.hb-enquiry-bar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	margin-top: 24px;
	padding: 10px 14px;
	background: var(--hb-surface);
	border-top: 1px solid var(--hb-border);
	box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
}

.hb-enquiry-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: 1100px;
	margin: 0 auto;
}

.hb-enquiry-lead {
	flex: 1 1 auto;
	font-weight: 600;
}

.hb-enquiry-panel {
	margin: 16px 0 0;
	padding: 16px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
}

/* With JavaScript the sticky bar's button opens this, so its own summary
   would repeat the same words twice. */
.hb-enquiry-panel.is-js > summary {
	display: none;
}

@media (max-width: 600px) {
	.hb-enquiry-lead {
		flex-basis: 100%;
		font-size: 14px;
	}
}

/* A pay button inside a rent row, which is a tight space. */
.hb-btn-small {
	padding: 5px 12px;
	font-size: 13px;
}

.hb-rent-amount .hb-inline-post {
	margin-top: 6px;
}

/* Cancellation terms, shown open above the Pay button. */
.hb-policy {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface);
}

.hb-policy > summary {
	cursor: pointer;
	font-weight: 600;
}

.hb-policy-rules {
	margin: 10px 0 0;
	padding-left: 20px;
	font-size: 14px;
}

.hb-policy-rules li {
	margin-bottom: 5px;
}

.hb-policy-text {
	margin: 10px 0 0;
	font-size: 14px;
}

.hb-policy-platform {
	color: var(--hb-muted);
}

/* Guardian / emergency contact, its own row under each student. */
.hb-guardian-row {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--hb-border);
}

.hb-guardian-lead {
	margin: 0 0 4px;
}

.hb-guardian-lead em {
	display: block;
	color: var(--hb-muted);
	font-size: 13px;
	font-style: normal;
}

/* What is left to pay when the student moves in. */
.hb-price-later {
	display: flex;
	justify-content: space-between;
	margin: 8px 0 0;
	padding-top: 8px;
	border-top: 1px dashed var(--hb-border);
	color: var(--hb-muted);
}

/* "More details" popups for mess and transport (B8) */
.hb-pay-row {
	display: flex;
	align-items: flex-start;
	gap: var(--hb-gap, 12px);
	justify-content: space-between;
}

.hb-pay-row .hb-pay-option {
	flex: 1 1 auto;
}

.hb-details-open {
	flex: 0 0 auto;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font-size: 0.85em;
	text-decoration: underline;
	color: var(--hb-accent, currentColor);
}

.hb-details-panel {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
}

.hb-details-panel[hidden] {
	display: none;
}

.hb-details-box {
	position: relative;
	max-width: 640px;
	max-height: 85vh;
	overflow: auto;
	padding: 20px;
	border-radius: var(--hb-radius, 10px);
	background: var(--hb-surface, var(--hb-surface));
	color: var(--hb-text, inherit);
}

.hb-details-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: 0;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

body.hb-details-lock {
	overflow: hidden;
}

/* The "Please note" box beside the selection total (B8) */
.hb-summary-note ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.hb-summary-note li + li {
	margin-top: 4px;
}

/* Review photos (D10) */
.hb-review-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hb-review-photos img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: var(--hb-radius, 8px);
	display: block;
}

/* ==========================================================================
   Checkout redesign (v1.96.0): two columns on desktop, saved billing
   addresses as cards with an add/edit popup. Markup order stays summary ->
   form, so a phone shows the stay and the price first with no extra rules.
   ========================================================================== */
.hb-checkout:has(.hb-checkout-main) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	/* Row 4 takes the slack. The form spans rows 3-4, and with all-auto tracks
	   the browser shared its height between them, pushing the price card
	   hundreds of pixels below the stay card. */
	grid-template-rows: auto auto auto auto 1fr;
	column-gap: 32px;
	align-items: start;
	/* The page's own boxed container (about 930px) leaves the form a 516px
	   column. The design is ~1230px wide, so this breaks out of it and
	   centres on the viewport, never wider than the design. */
	/* .hb-single caps this at the container width and centres it with auto
	   margins, which cannot centre something wider than its parent. */
	width: min(1240px, calc(100vw - 48px));
	max-width: none;
	margin-left: 50%;
	margin-right: 0;
	transform: translateX(-50%);
}

.hb-checkout h1.hb-title,
.hb-checkout h2,
.hb-checkout h3 {
	color: var(--hb-ink);
}

.hb-checkout:has(.hb-checkout-main) > * {
	grid-column: 1 / -1;
}

/* Rows: 1 title, 2 steps, 3 hold note, 4 property card | aside, 5 form | aside.
   The aside (stay + price) spans 4-5, so it follows the left column's height
   instead of leaving a hole under the shorter property card. */
.hb-checkout:has(.hb-checkout-main) > .hb-prop-card {
	grid-column: 1;
	grid-row: 4;
}

.hb-checkout:has(.hb-checkout-main) > .hb-checkout-main {
	grid-column: 1;
	grid-row: 5;
}

.hb-checkout:has(.hb-checkout-main) > .hb-checkout-aside {
	grid-column: 2;
	grid-row: 4 / span 2;
	display: grid;
	gap: 16px;
}

.hb-checkout .hb-prop-card,
.hb-checkout .hb-sum-stay,
.hb-checkout .hb-sum-pay,
.hb-checkout-main > .hb-section {
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	box-shadow: var(--hb-shadow);
	padding: 22px 24px;
}

.hb-checkout-main > .hb-section {
	margin-top: 0;
	margin-bottom: 20px;
}

/* Total, as the design has it: a small caps label and one large navy figure,
   not a filled block. */
.hb-checkout .hb-price-total {
	align-items: baseline;
	padding: 18px 0 4px;
	border: 0;
	border-top: 1px solid var(--hb-border);
	border-radius: 0;
	background: transparent;
	color: var(--hb-ink);
	font-family: var(--hb-font-num);
}

.hb-checkout .hb-price-total span {
	font-family: var(--hb-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-checkout .hb-price-total strong {
	font-size: 30px;
	font-weight: 800;
	color: var(--hb-ink);
}

/* Confirm: the design's dark navy, taking the row, with the ghost button beside it. */
.hb-checkout-main .hb-btn-primary.hb-btn-wide {
	min-width: 0;
	padding: 16px 28px;
	background: var(--hb-ink);
	border-color: var(--hb-ink);
	box-shadow: var(--hb-shadow-md);
}

.hb-checkout-main .hb-btn-primary.hb-btn-wide:hover {
	background: #0f1d28;
}

.hb-checkout-main .hb-section > p:has(.hb-btn-wide) {
	display: flex;
	gap: 14px;
	align-items: stretch;
	flex-wrap: wrap;
}

.hb-checkout-main .hb-btn-wide {
	flex: 1 1 260px;
}

.hb-pay-option:has(input:checked) {
	border-width: 2px;
	padding: 13.5px 15.5px;
}

@media (max-width: 900px) {
	.hb-checkout:has(.hb-checkout-main) {
		display: block;
		width: auto;
		max-width: var(--hb-container);
		margin-left: auto;
		margin-right: auto;
		transform: none;
	}

	.hb-checkout:has(.hb-checkout-main) > .hb-checkout-aside {
		display: block;
	}

	.hb-checkout .hb-prop-card,
	.hb-checkout .hb-sum-stay,
	.hb-checkout .hb-sum-pay {
		margin-bottom: 16px;
	}

	.hb-checkout .hb-prop-card,
	.hb-checkout .hb-sum-stay,
	.hb-checkout .hb-sum-pay,
	.hb-checkout-main > .hb-section {
		padding: 18px 16px;
	}

	.hb-checkout .hb-steps {
		flex-wrap: nowrap;
		gap: 6px;
	}

	.hb-checkout .hb-steps li + li::before {
		width: 10px;
	}

	.hb-steps li:not(.is-current) .hb-step-label {
		display: none;
	}

	.hb-prop-head {
		flex-wrap: wrap;
	}

	.hb-prop-change {
		margin-left: 52px;
	}
}

/* Progress steps */
.hb-steps {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.hb-steps li + li::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--hb-border);
}

.hb-step-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1.5px solid var(--hb-border);
	background: var(--hb-surface);
	font-size: 12px;
	font-weight: 600;
	font-family: var(--hb-font-num);
}

.hb-step-dot .hb-i {
	width: 13px;
	height: 13px;
}

.hb-steps .is-done .hb-step-dot {
	background: var(--hb-accent-soft);
	border-color: var(--hb-accent-line);
	color: var(--hb-accent);
}

.hb-steps .is-current {
	padding: 4px 14px 4px 5px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-ink);
	color: #fff;
	font-weight: 600;
}

.hb-steps .is-current .hb-step-dot {
	background: var(--hb-surface);
	border-color: var(--hb-surface);
	color: var(--hb-ink);
}

/* Property card */
.hb-prop-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.hb-prop-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--hb-radius);
	background: var(--hb-accent);
	color: var(--hb-accent-ink);
}

.hb-prop-icon .hb-i {
	width: 22px;
	height: 22px;
}

.hb-prop-title {
	flex: 1;
	min-width: 0;
}

.hb-prop-title h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 20px;
}

.hb-prop-badge {
	padding: 2px 10px;
	border: 1px solid var(--hb-accent-line);
	border-radius: var(--hb-radius-pill);
	background: var(--hb-accent-soft);
	color: var(--hb-accent-dark);
	font-size: 11px;
	font-weight: 600;
}

.hb-prop-place {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-prop-place .hb-i,
.hb-prop-chips .hb-i {
	width: 15px;
	height: 15px;
	flex: none;
}

.hb-prop-change {
	margin-left: auto;
	padding-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-accent);
	white-space: nowrap;
	text-decoration: none;
}

.hb-prop-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.hb-prop-chips li {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface-2);
}

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

.hb-prop-chips strong {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
	font-size: 14px;
	color: var(--hb-ink);
}

.hb-prop-chips .hb-chip-food {
	background: var(--hb-accent-soft);
	border-color: var(--hb-accent-line);
}

/* Booking summary head + rating */
.hb-sum-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hb-sum-head h2 {
	font-size: 20px;
	margin: 0;
}

.hb-sum-prop {
	margin: 8px 0 0;
	font-weight: 600;
	color: var(--hb-ink);
}

.hb-rating-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-warn-bg);
	border: 1px solid var(--hb-warn-line);
	color: var(--hb-ink);
	font-size: 13px;
	font-weight: 700;
}

.hb-rating-pill .hb-i {
	width: 14px;
	height: 14px;
	color: var(--hb-warn);
	fill: currentColor;
}

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

/* Saved billing addresses */
.hb-billing-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.hb-billing-head h2 {
	margin: 0;
}

.hb-addr-list {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.hb-addr-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface);
}

.hb-addr-card.is-chosen {
	border-color: var(--hb-accent);
	background: var(--hb-accent-soft);
}

/* My Account draws no radio to choose with, so there is no first column. */
.hb-addr-card.is-plain {
	grid-template-columns: 1fr;
}

.hb-addr-card.is-plain .hb-addr-actions {
	grid-column: 1;
}

.hb-field-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--hb-muted);
}

.hb-account-addresses .hb-billing-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hb-account-addresses .hb-billing-head h2 {
	margin: 0;
}

#hb-addr-add[disabled] {
	opacity: .5;
	cursor: not-allowed;
}

/* The platform's own terms, beside the tick that accepts them. */
.hb-agree-links {
	margin: -6px 0 14px;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-agree-links a {
	color: var(--hb-accent);
}

/* Contact page */
.hb-contact-list {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 2px;
}

.hb-contact-row {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 10px 18px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hb-border);
}

.hb-contact-row:last-child {
	border-bottom: 0;
}

.hb-contact-label {
	font-weight: 600;
	color: var(--hb-muted);
	font-size: 13px;
}

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

.hb-contact-legal {
	font-size: 13px;
	color: var(--hb-muted);
}

@media (max-width: 600px) {
	.hb-contact-row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

.hb-addr-card input[type="radio"] {
	align-self: start;
	margin-top: 4px;
	accent-color: var(--hb-accent);
}

.hb-addr-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hb-addr-badge {
	padding: 2px 10px;
	border-radius: var(--hb-radius-pill);
	background: var(--hb-accent);
	color: var(--hb-accent-ink);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
}

.hb-addr-name {
	margin-top: 2px;
	font-size: 14px;
}

.hb-addr-line {
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-addr-actions {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 4px;
}

.hb-addr-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--hb-accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

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

.hb-addr-empty {
	width: 100%;
	padding: 22px;
	border: 1.5px dashed var(--hb-accent-line);
	border-radius: var(--hb-radius);
	background: var(--hb-accent-soft);
	color: var(--hb-accent-dark);
	font-weight: 600;
	cursor: pointer;
}

.hb-pay-methods {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--hb-muted);
}

.hb-pay-methods em {
	padding: 3px 10px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-pill);
	font-style: normal;
	color: var(--hb-ink);
}

/* Popup */
.hb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(23, 43, 58, .55);
}

.hb-modal[hidden] {
	display: none;
}

.hb-modal-card {
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	overflow-y: auto;
	padding: 24px;
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface);
	box-shadow: var(--hb-shadow-lg);
}

.hb-modal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.hb-modal-head h3 {
	margin: 0;
	font-family: var(--hb-font-head);
	color: var(--hb-ink);
}

.hb-modal-x {
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--hb-muted);
	cursor: pointer;
}

.hb-modal-foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
}

.hb-af-default {
	flex-direction: row !important;
	align-items: center;
	gap: 8px !important;
}

.hb-af-default input {
	width: auto !important;
	accent-color: var(--hb-accent);
}

body.hb-modal-open {
	overflow: hidden;
}

/* The existing "If you change your mind" block, as the policies card. */
.hb-policy {
	margin: 16px 0;
	padding: 16px 18px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	background: var(--hb-surface-2);
}

/* "What's nearby" — distances from the property's pin to the administrator's
   landmark list for its city (v1.115.0). */
.hb-nearby-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 2px 24px;
}
.hb-nearby-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--hb-border, #e8e8ea);
}
.hb-nearby-icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: var(--hb-muted, #6b7280);
}
.hb-nearby-icon svg { width: 20px; height: 20px; }
.hb-nearby-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hb-nearby-name { font-weight: 600; }
.hb-nearby-kind { color: var(--hb-muted, #6b7280); font-size: 12px; }
.hb-nearby-km {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}
.hb-nearby-note { color: var(--hb-muted, #6b7280); font-size: 12px; margin-top: 10px; }

/* The one cancellation line a student is asked to accept by name. */
.hb-policy-rules li.is-noshow {
	font-weight: 700;
	color: var(--hb-ink);
}

/* The student's check-in code. */
.hb-checkin-qr {
	margin: 14px 0;
	padding: 14px 16px;
	border: 1.5px solid var(--hb-accent-line);
	border-radius: var(--hb-radius);
	background: var(--hb-accent-soft);
	text-align: center;
}

.hb-checkin-qr.is-used,
.hb-checkin-qr.is-expired {
	border-color: var(--hb-border);
	background: var(--hb-surface);
}

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

/* border-box, and max-width against the CARD rather than the viewport: with the
   theme's content-box default the 10px padding came on top of the 190px, so on
   a narrow phone the box was wider than the card it sits in and stuck out of
   its right edge. 70vw never helped - it measured the screen, not the card. */
.hb-qr-box {
	box-sizing: border-box;
	width: 190px;
	max-width: 100%;
	margin: 12px auto 0;
	padding: 10px;
	background: #fff;
	border-radius: 8px;
}

.hb-qr-box svg { display: block; width: 100%; height: auto; }
.hb-qr-fallback { font-size: 13px; }

/* Sign-up's tick lists. Deliberately NOT `.hb-check`, which this stylesheet
   already uses for a green bold tick in the facilities list - reusing it
   would restyle that list from the other side of the file. */
.hb-signup-checks {
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	padding: 12px 14px;
	margin: 14px 0 0;
}

.hb-signup-checks legend {
	font-weight: 600;
	font-size: 14px;
	padding: 0 6px;
}

.hb-signup-checks .hb-section-note { margin: 0 0 8px; }

.hb-signup-check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 4px 18px 4px 0;
	font-size: 15px;
	cursor: pointer;
}

.hb-signup-check input { margin: 0; }

/* The student's own account (D1 step 2). */
.hb-account-doors {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	align-items: start;
}

.hb-account-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0 20px;
	border-bottom: 1px solid var(--hb-border);
	padding-bottom: 10px;
}

.hb-account-tab {
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--hb-border);
	text-decoration: none;
	font-size: 14px;
	color: var(--hb-ink);
	background: var(--hb-surface);
}

.hb-account-tab.is-on {
	background: var(--hb-accent);
	border-color: var(--hb-accent);
	color: #fff;
	font-weight: 600;
}

.hb-account-out { margin-left: auto; }

.hb-ok-note {
	padding: 10px 14px;
	border-radius: var(--hb-radius);
	border: 1px solid var(--hb-accent-line);
	background: var(--hb-accent-soft);
	font-size: 14px;
}

/* ------------------------------------------------------------------
   The pay page (HostelBook's own ledger). Its own class family rather
   than the existing .hb-pay-option / -options / -row / -methods one,
   which is the checkout's payment-MODE chooser - two components on one
   prefix is how an active tab once rendered as a dark pill.
   ------------------------------------------------------------------ */
.hb-paybox {
	max-width: 520px;
	margin: 0 auto;
}

.hb-paybox-title {
	margin: 0 0 16px;
}

.hb-paybox-error {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 3px solid #b32d2e;
	border-radius: 4px;
	background: #fdf0f0;
	color: #8a2423;
}

.hb-paybox-card {
	padding: 20px;
	border: 1px solid var(--hb-border, #e3e6eb);
	border-radius: var(--hb-radius, 10px);
	background: var(--hb-surface, #fff);
}

.hb-paybox-lines {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.hb-paybox-lines li {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--hb-border, #e3e6eb);
}

.hb-paybox-total {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0 0 4px;
	font-size: 1.15rem;
}

.hb-paybox-card .hb-btn {
	width: 100%;
	margin-top: 16px;
}

.hb-paybox-note {
	margin: 12px 0 0;
	color: var(--hb-muted, #646970);
	font-size: 0.85rem;
}

@media (max-width: 480px) {
	.hb-paybox-card {
		padding: 16px;
	}
}

/* Saved places -------------------------------------------------------------
   Every heart is drawn empty by the server, for everybody, because these
   pages are cached; the filled state is a class the script adds.

   `.hb-save` is the behaviour - the class the script looks for. The LOOK is a
   second class, because the same button appears in two shapes: a small circle
   over a card photo, and a labelled control in the property page's row of
   buttons beside Share. Styling them both through `.hb-save` would have put
   `position: absolute` on the one in that row. */

.hb-xcard { position: relative; }

/* The square grid card is itself one big `<a>`, so the heart cannot live
   inside it - a button inside an anchor is invalid and the browser lifts it
   out. This wrapper is what the heart is positioned against. It also takes
   over the card's hover lift, so the card and its heart move together instead
   of the heart staying behind. */
.hb-card-wrap {
	position: relative;
	display: flex;
	min-width: 0;
	transition: transform 0.15s;
}

.hb-card-wrap > .hb-card { flex: 1; min-width: 0; }
.hb-card-wrap:hover { transform: translateY(-2px); }
.hb-card-wrap > .hb-card:hover { transform: none; }

/* A card designed in Elementor gets its heart in the slot it already sits in. */
.hb-grid-designed .hb-card-slot { position: relative; }

.hb-save-pin {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	/* Only the scale moves. The fill is what carries the meaning, and a
	   meaning that fades in is a meaning you cannot trust at a glance. */
	transition: transform 120ms ease;
}

.hb-save-pin:hover { transform: scale(1.08); }
.hb-save:focus-visible { outline: 2px solid var(--hb-accent, #2563eb); outline-offset: 2px; }

.hb-save .hb-save-icon {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.hb-save-pin .hb-save-icon { stroke: #333; }
.hb-save.is-saved .hb-save-icon { fill: #e5484d; stroke: #e5484d; }

/* The one line the script uses to explain a refusal, so a heart that does not
   take never stays silent. */
.hb-save-note {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 9999;
	max-width: min(420px, calc(100vw - 32px));
	transform: translateX(-50%);
	padding: 10px 14px;
	border-radius: 8px;
	background: #1f2430;
	color: #fff;
	font-size: 13px;
	line-height: 1.45;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hb-save-note[hidden] { display: none; }

/* The Saved page. Nothing here is drawn by the server - see saved-page.php -
   so these are the states the script moves between. */
.hb-saved-page { margin: 24px 0; }

.hb-saved-msg {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: var(--hb-surface-2, var(--hb-surface));
	font-size: 14px;
	line-height: 1.5;
}

.hb-saved-msg[hidden],
.hb-saved-empty[hidden] { display: none; }

.hb-saved-empty { padding: 28px 0; }
.hb-saved-loading { color: var(--hb-muted); padding: 24px 0; }
.hb-saved-loading[hidden] { display: none; }

/* Unsaving a place on this page hides its card. `.hb-xcard` is a flex row, and
   a display rule beats the browser's own [hidden] - the same trap that left
   required fields visible on the checkout form. */
.hb-explore-list .hb-xcard[hidden] { display: none; }
