/**
 * PackUrBag — component layer.
 *
 * Brand Style Guide v1.0, July 2026. Tokens live in theme.json and are read
 * here as --wp--preset--* / --wp--custom--*. Nothing in this file invents a
 * colour, a size or a spacing step; if a value isn't a token, it isn't a brand
 * decision.
 *
 * Contents
 *   1  Base and shared primitives
 *   2  Fare — the rupee problem, solved
 *   3  Buttons
 *   4  Header and primary navigation
 *   5  Hero
 *   6  Package devices — chip, departure pill, inclusions bar, bonus badge
 *   7  Cards
 *   8  Section bands and fields
 *   9  Footer
 *  10  Motion and reduced motion
 */

/* ------------------------------------------------------------------ *
 * 1  Base and shared primitives
 * ------------------------------------------------------------------ */

/*
 * Padding counts inside a declared width, everywhere.
 *
 * Without this every container that sets both a width and a gutter is wider
 * than it claims. `.pub-shell` is `min(1320px, 100%)` with a 20px gutter each
 * side, which on a 390px phone measured 430px — the whole page scrolled
 * sideways and every line of copy ran off the right edge. It went unnoticed on
 * a desktop only because the surplus 128px still had room to sit in.
 *
 * The instinct was to patch `.pub-shell`. That would have left the same trap
 * set for the next component that pairs a width with padding, so the rule goes
 * here instead. The one place that genuinely wants the old behaviour — the
 * round account glyph, where the padding is what makes the disc — says so on
 * itself and still wins.
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/*
 * `hidden` has to actually hide.
 *
 * The browser's own sheet says [hidden] { display: none }, but that selector
 * carries no weight at all, so the first component that sets its own display —
 * .pub-dcard is block, .pub-pkgcard is flex — silently outranks it. Every
 * filter on this site hides by setting the attribute, and every one of them
 * looked broken for exactly that reason: the count changed, the cards stayed.
 * Restate it once, here, at a weight nothing beats.
 */
[hidden] {
	display: none !important;
}

/*
 * The logo height is the header's one real input: the clear-space padding on
 * .pub-logo and the header's own height are both derived from it, so the
 * lockup can be resized here without the guide's clear-space rule drifting.
 */
:root {
	--pub-logo-h: 52px;
	--pub-header-h: calc(var(--pub-logo-h) + (var(--wp--preset--spacing--50) * 2));
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Skip link — visible only once focused. */
.pub-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	border-radius: 0 0 var(--wp--custom--radius--md) 0;
	font-weight: 700;
}

.pub-skip:focus {
	left: 0;
}

/*
 * The eyebrow.
 *
 * Set in Roboto caps rather than the brush face. The brush is now reserved for
 * the tagline alone — see .pub-footer__tagline — which also sidesteps the
 * face's missing apostrophe and hyphen (91 glyphs) in copy that changes often.
 */
.pub-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--wp--preset--color--yellow);
	/*
	 * An eyebrow labels the heading directly under it, so it belongs to that
	 * heading rather than floating between two. Without this reset it is just
	 * a paragraph and collects a paragraph's margins, which is what opened the
	 * gap between "WHERE TO GO" and "Places in Sri Lanka".
	 */
	margin-block: 0 6px;
}

.pub-eyebrow--navy {
	color: var(--wp--preset--color--navy);
}

.pub-eyebrow--blue {
	color: var(--wp--preset--color--blue);
}

/* The label form: Roboto caps, used where the brush would be too loud. */
.pub-label {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* The yellow rule that follows a destination name on every poster. */
.pub-rule {
	display: block;
	width: 88px;
	height: 6px;
	border: 0;
	margin: var(--wp--preset--spacing--40) 0 0;
	background: var(--wp--preset--color--yellow);
	border-radius: var(--wp--custom--radius--pill);
}

.pub-measure {
	max-width: var(--wp--custom--measure);
}

/* ------------------------------------------------------------------ *
 * 2  Fare — the rupee problem, solved
 * ------------------------------------------------------------------ */

/*
 * Outfit has no glyph for U+20B9. Google still declares its latin-ext subset
 * as covering U+20AD-20C0, so a browser left to itself picks Outfit for the
 * rupee, finds nothing, and falls back per character — a mismatched symbol
 * beside Outfit 900 digits on the largest element of every card.
 *
 * theme.json excises U+20B9 from Outfit's declared range. This rule finishes
 * the job: the symbol is set in Roboto deliberately, sized down and lifted so
 * it reads as a currency mark rather than a character that lost an argument.
 * Never merge these two spans back together.
 */
.pub-fare {
	display: inline-flex;
	align-items: baseline;
	gap: 0.06em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.pub-fare__symbol {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 0.62em;
	transform: translateY(-0.08em);
}

.pub-fare--hero {
	font-size: var(--wp--preset--font-size--price);
	color: var(--wp--preset--color--white);
}

.pub-fare--card {
	font-size: 34px;
	color: var(--wp--preset--color--navy);
}

/* "Starting From" always precedes the number; "PER PERSON*" always follows. */
.pub-fare-block__from,
.pub-fare-block__pp {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--wp--preset--font-size--micro);
}

.pub-fare-block__from {
	color: var(--wp--preset--color--grey-500);
	display: block;
	margin-bottom: var(--wp--preset--spacing--10);
}

.pub-fare-block__pp {
	color: var(--wp--preset--color--yellow);
	display: block;
	margin-top: var(--wp--preset--spacing--10);
}

/* On light cards the yellow per-person label would fail contrast. */
.pub-card .pub-fare-block__pp {
	color: var(--wp--preset--color--blue);
}

.pub-disclaimer {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--micro);
	line-height: 1.5;
	color: var(--wp--preset--color--grey-500);
}

.pub-field-navy .pub-disclaimer,
.pub-hero .pub-disclaimer {
	color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------------ *
 * 3  Buttons
 * ------------------------------------------------------------------ */

/*
 * Buttons hug their label. Padding is a token, never a number typed per button.
 *
 * 8px block, 18px inline. The block value is the floor asked for; the inline
 * value is larger for a geometric reason rather than a stylistic one — at a
 * 999px radius each end of the pill is a semicircle roughly half the button's
 * height wide, so with 8px inline the first and last characters would sit
 * inside that curve. 18px is the smallest value that clears it at this size.
 *
 * No min-height and no set width: the oval is exactly the text plus its
 * padding. The tap target is restored below without inflating the shape.
 *
 * Every button — theme.json's element style, .pub-btn, region tabs, anything
 * built later — resolves these same two tokens, so resizing the whole system
 * is one edit rather than a hunt through instance overrides.
 */
.pub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--custom--control--pad-block) var(--wp--custom--control--pad-inline);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-sm);
	/* Weight is a token too. Buttons are not headings; the shape and the fill
	   already carry the emphasis, so the label does not need to shout. */
	font-weight: var(--wp--custom--control--font-weight);
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard),
		color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard),
		transform var(--wp--custom--dur--fast) var(--wp--custom--ease--standard);
}

/*
 * The tap target, restored without changing the shape.
 *
 * A text-hugging pill is about 34px tall, under the 44px a thumb needs. Rather
 * than pad the button back out — which is the thing we were asked not to do —
 * an invisible overlay extends the hit area past the visible edge. The button
 * looks exactly as small as specified and is still comfortably tappable.
 */
.pub-btn {
	position: relative;
}

.pub-btn::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	min-height: var(--wp--custom--control--touchMin);
	height: 100%;
}

.pub-btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.pub-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}

.pub-btn--yellow {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--navy);
}

.pub-btn--yellow:hover {
	background: var(--wp--preset--color--yellow-dark);
	color: var(--wp--preset--color--navy);
}

.pub-btn--navy {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.pub-btn--navy:hover {
	background: var(--wp--preset--color--navy-dark);
	color: var(--wp--preset--color--white);
}

.pub-btn--blue {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.pub-btn--blue:hover {
	background: var(--wp--preset--color--blue-dark);
	color: var(--wp--preset--color--white);
}

.pub-btn--outline {
	background: transparent;
	color: var(--wp--preset--color--navy);
	box-shadow: inset 0 0 0 var(--wp--custom--border--strong) currentColor;
}

.pub-btn--outline:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* On dark fields the outline flips rather than disappearing. */
.pub-field-navy .pub-btn--outline,
.pub-hero .pub-btn--outline,
.pub-footer .pub-btn--outline {
	color: var(--wp--preset--color--white);
}

.pub-field-navy .pub-btn--outline:hover,
.pub-hero .pub-btn--outline:hover,
.pub-footer .pub-btn--outline:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.pub-btn--lg {
	padding: var(--wp--custom--control--pad-block-lg) var(--wp--custom--control--pad-inline-lg);
	font-size: var(--wp--preset--font-size--body);
}

/* ------------------------------------------------------------------ *
 * 4  Header and primary navigation
 * ------------------------------------------------------------------ */

.pub-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-100);
	padding-block: var(--wp--preset--spacing--50);
	min-height: var(--pub-header-h);
}

.pub-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--50);
	flex-wrap: wrap;
}

.pub-logo {
	display: inline-flex;
	line-height: 0;
	/*
	 * Clear space rule (ch.02): a minimum margin equal to the height of the
	 * "P" in PackUrBag on all sides. In this lockup the cap height is close
	 * enough to a fifth of the mark's height to express it as padding.
	 */
	padding: calc(var(--pub-logo-h, 40px) * 0.2);
	margin: calc(var(--pub-logo-h, 40px) * -0.2);
}

.pub-logo img {
	display: block;
	width: auto;
	height: var(--pub-logo-h, 52px);
}

/*
 * On a narrow viewport the full-size lockup crowds the menu button, and the
 * tagline inside the mark stops being legible well before it stops being
 * drawn. Step it down rather than let it shrink the touch target.
 */
@media (max-width: 620px) {
	:root {
		--pub-logo-h: 40px;
	}
}

.pub-header__panel {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--60);
	flex-wrap: wrap;
}

.pub-nav__list {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--50);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * Navigation is set in Outfit Regular.
 *
 * The brand guide's rule was "never Outfit below 700", and the @font-face
 * declaration enforced it by clamping the variable axis to 700–900 so a
 * lighter weight was structurally unavailable. That range is now 400–900 to
 * allow this, which means the rule is a convention again rather than a
 * guarantee. Worth knowing: the file itself always carried 100–900, so
 * nothing is being synthesised — a stray `font-weight: 300` still clamps to a
 * real 400 rather than a browser-faked thin.
 */
.pub-nav__list a {
	display: inline-block;
	padding: var(--wp--preset--spacing--20) 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 400;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	position: relative;
}

/*
 * The underline grows from the left rather than fading in, so the hover reads
 * as a deliberate mark rather than a colour change. transform-origin flips on
 * the way out so it retracts the way it arrived.
 */
.pub-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--wp--preset--color--yellow);
	border-radius: var(--wp--custom--radius--pill);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--wp--custom--dur--base) var(--wp--custom--ease--standard);
}

.pub-nav__list a:hover::after,
.pub-nav__list a:focus-visible::after,
.pub-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.pub-nav__list a:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 4px;
}

/* Trade-facing entry sits slightly apart from the editorial four. */
.pub-nav__trade {
	color: var(--wp--preset--color--blue) !important;
	font-weight: 700 !important;
}

/*
 * Desktop masthead: logo, menu, account — three zones.
 *
 * `1fr auto 1fr` is what makes the menu genuinely centred on the page rather
 * than centred in whatever space the other two happen to leave. The outer
 * columns claim equal width no matter how wide the logo or the account links
 * are, so the menu sits on the page's centre line and stays there. A flex row
 * with space-between would centre it between its neighbours instead, and it
 * would shift the moment the right-hand side changed width — which it does as
 * soon as "Log in / Register" becomes an account name.
 *
 * The panel is `display: contents` so its two children join the grid directly.
 * That keeps one set of markup serving both the desktop row and the mobile
 * drawer, rather than duplicating the nav for each.
 */
@media (min-width: 981px) {
	.pub-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: var(--wp--preset--spacing--50);
	}

	.pub-header__panel {
		display: contents;
	}

	.pub-nav {
		justify-self: center;
	}

	.pub-header__account {
		justify-self: end;
	}
}

.pub-header__account {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

/* ------------------------------------------------------------ account --- */

.pub-account {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.pub-account__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	white-space: nowrap;
}

/*
 * A filled navy disc, not an outline.
 *
 * As a thin navy stroke on white the control was there but barely readable —
 * a 2px line on a white ground carries almost no weight at 22px. Reversing it
 * to a solid disc with a white glyph gives it the contrast of a button, which
 * is what it is.
 */
.pub-account__link:not(.pub-account__link--named) {
	inline-size: 40px;
	block-size: 40px;
	justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	transition: background-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard);
}

.pub-account__link:not(.pub-account__link--named):hover,
.pub-account__link:not(.pub-account__link--named):focus-visible {
	background: var(--wp--preset--color--navy-light);
}

/* Named state keeps the disc on the glyph and sets the name beside it. */
.pub-account__link--named .pub-account__icon {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	border-radius: 50%;
	padding: 7px;
	box-sizing: content-box;
}

.pub-account__icon {
	inline-size: 22px;
	block-size: 22px;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------- social --- */

.pub-social {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.pub-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 36px;
	block-size: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--navy);
	transition: background-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard),
		color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard);
}

.pub-social__link svg {
	inline-size: 18px;
	block-size: 18px;
}

/*
 * Each channel takes its own colour on hover rather than a single brand
 * colour. Recognition is the whole job of these three — the mark alone reads
 * as "social", the colour reads as "WhatsApp".
 */
.pub-social__link:hover,
.pub-social__link:focus-visible {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--navy);
}

.pub-social__link[aria-label="WhatsApp"]:hover,
.pub-social__link[aria-label="WhatsApp"]:focus-visible {
	background: #25d366;
}

.pub-social__link[aria-label="Facebook"]:hover,
.pub-social__link[aria-label="Facebook"]:focus-visible {
	background: #1877f2;
}

.pub-social__link[aria-label="Instagram"]:hover,
.pub-social__link[aria-label="Instagram"]:focus-visible {
	background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888);
}

/* On a phone the social row moves into the drawer, where it can breathe. */
@media (max-width: 980px) {
	.pub-header__account {
		flex-wrap: wrap;
	}
}

.pub-account__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
}

.pub-account__out {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--micro);
	color: var(--wp--preset--color--grey-500);
	text-decoration: none;
	white-space: nowrap;
}

.pub-account__out:hover,
.pub-account__out:focus-visible {
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
}

/* A square icon button, not a labelled slab — the word lives in aria-label. */
.pub-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--control--touchMin);
	height: var(--wp--custom--control--touchMin);
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--navy);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-300);
	border-radius: var(--wp--custom--radius--md);
	cursor: pointer;
	z-index: 60;
	transition: background-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard),
		color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard);
}

.pub-nav__toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
}

.pub-nav__toggle-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.pub-nav__bars,
.pub-nav__bars::before,
.pub-nav__bars::after {
	display: block;
	width: 19px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--wp--custom--dur--base) var(--wp--custom--ease--standard),
		opacity var(--wp--custom--dur--fast) linear;
}

.pub-nav__bars {
	position: relative;
}

.pub-nav__bars::before,
.pub-nav__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.pub-nav__bars::before {
	top: -6px;
}

.pub-nav__bars::after {
	top: 6px;
}

/* Open: the three bars fold into a cross, so the control says how to undo itself. */
[data-pub-nav][data-open] .pub-nav__bars {
	background: transparent;
}

[data-pub-nav][data-open] .pub-nav__bars::before {
	transform: translateY(6px) rotate(45deg);
}

[data-pub-nav][data-open] .pub-nav__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* The drawer is fixed; the page beneath must not scroll under it. */
.pub-scroll-locked,
.pub-scroll-locked body {
	overflow: hidden;
}

/*
 * Collapse only once nav.js has set data-enhanced. Without the script the
 * panel stays in normal flow and every link remains reachable.
 */
@media (max-width: 980px) {
	.pub-nav__toggle {
		display: inline-flex;
	}

	[data-pub-nav][data-enhanced] .pub-header__panel {
		display: none;
	}

	/*
	 * A panel that drops from the header, sized to its own content.
	 *
	 * It used to be `inset: header 0 0` — a full-height navy field with five
	 * links at the top and half a phone screen of empty colour underneath.
	 * Sizing to content is the whole difference: the menu now reads as a sheet
	 * over the page rather than as a second page, and the site shows through
	 * beneath it so it is obvious what closing it returns you to.
	 */
	[data-pub-nav][data-enhanced][data-open] .pub-header__panel {
		position: fixed;
		inset-block-start: var(--pub-header-h);
		inset-inline: 0;
		z-index: 55;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--wp--preset--spacing--30) clamp(20px, 5vw, 40px) var(--wp--preset--spacing--50);
		background: var(--wp--preset--color--navy);
		border-end-start-radius: var(--wp--custom--radius--lg);
		border-end-end-radius: var(--wp--custom--radius--lg);
		box-shadow: 0 18px 40px rgba(10, 14, 26, 0.28);

		/* Long menus still scroll; short ones stop where they stop. */
		max-block-size: calc(100dvh - var(--pub-header-h));
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	/*
	 * The page dimmed behind the sheet, so the panel has somewhere to sit and
	 * a tap anywhere off it reads as "close".
	 *
	 * Hung off <body> rather than off the nav wrapper. The header is
	 * `position: sticky` with a z-index, which makes it a stacking context —
	 * a scrim painted inside it can never rise above the page beside it, and
	 * the first attempt duly did nothing at all. `html.pub-scroll-locked` is
	 * already set by nav.js when the menu opens, so the state is there to use.
	 */
	.pub-scroll-locked body::after {
		content: "";
		position: fixed;
		inset: var(--pub-header-h) 0 0;
		z-index: 49;
		background: rgba(10, 14, 26, 0.45);
	}

	[data-pub-nav][data-open] .pub-nav {
		width: 100%;
	}

	.pub-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	[data-pub-nav][data-open] .pub-nav__list li + li {
		border-top: var(--wp--custom--border--hairline) solid rgba(255, 255, 255, 0.12);
	}

	/*
	 * The icon row reads as one row. On the desktop masthead the social marks
	 * sit on off-white and the account control on navy, which is right against
	 * a white header and wrong against a navy sheet — one of the four was a
	 * bare glyph while the others were discs.
	 */
	[data-pub-nav][data-open] .pub-header__account {
		gap: var(--wp--preset--spacing--20);
		margin-block-start: var(--wp--preset--spacing--40);
		padding-block-start: var(--wp--preset--spacing--40);
		border-top: var(--wp--custom--border--hairline) solid rgba(255, 255, 255, 0.12);
	}

	[data-pub-nav][data-open] .pub-social__link,
	[data-pub-nav][data-open] .pub-account__link:not(.pub-account__link--named) {
		inline-size: 38px;
		block-size: 38px;
		background: rgba(255, 255, 255, 0.1);
		color: var(--wp--preset--color--white);
	}

	/*
	 * 26px at weight 800 was a poster, not a menu: five items filled the top
	 * half of a phone and shouted at a reader who had already decided to
	 * navigate. 19px at 700 keeps the brand face and gives the row back its
	 * proportions. The 48px minimum is the tap target, which is the only hard
	 * constraint here — everything above it was decoration.
	 */
	[data-pub-nav][data-open] .pub-nav__list a {
		display: flex;
		align-items: center;
		min-block-size: 48px;
		padding-block: 4px;
		font-family: var(--wp--preset--font-family--display);
		font-size: 19px;
		font-weight: 700;
		letter-spacing: -0.01em;
		color: var(--wp--preset--color--white);
	}

	/* The sliding underline is a desktop hover device; it has no job here. */
	[data-pub-nav][data-open] .pub-nav__list a::after {
		content: none;
	}

	[data-pub-nav][data-open] .pub-nav__trade {
		color: var(--wp--preset--color--yellow) !important;
	}




}

/* ------------------------------------------------------------------ *
 * 5  Hero
 * ------------------------------------------------------------------ */

/*
 * Chapter 06: the photo is full bleed, the landmark stays visible, and the
 * picture must "breathe through the middle" — so the scrims are two separate
 * gradients pinned to the top and bottom rather than one overlay across the
 * whole frame. Both values are tokens, lifted verbatim from the guide.
 */
.pub-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(78vh, 720px);
	padding: var(--wp--preset--spacing--band) var(--wp--preset--spacing--50);
	overflow: hidden;
	isolation: isolate;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--navy);
}

.pub-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.pub-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.pub-hero::before,
.pub-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	z-index: -1;
	pointer-events: none;
}

.pub-hero::before {
	top: 0;
	height: 30%;
	background: var(--wp--custom--scrim--top);
}

.pub-hero::after {
	bottom: 0;
	height: 78%;
	background: var(--wp--custom--scrim--bottom);
}

.pub-hero__inner {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
}

.pub-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--yellow);
	margin: var(--wp--preset--spacing--20) 0 0;
}

.pub-hero__lede {
	max-width: 52ch;
	margin-top: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--lead);
	color: rgba(255, 255, 255, 0.9);
}

.pub-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--60);
}

/* ------------------------------------------------------------------ *
 * 6  Package devices
 * ------------------------------------------------------------------ */

/* Duration chip — "4N5D". Blue pill, Outfit 800, white. */
.pub-chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--pill);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

.pub-chip--navy {
	background: var(--wp--preset--color--navy);
}

.pub-chip--yellow {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--navy);
}

/* Departure pill — "Departure from Chennai". Roboto 600. */
.pub-departure {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	padding: 7px 16px;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--pill);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--micro);
	line-height: 1;
}

/*
 * Inclusions bar. Rounded blue pill sized to content, icons above ALL CAPS
 * Roboto 700 labels. The guide's icon rule is a CSS filter rather than a
 * second icon set: brightness(0) invert(1) on blue and navy, brightness(0)
 * on yellow and white.
 */
.pub-inclusions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--blue);
	border-radius: var(--wp--custom--radius--pill);
	width: fit-content;
	max-width: 100%;
}

.pub-inclusions--navy {
	background: var(--wp--preset--color--navy);
}

.pub-inclusion {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	min-width: 56px;
	text-align: center;
}

.pub-inclusion__icon {
	width: 32px;
	height: 32px;
	filter: brightness(0) invert(1);
}

.pub-inclusion__label {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	line-height: 1.2;
}

/* On a light ground the same markup inverts the other way. */
.pub-inclusions--light {
	background: var(--wp--preset--color--off-white);
}

.pub-inclusions--light .pub-inclusion__icon {
	filter: brightness(0);
}

.pub-inclusions--light .pub-inclusion__label {
	color: var(--wp--preset--color--navy);
}

/* Bonus badge — circular promotional callout. Minimum 80px per the guide. */
.pub-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 92px;
	height: 92px;
	padding: 8px;
	border-radius: var(--wp--custom--radius--circle);
	background: var(--wp--preset--color--yellow);
	text-align: center;
}

.pub-badge__icon {
	width: 26px;
	height: 26px;
	filter: brightness(0);
}

.pub-badge__label {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-size: 10px;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}

.pub-badge--navy {
	background: var(--wp--preset--color--navy);
}

.pub-badge--navy .pub-badge__icon {
	filter: brightness(0) invert(1);
}

.pub-badge--navy .pub-badge__label {
	color: var(--wp--preset--color--yellow);
}

/* ------------------------------------------------------------------ *
 * 7  Cards
 * ------------------------------------------------------------------ */

.pub-grid {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pub-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-100);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	transition: transform var(--wp--custom--dur--base) var(--wp--custom--ease--standard),
		box-shadow var(--wp--custom--dur--base) var(--wp--custom--ease--standard);
}

.pub-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--xl);
}

.pub-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--grey-100);
}

.pub-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform var(--wp--custom--dur--reveal) var(--wp--custom--ease--standard);
}

.pub-card:hover .pub-card__media img {
	transform: scale(1.04);
}

.pub-card__chip {
	position: absolute;
	top: var(--wp--preset--spacing--30);
	left: var(--wp--preset--spacing--30);
}

.pub-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50);
	flex: 1;
}

.pub-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--title);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--navy);
	margin: 0;
}

/*
 * The whole card is the target, but only the title is the link — so the
 * accessible name stays "Bali, 4 nights 5 days" rather than the entire card
 * read aloud, and text inside stays selectable.
 */
.pub-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pub-card__title a {
	color: inherit;
	text-decoration: none;
}

.pub-card__meta {
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--grey-500);
	margin: 0;
}

.pub-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--40);
	border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-100);
}

/* Destination card — image-led, name reversed out over the scrim. */
.pub-dest {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	text-decoration: none;
	isolation: isolate;
}

.pub-dest img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform var(--wp--custom--dur--reveal) var(--wp--custom--ease--standard);
}

.pub-dest:hover img {
	transform: scale(1.05);
}

.pub-dest::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--custom--scrim--bottom);
}

.pub-dest__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	padding: var(--wp--preset--spacing--50);
}

.pub-dest__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-size: 30px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--yellow);
	margin: 0;
}

.pub-dest__from {
	margin: var(--wp--preset--spacing--20) 0 0;
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

/*
 * Destinations we sell but have no photograph for yet.
 *
 * A navy field with the name in Outfit 900 is a legitimate brand state — the
 * guide's own "Yellow on Navy" pairing — rather than a broken-image hole or a
 * grey placeholder. It reads as deliberate until real photography lands, and
 * swapping one in later is adding an <img>, not rebuilding the card.
 */
.pub-dest--noimg {
	display: grid;
	place-items: end start;
	background: var(--wp--preset--color--navy);
	background-image:
		radial-gradient(circle at 78% 18%, rgba(255, 209, 22, 0.14) 0%, transparent 52%),
		radial-gradient(circle at 12% 88%, rgba(32, 121, 195, 0.28) 0%, transparent 55%);
}

.pub-dest--noimg::after {
	content: none;
}

.pub-dest--noimg .pub-dest__body {
	position: static;
}

/* ------------------------------------------------------------------ *
 * 8  Section bands and fields
 * ------------------------------------------------------------------ */

/*
 * Bands own their vertical rhythm through padding, never through margin.
 *
 * WordPress's flow layout adds `margin-block-start` to every direct child of
 * a layout container, `<main>` included. On a page built from full-bleed
 * bands that shows up as a white stripe between every section — the bands are
 * meant to meet, and a navy band followed by a grey one should touch.
 *
 * `.wp-site-blocks > main` was already zeroed further down this file, but that
 * only fixes main itself; its children each still collect the gap. Zeroing it
 * on the band components fixes it once for every page rather than once per
 * page, and it is scoped to bands so deliberate margins elsewhere — the hero
 * slider's, for instance — survive.
 *
 * The rule beats WordPress's because theirs is wrapped in `:where()`, which
 * carries no specificity at all.
 */
.pub-band,
.pub-facts-band,
.pub-cta-band,
.pub-feature,
.pub-credits,
.pub-dhero {
	margin-block: 0;
}

.pub-band {
	padding-block: var(--wp--preset--spacing--band);
}

/*
 * Two identical grounds in a row read as one slab, and the page stops looking
 * like separate sections. The order is assigned deliberately where the
 * sections are rendered; this is the backstop for when someone inserts a new
 * band in the middle and does not notice they have made a pair — the second
 * of two neighbours falls back to white rather than merging silently.
 */
.pub-band--alt + .pub-band--alt {
	background: var(--wp--preset--color--white);
}

.is-style-pub-field-navy {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.is-style-pub-field-blue {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.is-style-pub-field-yellow {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--navy);
}

.is-style-pub-field-navy :is(h1, h2, h3, h4, h5),
.is-style-pub-field-blue :is(h1, h2, h3, h4, h5) {
	color: var(--wp--preset--color--white);
}

.is-style-pub-field-yellow :is(h1, h2, h3, h4, h5) {
	color: var(--wp--preset--color--navy);
}

/*
 * Contrast guard (ch.11). White on yellow is banned outright and grey on a
 * light ground is unreadable. Anything that lands white text on the yellow
 * field is corrected to navy rather than left to fail silently.
 */
.is-style-pub-field-yellow .has-white-color,
.is-style-pub-field-yellow .pub-eyebrow {
	color: var(--wp--preset--color--navy) !important;
}

.is-style-pub-card {
	background: var(--wp--preset--color--off-white);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--60);
}

.pub-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--50);
	flex-wrap: wrap;
	margin-bottom: var(--wp--preset--spacing--60);
}

/* The heading's spacing is the section head's job, not the heading's. */
.pub-section-head h2 {
	margin-block: 0;
}

/* ------------------------------------------------------------------ *
 * 9  Footer
 * ------------------------------------------------------------------ */

.pub-footer {
	padding-block: var(--wp--preset--spacing--band) var(--wp--preset--spacing--60);
}

/*
 * Five columns since the policies got their own. The brand block still takes
 * the most room; the gap comes down because five columns at spacing-70 pushed
 * the last one off the 1320px shell.
 */
.pub-footer__inner {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	grid-template-columns: 1.5fr 0.9fr 0.9fr 1.15fr 1.1fr;
}

@media (max-width: 1180px) {
	.pub-footer__inner {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.pub-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.pub-footer__inner {
		grid-template-columns: 1fr;
	}
}

.pub-footer__inner a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.pub-footer__inner a:hover {
	color: var(--wp--preset--color--yellow);
	text-decoration: underline;
}

.pub-footer .pub-logo img {
	height: 44px;
}

.pub-footer__tagline {
	font-family: var(--wp--preset--font-family--accent);
	font-size: 26px;
	line-height: 1.1;
	color: var(--wp--preset--color--yellow);
	margin: var(--wp--preset--spacing--30) 0 0;
}

.pub-footer__blurb {
	max-width: 38ch;
	margin: var(--wp--preset--spacing--40) 0 0;
	font-size: var(--wp--preset--font-size--body-sm);
	color: rgba(255, 255, 255, 0.78);
}

.pub-footer__heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--yellow);
	margin: 0 0 var(--wp--preset--spacing--40);
}

.pub-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--body-sm);
}

.pub-footer__contact .pub-btn {
	margin-top: var(--wp--preset--spacing--50);
}

.pub-footer__legal {
	margin-top: var(--wp--preset--spacing--80);
	padding-top: var(--wp--preset--spacing--50);
	border-top: var(--wp--custom--border--hairline) solid rgba(255, 255, 255, 0.16);
	display: grid;
	gap: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--micro);
	color: rgba(255, 255, 255, 0.66);
}

.pub-footer__legal p {
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * 10  Hero story carousel — PackUrBag theme
 * ------------------------------------------------------------------ *
 *
 * The component itself is vendored unchanged in hero-carousel.css so upstream
 * fixes port cleanly. Everything below is a variable re-point plus the two
 * things this brand needs that the component leaves to the host: a 70vh
 * full-bleed stage, and room at the bottom for the trip finder.
 *
 * Load order matters and getting it wrong is silent. The vendored sheet styles
 * itself with two-class selectors like `.hsc--full .hsc__slide::after`; the
 * re-points below have identical specificity, so the tie breaks on source
 * order alone. hero-carousel.css is enqueued FIRST and brand.css declares a
 * dependency on it, which is what gives the brand the last word.
 */

.hsc--packurbag {
	--hsc-ink: var(--wp--preset--color--navy);
	--hsc-ink-soft: var(--wp--preset--color--grey-500);
	--hsc-ground: var(--wp--preset--color--white);
	--hsc-accent: var(--wp--preset--color--yellow);
	--hsc-rule: var(--wp--preset--color--grey-100);
	--hsc-rule-strong: var(--wp--preset--color--grey-300);
	--hsc-dur: var(--wp--custom--dur--base);
	--hsc-ease: var(--wp--custom--ease--standard);
	/* Chapter 06 asks the photo to breathe through the middle. */
	--hsc-overlay: 0.82;
}

/*
 * Full screen, tip to tip.
 *
 * `svh` rather than `vh`: on iOS and Android `100vh` is the viewport with the
 * browser chrome retracted, so a `100vh` hero is taller than what you can
 * actually see and the search bar sits under the address bar until you scroll.
 * The header is subtracted because "full screen" means the photograph fills
 * the screen, not that it fills the screen plus the height of the masthead.
 */
.hsc--packurbag.hsc--full .hsc__slide {
	min-block-size: calc(100vh - var(--pub-header-h));
	min-block-size: calc(100svh - var(--pub-header-h));
	align-items: center;
	padding-inline: clamp(20px, 5vw, 64px);
}

/*
 * Close the gap under the header.
 *
 * WordPress applies the root block gap to every top-level block via
 * `:where(.wp-site-blocks) > *`, so <main> arrives with a 24px margin above it
 * and the full-bleed stage starts with a white band. Zeroing it on the main
 * element alone leaves the gap available everywhere else, and the sections
 * inside main set their own rhythm with .pub-band rather than relying on it.
 */
/*
 * The three structural regions — header, main, footer — butt together.
 *
 * This was `> main` for a long time, which fixed the stripe under the header
 * and left an identical one above the footer, because the footer is its own
 * template part and a sibling of main rather than a child of it. Same block
 * gap, one level up.
 *
 * Nothing at this level should ever carry a margin: each region is full-bleed
 * and owns its own padding, so the fix is the whole level rather than the one
 * child that happened to be reported.
 */
.wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/*
 * Let the sticky header actually stick.
 *
 * WordPress wraps every template part in `<div class="wp-block-template-part">`,
 * and a sticky element can only travel within its parent's box. That wrapper
 * is exactly as tall as the header inside it, so the header had zero distance
 * to stick through and scrolled away with it — `position: sticky` was correct
 * all along, its parent was simply too short to hold it.
 *
 * `display: contents` removes the wrapper from layout without removing the
 * markup, so the header's parent becomes `.wp-site-blocks` — the full height
 * of the page — and it stays put for the whole scroll.
 */
.wp-site-blocks > .wp-block-template-part {
	display: contents;
}

.pub-hero-slider {
	position: relative;
	margin-block-end: var(--wp--preset--spacing--80);
}

.pub-hero-slider:first-child {
	margin-block-start: 0;
}

/* The nav now overlays the stage, so the carousel root is the containing block. */
.hsc--packurbag {
	position: relative;
	/*
	 * A ground behind the stack. The outgoing slide finishes fading before the
	 * incoming one is fully in, so for a moment the viewer is looking through
	 * both — and without this they would be looking at the white page. Navy
	 * makes that moment read as a deliberate dip rather than a flash.
	 */
	background: var(--wp--preset--color--navy);
}

/*
 * Fade out, then fade in.
 *
 * The vendored component crossfades on one shared duration, which reads as a
 * dissolve. Weighting the two halves differently — the outgoing leaves quickly,
 * the incoming arrives slower and a beat later — separates them into two
 * legible movements without ever leaving a hard gap between them.
 */
.hsc--packurbag .hsc__slide {
	--pub-fade-out: 420ms;
	--pub-fade-in: 640ms;
	--pub-fade-hold: 180ms;
	transition: opacity var(--pub-fade-out) var(--wp--custom--ease--standard),
		visibility 0s linear var(--pub-fade-out);
}

.hsc--packurbag .hsc__slide.is-active {
	transition: opacity var(--pub-fade-in) var(--wp--custom--ease--entrance) var(--pub-fade-hold),
		visibility 0s;
}

/* A dissolve is decoration, so under reduced motion the slide simply swaps. */
@media (prefers-reduced-motion: reduce) {
	.hsc--packurbag .hsc__slide,
	.hsc--packurbag .hsc__slide.is-active {
		transition: none;
	}
}

/*
 * The slide's own copy is the SOURCE, not a second rendering of it.
 *
 * Destination, subheading and short line all live in the slide markup, which
 * is what crawlers read and what shows if the script never arrives. Once the
 * carousel is ready the script has copied all three into the progress box, so
 * the in-image block is removed outright — `display: none`, not opacity — or a
 * screen reader would meet every headline twice and the centre of the frame
 * would fight the trip finder for the same space.
 */
.hsc--packurbag.is-ready .hsc__body {
	display: none;
}

.hsc--packurbag:not(.is-ready) .hsc__body {
	max-inline-size: 40ch;
	margin-inline: auto;
	inline-size: min(1320px, 100%);
}

.hsc--packurbag .hsc__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--yellow);
	margin-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.hsc--packurbag .hsc__desc {
	font-size: var(--wp--preset--font-size--lead);
	color: rgba(255, 255, 255, 0.9);
	max-inline-size: 44ch;
}

/* -------------------------------------------------- progress boxes --- */
/*
 * The story navigation as a row of equal boxes below the stage, each carrying
 * the destination, its subheading and one line of copy, with the active box
 * underlined by time passing. This is where the hero's words now live.
 */
.hsc--packurbag .hsc__nav {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 3;
	inline-size: min(1320px, 100%);
	margin-inline: auto;
	padding: 0 clamp(20px, 5vw, 64px) clamp(28px, 4vh, 52px);
	margin-block-start: 0;
	border-block-start: 0;
	gap: var(--wp--preset--spacing--30);
	align-items: stretch;
}

/*
 * Glass over photography, matching the search bar.
 *
 * The blur is an enhancement, so the base rule carries a fill dark enough to
 * hold white text on its own. Without that, a browser with no backdrop-filter
 * would put the copy straight onto a sunlit bridge.
 */
.hsc--packurbag .hsc__story {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: var(--wp--preset--spacing--40);
	margin-block-start: 0;
	border-block-start: 0;
	border-radius: var(--wp--custom--radius--md);
	background: rgba(13, 13, 13, 0.5);
	border: var(--wp--custom--border--hairline) solid rgba(255, 255, 255, 0.18);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	overflow: hidden;
	transition: background-color var(--wp--custom--dur--base) var(--wp--custom--ease--standard),
		border-color var(--wp--custom--dur--base) var(--wp--custom--ease--standard);
}

@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
	.hsc--packurbag .hsc__story {
		background: rgba(13, 13, 13, 0.34);
		-webkit-backdrop-filter: blur(14px) saturate(1.2);
		backdrop-filter: blur(14px) saturate(1.2);
	}
}

.hsc--packurbag .hsc__story:hover,
.hsc--packurbag .hsc__story[aria-selected="true"] {
	background: rgba(13, 13, 13, 0.62);
	border-color: rgba(255, 255, 255, 0.34);
}

/* Subheading — eyebrow treatment, not the brush face. */
.hsc--packurbag .hsc__story-n {
	font-family: var(--wp--preset--font-family--body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.3;
	color: var(--wp--preset--color--yellow);
	margin-block-end: 3px;
}

.hsc--packurbag .hsc__story[aria-selected="true"] .hsc__story-n {
	color: var(--wp--preset--color--yellow);
}

.hsc--packurbag .hsc__story-t {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(17px, 1.3vw, 21px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--white);
}

.hsc--packurbag .hsc__story[aria-selected="true"] .hsc__story-t {
	font-weight: 900;
	color: var(--wp--preset--color--yellow);
}

.hsc--packurbag .hsc__story-c {
	font-size: 12.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
	/* Two lines, so five boxes stay the same height whatever the copy does. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* The progress rail runs along the top edge of the box. */
.hsc--packurbag .hsc__rail {
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 3px;
	background: rgba(255, 255, 255, 0.22);
	opacity: 1;
}

.hsc--packurbag .hsc__bar {
	background: var(--wp--preset--color--yellow);
}

.hsc--packurbag .hsc__story:not([aria-selected="true"]) .hsc__bar {
	transform: scaleX(0);
}

.hsc--packurbag .hsc__story:focus-visible {
	outline: 2px solid var(--wp--preset--color--yellow);
	outline-offset: 3px;
}

/* Prev / next / pause float above the boxes, right aligned. */
.hsc--packurbag .hsc__controls {
	position: absolute;
	inset-inline-end: 0;
	inset-block-end: 0;
	z-index: 3;
	inline-size: min(1320px, 100%);
	inset-inline: 0;
	margin-inline: auto;
	padding-inline: clamp(20px, 5vw, 64px);
	justify-content: flex-end;
	margin-block-start: 0;
	pointer-events: none;
}

.hsc--packurbag .hsc__btn {
	pointer-events: auto;
	border-color: rgba(255, 255, 255, 0.42);
	color: var(--wp--preset--color--white);
	background: rgba(13, 13, 13, 0.4);
}

.hsc--packurbag .hsc__btn:hover {
	border-color: var(--wp--preset--color--yellow);
	background: rgba(13, 13, 13, 0.66);
}

/*
 * Below the tablet breakpoint the boxes scroll horizontally. Sitting them on
 * the photograph would eat the bottom third of a phone screen, so they drop
 * back into flow underneath it and the stage stays a photograph.
 */
@media (max-width: 900px) {
	/*
	 * A shorter stage. The boxes are in flow below the photograph here, so a
	 * full-height hero would push them entirely off-screen and the traveller
	 * would never learn the carousel has five stories in it. At ~62svh the top
	 * of the first box is visible without scrolling, which is what makes the
	 * rest discoverable.
	 */
	.hsc--packurbag.hsc--full .hsc__slide {
		min-block-size: min(62svh, 560px);
	}

	.hsc--packurbag .hsc__nav {
		position: static;
		inline-size: 100%;
		padding: var(--wp--preset--spacing--40) clamp(16px, 4vw, 32px) var(--wp--preset--spacing--30);
		/* Scrolling stops with a card aligned to the inset, not under it. */
		scroll-padding-inline: clamp(16px, 4vw, 32px);
	}

	/*
	 * The desktop rule absolutely positions and centres these; without resetting
	 * the inline sizing they overflow the viewport once they return to flow,
	 * which is why the buttons were half off the right edge.
	 */
	.hsc--packurbag .hsc__controls {
		position: static;
		inset: auto;
		inline-size: 100%;
		margin-inline: 0;
		padding: 0 clamp(16px, 4vw, 32px) var(--wp--preset--spacing--50);
	}

	.hsc--packurbag .hsc__story {
		flex: 0 0 min(78vw, 17rem);
	}

	.hsc--packurbag .hsc__story-c {
		-webkit-line-clamp: 3;
	}
}

/* ------------------------------------------------------------------ *
 * 11  Trip finder — Where, What, When, How many, How much
 * ------------------------------------------------------------------ *
 *
 * Deliberately a SIBLING of .hsc, not a child of any slide.
 *
 * The carousel marks every inactive slide `inert` and `visibility: hidden`,
 * which is exactly right for a slide's own CTAs and exactly wrong for a form.
 * A trip finder living inside slide 1 would stop accepting input the moment
 * the hero rotated, and would take its half-filled state out of the tab order
 * with it. Sitting outside the slide stack, it is always live and never
 * rotates.
 */

.pub-booking {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-items: center;
	padding-inline: clamp(20px, 5vw, 64px);
	/* The stage below must stay swipeable; only the panel takes pointer input. */
	pointer-events: none;
}

/*
 * A scrim under the cluster.
 *
 * Chapter 06 puts the slide's gradients at the top and bottom so the picture
 * "breathes through the middle" — which is exactly where this sits, with no
 * protection at all. A soft radial pool gives the brush headline and the bar
 * something to sit on without flattening the photograph the way a full
 * overlay would.
 */
.pub-booking::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 58% 42% at 50% 50%,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0.28) 45%,
		transparent 72%);
	pointer-events: none;
}

/*
 * The question and the field read as one sentence, so they sit on one line:
 * "Where Next?" then the box you answer it in. That needs more width than a
 * stacked panel did — 420px fitted a pill under a heading, not both beside
 * each other — hence 720px here.
 */
.pub-booking__panel {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	inline-size: min(720px, 100%);
	text-align: start;
	/* One number drives the bar's height: the field and the submit both read it,
	   so they cannot drift apart and the button keeps hugging the edges. */
	--pub-search-h: 50px;
}

/* Side by side while there is room; stacked once there is not, because a brush
   label and an input competing for 360px leaves neither of them usable. */
@media (max-width: 720px) {
	.pub-booking__panel {
		flex-direction: column;
		align-items: stretch;
		gap: var(--wp--preset--spacing--30);
		inline-size: min(460px, 100%);
		text-align: center;
	}
}

/*
 * "Where Next?" in the brush face.
 *
 * Rollete Qaku ships one weight, so `font-weight: 700` here would only get
 * browser-synthesised bold — which fattens a brush stroke by smearing it
 * sideways and ruins the lettering. Presence comes from size and from a dark
 * halo that lifts the yellow off whatever photograph is behind it, not from a
 * weight the face does not have.
 */
.pub-booking__lead {
	font-family: var(--wp--preset--font-family--accent);
	font-weight: 400;
	font-size: clamp(38px, 5.2vw, 68px);
	letter-spacing: 0;
	/* The brush face sets its words tight; this is the gap between the two. */
	word-spacing: 0.3em;
	text-transform: none;
	line-height: 1;
	color: var(--wp--preset--color--yellow);
	/* No bottom margin now that it sits beside the field rather than above it;
	   the flex gap owns the spacing in both directions. */
	margin: 0;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 8px 28px rgba(0, 0, 0, 0.45);
	/* Keep the question on one line and let the field take the slack. */
	flex: 0 0 auto;
	white-space: nowrap;
	/* Smaller than it was, so the two halves balance instead of the question
	   shouting over the thing it is asking you to fill in. */
	font-size: clamp(30px, 3.4vw, 46px);
}

@media (max-width: 720px) {
	.pub-booking__lead {
		white-space: normal;
		font-size: clamp(38px, 9vw, 56px);
	}
}

/*
 * One pill, everything inside it.
 *
 * The submit is a child of the same rounded container rather than a sibling
 * beside it, so there is a single silhouette instead of a bar and a button
 * that have to be kept in visual agreement at every breakpoint.
 */
/*
 * The inner padding is deliberately tight — 4px — so the submit reaches close
 * to the top, right and bottom edges of the bar. Its own generous padding then
 * reads as the button's, not as slack in the container around it.
 */
.pub-booking__row {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	/* Takes whatever the question leaves. `min-inline-size: 0` because a flex
	   item will not shrink below its input's default width without it, which
	   is what pushes the pill off the right edge at middling widths. */
	flex: 1 1 auto;
	min-inline-size: 0;
	padding: 4px 4px 4px var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(13, 13, 13, 0.46);
	border: var(--wp--custom--border--hairline) solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32);
}

/*
 * A dark tint, not a white one.
 *
 * White glass over a bright photograph — a dusk skyline, a pale sky — turns to
 * grey haze and the white placeholder inside it stops being readable. Tinting
 * dark instead holds white text over light and dark frames alike, and still
 * lets the picture through.
 */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
	.pub-booking__row {
		background: rgba(10, 14, 26, 0.34);
		-webkit-backdrop-filter: blur(18px) saturate(1.25);
		backdrop-filter: blur(18px) saturate(1.25);
	}
}

/* The pill carries the focus state for the input nested inside it. */
.pub-booking__row:focus-within {
	border-color: var(--wp--preset--color--yellow);
	outline: 2px solid var(--wp--preset--color--yellow);
	outline-offset: 3px;
}

.pub-booking__icon {
	flex: 0 0 auto;
	inline-size: 18px;
	block-size: 18px;
	color: rgba(255, 255, 255, 0.85);
}

.pub-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-inline-size: 0;
	flex: 1;
	text-align: start;
}

.pub-field__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-500);
}

.pub-field__control {
	appearance: none;
	inline-size: 100%;
	min-block-size: var(--wp--custom--control--height);
	padding: 0 var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--off-white);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-100);
	border-radius: var(--wp--custom--radius--md);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 500;
	color: var(--wp--preset--color--navy);
}

.pub-field__control:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--blue);
}

/* ---------------------------------------------- glass variant --- */
/*
 * Semi-transparent over photography.
 *
 * Two things make this legible rather than merely pretty. The blur is a
 * *progressive* enhancement — the fallback is an opaque-enough dark fill, so a
 * browser without backdrop-filter still gets contrast rather than white text
 * on a sunlit rice terrace. And the panel carries its own soft scrim, because
 * the slide's own gradient is weakest exactly where this sits: the middle.
 */
/* The input is invisible furniture; the pill around it is the control. */
.pub-booking--glass .pub-field__control {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	min-block-size: var(--pub-search-h, 50px);
	padding-inline: 0;
	box-shadow: none;
}

.pub-booking--glass .pub-field__control::placeholder {
	color: rgba(255, 255, 255, 0.72);
	font-weight: 400;
}

/*
 * Focus lands on the pill, not the bare input.
 *
 * The input has no border of its own, so its own focus ring would draw a
 * rectangle floating inside a rounded container. :focus-within on the pill
 * above is what shows focus; suppressing it here would leave keyboard users
 * with nothing, so the ring is moved rather than removed.
 */
.pub-booking--glass .pub-field__control:focus-visible {
	outline: none;
}

/* The label is redundant beside a placeholder that asks the same question. */
.pub-booking--glass .pub-field__label {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Padding and weight inherit from .pub-btn; only the height differs, because
   this button has to match the bar it sits inside. */
.pub-booking__submit {
	min-block-size: var(--pub-search-h, 50px);
	white-space: nowrap;
	flex: 0 0 auto;
}

.pub-booking__submit-icon {
	display: none;
	inline-size: 20px;
	block-size: 20px;
}

/*
 * Narrow viewports keep the single-pill silhouette.
 *
 * Stacking the row turned the bar into a tall lozenge — a pill radius wrapped
 * around a column of three things, which is neither a search field nor a
 * button. Instead the label collapses to its icon and the submit becomes a
 * circle inside the same pill, so the control keeps its shape at every width.
 * The label stays in the DOM, visually hidden, so the button keeps its
 * accessible name.
 */
@media (max-width: 620px) {
	.pub-booking__row {
		padding-inline-start: var(--wp--preset--spacing--40);
	}

	/* One magnifier is enough, and the button is the one that acts. */
	.pub-booking__icon {
		display: none;
	}

	.pub-booking__submit {
		inline-size: var(--pub-search-h, 50px);
		padding-inline: 0;
		border-radius: var(--wp--custom--radius--circle);
	}

	.pub-booking__submit-label {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.pub-booking__submit-icon {
		display: block;
	}
}

/* ------------------------------------------------------------------ *
 * 12  Horizontal rail — hot selling packages
 * ------------------------------------------------------------------ */

.pub-rail {
	position: relative;
}

.pub-rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(272px, 1fr);
	gap: var(--wp--preset--spacing--50);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-block-end: var(--wp--preset--spacing--30);
	/* Cards lift on hover; without room the transform clips against the scroller. */
	padding-inline: 2px;
	margin-inline: -2px;
}

.pub-rail__track::-webkit-scrollbar {
	display: none;
}

.pub-rail__track > * {
	scroll-snap-align: start;
}

@media (min-width: 900px) {
	.pub-rail__track {
		grid-auto-columns: minmax(300px, calc(25% - var(--wp--preset--spacing--50)));
	}
}

.pub-rail__controls {
	display: flex;
	gap: var(--wp--preset--spacing--20);
}

.pub-rail__btn {
	display: inline-grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-300);
	border-radius: var(--wp--custom--radius--circle);
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	transition: background-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard),
		border-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard);
}

.pub-rail__btn:hover:not([disabled]) {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.pub-rail__btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

.pub-rail__btn svg {
	inline-size: 18px;
	block-size: 18px;
}

/* ------------------------------------------------------------------ *
 * 13  Region tabs — destinations
 * ------------------------------------------------------------------ */

.pub-regions__tablist {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	overflow-x: auto;
	scrollbar-width: none;
	padding-block-end: var(--wp--preset--spacing--30);
	margin-block-end: var(--wp--preset--spacing--60);
	border-block-end: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-100);
}

.pub-regions__tablist::-webkit-scrollbar {
	display: none;
}

.pub-regions__tab {
	flex: 0 0 auto;
	padding: var(--wp--custom--control--pad-block) var(--wp--custom--control--pad-inline);
	background: transparent;
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--grey-100);
	border-radius: var(--wp--custom--radius--pill);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: var(--wp--custom--control--font-weight);
	color: var(--wp--preset--color--grey-700);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard),
		color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard),
		border-color var(--wp--custom--dur--fast) var(--wp--custom--ease--standard);
}

.pub-regions__tab:hover {
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

.pub-regions__tab[aria-selected="true"] {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.pub-regions__tab:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
}

.pub-regions__panel[hidden] {
	display: none;
}

.pub-regions__empty {
	padding: var(--wp--preset--spacing--70) 0;
	color: var(--wp--preset--color--grey-500);
}

/* ------------------------------------------------------------------ *
 * 14  Motion
 * ------------------------------------------------------------------ */

.pub-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--wp--custom--dur--reveal) var(--wp--custom--ease--entrance),
		transform var(--wp--custom--dur--reveal) var(--wp--custom--ease--entrance);
}

.pub-reveal.is-in {
	opacity: 1;
	transform: none;
}

/*
 * Motion is decoration here, never information. Anyone who has asked their OS
 * to reduce it gets the finished state immediately rather than a shorter
 * animation.
 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.pub-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.pub-card,
	.pub-card__media img,
	.pub-dest img,
	.pub-btn,
	.pub-nav__list a::after {
		transition: none !important;
	}

	.pub-card:hover {
		transform: none;
	}

	.pub-card:hover .pub-card__media img,
	.pub-dest:hover img {
		transform: none;
	}
}
