/*
Theme Name: Villas More
Theme URI:
Author: Villas More
Author URI:
Description: Custom native WordPress block theme for the Villas More website. Built without Blocksy, page builders, or unnecessary plugins/frameworks, to preserve flexibility for future API and booking-engine integration.
Version: 0.4.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: villas-more
*/

/* ==========================================================================
   Villas More — Design System V0.2 (Task 004: Homepage Refinement)
   --------------------------------------------------------------------------
   V0.2 tightens V0.1's rhythm rather than redesigning it: shorter section
   padding, a compact-strip modifier, a split hero, a five-across Our Stays
   option at large desktop, and a new location/map section. Colour, type
   and spacing TOKENS live in theme.json — this file consumes those tokens
   via CSS custom properties rather than hard-coding values.
   Guiding principle for this pass: every element should justify the
   amount of space it occupies. Spaciousness stays available where it
   earns hierarchy/readability/impact, but is no longer the default.

   V0.2.1 (Task 004 follow-up round 2): live-review alignment fixes for
   the Our Stays grid, the section-head/grid alignment, the hero's
   full-bleed image edge, and the discovery-chip row layout. No new
   sections; see docs/SESSION_LOG.md for the full rationale.
   ========================================================================== */


/* ==========================================================================
   Villas More — semantic accent tokens (TASK-011, awaiting approval)
   --------------------------------------------------------------------------
   THE ONE PLACE PROPERTY / COLLECTION COLOURS ARE DEFINED.

   Components never name a Property. They ask for a ROLE:

       --vm-color-primary   the identification mark. NON-TEXT ONLY:
                            pins, icons, rules, selected marks, borders
       --vm-color-deep      functional weight: CTA fills, links, eyebrows
                            — the accent that carries text on a light ground
       --vm-color-pale      the Property's voice where the other two cannot
                            go: small tint fills, and marks on a dark ground
       --vm-color-dark      the Property pigment seen at night. A GROUND,
                            not a mark: Property footer, large dark band
       --vm-color-on-accent text on Deep
       --vm-color-on-primary text on a Primary fill — white for five
                            Properties, near-black where Primary is too light

   `:root` holds the COLLECTION (Villas More) palette, so every
   collection-level page and component gets it for free. A Property page
   carries one `.vm-accent--<name>` class on <body> (added by
   inc/property-accent.php) and the same three tokens resolve to that
   Property's palette instead. Nothing else changes.

   The accent names are COLOURS, not Properties — the theme never needs to
   know that Villa Filaus happens to be terracotta. The Property → colour
   assignment lives in inc/property-accent.php.

   Values: docs/tasks/TASK-011.md (eighth pass). Neutrals live in theme.json.
   ========================================================================== */

:root {
	/* Collection — Villas More olive */
	--vm-color-primary: #6C764F;
	--vm-color-deep: #485527;
	--vm-color-pale: #EBF0E2;
	--vm-color-on-accent: var(--wp--preset--color--white);
	--vm-color-on-primary: var(--wp--preset--color--white);

	/* Dark / ground. The collection's is the site's dark (TASK-011 pass 7);
	   each Property overrides it below with its own night value. Defined
	   but NOT YET CONSUMED anywhere — see TASK-011 eleventh pass. */
	--vm-color-dark: var(--wp--preset--color--primary-dark);
}

.vm-accent--terracotta {
	/* Villa Filaus — terracotta. Warm roof tile and sun-held stone. */
	--vm-color-primary: #C2713C;                       /* Mark   */
	--vm-color-deep:    #9E4F30;                       /* Core   */
	--vm-color-dark:    #502113;                       /* Ground */
	--vm-color-pale:    #FFEBDD;                       /* Tint   */
	/* The one Mark in the set that cannot carry white (3.67:1). The global
	   contrast token reads 4.53:1 on it — no Filaus-specific colour. */
	--vm-color-on-primary: var(--wp--preset--color--contrast);
}

.vm-accent--wine {
	/* Casa Laurea — Dingač. Deep Pelješac red; cellar, table, evening.
	   NO TINT: a red at Tint lightness is pink. Surface does that job. */
	--vm-color-primary: #883033;                       /* Mark   */
	--vm-color-deep:    #6A1D24;                       /* Core   */
	--vm-color-dark:    #4E1B22;                       /* Ground */
	--vm-color-pale:    var(--wp--preset--color--surface);
}

.vm-accent--shutter-green {
	/* Palmotta Palace — shutter green against pale limestone. */
	--vm-color-primary: #266547;                       /* Mark   */
	--vm-color-deep:    #144B32;                       /* Core   */
	--vm-color-dark:    #193924;                       /* Ground */
	--vm-color-pale:    #DFEFE4;                       /* Tint   */
}

.vm-accent--mineral-teal {
	/* Villa Diamond — gemstone teal. The house is named for a stone and
	   the colour behaves like one: cut, cool, precise. Water and
	   reflection support the world; they are not the rationale. */
	--vm-color-primary: #137E83;                       /* Mark   */
	--vm-color-deep:    #146366;                       /* Core   */
	--vm-color-dark:    #013E41;                       /* Ground */
	--vm-color-pale:    #D8F0F0;                       /* Tint   */
}

.vm-accent--adriatic-blue {
	/* Villa Malo More — open-water Adriatic blue. */
	--vm-color-primary: #19699A;                       /* Mark   */
	--vm-color-deep:    #0C5372;                       /* Core   */
	--vm-color-dark:    #0A3347;                       /* Ground */
	--vm-color-pale:    #DEEDFC;                       /* Tint   */
}

/* A pale accent band. Registered as a block style ("Accent tint") on
   core/group, so a section can take its Property's pale tint without any
   per-page CSS and without the editor picking a colour by hand. */
.vm-section--accent-pale,
.is-style-vm-accent-pale {
	background-color: var(--vm-color-pale);
}

/* -- Base ------------------------------------------------------------- */

/*
 * Task 023: `hidden` here was the reason `position: sticky` never worked
 * anywhere on this site, and it took three tasks to find, so the reasoning
 * stays with the rule.
 *
 * `overflow-x: hidden` cannot exist on its own. The specification says that
 * when one axis is `hidden` and the other is `visible`, the visible axis
 * computes to `auto` — so this element quietly became a SCROLL CONTAINER on
 * both axes. A sticky element sticks relative to its nearest scrolling
 * ancestor, and from that moment every sticky descendant was measuring
 * itself against `.wp-site-blocks`, which has no height of its own and
 * therefore never scrolls internally. The page scrolls; the container does
 * not; nothing ever sticks.
 *
 * `overflow-x: clip` clips exactly the same overflow — which is what this
 * rule was added to do — but is explicitly defined NOT to create a scroll
 * container, so `overflow-y` stays `visible` and sticky works again.
 *
 * `hidden` is kept as the first declaration on purpose: a browser too old
 * to know `clip` drops that line and keeps the old behaviour, which is the
 * safe direction to fail in. Clip is Chrome 90+, Firefox 81+, Safari 16+.
 */
.wp-site-blocks {
	overflow-x: hidden;
	overflow-x: clip;
}

a {
	text-decoration: none;
}

/* -- Header ------------------------------------------------------------- */

/* Task 006-6: villas-more/header — global defaults (Solid/Transparent,
   Light/Dark navigation, Sticky, Divider) are resolved server-side
   (blocks/header/render.php) into `data-vm-*` attributes on the header
   element itself; every rule below keys off those attributes rather
   than duplicating the inherit/override logic in CSS. Page-level
   overrides (post meta, Page Settings sidebar) produce the same
   attributes, so no separate Page-level CSS is needed. */

/*
 * Ink ramp (Task 008B polish pass, 2026-08-29).
 *
 * The page was setting almost every piece of text — running copy, FAQ
 * questions, fact values, section-nav links — in `contrast` (#1F1C18,
 * 15.8:1 on base). Headings want that weight; body copy at 16px across
 * long paragraphs does not, and it was the main reason the page still
 * read heavier than the V0.2 reference even after the type scale was
 * corrected. One intermediate step gives a three-part ramp:
 *
 *   contrast            #1F1C18  15.8:1  headings, card titles, bold labels
 *   --wp--custom--ink   #332F28  12.4:1  running copy, small dark UI text
 *   muted               #6B6459   5.5:1  secondary/supporting text
 *
 * Ratios are measured against `base` (#F8F7F3); against the tinted
 * `surface` band (#ECEAE4) they are 14.1 / 11.1 / 4.9. All clear WCAG
 * AA for normal text (4.5:1), with the muted step the only one close to
 * the floor — which is why it is not lightened further.
 *
 * The middle step lives in theme.json as `settings.custom.ink` (so
 * WordPress emits `--wp--custom--ink` itself and global styles can use
 * it as the document text colour) rather than as a palette entry — it
 * is a default, not a colour an editor should pick from a swatch list.
 * Headings opt back up to `contrast` via `styles.elements.heading`.
 */
:root {
	--vm-header-height: 4.75rem;
}

@media (max-width: 781px) {
	:root {
		--vm-header-height: 4rem;
	}
}

html {
	scroll-padding-top: var(--vm-header-height);
}

.vm-header {
	--vm-header-bg: var(--wp--preset--color--base);
	--vm-header-border: var(--wp--preset--color--border);
	--vm-header-text: var(--wp--preset--color--contrast);
	/* TASK-011 final: the header is MASTER-NEUTRAL on every page — no
	   collection olive, no Property colour. Property colour begins in the
	   Property content, below the navigation. */
	--vm-header-text-hover: var(--wp--preset--color--muted);

	position: static;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: var(--vm-header-bg);
	border-bottom: 1px solid transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* -- Sticky ------------------------------------------------------------- */

.vm-header[data-vm-sticky="on"] {
	position: sticky;
}

/* -- Divider -------------------------------------------------------------- */

.vm-header[data-vm-divider="on"] {
	border-bottom-color: var(--vm-header-border);
}

/* -- Appearance: Transparent (sits over a photo, e.g. a Property hero) --- */

.vm-header[data-vm-appearance="transparent"] {
	--vm-header-bg: transparent;
	--vm-header-border: transparent;
	position: absolute;
}

.vm-header[data-vm-appearance="transparent"][data-vm-sticky="on"] {
	position: fixed;
}

/* Once a sticky transparent header has scrolled past the hero, it needs
   a solid, readable state — the header's own JS (blocks/header/view.js)
   adds this class once the page scrolls past a small threshold. Reuses
   the Dark-navigation colours regardless of the header's chosen
   Light/Dark setting, since the header is no longer over a photo. */
.vm-header[data-vm-appearance="transparent"].vm-header--scrolled {
	--vm-header-bg: var(--wp--preset--color--base);
	--vm-header-border: var(--wp--preset--color--border);
	--vm-header-text: var(--wp--preset--color--contrast);
	--vm-header-text-hover: var(--wp--preset--color--muted);
}

/* The header's own CTA is the neutral dark action, not the Property Core.
   It must not silently change colour from page to page. */
.vm-header__actions .vm-cta--primary .wp-block-button__link {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.vm-header__actions .vm-cta--primary .wp-block-button__link:hover,
.vm-header__actions .vm-cta--primary .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--muted);
}

/* -- Navigation treatment: Light (for a photo background) --------------- */

.vm-header[data-vm-navigation="light"]:not(.vm-header--scrolled) {
	--vm-header-text: var(--wp--preset--color--on-primary);
	--vm-header-text-hover: var(--wp--preset--color--on-primary);
}

.vm-header__inner {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding-block: 0.9rem;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
	min-height: var(--vm-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30, 1.5rem);
	flex-wrap: nowrap;
	box-sizing: border-box;
}


/*
 * Task 016: the wordmark is the display role, not the heading role. The
 * display face carries no lowercase (see assets/fonts/fonts.css), so the
 * uppercase transform is part of the role rather than a styling choice —
 * without it the mark would render half in Marcellus and half in the
 * fallback. Tracking opens to suit caps at this size.
 */
.vm-brand,
.vm-brand a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--vm-header-text);
	white-space: nowrap;
	margin: 0;
}

.vm-brand--logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

/*
 * Responsive logo sizing, Task 008-2.
 *
 * One source asset, sized by the design system — explicitly not three
 * manually resized uploads. The height fluidly interpolates between
 * mobile and desktop, so the same file serves every breakpoint and a
 * future SVG needs no separate treatment. `--vm-logo-height` is exposed
 * as a token so a Property or campaign could legitimately differ later
 * without touching this rule.
 */
:root {
	--vm-logo-height: clamp(1.6rem, 1.15rem + 1.4vw, 2.5rem);
}

.vm-brand__logo {
	display: block;
	height: var(--vm-logo-height);
	width: auto;
	max-width: 14rem;
	object-fit: contain;
}

/*
 * -- Brand identity: one slot, two variants -------------------------------
 *
 * Only one mark is ever shown: the Villas More master logo on ordinary
 * pages, or the current Property's own mark INSTEAD of it on a Property
 * page. The two belong to one visual family, so a side-by-side lockup
 * read as duplication rather than hierarchy — that presentation was
 * removed after UAT.
 *
 * One slot means one size token. An earlier pass gave the Property mark
 * a smaller token because it was a *secondary* element in a lockup; now
 * that it IS the identity, that would make every Property page's brand
 * quietly lighter than the collection's.
 *
 * Measured, the artwork is not the cause of the size difference UAT saw:
 * Villas More is 1152x347 (3.32:1), Villa Filaus 576x174 (3.31:1) and
 * Villa Malo More 149.25x45 (3.32:1) — each with ink filling its box and
 * no excess whitespace. One height token therefore gives every wordmark
 * the same optical weight; the width cap only guards a future mark with
 * an unusual ratio.
 */
.vm-brand__logo {
	display: block;
	height: var(--vm-logo-height);
	width: auto;
	max-width: min(15rem, 42vw);
	object-fit: contain;
}

/*
 * The light variant follows the header's LIVE state, not the page's
 * initial setting. `view.js` adds `.vm-header--scrolled` once a
 * transparent sticky header turns solid, so the mark swaps back with it
 * — the UAT bug was a white logo left stranded on a light header, where
 * it all but disappeared.
 *
 * Standard is the default and the safe state. A Property with only
 * standard artwork never emits a light <img> at all: a dark mark on a
 * photograph is merely low-contrast, whereas a white mark on a white
 * header is invisible, so the asymmetry is deliberate.
 *
 * Task 008-3: the swap-out below is scoped to `.vm-brand--has-light`,
 * the class the Header emits only when a light asset actually exists.
 * Without that scope the rule hid the standard mark in the light state
 * whether or not anything replaced it, so the first Property with no
 * Property logo of its own — falling back to a master brand that has no
 * light variant configured — rendered a header with no identity at all.
 * The asymmetry described above was always the intent; this is what
 * makes the CSS honour it.
 *
 * `display: none` rather than opacity, so the hidden variant leaves the
 * accessibility tree and the link has exactly one accessible name at any
 * moment.
 */
.vm-brand__logo--light {
	display: none;
}

.vm-header[data-vm-navigation="light"]:not(.vm-header--scrolled) .vm-brand__logo--light {
	display: block;
}

.vm-header[data-vm-navigation="light"]:not(.vm-header--scrolled) .vm-brand--has-light .vm-brand__logo--standard {
	display: none;
}

/*
 * -- Header conversion state (Task 008-2) ---------------------------------
 *
 * Separate from the appearance state above, and deliberately so: this
 * rule reacts to `.vm-header--cta-idle`, which `view.js` sets while the
 * page's own primary CTA is on screen, whatever the header's
 * appearance. `Check availability` in the header adds nothing while the
 * visitor can already see the real one below the Hero — it spends the
 * header's most valuable slot on a duplicate.
 *
 * Only ever *hides* on an added class, so a page with no nominated CTA,
 * or a browser without IntersectionObserver, keeps the header CTA
 * visible. The failure mode is "shows a button", not "shows nothing".
 */
.vm-header--cta-idle .vm-header__cta--conversion {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.vm-header__cta--conversion {
	transition: opacity 180ms ease, visibility 180ms ease;
}

/*
 * Reserved for the existing-guest action once Online check-in has a
 * real destination. Hidden until then, and there is deliberately no
 * such button in `parts/header.html` — no invented link.
 */
.vm-header__cta--guest {
	display: none;
}

.vm-header--cta-idle .vm-header__cta--guest {
	display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
	.vm-header__cta--conversion,
	.vm-header--cta-idle .vm-header__cta--conversion {
		transition: none;
	}
}

.vm-header-editor-logo-preview {
	display: inline-flex;
	align-items: center;
}

.vm-header .wp-block-navigation {
	flex-grow: 1;
	justify-content: center;
}

/* Task 016: navigation is the display role — uppercase, letterspaced. */
.vm-header .wp-block-navigation a.wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	color: var(--vm-header-text);
	padding: 0.5rem 0.85rem;
}

.vm-header .wp-block-navigation a.wp-block-navigation-item__content:hover {
	color: var(--vm-header-text-hover);
}

/* core/navigation's mobile overlay menu icon/close controls also need
   to pick up the header's current text colour, not just nav links. */
.vm-header .wp-block-navigation__responsive-container-open,
.vm-header .wp-block-navigation__responsive-container-open svg {
	color: var(--vm-header-text);
	fill: var(--vm-header-text);
}

.vm-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: nowrap;
}

/* Task 006-6 fix: the header's own CTA had no explicit `white-space`,
   so before the nav-breakpoint fix below existed it could shrink until
   its own text wrapped into an unreadable stack. Scoped to the
   header's own CTA only — hero buttons elsewhere are unaffected and
   already fit on one line. Kept as a safety net even after the fix
   below, in case a future longer CTA label reintroduces the squeeze. */
.vm-header__actions .wp-block-button__link {
	white-space: nowrap;
}

/* Task 006-6 follow-up round 2 (2026-08-28, Ana's second review): the
   first attempt at this fix (reusing the theme's 781px tablet token)
   was itself insufficient — Ana's second review caught the exact same
   "squeezed desktop Header" wrapping still happening, just shifted
   into the 800-930px range instead of the original 600-781px range.
   That first attempt was based on a flawed measurement: cloning the
   header markup and measuring it detached from the DOM undercounted
   real spacing (flex `gap` custom properties don't carry over to a
   clone in a different context) and produced a false ~734px minimum.
   The real number was found by direct empirical testing instead —
   resizing an actual browser window through the real header (5 nav
   links + logo + search icon + CTA) and screenshotting at each width:
   800px, 870px, 920px and 930px all still wrapped; 940px was the first
   clean, single-row width. 960px is that measured ~940px crossover
   plus a ~20px safety margin, as a plain value rather than a
   theme.json token — neither existing token fits (600px is too narrow,
   781px is the value just proven wrong), and theme.json's
   settings.viewport only supports two named tiers (mobile/tablet)
   for core's own per-viewport style editor anyway, so a bespoke,
   content-measured value scoped to this stylesheet (consistent with
   how `--vm-header-height` above is also a plain custom property
   rather than a theme.json setting) is the correct fit. Reversing
   core/navigation's own (min-width:600px) rules inside our own
   (max-width:960px). `!important` is deliberate and documented,
   matching the same specificity-override precedent as the Accordion's
   width fix (Task 006-5): core's own override rule is itself a plain,
   unwrapped class+:not() selector, so without `!important` a future
   core CSS reorder could silently win back. Scoped to `.vm-header`
   only — no other core/navigation instance on the site is affected.
   Caution for future visual QA: the Site Editor's own Tablet preview
   is a fixed 780px-wide iframe and its Mobile preview is a fixed
   599px-wide iframe (confirmed via the iframe's own rendered width) —
   neither preview can show the 800-930px range where the old 781px
   breakpoint was still broken, which is exactly why that bug wasn't
   caught by the Tablet preview the first time. Real window widths (or
   the frontend directly) remain the authoritative test for this
   breakpoint. */
@media (max-width: 960px) {
	.vm-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}

	.vm-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
}

/* The search icon is hidden once the header reaches its compact/mobile
   composition (600px, the theme's mobile token) so the booking CTA isn't
   competing with it for the same tight row — wordmark + menu button is the
   intentional mobile composition. Left visible in the 600-960px
   collapsed-nav band above (widened from 600-781px alongside the fix
   above), where there's comfortably enough room for it alongside the
   now-collapsed menu button and the CTA — confirmed on the real
   frontend across that band with no crowding.
   Task 023: search is no longer hidden from a phone altogether — the whole
   actions group, search included, moves into the opened menu, so this only
   keeps it out of the resting bar. */
@media (max-width: 600px) {
	.vm-header .vm-search-toggle,
	.vm-header .vm-header__search {
		display: none;
	}
}

/* Task 023: the circle, the hairline and the 2.25rem box were built for the
   placeholder button that no longer exists. The treatment was right and the
   markup was not, so the selector now names `core/search`'s own button and
   keeps `.vm-search-toggle` beside it — a template part saved in the
   database before today still carries the old markup, and it should not
   suddenly render as a bare browser button. */
.vm-search-toggle,
.vm-header__search .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	min-width: 2.25rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: var(--vm-header-text);
	cursor: pointer;
}

/* The placeholder's own magnifier was drawn with strokes… */
.vm-search-toggle svg {
	width: 1.05rem;
	height: 1.05rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

/* …and core's is a single filled path, so it needs the opposite treatment.
   Getting this backwards renders an invisible icon inside a visible ring. */
.vm-header__search .wp-block-search__button svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: currentColor;
	stroke: none;
}

/* -- Buttons / CTAs ------------------------------------------------------ */
/* -- Buttons / CTAs ------------------------------------------------------ */

.vm-cta .wp-block-button__link {
	font-weight: 500;
	letter-spacing: 0.02em;
}

.vm-cta--primary .wp-block-button__link {
	background-color: var(--vm-color-deep);
	color: var(--vm-color-on-accent);
}

.vm-cta--primary .wp-block-button__link:hover,
.vm-cta--primary .wp-block-button__link:focus-visible {
	background-color: color-mix(in srgb, var(--vm-color-deep) 84%, #000);
}

.vm-cta--secondary .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast);
}

.vm-cta--secondary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/*
 * Mockup V0.2 pass: a token-based alternative to `--primary` (teal) for
 * CTAs on light backgrounds (Quick Facts, Accommodation) that want the
 * mockup's darker, warmer button colour — reuses the existing
 * semantic `--vm-color-deep` token (TASK-011), which resolves to the
 * Property's own Deep inside a `.vm-accent--*` scope and to the
 * collection olive everywhere else. Never a hardcoded hex.
 */
/*
 * TASK-011: Deep is the only accent that carries text — white on Primary is
 * below AA for several Properties (Villa Filaus is 3.68:1). So this variant
 * keeps its filled appearance but takes Deep, exactly like `--primary`.
 * The two now resolve to the same fill within a scope; whether the theme
 * still needs two filled CTA variants is an open design question, not a
 * colour one.
 */
.vm-cta--accent .wp-block-button__link {
	background-color: var(--vm-color-deep);
	color: var(--vm-color-on-accent);
}

.vm-cta--accent .wp-block-button__link:hover,
.vm-cta--accent .wp-block-button__link:focus-visible {
	background-color: color-mix(in srgb, var(--vm-color-deep) 84%, #000);
}

.vm-cta--compact .wp-block-button__link {
	padding: 0.65rem 1.25rem;
	font-size: 0.85rem;
}

/* -- Section rhythm -------------------------------------------------- */

/*
 * Containment model: `.vm-section` stays full-bleed (no horizontal
 * padding/max-width) so a `--surface` background can span edge to edge.
 * Horizontal centering/padding lives on `.vm-container` instead, applied
 * to whichever direct children of a section need it (grids, hero copy,
 * the offers banner). Narrower text blocks (`.vm-section__head`,
 * `.vm-why__inner`) get their own smaller max-width + matching padding
 * instead of `.vm-container`.
 *
 * Rhythm modifiers (V0.2): `.vm-section` is the default padding; `--tight`
 * is noticeably shorter, for sections whose content doesn't need a full
 * default-sized block; `--compact` is shorter still, for a "utility
 * strip" treatment (currently just Offers). Not every section should
 * reach for the same amount of vertical space by default.
 */

.vm-container {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
}

.vm-section {
	padding-block: clamp(2.75rem, 5vw, 4.25rem);
}

.vm-section--tight {
	padding-block: clamp(2.25rem, 4.2vw, 3.5rem);
}

.vm-section--compact {
	padding-block: clamp(1rem, 2vw, 1.5rem);
}

.vm-section--surface {
	background-color: var(--wp--preset--color--surface);
}

.vm-eyebrow {
	display: block;
	/* Task 016: display role. One weight only — see fonts.css. */
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.15em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--vm-color-deep);
	margin-bottom: 0.85rem;
}

/*
 * Task 010-10 (DECISIONS.md 630). In a section the small label is the
 * heading (an H2 that keeps `.vm-eyebrow` above, so it looks exactly as
 * before) and the large line under it is a paragraph that must keep the
 * heading's look. This mirrors theme.json's styles.elements.heading —
 * the heading role, weight 400, line-height 1.15, the contrast colour —
 * and nothing else: size stays with the block's font-size preset class.
 * `:where()` keeps it at zero specificity, so every class rule that
 * styled the old H2 still wins over it. Rules elsewhere that target `h2`
 * or `p:not(.vm-eyebrow)` name `.vm-heading-line` explicitly.
 */
:where(.vm-heading-line) {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	line-height: 1.15;
	color: var(--wp--preset--color--contrast);
}

/*
 * `.vm-section__head` intentionally mirrors `.vm-container`'s own
 * max-width/margin/padding math (rather than just capping its own
 * width) so its left edge lines up exactly with the grid that follows
 * it. WordPress's `layout:"constrained"` support auto-centers any
 * direct child of a constrained section that doesn't opt out, via a
 * zero-specificity default rule — without an explicit margin-inline
 * here, that default was centering this block. The readable text
 * measure is capped on the children instead of the wrapper, so the
 * box aligns left while the copy itself doesn't stretch full width.
 */
.vm-section__head {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.vm-section__head > * {
	max-width: 42rem;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29). The section head in the
 * reference is a tight three-part unit: eyebrow, heading, then an
 * optional lede that sits close under the heading rather than being
 * spaced like ordinary body copy. Without this the heads read looser
 * and taller than the reference, which is a large part of why the page
 * felt heavier overall.
 */
.vm-section__head > * + * {
	margin-top: 0.5rem;
}

.vm-section__head > p:not(.vm-eyebrow):not(.vm-heading-line) {
	margin-top: 0.9rem;
	color: var(--wp--preset--color--muted);
	max-width: 34rem;
}

/* -- Hero (V0.2: split layout, replaces the V0.1 full-bleed overlay) ----- */

.vm-hero {
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

/*
 * V0.2.1: the hero's inner grid is deliberately NOT `.vm-container` —
 * it spans the full viewport so the media column can bleed flush to
 * the right edge. `max-width: none` + `margin-inline: 0` override
 * WordPress's `layout:"constrained"` default (see `.vm-section__head`
 * above for the same mechanism), since nothing else here opts this
 * element out of that auto-centering. The text column gets its own
 * left inset (matching `.vm-container`'s effective gutter) via
 * `.vm-hero__text`'s padding instead.
 */
.vm-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 58%);
	align-items: stretch;
	min-height: clamp(18rem, 26vw, 24rem);
	max-width: none;
	margin-inline: 0;
}

.vm-hero__text {
	max-width: 34rem;
	padding-inline-start: max(1.5rem, calc((100vw - var(--wp--style--global--wide-size, 1320px)) / 2 + 1.5rem));
	padding-inline-end: clamp(1.5rem, 4vw, 2.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vm-hero__title {
	margin-bottom: 1rem;
}

.vm-hero__lede {
	color: var(--wp--preset--color--muted);
	margin-bottom: 1.75rem;
}

.vm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/*
 * V0.2.1: swapped the fixed `aspect-ratio` for `height: 100%`, so the
 * media column stretches to match the text column's rendered height
 * (both are grid items in a stretched row) instead of being sized
 * independently — this is what makes the hero read as one row rather
 * than two separately-proportioned blocks. Only the left corners are
 * rounded since the right edge is meant to sit flush against the
 * viewport edge.
 */
.vm-hero__media {
	height: 100%;
	border-radius: 2px 0 0 2px;
	background: var(--wp--preset--gradient--primary-wash);
	display: flex;
	align-items: flex-end;
	padding: 1.25rem;
	position: relative;
	overflow: hidden;
}

.vm-hero__media-label {
	font-family: var(--wp--preset--font-family--heading);
	color: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0;
}

/* -- Our Stays grid (Task 006 POC: native Group Grid layout owns columns/gap) -- */

/*
 * Task 006 proof of concept (2026-08-27): column count and gap are no
 * longer hand-written here. The pattern's grid wrapper now uses
 * WordPress's native Group "Grid" layout (`columnCount` +
 * `style.spacing.blockGap`, set in `patterns/stays-grid.php`), which
 * generates its own `display:grid`, `grid-template-columns`, and gap CSS
 * at render time from the editor's own Columns/Spacing controls. This
 * rule now only needs to size the *inside* of each card.
 */

.vm-stay-card {
	display: flex;
	flex-direction: column;
}

.vm-stay-card__media {
	aspect-ratio: 5 / 4;
	border-radius: 2px;
	display: flex;
	align-items: flex-end;
	padding: 1rem;
	margin-bottom: 0.75rem;
	position: relative;
}

/*
 * Placeholder tints cycle every FIVE cards, not six (corrected in Task
 * 008-3). Five tints on a six-step cycle left every sixth card with no
 * rule at all — invisible while no card grid on the site had more than
 * five items, and immediately visible on Villa Diamond's nine-apartment
 * Accommodation grid, where the sixth card rendered as a blank white
 * panel. Cycling on the number of tints that actually exist fixes it
 * for any grid length, and changes nothing for the four- and five-card
 * grids that already existed.
 */
.vm-stay-card__media {
	background: linear-gradient(160deg, var(--vm-color-deep) 0%, var(--vm-color-primary) 100%);
}

.vm-stay-card__media-label {
	font-family: var(--wp--preset--font-family--heading);
	color: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vm-stay-card__name {
	margin-bottom: 0.25rem;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29). Measured against the
 * reference, every card title on the page was rendering roughly half
 * again too large (26px against the reference's ~18px), which is most
 * of why Accommodation, Discover and Explore all read as heavy grids
 * rather than as the reference's finer editorial cards. Sizes below are
 * taken from the mockup rather than from the heading preset scale, so a
 * card title no longer competes with its own section heading.
 */
.vm-stay-card__name {
	font-size: 1.15rem;
	line-height: 1.25;
}

.vm-stay-card__eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.4rem;
}

/*
 * V0.2.1: `flex: 1 0 auto` makes the note absorb whatever vertical
 * space is left in the card (cards are stretched to equal height by
 * the grid already), so `.vm-stay-card__link` lands on the same
 * baseline in every card regardless of how many lines the note wraps
 * to — this is what fixes the "random CTA position" / misaligned
 * first-card issue from the live review.
 */
.vm-stay-card__note {
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	line-height: 1.5;
	margin-bottom: 0.5rem;
	flex: 1 0 auto;
}

.vm-stay-card__link {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
}


@media (max-width: 600px) {
	
}

/* -- Location & Discovery (V0.2: new section, replaces Find-your-stay) -- */

.vm-map__inner {
	display: grid;
	grid-template-columns: minmax(0, 40%) minmax(0, 60%);
	gap: clamp(2rem, 4vw, 3rem);
	align-items: center;
}

.vm-map__chips-label {
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--muted);
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

.vm-map__visual {
	position: relative;
}

.vm-map__svg {
	width: 100%;
	height: auto;
	display: block;
}

.vm-map__svg .vm-map__coast {
	fill: none;
	stroke: var(--wp--preset--color--border);
	stroke-width: 2;
}

.vm-map__svg .vm-map__dot {
	fill: var(--vm-color-primary);
	stroke: var(--wp--preset--color--surface);
	stroke-width: 2;
}

.vm-map__svg .vm-map__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 10px;
	font-weight: 600;
	fill: var(--wp--preset--color--contrast);
}

.vm-map__svg .vm-map__sublabel {
	font-family: var(--wp--preset--font-family--body);
	font-size: 8.5px;
	fill: var(--wp--preset--color--muted);
}

.vm-map__caveat {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* -- Chips (used by the Location & Discovery section) -------------------- */

.vm-finder__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/*
 * V0.2.1: zero the paragraph wrapper's default block margin — each
 * chip is a `wp:paragraph` block (`<p><a class="vm-chip">…</a></p>`),
 * and the browser's default `<p>` margin was what made the first chip
 * sit higher than its neighbors once row-wrapping made the rows
 * uneven.
 */
.vm-finder__chips > p {
	margin: 0;
}

/*
 * V0.2.1: switched from natural flex-wrap (which put 6 chips on row 1
 * and stranded the 7th alone on row 2) to a fixed 4-column grid, so
 * chips 1-4 always sit on row one and 5-7 on row two — a deliberate
 * 4+3 cluster instead of an accidental 6+1 wrap. Columns size to their
 * own widest label (`max-content`), so unequal label lengths don't get
 * forced to a uniform width.
 */
.vm-finder__chips--compact {
	display: grid;
	grid-template-columns: repeat(4, max-content);
	gap: 0.6rem 0.75rem;
	align-items: center;
}

.vm-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 1.15rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 0.85rem;
}

.vm-chip:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.vm-chip--compact {
	padding: 0.4rem 0.85rem;
	font-size: 0.8rem;
}

.vm-finder__note {
	margin-top: 0.75rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

/* -- Offers teaser (V0.2: compact utility-strip treatment) --------------- */

/*
 * `.vm-offers__inner` also carries `.vm-container` in markup for its
 * outer horizontal padding/centering, so this rule only sets
 * `padding-block` (not the `padding` shorthand) to avoid overriding
 * `.vm-container`'s `padding-inline`.
 */
.vm-offers__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	padding-block: clamp(1.25rem, 3vw, 2rem);
}

.vm-offers__copy {
	max-width: 34rem;
}

/*
 * CTA Band "Tinted panel" style (Task 006-5): same scoped mechanism,
 * matched on `.vm-offers__inner`. "Plain" is today's actual look (a
 * bordered strip, no fill) and stays the default; "Tinted panel" layers
 * the existing Surface token as a background fill on top of it.
 */
.vm-offers__inner.is-style-tinted {
	background-color: var(--wp--preset--color--surface);
}

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

.vm-footer {
	/* TASK-011 final: the footer is the Property's GROUND. On collection
	   pages `--vm-color-dark` resolves to the collection's own dark. */
	background-color: var(--vm-color-dark);
	color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
}

.vm-footer a {
	color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
}

.vm-footer a:hover {
	/* Never the Property Mark here — on a Ground it drops to ~1.4:1. */
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.vm-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(2rem, 4vw, 3rem);
}

.vm-footer__brand {
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.vm-footer__tagline {
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent);
	max-width: 22rem;
}

.vm-footer__heading {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
	margin-bottom: 0.9rem;
}

.vm-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	font-size: 0.9rem;
}

.vm-footer__bottom {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 15%, transparent);
	padding-block: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.8rem;
	color: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
}

.vm-footer__legal {
	list-style: none;
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

/* -- Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
	.vm-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.vm-hero__text {
		padding-inline-start: var(--wp--preset--spacing--30, 1.5rem);
		padding-inline-end: var(--wp--preset--spacing--30, 1.5rem);
	}

	.vm-hero__media {
		height: auto;
		aspect-ratio: 16 / 9;
		border-radius: 2px;
	}

	.vm-map__inner {
		grid-template-columns: 1fr;
	}

	.vm-finder__chips--compact {
		grid-template-columns: repeat(2, max-content);
	}
}

@media (max-width: 781px) {
	

	

	.vm-footer__top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	

	

	.vm-footer__top {
		grid-template-columns: 1fr;
	}

	.vm-offers__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.vm-finder__chips--compact {
		grid-template-columns: repeat(1, max-content);
	}
}

/* ==========================================================================
   Villas More — Property template (Task 008B)
   --------------------------------------------------------------------------
   Styles for the reusable Property system: Hero, Quick Facts, Property
   Nav, Story, Highlights, Amenities (Feature List), Accommodation/
   Discover grids (both reuse .vm-stay-card from the "Our Stays" grid
   rather than duplicating a card system), Location, and the Final CTA.
   Built for Villa Filaus but not Filaus-specific — every rule below
   targets structural classes any Property's own Pages will share.
   ========================================================================== */

/*
 * Provisional accent override — Task 008B.
 *
 * Superseded by TASK-011: the per-Property accent is now resolved by
 * inc/property-accent.php as a `.vm-accent--*` scope on <body>, and
 * components read --vm-color-primary/-deep/-pale. Kept for history.
 * The site-wide --wp--preset--color--accent token (theme.json) was
 * terracotta by default. Villa Filaus's Property page overrides that
 * SAME token, scoped only to .vm-property-page, to the exploratory
 * sage/olive the user approved for this build (see docs/DECISIONS.md).
 * This is deliberately NOT a new custom property and NOT a global
 * theme.json change: it reuses the existing shared token, only within
 * this one Property's page, so it stays trivially swappable — remove
 * this one rule, or scope it to a specific Property (e.g. a body class
 * per post) once the real per-Property colour system is decided. Every
 * element below that already reads var(--vm-color-primary)
 * (eyebrow labels, etc.) picks this up automatically — nothing is
 * hard-coded to the hex value anywhere else.
 */
/*
 * Mockup V0.2 fidelity pass (2026-08-29): top-level sections own their
 * vertical space through their own padding, so the root block-gap
 * margin between them served no purpose — but it did leave a 24px strip
 * of page background between any two adjacent sections, which showed up
 * as a visible seam wherever two tinted bands met (Discover/FAQ) or a
 * band met the dark CTA. Specificity 0,2,0 to beat WordPress's own
 * block-gap rule, which is printed after this stylesheet.
 */
.vm-property-page > .entry-content > * {
	margin-block: 0;
}

.vm-property-page {
	/*
	 * Refinement pass (Task 008B, 2026-08-29 review): the theme's root
	 * block-gap (theme.json settings.spacing.blockGap: 1.5rem) puts a
	 * 24px margin-top on every top-level block, including this <main>.
	 * For an ordinary solid-header page that's invisible padding above
	 * content that already starts below a non-overlapping header; on a
	 * transparent-over-hero Property page it left a 24px sliver of the
	 * page's own cream background between the viewport top and where
	 * the Hero actually began — exactly where the fixed transparent
	 * header's light-coloured logo/nav text sat, with nothing dark
	 * behind it to read against. Zeroed here, scoped to Property pages
	 * only, so the Hero is flush under the header as the transparent
	 * treatment assumes.
	 */
	margin-top: 0;
}

/* -- Property Hero -------------------------------------------------------- */

/*
 * Task 008-2: the Hero is now a native core/cover. Cover supplies the
 * geometry it used to take three rules to fake — the flex box, the
 * bottom-left content position, the cropped background image and the
 * overlay — so what remains here is only what is genuinely Villas
 * More's: the placeholder wash for a Property with no photograph yet,
 * and the type treatment.
 *
 * Deliberately removed with the rewrite: `.vm-property-hero__media`
 * and its `position: absolute; inset: 0`. That construction was the
 * root cause of the Hero rendering wrongly in Gutenberg — the editor
 * forces `position: relative` on every block wrapper at 0,2,0, which
 * no theme rule can outrank, so the media returned to flow and landed
 * beside the copy. Do not reintroduce it.
 */
.vm-property-hero {
	/* Shown until a Property has a Hero image. The Cover's own image
	   layer sits above this, so a real photograph simply covers it. */
	background: var(--wp--preset--gradient--primary-wash);
	color: var(--wp--preset--color--on-primary);
}

/*
 * -- Native Cover content position, made to actually work ------------------
 *
 * UAT found Cover's Content Position moved content right but not
 * reliably to the centre. The cause was this theme's own override: the
 * inner container was forced to `width: 100%`.
 *
 * Core positions Cover content by making `.wp-block-cover` a flex
 * container and setting `justify-content` / `align-items` from the
 * chosen position, leaving the inner container `width: auto`. A flex
 * item stretched to 100% fills the row, so `justify-content` has nothing
 * to distribute and every horizontal position collapses to the same
 * result. Left only *looked* right because content starts at the left
 * edge anyway.
 *
 * The override is gone. The measure and gutter `.vm-container` used to
 * supply now come from padding on the Cover itself plus a max-width on
 * the content group — neither of which fights the flex positioning.
 */
/*
 * The gutter does two jobs at once. At normal widths it is the site's
 * ordinary edge padding; on a wide viewport it grows so the content
 * column lines up with the rest of the page's container. That means a
 * left-positioned Hero line sits exactly under the section headings
 * below it, without the inner container needing a width of its own.
 *
 * Nothing here constrains the inner container — that was the second half
 * of the centring bug. Capping it at the site's wide-size made it almost
 * as wide as the Cover, so `justify-content: center` had barely any room
 * to move it and centred content still looked left-aligned.
 */
.vm-property-hero,
.vm-property-visual-break,
.vm-image-band {
	padding-inline: max(
		var(--wp--preset--spacing--30, 1.5rem),
		calc((100% - var(--wp--style--global--wide-size, 1210px)) / 2)
	);
	box-sizing: border-box;
}

/*
 * The content group carries the readable measure. Its margins depend on
 * which of Cover's two modes is in play, and getting this wrong is what
 * made "Centre" look identical to "Left" in UAT:
 *
 *   custom position set   core gives the inner container `width: auto`,
 *                         so it shrinks to the content and core's own
 *                         `justify-content` positions it. The content
 *                         group must NOT have auto margins here, or it
 *                         re-centres itself inside that box and defeats
 *                         left and right.
 *
 *   no custom position    the editor's default "centre centre" emits no
 *                         position class at all, and core gives the
 *                         inner container `width: 100%`. Nothing can be
 *                         distributed, so the content group centres
 *                         itself instead.
 *
 * Scoping on core's own `has-custom-content-position` signal keeps both
 * modes correct without touching or disabling any native control.
 */
.vm-property-hero__content,
.vm-property-visual-break__inner,
.vm-image-band__inner {
	max-width: 46rem;
	margin-inline: 0;
}

/*
 * Whenever Cover centres horizontally — the editor's default "centre
 * centre", or any explicit `*-center` position — core leaves the inner
 * container at full width, so `justify-content` has nothing to move and
 * the content group has to centre itself. In every other position the
 * inner container shrinks to its content and core does the work, so the
 * group must keep `margin-inline: 0`.
 *
 * Listing the three centre classes explicitly (rather than guessing with
 * a substring selector) keeps this readable and exactly as narrow as the
 * behaviour it corrects.
 */
.wp-block-cover:not(.has-custom-content-position) > .wp-block-cover__inner-container > .vm-property-hero__content,
.wp-block-cover:not(.has-custom-content-position) > .wp-block-cover__inner-container > .vm-property-visual-break__inner,
.wp-block-cover:not(.has-custom-content-position) > .wp-block-cover__inner-container > .vm-image-band__inner,
.wp-block-cover.is-position-top-center > .wp-block-cover__inner-container > .vm-property-hero__content,
.wp-block-cover.is-position-top-center > .wp-block-cover__inner-container > .vm-property-visual-break__inner,
.wp-block-cover.is-position-top-center > .wp-block-cover__inner-container > .vm-image-band__inner,
.wp-block-cover.is-position-center-center > .wp-block-cover__inner-container > .vm-property-hero__content,
.wp-block-cover.is-position-center-center > .wp-block-cover__inner-container > .vm-property-visual-break__inner,
.wp-block-cover.is-position-center-center > .wp-block-cover__inner-container > .vm-image-band__inner,
.wp-block-cover.is-position-bottom-center > .wp-block-cover__inner-container > .vm-property-hero__content,
.wp-block-cover.is-position-bottom-center > .wp-block-cover__inner-container > .vm-property-visual-break__inner,
.wp-block-cover.is-position-bottom-center > .wp-block-cover__inner-container > .vm-image-band__inner {
	margin-inline: auto;
}

.vm-property-hero__content {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

/*
 * -- Content inset (Task 008-2) -------------------------------------------
 *
 * A block style variation on core/cover, so it appears natively in the
 * Styles panel as "Standard" / "Inset" — no custom block, no pixel
 * authoring. It changes only the horizontal inset; native Content
 * Position still decides left/centre/right and top/middle/bottom, which
 * is the division of labour the brief asked for. The inset interpolates
 * with the viewport, so responsive behaviour stays the theme's.
 */
.wp-block-cover.is-style-vm-inset {
	padding-inline: clamp(1.5rem, 6vw, 6rem);
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29). The Hero copy was sitting
 * mid-viewport instead of on the container's left edge as the reference
 * has it. Root cause: this group used `layout:"constrained"`, which
 * caps every child at the global content-size and centres it with
 * `margin-left/right: auto !important` — CSS here could not win that,
 * whatever the specificity. The group is a plain flow layout now (still
 * an ordinary editable stack in Gutenberg, just without the width
 * constraint), and the readable measure is applied to the lede alone,
 * where it belongs. The reset below stays as a guard in case the layout
 * type is ever changed back from the editor.
 */
.vm-property-hero .vm-property-hero__content > * {
	max-width: none;
	margin-inline: 0;
}

.vm-property-hero__eyebrow {
	color: var(--wp--preset--color--on-primary);
	opacity: 0.85;
}

.vm-property-hero__title,
.vm-property-hero__lede {
	color: var(--wp--preset--color--on-primary);
}

.vm-property-hero__title {
	line-height: 1.05;
	margin-block: 0.15rem 0;
}

/*
 * The reference sets the Hero lede as an italic serif line, one shade
 * softer than the title — it reads as the house's own voice rather than
 * as body copy, and it is what makes the top of the page feel editorial
 * instead of like a listing header.
 */
.vm-property-hero .vm-property-hero__lede {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	line-height: 1.45;
	max-width: 34rem;
	margin-top: 1rem;
	margin-inline: 0;
	opacity: 0.92;
}

/*
 * Task 008-2: the Hero's "photography placeholder" caption was removed
 * with the Cover rewrite. It announced a missing image, and the Hero
 * now carries a real one via the Property's featured image; a Property
 * without a photograph shows the placeholder wash instead, which says
 * the same thing without printing a caption over someone's photograph.
 */

/* -- Property Quick Facts (mockup V0.2: compact pill strip) --------------- */

.vm-property-facts__inner {
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.vm-property-facts__list {
	gap: 0.6rem;
	row-gap: 0.6rem;
}

.vm-property-facts__cta {
	gap: 0.6rem;
}

/*
 * The house's date bar in this row (Task 014-6) and its new place and look
 * (Task 008-11, 2026-11-15: arrangement d, card T1, the offer band) live in
 * assets/css/house-booking-row.css — enqueued only where
 * inc/house-booking-row.php draws the bar. Moved out of this shared file;
 * 014-6's "margin-top: 1.1rem" on the pills went with it (008-11 dropped it:
 * the bar is no longer beside them).
 */

/*
 * Mockup V0.2 pass: the stacked label-over-value box read as three
 * oversized content columns rather than a scannable strip. `.vm-fact`
 * is the shared component (also used, with the `--row` modifier below,
 * by Property Location) — the default look is now a small rounded pill
 * with an icon; `.vm-fact--row` (Location) instead lays label+value out
 * as a compact single line with no box, for a denser list of facts.
 */
.vm-fact {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
}

.vm-fact__icon {
	flex: 0 0 auto;
	width: 0.9rem;
	height: 0.9rem;
	color: var(--vm-color-primary);
}

.vm-fact__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.vm-fact__label {
	/* Visually hidden: the pill's icon carries the meaning; the label
	   stays in the markup as the accessible name. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.vm-fact__value {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--wp--custom--ink);
}

/* Compact non-boxed row variant (Property Location's three orientation
   facts): label becomes a visible bold inline tag again, no pill box. */
.vm-fact--row {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.35rem 0;
	border: none;
	background: none;
	border-radius: 0;
}

/*
 * Mockup V0.2 fidelity pass: some Quick Facts read better with their
 * label visible in front of the value ("Built 1931") than with the icon
 * carrying all the meaning. This modifier just un-hides the label that
 * is already in the markup — the value itself stays a bound field.
 */
.vm-fact--labelled .vm-fact__label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: nowrap;
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--wp--custom--ink);
}

.vm-fact--labelled .vm-fact__value {
	margin-left: -0.2rem;
}

.vm-fact--row .vm-fact__label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: nowrap;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	min-width: 8.5rem;
}

/*
 * Accessibility correction (2026-08-29 polish pass): the previous pass
 * mixed the muted tone toward the background here to sit "a step
 * lighter" than body text. Measured on the rendered page that resolved
 * to #8A847B — 3.46:1 against base, which fails WCAG AA for normal
 * text (4.5:1 required at this size), and it was also the reason the
 * Location facts looked washed out next to their labels. The value now
 * uses the muted token unmixed (#6B6459, 5.45:1); the contrast against
 * its own bold label is carried by weight, not by lightness.
 */
.vm-fact--row .vm-fact__value {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

/* -- Property Section Nav -------------------------------------------------- */

.vm-property-nav {
	position: sticky;
	top: var(--vm-header-height, 0px);
	z-index: 20;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/*
 * Section-nav treatment (Task 008B polish pass, 2026-08-29).
 *
 * Three treatments were rendered side by side on the live page and
 * judged rather than argued about:
 *   A  the V0.2-matched version — an uppercase "On this page" label
 *      with sentence-case links in full `contrast`, tight gap;
 *   B  the pre-mockup version — uppercase tracked links, muted, wide gap;
 *   C  sentence case, muted, wide gap, no label.
 *
 * C wins. A's near-black links carried more presence than an in-page
 * index should, and its uppercase label made the strip read as exactly
 * the "second eyebrow band" it should not be. B was elegant but its
 * uppercase tracking slowed scanning and repeated the eyebrow texture.
 * C is quiet, quick to read across, and unmistakably subordinate to the
 * global header above it (22px white serif there against 14px muted
 * sans here). The label is dropped: `<nav aria-label="Property
 * sections">` already names the region for assistive tech, so the label
 * was carrying visual weight without carrying information.
 *
 * Muted (#6B6459) on base is 5.45:1 — WCAG AA for normal text.
 */
.vm-property-nav__inner {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	gap: var(--wp--preset--spacing--40);
	padding-block: 0.8rem;
	scrollbar-width: thin;
	align-items: baseline;
}

/*
 * Qualified by the nav (0,2,0) so it beats theme.json's global link
 * colour, which WordPress prints after this stylesheet at the same
 * specificity — without this the links came out in the site's primary
 * teal, a good deal louder than an in-page index should be.
 */
.vm-property-nav .vm-property-nav__link {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 120ms ease;
}

.vm-property-nav .vm-property-nav__link:hover,
.vm-property-nav .vm-property-nav__link:focus-visible {
	color: var(--wp--preset--color--contrast);
}

.vm-property-nav__inner > * {
	flex: 0 0 auto;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29): these links were uppercase
 * and tracked out, which gave the strip the same visual weight as the
 * eyebrows that label whole sections. The reference sets them in plain
 * sentence case at body scale — quieter, and easier to read across.
 * (The earlier `.vm-property-nav__link` rule further up now carries the
 * size/colour; this one only removes the uppercase treatment and keeps
 * the no-wrap behaviour the horizontal scroll needs.)
 *
 * AMENDED 2026-09-09 (Task 023-1). The reasoning above was right for the
 * position these links were in, and that position changed. They sat in
 * their own row BELOW the header, where uppercase tracked-out capitals
 * competed with the header itself and with the section eyebrows — so
 * sentence case at body scale was the correct answer there.
 *
 * Task 023-1 moves this same strip INTO the header bar on a Property
 * page's desktop sticky state, and there the reasoning inverts: body
 * text dropped into a bar of tracked capitals reads as something that
 * does not belong to the header rather than as something subordinate to
 * it. They are now on the header's own typographic system — display
 * face, uppercase, letterspaced — but a step smaller than the collection
 * navigation and in `muted`, which is what keeps them secondary now that
 * size and colour, rather than case, are carrying that job.
 *
 * ONE TREATMENT, NOT TWO, and deliberately: an element that changes
 * character as it moves reads as two different things. The declarations
 * are in the TASK-023-1 section at the end of this file; the no-wrap and
 * the horizontal scroll below are unchanged and still needed.
 *
 * So: do not restore sentence case here on the strength of the paragraph
 * above. It describes a layout this project no longer has.
 */
.vm-property-nav__link {
	white-space: nowrap;
	text-decoration: none;
}

/* -- Property Story ("The House") — mockup V0.2 pass ------------------------ */

.vm-property-story__grid {
	/* Was `center` — with a short left column and a taller right column
	   (body copy + collage) this vertically centred the heading in a way
	   that read heavy/awkward; flex-start lets both columns start at the
	   same top edge, closer to the V0.2 editorial composition. */
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29): the quote is the house's own
 * voice sitting under the heading, in the accent tone rather than full
 * body colour — one of the small details that separates the reference's
 * editorial feel from a plain two-column text block.
 */
.vm-property-story__quote {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: var(--wp--preset--font-size--intro);
	line-height: 1.45;
	/*
	 * TASK-043 (2026-09-23), V003. Was `--vm-color-primary`. On Villa
	 * Filaus that token is #C2713C, which measures 3.42:1 on #F8F7F3 at
	 * 18.4px — under the 4.5:1 this project already applies to ordinary
	 * text (DECISIONS.md 113, WCAG 1.4.3). Villa Diamond passed by a
	 * hundredth (4.51:1), which is luck, not a margin.
	 *
	 * This is the role vocabulary at the top of this file being read
	 * correctly rather than a new colour being chosen: Primary is
	 * declared NON-TEXT ONLY — "pins, icons, rules, selected marks,
	 * borders" — and Deep is "the accent that carries text on a light
	 * ground". A quote is text, so it was asking the wrong token.
	 *
	 * Measured on #F8F7F3, all five houses and the collection:
	 *   Filaus     #9E4F30  5.42:1  (was 3.42)
	 *   Laurea     #6A1D24 10.80:1  (was 7.78)
	 *   Palmotta   #144B32  9.41:1  (was 6.45)
	 *   Diamond    #146366  6.52:1  (was 4.51)
	 *   Malo More  #0C5372  7.85:1  (was 5.55)
	 *   Collection #485527  7.52:1  (was 4.51)
	 *
	 * Size and weight are deliberately NOT changed. Passing a contrast
	 * threshold by growing the text would move the problem into
	 * typography, where Ana has open questions (Task 042, V007/V008/V031).
	 */
	color: var(--vm-color-deep);
	margin-top: 1.1rem;
	max-width: 22rem;
}

.vm-property-story__rule {
	border: none;
	border-top: 2px solid var(--vm-color-primary);
	width: 2.5rem;
	margin: 0 0 var(--wp--preset--spacing--30);
	opacity: 1;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29): the static collage rules that
 * lived here are retired — this column now holds a villas-more/carousel
 * again (see patterns/property-story.php for why). What remains is the
 * carousel's placement inside the column: it sits below the body copy
 * with the reference's spacing, and is allowed to bleed past the
 * column's right edge so the next slide peeks, exactly as V0.2 shows.
 * The negative margin is clipped by the section, not the viewport, so
 * it never introduces horizontal page scroll.
 */
.vm-property-story__body .vm-carousel {
	margin-top: var(--wp--preset--spacing--30);
	margin-right: calc(var(--wp--preset--spacing--40) * -1);
}

.vm-property-story__gallery-link {
	margin-top: 0.9rem;
}

.vm-property-story__gallery-link a {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.vm-property-story__gallery-link a:hover {
	text-decoration: underline;
}

.vm-property-story__caption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: 0.5rem;
}

@media (max-width: 781px) {
	.vm-property-story__body .vm-carousel {
		margin-right: 0;
	}
}

/* -- Property Highlights — mockup V0.2 pass --------------------------------- */

/*
 * Mockup V0.2 fidelity pass (2026-08-29): two faults were visible side
 * by side with the reference. WordPress's flex layout defaults to
 * `align-items: center`, so a highlight with a one-line note sat lower
 * than its neighbours — the row read as three items that had drifted
 * rather than a set. And `flex-basis: 14rem` with grow let each column
 * size to its own text, giving three unequal widths where the reference
 * has three equal ones. Pinned to top-aligned, equal thirds.
 */
.vm-property-highlights__row {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--20);
}


/* -- Amenities & Facilities — Feature List ---------------------------------- */

/*
 * Mockup V0.2 fidelity pass (2026-08-29): was a wrapping flex row of
 * fixed 16rem items, which pushed five V1 amenities onto two ragged
 * lines and made this section twice the height it has in the reference.
 * An auto-fitting grid keeps them on one even row at desktop and steps
 * down cleanly, so the section stays the compact strip the reference
 * shows.
 */
.vm-feature-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--wp--preset--spacing--30);
	row-gap: var(--wp--preset--spacing--30);
}

/*
 * The root block-gap adds a margin-block-start to every sibling after
 * the first inside a flow-layout group. Inside a grid or flex list that
 * margin is applied to items 2..n only, so the first item floats a full
 * gap above its own row. The gap property already owns the spacing
 * here, so the inherited margins are cleared.
 */
/*
 * Block-gap containment.
 *
 * WordPress prints its block-gap rule (0,1,0) inline in the head, after
 * this stylesheet, so a matching 0,1,0 selector here loses on source
 * order. Each selector below is qualified to reach 0,2,0 and win.
 *
 * Two levels need it, and the second was missed until the 2026-08-29
 * polish pass measured the rendered boxes:
 *
 *   1. Lists whose spacing is owned by a grid/flex `gap`, where the
 *      inherited margin left the first item sitting a full gap above
 *      its own row.
 *   2. *Inside* the small components themselves. A Quick Facts pill was
 *      rendering 56px tall instead of ~32px, and every Amenities item
 *      carried 24px of dead space between its icon and its label,
 *      because the root block-gap was being applied between a
 *      component's own parts. These components set their internal
 *      spacing with `gap` or with explicit margins on their elements;
 *      the inherited one is always wrong there.
 */
.vm-property-amenities .vm-feature-list > *,
.vm-property-highlights .vm-property-highlights__row > *,
.vm-property-facts .vm-property-facts__list > *,
.vm-property-location .vm-property-location__facts > *,
.vm-property-location .vm-fact--row > * {
	margin-block: 0;
}

/* Task 017: dead selector retained here — see the isolated section at the end of this file. */
.vm-property-page .vm-fact > *,
.vm-property-page .vm-feature > *,
.vm-property-page .vm-feature__text > *,
.vm-property-page .vm-highlight > *,
.vm-property-page .vm-stay-card__body > *,
.vm-property-page .vm-stay-card__panel > * {
	margin-block: 0;
}

.vm-feature {
	align-items: flex-start;
	/*
	 * Refinement pass: restores the small icon treatment from the
	 * approved V0.2 concept — a self-hosted inline SVG (no icon
	 * library/build step, matching this theme's existing convention),
	 * coloured via the shared accent token so it moves with any future
	 * per-Property accent decision automatically.
	 */
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
}

.vm-feature__icon {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	color: var(--vm-color-primary);
}

.vm-feature__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.vm-feature__label {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--contrast);
}

.vm-feature__note {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: 0.15rem;
}

.vm-feature--pending .vm-feature__label {
	color: var(--wp--preset--color--muted);
}

/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
/* -- Accommodation / Discover grids (reuse .vm-stay-card) ------------------- */

.vm-accommodation-grid,
.vm-discover-grid {
	/* Column count/gap come from the block's own native Grid layout
	   attributes (Task 006's Card Grid convention) — this rule only
	   carries anything genuinely specific to these two instances. */
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29). In the reference each
 * Accommodation card is one bordered container: photo flush to the card
 * edges, then a base-coloured body whose copy is separated from the
 * action row by a hairline rule. The previous build had no card
 * container, no rule, and an action row justified hard to both card
 * edges, which is what made the link and button feel "awkwardly spread"
 * rather than paired. The rule and the tighter pairing below are the
 * fix; both are ordinary CSS on the existing markup classes.
 */
.vm-accommodation-grid .vm-stay-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	overflow: hidden;
}

.vm-accommodation-grid .vm-stay-card__media {
	aspect-ratio: 4 / 3;
	border-radius: 0;
	margin-bottom: 0;
}

.vm-accommodation-grid .vm-stay-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	padding: 1.15rem 1.35rem 1.35rem;
}

.vm-accommodation-grid .vm-stay-card__name {
	margin-bottom: 0.3rem;
}

.vm-accommodation-grid .vm-stay-card__note {
	margin-bottom: 1rem;
}

.vm-accommodation-grid .vm-stay-card__actions {
	align-items: center;
	justify-content: flex-start;
	gap: 1.25rem;
	margin-top: 0;
	padding-top: 0.9rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.vm-accommodation-grid .vm-stay-card__actions .wp-block-buttons {
	margin-left: auto;
}

.vm-accommodation-grid .vm-stay-card__link {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	margin: 0;
}

.vm-stay-card__actions {
	margin-top: var(--wp--preset--spacing--20);
	gap: 0.5rem;
	flex-wrap: wrap;
}

.vm-stay-card__actions .wp-block-button__link {
	font-size: 0.8rem;
	padding: 0.55rem 1rem;
}

/* -- Property Location -------------------------------------------------- */

.vm-property-location__link a {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.vm-property-location__link a:hover {
	text-decoration: underline;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29): the reference gives Location
 * a heading one step below The House and one above the ordinary section
 * headings. WordPress's font-size preset classes are emitted with
 * `!important`, so this sits between two presets by carrying no preset
 * class in the markup at all and being sized here (the same approach
 * the Final CTA heading uses).
 */
.vm-property-location .vm-section__head h2:not(.vm-eyebrow),
.vm-property-location h2:not(.vm-eyebrow),
.vm-property-location .vm-heading-line { /* Task 010-10: the line, whichever tag it carries */
	font-size: 2rem;
	line-height: 1.15;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29): the honest caveat about the
 * schematic map — and about walking/transport distances not yet being
 * verified — sits under the fact list as running copy in the reference,
 * rather than being overlaid on the map itself. Keeping it here also
 * means the fact list never has to carry an unverified distance claim
 * just to fill a row.
 */
.vm-property-location__caveat {
	font-size: 0.8rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--20);
	max-width: 28rem;
}

/* Mockup V0.2 pass: was a flex-wrap row of boxed `.vm-fact` chips
   (same look as Quick Facts); now a vertical stack of compact
   `.vm-fact--row` lines (defined above), tighter and non-boxed. */
/*
 * Mockup V0.2 fidelity pass (2026-08-29): the rows were carrying block
 * spacing on top of their own padding, so three short facts occupied
 * roughly three times the height they do in the reference. Row padding
 * is zeroed here and the gap alone controls the rhythm.
 */
.vm-property-location__facts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--30);
	max-width: 28rem;
}

.vm-property-location__facts .vm-fact--row {
	padding: 0;
	margin: 0;
}

/*
 * Mockup V0.2 pass (EXPERIMENTAL, reversible): the honest development
 * placeholder box is replaced with a self-hosted inline SVG schematic —
 * a dotted arc, a coastline line, and two labelled points. Still
 * explicitly NOT real map data (see the pattern's own docblock and the
 * on-page "Conceptual, schematic map — not to scale" caption); does
 * NOT reuse/rescale patterns/location-discovery.php's collection-wide
 * map for the same reason as before (inventing this Property's precise
 * position on it). Swapping this container's contents for a real map
 * embed later needs no changes outside this block.
 */
/*
 * Mockup V0.2 fidelity pass (2026-08-29): `height: 100%` let this box
 * stretch to whatever the copy column happened to be, and because the
 * SVG centres itself inside its viewport the whole schematic dropped
 * below the fold in a tall column. A fixed aspect ratio keeps the
 * placeholder at the reference's proportions whatever the copy does.
 */
.vm-property-location__map {
	position: relative;
	background: var(--wp--preset--color--surface);
	border-radius: 2px;
	aspect-ratio: 7 / 5;
	overflow: hidden;
	padding: 1.5rem;
}

.vm-property-location__map-svg {
	width: 100%;
	height: 100%;
	display: block;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29): the schematic is meant to
 * read as a restrained placeholder standing in for a real map, not as
 * an illustration competing with the copy beside it. The arc and
 * coastline are dialled back accordingly.
 */
.vm-property-location__map-arc {
	color: var(--wp--preset--color--muted);
	opacity: 0.45;
}

.vm-property-location__map-coast {
	color: var(--wp--preset--color--muted);
	opacity: 0.35;
}

.vm-property-location__map-dot--property {
	fill: var(--vm-color-primary);
}

.vm-property-location__map-dot--old-town {
	fill: var(--wp--preset--color--muted);
	opacity: 0.6;
}

.vm-property-location__map-marker {
	position: absolute;
	font-size: 0.75rem;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

.vm-property-location__map-marker--property {
	top: 43%;
	left: 41%;
}

.vm-property-location__map-marker--old-town {
	top: 36%;
	left: 76%;
	color: var(--wp--preset--color--muted);
	font-size: 0.7rem;
}

.vm-property-location__map-caption {
	position: absolute;
	bottom: 1rem;
	left: 1.5rem;
	right: 1.5rem;
	font-size: 0.7rem;
	color: var(--wp--preset--color--muted);
	margin: 0;
}

@media (max-width: 600px) {
	.vm-property-location__map {
		aspect-ratio: 3 / 2;
	}
}

/* -- Property Final CTA -------------------------------------------------- */

/*
 * Mockup V0.2 fidelity pass (2026-08-29): measured against the
 * reference this band was running roughly half the height it should —
 * it is the page's closing moment and the reference gives it noticeably
 * more air above and below the copy than an ordinary section gets.
 */
.vm-property-final-cta {
	/* TASK-011 final page-ending hierarchy:
	   LIGHT/NEUTRAL final CTA  ->  PROPERTY GROUND footer.
	   The footer is the page's dark ending; this band no longer competes
	   with it. Property identity arrives through the Core button and the
	   eyebrow, not through a second dark field. */
	background: var(--wp--preset--color--surface);
	text-align: center;
	padding-block: clamp(4rem, 8vw, 7.5rem);
}

.vm-property-final-cta h2 {
	color: var(--wp--preset--color--contrast);
}

.vm-property-final-cta p {
	color: var(--wp--custom--ink);
}

.vm-property-final-cta .vm-eyebrow {
	color: var(--vm-color-deep);
}

.vm-property-final-cta__inner {
	max-width: 42rem;
	margin-inline: auto;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29). In the reference this is the
 * page's second-largest heading after the Hero — the moment the page
 * builds to — and its two buttons sit side by side on one centred row.
 * Sized here rather than via a heading preset so the Pattern's heading
 * stays an ordinary editable heading block with no size attribute to
 * maintain.
 */
.vm-property-final-cta h2 {
	font-size: clamp(1.9rem, 2.4vw + 0.9rem, 2.5rem);
	line-height: 1.1;
}

.vm-property-final-cta__inner > p:not(.vm-eyebrow) {
	font-size: var(--wp--preset--font-size--intro);
	margin-top: 0.9rem;
	max-width: 34rem;
	margin-inline: auto;
	opacity: 0.92;
}

.vm-property-final-cta .wp-block-buttons {
	justify-content: center;
	gap: 0.75rem;
	margin-top: var(--wp--preset--spacing--40);
}

.vm-property-final-cta .wp-block-button__link {
	padding: 0.85rem 1.75rem;
}

/*
 * Mockup V0.2 pass: on this dark gradient background, the site-wide
 * `--primary` (teal) button read low-contrast against the also-dark
 * green section. Scoped override for solid-white primary / light-
 * outline secondary, matching the V0.2 mockup — still only the
 * existing `base`/`contrast`/`on-primary` tokens, no hardcoded colour.
 */
.vm-property-final-cta .vm-cta--primary .wp-block-button__link {
	background-color: var(--vm-color-deep);
	color: var(--vm-color-on-accent);
}

.vm-property-final-cta .vm-cta--primary .wp-block-button__link:hover {
	background-color: color-mix(in srgb, var(--vm-color-deep) 84%, #000);
}

.vm-property-final-cta .vm-cta--secondary .wp-block-button__link {
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

.vm-property-final-cta .vm-cta--secondary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* -- Property Visual Break (mockup V0.2, EXPERIMENTAL) ---------------------- */

/*
 * Mockup V0.2 fidelity pass (2026-08-29). This band exists to give the
 * page a breath of photography between two content sections, so it is
 * deliberately under-designed: the height and the image do the work,
 * and the type is one quiet italic line plus the standard placeholder
 * caption. The previous pass set the line at --large, which turned an
 * atmospheric moment into a pull-quote feature; it is intro-sized now,
 * and drops out entirely if the line is left empty.
 */
/*
 * Task 008-2: also a native core/cover now, so it finally has image
 * capability (it had none — it was a Group with a hardcoded gradient).
 * Cover owns the height, the flex box and the overlay; this rule keeps
 * only the placeholder gradient for the state before an image is
 * chosen, so an empty band still looks deliberate.
 */
.vm-property-visual-break,
.vm-image-band {
	background: linear-gradient(160deg, var(--wp--preset--color--primary-dark) 0%, var(--vm-color-primary) 100%);
	color: var(--wp--preset--color--on-primary);
}

/* The reusable variation shares the Property band's type treatment, so
   an image band inserted on any other page looks like the same system.
   Width and margins are deliberately NOT set here — those belong to
   core's Content Position, and overriding them is what broke centre
   positioning before. */
.vm-image-band__inner {
	padding-block: var(--wp--preset--spacing--40);
}

.vm-image-band .vm-image-band__inner > *,
.vm-property-visual-break .vm-property-visual-break__inner > * {
	margin-inline: 0;
}

.vm-image-band__quote {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: var(--wp--preset--font-size--intro);
	line-height: 1.45;
	max-width: 30rem;
	color: var(--wp--preset--color--on-primary);
	margin-block: 0;
}

/*
 * Superseded by the Cover-positioning fix: this used to force the inner
 * group to full width to stop it centring itself on `.vm-container`'s
 * auto margins. Both the width and the auto margins are gone now, so
 * core's Content Position decides where this sits.
 */
.vm-property-visual-break__inner {
	padding-block: var(--wp--preset--spacing--40);
}


.vm-property-visual-break .vm-property-visual-break__quote {
	max-width: 30rem;
	margin-inline: 0;
}

.vm-property-visual-break__quote {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: var(--wp--preset--font-size--intro);
	line-height: 1.45;
	max-width: 30rem;
	color: var(--wp--preset--color--on-primary);
	margin-bottom: 0.35rem;
}

.vm-property-visual-break__quote:empty {
	display: none;
}


@media (max-width: 600px) {
	.vm-property-visual-break {
		min-height: 17rem;
	}
}

/* -- Property FAQ — mockup V0.2 pass ----------------------------------------- */

/*
 * Mockup V0.2 fidelity pass (2026-08-29): in the reference the FAQ
 * columns are inset well inside the page container rather than running
 * its full width, the rows sit on the base colour against the tinted
 * band, and the question is a regular-weight serif with a light "+".
 * Density and borders below are measured from that reference.
 */
.vm-faq .vm-section__head {
	text-align: center;
	max-width: 34rem;
	margin-inline: auto;
}

.vm-faq .vm-section__head > * {
	margin-inline: auto;
}

.vm-faq .vm-container {
	max-width: 62rem;
}

.vm-faq .vm-accordion {
	gap: 0.65rem;
}

.vm-faq .vm-accordion-item {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
}

.vm-faq .vm-accordion-item__summary {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--wp--custom--ink);
	padding: 0.95rem 1.2rem;
}

/*
 * The reference's "+" is a small, light mark that sits quietly at the
 * end of the row; at full weight and size it was reading as a control
 * competing with the question itself.
 */
.vm-faq .vm-accordion-item__icon {
	width: 0.7rem;
	height: 0.7rem;
	color: var(--wp--preset--color--muted);
	opacity: 0.7;
}

.vm-faq .vm-accordion-item__icon::before {
	height: 1px;
}

.vm-faq .vm-accordion-item__icon::after {
	width: 1px;
}

/* -- Property template responsive -------------------------------------------- */

@media (max-width: 781px) {
	.vm-property-hero {
		min-height: 65vh;
	}

	.vm-property-story__grid {
		grid-template-columns: 1fr !important;
	}

	.vm-property-story__grid .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (max-width: 600px) {
	.vm-property-hero {
		min-height: 60vh;
	}

	.vm-property-facts__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.vm-property-facts__cta {
		width: 100%;
	}

	.vm-property-facts__cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
.vm-accommodation-grid,
	.vm-discover-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   Capability blocks — Fact Row / Feature List / Card Grid  (Task 008-2)
   ==========================================================================

   These three parent blocks replaced hand-built Group compositions. The
   *item* styles (`.vm-fact`, `.vm-feature`, `.vm-stay-card`) were
   deliberately left exactly as they were, because the approved V0.2
   visual result was signed off and this pass was an authoring change,
   not a redesign. Only the containers are new — they take over the
   layout that previously lived on section-specific selectors like
   `.vm-property-facts__list` and `.vm-property-amenities
   .vm-feature-list`, so one component now carries its own layout
   wherever it is used rather than depending on which section it
   happens to sit in.
   ========================================================================== */

/* -- Fact Row --------------------------------------------------------------- */

.vm-fact-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vm-fact-row--row {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.vm-fact-row--row .vm-fact {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.35rem 0;
	border: none;
	background: none;
	border-radius: 0;
}

.vm-fact-row--row .vm-fact__label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: nowrap;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	min-width: 8.5rem;
}

/*
 * Accessibility, and a correction carried forward: an earlier pass set
 * this value with a `color-mix()` against the base, which resolved to
 * #8A847B — 3.46:1, below AA. It is the unmixed muted token (5.45:1).
 */
.vm-fact-row--row .vm-fact__value {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.vm-fact-row--cols-2,
.vm-fact-row--cols-3 {
	display: grid;
	gap: 0.5rem;
}

.vm-fact-row--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm-fact-row--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Block-gap containment — see the long note earlier in this file. The
   component owns its internal spacing through `gap`; the root block-gap
   margin is always wrong inside it. Qualified to 0,2,0 so it beats the
   block-gap rule WordPress prints after this stylesheet. */
.vm-fact-row .vm-fact,
.vm-fact-row .vm-fact > * {
	margin-block: 0;
}

/* -- Feature List ----------------------------------------------------------- */

.vm-feature-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--wp--preset--spacing--30);
}

.vm-feature-list--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm-feature-list--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vm-feature-list--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/*
 * Task 008-3: the explicit column counts needed responsive behaviour of
 * their own. `.vm-feature-list`'s default track (`auto-fit` +
 * `minmax(12rem, 1fr)`) collapses by itself, but choosing "3 columns"
 * in the block pinned three tracks at every width — so the Highlights
 * row on every Property page, Villa Filaus included, was still three
 * columns at 98px each on a 390px phone. The component now carries its
 * own breakpoints, at the same 781px/600px tokens the rest of the theme
 * uses, so the choice means "three columns where three columns fit".
 */
@media (max-width: 781px) {
	.vm-feature-list--cols-3,
	.vm-feature-list--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.vm-feature-list--cols-2,
	.vm-feature-list--cols-3,
	.vm-feature-list--cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.vm-feature-list--compact {
	gap: var(--wp--preset--spacing--20);
}

/*
 * "Icon above" is the Highlights treatment: the same Feature item with
 * the icon stacked over the title and a slightly larger glyph. This is
 * the whole difference between what used to be two separate section
 * implementations (TASK-008B.md §25.2).
 */
.vm-feature-list--icon-above .vm-feature {
	flex-direction: column;
	gap: 0.4rem;
}

.vm-feature-list--icon-above .vm-feature__icon {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0;
}

.vm-feature-list--icon-above .vm-feature__label {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.3;
}

.vm-feature-list--icon-above .vm-feature__note {
	max-width: 22rem;
}

.vm-feature-list--divided .vm-feature {
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--border);
}

.vm-feature__text {
	display: flex;
	flex-direction: column;
}

.vm-feature__label,
.vm-feature__note {
	display: block;
}

.vm-feature-list .vm-feature,
.vm-feature-list .vm-feature > *,
.vm-feature-list .vm-feature__text > * {
	margin-block: 0;
}

/* -- Card Grid -------------------------------------------------------------- */

.vm-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.vm-card-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm-card-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vm-card-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Same correction as the Feature List above, for the same reason: an
   explicit column count is a choice about layout at full width, not an
   instruction to keep four cards side by side on a phone. Instances
   that already carry their own collapse (`.vm-accommodation-grid`,
   `.vm-discover-grid`) are unaffected — those rules are more specific
   and still win. */
@media (max-width: 781px) {
	.vm-card-grid--cols-3,
	.vm-card-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.vm-card-grid--cols-2,
	.vm-card-grid--cols-3,
	.vm-card-grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.vm-card-grid .vm-stay-card,
.vm-card-grid .vm-stay-card > *,
.vm-card-grid .vm-stay-card__body > * {
	margin-block: 0;
}

/* A real photograph fills the media area; the tinted placeholder panel
   stays the fallback while no Villas More photography exists. */
.vm-stay-card__media--has-image {
	background: none;
}

.vm-stay-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm-stay-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.vm-stay-card__eyebrow,
.vm-stay-card__link {
	display: block;
}

/* A link whose destination does not exist yet is plain text, not a
   dead `href="#"` — so an unfinished page reads as unfinished. */
.vm-stay-card__link--pending {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	cursor: default;
}

/* -- Bordered / panel card treatments --------------------------------------- */

.vm-card-grid--bordered .vm-stay-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.vm-card-grid--bordered .vm-stay-card__body {
	padding: var(--wp--preset--spacing--30);
	flex: 1 1 auto;
}

.vm-card-grid--panel .vm-stay-card__body {
	background: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--30);
}

/* -- Footer refinements (Task 008-2) ---------------------------------------- */

/*
 * The Explore and Legal columns are native Navigation blocks now, not
 * hand-written lists. These rules make a Navigation block inherit the
 * footer's existing list treatment so the change was semantic, not
 * visual.
 */
.vm-footer .vm-footer__list.wp-block-navigation {
	gap: 0.4rem;
	align-items: flex-start;
}

.vm-footer .vm-footer__legal.wp-block-navigation {
	gap: 1rem;
	align-items: center;
}

.vm-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: inherit;
	text-decoration: none;
}

.vm-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}

/* The copyright line is two paragraphs — a computed year plus editable
   brand copy — so they need to read as one sentence. */
.vm-footer__copyright {
	gap: 0.35rem;
	align-items: baseline;
}

.vm-footer__copyright > * {
	margin-block: 0;
}

/* ------------------------------------------------------------------
   FIND YOUR STAY (Task 009-1)
   ------------------------------------------------------------------
   Section chrome only. The map itself is `villas-more/map` and carries
   its own stylesheet, loaded only on pages that use the block — see
   blocks/map/style.css. Nothing about the map's own appearance is set
   here, so a page without the block loads none of it.
   ------------------------------------------------------------------ */

/*
 * Alignment only. `.vm-section__head` already mirrors `.vm-container`'s
 * max-width and padding so its left edge lines up with the map beneath
 * it — capping its width here instead would hand it back to
 * WordPress's constrained-layout auto-centring and float the heading
 * into the middle of the page. Learned the hard way; see the note on
 * `.vm-section__head` above.
 */
.vm-find-your-stay .vm-section__head {
	margin-bottom: clamp( 1.75rem, 3vw, 2.5rem );
}

/* ----------------------------------------------------------------- *
 * THE INTRODUCTION BAND (Task 009-1, composition variant A)
 *
 * The section used to read as separately positioned pieces: an intro at
 * the upper left, open space above the map, controls below, and a map
 * offset to the right — the parts were fine and the arrangement was
 * Tetris. The fix is one shared vertical axis. The introduction becomes
 * a true full-width band whose two columns are the SAME columns as the
 * interactive row beneath it: eyebrow and heading over the discovery
 * column, lede over the map column, and a single hairline across the
 * full width closing the band. Story above the line, interaction below
 * it, and every left edge in the section on one of two verticals.
 *
 * The band's grid must match `blocks/map/style.css` — template and
 * column gap both. They are two grids and they have to agree; if one
 * changes the other changes with it, and the comment there says so too.
 *
 * WHY 1180 px HERE AND 1132 px THERE. They are the same moment. The
 * head's padding box is `min(section width, wide-size)` and its content
 * box — which is what has to line up — is 48 px narrower, exactly the
 * block's width. So a section at 1180 px is a block at 1132 px, which is
 * the width where the trait cluster stops breaking to four rows. The
 * container is declared on the section rather than the head because an
 * element cannot query itself.
 * ----------------------------------------------------------------- */
.vm-find-your-stay {
	container-type: inline-size;

	/*
	 * The same rule colour the map block uses, declared here because the
	 * introduction band sits outside the block and cannot inherit it.
	 * Both resolve to the same neutral grey; see the note in
	 * `blocks/map/style.css` for why it is mixed from ink rather than
	 * from the limestone `border` preset.
	 */
	--vm-rule: color-mix( in srgb, var( --wp--preset--color--contrast ) 22%, transparent );
}

@container ( min-width: 1180px ) {

	.vm-find-your-stay .vm-section__head {
		display: grid;
		grid-template-columns: minmax( 0, 0.538fr ) minmax( 0, 1fr );
		column-gap: 3rem;
		row-gap: 0.5rem;
		align-items: end;
		position: relative;
		margin-bottom: 0;
		padding-bottom: clamp( 1.6rem, 2.4vw, 2.2rem );
	}

	/*
	 * The hairline is drawn by a pseudo-element inset by the head's own
	 * padding, not as a border on the head. A border follows the padding
	 * box, which is 24 px wider on each side than the content columns,
	 * and a rule that overshoots the map it is meant to align with is
	 * worse than no rule at all — it announces the wrong width for the
	 * whole section.
	 */
	.vm-find-your-stay .vm-section__head::after {
		content: '';
		position: absolute;
		inset-inline: var( --wp--preset--spacing--30, 1.5rem );
		bottom: 0;
		border-top: 1px solid var( --vm-rule );
	}

	/*
	 * The head's own stacking rules are flow rules — a sibling margin
	 * and a couple of measure caps. Inside the grid they would add
	 * space between rows that `row-gap` is already responsible for, and
	 * cap the heading well short of its column.
	 */
	.vm-find-your-stay .vm-section__head > * {
		margin: 0;
		max-width: none;
	}

	.vm-find-your-stay .vm-section__head > .vm-eyebrow {
		grid-column: 1;
		grid-row: 1;
	}

	.vm-find-your-stay .vm-section__head > h2:not(.vm-eyebrow),
	.vm-find-your-stay .vm-section__head > .vm-heading-line { /* Task 010-10 */
		grid-column: 1;
		grid-row: 2;
	}

	/*
	 * The lede starts on the map's left edge and keeps a reading
	 * measure. Filling the column would be 90 characters a line, which
	 * is not a better composition, only a fuller one — the alignment is
	 * what does the work here, not the width.
	 */
	.vm-find-your-stay .vm-find-your-stay__lede {
		grid-column: 2;
		grid-row: 2;
		max-width: 34rem;
	}

	.vm-find-your-stay .vm-container {
		margin-top: clamp( 1.6rem, 2.4vw, 2.2rem );
	}
}

.vm-find-your-stay__lede {
	margin: 0.85rem 0 0;
	font-size: var( --wp--preset--font-size--intro );
	line-height: 1.55;
	color: var( --wp--preset--color--muted );
}

@media ( max-width: 781px ) {
	.vm-find-your-stay .vm-section__head {
		margin-bottom: 1.75rem;
	}
}


/* ==========================================================================
   TASK-012 — Collection homepage polish
   --------------------------------------------------------------------------
   A presentation-only pass over the homepage: no new design system, no new
   tokens, no new colour decisions. Everything below consumes the TASK-011
   semantic accent tokens and the theme.json neutrals.

   Three things this pass is actually for:

   1. The five Properties were rendering as a 3 + 2 remainder row of five
      identical olive rectangles — the collection page said nothing about
      five different houses. They now sit in a deliberate 2 + 3 editorial
      composition, and each card carries its own Property scope class, so
      its placeholder media, its rule and its link resolve to that
      Property's own Mark/Deep. The colour IDENTIFIES; it does not fill.
      Placeholder media is a TINTED NEUTRAL FIELD (Mark mixed far down
      into Surface/Stone), never a saturated colour block — five saturated
      panels would be exactly the "competing colour blocks" this section
      must not become, and would also read as a design choice rather than
      as photography that has not arrived yet.

   2. Offers and Experiences did not exist as real sections. They do now,
      and they are deliberately given DIFFERENT card languages so the page
      does not read as three of the same grid: Offers is bordered white
      cards on Surface; Experiences is borderless, image-led cards on Base
      with one lead card at a portrait ratio.

   3. Band rhythm. The page ran Base / Base / Base / Surface / Base /
      Surface, so the top third had no articulation at all. The composed
      order now alternates deliberately and closes into the footer through
      a dark band that shares the footer's own ground.

   Nothing here is scoped to a Property by name. See the accent block at
   the top of this file.
   ========================================================================== */


/* -- Hero polish ---------------------------------------------------------- */

/*
 * The hero was rendering ~404px tall at 1440 — short enough that the first
 * screen read as a page header rather than as the opening of a collection.
 * The minimum is raised rather than a fixed height set, so the text column
 * still drives the composition on narrow/zoomed viewports.
 */
/*
 * 42/58 put the h1 on four lines at 1440 (the text column's own left inset
 * eats 139px of it at the wide size), which read as a stacked column rather
 * than a headline. 46/54 lands it on three without shrinking the type.
 */
/*
 * SCOPED TO DESKTOP ON PURPOSE. These two declarations override values that
 * the `max-width: 900px` block above already sets (`grid-template-columns:
 * 1fr` and `min-height: 0`), and this TASK-012 block sits LATER in the file
 * — unscoped, they won this cascade at every width and the hero's media
 * column kept its 54% share on a 375px viewport, blowing the page 1327px
 * wide. Caught in the mobile pass; do not unwrap this media query.
 */
@media ( min-width: 901px ) {
	.vm-hero__inner {
		min-height: clamp( 20rem, 33vw, 30rem );
		grid-template-columns: minmax( 0, 46% ) minmax( 0, 54% );
	}
}

.vm-hero__text {
	max-width: 36rem;
}

/*
 * The `hero` preset tops out at 4rem, which inside the hero's own column
 * (46% of the viewport, less the 139px content inset at the wide size)
 * broke the h1 onto four short lines — a stacked column rather than a
 * headline. A hierarchy adjustment scoped to the hero; the `hero` preset
 * itself is untouched and still applies wherever else it is used.
 */
.vm-hero__title {
	font-size: clamp( 2.4rem, 2.6vw + 1rem, 3.4rem );
}

/*
 * The media placeholder used `primary-wash` — the collection olive — which
 * put a large olive field on the first screen and made olive read as the
 * site's ground rather than as an accent (TASK-011: olive is an ACCENT).
 * A warm neutral duotone reads as "photograph not yet placed" instead of
 * as a brand panel, and leaves the first screen neutral as intended.
 * Warm because the ink token itself is warm (#34312E), so this stays in
 * the same family as the rest of the page.
 */
.vm-hero__media {
	background: linear-gradient(
		155deg,
		color-mix( in srgb, var( --wp--custom--ink ) 94%, #FFFFFF ) 0%,
		color-mix( in srgb, var( --wp--custom--ink ) 74%, #FFFFFF ) 52%,
		color-mix( in srgb, var( --wp--custom--ink ) 52%, #FFFFFF ) 100%
	);
}

/*
 * Stacked, the hero's text row and media row met with zero space between
 * them — the secondary button's bottom edge sat exactly on the media's top
 * edge. Measured in the mobile pass.
 */
@media ( max-width: 900px ) {
	.vm-hero__inner {
		gap: clamp( 1.5rem, 5vw, 2.25rem );
	}
}

/*
 * CTA hierarchy: the two hero actions were the same visual weight, so the
 * primary action had to compete with the secondary one. The secondary keeps
 * its outline (it is still a button, not a text link) but drops to the
 * border token, which is where the eye stops reading it as equal.
 */
.vm-hero__actions .vm-cta--secondary .wp-block-button__link {
	border-color: var( --wp--preset--color--border );
	color: var( --wp--preset--color--muted );
}

.vm-hero__actions .vm-cta--secondary .wp-block-button__link:hover,
.vm-hero__actions .vm-cta--secondary .wp-block-button__link:focus-visible {
	border-color: var( --wp--preset--color--contrast );
	background-color: var( --wp--preset--color--contrast );
	color: var( --wp--preset--color--base );
}


/* -- Collection story (the opening editorial section) --------------------- */

/*
 * Was a single narrow column of running text directly under the hero, which
 * gave the page two stacked left-aligned text blocks and no articulation.
 * A two-column editorial split (statement left, body right) gives it a shape
 * of its own without any new copy, and the hairline gives the section a top
 * edge so hero and story stop bleeding into each other.
 */
.vm-story__inner {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr );
	gap: clamp( 1.75rem, 4vw, 4rem );
	align-items: start;
	padding-top: clamp( 1.75rem, 3vw, 2.75rem );
	border-top: 1px solid var( --wp--preset--color--border );
}

.vm-story__lead > * {
	max-width: 22rem;
}

.vm-story__body > * {
	max-width: 34rem;
	color: var( --wp--preset--color--muted );
}

.vm-story__body > * + * {
	margin-top: 1rem;
}

@media ( max-width: 781px ) {
	.vm-story__inner {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}


/* -- The Collection: five Properties (replaces the 3 + 2 grid) ------------ */

/*
 * A 6-column bed carrying a 2 + 3 composition: two lead cards at half width
 * with a wider media ratio, then three at a third width. Deliberately NOT a
 * five-across rail — at the 1210px wide size five cards land at ~226px each,
 * which is too narrow to carry a photograph, a name and a location without
 * looking like a thumbnail strip.
 *
 * Degradation is explicit rather than accidental: a sixth card added in the
 * editor takes a third-width slot on a new row (2 + 3 + 1) rather than
 * breaking the composition. This is a five-Property collection today; when
 * a real Property entity drives this section the composition can be revisited.
 */
.vm-collection-grid {
	display: grid;
	grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	gap: clamp( 1.6rem, 2.6vw, 2.4rem ) clamp( 0.9rem, 1.4vw, 1.4rem );
}

.vm-collection-grid > .vm-stay-card {
	grid-column: span 2;
}

.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) {
	grid-column: span 3;
}

.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__media {
	aspect-ratio: 16 / 10;
}

.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__media {
	aspect-ratio: 4 / 3;
}

/*
 * The placeholder media. Each card sits in its own `.vm-accent--*` scope
 * (set in the pattern), so `--vm-color-*` here resolves to that Property's
 * palette with no Property named anywhere in this file.
 *
 * The Mark is mixed FAR down into the neutrals — this is a tinted stone
 * field, not a colour panel. Five of these side by side stay quiet enough
 * to read as one collection while still being visibly five different
 * houses, which is exactly what "identify, do not dominate" has to mean
 * when the photography has not arrived.
 */
.vm-collection-grid .vm-stay-card__media {
	border-radius: 2px;
	margin-bottom: 0.95rem;
	padding: 1rem;
	display: flex;
	align-items: flex-end;
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		155deg,
		color-mix( in srgb, var( --vm-color-deep ) 30%, var( --wp--preset--color--surface ) ) 0%,
		color-mix( in srgb, var( --vm-color-primary ) 18%, var( --wp--preset--color--stone ) ) 58%,
		color-mix( in srgb, var( --vm-color-primary ) 7%, var( --wp--preset--color--white ) ) 100%
	);
}

/*
 * The identification mark itself: a short rule in the Property's Mark
 * colour. Non-text, which is the only thing Mark is allowed to be
 * (TASK-011) — Villa Filaus's Mark is 3.67:1 and could not carry a label.
 */
.vm-collection-grid .vm-stay-card__media::before {
	content: "";
	position: absolute;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	inline-size: 2rem;
	block-size: 2px;
	background-color: var( --vm-color-primary );
}

/* The media is light now, so the placeholder note has to be ink, not base. */
.vm-collection-grid .vm-stay-card__media-label {
	color: color-mix( in srgb, var( --wp--custom--ink ) 58%, transparent );
}

.vm-collection-grid .vm-stay-card__eyebrow {
	color: var( --vm-color-deep );
}

.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__name {
	font-size: 1.4rem;
}

.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__name {
	font-size: 1.15rem;
}

.vm-collection-grid .vm-stay-card__note {
	margin-bottom: 0.75rem;
}

.vm-collection-grid .vm-stay-card__link {
	margin-bottom: 0;
	padding-top: 0.85rem;
	border-top: 1px solid var( --wp--preset--color--border );
}

.vm-collection-grid .vm-stay-card__link a {
	color: var( --vm-color-deep );
	text-decoration: none;
}

.vm-collection-grid .vm-stay-card__link a:hover,
.vm-collection-grid .vm-stay-card__link a:focus-visible {
	text-decoration: underline;
}

/* The section's own closing action, under the composition. */
.vm-collection-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp( 1.75rem, 3vw, 2.5rem );
	padding-top: 1.25rem;
	border-top: 1px solid var( --wp--preset--color--border );
}

.vm-collection-foot p {
	margin: 0;
	color: var( --wp--preset--color--muted );
	font-size: 0.9rem;
	max-width: 34rem;
}

/*
 * Two columns rather than four at tablet: the odd fifth card takes the full
 * row instead of leaving a half-empty slot, and gets a wider ratio so it
 * reads as a deliberate closing card rather than a stretched one.
 */
@media ( max-width: 900px ) {
	.vm-collection-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.vm-collection-grid > .vm-stay-card,
	.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) {
		grid-column: span 1;
	}

	.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__media,
	.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__media {
		aspect-ratio: 4 / 3;
	}

	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child {
		grid-column: span 2;
	}

	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child .vm-stay-card__media {
		aspect-ratio: 21 / 9;
	}

	.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__name {
		font-size: 1.2rem;
	}
}

@media ( max-width: 600px ) {
	.vm-collection-grid {
		grid-template-columns: 1fr;
	}

	.vm-collection-grid > .vm-stay-card,
	.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ),
	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child {
		grid-column: span 1;
	}

	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child .vm-stay-card__media {
		aspect-ratio: 4 / 3;
	}

	.vm-collection-foot {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* Shared closing row for Offers and Experiences: note left, action right. */
.vm-section-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp( 1.5rem, 2.6vw, 2.25rem );
}

.vm-section-foot p {
	margin: 0;
	max-width: 34rem;
	font-size: 0.85rem;
	color: var( --wp--preset--color--muted );
}


@media ( max-width: 900px ) {
	

	

	

	
}

@media ( max-width: 600px ) {
	/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
.vm-offers-grid,
	.vm-experiences-grid {
		grid-template-columns: 1fr;
	}

	

	

	.vm-section-foot {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* -- Dubrovnik Guide, compact band ---------------------------------------- */

/*
 * The Guide kept its homepage place and its `#guide` anchor (the primary
 * navigation links to it), but it is no longer a second three-card photo
 * grid: with a real Experiences section directly above it, two adjacent
 * card grids of destination content read as the same section twice.
 *
 * It is now a slim rule-separated index — the shape a list of articles
 * actually wants — which also gives the page a quieter beat before the
 * closing band.
 */
.vm-guide--compact .vm-guide__inner {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1.2fr );
	gap: clamp( 1.5rem, 4vw, 3.5rem );
	align-items: start;
}

.vm-guide--compact .vm-guide__lead > * {
	max-width: 24rem;
}

.vm-guide--compact .vm-guide__lead p:not( .vm-eyebrow ):not( .vm-heading-line ) {
	color: var( --wp--preset--color--muted );
	font-size: 0.9rem;
	margin-top: 0.75rem;
}

.vm-guide__index {
	display: grid;
}

.vm-guide__index .vm-guide__entry {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0.9rem 0;
	border-top: 1px solid var( --wp--preset--color--border );
	font-size: 0.95rem;
}

.vm-guide__index .vm-guide__entry:last-child {
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.vm-guide__index .vm-guide__entry a {
	color: var( --wp--preset--color--contrast );
	text-decoration: none;
}

.vm-guide__index .vm-guide__entry a:hover,
.vm-guide__index .vm-guide__entry a:focus-visible {
	text-decoration: underline;
}

.vm-guide__index .vm-guide__entry em {
	font-style: normal;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --wp--preset--color--muted );
}

@media ( max-width: 781px ) {
	.vm-guide--compact .vm-guide__inner {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}


/* -- Final collection band ------------------------------------------------ */

/*
 * SUPERSEDED IN PART, 16.11.2026: the band is no longer dark. Its colours,
 * spacing and button are overridden by the last section of this file,
 * "TASK-012-1" (Ana: the dark band clashed with the dark footer). The
 * `__inner` rules below match nothing since then. Change the band THERE.
 */

/*
 * The page had no close: the last content section sat straight on top of the
 * footer. This band takes the footer's own ground (`--vm-color-dark`, which
 * on a collection page is the collection dark and on a Property page would
 * be that Property's Ground) so the page reads as darkening into its footer
 * rather than as two competing dark blocks. The hairline is what keeps the
 * seam legible.
 *
 * On this ground the Mark is unusable (~1.4:1 for several Properties), so
 * every element here is neutral — white, or base at a measured mix. This is
 * the same rule the footer already follows.
 */
.vm-collection-cta {
	background-color: var( --vm-color-dark );
	padding-block: clamp( 3rem, 6vw, 4.75rem );
	border-bottom: 1px solid color-mix( in srgb, var( --wp--preset--color--base ) 14%, transparent );
}

.vm-collection-cta__inner {
	display: grid;
	grid-template-columns: minmax( 0, 1.15fr ) minmax( 0, 1fr );
	gap: clamp( 1.5rem, 4vw, 3.5rem );
	align-items: end;
}

.vm-collection-cta .vm-eyebrow {
	color: color-mix( in srgb, var( --wp--preset--color--base ) 60%, transparent );
}

.vm-collection-cta .wp-block-heading {
	color: var( --wp--preset--color--white );
	max-width: 20rem;
}

.vm-collection-cta p:not( .vm-eyebrow ) {
	color: color-mix( in srgb, var( --wp--preset--color--base ) 76%, transparent );
	max-width: 32rem;
}

.vm-collection-cta .wp-block-buttons {
	margin-top: 1.5rem;
	gap: 0.85rem;
}

.vm-collection-cta .vm-cta--primary .wp-block-button__link {
	background-color: var( --wp--preset--color--white );
	color: var( --vm-color-dark );
}

.vm-collection-cta .vm-cta--primary .wp-block-button__link:hover,
.vm-collection-cta .vm-cta--primary .wp-block-button__link:focus-visible {
	background-color: color-mix( in srgb, var( --wp--preset--color--white ) 88%, var( --wp--custom--ink ) );
}

.vm-collection-cta .vm-cta--secondary .wp-block-button__link {
	background-color: transparent;
	color: var( --wp--preset--color--white );
	border-color: color-mix( in srgb, var( --wp--preset--color--base ) 45%, transparent );
}

.vm-collection-cta .vm-cta--secondary .wp-block-button__link:hover,
.vm-collection-cta .vm-cta--secondary .wp-block-button__link:focus-visible {
	background-color: var( --wp--preset--color--white );
	color: var( --vm-color-dark );
	border-color: var( --wp--preset--color--white );
}

@media ( max-width: 781px ) {
	.vm-collection-cta__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		align-items: start;
	}

	.vm-collection-cta .wp-block-heading {
		max-width: none;
	}
}


/* -- Tap targets (TASK-012 mobile pass) ----------------------------------- */

/*
 * Card links were 0.82rem text with no vertical padding of their own — a
 * ~19px tap target on a phone. The hairline rows above already give them
 * top padding; this adds the matching bottom so the whole row is the target
 * rather than the glyphs.
 */
@media ( max-width: 781px ) {
	/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
.vm-collection-grid .vm-stay-card__link,
	.vm-offer-card__link {
		padding-bottom: 0.35rem;
	}

	/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
.vm-collection-grid .vm-stay-card__link a,
	.vm-offer-card__link a,
	.vm-guide__index .vm-guide__entry a {
		display: inline-block;
		padding-block: 0.35rem;
	}
}


/* ==========================================================================
   TASK-012 CORRECTIVE PASS — Hero, Header, Property ending
   --------------------------------------------------------------------------
   A targeted visual correction after Ana's review of the TASK-012 checkpoint
   (f93c922). Offers and Experiences are kept as built. Nothing here reopens
   the TASK-011 colour system: every accent below resolves through the
   existing semantic tokens, so no Property is named in this file.

   ONE new colour value is introduced, and only one — `--vm-header-surface`.
   It is declared and justified in the Header section below.
   ========================================================================== */


/* -- Hero, corrected ------------------------------------------------------ */

/*
 * THE PROBLEM: header + hero were consuming the whole first screen, so the
 * page read as a full-screen landing splash with nothing below it to pull
 * the eye down. The headline carried too much of the composition and the
 * photograph too little.
 *
 * THE RULE: the hero is sized against the VIEWPORT rather than against the
 * type, so the next section is always already peeking in:
 *
 *     min-height: clamp( 17rem, calc( 66vh - header ), 32rem )
 *
 * The middle term is what does the work — it subtracts the header's own
 * height AND the admin bar, so the section below is already visible by a
 * measured amount rather than by a hoped-for percentage. Tuned against the
 * live page at 1280x720, 1440x800 and 1440x900 until the next section
 * cleared 120px at every one of them; 72vh was the first attempt and left
 * 1280x720 at 101px. The floor keeps the hero from collapsing on a short window; the
 * 44rem ceiling deliberately lets a tall desktop show MORE of the next
 * section rather than growing the hero to match the screen — a restrained
 * max-height, not a full-screen composition. Both bounds are deliberate: a
 * bare `vh` value would have been correct on exactly one screen. The
 * ceiling only engages above roughly a 1250px-tall window, so it never
 * touches a laptop; it exists so a 1440-tall desktop does not get a hero
 * that has quietly become a splash again.
 *
 * MORE IMAGE, LESS TEXT MASS: the split moves from 46/54 to 40/60, and the
 * type scale below comes down with it, so the photograph carries the
 * emotional weight and the headline states rather than shouts.
 *
 * Scoped to desktop for the same cascade reason as the block above — see
 * that comment; do not unwrap this media query either.
 */
/*
 * A PRE-EXISTING BUG, found while measuring this correction and fixed here.
 *
 * `.vm-hero__text` combined a PERCENTAGE grid column with a viewport-derived
 * left inset (`max(1.5rem, (100vw - wide-size)/2 + 1.5rem)`, so the copy
 * lines up with the page container) and a fixed `max-width`. Those three
 * cannot coexist: past the wide size the inset grows with the viewport while
 * the max-width does not, so the inset eats the column from the inside.
 * Measured at 1920 the headline had **93px** of usable width and wrapped
 * into six one-word lines, which is what was actually forcing the hero to
 * 907px there. It predates TASK-012 (the old 42% / 34rem pair had the same
 * failure at 125px) and was invisible at 1440, which is where the hero had
 * always been reviewed.
 *
 * The column is now composed rather than guessed:
 *
 *     text column = page inset + a fixed 24rem measure + right gutter
 *     image column = everything else
 *
 * so the copy measure is CONSTANT at every width, the inset still aligns
 * with the page container, and every pixel the viewport gains goes to the
 * photograph. Image share lands at 61% / 58% / 56% at 1440 / 1920 / 2560 —
 * always the larger half, never edge to edge, and no longer viewport-fragile.
 *
 * Desktop-scoped for the cascade reason documented above; do not unwrap it.
 */
@media ( min-width: 901px ) {
	.vm-hero__inner {
		--vm-hero-inset: max( 1.5rem, calc( ( 100vw - var( --wp--style--global--wide-size, 1210px ) ) / 2 + 1.5rem ) );
		--vm-hero-measure: 22rem;

		min-height: clamp( 15rem, calc( 68vh - var( --vm-header-height ) - var( --vm-admin-bar, 0px ) ), 40rem );
		grid-template-columns:
			minmax( 0, calc( var( --vm-hero-inset ) + var( --vm-hero-measure ) + clamp( 1.5rem, 4vw, 2.5rem ) ) )
			minmax( 0, 1fr );
	}

	/* The measure is set by the column now, so a second cap would only
	   re-create the bug above at a different width. */
	.vm-hero__text {
		max-width: none;
	}
}

/*
 * THE ADMIN BAR IS PART OF THE FOLD, AND `vh` DOES NOT KNOW THAT.
 *
 * WordPress pushes the whole document down by 32px for a logged-in user
 * (`html { margin-top: 32px !important }`) but `100vh` still measures the
 * full window. So every viewport-relative height on this page was 32px
 * optimistic for exactly the person reviewing it — which is a large part of
 * why the hero "still filled the screen" on Ana's laptop while the numbers
 * said otherwise. Subtracting it keeps the intended fold identical for the
 * editor and for a public visitor, who simply gets the 32px back.
 *
 * 46px below 783px is WordPress's own mobile admin-bar height; the hero is
 * single-column there and the token is harmless either way.
 */
body.admin-bar {
	--vm-admin-bar: 32px;
}

@media screen and ( max-width: 782px ) {
	body.admin-bar {
		--vm-admin-bar: 46px;
	}
}

/*
 * The hero's own padding was part of the height problem. Trimmed at both
 * ends: less air above lets the photograph start high enough to read as
 * part of the header composition rather than as a card floating below it.
 */
.vm-hero {
	padding-block: clamp( 1rem, 1.8vw, 1.6rem ) clamp( 1.25rem, 2.2vw, 2rem );
}

/*
 * Display size. The previous corrective (3.4rem) was still a billboard in a
 * 40% column. This is editorial hospitality scale: the headline is the
 * statement on the page, not the loudest object on the screen. Line-height
 * tightens with it, because a display serif at this size does not need 1.15.
 */
/*
 * Measured live: this rule was being beaten by `has-hero-font-size`, which
 * WordPress emits with `!important`, so the headline rendered at the
 * preset's 64px ceiling — five lines — while the stylesheet said 37px. The
 * heading no longer requests that preset (see patterns/hero-home.php), so
 * this is the size that applies. ~32px at 1440, landing the headline on
 * three lines inside the 22rem measure: editorial, not billboard.
 */
.vm-hero__title {
	font-size: clamp( 1.65rem, 0.9vw + 1.2rem, 2.15rem );
	line-height: 1.14;
	letter-spacing: -0.005em;
	margin-bottom: 0.75rem;
}

/*
 * Belt and braces for content that still carries the preset class — an old
 * revision restored, or an editor picking "Hero" in the size control. The
 * theme's hero composition owns this size; `!important` is required only
 * because the thing being overridden is itself `!important`.
 */
.vm-hero .vm-hero__title.has-hero-font-size {
	font-size: clamp( 1.65rem, 0.9vw + 1.2rem, 2.15rem ) !important;
}

.vm-hero .vm-eyebrow {
	margin-bottom: 0.7rem;
}

/*
 * The lede was at the `intro` preset (1.15rem), which alongside a reduced
 * headline made the two compete. Dropped to body size on a shorter measure,
 * so the block reads eyebrow → statement → supporting line, in that order.
 */
.vm-hero__lede {
	font-size: 1rem;
	line-height: 1.55;
	max-width: 30rem;
	margin-bottom: 1.4rem;
}

.vm-hero__actions {
	gap: 0.75rem;
}

/*
 * Mobile keeps a plain cap. Scoped, because unscoped it sits LATER in the
 * file than the composed desktop column above at equal specificity and
 * quietly won it back — the same cascade trap as the two blocks above, and
 * it did exactly that on the first measurement pass.
 */
@media ( max-width: 900px ) {
	.vm-hero__text {
		max-width: 32rem;
	}
}


/* -- Header, corrected ---------------------------------------------------- */

/*
 * THE ONE NEW COLOUR VALUE IN THIS PASS.
 *
 *     --vm-header-surface: #F1EFE8
 *
 * Why a new value rather than an existing token: the header needs to be
 * distinct from BOTH page grounds at once, and no existing neutral is.
 * `base` (#F8F7F3) is what the header was using, which is why it dissolved
 * into the page. `surface` (#EBEAE4) is the section band — a header on it
 * would merge with every Surface section instead. `stone` (#EEECEA) is the
 * card/inset token and sits between the two, so it would read as a card.
 * `white` is a step in the wrong direction: lighter than the page, which
 * reads as absence rather than as structure.
 *
 * #F1EFE8 sits between Base and Surface and slightly warmer than both, so
 * the bar is a deliberate object against a Base section AND against a
 * Surface section. It is a MASTER neutral: no olive, no black, no Property
 * colour, and it does not change from page to page. Header text
 * (`contrast`, #201E1C) reads about 15:1 on it.
 *
 * Deliberately a stylesheet custom property rather than a theme.json
 * palette entry: it is structural chrome, not a colour an editor should be
 * offered in a swatch list — the same reasoning `--vm-header-height`
 * already follows.
 */
:root {
	--vm-header-surface: #F1EFE8;
}

.vm-header {
	--vm-header-bg: var( --vm-header-surface );
	--vm-header-border: color-mix( in srgb, var( --wp--custom--ink ) 12%, transparent );
}

/* The scrolled state of a transparent header resolves to the same bar. */
.vm-header[ data-vm-appearance="transparent" ].vm-header--scrolled {
	--vm-header-bg: var( --vm-header-surface );
	--vm-header-border: color-mix( in srgb, var( --wp--custom--ink ) 12%, transparent );
}

/*
 * The header's STRUCTURE is master-level; its ACCENTS answer to the page.
 *
 * The CTA was universal near-black (`contrast`), which made the site's
 * primary action the one element that never belonged to the page it was on.
 * It now takes the current scope's CORE — `--vm-color-deep` — which is the
 * collection olive on collection pages and that Property's Core inside a
 * `.vm-accent--*` scope. ONE rule, no per-Property selector: the scope
 * class is already on <body> (inc/property-accent.php).
 *
 * Core, not Mark, is deliberate and is the TASK-011 rule: Deep is the only
 * accent allowed to carry text, and `--vm-color-on-accent` is its approved
 * label colour. That is also what preserves Villa Filaus — its Mark
 * (#C2713C, 3.67:1) could not carry white and is never asked to here.
 */
.vm-header__actions .vm-cta--primary .wp-block-button__link {
	background-color: var( --vm-color-deep );
	color: var( --vm-color-on-accent );
}

.vm-header__actions .vm-cta--primary .wp-block-button__link:hover,
.vm-header__actions .vm-cta--primary .wp-block-button__link:focus-visible {
	background-color: color-mix( in srgb, var( --vm-color-deep ) 84%, #000000 );
}

/*
 * Navigation stays neutral at rest — colouring every item permanently would
 * turn the nav into a second brand statement. The scope's Core appears only
 * on hover/focus and on the current item, as a fine underline that hugs the
 * text rather than a fill.
 *
 * Excluded while the header is in its Light treatment over a photograph and
 * has not yet scrolled: Core on an image is neither legible nor measurable.
 */
.vm-header:not( [ data-vm-navigation="light" ] ) .wp-block-navigation a.wp-block-navigation-item__content:hover,
.vm-header:not( [ data-vm-navigation="light" ] ) .wp-block-navigation a.wp-block-navigation-item__content:focus-visible,
.vm-header--scrolled .wp-block-navigation a.wp-block-navigation-item__content:hover,
.vm-header--scrolled .wp-block-navigation a.wp-block-navigation-item__content:focus-visible {
	color: var( --vm-color-deep );
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.4em;
}

.vm-header:not( [ data-vm-navigation="light" ] ) .wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content {
	color: var( --vm-color-deep );
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.4em;
}

/*
 * MOBILE HEADER — logo and menu button only.
 *
 * Below the theme's mobile token the row was carrying logo + CTA +
 * hamburger, which is three competing objects in a 375px line. The search
 * toggle already hides here (see the rule above); the CTA now does too.
 *
 * NOTE FOR FOLLOW-UP: "Check availability" should be added INSIDE the
 * mobile menu. That is an edit to the Navigation entity (menu ref 292) in
 * the database, not something this stylesheet can do — see TASK-012.
 */
@media ( max-width: 600px ) {
	.vm-header .vm-header__cta--conversion,
	.vm-header__actions .vm-cta--primary {
		display: none;
	}
}


/* -- Property page ending: FAQ / final CTA separation --------------------- */

/*
 * THE PROBLEM: FAQ and the final Property CTA were BOTH on Surface, with no
 * edge between them, so the conversion moment read as the last paragraph of
 * the FAQ instead of as a section of its own.
 *
 * THE FIX: the CTA becomes the page's brightest field. White appears nowhere
 * else on a Property page, so the step from the Surface FAQ into it is
 * unmistakable before a single word is read — which is the test Ana set.
 * Hairlines at both edges make the boundary explicit rather than relying on
 * the luminance step alone.
 *
 * Deliberately NOT another dark band: the page's dark ending is the Property
 * GROUND footer, and the resulting sequence is
 *
 *     FAQ (Surface) -> FINAL CTA (White) -> EXPLORE OTHER STAYS (Base)
 *     -> PROPERTY GROUND FOOTER
 *
 * — four distinct fields, no two adjacent alike, and exactly one dark one.
 * Property identity still arrives through the Core eyebrow and the Core
 * button, not through a colour field.
 */
.vm-faq {
	border-bottom: 1px solid color-mix( in srgb, var( --wp--custom--ink ) 12%, transparent );
}

.vm-property-final-cta {
	background: var( --wp--preset--color--white );
	border-bottom: 1px solid color-mix( in srgb, var( --wp--custom--ink ) 10%, transparent );
	padding-block: clamp( 3.25rem, 6.5vw, 6rem );
}


/* ==========================================================================
   TASK-012 CORRECTIVE ROUND 2 — equal Properties, equal Experiences
   --------------------------------------------------------------------------
   Measured on the live page in Ana's own browser, which is where round 1's
   offline harness misled this work (see the hero title note above).
   ========================================================================== */


/* -- The Collection: five EQUAL stays ------------------------------------- */

/*
 * The 2 + 3 composition is withdrawn. It was defensible as editorial
 * layout and indefensible as brand: two of the five houses read as more
 * important than the other three purely because of grid position, and
 * Villas More is a collection of five equals. Card order must not confer
 * status.
 *
 * Five equal columns in one row on desktop. The cards get smaller rather
 * than the grid getting a featured slot — at the 1210px wide size that is
 * ~226px a card, which round 1 rejected as a thumbnail strip. That
 * judgement was made against 5/4 media and a 1.4rem title; at a 4/3 ratio
 * with the type stepped down it reads as a deliberate compact card set,
 * which is the correct trade when equality is the requirement.
 *
 * Every card is identical: one ratio, one title size, one spacing, one
 * height logic. Property identity stays exactly where round 1 put it — the
 * Mark rule and the tinted (never saturated) media field.
 */
.vm-collection-grid {
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
	gap: clamp( 1.25rem, 2vw, 1.75rem ) clamp( 0.75rem, 1.1vw, 1.1rem );
}

/* One ratio for all five. The nth-child rules from round 1 are neutralised
   here rather than deleted above, so the reasoning stays readable. */
.vm-collection-grid > .vm-stay-card,
.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) {
	grid-column: span 1;
}

.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__media,
.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__media {
	aspect-ratio: 4 / 3;
}

/* One title size for all five. */
.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__name,
.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__name {
	font-size: 1.05rem;
}

.vm-collection-grid .vm-stay-card__eyebrow {
	font-size: 0.6rem;
	letter-spacing: 0.12em;
}

.vm-collection-grid .vm-stay-card__note {
	font-size: 0.8rem;
	line-height: 1.45;
}

.vm-collection-grid .vm-stay-card__link {
	font-size: 0.78rem;
	padding-top: 0.7rem;
}

/* The Mark rule scales with the smaller card. */
.vm-collection-grid .vm-stay-card__media::before {
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	inline-size: 1.5rem;
}

.vm-collection-grid .vm-stay-card__media {
	padding: 0.75rem;
	margin-bottom: 0.75rem;
}

/*
 * Responsive: EQUAL CARDS AT EVERY WIDTH. The grid wraps to three, then
 * two, then one — and because every card keeps the same ratio, title size
 * and spacing, a short last row is a wrap, not a hierarchy. No featured
 * card is reintroduced at any breakpoint, which is the whole point.
 */
@media ( max-width: 1180px ) {
	.vm-collection-grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

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

	/* Round 1 gave the odd fifth card a full-width, wider-ratio slot. That
	   is a featured card by another name — withdrawn. */
	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child {
		grid-column: span 1;
	}

	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child .vm-stay-card__media {
		aspect-ratio: 4 / 3;
	}

	.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__name {
		font-size: 1.05rem;
	}
}

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


@media ( max-width: 900px ) {
	

	

	
}

@media ( max-width: 560px ) {
	
}


/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
/* -- Offers / Experiences: card bottoms align ----------------------------- */

/*
 * Alignment by layout rather than by trimming copy, as asked. The grid
 * stretches every card to the tallest in the row; the body is a column flex
 * whose note absorbs the slack, so a two-line description and a four-line
 * one still put their `Read more` on the same baseline.
 */
.vm-offers-grid,
.vm-experiences-grid {
	align-items: stretch;
}

/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
.vm-offers-grid > .vm-offer-card,
.vm-experiences-grid > .vm-experience-card {
	height: 100%;
}


/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
/* Task 024: dead selector retained here — see docs/tasks/TASK-024.md */
/* -- Grid children must not carry the flow layout's block gap ------------- */

/*
 * Found by measuring the live page: in every card section, card 1 sat 24px
 * ABOVE cards 2..n. Not a spacing choice — a collision.
 *
 * These grid wrappers are `core/group` blocks with `layout:{"type":"default"}`,
 * so WordPress renders them `is-layout-flow` and its own layout support
 * emits `> * + * { margin-block-start: var(--wp--style--global--block-gap) }`
 * — 24px from theme.json. The stylesheet then makes the same element
 * `display: grid`. The flow margin does not disappear in grid formatting
 * context: it is applied to every child except the first, pushing four of
 * five Property cards, two of three Experiences and two of three Offers
 * down by 24px inside their own row.
 *
 * It was invisible while the cards had different heights anyway, and it is
 * exactly the "one card floating above the others" Ana asked about.
 *
 * Zeroed here rather than by changing each pattern's layout type: `flex` or
 * `grid` layout on the wrapper would hand WordPress control of the columns
 * and gap, which is precisely what these bespoke compositions define
 * themselves. The `gap` property on each grid is the real spacing.
 */
.vm-collection-grid > *,
.vm-offers-grid > *,
.vm-experiences-grid > *,
.vm-collection-foot > *,
.vm-section-foot > *,
.vm-story__inner > * {
	margin-block-start: 0;
}


/* ==========================================================================
   TASK-012 CORRECTIVE ROUND 3 — real Property photography, editorial cards
   --------------------------------------------------------------------------
   Measured on the live page. Round 2 made the five Properties equal, which
   was the right rule and the wrong texture: five short landscape tiles in a
   row with an accent-coloured location label on each read as a table, not a
   collection.
   ========================================================================== */


/* -- Hero: optical balance ------------------------------------------------ */

/*
 * The text column is centred against a photograph, and a stack that is
 * mathematically centred against a large image reads as sitting slightly
 * low. The end padding lifts it a little above centre, which is where the
 * eye expects it. The internal gaps come down at the same time so the stack
 * reads as one block — eyebrow, headline, body, actions — rather than four
 * separately spaced items.
 */
@media ( min-width: 901px ) {
	.vm-hero__inner {
		--vm-hero-measure: 22rem;
	}

	.vm-hero__text {
		padding-block-end: clamp( 1.5rem, 3vw, 2.75rem );
	}
}

.vm-hero .vm-eyebrow {
	margin-bottom: 0.6rem;
}

.vm-hero__title {
	margin-bottom: 0.7rem;
}

.vm-hero__lede {
	margin-bottom: 1.2rem;
}

/*
 * A real photograph is in place now, so the media block is a picture rather
 * than a tinted field: the placeholder gradient must not sit on top of it,
 * and the crop should favour the upper part of the frame, where this
 * image's skyline and tower are. `background-position` does the work the
 * editor's focal-point control was not doing usefully.
 */
.vm-hero__media {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 38%;
}


/* -- Collection cards: photography first ---------------------------------- */

/*
 * A PORTRAIT ratio, not a landscape one. At five across the cards are ~220px
 * wide; a 4/3 crop there is a squat 165px tile and five of them in a row is
 * precisely the "spreadsheet column" read. A 4/5 portrait gives the
 * photograph the vertical presence it needs at that width and is what makes
 * the row look composed rather than tabulated. Same ratio on all five — the
 * equality rule is untouched.
 */
.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__media,
.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__media,
.vm-collection-grid .vm-stay-card__media {
	aspect-ratio: 4 / 5;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 0;
	margin-bottom: 0.85rem;
}

/*
 * The Mark moves off the photograph and into the text block.
 *
 * As a 2px bar laid over a placeholder field it was a legible identifying
 * detail; laid over an actual photograph it is either invisible or it looks
 * like a defect, and it competes with the image. Above the Property name it
 * does the same job — small, non-text, unmistakably that house's colour —
 * and it now also serves as the card's opening rule, which is what gives
 * the five cards their internal rhythm without borders or boxes.
 */
.vm-collection-grid .vm-stay-card__media::before {
	content: none;
}

.vm-collection-grid .vm-stay-card__name {
	position: relative;
	padding-top: 0.85rem;
	margin-bottom: 0.4rem;
}

.vm-collection-grid .vm-stay-card__name::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 1.75rem;
	block-size: 2px;
	background-color: var( --vm-color-primary );
}

/* The name is the dominant thing in the text area, as asked. */
.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__name,
.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__name,
.vm-collection-grid .vm-stay-card__name {
	font-size: 1.15rem;
	line-height: 1.2;
}

/*
 * Descriptions are canonical `vm_property_descriptor` text of differing
 * lengths. Clamped to three lines so one long descriptor cannot make its
 * card taller than the other four; the flex below then pushes every CTA to
 * the same baseline regardless of how many lines each actually uses.
 */
.vm-collection-grid .vm-stay-card__note {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.8rem;
	line-height: 1.5;
	margin-bottom: 0.9rem;
	flex: 1 1 auto;
}

/* image -> content -> flexible space -> CTA, on one baseline across all five. */
.vm-collection-grid > .vm-stay-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.vm-collection-grid .vm-stay-card__link {
	margin-top: auto;
	margin-bottom: 0;
	padding-top: 0.8rem;
	border-top: 1px solid var( --wp--preset--color--border );
	font-size: 0.78rem;
}

/* Separation comes from the gap and the card's own rhythm — no boxes. */
.vm-collection-grid {
	gap: clamp( 1.5rem, 2.4vw, 2rem ) clamp( 1rem, 1.5vw, 1.4rem );
}

/*
 * Mobile: a 4/5 portrait at full width is an enormous image on a phone.
 * One landscape card at a time reads better and keeps the stack scannable.
 */
/*
 * The mobile ratio has to be written at the SAME specificity as the desktop
 * one. Measured at 390px it was not: the desktop 4/5 rule is a three-class
 * selector and this was a two-class selector, so four cards stayed portrait
 * (428px tall on a phone) while the fifth picked up an older 4/3 rule — two
 * different card heights in one stacked column. Matching the selector shape
 * is the fix; raising specificity by nesting deeper would have been the
 * same trap one level down.
 */
@media ( max-width: 560px ) {
	.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__media,
	.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__media,
	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child .vm-stay-card__media {
		aspect-ratio: 3 / 2;
	}

	.vm-collection-grid .vm-stay-card__note {
		-webkit-line-clamp: 4;
	}
}


/* -- Collection cards: four in one row (Task 014-6, 2026-11-13) ----------- */

/*
 * Ana, 13.11.: not 2 × 2 — one row of four ("Predugačko je… bit će dovoljno
 * velike i mogu stati opisi i gumbi"). Lives here, beside the collection's
 * other card rules, on purpose: the end of this file belongs to whoever is
 * appending today (Task 013-3).
 *
 * THE OLDER 2 × 2 RULES at the very end of this file (section "TASK-014-6
 * PART C") are now outranked by these at computer and tablet width — every
 * selector below carries `.vm-collection` in front, one class more. The
 * phone part of that section (the swipe track and its peek) is still the one
 * in force. When the end of the file is free again, its 2 × 2 lines can go.
 *
 * Widths:  ≥ 1000px  one row of four, portrait photographs (4 : 5, the
 *                    collection's own ratio — at ~260–285px wide that is the
 *                    "presence" the five-across design was measured for);
 *          600–999px two by two, landscape (3 : 2) — four across would be
 *                    ~200px cards (proposal, for Ana);
 *          < 600px   the swipe track, unchanged.
 *
 * Cards: the saved link ("View this stay →") is the ONE main button and is
 * stretched over the whole card; one small text link under it goes to the
 * house's date bar. Two actions per card, not eight equal buttons in a row.
 * Inserted at render by `inc/home-stays.php`; nothing saved changes.
 */
@media ( min-width: 1000px ) {
	.vm-collection .vm-collection-grid.vm-collection-grid--four {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	}

	.vm-collection .vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__media {
		aspect-ratio: 4 / 5;
	}
}

@media ( min-width: 600px ) and ( max-width: 999px ) {
	.vm-collection .vm-collection-grid.vm-collection-grid--four {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.vm-collection .vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__media {
		aspect-ratio: 3 / 2;
	}
}

.vm-collection .vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) {
	position: relative;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__name {
	font-size: 1.3rem;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__note {
	font-size: var( --wp--preset--font-size--small );
	-webkit-line-clamp: 3;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__range {
	margin: auto 0 0.9rem;
}

/* The range and the actions sit on one line across the row, whatever the
   length of each description: the space goes above the range, not into the
   description (the older rule let the description grow). */
.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__note {
	flex: 0 0 auto;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__link {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
	font-size: inherit;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__link a {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	border-radius: 2px;
	background-color: var( --vm-color-deep );
	color: var( --vm-color-on-accent, var( --wp--preset--color--white ) );
	font-family: var( --wp--preset--font-family--display );
	font-size: var( --wp--custom--typography--action-size );
	font-weight: var( --wp--custom--typography--action-weight );
	letter-spacing: var( --wp--custom--typography--action-letter-spacing );
	line-height: var( --wp--custom--typography--eyebrow-line-height );
	text-transform: uppercase;
	text-decoration: none;
}

/* The whole card is the same link: the button's box is stretched over it. */
.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Task 053-1: darkened with an inset shadow, not `filter`. A filter on the link makes the link the box its
   stretched ::after is measured from, so on hover the "whole card" link shrank to the button and a click on the
   photo did nothing (found by Ana, 19.11.). The shadow paints over the background only. */
.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card:hover .vm-stay-card__link a {
	box-shadow: inset 0 0 0 100vmax rgb( 0 0 0 / 12% );
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card:hover .vm-stay-card__name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__link a:focus-visible {
	outline: 2px solid var( --vm-color-deep );
	outline-offset: 3px;
	text-decoration: none;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__check {
	margin: 0.7rem 0 0;
	font-size: var( --wp--preset--font-size--small );
}

/* Above the stretched link, so it can be pressed on its own. */
.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__check a {
	position: relative;
	z-index: 1;
	color: var( --vm-color-deep );
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__check a:focus-visible {
	outline: 2px solid var( --vm-color-deep );
	outline-offset: 3px;
}


/*
 * Phone, 13.11. (Ana: „odluči što je najbolje za ux"): ONE AND A HALF cards,
 * not one and a sliver. The first card whole, about half of the next — so
 * the swipe is visible at a glance, which is what DECISIONS.md 91 asks of
 * every slider ("one and a half cards"). The 12.11. track at the end of this
 * file drew 82 % (one card and ~50px of the next). Two whole cards were
 * considered and rejected: ~170px each leaves a thumbnail and a description
 * broken into five or six short lines. 64 % of the track ≈ 217px at 390.
 */
@media ( max-width: 599px ) {
	.vm-collection .vm-collection-grid.vm-collection-grid--four {
		align-items: stretch;
	}

	.vm-collection .vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) {
		flex-basis: 64%;
		height: auto;
	}

	.vm-collection .vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__name {
		font-size: 1.15rem;
	}

	.vm-collection .vm-collection-grid.vm-collection-grid--four .vm-stay-card__note {
		-webkit-line-clamp: 4;
	}
}

/* -- Hero: the flow gap again, and the wrapping CTA row ------------------- */

/*
 * Same collision as the card grids, found by measuring the hero's own
 * boxes. `.vm-hero__inner` and `.vm-hero__text` are `layout:{"type":"default"}`
 * groups, so WordPress emits `> * + * { margin-block-start: 24px }` on both.
 * Two consequences, both of them things Ana has been pointing at:
 *
 *   - the MEDIA column carried `margin-top: 24px`, so the photograph sat
 *     24px below the top of the hero row instead of aligning with it, and
 *     the row grew by 24px it did not need;
 *
 *   - inside the text column that 24px was ADDED to each element's own
 *     margin-bottom, so the real gaps were 34/35/43px rather than the
 *     10/11/19px this stylesheet specifies. That is the "unnecessary
 *     vertical gaps" in the text stack — it was never the declared values.
 *
 * Zeroing it hands the spacing back to the rules above and lets the stack
 * read as one compact editorial block.
 */
.vm-hero__inner > *,
.vm-hero__text > * {
	margin-block-start: 0;
}

/*
 * The two hero actions were wrapping onto two rows inside the narrowed text
 * measure, which put 116px of button stack under the copy and was a large
 * part of why the left column still felt heavy. Trimmed horizontal padding
 * keeps them on one line at the current measure without shrinking the label
 * type. Scoped to the hero.
 */
.vm-hero__actions .wp-block-button__link {
	padding-inline: 1.25rem;
}

.vm-hero__actions {
	flex-wrap: nowrap;
}


/*
 * Round 2 left the odd fifth card its own aspect-ratio inside the 900px
 * block. Measured at 900px that produced a 523px portrait beside a 314px
 * landscape — the featured-card hierarchy reappearing by ratio rather than
 * by span, which is the thing this whole correction exists to remove.
 *
 * At two columns the cards are ~418px wide, where a 4/5 portrait is simply
 * too tall to scan, so the two-up and one-up bands both take the landscape
 * ratio. Written at the same three-class specificity as every other ratio
 * rule so it cannot be out-specified by an older one.
 */
@media ( max-width: 900px ) {
	.vm-collection-grid > .vm-stay-card:nth-child( -n + 2 ) .vm-stay-card__media,
	.vm-collection-grid > .vm-stay-card:nth-child( n + 3 ) .vm-stay-card__media,
	.vm-collection-grid > .vm-stay-card:nth-child( 5 ):last-child .vm-stay-card__media {
		aspect-ratio: 3 / 2;
	}
}


/*
 * Dead space between the hero and the story. Measured on the live page:
 * the photograph ended, then ~115px of nothing before the story's rule and
 * another ~100px before its eyebrow. The hero's own bottom padding, the
 * section's padding and the story block's internal padding were all paying
 * for the same gap. Trimmed so the first thing below the fold arrives while
 * it can still be read, which is the whole point of showing it.
 */
.vm-hero {
	padding-block-end: clamp( 0.75rem, 1.4vw, 1.25rem );
}

.vm-story__inner {
	padding-top: clamp( 1.25rem, 2vw, 1.75rem );
}

.vm-story {
	padding-block-start: clamp( 1.5rem, 2.6vw, 2.25rem );
}


/* =======================================================================
 * TASK-013 — OFFERS
 * -----------------------------------------------------------------------
 * Offers landing + the Extended Escape offer detail page.
 *
 * Everything below consumes existing TASK-011 semantic tokens. No token
 * was added, removed or re-valued. `theme.json` gains exactly one thing:
 * a `customTemplates` entry registering `templates/page-offer.html` (an
 * edge-to-edge page template with no `core/post-title` band), because
 * the default page template wraps content in a 720px container and
 * prints the title above it — which would have put a second "Extended
 * Escape" heading over the hero and capped every full-width band. No
 * colour, typography or spacing value in theme.json was touched. Offers are
 * COLLECTION-level content, so the accent everywhere here is collection
 * olive (`--vm-color-deep` / `--vm-color-primary` at :root) — no Property
 * accent scope is applied to any of these sections.
 *
 * Band vocabulary. `.vm-section--surface` already existed. The offer
 * pages also need an explicit WHITE band and an explicit BASE band,
 * because the rhythm here is three grounds, not two: an offer page that
 * alternates only Base/Surface reads as a stack of equal slabs, which is
 * exactly the "marketing -> data -> data -> terms" shape the brief
 * rejects. White carries the editorial moments, Base carries the
 * factual strips, Surface carries the pauses.
 * ==================================================================== */

.vm-section--white { background-color: var(--wp--preset--color--white); }
.vm-section--base  { background-color: var(--wp--preset--color--base); }

/* -- Offers landing: three equal cards ---------------------------------- */

/*
 * The homepage already has `.vm-offers-grid` / `.vm-offer-card` (TASK-012)
 * and those rules are NOT touched — the homepage is frozen. The landing
 * page gets its own `.vm-offers-index` scope: same three-up logic, but
 * larger imagery and more breathing room, per the brief.
 *
 * `1fr` columns and `grid-auto-rows: 1fr` keep the three cards exactly
 * equal at every width. No card is ever featured: card order must not
 * confer importance (the rule TASK-012 set for the Property collection
 * applies here for the same reason).
 */
.vm-offers-index {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 3vw, 2.75rem);
	align-items: stretch;
}

.vm-offers-index > .vm-offer-tile {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.vm-offer-tile__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin-bottom: 1.1rem;
	background: linear-gradient(160deg, var(--vm-color-deep), var(--vm-color-primary));
}

.vm-offer-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm-offer-tile__media .wp-block-image,
.vm-offer-tile__media figure {
	margin: 0;
	height: 100%;
}

.vm-offer-tile__eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--vm-color-deep);
	margin: 0 0 0.6rem;
}

.vm-offer-tile__title {
	font-size: clamp(1.35rem, 1.9vw, 1.7rem);
	line-height: 1.2;
	margin: 0 0 0.7rem;
}

.vm-offer-tile__note {
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
	margin: 0 0 0.9rem;
	max-width: 34ch;
}

/*
 * The one confirmed commercial hook on a card. It is a factual line, not
 * a badge: no pill, no fill, no percentage graphic — the brief rules out
 * sale badges and e-commerce cards explicitly. It reads as a caption in
 * the collection accent, which is as loud as an offer is allowed to get
 * on this site.
 */
.vm-offer-tile__hook {
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	color: var(--vm-color-deep);
	margin: 0 0 0.85rem;
	padding-top: 0.6rem;
	border-top: 1px solid var(--wp--preset--color--border);
	max-width: 34ch;
}

.vm-offer-tile__link {
	margin: auto 0 0;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
}

.vm-offer-tile__link a {
	color: var(--vm-color-deep);
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: border-color 0.2s ease;
}

.vm-offer-tile__link a:hover,
.vm-offer-tile__link a:focus-visible {
	border-bottom-color: var(--vm-color-deep);
}

/* -- Offer detail: inclusions ------------------------------------------- */

/*
 * Two columns, generous spacing, one hairline per row and nothing else.
 * No bordered checklist, no icon set: nine ticks in a box is the shape
 * of a comparison table, and this is meant to read as a list of what the
 * stay contains.
 */
.vm-offer-includes__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 5vw, 4.5rem);
	row-gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vm-offer-includes__list li {
	padding-block: 0.95rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	line-height: 1.55;
	color: var(--wp--preset--color--contrast);
}

/* -- Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
	.vm-offers-index { grid-template-columns: repeat(2, 1fr); }

	

	

	

	

	}

@media (max-width: 781px) {
	.vm-offers-index { grid-template-columns: 1fr; }

	

	

	

	.vm-offer-includes__list { grid-template-columns: 1fr; }

	

	

	

	
}

/*
 * Internal-honesty notes. These lines exist because TASK-013 refused to
 * present unconfirmed Hotel More inclusions as Villas More facts (see
 * docs/tasks/TASK-013.md §"Commercial confirmation required"). They are
 * deliberately quiet — small, muted, italic — but they are ON the page
 * rather than only in the documentation, because a demo page that
 * silently implies approval is worse than one that admits a gap.
 */
/* Task 017: dead selector retained here — see the isolated section at the end of this file. */
.vm-offer-includes__note,
.vm-offer-available__note {
	margin-top: 1.5rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	max-width: 46ch;
}

.vm-offers-index-section { padding-top: 0; }

.vm-offers-index-section .vm-section-foot {
	margin-top: clamp(2rem, 4vw, 3rem);
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

/*
 * THE LAYOUT-GAP OVERRIDE — read this before touching any grid above.
 *
 * Every one of the containers below is a `core/group` with
 * `layout: {"type":"default"}` whose display is then reassigned to grid
 * or flex by this stylesheet. WordPress's layout support does not know
 * that: for a flow layout it emits, into its own inline stylesheet,
 *
 *     .wp-container-xxxx > * + * { margin-block-start: <blockGap> }
 *
 * which is specificity 0,1,0 and lands on the SECOND and subsequent
 * grid/flex items. The visible symptom is unmistakable and was on the
 * page: in "Offer at a glance" the first cell sat a full block-gap
 * ABOVE the other three, and in "Available at" the first Property
 * floated on its own line above the rest of the row.
 *
 * Doubling the class gives 0,2,0 — enough to win regardless of whether
 * the theme stylesheet or the inline layout stylesheet is printed last,
 * which is not a thing to leave to enqueue order. Gap is already owned
 * by each container's own `gap` declaration.
 */
/* Task 017: dead selector retained here — see the isolated section at the end of this file. */
.vm-offers-index.vm-offers-index > * + *,
.vm-offer-hero__inner.vm-offer-hero__inner > * + *,
.vm-offer-glance__inner.vm-offer-glance__inner > * + *,
.vm-offer-split__inner.vm-offer-split__inner > * + *,
.vm-offer-properties.vm-offer-properties > * + *,
.vm-offer-details__list.vm-offer-details__list > * + *,
.vm-offer-property.vm-offer-property > * + *,
.vm-offer-details__row.vm-offer-details__row > * + *,
.vm-offer-glance__item.vm-offer-glance__item > * + *,
.vm-offer-tile.vm-offer-tile > * + * {
	margin-block-start: 0;
}

/*
 * Offer pages are composed of full-width bands that must butt directly
 * against each other; the flow block-gap between top-level sections
 * showed as a stripe of the body ground between two white bands (and as
 * a hairline of Base immediately under the header). Each band carries
 * its own vertical padding, so the gap has nothing left to do. Doubled
 * class for the same reason as the layout-gap override above.
 */
.vm-page--offer .entry-content.entry-content > * + * {
	margin-block-start: 0;
}

/* =======================================================================
 * TASK-013 (correction, 2026-09-03) — THE COMPACT OFFER
 * -----------------------------------------------------------------------
 * The first pass built an Offers landing that fed a long editorial Offer
 * detail page: two documents, ~6000px of combined height, and a click
 * between the visitor and the offer. Ana's correction, referencing
 * Amanzoe's "Ultimate Discovery" (2506px total, everything on one
 * screen-and-a-half), is that /offers/ IS the destination. One page, one
 * compact block per offer.
 *
 * What that changes in CSS terms: an offer is no longer a page with a
 * hero, it is a SECTION with a two-row internal grid — copy beside an
 * image, then facts beside inclusions — closing on a terms row and a
 * CTA. Everything above in the first TASK-013 block that belonged to the
 * long detail page (`.vm-offer-hero`, `.vm-offer-glance`,
 * `.vm-offer-editorial`, `.vm-offer-figure`, `.vm-offer-split`,
 * `.vm-offer-cta`, `.vm-offers-index`) is deliberately LEFT IN PLACE and
 * unused by the live page: page 329 is drafted, not deleted, and it
 * still renders from those rules if it is ever restored. Deleting them
 * would have made the draft unreviewable.
 * ==================================================================== */

/*
 * The hub's opening is a label for the grid, not a hero. Reviewed live
 * at 281px it was reading as a third of the page before a single offer
 * appeared, so the padding, the internal gaps and the headline measure
 * are all cut: the grid should be the first thing the page is about.
 */
.vm-offers-page__intro {
	padding-block: clamp(1.25rem, 2.2vw, 1.85rem) clamp(0.9rem, 1.6vw, 1.3rem);
}

.vm-offers-page__intro .vm-section__head { margin-bottom: 0; }

.vm-offers-page__intro .vm-section__head > h1 {
	max-width: 22ch;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	line-height: 1.12;
}

.vm-offers-page__intro .vm-section__head > * + * { margin-top: 0.35rem; }

.vm-offers-page__intro .vm-section__head > p:not(.vm-eyebrow) {
	margin-top: 0.55rem;
	max-width: 58ch;
}

.vm-offers-page__intro .vm-eyebrow { margin-bottom: 0.55rem; }

/* -- One offer ---------------------------------------------------------- */

.vm-offer {
	padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.75rem);
}

/*
 * A hairline, not a band change, between consecutive offers. Two offers
 * in a row on alternating grounds would read as two pages stapled
 * together; a rule reads as a list.
 */
.vm-offer + .vm-offer {
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Row 1 — copy beside the photography. */
.vm-offer__lead {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

.vm-offer__copy > * { max-width: 34ch; }

.vm-offer__title {
	font-size: clamp(1.9rem, 3.4vw, 2.9rem);
	line-height: 1.08;
	letter-spacing: -0.005em;
	margin: 0 0 0.85rem;
}

/*
 * The benefit line is the one sentence a guest has to read. Set between
 * the title and body copy in scale so it reads as a statement, not as
 * the opening of a paragraph.
 */
.vm-offer__benefit {
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	line-height: 1.45;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 0.9rem;
	max-width: 30ch;
}

.vm-offer__desc {
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
	margin: 0 0 1.5rem;
	max-width: 42ch;
}

.vm-offer__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(160deg, var(--vm-color-deep), var(--vm-color-primary));
}

.vm-offer__media figure { margin: 0; height: 100%; }

/*
 * Specificity note, same as the retired figure band: core ships
 * `.wp-block-image img { height: auto }` at equal specificity, so the
 * block class has to be in the selector or the crop is decided by
 * stylesheet order.
 */
.vm-offer__media .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Row 2 — the facts beside what the stay includes. */
.vm-offer__detail {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	margin-top: clamp(2rem, 3.5vw, 2.75rem);
	align-items: start;
}

.vm-offer__facts > * + * { margin-top: 1.1rem; }

.vm-offer__label {
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vm-color-deep);
	margin: 0 0 0.35rem;
}

.vm-offer__value {
	margin: 0;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	max-width: 28ch;
}

.vm-offer__includes-title {
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vm-color-deep);
	margin: 0 0 0.9rem;
}

/*
 * A short list has to look chosen rather than thin. One hairline per
 * row and a generous line-height give two items the same deliberateness
 * a longer list would have — which matters here, because the list stays
 * short until the commercial detail is confirmed and padding it out
 * would mean inventing inclusions.
 */
.vm-offer__includes {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 42ch;
}

.vm-offer__includes li {
	padding-block: 0.8rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	line-height: 1.55;
	color: var(--wp--preset--color--contrast);
}

.vm-offer__includes li:first-child { border-top: 1px solid var(--wp--preset--color--border); }

.vm-offer__note {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	max-width: 44ch;
}

/* Terms + the closing action, on one quiet row. */
.vm-offer__foot {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	max-width: 46rem;
}

.vm-offer__foot .wp-block-buttons {
	margin-top: 1.5rem;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.vm-offer__back {
	font-size: 0.9rem;
	margin: 0;
}

.vm-offer__back a {
	color: var(--vm-color-deep);
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
}

.vm-offer__back a:hover,
.vm-offer__back a:focus-visible { border-bottom-color: var(--vm-color-deep); }

/* -- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
	.vm-offer__lead,
	.vm-offer__detail {
		grid-template-columns: 1fr;
	}

	.vm-offer__copy > * { max-width: none; }

	.vm-offer__media { aspect-ratio: 16 / 10; }

	/* Photography leads on a narrow screen: the image is the strongest
	   thing an offer has, and reading two paragraphs before seeing it is
	   the mobile version of burying it. */
	.vm-offer__media { order: -1; }

	
}

@media (max-width: 781px) {
	.vm-offer__foot .wp-block-buttons { flex-direction: column; align-items: flex-start; }
}

/* The closing row: primary action, then a quiet way onward. */
.vm-offer__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.75rem;
	margin-top: 1.5rem;
}

.vm-offer__actions.vm-offer__actions > * + * { margin-block-start: 0; }


@media (max-width: 781px) {
	.vm-offer__actions { flex-direction: column; align-items: flex-start; }
}

/*
 * Two instances of the same two defects the long detail page hit, in
 * their new home. Recorded rather than silently patched because they
 * will recur on every section built this way.
 *
 * 1. `.vm-offer__foot` carries `.vm-container` AND its own reading
 *    measure. `layout:"constrained"` centres it on that measure, so the
 *    Terms row sat 250px right of the copy above it. The wrapper keeps
 *    the container math; the measure moves onto the accordion.
 * 2. `.vm-offers-upcoming__list` is another flow group reassigned to
 *    grid, so WordPress's `> * + *` block-gap pushed the second concept
 *    down and the two headings did not line up.
 */
.vm-offer__foot.vm-offer__foot {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
}

/*
 * Full content width, not a reading measure. The Terms row is the last
 * rule of the inclusion list above it, and a 46rem accordion under a
 * full-width two-column list stopped short of the right column and read
 * as a different component.
 */
.vm-offer__foot > .wp-block-villas-more-accordion,
.vm-offer__foot > .vm-accordion {
	max-width: none;
	margin-inline: 0;
}

/* Task 017: dead selector retained here — see the isolated section at the end of this file. */
.vm-offers-upcoming__list.vm-offers-upcoming__list > * + *,
.vm-offer__lead.vm-offer__lead > * + *,
.vm-offer__detail.vm-offer__detail > * + * {
	margin-block-start: 0;
}


/* =======================================================================
 * TASK-013 (second correction, 2026-09-03) — HUB + COMPACT DETAIL
 * -----------------------------------------------------------------------
 * The architecture returns to two levels — `/offers/` is a collection of
 * offers, `/offers/extended-escape/` is one of them — but the detail page
 * is now the compact composition the first correction produced, not the
 * ten-section editorial journey of the first pass.
 *
 * So this block adds very little: the hub reuses `.vm-offers-index` /
 * `.vm-offer-tile` from the first pass, and the detail page reuses
 * `.vm-offer__lead` / `.vm-offer__media` / `.vm-offer__includes` /
 * `.vm-offer__foot` / `.vm-offer__actions` from the correction. Only the
 * two-fact metadata row and a handful of scale adjustments are new.
 *
 * The long detail page's own rules (`.vm-offer-hero`, `.vm-offer-glance`,
 * `.vm-offer-editorial`, `.vm-offer-figure`, `.vm-offer-split`,
 * `.vm-offer-cta`) are now genuinely dead — nothing renders from them.
 * They are kept for one more review cycle because the old composition is
 * still recoverable from page 329's revision history, and are marked here
 * so the next task can delete them in one pass rather than guessing.
 * ==================================================================== */

/* -- Hub: the closing line, not a section ------------------------------- */

.vm-offers-index-section .vm-section-foot {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 1.25rem;
}

/*
 * WITHDRAWN: `.vm-offer-tile__link--quiet` ("Details to follow").
 * It existed to keep three card bottoms on one line, which is filler
 * copy doing a layout job. Equal card heights come from the grid —
 * `align-items: stretch` on `.vm-offers-index` — so a card with no
 * destination simply carries no action row and the cards stay equal
 * anyway. Rule deleted rather than left unused.
 */

/* -- Detail: the two confirmed facts ------------------------------------ */

/*
 * Two facts, side by side, separated by one hairline. Not cards, not a
 * dashboard — at this quantity a boxed treatment would be four borders
 * around eleven words.
 */
.vm-offer-meta-band {
	padding-block: clamp(1.25rem, 2.2vw, 1.75rem);
}

/*
 * The row keeps `.vm-container`'s own width math untouched — capping the
 * WRAPPER at a reading measure is what centred it, twice now, because
 * `layout:"constrained"` centres any child that does not opt out. The
 * cap lives on the COLUMNS instead, so the two facts stay close enough
 * to read as a pair while the row's left edge stays on the same line as
 * every other element on the page.
 */
.vm-offer-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 27rem));
	justify-content: start;
	gap: clamp(1.5rem, 3vw, 3rem);
}

.vm-offer-meta.vm-offer-meta > * + * { margin-block-start: 0; }

.vm-offer-meta__item {
	min-width: 0;
	padding-inline-start: clamp(1.5rem, 3vw, 3rem);
	border-inline-start: 1px solid var(--wp--preset--color--border);
}

.vm-offer-meta__item:first-child {
	padding-inline-start: 0;
	border-inline-start: 0;
}

.vm-offer-meta__item.vm-offer-meta__item > * + * { margin-block-start: 0; }

.vm-offer-meta__label {
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vm-color-deep);
	margin: 0 0 0.45rem;
}

.vm-offer-meta__value {
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.35;
	color: var(--wp--preset--color--contrast);
	margin: 0;
	max-width: 26ch;
}

/* -- Detail: the offer itself ------------------------------------------- */

.vm-offer-includes-section {
	padding-block: clamp(1.75rem, 3.2vw, 2.5rem) clamp(2rem, 3.6vw, 2.75rem);
}

.vm-offer-includes-section h2 {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.18;
	margin: 0 0 0.5rem;
}

/* The detail page's opening is a page opening, so its title takes the
   larger step; the same class on the hub cards stays at card scale. */
.vm-offer--detail .vm-offer__title {
	font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.vm-offer--detail {
	padding-block: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.5rem, 2.8vw, 2.25rem);
}

/* Tighter than the hub card's copy: this is one column of six lines and
   the gaps were doing more work than the words. */
.vm-offer--detail .vm-offer__title { margin-bottom: 0.7rem; }
.vm-offer--detail .vm-offer__benefit { margin-bottom: 0.75rem; }
.vm-offer--detail .vm-offer__desc { margin-bottom: 1.25rem; }
.vm-offer--detail .vm-eyebrow { margin-bottom: 0.7rem; }

/* The photograph carries the larger share of the opening — a house is
   what is actually being sold, and the copy here is six lines. */
.vm-offer--detail .vm-offer__lead {
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.75rem);
}

.vm-offer--detail .vm-offer__media { aspect-ratio: 3 / 2; }

@media (max-width: 900px) {
	.vm-offer--detail .vm-offer__lead { grid-template-columns: 1fr; }
	.vm-offer--detail .vm-offer__media { aspect-ratio: 16 / 10; }
	.vm-offer-meta { grid-template-columns: 1fr; gap: 0; }
	.vm-offer-meta__item {
		padding-inline-start: 0;
		border-inline-start: 0;
		padding-block: 0.85rem;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}
	.vm-offer-meta__item:last-child { border-bottom: 0; }
}

/*
 * The link row must sit on the card's bottom edge so three cards of
 * unequal copy still end on one line. `margin-block-start: auto` is what
 * does that in a column flex container — and it is exactly what the
 * layout-gap override above zeroes, since `margin-block-start` IS the
 * top margin in horizontal writing. The override has to make the
 * exception explicit rather than the card silently losing its baseline.
 */
.vm-offer-tile.vm-offer-tile > .vm-offer-tile__link {
	margin-block-start: auto;
}

/* =======================================================================
 * TASK-013 (final visual correction, 2026-09-03)
 * -----------------------------------------------------------------------
 * Reviewed against the live pages, not a preview. Three findings, all
 * about how much room a thing takes versus how much it is worth.
 * ==================================================================== */

/* -- The inclusion list, rebuilt ---------------------------------------- */

/*
 * The old version was a 42ch list in the left third of the page with the
 * right two-thirds empty, closed by an italic "further inclusions are
 * being confirmed" paragraph — a section that read as unfinished twice
 * over: once in its emptiness and once in its own caption.
 *
 * It is now two columns across the full container. That is a
 * presentation decision with a content consequence worth stating: a
 * two-column list needs enough items to look chosen, and the ONLY
 * legitimate source of more items is the group's own Hotel More offer.
 * So the list demonstrates the real shape of an Extended Escape — rate,
 * morning service, pool service, hospitality tray, Wi-Fi, parking, late
 * departure, direct booking — and the caveat moves to ONE quiet line
 * under the heading, where it reads as a status rather than an apology.
 * Nothing with no Villas More equivalent at all (spa, gym, pool bar,
 * hotel garage, the 10% services saving) is listed.
 */
.vm-offer-includes__lede {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	margin: 0 0 1.5rem;
	max-width: 48ch;
}

.vm-offer-includes--wide {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 5vw, 5rem);
	row-gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: none;
}

.vm-offer-includes--wide li {
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	line-height: 1.55;
	color: var(--wp--preset--color--contrast);
	max-width: none;
}

/*
 * With an even item count each column's first row is a top edge, so both
 * columns need the opening hairline — `:first-child` alone would rule
 * only the left one and the two columns would start on different lines.
 */
.vm-offer-includes--wide li:first-child,
.vm-offer-includes--wide li:nth-child(2) {
	border-top: 1px solid var(--wp--preset--color--border);
}

/* -- Terms: quieter ----------------------------------------------------- */

/*
 * On an offer page the Terms row was the heaviest object on screen: a
 * filled Base panel with a full border, sitting directly under a list
 * drawn in hairlines. It now matches the list — hairline rules, no fill,
 * less padding — so it reads as the last row of the offer rather than
 * as a component of its own.
 */
.vm-offer__foot .vm-accordion { gap: 0; }

.vm-offer__foot .vm-accordion-item {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background-color: transparent;
}

.vm-offer__foot .vm-accordion-item__summary {
	padding-inline: 0;
	padding-block: 0.9rem;
	font-size: 0.95rem;
}

.vm-offer__foot .vm-accordion-item__content > * {
	padding-inline: 0;
}

.vm-offer__foot {
	margin-top: clamp(1.5rem, 2.6vw, 2rem);
}

.vm-offer__actions { margin-top: 1.25rem; }

@media (max-width: 781px) {
	/* One column on a phone: two 160px columns of prose is not a list,
	   it is two columns of wrapped fragments. The `nth-child(2)` top
	   hairline goes with the second column that no longer exists. */
	.vm-offer-includes--wide { grid-template-columns: 1fr; }
	.vm-offer-includes--wide li:nth-child(2) { border-top: 0; }
}


/* ==========================================================================
   TASK-022 — THE HEADER, BROUGHT IN LINE WITH THE APPROVED MOCKUP
   --------------------------------------------------------------------------
   2026-09-06. Everything in this section is the header and only the header.
   It is placed last among the live rules deliberately: the header is
   described in three earlier places in this file (the original Task 006-6
   section, the Task 012 corrective pass, and Task 016's type roles), and
   rewriting those in place would have made three separate diffs that are
   hard to read and easy to revert wrongly. One delimited section at the end
   means the whole of tonight's header change can be read — or removed — as
   one thing.

   The four corrections (§2 of the brief):

     1. NO GROUND AT REST. The bar inherits the page and carries a hairline.
        A ground appears only once the bar is sticky and has left the top.
     2. A WORDMARK, IN OLIVE, WITH A DESCRIPTOR under it.
     3. MORE AIR — 26px between navigation items, more tracking everywhere.
     4. A QUIETER BUTTON — outlined in warm grey, not filled in olive.

   THREE THINGS A LATER SESSION SHOULD KNOW BEFORE CHANGING ANY OF IT:

   * The ground at rest was removed ON PURPOSE, and it contradicts the Task
     012 corrective pass, which introduced `--vm-header-surface` (#F1EFE8)
     precisely because a header on `base` "dissolved into the page". The
     mockup Ana approved has no ground at rest, and the brief lists that as
     correction 1. The token is NOT deleted — the sticky bar is what uses it
     now, which is where the mockup does want a ground. If the bar reads as
     dissolved again at rest, the honest fix is to put `--vm-header-surface`
     back on `.vm-header` here, not to invent a third value.
   * `Check availability` is NOT in the bar at rest any more (decision 95).
     It appears in the sticky bar, and only while the page's own call to
     action is off screen. A page whose header is not sticky therefore never
     shows it — that is the decision, not a regression.
   * Olive on this ground: `accent` (#6C764F) measures 4.20:1 on
     `--vm-header-surface`, which is below AA for text at this size, so the
     wordmark uses `primary` (#3B402B) — 9.34:1 — instead. Measured, not
     estimated. See `docs/tasks/TASK-022.md`.
   ========================================================================== */


/* -- The measurements ----------------------------------------------------- */

/*
 * 74px at rest, 70px when the top strip carries part of the load, 64px once
 * the sticky bar has shortened. `--vm-header-height` keeps its existing job
 * (anchor scroll offset, and the stacking offset a future Property-local nav
 * is documented to use) — this only changes its value from 4.75rem to the
 * mockup's 74px.
 */
:root {
	--vm-header-height: 74px;
	--vm-header-height-strip: 70px;
	--vm-header-height-compact: 64px;
	--vm-header-strip-height: 38px;

	/*
	 * "Warm grey, between `border` and `muted`" — the brief's words for the
	 * outlined button. Mixed from the two palette entries themselves rather
	 * than eyedropped into a fourth hex value, so it follows the palette if
	 * the palette ever moves.
	 */
	--vm-header-rule: color-mix( in srgb, var( --wp--preset--color--border ) 55%, var( --wp--preset--color--muted ) );
}

@media (max-width: 781px) {
	:root {
		--vm-header-height: 64px;
	}
}

/* -- 1. No ground at rest; a hairline only -------------------------------- */

.vm-header {
	--vm-header-bg: transparent;
	--vm-header-border: var( --wp--preset--color--border );
}

.vm-header__inner {
	padding-block: 0;
	padding-inline: 28px;
	min-height: var( --vm-header-height );
	gap: clamp( 1rem, 2.5vw, 2.25rem );
}

.vm-header[ data-vm-top-strip="on" ] .vm-header__inner {
	min-height: var( --vm-header-height-strip );
}

/* -- 2. The wordmark ------------------------------------------------------ */

/*
 * A ring, the name, and the descriptor under it. The ring is empty and
 * `aria-hidden`: the mockup gives it a size and a border and nothing inside,
 * and Task 022 was told not to invent. The link's accessible name is the
 * site name plus the descriptor, announced once.
 *
 * The whole lockup is type, which is the point — a descriptor cannot be
 * added to the PNG the header rendered before tonight. The image path is
 * still there and still what a Property page uses; see
 * `blocks/header/render.php`.
 */
.vm-brand--wordmark {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	line-height: 1;
	text-decoration: none;
	flex: 0 0 auto;
}

.vm-brand__mark {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border: 1.5px solid var( --wp--preset--color--primary );
	border-radius: 999px;
	transition: width 0.2s ease, height 0.2s ease, border-color 0.25s ease;
}

.vm-brand__text {
	display: flex;
	flex-direction: column;
	/*
	 * A fixed line box on both lines, so the bar's height is set by
	 * `min-height` and not by whichever face happens to have loaded.
	 * Marcellus arrives with `font-display: swap` (assets/fonts/fonts.css),
	 * and this is what keeps that swap from moving the bar vertically.
	 */
	line-height: 1.1;
}

.vm-brand__name {
	font-family: var( --wp--preset--font-family--display );
	font-size: 1.02rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var( --wp--preset--color--primary );
	white-space: nowrap;
}

.vm-brand__descriptor {
	font-family: var( --wp--preset--font-family--display );
	/*
	 * The mockup says 0.56rem. That is 8.96px, which is below what this
	 * descriptor can be read at once it is also tracked out by 0.2em — and
	 * "legible" is one of the brief's own acceptance checks. 0.625rem (10px)
	 * is the smallest size at which it holds. Recorded as a departure.
	 */
	font-size: 0.625rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var( --wp--preset--color--muted );
	margin-top: 3px;
	white-space: nowrap;
}

/* Over a photograph, the whole lockup goes to the light treatment — the
   same rule the image logo already follows, so a transparent Property
   header does not lose its identity. */
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand__name,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand__descriptor {
	color: var( --wp--preset--color--on-primary );
}

.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand__mark {
	border-color: var( --wp--preset--color--on-primary );
}

/* -- 3. More air in the navigation ---------------------------------------- */

/*
 * 26px between items, and the tracking opened from 0.11em to 0.16em. The gap
 * is set on the list as well as on the block, because core/navigation
 * distributes its own `--wp--style--block-gap` on the inner container and
 * setting only the outer element leaves that untouched.
 */
.vm-header .wp-block-navigation,
.vm-header .wp-block-navigation .wp-block-navigation__container {
	gap: 26px;
}

.vm-header .wp-block-navigation a.wp-block-navigation-item__content {
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	/* The horizontal padding was doing the spacing job; `gap` does it now,
	   so the padding would double it. Vertical padding stays as the hit
	   area. */
	padding: 0.55rem 0;
	color: var( --wp--preset--color--contrast );
	line-height: 1.1;
}

/* -- 4. The quieter button ------------------------------------------------ */

/*
 * Online check-in, outlined. `vm-cta--primary` is deliberately NOT on it:
 * this is not the site's primary action and must not inherit the filled
 * olive treatment.
 *
 * Marcellus, uppercase, per Task 016's display role — a header button label
 * at 0.72rem tracked to 0.1em is a small label, which is exactly what that
 * role is for. It is the one place tonight where a button leaves
 * theme.json's body-font default, and it is scoped to the header only.
 */
.vm-header__actions .vm-header__cta--checkin .wp-block-button__link,
.vm-header__actions .vm-cta--primary .wp-block-button__link {
	font-family: var( --wp--preset--font-family--display );
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.56rem 1.05rem;
	border-radius: 2px;
}

.vm-header__actions .vm-header__cta--checkin .wp-block-button__link {
	background-color: transparent;
	color: var( --wp--preset--color--contrast );
	border: 1px solid var( --vm-header-rule );
	transition: border-color 0.2s ease, color 0.2s ease;
}

.vm-header__actions .vm-header__cta--checkin .wp-block-button__link:hover,
.vm-header__actions .vm-header__cta--checkin .wp-block-button__link:focus-visible {
	background-color: transparent;
	border-color: var( --wp--preset--color--muted );
	color: var( --wp--preset--color--primary );
}

/* Over a photograph the outline and its label follow the light treatment. */
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__cta--checkin .wp-block-button__link {
	color: var( --wp--preset--color--on-primary );
	border-color: color-mix( in srgb, var( --wp--preset--color--on-primary ) 55%, transparent );
}

/* -- Check availability: in the sticky bar, and only there ---------------- */

/*
 * Decision 95, stated as two rules. `display` rather than the existing
 * opacity fade, because the button must not hold layout width in a bar it
 * is not part of. The older `.vm-header--cta-idle` fade above still applies
 * within the compact state and is left alone.
 *
 * The failure mode is worth naming: with JavaScript off, `.vm-header--compact`
 * is never added and this button never appears. That is acceptable only
 * because the same call to action is in the page itself, twice — the hero
 * and the section foot — which is the reason decision 95 could take it out
 * of the bar at all.
 */
/*
 * The specificity here is not decoration. `core/buttons` emits
 * `.wp-block-buttons.is-layout-flex { display: flex }` from core's own
 * block-supports stylesheet, which is two classes — a single-class rule
 * loses to it and the button stays on screen. Measured on the live page,
 * not assumed. Hence `.vm-header__actions` in the selector, and `flex`
 * rather than `block` when it comes back, so the button row keeps core's
 * own layout.
 */
.vm-header .vm-header__actions .vm-header__cta--conversion {
	display: none;
}

.vm-header--compact:not( .vm-header--cta-idle ) .vm-header__actions .vm-header__cta--conversion {
	display: flex;
}

/* -- The sticky bar, once it has left the top ----------------------------- */

/*
 * Shorter, with a ground and the quiet shadow token. `--vm-header-surface`
 * is the Task 012 value, kept and now used where the mockup asks for it.
 */
.vm-header--compact {
	--vm-header-bg: var( --vm-header-surface );
	--vm-header-border: color-mix( in srgb, var( --wp--custom--ink ) 10%, transparent );
	box-shadow: var( --wp--preset--shadow--quiet );
}

.vm-header--compact .vm-header__inner {
	min-height: var( --vm-header-height-compact );
}

.vm-header--compact .vm-brand__descriptor {
	display: none;
}

.vm-header--compact .vm-brand__mark {
	width: 26px;
	height: 26px;
}

/* The strip is part of the bar at rest, not of the shortened one. */
.vm-header--compact .vm-header__top {
	display: none;
}

/* And with the strip gone, the bar takes the compact height rather than the
   70px it uses while the strip is carrying part of the load. Stated
   explicitly because the strip's own rule is one selector more specific
   than the compact one and would otherwise hold the bar at 70px —
   measured on the live page. */
.vm-header[ data-vm-top-strip="on" ].vm-header--compact .vm-header__inner {
	min-height: var( --vm-header-height-compact );
}

/* Online check-in steps back to a quiet text link once the filled
   Check availability is beside it — two outlined-or-filled objects in a
   64px bar is one too many. */
.vm-header--compact .vm-header__actions .vm-header__cta--checkin .wp-block-button__link {
	background-color: transparent;
	border-color: transparent;
	padding-inline: 0.35rem;
	color: var( --wp--preset--color--muted );
}

.vm-header--compact .vm-header__actions .vm-header__cta--checkin .wp-block-button__link:hover,
.vm-header--compact .vm-header__actions .vm-header__cta--checkin .wp-block-button__link:focus-visible {
	color: var( --wp--preset--color--primary );
	border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
	.vm-header,
	.vm-brand__mark {
		transition: none;
	}
}

/* -- The top strip (variant B) -------------------------------------------- */

/*
 * §2b: B is A plus a thin strip above, so it is a switch on one header, not
 * a second header. The switch is a block attribute — Site Editor →
 * Template Parts → Header → "Brand & top strip" → Top strip. Off is A.
 *
 * The left-hand side is EMPTY until someone types a phone and an email into
 * the two fields beside that switch. No contact details exist anywhere in
 * this project yet (the footer still reads "Phone — to be confirmed"), and
 * inventing one was explicitly out of scope.
 */
.vm-header__top {
	background-color: var( --wp--preset--color--surface );
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.vm-header__top-inner {
	max-width: var( --wp--style--global--wide-size, 1210px );
	margin-inline: auto;
	padding-inline: 30px;
	min-height: var( --vm-header-strip-height );
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	box-sizing: border-box;
}

.vm-header__top-left,
.vm-header__top-right {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-width: 0;
}

.vm-header__top-item {
	font-family: var( --wp--preset--font-family--display );
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --wp--preset--color--muted );
	text-decoration: none;
	white-space: nowrap;
}

.vm-header__top-item:hover,
.vm-header__top-item:focus-visible {
	color: var( --wp--preset--color--primary );
}

/* With the strip on, Online check-in has MOVED — it is not in both bars.
   Same specificity note as the conversion CTA above. */
.vm-header[ data-vm-top-strip="on" ] .vm-header__actions .vm-header__cta--checkin {
	display: none;
}

/* …except in the shortened bar, where the strip itself is gone and the link
   comes back down beside Check availability. */
.vm-header[ data-vm-top-strip="on" ].vm-header--compact .vm-header__actions .vm-header__cta--checkin {
	display: flex;
}

@media (max-width: 600px) {
	/* A 38px strip of 11px tracked capitals is not usable on a phone; the
	   details it carries are in the footer. */
	.vm-header__top {
		display: none;
	}
}

/* -- Search: the icon comes back when search does ------------------------- */

/*
 * §2c, and CLOSED by Task 023 on 2026-09-07 — the day named in the note
 * that used to sit here has arrived. Search is real: `templates/search.html`
 * renders the results, and the header carries `core/search` in its
 * icon-only mode instead of the button that did nothing. The one
 * declaration that hid the icon is gone, which is all that was asked of a
 * later session. The visual treatment it used to have — the circle, the
 * hairline, the 2.25rem box — was moved onto the real block rather than
 * thrown away; see the Task 023 section below.
 */

/* -- Focus, visible ------------------------------------------------------- */

/*
 * §6.7. Every focusable thing in the header shares one ring, drawn outside
 * the element so a 1px outlined button does not appear to change size when
 * it takes focus.
 */
.vm-header a:focus-visible,
.vm-header button:focus-visible,
.vm-header .wp-block-button__link:focus-visible,
.vm-header .wp-block-navigation a.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var( --wp--preset--color--primary );
	outline-offset: 3px;
	border-radius: 2px;
}

.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) a:focus-visible,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) button:focus-visible,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-button__link:focus-visible {
	outline-color: var( --wp--preset--color--on-primary );
}

/* -- The collapsed navigation, at the new typography ---------------------- */

/*
 * §5. A mobile menu already exists and works: core/navigation with
 * `overlayMenu: "mobile"`, collapsing below 960px into a full-screen dialog
 * (menu ref 292). Task 022 was told to bring an existing one in line with
 * the new typography and spacing and to do nothing more, so that is all
 * this does — the overlay's own items were inheriting the desktop
 * navigation's 0.82rem/0.16em, which is too tight for a stacked list at
 * touch size.
 *
 * NOT DONE, and still true from Task 012: "Check availability" is not
 * inside the mobile menu. That is an edit to the Navigation entity in the
 * database, not something this stylesheet can reach.
 */
.vm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	padding-block: 0.65rem;
}

.vm-header .wp-block-navigation__responsive-container.is-menu-open {
	box-shadow: var( --wp--preset--shadow--floating );
}

@media (max-width: 600px) {
	/*
	 * The bar on a phone is the wordmark and the menu button, and nothing
	 * else. Measured, not assumed: with Online check-in in the row the
	 * inner content runs to 392px, so at 320, 375 and 390 the button was
	 * clipped off the right edge. That is the same squeeze Task 006-6
	 * chased twice and the same conclusion the Task 012 corrective pass
	 * reached for the other button — the existing rule above hides
	 * `.vm-cta--primary` here for exactly this reason, and Online
	 * check-in now joins it.
	 *
	 * CONSEQUENCE, AND IT IS AN OPEN ITEM, NOT A DECISION: neither header
	 * action is reachable on a phone. Task 012 already recorded the fix —
	 * both belong INSIDE the mobile menu — and it is an edit to the
	 * Navigation entity (menu ref 292) in the database, which no
	 * stylesheet can make. Tonight adds a second action to that same
	 * outstanding edit; see `docs/tasks/TASK-022.md`.
	 */
	.vm-header .vm-header__actions .vm-header__cta--checkin {
		display: none;
	}

	/* The descriptor moved to its own 480px breakpoint in Task 023 — see
	   that section below. It is legible between 481 and 600px, and it was
	   this rule, not the width, that was taking it away too early. */

	.vm-header__inner {
		padding-inline: 18px;
	}
}


/* ==========================================================================
   TASK-023 — HEADER FOLLOW-UPS
   --------------------------------------------------------------------------
   2026-09-07. Continues Task 022, whose section sits directly above this one.
   Four parts, in the order they were built: A the sticky header, B mobile,
   D search, E the ring. Part C (contact details as data in the plugin) was
   NOT built — see `docs/tasks/TASK-023.md` §0.
   ========================================================================== */


/*
 * A note on the literals that remain in this section, because check 8 of the
 * brief asks for spacing through theme variables and some numbers below are
 * still numbers.
 *
 * Layout spacing goes through `--wp--preset--spacing--*`, and does.
 * What stays literal is deliberately not layout spacing:
 *
 *   1px, 2px          a hairline and the button radius theme.json itself
 *                     declares — structural, not spacing
 *   32px              WordPress's own admin-bar height, which is its number
 *   480/600/782px     breakpoints, which are not spacing at all
 *   0.68–0.85rem      the header's own chrome type scale, established from
 *                     the approved mockup in Task 022. Snapping these to the
 *                     `small` preset (0.875rem) would make the header
 *                     disagree with the mockup it was just aligned to, so
 *                     consistency with that scale is the better rule here.
 *   control padding   a button's own inner padding, which belongs to the
 *                     control and follows the header's 0.56/1.05rem pattern
 *
 * If the design system later grows a chrome type scale, these are the eleven
 * values that move onto it.
 */

/* -- A. Why the sticky header never worked, and what fixes it ------------- */

/*
 * TWO causes, both real, and the header could not stick until both were
 * dealt with. Neither is a mistake anyone made in the header itself, which
 * is why Task 015 and Task 022 both looked at `position` and found nothing
 * wrong with it.
 *
 * CAUSE 1 — `.wp-site-blocks { overflow-x: hidden }` turned the page's own
 * wrapper into a scroll container, so every sticky element on the site was
 * measuring itself against a container that never scrolls. Fixed at that
 * rule, near the top of this file, where the reasoning is written out.
 *
 * CAUSE 2 — the one this block fixes. A sticky element can only travel
 * inside its containing block, which is its parent's content box. The
 * Header template part renders as
 *
 *     <div class="wp-site-blocks">
 *       <header class="wp-block-template-part">   <-- 74px tall
 *         <header class="vm-header">              <-- the sticky element
 *
 * and that wrapper is exactly as tall as the header inside it. Travel
 * distance: zero. The header was pinned to the top of a box that scrolls
 * away with the page, so it left the screen with it — measured on the live
 * page in Task 022 at scroll 1190, where the bar's top was at −1158px.
 *
 * THE FIX, and why it is this one. The stickiness moves up one level, to
 * the wrapper, whose containing block IS `.wp-site-blocks` and therefore the
 * whole page. Nothing is restructured: no template is edited, no markup
 * changes, the header block is untouched. It is one rule.
 *
 * `:has()` is what keeps it honest. Without it the wrapper would stick on
 * every page whatever the Header's own setting says, and stickiness on this
 * site is deliberately a per-page content decision (`_vm_header_sticky`,
 * Task 006-6). With it, the rule fires only when the header inside actually
 * says it is sticky. The same selector also excludes the TRANSPARENT
 * appearance, which is what a Property page uses: there the header resolves
 * to `position: fixed`, it already works, and it must keep working — so the
 * rule deliberately does not apply to it at all. `:has()` is already load
 * bearing in this project (decision 111).
 *
 * The failure mode if `:has()` is unsupported is the behaviour of yesterday:
 * the header scrolls away. Nothing breaks, nothing overlaps.
 */
.wp-site-blocks > header.wp-block-template-part:has( > .vm-header[ data-vm-sticky="on" ]:not( [ data-vm-appearance="transparent" ] ) ) {
	position: sticky;
	top: var( --vm-sticky-top, 0px );
	z-index: 100;
}

/*
 * The admin bar is fixed over the top 32px of the window for a logged-in
 * editor, so a bar pinned to `top: 0` would spend the rest of the session
 * half-hidden underneath it — and every visual check of this header is done
 * logged in. Below 783px WordPress's admin bar is absolutely positioned and
 * scrolls away with the page, so the offset goes back to zero there.
 *
 * A token of its own rather than reusing `--vm-admin-bar`: that one carries
 * 46px on mobile for the hero's height maths, which is the right number for
 * a height calculation and the wrong number for a sticky offset.
 */
:root {
	--vm-sticky-top: 0px;
}

body.admin-bar {
	--vm-sticky-top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--vm-sticky-top: 0px;
	}
}


/* -- B. Mobile: the actions move into the menu ---------------------------- */

/*
 * THE PROBLEM Task 022 left behind. Putting Online check-in in the bar ran
 * the header's content to 392px wide, so on a phone the button was clipped
 * off the right edge; it was hidden below 600px, which fixed the clipping
 * and left a phone with no way to check in or to book from the header at
 * all. On an accommodation site, where phones are most of the traffic, that
 * is the worse of the two bugs.
 *
 * THE SHAPE THIS PART BUILDS:
 *
 *   at rest, on a phone     the ring and the wordmark left, the menu right
 *   menu open               BOTH actions, first, above the navigation links
 *   sticky bar, scrolled    Check availability, narrower, and nothing else
 *
 * Task 012 recorded that the proper fix runs through the navigation menu,
 * which lives in the database. It does not have to. The two actions are
 * already in the header as editable blocks; `blocks/header/view.js` moves
 * that one element into the open dialog and puts it back on close. One
 * source of truth, still editable by marketing in the Site Editor, and the
 * database is not touched. The buttons land INSIDE the dialog rather than
 * beside it deliberately — core's overlay is `aria-modal`, and anything
 * left outside it is unreachable by keyboard while it is open.
 *
 * Without JavaScript the menu still opens and the links still work; the two
 * actions simply stay where they were. Additive, like everything else in
 * this header.
 */

/* The menu button goes to the right-hand end of the row on a phone. `order`
   rather than a markup change: the actions group keeps its place in the
   document, so the tab order is still wordmark → actions → menu, which is
   the order they are read in. */
@media (max-width: 600px) {
	.vm-header .wp-block-navigation {
		order: 1;
		flex-grow: 0;
		margin-inline-start: auto;
	}
}

/*
 * The descriptor's own breakpoint. Task 022 took it away at 600px, which
 * was too early — at 481px and up it is still readable and it is half the
 * mark. Below 480px it is 10px of 0.2em-tracked capitals on a 320px line,
 * where it stops being legible and only takes room from the menu button.
 */
@media (max-width: 480px) {
	.vm-brand__descriptor {
		display: none;
	}
}

/*
 * The actions, once view.js has moved them inside the dialog.
 *
 * The specificity is four classes on purpose, and the doubled class on the
 * same element is what buys the fourth: the rules that hide these two
 * buttons in the bar (Task 012's mobile rule, Task 022's conversion rule and
 * its top-strip rule) reach three classes, and one of them keys off an
 * attribute that is still set while the menu is open. A three-class rule
 * here would lose to the top-strip rule and the menu would open with only
 * one of the two actions in it.
 */
.vm-header__actions--in-menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var( --wp--preset--spacing--20 );
	margin-block-end: var( --wp--preset--spacing--30 );
	padding-block-end: var( --wp--preset--spacing--30 );
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.vm-header .vm-header__actions--in-menu.vm-header__actions .vm-header__cta--checkin,
.vm-header .vm-header__actions--in-menu.vm-header__actions .vm-header__cta--conversion {
	display: flex;
}

/* Full width, and at a size a thumb can hit — the header's 0.72rem chrome
   sizing is for a 74px bar, not for the primary action on a phone. */
.vm-header__actions--in-menu .wp-block-button,
.vm-header__actions--in-menu .wp-block-buttons {
	width: 100%;
}

.vm-header .vm-header__actions--in-menu .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 0.8rem;
	padding-block: 0.95rem;
}

/* Check availability is the primary action and keeps its fill; Online
   check-in stays the quieter outlined one, exactly as in the bar. */
.vm-header .vm-header__actions--in-menu .vm-header__cta--checkin .wp-block-button__link {
	border-color: var( --vm-header-rule );
	color: var( --wp--preset--color--contrast );
}

/*
 * On a phone the sticky bar is the only persistent route to booking, so it
 * keeps Check availability — narrower than on a desktop, and with no icon,
 * because at this width the label is the whole affordance.
 *
 * It appears through Task 022's existing rule, which is more specific than
 * Task 012's mobile hide; this only sizes it. Online check-in is NOT
 * brought back here — two actions do not fit a 64px phone bar, and it is
 * one tap away in the menu beside it.
 */
@media (max-width: 600px) {
	.vm-header--compact .vm-header__actions .vm-header__cta--conversion .wp-block-button__link {
		padding-inline: 0.8rem;
		font-size: 0.68rem;
		letter-spacing: 0.08em;
	}
}


/* -- D. Search, for real -------------------------------------------------- */

/*
 * Task 022 found a magnifier that led nowhere and hid it with one
 * declaration. This part replaces it rather than restoring it: the header
 * now carries `core/search` in its icon-only mode, and `templates/search.html`
 * renders the results. Core blocks throughout — no plugin, no custom search,
 * no JavaScript of ours. The expanding field is core's own behaviour.
 *
 * The ring, the hairline and the 2.25rem box are the placeholder's visual,
 * moved onto the real block up in the Header section rather than rewritten,
 * so nothing about the header's resting composition changes.
 */
.vm-header__search {
	margin: 0;
	display: flex;
	align-items: center;
}

.vm-header__search .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	background: transparent;
	gap: 0.5rem;
}

/*
 * Only styled once core has opened it. While the field is hidden, core sets
 * its width and padding to zero and animates them; adding padding here would
 * fight that and leave a sliver of border showing in the resting bar.
 */
.vm-header__search:not( .wp-block-search__searchfield-hidden ) .wp-block-search__input {
	font-family: var( --wp--preset--font-family--body );
	font-size: 0.85rem;
	color: var( --wp--preset--color--contrast );
	background-color: var( --wp--preset--color--white );
	border: 1px solid var( --vm-header-rule );
	border-radius: 2px;
	padding: 0.4rem 0.65rem;
}

/* The results page. Everything below is the type, spacing and rule colour
   the rest of the site already uses — no new scale, no one-off values. */
.vm-search-results .vm-search-form {
	margin-block: var( --wp--preset--spacing--30 ) var( --wp--preset--spacing--40 );
}

.vm-search-results .wp-block-search__input {
	font-family: var( --wp--preset--font-family--body );
	color: var( --wp--preset--color--contrast );
	background-color: var( --wp--preset--color--white );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 2px;
	padding: 0.7rem 0.9rem;
}

.vm-search-results .wp-block-search__button {
	font-family: var( --wp--preset--font-family--display );
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background-color: var( --vm-color-deep );
	color: var( --vm-color-on-accent );
	border: 0;
	border-radius: 2px;
	padding: 0.7rem 1.25rem;
}

.vm-search-results .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vm-search-results .wp-block-post-template > li {
	padding-block: clamp( 1.1rem, 2vw, 1.6rem );
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.vm-search-results .wp-block-post-title {
	margin-block: 0 0.4rem;
}

.vm-search-results .wp-block-post-excerpt {
	margin-block: 0;
	color: var( --wp--custom--ink );
}

.vm-search-results__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var( --wp--preset--spacing--20 );
	margin-block-start: var( --wp--preset--spacing--40 );
	font-family: var( --wp--preset--font-family--display );
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Search travels into the menu with the rest of the actions on a phone, so
   the field is reachable there rather than absent below 600px. */
.vm-header .vm-header__actions--in-menu.vm-header__actions .vm-header__search {
	display: flex;
}

/* The focus ring the header already gives its links and buttons, extended to
   the search field — a text input takes focus and must show it too. */
.vm-header input:focus-visible,
.vm-search-results input:focus-visible,
.vm-search-results .wp-block-search__button:focus-visible {
	outline: 2px solid var( --wp--preset--color--primary );
	outline-offset: 3px;
	border-radius: 2px;
}


/* -- E. The ring carries the olive ---------------------------------------- */

/*
 * Task 022 put the whole lockup in `primary` (#3B402B) because `accent`
 * (#6C764F) could not carry text safely, and the result was an olive mark
 * that reads as near-black. This splits the two roles by the rule that
 * actually applies to each.
 *
 * MEASURED, from the hex values, against both grounds the header ever has —
 * `base` (#F8F7F3) at rest and `--vm-header-surface` (#F1EFE8) in the sticky
 * bar. The worst case governs, because the same mark renders on both:
 *
 *                     on base      on the sticky bar
 *   accent  #6C764F     4.51            4.20
 *   primary #3B402B    10.02            9.34
 *
 * The name stays `primary`: text needs 4.5, and although `accent` scrapes
 * past it at rest, 4.20 in the sticky bar fails, and a wordmark that is
 * legible only until the guest scrolls is not legible.
 *
 * The ring takes `accent`: WCAG 1.4.11 asks 3:1 of a graphical object that
 * carries meaning, and 4.20 is the worst it ever gets. It is the one
 * genuinely olive element in the header, and it is the element that can
 * afford to be.
 *
 * The ring stays EMPTY. A house or a key inside a circle is generic hotel
 * iconography; an empty ring reads as a mark, and it renders identically at
 * 30px, at 26px and at whatever size comes next.
 */
.vm-brand__mark {
	border-color: var( --wp--preset--color--accent );
}


/* ==========================================================================
   TASK-023-1 — HEADER POLISH, FROM ANA'S VISUAL PASS
   --------------------------------------------------------------------------
   2026-09-08. Continues Task 023, whose section sits directly above this one,
   and is placed after it for the same reason that one was placed last: the
   header is now described in five places in this file, and one delimited
   section per pass is the only way the history stays readable and revertible.

   Seven findings from Ana looking at the real site, in her order of severity.
   The two that were not visible from the code are worth naming here:

   * THE LIVE HEADER WAS NOT THE THEME'S HEADER. `parts/header.html` had been
     overridden by a Site Editor copy saved into the database on 2026-09-08 at
     11:17, when the top strip and `sales@hotel-more.hr` were entered. That
     copy predates Task 023, which is why the dead magnifier was still on the
     page and Task 023's real search never appeared. The saved copy was
     brought back in line with this file on Ana's instruction; the exact
     previous markup is preserved in `docs/tasks/TASK-023-1.md` §3.
   * THE SITE TITLE IS NO LONGER EMPTY. Settings -> General now reads
     "Villas More", so the fallback in `blocks/header/render.php` and every
     note in this project that says the title is blank are out of date. The
     Site Logo is set too, attachment 300 — which is what makes finding 5
     buildable at all.
   ========================================================================== */


/* -- 1. Light, legible type over the hero photograph ---------------------- */

/*
 * THE BUG, AND IT IS ONE LINE. Task 022 rewrote the navigation's typography
 * with `color: var( --wp--preset--color--contrast )` written literally into
 * the rule. The header's own light/dark machinery works through
 * `--vm-header-text`, and the rule that sets that token to the light value
 * sits 5,300 lines earlier. Same weight, later in the file, so the literal
 * won and every navigation link on a Property page rendered at #201E1C over
 * the photograph.
 *
 * MEASURED on the Villa Filaus hero — the brightest case Ana named — by
 * sampling the actual hero pixels behind the bar (16,046 samples across the
 * bar's own height) and compositing them the way the browser does:
 *
 *                                      median      brightest 5%
 *   contrast #201E1C  (what shipped)   1.96:1          1.04:1
 *   base     #F8F7F3  (this fix)       7.92:1          3.29:1
 *
 * 1.96:1 is not "hard to read", it is invisible. The fix is to make the
 * light state mean what it says, and to say it once, at a weight that the
 * literals cannot beat.
 *
 * WHY `base` AND NOT `on-primary`. The light treatment built in Task 008-2
 * used `on-primary` (#FFFFFF). Ana's finding names `base` (#F8F7F3), which
 * is the collection's own warm off-white and the ground the rest of the site
 * is built on. The measured difference over a photograph is under 0.1 of a
 * contrast point; the reason to prefer it is that pure white is not a colour
 * this palette uses for type anywhere else.
 *
 * The state is keyed on `[data-vm-navigation="light"]:not(.vm-header--scrolled)`
 * rather than on `[data-vm-appearance="transparent"]`, because that pair IS
 * how this theme expresses "over media" — `villas_more_resolve_header_state()`
 * sets Light automatically from Transparent — and keying on appearance alone
 * would override a page that had deliberately chosen dark type over a pale
 * image.
 */
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) {
	--vm-header-text: var( --wp--preset--color--base );
	--vm-header-text-hover: var( --wp--preset--color--base );
}

.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation a.wp-block-navigation-item__content,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation a.wp-block-navigation-item__content:hover,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation a.wp-block-navigation-item__content:focus-visible,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand a,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand__name,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand__descriptor,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-search-toggle,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__search .wp-block-search__button,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-property-nav__link,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__cta--checkin .wp-block-button__link {
	color: var( --wp--preset--color--base );
}

/* The ring and the outlined button draw their edge from the same value, so
   the whole lockup moves together rather than leaving a dark hairline
   around light type. */
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-brand__mark {
	border-color: var( --wp--preset--color--base );
}

.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__cta--checkin .wp-block-button__link {
	border-color: color-mix( in srgb, var( --wp--preset--color--base ) 55%, transparent );
}

/*
 * THE SCRIM, AND WHAT IT DOES AND DOES NOT FIX.
 *
 * Light type is comfortable over the median of this photograph and fails
 * over its bright sky. Ana ruled out a dark ground and capped the remedy at
 * "a very soft top-down gradient from about rgba(32,30,28,0.35) to
 * transparent over roughly the header's own height. Nothing heavier." That
 * is exactly what this is, and the measurement of what it buys, over the
 * navigation's own horizontal band on the Filaus hero:
 *
 *                        median     brightest 5%   share of the band below AA
 *   no scrim             5.78:1        2.63:1                33%
 *   0.35 scrim (this)    6.53:1        3.01:1                20%
 *
 * So it helps, and it does not close the gap: roughly a fifth of the band
 * behind the navigation is still below 4.5:1 on this particular hero. A
 * heavier scrim barely moves it either — at 0.65 the figure is still 13.5% —
 * because compositing a dark tint at low alpha over blown-out sky cannot
 * recover much. The honest levers left are a text shadow on the light type,
 * or choosing hero crops whose top band is not bright sky. Both are Ana's
 * call, not a stylesheet's, and both are recorded in `QUESTIONS.md`.
 *
 * Drawn on the header rather than on `.vm-header__inner`, because the inner
 * is constrained to `wide-size` and a scrim that stops short of the window's
 * edges would be visible as a band. With the top strip on, the gradient
 * starts below it: that strip has its own opaque ground, so the darkest end
 * of the gradient would otherwise be spent behind something you cannot see
 * through.
 */
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled )::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	bottom: 0;
	background-image: linear-gradient( to bottom, rgba( 32, 30, 28, 0.35 ), rgba( 32, 30, 28, 0 ) );
	pointer-events: none;
	z-index: 0;
}

.vm-header[ data-vm-top-strip="on" ][ data-vm-navigation="light" ]:not( .vm-header--scrolled )::before {
	top: var( --vm-header-strip-height );
}

/* The bar and the strip stack above the scrim. Stated rather than left to
   a negative z-index, which behaves differently inside a stacking context
   the header itself creates with its own `z-index: 100`. */
.vm-header__top,
.vm-header__inner {
	position: relative;
	z-index: 1;
}


/* -- 2. The sticky bar clears the WordPress admin bar --------------------- */

/*
 * Task 023 gave the sticky wrapper `--vm-sticky-top: 32px` and that half of
 * it has worked since. What it did not cover is the OTHER sticky header on
 * this site: a Property page's header is Transparent, which resolves to
 * `position: fixed` on a completely different rule, and that one still said
 * `top: 0`. A fixed element ignores the `html { margin-top }` WordPress uses
 * to make room for the admin bar, so on every Property page the bar sat
 * under the black strip and only its lower half was visible.
 *
 * GUESTS NEVER SEE THIS. The admin bar exists only for a logged-in user, and
 * `--wp-admin--admin-bar--height` is only ever emitted for one. It matters
 * because it makes reviewing the header impossible, which is the one thing
 * this header currently needs most.
 *
 * The literal 32px is gone: the offset now comes from WordPress's own custom
 * property with a zero fallback, per Ana's finding, so it follows WordPress
 * rather than restating it. Below 783px the admin bar is absolutely
 * positioned and scrolls away with the page, so the offset goes back to zero
 * there — keeping the value would leave a permanent empty strip under a bar
 * that is no longer there. That zeroing is Task 023's, and it is kept.
 */
body.admin-bar {
	--vm-sticky-top: var( --wp-admin--admin-bar--height, 0px );
}

@media (max-width: 782px) {
	body.admin-bar {
		--vm-sticky-top: 0px;
	}
}

.vm-header[ data-vm-appearance="transparent" ][ data-vm-sticky="on" ] {
	top: var( --vm-sticky-top, 0px );
}


/* -- 3. One call to action in the sticky bar ------------------------------ */

/*
 * `DECISIONS.md` 95 says the resting bar carries Online check-in and the
 * sticky bar carries Check availability, NEVER BOTH. Task 022 implemented it
 * by turning Online check-in into a quiet text link in the sticky bar rather
 * than removing it, and Task 023's top-strip rule brought it back down into
 * the shortened bar as well. The result on screen was two calls to action
 * side by side in a 64px bar, which is what 95 exists to prevent.
 *
 * This is a CLARIFICATION of 95, not a new decision. Online check-in is not
 * lost: it stays in the resting bar at the top of the page, in the top strip
 * when that is on, and inside the menu — on a phone through Task 023's
 * existing move into the overlay dialog, and on a Property-page desktop
 * through the menu button finding 7 adds below.
 *
 * On the homepage's desktop sticky bar there is no menu button, by finding
 * 7's own instruction that non-Property pages keep the collection navigation
 * as it is. Online check-in is therefore simply absent from that one bar,
 * which is precisely what 95 asks for.
 *
 * Two selectors because Task 022 wrote two: the second has to match the
 * top-strip rule's weight to beat it. MEASURED, and it caught a real bug on
 * the way: at five classes this rule also outweighed Task 023's four-class
 * in-menu rule, so Online check-in vanished from the opened menu as well as
 * from the bar — the one place finding 3 says it must be. `:not()` states
 * the exception here rather than inflating the other rule, so the reason
 * sits beside the rule that needs it.
 */
.vm-header--compact .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__cta--checkin,
.vm-header[ data-vm-top-strip="on" ].vm-header--compact .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__cta--checkin {
	display: none;
}


/* -- 4. Search in the mobile bar, in place of Online check-in ------------- */

/*
 * Task 022 hid the search icon below 600px so the row would not overflow,
 * and Task 023 left that alone because search then moved into the menu with
 * the rest of the actions. Ana would rather see it: on a phone the bar is
 * the wordmark, the search icon and the menu button, and Online check-in
 * lives in the menu (finding 3).
 *
 * MEASURED, because this is the same squeeze that has been fixed twice
 * before. At 320px the resting bar now holds the wordmark (~140px), the
 * search circle (36px) and the menu button (36px) — it fits, with room.
 * What does NOT fit is all of that plus Check availability, which the
 * shortened bar shows on a phone as the only persistent route to booking
 * (Task 023's deliberate choice, and Ana's "mobile is unchanged"). So the
 * icon stands down in the shortened bar and stays reachable one tap away
 * inside the menu, where the whole actions group already travels.
 *
 * `.vm-search-toggle` is deliberately NOT brought back: that is the dead
 * placeholder button, and finding 4 says to include search only if it works.
 */
@media (max-width: 600px) {
	.vm-header .vm-header__search {
		display: flex;
	}

	.vm-header--compact .vm-header__search {
		display: none;
	}

	/* The icon belongs beside the menu button, not adrift between the
	   wordmark and it. `order` and margins only — no markup change. */
	.vm-header .vm-header__actions {
		margin-inline-start: auto;
	}

	.vm-header .wp-block-navigation {
		margin-inline-start: var( --wp--preset--spacing--20 );
	}
}


/* -- 6. The top strip's contact details are contact details --------------- */

/*
 * The strip rendered `SALES@HOTEL-MORE.HR` in Marcellus, uppercased and
 * tracked to 0.1em, because it shares one rule with the strip's other items.
 * An email address is not a label. Uppercasing it makes it look like one,
 * and people copy an address by eye — a reader should see exactly the string
 * they will have to type.
 *
 * Scoped to the strip's LEFT side only. Online check-in on the right keeps
 * the display face and the tracking, which is correct for a link that is a
 * label, and is what Ana asked to leave alone.
 *
 * `letter-spacing: normal` rather than a value: the body role's own tracking
 * is set once in `theme.json` (Task 016, 88a) and naming a number here would
 * be a second place to keep it in step.
 */
.vm-header__top-left .vm-header__top-item {
	font-family: var( --wp--preset--font-family--body );
	text-transform: none;
	letter-spacing: normal;
}


/* -- 7. On a Property page the sticky bar becomes the house's own bar ----- */

/*
 * ANA'S RULING, and the reasoning is hers: once the hero has scrolled away
 * the guest is inside one house, and what they need is movement around that
 * house, not around the collection.
 *
 *   left     the Property's own logo   (already true — `render.php` swaps
 *                                       the identity on a Property page)
 *   centre   that Property's section links
 *   right    Check availability, and a menu button holding the collection
 *            navigation and Online check-in
 *
 * DESKTOP ONLY, AND PROPERTY PAGES ONLY. Mobile keeps the two thin rows Ana
 * already likes, untouched. Every other page keeps the collection navigation
 * in its sticky bar exactly as it is.
 *
 * WHY THIS DID NOT NEED THE TEMPLATES RESTRUCTURED, which was the brief's
 * one guard. The section links are a pattern inside each Property's own post
 * content (`patterns/property-nav.php` -> `.vm-property-nav`), not something
 * the header can be given. Rebuilding them in the header would mean either
 * editing five saved Property records or inventing a second source for the
 * same seven links. Neither happens: `blocks/header/view.js` MOVES the
 * existing element into the bar when the bar shortens and puts it back when
 * it does not — the same technique, and the same comment-marker restoration,
 * that Task 023 used for the mobile actions. One element, one place in the
 * accessibility tree, nothing duplicated, no template and no database record
 * touched. Without JavaScript the second row simply stays where it is, which
 * is today's behaviour.
 *
 * The menu button is core's own overlay control, forced visible above the
 * navigation's 960px collapse point by reversing core's rule — the identical
 * `!important` reversal, and for the identical reason, as the 960px block in
 * the Task 006-6 section above.
 *
 * 1200px, NOT 961px, AND THE NUMBER IS MEASURED (amended 2026-09-09). The
 * first build of this used 961px, the width at which the collection
 * navigation collapses, and it fitted — in sentence case. Ana's answer of
 * 2026-09-09 put these links on the header's own uppercase system, and
 * uppercase tracked capitals are wider: the seven labels measure **523px of
 * text alone** at 0.72rem/0.14em, before a single gap. The centre slot, once
 * the logo, Check availability and the menu button have taken theirs, is
 * about 673px at 1440 and about 483px at 961 — so below roughly 1150px the
 * seven labels do not fit at any gap, and the strip clipped its first and
 * last item rather than degrading.
 *
 * Below 1200px the page therefore keeps exactly the behaviour it had before
 * this task: the collection navigation stays in the bar and the section links
 * stay in their own second row. That is a known-good state, not a fallback
 * invented here. The alternatives all cost something Ana has already ruled
 * on — shrinking the type contradicts "one treatment", horizontal scrolling
 * in a 64px bar reads as clipped, and dropping Check availability from the
 * bar contradicts decision 95 — so the honest lever is the width at which the
 * composition is attempted. One number, and it is this one.
 */
@media (min-width: 1200px) {
	/*
	 * SWITCHED OFF 2026-09-24 (Task 008-7), NOT DELETED, so the reasoning
	 * above stays readable and turning it back on is uncommenting two rules.
	 *
	 * These two rules folded the collection navigation into the hamburger on
	 * a scrolled house page, to make room in the bar's centre for the house's
	 * own section links. Task 008-7 takes those links OUT of the bar — at
	 * rest they are a row glued under it, and once scrolled they are a second
	 * bar beneath it — so the room they needed is no longer needed, and
	 * hiding the collection navigation would now cost a guest Our Stays,
	 * Offers, the Guide, About and Contact for nothing in return.
	 *
	 * This is the part of `DECISIONS.md` 117 that Ana's instruction of
	 * 2026-09-24 reverses. 117's other half -- the master logo on non-Property
	 * pages -- is untouched. The amendment is drafted in
	 * `docs/tasks/TASK-008-7.md`; it is not written into `DECISIONS.md`.
	 *
	 * body.single-vm_property .vm-header--compact .wp-block-navigation__responsive-container:not( .hidden-by-default ):not( .is-menu-open ) {
	 *     display: none !important;
	 * }
	 *
	 * body.single-vm_property .vm-header--compact .wp-block-navigation__responsive-container-open:not( .always-shown ) {
	 *     display: flex !important;
	 * }
	 */

	/* Order, not markup: the element is moved into the bar and finds its
	   place here.
	   AMENDED 2026-09-24 (Task 008-4). This note used to say the element
	   was APPENDED, so that document order stayed wordmark -> actions ->
	   menu "and the tab order with it". Measured, that tab order was
	   brand, menu, search, Check availability, then the seven section
	   links — the focus ring crossing the bar three times while the eye
	   reads left to right. `view.js` now inserts the element after the
	   brand, which is where these `order` values put it visually, so the
	   two orders agree. The `order` values themselves are unchanged. */
	/*
	 * SWITCHED OFF 2026-09-24 (Task 008-7), NOT DELETED, for the same reason
	 * as the two rules above and with the same one-step way back.
	 *
	 * These four `order` values existed to seat the section links between the
	 * logo and the actions INSIDE the bar, which meant pushing the collection
	 * navigation past the actions to the end of the line. Task 008-7 takes the
	 * section links out of the bar, so there is nothing to seat — and leaving
	 * the values in place was measured, once, doing real damage: with the
	 * collection navigation visible again it landed at `order: 3` with
	 * `flex-grow: 0` and overflowed the bar to the right, across the page.
	 *
	 * With these gone the bar is back to its document order, brand ->
	 * navigation -> actions, which is what every other page on this site uses
	 * and what the focus ring already follows.
	 *
	 * body.single-vm_property .vm-header--compact .vm-header__inner > .vm-brand {
	 *     order: 0;
	 * }
	 *
	 * body.single-vm_property .vm-header--compact .vm-header__section-nav {
	 *     order: 1;
	 * }
	 *
	 * body.single-vm_property .vm-header--compact .vm-header__inner > .vm-header__actions {
	 *     order: 2;
	 * }
	 *
	 * body.single-vm_property .vm-header--compact .vm-header__inner > .wp-block-navigation {
	 *     order: 3;
	 *     flex-grow: 0;
	 * }
	 */

	/* The links, fitted to a 64px bar. `.vm-container`'s width cap and the
	   second row's own vertical padding both have to come off; the
	   horizontal scroll it already carries is kept, so a Property with more
	   sections degrades by scrolling rather than by overflowing. */
	.vm-header__section-nav.vm-header__section-nav {
		flex: 1 1 auto;
		max-width: none;
		justify-content: center;
		align-items: center;
		gap: clamp( 0.75rem, 1.4vw, 1.25rem );
		padding-block: 0;
		padding-inline: 0;
		min-width: 0;
	}

	/* The second row stands down while its own links are up in the bar.
	   `visibility` rather than `display`, so the space it occupied does not
	   collapse and the page does not jump under the reader at the moment
	   the bar shortens. */
	.vm-property-nav--in-header {
		visibility: hidden;
	}
}


/* -- 2026-09-09 — Ana's answers to the visual pass ------------------------ */

/*
 * Three changes after Ana read the header on the real page. Kept inside the
 * TASK-023-1 section rather than opened as a fourth header section, because
 * they are answers to this task's own §10 list and not a new subject.
 */


/* 9. The top strip stands down over a photograph ------------------------- */

/*
 * ANA'S FINDING, from the live page: on the homepage the strip sits above a
 * light section and reads as part of the page; on a Property page it cuts a
 * pale band across a full-bleed photograph, and it is the reason a
 * "transparent" header is not transparent.
 *
 * So it is hidden in the over-media state only, and comes back the moment the
 * header is scrolled and solid. Every other page is untouched, the switch
 * stays exactly where it is in the Site Editor, and it deliberately does NOT
 * get a transparent variant: the strip's muted #696663 on no ground at all
 * would land in precisely the trouble the navigation was just rescued from
 * (finding 1 — near-black over a photograph measured 1.96:1).
 *
 * THREE CONSEQUENCES, and the third is the one worth catching.
 *
 *   a. The scrim's offset goes back to zero. It starts below the strip only
 *      because the strip has an opaque ground to sit behind; with no strip
 *      there is nothing to sit behind, and starting 38px down would waste the
 *      dark end of the gradient above the bar rather than behind it.
 *
 *   b. The bar returns to its full height. `--vm-header-height-strip` (70px)
 *      exists because the strip is carrying part of the load; it is not.
 *
 *   c. ONLINE CHECK-IN COMES BACK INTO THE BAR. Task 022 hides it from the
 *      bar whenever the strip is on, because the strip carries it and decision
 *      95 says it appears once. Hide the strip and that rule silently removes
 *      the button from the page altogether — leaving a Property page's resting
 *      header with no Online check-in anywhere, which is the one thing this
 *      task's own brief said not to do. So it is put back, and only in the
 *      state that lost it.
 *
 *      Scoped to 601px and up on purpose: below 600px Online check-in is out
 *      of the bar by measurement, not by preference — with it in the row the
 *      content ran to 392px and was clipped at 320, 375 and 390 (Task 022).
 *      On a phone it stays in the menu, where Task 023 put it.
 */
.vm-header[ data-vm-top-strip="on" ][ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__top {
	display: none;
}

.vm-header[ data-vm-top-strip="on" ][ data-vm-navigation="light" ]:not( .vm-header--scrolled )::before {
	top: 0;
}

.vm-header[ data-vm-top-strip="on" ][ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__inner {
	min-height: var( --vm-header-height );
}

@media (min-width: 601px) {
	.vm-header[ data-vm-top-strip="on" ][ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__actions .vm-header__cta--checkin {
		display: flex;
	}
}


/* 10. The Property section links, one treatment in both positions -------- */

/*
 * Ana, reading them in the bar: they look like body text dropped into a
 * header. She is right, and the note at the 2026-08-29 rule explains why —
 * it argued them OUT of uppercase precisely because they sat in their own row
 * below the header, where capitals competed with it. Moving them into the bar
 * inverts that argument. The note is amended in place rather than deleted, so
 * the next reader does not "fix" this back.
 *
 * They now use the header's own system — display face, uppercase,
 * letterspaced — and stay secondary by being a step smaller than the
 * collection navigation and by taking `muted` rather than `contrast`:
 *
 *              size        tracking    colour
 *   collection  0.82rem     0.16em      contrast (or base over media)
 *   sections    0.72rem     0.14em      muted
 *
 * MEASURED, not estimated, because `muted` is the quietest thing here and the
 * type is small. #696663 against both grounds the strip ever has:
 *
 *   on `base` #F8F7F3 — the second row, and the compact bar on a Property
 *   page, where the transparent-scrolled rule sets the ground   5.32 : 1
 *   on `--vm-header-surface` #F1EFE8 — the compact bar elsewhere 5.01 : 1
 *
 * Both clear the 4.5:1 normal text needs. Hover keeps `contrast`, which is the
 * existing behaviour and now applies in both positions rather than one.
 *
 * The two selectors carry equal weight and both beat the 2026-08-29 pair by
 * position; `.vm-header__section-nav` is named explicitly so the rule cannot
 * be lost if the strip's own class list ever changes.
 */
.vm-property-nav .vm-property-nav__link,
.vm-header__section-nav .vm-property-nav__link {
	font-family: var( --wp--preset--font-family--display );
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --wp--preset--color--muted );
	white-space: nowrap;
}

.vm-property-nav .vm-property-nav__link:hover,
.vm-property-nav .vm-property-nav__link:focus-visible,
.vm-header__section-nav .vm-property-nav__link:hover,
.vm-header__section-nav .vm-property-nav__link:focus-visible {
	color: var( --wp--preset--color--contrast );
}


/* =========================================================================
 * PROVISIONAL — Task 013 Offers prototype. Retained as visual reference.
 * =========================================================================
 *
 * NOT PART OF THE COMPONENT SYSTEM. Nothing in this section is styling any
 * page: every selector below was verified by Task 017 (2026-09-06) to appear
 * in no theme file and in no database record — not the homepage, not the two
 * Offers pages, not the five Property drafts, not the archived prototype.
 *
 * It is kept, rather than deleted, because the Offers prototype is not all
 * bad and is worth keeping as a starting reference: deleting it now would
 * discard the only visual record of those compositions before a replacement
 * exists. Isolating it gives Task 018 a clean file to work in and loses
 * nothing.
 *
 * REMOVAL CONDITION — these rules come out when Offers has been rebuilt on
 * the consolidated component system (DECISIONS.md 90-92), and not before.
 * Do not delete them as part of a general tidy-up.
 *
 * The 17 component roots isolated here:
 *   vm-guide-card        vm-offer-details     vm-offer-property
 *   vm-guide-grid        vm-offer-editorial   vm-offer-split
 *   vm-highlight         vm-offer-figure      vm-offer-terms
 *   vm-offer-available   vm-offer-glance      vm-offers-intro
 *   vm-offer-cta         vm-offer-hero        vm-offers-upcoming
 *   vm-offer-properties  vm-why
 *
 * The rules below were MOVED, not rewritten: no selector, declaration,
 * value or comment was changed. Rules that lived inside a media query are
 * re-wrapped in that same query here; no media block was emptied.
 *
 * FOUR RULES COULD NOT BE MOVED and are still in place above, each marked
 * with a `Task 017: dead selector retained here` comment. Each puts a dead
 * selector in the same comma-separated list as a live one, so moving it
 * would have moved live CSS:
 *   - `.vm-property-page .vm-highlight > *`, among five live Property
 *     selectors sharing `margin-block: 0`
 *   - `.vm-offer-available__note`, beside the live `.vm-offer-includes__note`
 *   - eight dead selectors beside the live `.vm-offers-index` and
 *     `.vm-offer-tile` in the doubled-class layout-gap override
 *   - `.vm-offers-upcoming__list`, beside the live `.vm-offer__lead` and
 *     `.vm-offer__detail`
 *
 * See docs/tasks/TASK-017.md and DECISIONS.md.
 * ========================================================================= */

/* -- Why Villas More ------------------------------------------------------ */

.vm-why__inner {
	max-width: 46rem;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
}


/* -- Dubrovnik Guide preview (V0.2: smaller media, tighter grid) --------- */

.vm-guide-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--20, 1rem);
}

.vm-guide-card__media {
	aspect-ratio: 16 / 10;
	border-radius: 2px;
	background: var(--wp--preset--gradient--surface-wash);
	margin-bottom: 0.75rem;
}

.vm-guide-card__title {
	margin-bottom: 0.25rem;
}

.vm-guide-card__excerpt {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}


@media (max-width: 781px) {
	.vm-guide-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.vm-guide-grid {
		grid-template-columns: 1fr;
	}
}

.vm-highlight {
	flex: 1 1 0;
	min-width: 12rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.vm-highlight__icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--vm-color-primary);
}

.vm-highlight__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.vm-highlight__title {
	/* Was --font-size--large in the site's primary teal — read as a
	   second, heavier feature-grid heading competing with Amenities
	   below it. Smaller and neutral-coloured, closer to the mockup's
	   light editorial list. */
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

/*
 * Mockup V0.2 fidelity pass (2026-08-29): the reference sets these
 * three items as a light, evenly-spaced editorial row under a single
 * hairline rule, with a small note in the muted tone — not as three
 * weighted feature blocks. Weight 600 on the title was reading as a
 * second heading level; the reference is a regular-weight serif.
 */
.vm-highlight__note {
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	margin: 0;
	max-width: 22rem;
}


/* -- Offers landing: intro ---------------------------------------------- */

/*
 * Deliberately NOT a hero. The brief asks for a restrained page intro:
 * eyebrow, one short editorial headline, one paragraph. It uses the
 * shared `.vm-section__head` measure so its left edge lines up with the
 * card grid beneath it exactly as every other section head on the site.
 */
.vm-offers-intro {
	padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.vm-offers-intro .vm-section__head {
	margin-bottom: 0;
}

.vm-offers-intro .vm-section__head > h1,
.vm-offers-intro .vm-section__head > h2 {
	max-width: 20ch;
}


/* -- Offer detail: hero -------------------------------------------------- */

/*
 * A restrained editorial split, not a full-bleed cover. The Property
 * hero (TASK-008-2) is a 78vh core/cover with an overlay scrim; using
 * that here would make an offer look more important than a house, which
 * is the wrong hierarchy for a collection whose product is the houses.
 *
 * The media column bleeds to the right viewport edge the same way the
 * homepage hero does: the inner grid opts out of `layout:"constrained"`
 * centering and the text column carries its own left inset.
 */
.vm-offer-hero {
	padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 4rem);
}

.vm-offer-hero__inner {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

.vm-offer-hero__text {
	padding-inline-start: max(var(--wp--preset--spacing--30, 1.5rem), calc((100vw - var(--wp--style--global--wide-size, 1320px)) / 2 + var(--wp--preset--spacing--30, 1.5rem)));
	padding-inline-end: var(--wp--preset--spacing--30, 1.5rem);
	max-width: 42rem;
}

.vm-offer-hero__text > * { max-width: 32rem; }

.vm-offer-hero__title {
	font-size: clamp(2.4rem, 5vw, 3.9rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0 0 1.1rem;
}


/*
 * The benefit statement is the one line a guest must read. It is set
 * larger than body copy and tighter than the intro paragraph so it reads
 * as a statement rather than as the first sentence of prose.
 */
.vm-offer-hero__benefit {
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	line-height: 1.45;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 1rem;
	max-width: 26ch;
}

.vm-offer-hero__lede {
	color: var(--wp--preset--color--muted);
	line-height: 1.65;
	margin: 0 0 1.75rem;
	max-width: 42ch;
}

.vm-offer-hero__validity {
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-top: 1.1rem;
}

.vm-offer-hero__media {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: linear-gradient(160deg, var(--vm-color-deep), var(--vm-color-primary));
}

.vm-offer-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm-offer-hero__media figure { margin: 0; height: 100%; }


/* -- Offer detail: at a glance ------------------------------------------ */

/*
 * Explicitly NOT boxed dashboard cards (brief §8). Four cells on one
 * horizontal line, separated by hairlines rather than by borders on
 * four boxes. Small uppercase label over a larger value; the value is
 * the thing the eye lands on.
 */
.vm-offer-glance {
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

.vm-offer-glance__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.vm-offer-glance__item {
	min-width: 0;
	padding-inline-start: clamp(1.25rem, 2.5vw, 2.5rem);
	border-inline-start: 1px solid var(--wp--preset--color--border);
}

.vm-offer-glance__item:first-child {
	padding-inline-start: 0;
	border-inline-start: 0;
}

.vm-offer-glance__label {
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vm-color-deep);
	margin: 0 0 0.5rem;
}

.vm-offer-glance__value {
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}


/* -- Offer detail: editorial passages ----------------------------------- */

.vm-offer-editorial {
	padding-block: clamp(3rem, 6vw, 5rem);
}

.vm-offer-editorial__inner {
	max-width: 46rem;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
}

.vm-offer-editorial__inner h2 {
	font-size: clamp(1.7rem, 2.8vw, 2.4rem);
	line-height: 1.15;
	margin: 0 0 1.1rem;
	max-width: 18ch;
}

.vm-offer-editorial__inner p {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--wp--preset--color--muted);
	margin: 0;
}


/* -- Offer detail: the large image moment -------------------------------- */

.vm-offer-figure {
	margin: 0;
	line-height: 0;
}


/*
 * Specificity note: core's own image stylesheet carries
 * `.wp-block-image img { height: auto }`, which ties with a bare
 * `.vm-offer-figure img` and wins or loses purely on load order. The
 * extra class makes the band's crop deterministic instead of
 * order-dependent — without it the full-bleed image renders at its
 * natural 3:2 and swallows an entire viewport.
 */
.vm-offer-figure .wp-block-image img {
	width: 100%;
	height: clamp(280px, 52vh, 560px);
	object-fit: cover;
	display: block;
}


/* -- Offer detail: available at ----------------------------------------- */

.vm-offer-properties {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 3vw, 3rem) clamp(1.75rem, 4vw, 3.5rem);
}

.vm-offer-property {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	min-width: 0;
}


/*
 * The Property Mark: the same identity device the collection uses, at
 * its smallest useful size. Colour comes from the Property's own accent
 * scope class (`.vm-accent--*`) declared on the item itself — declaring
 * it on the row would make every mark inherit the row's computed value,
 * which is precisely the cascade bug TASK-012 fixed on the map pins.
 */
.vm-offer-property__mark {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: var(--vm-color-primary);
	transform: translateY(-1px);
}

.vm-offer-property__name {
	font-size: 1.02rem;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}


/* -- Offer detail: second editorial moment (image + text) ---------------- */

.vm-offer-split__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

.vm-offer-split__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(160deg, var(--vm-color-deep), var(--vm-color-primary));
}

.vm-offer-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm-offer-split__media figure { margin: 0; height: 100%; }

.vm-offer-split__text h2 {
	font-size: clamp(1.5rem, 2.4vw, 2.05rem);
	line-height: 1.18;
	margin: 0 0 0.9rem;
	max-width: 16ch;
}

.vm-offer-split__text p {
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
	margin: 0;
	max-width: 40ch;
}


/* -- Offer detail: good to know (definition list) ------------------------ */

.vm-offer-details__list {
	margin: 0;
	max-width: 54rem;
}

.vm-offer-details__row {
	display: grid;
	grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
	gap: 0.35rem clamp(1.5rem, 3vw, 3rem);
	padding-block: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.vm-offer-details__row:first-child {
	border-top: 1px solid var(--wp--preset--color--border);
}

.vm-offer-details__term {
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vm-color-deep);
	margin: 0;
	padding-top: 0.2rem;
}

.vm-offer-details__value {
	margin: 0;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast);
}


/* -- Offer detail: terms ------------------------------------------------- */

/*
 * Terms must exist and must not dominate. The section head is set at
 * body scale rather than section scale, and the accordion is capped to
 * the reading measure so it never spans the full grid.
 */
.vm-offer-terms {
	padding-block: 0 clamp(2.5rem, 4.5vw, 3.75rem);
}


/*
 * `layout:"constrained"` auto-centres any direct child that does not opt
 * out, so a bare `max-width` here left the Terms row floating in the
 * middle of the page while "Good to know" directly above it started at
 * the grid's left edge. The wrapper therefore mirrors `.vm-container`'s
 * own math (same mechanism as `.vm-section__head`) and the reading
 * measure is capped on the accordion inside it, not on the wrapper —
 * which is what makes the two left edges line up. Doubled class so the
 * result does not depend on whether WordPress's inline layout
 * stylesheet or this one is printed last.
 */
.vm-offer-terms__inner.vm-offer-terms__inner {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
}

.vm-offer-terms__inner > h2 {
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	margin: 0 0 0.75rem;
}


/* -- Offer detail: final CTA -------------------------------------------- */

/*
 * Light, not another dark band. The homepage already closes on the dark
 * collection band and the footer is dark; a third dark field in a row
 * would make the bottom of the page a single black mass.
 */
.vm-offer-cta {
	padding-block: clamp(3.25rem, 6vw, 5rem);
	text-align: center;
}

.vm-offer-cta__inner {
	max-width: 40rem;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1.5rem);
}

.vm-offer-cta__inner .vm-eyebrow { margin-bottom: 0.9rem; }

.vm-offer-cta__inner h2 {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 1.15;
	margin: 0 0 0.9rem;
}

.vm-offer-cta__inner > p {
	color: var(--wp--preset--color--muted);
	line-height: 1.65;
	margin: 0 0 1.75rem;
}

.vm-offer-cta .wp-block-buttons {
	justify-content: center;
	gap: 0.75rem 1rem;
}


@media (max-width: 1024px) {
	.vm-offer-hero__inner { grid-template-columns: 1fr; gap: 2rem; }

	.vm-offer-hero__text {
		padding-inline: var(--wp--preset--spacing--30, 1.5rem);
		max-width: none;
	}

	.vm-offer-hero__media { aspect-ratio: 16 / 10; }

	.vm-offer-glance__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* With two columns the third cell starts a new row, so its inline
	   border would be a stray vertical hairline. Rebuild the separators
	   as a per-cell left border on even cells only. */
	.vm-offer-glance__item {
		padding-inline-start: 0;
		border-inline-start: 0;
		padding-block: 0.35rem;
	}

	.vm-offer-glance__item:nth-child(2n) {
		padding-inline-start: clamp(1.25rem, 3vw, 2rem);
		border-inline-start: 1px solid var(--wp--preset--color--border);
	}

	.vm-offer-split__inner { grid-template-columns: 1fr; }

}

@media (max-width: 781px) {
	.vm-offer-glance__inner { grid-template-columns: 1fr; gap: 0; }

	.vm-offer-glance__item {
		padding-inline-start: 0 !important;
		border-inline-start: 0 !important;
		padding-block: 0.85rem;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	.vm-offer-glance__item:last-child { border-bottom: 0; }

	.vm-offer-details__row { grid-template-columns: 1fr; }

	.vm-offer-hero__title { font-size: clamp(2.1rem, 9vw, 2.9rem); }

	.vm-offer-figure .wp-block-image img { height: clamp(220px, 40vh, 320px); }

	.vm-offer-cta .wp-block-buttons { flex-direction: column; align-items: center; }
}

/* The Property row aligns on the text, not on the box. */
.vm-offer-properties { align-items: baseline; }


/*
 * The Accordion block ships its own centred measure (it was built for the
 * FAQ section, where centring is right). On an offer page it has to line
 * up with the "Good to know" list directly above it, so the offer scope
 * hands the measure back to `.vm-offer-terms__inner`.
 */
.vm-offer-terms__inner > .wp-block-villas-more-accordion,
.vm-offer-terms__inner > .vm-accordion {
	max-width: 54rem;
	margin-inline: 0;
}


/* -- Offers still in preparation ---------------------------------------- */

/*
 * Two working concepts with no approved mechanics are not two offers.
 * Presenting them in the same grammar as Extended Escape would either
 * require inventing terms or produce two visibly empty offers, and the
 * brief's own instruction is quality over filling space. They are shown
 * instead as a short, honest closing note — the concepts are visible, and
 * nothing claims they are bookable.
 */
.vm-offers-upcoming {
	padding-block: clamp(2.5rem, 4.5vw, 3.5rem);
}

.vm-offers-upcoming__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 3rem);
	margin-top: 1.5rem;
}

.vm-offers-upcoming__item > * { margin: 0; }

.vm-offers-upcoming__name {
	font-size: 1.2rem;
	line-height: 1.25;
	margin-bottom: 0.45rem;
}

.vm-offers-upcoming__line {
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
	max-width: 36ch;
}


@media (max-width: 900px) {
	.vm-offers-upcoming__list { grid-template-columns: 1fr; }
}

.vm-offers-upcoming__lede {
	color: var(--wp--preset--color--muted);
	max-width: 44ch;
	margin: 0;
}


/* ==========================================================================
   TASK-024-1 — THREE FAULTS FROM ANA'S VISUAL PASS
   --------------------------------------------------------------------------
   2026-09-14. Two of the three belong to Task 024 (the cards); the third is
   the header's dropdown and belongs to Task 023's subject. It is here rather
   than in its own session because it is one colour, and it is cross-referenced
   under 023 in the SESSION_LOG index so the header's history stays findable.

   Nothing below changes a page's saved content, the header's layout, its
   height or its logo. Every number in these comments was measured on the
   real page at a 1440px viewport, not estimated.
   ========================================================================== */


/* -- 1. "Explore our other stays": the photograph fills its box ------------ */

/*
 * WHAT ANA SAW. Four cards, each a terracotta rectangle with a photograph
 * floating inside it, and one card starting higher than the other three.
 *
 * THESE ARE TWO SEPARATE FAULTS, and the second is not what it looks like.
 *
 * (a) THE FRAME. `.vm-stay-card__media` was designed as a coloured tile with
 *     a label on it, before the houses had photographs — hence the gradient,
 *     the 1rem padding and `align-items: flex-end`. `explore-other-stays.php`
 *     renders that class onto a `core/post-featured-image` FIGURE, and core
 *     gives the image `width: 100%; height: auto`. So the picture sized
 *     itself to the box's width and stopped: measured 240.5 x 160.5 inside a
 *     272.5 x 224.4 box, leaving ~48px of terracotta above it and 16px on
 *     every other side. That band is the "brown block".
 *
 *     A side effect worth recording: with `box-sizing: content-box`, that
 *     `aspect-ratio: 5 / 4` was being satisfied by the CONTENT box, so the
 *     visible box measured 272.5 x 224.4 — a ratio of 1.214, not 1.25. With
 *     the padding gone the box is a true 5:4 at 272.5 x 218.
 *
 * (b) THE MISALIGNMENT IS NOT THE PHOTOGRAPHS. The brief attributes it to the
 *     pictures having different shapes. They do not: measured, the four are
 *     1440x961, 1440x967, 1440x960 and 1440x960 — 1.489 to 1.500 — and all
 *     four media boxes were exactly 224.4px tall. The 24px stagger is
 *     WordPress's block gap. `core/post-template` renders an `<li>` around
 *     each card, `is-layout-flow` puts `margin-block-start: 24px` on every
 *     item after the first, and making the list a CSS grid does not switch
 *     that off — a grid item's margin is not collapsed away. Measured card
 *     tops: 227.9 / 251.9 / 251.9 / 251.9.
 *
 *     The theme already zeroes this, at `.vm-card-grid .vm-stay-card` in the
 *     Card Grid section — but the query loop inserts the `<li>` BETWEEN the
 *     grid and the card, so the margin lands on an element that rule never
 *     names. The line below is that same intention, applied to the grid's
 *     own children. On the old `villas-more/card-grid` block, whose children
 *     ARE `.vm-stay-card`, it restates a value already in force: verified as
 *     a no-op on Palmotta Palace, Casa Laurea and Villa Diamond.
 *
 * THE GRADIENT STAYS. It is not decoration left over from before: it is what
 * a card with NO photograph still shows, and three published house pages
 * depend on it right now — 16 `.vm-stay-card__media` boxes carrying
 * "Photography placeholder" from `patterns/property-accommodation.php`. So it
 * is switched off only where a real picture covers it, and left alone
 * everywhere else.
 *
 * MEASURED, 1440px, the four Explore cards:
 *   before  tops 227.9 / 251.9 / 251.9 / 251.9   card height 321.0
 *           media 272.5 x 224.4, image 240.5 x 160.5
 *   after   tops 227.9 / 227.9 / 227.9 / 227.9   card height 314.6
 *           media 272.5 x 218.0, image 272.5 x 218.0
 */
.vm-card-grid > * {
	margin-block: 0;
}

.vm-stay-card__media.wp-block-post-featured-image {
	background: none;
	padding: 0;
	display: block;
}

.vm-stay-card__media.wp-block-post-featured-image > a {
	display: block;
	height: 100%;
}

.vm-stay-card__media.wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* -- 2. The submenu panel is a light panel and must carry its own type ----- */

/*
 * Task 023's subject, fixed here — see the section header above.
 *
 * WHAT ANA SAW. On a house page, "Our stays" opens a white panel whose six
 * links cannot be read.
 *
 * THE CAUSE IS NOT WHERE THE BRIEF PUTS IT. It is not
 * `[data-vm-appearance="transparent"]`, which sets only the bar's background
 * and border. It is Task 023-1's finding-1 rule, ~40 lines above this one:
 * `[data-vm-navigation="light"]:not(.vm-header--scrolled)` writes
 * `color: base` onto EVERY `a.wp-block-navigation-item__content` in the
 * header — and core gives a submenu link that same class. So the panel's
 * links were being painted the colour meant for type over a photograph,
 * on core's own #FFFFFF panel.
 *
 * That rule is right for the bar and is not touched. This one takes the
 * panel back out of it, at one class more specificity so source order is not
 * what decides it. Only the broken state is named: in every other state the
 * panel already measures 16.62:1 and nothing here reaches it.
 *
 * Hover and focus follow the treatment the header already uses everywhere it
 * is NOT light — `--vm-color-deep` with the same fine underline — so the
 * panel behaves identically in all four states rather than becoming a fifth
 * behaviour.
 *
 * The CURRENT item is deliberately not given its own colour here. The rule
 * that marks it (`:not([data-vm-navigation="light"]) .current-menu-item`)
 * does not apply on a Property page in either of its states, so the current
 * house is unmarked in this panel today whether the header has scrolled or
 * not. Marking it only at rest would invent a state that appears and
 * disappears as the guest scrolls; leaving it is the smaller change and it
 * keeps all six links at one value. Recorded in `QUESTIONS.md`.
 *
 * MEASURED against the 4.5:1 floor `DECISIONS.md` 87 §1 sets, on the panel's
 * own #FFFFFF ground:
 *
 *   transparent, at rest, over the hero   1.07:1  ->  16.62:1
 *   the same header once scrolled        16.62:1  ->  16.62:1  (untouched)
 *   sticky                               same two states; the Property
 *                                        header is `position: fixed` and its
 *                                        colours are the two rows above
 *   a page whose header is not           16.62:1  ->  16.62:1  (untouched)
 *   transparent (home, offers, contact)
 *
 *   hover / focus / current item, Villa Filaus's own Deep   5.81:1
 *   the same on the collection olive                        8.06:1
 */
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation .wp-block-navigation__submenu-container a.wp-block-navigation-item__content {
	color: var( --wp--preset--color--contrast );
}

.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation .wp-block-navigation__submenu-container a.wp-block-navigation-item__content:hover,
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation .wp-block-navigation__submenu-container a.wp-block-navigation-item__content:focus-visible {
	color: var( --vm-color-deep );
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.4em;
}


/* -- 3. A VM Card with no photograph keeps the photograph's shape ---------- */

/*
 * WHAT ANA SAID: "nema fotografija uopće… nema ni placeholder", and so
 * "teško je gledati ovo bez slika". She is right, and it is not a missing
 * style — `villas-more/vm-card` writes NO media element at all when
 * `imageUrl` is empty. Verified on a real card: its only child is
 * `.vmc-card__body`. So there is nothing to colour; the box has to be drawn.
 *
 * A generated box is also the only shape that satisfies the brief's last two
 * conditions on its own. `::before` is not markup — nothing appears in the
 * HTML, nothing is left behind — and `:not( :has( .vmc-card__media ) )` stops
 * matching the instant a real image is set, with no second rule to remove it.
 *
 * IT IS NOT A COLOUR DECISION, AND IT SAYS SO. The ground is the block's own
 * `surface` — the value `.vmc-card__media` already paints behind a real
 * photograph, so no new colour enters the theme — under a 1px hatch in the
 * `border` token. The hatch is what makes it unmistakably provisional; a flat
 * panel is exactly what made fault 1 confusing.
 *
 * IT FOLLOWS THE CARD, NOT A GUESS. `--vmc-ratio` and `--vmc-radius` are the
 * block's own per-style custom properties, so the placeholder is 5:4 on a
 * Standard card and 3:2 on Panel without this rule naming either number, and
 * `--vmc-rule-width` keeps Panel's olive hairline in the Property's own
 * colour. Measured on Villa Filaus's Discover grid: a placeholder card and a
 * card given a real image both measure 526.6px tall, and the placeholder box
 * (591 x 394 plus its 2px rule) is the real media box (591 x 396) exactly.
 *
 * WHERE THIS LIVES, AND FOR HOW LONG. In the theme, because the theme is what
 * this task may change and because a stand-in for missing content is an
 * accent rather than vocabulary (`DECISIONS.md` 110). If it is ever to be
 * permanent it belongs in the block beside `.vmc-card__media`, and that is a
 * decision for whoever owns the block, not for this rule.
 */
.vmc-card:not( :has( .vmc-card__media ) )::before {
	content: "";
	display: block;
	aspect-ratio: var( --vmc-ratio );
	border-radius: var( --vmc-radius );
	background-color: var( --wp--preset--color--surface );
	background-image: repeating-linear-gradient( 135deg, transparent 0 11px, var( --wp--preset--color--border ) 11px 12px );
	border-top: var( --vmc-rule-width ) solid var( --vm-color-primary, var( --wp--preset--color--primary ) );
}


/* -- 4. Explore's rhythm, brought to the card's ------------- ADDED 2026-09-14 */

/*
 * Ana: Explore reads as cramped. It does, and it is worse than the file
 * suggests — the two values the brief names are already dead here.
 *
 * WHAT THE BRIEF EXPECTED. `.vm-stay-card__media { margin-bottom: 0.75rem }`
 * (12px) and `.vm-stay-card__note { margin-bottom: 0.5rem }` (8px), to be
 * raised to 24 and 16.
 *
 * WHAT IS ACTUALLY ON THE PAGE. Neither reaches Explore. The Card Grid section
 * carries, since Task 008-2:
 *
 *     .vm-card-grid .vm-stay-card,
 *     .vm-card-grid .vm-stay-card > *,
 *     .vm-card-grid .vm-stay-card__body > * { margin-block: 0 }
 *
 * — two classes against the base rules' one, so inside any `.vm-card-grid`
 * every one of those margins computes to **0px**. Measured on the real page:
 *
 *     media -> name    0px      (not 12)
 *     name  -> note    5.59px   (not 4)
 *     note  -> link    5.59px   (not 8)
 *
 * The 5.59px is `.vm-stay-card__body`'s own `gap: 0.35rem`, and it is the whole
 * of the fault: **one value doing every job**, which is exactly what Task 018-1
 * found on the VM Card and fixed. Raising the two base values would have
 * changed nothing a guest can see.
 *
 * Nothing else is reached by those two base rules either. Swept across the
 * homepage, all five houses, `/offers/` and `/contact/`: **every**
 * `.vm-stay-card` on the site sits inside `.vm-card-grid`,
 * `.vm-accommodation-grid` or `.vm-collection-grid`, and the other two override
 * both margins themselves (`--accommodation` media 0 / note 1rem;
 * `--collection` media 0.95rem / note 0.9rem). Orphans reached by the base
 * rules: **zero**. So the base values are left exactly as they are — changing a
 * declaration that demonstrably reaches nothing would only mislead the next
 * reader.
 *
 * THE RHYTHM, READ OFF A REAL VM CARD RATHER THAN OFF A DOCUMENT.
 * media->text 24, eyebrow->title 8, title->description 4, description->action
 * 16 — i.e. **24 / 8 / 4 / 16**. `SESSION_LOG.md` (and the brief after it)
 * transcribes the middle pair the other way round as "24 / 4 / 8 / 16"; the
 * block's own CSS has it right and says why — *"Air ABOVE the name, so the
 * label reads as a label"*, and *"018-1 had the first two the other way round
 * (4 / 8), which glued the eyebrow to the name"*. Explore's card has no
 * eyebrow, so only three of the four steps exist here and the swap changes
 * nothing about this fix; it is recorded because the document is wrong.
 *
 * SCOPE. `.vm-card-grid > .wp-block-post` — a card drawn by a query loop
 * inside a card grid, which is Explore and nothing else. NOT `.vm-card-grid`,
 * because the Accommodation grids on Palmotta, Casa Laurea and Villa Diamond
 * carry that class too and set their own note spacing; a rule at that level
 * would have added to theirs. Verified: their children are the old card
 * block's own divs, never `.wp-block-post`.
 *
 * MARGINS BETWEEN SIBLINGS, NOT ONE FLEX GAP — Task 018-1's reasoning, and the
 * reason it survives a missing field. The body's own gap is therefore zeroed
 * rather than left to add itself to every step. The 4px step has no value on
 * the theme's scale and is written as arithmetic ON the scale, exactly as the
 * card writes it, rather than as a literal or a token for four pixels.
 *
 * MEASURED, Villa Filaus, first Explore card, from this file rather than from
 * an injection:
 *                                 1440px                  390px
 *   media -> name    before       0                       0
 *                    after        24                      24
 *   name  -> note    before       5.59                    5.59
 *                    after        4                       4
 *   note  -> link    before       5.59                    5.59
 *                    after        16                      16
 *   card height      before       314.6                   370.2
 *                    after        347.4                   403.0
 *   media height     unchanged    218                     273.6
 *   body height                   96.6 -> 105.4           96.6 -> 105.4
 *
 * All four cards stay level and equal — tops and heights are one value each,
 * at both widths — so §1's alignment is untouched. And the Accommodation
 * grids are untouched, measured on Villa Diamond, which carries both: its
 * cards still read body gap 5.6px, body margin-top 0, name -> note 5.59 and
 * a card height of 470.8, with all nine tiles intact.
 *
 * One thing seen on the way and NOT acted on: that same `margin-block: 0`
 * rule also kills `.vm-accommodation-grid .vm-stay-card__note`'s `1rem`,
 * written 700 lines above it at equal specificity. So the Accommodation cards
 * have the same one-value-doing-every-job spacing Explore had. That is a
 * different section, on three published pages, and nobody has reported it.
 * `TODO.md`.
 *
 * THE GAP BETWEEN THE CARDS IS LEFT ALONE, and this is a judgement rather than
 * an omission. Explore's grid gap is 40px (`spacing--40`) against 24px inside
 * the card, so the space between two cards is now clearly larger than the
 * largest space within one — which is what makes a card read as a card. The VM
 * Card Grid sets 24px between cards, and matching that here would make the two
 * distances equal and take the edge off exactly what this fix just gave the
 * card. Left at 40px on purpose; if Ana wants Explore to match the new grid
 * exactly, that is one declaration and it is a question rather than a defect.
 */
.vm-card-grid > .wp-block-post .vm-stay-card__body {
	gap: 0;
}

.vm-card-grid > .wp-block-post .vm-stay-card > .vm-stay-card__body {
	margin-block-start: var( --wp--preset--spacing--30 );
}

.vm-card-grid > .wp-block-post .vm-stay-card__body > .vm-stay-card__note {
	margin-block-start: calc( var( --wp--preset--spacing--10 ) / 2 );
}

.vm-card-grid > .wp-block-post .vm-stay-card__body > .vm-stay-card__link {
	margin-block-start: var( --wp--preset--spacing--20 );
}

/* =========================================================================
 * TASK-043 (2026-09-23) — THE VISIBLE FAULTS, BEFORE THE MEETING
 * -------------------------------------------------------------------------
 * Task 042 measured thirty-six visual faults across the site. This section
 * holds the two that live in the stylesheet. The other three lived in the
 * saved content of four pages and are recorded in docs/tasks/TASK-043.md,
 * because a page's content is in the database and appears in no commit.
 * ========================================================================= */

/* -- V023: the homepage hero meets the header ----------------------------
 *
 * Measured at 1440 and 390: a 48px band of page ground between the bottom
 * of the header and the top of the photograph, where
 * docs/design/homepage-reference.html §1 says the hero has nothing above
 * it. It is two separate 24px margins, both of them WordPress's own flow
 * block-gap (theme.json settings.spacing.blockGap: 1.5rem), and NOT one
 * margin to be cancelled with a negative offset:
 *
 *   1. on <main> itself, because the header template part precedes it;
 *   2. on the hero section, because the Zrcalo pattern's <style> element
 *      is saved into the page ahead of it and is a real DOM sibling, so
 *      the hero is not :first-child and the gap rule reaches it.
 *
 * Both are the same fault this theme has already solved twice — see
 * `.vm-property-page` above (Task 008B) and `.vm-page--offer` (Task 013).
 * The homepage was simply never given the same treatment.
 *
 * Scoped to the FIRST section only, not to every top-level child: the
 * homepage's sections carry their own vertical padding and the gap
 * between them is part of the measured rhythm (Task 042, V033). Zeroing
 * all of them would move eight sections to fix one seam.
 *
 * `section:first-of-type` rather than `.vm-zrcalo`, so the rule survives
 * Ana changing which hero the homepage carries.
 *
 * ROOT CAUSE BEYOND THIS FIX, recorded rather than done here: margin 2
 * exists only because patterns/hero-zrcalo.php still ships its stylesheet
 * inside the page as a wp:html block. That file's own docblock says the
 * block moves into style.css "the day Ana adopts Zrcalo" — and Zrcalo is
 * on the homepage now. Doing that move would delete the sibling and make
 * this second rule unnecessary. It is a task of its own, not a change to
 * make the day before a meeting. TASK-043 §8.
 */
.vm-home-page {
	margin-top: 0;
}

.vm-home-page > .entry-content > section:first-of-type {
	margin-block-start: 0;
}


/* =========================================================================
 * TASK-008-4 — THE BAR THAT BELONGS TO THE HOUSE
 * =========================================================================
 *
 * Four things, in the order the task built them. The first three are rules
 * `docs/design/contact-and-property-nav-reference.html` §2.1 already stated
 * and nobody had implemented; the fourth and fifth are Ana's answers of
 * 2026-09-24 to the two open questions in
 * `docs/design/property-header-reference.html`.
 *
 *   1  the current section is marked
 *   2  the bar carries only sections this page has      (JS, see view.js)
 *   3  below 1200px the two bars behave as one object
 *   4  the bar is a short MENU, not a table of contents
 *   5  the header sits ABOVE the hero photograph, not over it
 *
 * REVISED THE SAME EVENING, after Ana read the built bar on the real page.
 * Points 1-3 stood. Point 4 did not: eight items is a list of contents, not
 * a menu, and Contact drawn as a special case with its own hairline and
 * underline was "odvajanje bez potrebe". The bar is now three items, all in
 * one treatment, and the difference between an item that lives on this page
 * and one that leaves it is carried by the MARK alone — only a section that
 * is on this page is ever marked. The rule survives; the ornament that
 * announced it is gone. What that revision deleted from this section is
 * listed in `docs/tasks/TASK-008-4.md` §11 rather than left here as dead
 * commentary.
 *
 * NOTHING HERE TOUCHES THE 1200px ARRANGEMENT. Task 023-1's rules are
 * unchanged, its measured breakpoint is unchanged, and everything below is
 * either additive or applies only under that width. Its own note explains
 * why the number is 1200 and why it lives in two files; that still holds.
 * ========================================================================= */


/* -- 1. Two live measurements, published by the header's own script ------ */

/*
 * `--vm-header-live` is the header bar's real BOTTOM EDGE in the window right
 * now, and `--vm-property-nav-live` is the section strip's height while the
 * strip is stacked under the bar (0 when Task 023-1 has moved it up INTO the
 * bar). Both are written by `blocks/header/view.js` on scroll and on resize.
 *
 * The bottom edge and not the height, because a logged-in editor has a 32px
 * admin bar fixed over the top of the window and the header sits under it:
 * 65px tall, ending at 97. See the note beside `publishHeights` in
 * `view.js` — the static 74px this replaces had the same fault, by 23px.
 *
 * WHY THEY HAVE TO EXIST. `--vm-header-height` is a static 74px (64 below
 * 781px), and the bar does not stay 74px — it shortens to 65px the moment
 * it is scrolled (`--vm-header-height-compact` plus its 1px border). The
 * section strip sticks at `top: var( --vm-header-height )`, so between
 * 782px and 1199px, scrolled, the strip pins itself 74px down while the bar
 * above it ends at 65 — and a 9px band of the page slides between two
 * sticky bars. Measured on the live page at 1180px on 2026-09-24: bar
 * bottom 65, strip top 74. At 390 the two numbers happen to agree (64 and
 * 64), which is why nobody saw it.
 *
 * Both fall back to what the page does today, so with the script absent the
 * behaviour is exactly the behaviour of yesterday — including the 9px band,
 * which is a visual fault and not a broken page.
 */
.vm-property-nav {
	top: var( --vm-header-live, var( --vm-header-height, 0px ) );
}

/*
 * ANCHOR OFFSET, AND WHY THIS CHANGED WITH IT. Task 042's finding V018: a
 * click on a section link leaves the top of that section 54.6px underneath
 * the strip, because `scroll-padding-top` counted the header and not the
 * second bar. That was a standing annoyance; it becomes a contradiction the
 * moment the bar starts saying which section you are in, because the jump
 * lands with the heading hidden and the marker pointing at the section
 * above. The two cannot be fixed separately.
 *
 * `--vm-header-height` rather than `--vm-header-live` in the first term on
 * purpose: at the instant an anchor jump is computed the bar has usually
 * not shortened yet, so the static, taller value is the safe one. Erring
 * long leaves a little air above the heading; erring short hides it.
 *
 * On every page that is not a house page `--vm-property-nav-live` is never
 * set, the second term is 0, and this resolves to exactly the old rule.
 */
html {
	/*
	 * `--wp-admin--admin-bar--height` is WordPress's own token and it is
	 * emitted on `<html>`, which is the only reason this term can be here:
	 * this theme's `--vm-sticky-top` says the same thing but is declared on
	 * `body.admin-bar`, and a custom property does not travel upward from
	 * the body to the element this rule is on. For a logged-out guest the
	 * token is absent and the term is 0, so the guest's page is unchanged;
	 * for the editor, who is the only person who ever checks this, the
	 * heading lands below the admin bar instead of underneath it.
	 */
	scroll-padding-top: calc(
		var( --vm-anchor-chrome, 0px ) +
		var( --vm-header-height, 0px ) +
		var( --vm-property-nav-live, 0px )
	);
	--vm-anchor-chrome: var( --wp-admin--admin-bar--height, 0px );
}

/*
 * Below 783px WordPress's admin bar is absolutely positioned and scrolls
 * away with the page, so it occludes nothing and its height must not be
 * added. The same boundary, and the same reasoning, as `--vm-sticky-top`.
 */
@media (max-width: 782px) {
	html {
		--vm-anchor-chrome: 0px;
	}
}


/* -- 2. The current section is marked ------------------------------------ */

/*
 * THE RULE, from the approved drawing: "traka koja ne pokazuje gdje si je
 * ukras, ne navigacija." Until today there was no such rule in this file
 * and no such code in `view.js` — checked before writing, not assumed.
 *
 * ONE PAIR OF SELECTORS FOR BOTH POSITIONS, because above 1200px the very
 * same `<a>` elements are MOVED into the header bar rather than copied. The
 * mark rides on the element itself (`aria-current`), so it survives the
 * move with no second rule and no state to keep in step — the same
 * reasoning as the "one treatment, not two" note in the Task 023-1 section.
 *
 * COLOUR, MEASURED, not chosen:
 *
 *   the label    `contrast` #201E1C   15.50:1 on `base` #F8F7F3 (the strip)
 *                                     14.44:1 on #F1EFE8 (the compact bar)
 *   the underline `accent` #6C764F     4.51:1 on base, 4.20:1 on #F1EFE8
 *
 * The label takes `contrast` and not `accent` for exactly the reason Task
 * 022 gave for the wordmark: accent measures 4.20:1 on the bar's ground,
 * which is under the 4.5:1 this size of text needs. The underline may take
 * it, because a non-text indicator needs 3:1 (WCAG 1.4.11) and it clears
 * that on both grounds. So the olive appears where it is legal and the
 * legibility is carried by the label.
 *
 * AND THE MARK IS NOT COLOUR ALONE. A 2px rule under the label carries it
 * as well, so the state survives a colour-blind reader and a bad screen.
 * `aria-current` carries it for anyone listening rather than looking.
 *
 * Drawn with `::after` rather than `border-bottom` so it adds no height and
 * cannot shift the row when the mark moves from one item to the next.
 */
.vm-property-nav .vm-property-nav__link[ aria-current ],
.vm-header__section-nav .vm-property-nav__link[ aria-current ] {
	color: var( --wp--preset--color--contrast );
	position: relative;
}

.vm-property-nav .vm-property-nav__link[ aria-current ]::after,
.vm-header__section-nav .vm-property-nav__link[ aria-current ]::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -0.35em;
	height: 2px;
	background: var( --wp--preset--color--accent );
}

/*
 * Over a photograph every element in the header is `base` (decision 116),
 * and the marked one is no exception — it would otherwise be the one
 * near-black label in a light bar. Ana's answer of 2026-09-24 takes house
 * pages out of this state altogether, so this rule guards a state the five
 * houses no longer use; it stays because the transparent appearance is
 * still a per-page setting anyone can switch on.
 */
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-property-nav__link[ aria-current ],
.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__section-nav .vm-property-nav__link[ aria-current ] {
	color: var( --wp--preset--color--base );
}

.vm-header[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-property-nav__link[ aria-current ]::after {
	background: var( --wp--preset--color--base );
}

@media (prefers-reduced-motion: no-preference) {
	.vm-property-nav .vm-property-nav__link,
	.vm-header__section-nav .vm-property-nav__link {
		transition: color 120ms ease;
	}
}


/* -- 3. Below 1200px: one sticky object, not two bars -------------------- */

/*
 * WHAT THE DRAWING ASKED FOR, AND WHAT IS ACTUALLY POSSIBLE. The approved
 * drawing says that on a phone the sections "go into a horizontal strip so
 * they do not cost a second row". Measured at 390 before building: the
 * mark is 84.7px, Check availability 145.8px, the hamburger 24px and the
 * padding 2x18px, which leaves 99.5px before any gap — and three of the
 * header's own 16px gaps take 48 of that. One label, "Accommodation",
 * measures 129px. The sections CANNOT share the 64px row at this width.
 * That is arithmetic, and pretending otherwise would have produced a strip
 * that clips its first and last item, which is the very failure Task 023-1
 * chose 1200px to avoid.
 *
 * SO THE HONEST ANSWER IS THE SECOND HALF OF THE SAME SENTENCE: one sticky
 * OBJECT with a thin strip beneath it, rather than two bars that each stick
 * on their own account and read as two menus. The strip takes the bar's own
 * ground and loses its heavy border, so the eye reads one thing.
 *
 * AND THE GAP COMES DOWN A STEP, from `spacing--40` (40px) to `spacing--30`
 * (24px), for one measured reason. With Ana's three-item menu the strip
 * needs 393.2px at 390 — 24 + 129.1 + 40 + 70.4 + 40 + 65.7 + 24 — against
 * 390 of window. **Three pixels**, and for those three pixels a phone shows
 * a menu that has to be swiped. At 24px it needs 361px and the whole menu is
 * on screen at 390 and at 375. It still scrolls at 360 and below, and that
 * is the honest limit: the scroller stays, it simply stops being the normal
 * case.
 *
 * Measured before: 64 + 54.64 = 118.64px, 15.2% of a 780px viewport.
 * The saving is real but modest, and it is spent partly on purpose:
 * Task 042's V019 measured the touch target at 14px against the 24px WCAG
 * 2.2 §2.5.8 asks for, so the links here get 24px of target while the strip
 * gets shorter. Ana was told that trade before it was made.
 *
 * Scoped `max-width: 1199.98px` — the exact complement of Task 023-1's
 * `min-width: 1200px`, so the two never overlap and never leave a gap.
 * The fractional pixel matters on a zoomed or fractional-DPI viewport.
 */
@media (max-width: 1199.98px) {
	body.single-vm_property .vm-property-nav {
		background: var( --vm-header-surface, var( --wp--preset--color--base ) );
		border-bottom: 1px solid var( --wp--preset--color--border );
	}

	/* The bar above already carries the shadow for both of them. A second
	   shadow between two touching surfaces reads as a seam. */
	body.single-vm_property .vm-header--compact + * .vm-property-nav,
	body.single-vm_property .vm-property-nav {
		box-shadow: none;
	}

	body.single-vm_property .vm-property-nav .vm-property-nav__inner {
		padding-block: 0;
		gap: var( --wp--preset--spacing--30, 1.5rem );
	}

	/* 24px of target, from 14. The label keeps its size; the target grows
	   around it, so nothing in the measured type system moves. */
	body.single-vm_property .vm-property-nav .vm-property-nav__link {
		display: inline-flex;
		align-items: center;
		min-height: 24px;
		padding-block: 5px;
	}

	/* The marker sits inside the taller target rather than below the label,
	   or it would touch the strip's own bottom edge. */
	body.single-vm_property .vm-property-nav .vm-property-nav__link[ aria-current ]::after {
		bottom: 2px;
	}

	/* The strip is a scroller and it is allowed to be one — but it should
	   not advertise the fact with a scrollbar in a 40px band. The marked
	   item is scrolled into view by `view.js`, which is what makes a
	   two-and-a-half-item window usable. */
	body.single-vm_property .vm-property-nav .vm-property-nav__inner {
		scrollbar-width: none;
	}

	body.single-vm_property .vm-property-nav .vm-property-nav__inner::-webkit-scrollbar {
		display: none;
	}
}


/* -- 4. One focus ring, in both positions -------------------------------- */

/*
 * The header gives everything focusable inside it the same 2px `primary`
 * ring (Task 022 §6.7). Above 1200px the section links are inside the
 * header and get it; below 1200px the same seven links sit in their own
 * row, outside `.vm-header`, and fall back to whatever ring the browser
 * draws — which is a different colour, a different offset, and on some
 * platforms nearly invisible on this ground.
 *
 * Same element, same treatment, both positions — the rule Task 023-1 set
 * for this strip's type and colour, applied to its focus state as well.
 */
.vm-property-nav a:focus-visible {
	outline: 2px solid var( --wp--preset--color--primary );
	outline-offset: 3px;
	border-radius: 2px;
}


/* -- 5. The search circle sits on the bar's centre line ------------------ */

/*
 * ANA, 2026-09-24, reading the bar on the real page: the search button is
 * odd, and not symmetric with the other positions. Measured rather than
 * adjusted by eye, at 1440 on a scrolled house page:
 *
 *   brand            centre line  64.0
 *   section links    centre line  65.0
 *   Check availability            64.3
 *   menu button                   64.0
 *   SEARCH CIRCLE                 59.0     <- 5px high
 *
 * TWO CAUSES, both inside core's own markup and both invisible in the
 * stylesheet until the boxes are measured.
 *
 *   1. `.wp-block-search__inside-wrapper` is a flex row and nothing sets
 *      its cross-axis alignment, so it inherits `normal`. The row is
 *      46.05px tall — the hidden input keeps `padding: 8px 0`, a 1px
 *      top-and-bottom border and a 28.05px line box even at zero width —
 *      while the circle is 36px. Unaligned, the circle sits at the top of a
 *      46px row, which is the 5px.
 *
 *   2. The same wrapper carries `gap: 0.5rem`, and the hidden input is
 *      still a flex item at zero width. So 8px of gap sits between nothing
 *      and the circle: the visible air to the LEFT of the circle is the
 *      header's own 36px plus that 8, against 12px to its right. The gap
 *      earns its place the moment core opens the field, and only then.
 *
 * Both are corrected where they are, rather than by nudging the circle with
 * a margin. Every other page's header gets the same correction, which is
 * right — the misalignment was never a house-page fault.
 */
.vm-header__search .wp-block-search__inside-wrapper {
	align-items: center;
}

.vm-header__search.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper {
	gap: 0;
}


/* -- 6. …and the magnifier inside it is the size the theme asked for ----- */

/*
 * Still Ana's "search gumb je čudan", and the second half of it. The ring
 * was 5px high (point 5 above); it is also carrying a glyph half again as
 * big as this theme ever specified.
 *
 *   asked for, Task 023   `.vm-header__search .wp-block-search__button svg`
 *                         at 1.15rem = 18.4px
 *   measured on the page  24px
 *
 * Core emits the icon as `<svg class="search-icon" width="24" height="24">`
 * and its own stylesheet floors it with `min-width` / `min-height` — which a
 * `width` declaration cannot beat, because a minimum is not a preference.
 * So the theme's number has never once reached the page.
 *
 * WHY THIS IS THE FIX RATHER THAN A SMALLER RING. Ana's words were that she
 * does not want the two objects merely the same height — she wants them to
 * balance, "a ne da je iste visine, a onda gumb dole npr. preprazan".
 * Measured, what the eye is reading is not the boxes but the air inside
 * them:
 *
 *                     box      ink     ink / box
 *   Check availability 29.4px   14px      0.48
 *   search, today      36px     24px      0.67   <- reads heavy
 *   search, restored   36px     18.4px    0.51   <- matches the button
 *
 * Both glyphs are already dead-centre in their boxes (6px of ring above and
 * below the magnifier; 7.5px and 8px above and below the label). So the pair
 * balances at the theme's own number, and the ring keeps the 36px Task 022
 * chose and the phone still shares with the menu button. One value restored,
 * none invented.
 */
.vm-header__search .wp-block-search__button svg,
.vm-header__search .wp-block-search__button svg.search-icon {
	min-width: 0;
	min-height: 0;
	width: 1.15rem;
	height: 1.15rem;
}


/* =========================================================================
 * TASK-008-7 — ONE BAR AT REST, TWO ON SCROLL
 * =========================================================================
 *
 * Ana read the header built by Task 008-4 on the real page and raised seven
 * objections. Five of them are decided and are here; two are drawn in
 * `docs/design/property-header-reference.html` and deliberately NOT built.
 * Her words, and the whole record, are in `docs/tasks/TASK-008-7.md`.
 *
 *   1  the house menu leaves its strip below the hero and goes up to the bar
 *   2  Online check-in stays in that bar
 *   3  Check availability shows from the top, not only once scrolled
 *   4  the marked item's rule takes the HOUSE's colour, not collection olive
 *   5  the three items in the house menu are untouched
 *
 * TWO OF THESE REVERSE RECORDED DECISIONS, and that is dealt with openly
 * rather than quietly. 2 and 3 together put both calls to action in one bar,
 * which `DECISIONS.md` 95 and 115 exist to prevent; 1 takes the section links
 * out of the scrolled bar, which is half of 117. Dated amendments to all
 * three are drafted in `docs/tasks/TASK-008-7.md` §7. Nothing here is written
 * into `DECISIONS.md` — Ana merges the shared documents one at a time.
 *
 * WHAT CAME BACK WITH THEM. 115 records a real failure: two calls to action
 * side by side in a 64px row. It was measured again at four widths before
 * this shipped, with both calls present — see §5.2 of the task file. The
 * short version is that the row now carries 1114.0px of content at 1440 in
 * 1210 of width, and that Online check-in is a quiet text link beside the
 * filled button rather than a second outlined object, which is the rule from
 * Task 022 that made the pair legible in the first place and is left alone.
 * ========================================================================= */


/* -- 1. At rest the house menu is a second ROW of the header ------------- */

/*
 * `blocks/header/view.js` appends `.vm-property-nav__inner` to `.vm-header`
 * itself, after `.vm-header__inner`, whenever the bar is NOT compact. It
 * therefore sits on the bar's own `--vm-header-bg` with no ground, no border
 * and no shadow of its own, which is what makes the two read as one object:
 * Ana's "zalijepljen za glavni".
 *
 * `.vm-container` is already on the element (it is a pattern, and the pattern
 * is unchanged), so the row lines up with the bar above it for free — same
 * max-width, same inline padding, same centring. It is named twice here to
 * beat Task 023-1's `.vm-header__section-nav.vm-header__section-nav` block,
 * which is the same specificity and describes the OTHER arrangement — a slot
 * inside the bar's flex line. Source order decides between them and this is
 * later; the 023-1 rules are left in place because that block also carries
 * the reasoning for the type treatment, which is unchanged.
 *
 * WHY IT IS A ROW AND NOT A FOURTH ITEM IN THE BAR. Measured at 1440 before
 * anything was built: the bar's inner width is 1210px, and a single row
 * carrying the logo, the collection navigation, the house menu, Online
 * check-in and Check availability needs 1455px. It does not fit, and not by
 * a margin any gap could close. The only way to put the house menu inside
 * the bar is to fold the collection navigation into the hamburger at the top
 * of the page — which would cost a guest arriving on a house the five links
 * that take them anywhere else. Ana chose the row, on those numbers.
 */
.vm-header__section-row.vm-header__section-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: var( --wp--preset--spacing--30, 1.5rem );
	max-width: var( --wp--style--global--wide-size, 1320px );
	margin-inline: auto;
	padding-block: var( --wp--preset--spacing--10, 0.5rem );
	padding-inline: var( --wp--preset--spacing--30, 1.5rem );
	min-width: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

/*
 * A scroller if a house ever needs one, and silent about it. Same decision,
 * and the same reason, as the strip's own rule in the TASK-008-4 section: a
 * visible scrollbar in a 34px band reads as a fault. With three items it
 * never scrolls — measured at 390px of window, the labels end at 337.2px.
 */
.vm-header__section-row.vm-header__section-row {
	overflow-x: auto;
	scrollbar-width: none;
}

.vm-header__section-row.vm-header__section-row::-webkit-scrollbar {
	display: none;
}

/*
 * 24px of touch target, in this position as well as in the strip below.
 * Task 042's V019 measured 14px against the 24×24 WCAG 2.2 §2.5.8 asks for,
 * and Task 008-4 fixed it only for the strip, because that was the only
 * place these links lived at rest. They now spend most of the page's life
 * here instead, so the same target has to come with them. The label keeps
 * its size; the target grows around it.
 */
.vm-header__section-row .vm-property-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
}

/*
 * The strip's old place in the page goes away completely, and `display` is
 * right here where Task 023-1 needed `visibility`.
 *
 * 023-1 hid it and kept its space because the links came BACK to it every
 * time the page scrolled up. They no longer do: the move happens once, at
 * load, and the row lives in the header for the rest of the page's life. So
 * there is nothing to reserve space for, and reserving it would leave a
 * 54.6px band of nothing under the Quick Facts bar.
 *
 * WITH JAVASCRIPT OFF THIS CLASS IS NEVER ADDED, so the strip stays exactly
 * where the saved page puts it, below the hero, and every rule written for
 * it in the TASK-008-4 section still applies. That is the behaviour of
 * 2026-09-24 and it is a working page, not a broken one.
 *
 * The rule inside 023-1's `min-width: 1200px` block hides the same element
 * with `visibility` and is now redundant rather than wrong; it is left where
 * it is because the comment beside it explains the mechanism.
 */
.vm-property-nav--in-header {
	display: none;
}


/* -- 1b. …and on scroll the row becomes a second bar --------------------- */

/*
 * ANA: "kad se počne scrollati da se pretvori u drugi."
 *
 * NOTHING MOVES TO MAKE THIS HAPPEN, and that is the point. The row is in
 * the header in both states; what changes is only how it is drawn.
 *
 *   AT REST   no ground, no edge. It sits on the bar's own `--vm-header-bg`,
 *             whatever that is — transparent over a hero photograph today,
 *             `base` the moment 008-4's Decision 2 makes the header opaque —
 *             so the bar and the row are one surface with no seam.
 *   SCROLLED  the bar takes `--vm-header-surface` (#F1EFE8) and its quiet
 *             shadow; the row takes `base` (#F8F7F3) and a hairline above
 *             it. Two grounds a step apart and one line between them, which
 *             is what a second bar looks like.
 *
 * The wrapper is what makes it a BAR rather than a band 1210px wide floating
 * in the middle of the window: `.vm-header__section-bar` spans the header,
 * the links inside it keep `.vm-container`, and the two line up because they
 * are the same container the bar above uses. `blocks/header/view.js` creates
 * it; it holds no content of its own.
 *
 * The colours are the ones the strip already used in each state, so nothing
 * new is introduced and nothing has to be measured again: `base` under
 * `#F1EFE8` is exactly the pair Task 008-4 measured the mark against.
 */
.vm-header__section-bar {
	transition: background-color 0.25s ease, border-color 0.25s ease;
	border-top: 1px solid transparent;
}

.vm-header--compact .vm-header__section-bar {
	background-color: var( --wp--preset--color--base );
	border-top-color: var( --wp--preset--color--border );
}

/*
 * The mark sits inside the taller target rather than below the label, or it
 * would touch the row's bottom edge. 008-4's reasoning, 008-4's value, now
 * in the position the links actually occupy.
 */
.vm-header__section-row .vm-property-nav__link[ aria-current ]::after {
	bottom: 2px;
}


/* -- 2. Online check-in stays in the shortened bar ----------------------- */

/*
 * ANA: "online check in mora stajati i tu."
 *
 * This reverses the pair of rules in the TASK-023-1 section that implement
 * `DECISIONS.md` 115. They are matched selector for selector, including the
 * `:not( .vm-header__actions--in-menu )` exception, so that the one thing
 * 115's own measurement caught — Online check-in vanishing from the OPENED
 * MENU as well as from the bar — cannot come back through the reversal.
 *
 * It does NOT reverse the rule above it that keeps Online check-in out of the
 * bar while the top strip is showing. That one is 95's real content and it is
 * still right: the link is in the strip at that moment, and putting it in
 * both places is the duplication 95 exists to prevent. What changes is only
 * the SHORTENED bar, where the strip is gone and there is nowhere else for it
 * to be.
 *
 * It keeps Task 022's quiet-text-link treatment in the compact bar, and that
 * treatment is the reason this is legible rather than crowded: Online
 * check-in beside the filled button is a text link, not a second outlined
 * object. See the rule in the TASK-023-1 section, which is untouched.
 */
@media (min-width: 1152px) {
	.vm-header--compact .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__cta--checkin,
	.vm-header[ data-vm-top-strip="on" ].vm-header--compact .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__cta--checkin {
		display: flex;
	}
}


/* -- 3. Check availability shows from the top ---------------------------- */

/*
 * ANA: "isprva sam mislila da se check availibility pojavi tek kad scrollaju
 * i prođu ovaj above the fold, al to nema smisla jer prvo na mobu uopće nema
 * veze, a ovako na desktopu izgleda prazno."
 *
 * Both halves of that sentence are load-bearing and both are answered here.
 *
 * "NA DESKTOPU IZGLEDA PRAZNO" — measured at 1440 on Villa Filaus before
 * anything was changed: at rest the right-hand side of the bar carried a
 * 36px search circle and one outlined 150px link, and the filled button that
 * is the collection's single strongest call appeared only after 40px of
 * scroll. That is the emptiness.
 *
 * "NA MOBU UOPĆE NEMA VEZE" — and the measurement agrees with her, further
 * up the scale than the word "mob" suggests. See the breakpoint note below:
 * this block and the Online check-in block above are both scoped
 * `min-width: 1152px`, which keeps the phone row exactly as it is and keeps
 * the laptop row from wrapping.
 *
 * TWO RULES, because two separate things were hiding it.
 *
 *   `display: none`     `DECISIONS.md` 95 — the button belongs to the sticky
 *                       bar alone. This is the decision Ana has now ruled
 *                       against, and the amendment is drafted in the task
 *                       file rather than written here.
 *
 *   `.vm-header--cta-idle`  Task 008-2's conversion state — the button stands
 *                       down while the page's own primary call is on screen.
 *                       On a house page that call is in the Quick Facts bar,
 *                       690px down a 812px window, so it is on screen at rest
 *                       and the header stayed empty for exactly the reason
 *                       Ana names. Reversing 95 without this one would have
 *                       changed nothing visible, which is the kind of fix
 *                       that gets reported as done and is not.
 *
 * The idle MECHANISM is left alive on purpose: `view.js` still sets and
 * clears the class, and `.vm-header__cta--guest` still reads it, so the
 * existing-guest action Task 008-2 reserved is still one CSS rule away. What
 * is switched off is only the hiding.
 */
@media (min-width: 1152px) {
	.vm-header .vm-header__actions .vm-header__cta--conversion {
		display: flex;
	}

	.vm-header--cta-idle .vm-header__cta--conversion {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}


/* -- 3b. 1152px, and the number is measured ------------------------------ */

/*
 * BOTH BLOCKS ABOVE ARE SCOPED TO THE SAME WIDTH, and this is the honest
 * answer to the thing `DECISIONS.md` 115 warns about: "two calls to action
 * side by side in a 64px row". 115 is right that the row has a limit. It is
 * wrong that the limit is everywhere.
 *
 * The row's fixed load is the logo (127.6px), the collection navigation's
 * five labels (539.4px of text, and this is the part that cannot shrink —
 * it wraps instead), the search circle (36px), Online check-in (150px at
 * rest, 127.6px as the compact bar's quiet text link) and Check availability
 * (165px), plus the bar's own 36px gaps and the actions' 12px ones.
 *
 * Measured on Villa Filaus with both calls present, at rest, reading the
 * width the navigation is actually given against the 539.4px it needs:
 *
 *   1120px   nav gets 520.2  — WRAPS to three lines, bar 74px -> 90px
 *   1136px   nav gets 534.7  — WRAPS
 *   1144px   nav gets 541.9  — fits, bar 74px
 *   1152px   nav gets 549.2  — fits, 9.8px of headroom
 *   1440px   nav gets 594.8+ — fits comfortably
 *
 * So the real boundary is about 1141.5px and the breakpoint is 1152px, a
 * round number just above it with a little headroom — because those five
 * labels are editable content and a sixth item would move the boundary.
 * The scrolled bar fails about 22px lower, since Online check-in is the
 * narrower text link there; one number covers both, taken from the tighter
 * of the two states.
 *
 * BELOW 1152px THE PAGE KEEPS EXACTLY THE BEHAVIOUR IT HAD THIS MORNING —
 * Online check-in at rest, Check availability in the shortened bar, never
 * both — which is a known-good state and not a fallback invented here. At
 * 390px, where Ana said it does not matter, nothing changes at all: both
 * calls were measured overflowing the row by 70px with the rule unscoped,
 * which is 115's failure reproduced with a number rather than argued about.
 *
 * WHAT WAS CONSIDERED AND NOT DONE: folding the collection navigation into
 * the hamburger below 1152 would make both calls fit at every width. It was
 * rejected because it costs a guest on a 1024px laptop the five links that
 * take them anywhere else on the site, in exchange for a returning-guest
 * link they can still reach — and that is the same trade, in the same
 * direction, that this task refused when it switched off Task 023-1's
 * hamburger rules above.
 */


/* -- 4. The marked item takes the house's own colour --------------------- */

/*
 * ANA: "zaglavlje treba uzimati accent color propertyja za ove podcrtane
 * dijelove, i na glavnom meniju i na kućnom."
 *
 * ONE VARIABLE, AND IT IS LEGAL BY THE SYSTEM'S OWN DEFINITION. The role
 * comment at the top of this file says `--vm-color-primary` is the
 * identification mark and is NON-TEXT ONLY — "pins, icons, rules, selected
 * marks, borders". A 2px rule under a selected label is both of the last two.
 * The label itself stays `contrast`, for the reason Task 008-4 gave: at this
 * size text needs 4.5:1 and the Mark does not reach it on three of the five
 * houses.
 *
 * MEASURED, ALL FIVE, ON BOTH GROUNDS — the bar's ground once it is solid
 * (#F1EFE8) and the strip's own ground when it is the second bar (base,
 * #F8F7F3). A non-text indicator needs 3:1 (WCAG 1.4.11):
 *
 *   Villa Filaus     #C2713C   3.42 : 1 on base   3.19 : 1 on #F1EFE8
 *   Casa Laurea      #883033   7.78               7.25
 *   Palmotta Palace  #266547   6.45               6.01
 *   Villa Diamond    #137E83   4.51               4.21
 *   Villa Malo More  #19699A   5.55               5.17
 *
 *   for comparison, the olive this replaces:
 *   collection       #6C764F   4.51               4.20
 *
 * All five clear the floor, so nothing is shipped that fails and no house
 * gets an exception. Villa Filaus is the one to know about: at 3.19 it has
 * 0.19 of headroom on the tighter ground and is visibly quieter than the
 * olive was. That is the cost of the mark being the house's own colour, it
 * is stated rather than discovered later, and the mark does not rely on
 * colour alone in any case — it is a 2px rule, and `aria-current` carries it
 * for anyone listening rather than looking.
 *
 * Same selector pair as the TASK-008-4 rule it overrides, so the mark still
 * rides on the element itself and survives the move between the row and the
 * strip with nothing to keep in step.
 */
.vm-property-nav .vm-property-nav__link[ aria-current ]::after,
.vm-header__section-nav .vm-property-nav__link[ aria-current ]::after {
	background: var( --vm-color-primary );
}

/*
 * AND THE OTHER HALF OF HER SENTENCE — "i na glavnom meniju".
 *
 * The collection navigation has carried a Core-coloured underline on the
 * current item since Task 022, and on a house page it has never once
 * rendered: that rule is written `:not( [data-vm-navigation="light"] )`, and
 * every one of the five houses sets `data-vm-navigation="light"`. Measured on
 * Villa Filaus, scrolled, at 1440: the current item reads `text-decoration:
 * none`. There is no mark at all to recolour.
 *
 * So the gap is filled where colour is legal — once the bar is scrolled and
 * solid. At rest over a photograph `DECISIONS.md` 116 keeps every element in
 * the header `base`, and that is not reopened here: colour on a photograph is
 * neither legible nor measurable, which is the finding 023-1 paid for.
 *
 * `--vm-color-deep` and not `--vm-color-primary`, because this one colours
 * TEXT as well as the line under it, and Deep is the role that carries text
 * on a light ground. Measured on the same two grounds, the five Deeps run
 * 5.05 : 1 to 10.80 : 1 — the weakest, Villa Filaus's #9E4F30 on #F1EFE8,
 * clears the 4.5 : 1 floor with room to spare.
 *
 * The ancestor selector is not decoration either: on a house page the
 * `current-menu-item` is "Villa Filaus" INSIDE the Our Stays dropdown, which
 * is closed. `current-menu-ancestor` is the item a guest can actually see.
 */
.vm-header--scrolled .wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content,
.vm-header--scrolled .wp-block-navigation .current-menu-ancestor > a.wp-block-navigation-item__content {
	color: var( --vm-color-deep );
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.4em;
}


/* -- 5. One treatment for the strip at every width ----------------------- */

/*
 * Task 008-4 gave the strip 24px of touch target and a 24px gap, and scoped
 * it `max-width: 1199.98px` — correctly, because above that width the links
 * were not in the strip at all, they were up in the bar. Task 008-7 puts them
 * back in the strip at every width, so the treatment has to come with them or
 * a desktop guest gets the 14px target Task 042's V019 recorded as a fault.
 *
 * Measured on Villa Filaus at 1440, scrolled, with the links in the strip and
 * 008-4's rules still scoped below 1200:
 *
 *   link target   14px        ->  24px   (WCAG 2.2 §2.5.8 asks 24×24)
 *   strip height  54.6px      ->  35px
 *   bar + strip   119.6px     ->  100px  — the same 100px 008-4 measured at
 *                                          390, now true at every width
 *
 * So the shorter strip is not a saving looked for; it is what happens when
 * the padding that was holding a 14px label apart is replaced by a target
 * that holds itself. 008-4's `max-width: 1199.98px` block now says the same
 * thing as these rules below that width and is left exactly where it is: its
 * comment is where the 390px arithmetic and the touch-target trade are
 * written down, and deleting the rules would take the reasoning with them.
 */
body.single-vm_property .vm-property-nav .vm-property-nav__inner {
	padding-block: 0;
	gap: var( --wp--preset--spacing--30, 1.5rem );
}

body.single-vm_property .vm-property-nav .vm-property-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-block: 5px;
}

/* The mark sits inside the taller target rather than below the label, or it
   would touch the strip's own bottom edge. 008-4's reasoning, same value. */
body.single-vm_property .vm-property-nav .vm-property-nav__link[ aria-current ]::after {
	bottom: 2px;
}


/* =========================================================================
 * TASK-008-9 — THE HOUSE BAR: ONE BAR THAT BELONGS TO THE HOUSE
 * =========================================================================
 *
 * Ana, 2026-11-09, choosing the hybrid from
 * `docs/design/traka-kuce-reference.html` §1: on a house page the header is
 * ONE bar that belongs to the house — the house's mark, the house's menu,
 * search, Online check-in, the booking button and ≡, which opens the
 * collection's menu at every width. Links sit left beside the mark,
 * actions right (arrangement C). Every other page keeps today's header.
 *
 * EVERYTHING HERE HANGS OFF `.vm-header--house`, which `render.php` prints
 * only when the header is a house's (`inc/header-house.php`). No collection
 * page carries it, so nothing below can reach one; Part D of the task file
 * proves that by hash. Switching house mode off on a server
 * (`VILLAS_MORE_HEADER_HOUSE_MODE`, false, in `wp-config.php`) removes the
 * class and every rule here goes dormant — the page is Task 008-7's again.
 *
 * WHAT THIS SECTION DOES NOT NEED TO DO, because the markup was built to
 * borrow it: the house menu carries core/navigation's class names, so its
 * typography, its colour over the photograph and once solid, its hover and
 * its focus ring come from the rules that already style the collection
 * menu. One treatment, by construction. What is here is only layout, the
 * "you are here" mark, and the ≡ panel.
 *
 * THE THREE WIDTHS, measured and recorded in `TASK-008-9.md` Part B.8:
 *
 *   1152px and up   both calls in the bar (Task 008-7's rule, unchanged —
 *                   its boundary was set by the longer collection menu,
 *                   and the house bar fits inside it with room to spare)
 *   961 to 1151     the house menu stays in the bar; one call at a time
 *                   (Task 008-7's below-the-boundary behaviour, unchanged)
 *   960 and below   the house menu moves into the ≡ panel — house first,
 *                   then the collection, then the actions — and the bar is
 *                   the mark, the call and ≡. 960 is the width at which
 *                   this header has collapsed its menu since Task 006-6.
 */

/* -- 1. The order of the bar: mark · house menu · actions · ≡ ------------ */

/*
 * `render.php` prints the house menu right after the mark, and
 * `inc/header-house.php` moves the collection navigation (which holds ≡)
 * after the actions in the document, so the focus order IS this order —
 * no `order` values. The one exception is the phone rule from Task 023
 * (`order: 1; margin-inline-start: auto` on every `.wp-block-navigation`
 * at 600px and below): named explicitly here so it cannot reach the house
 * menu, which borrows that class.
 *
 * The bar's own gap drops to the step the actions already use between
 * themselves, so ≡ sits beside the button as one group (drawing §1.2), and
 * the space between the mark and the house menu is given back as a margin.
 */
.vm-header--house .vm-header__inner {
	gap: var( --wp--preset--spacing--20 );
}

.vm-header--house .vm-header__inner > .vm-header__house-nav {
	order: 0;
	flex: 1 1 auto;
	justify-content: flex-start;
	min-width: 0;
	margin-inline-start: var( --wp--preset--spacing--30 );
}

.vm-header--house .vm-header__house-list {
	flex-wrap: nowrap;
	align-items: center;
}

.vm-header--house .vm-header__house-link {
	white-space: nowrap;
}

/* The actions keep to the right-hand end at every width. Above 960px the
   house menu's own growth already puts them there; at 960 and below, where
   the house menu has left the bar, this is what does — otherwise the bar's
   `space-between` would float them into the middle. */
.vm-header--house .vm-header__inner > .vm-header__actions {
	margin-inline-start: auto;
}

/* The collection navigation is only ≡ in the bar now: it takes the room
   its button needs and no more. */
.vm-header--house .vm-header__inner > .wp-block-navigation:not( .vm-header__house-nav ) {
	order: 0;
	flex: 0 0 auto;
	margin-inline-start: 0;
}


/* -- 2. 960px and below: the house menu goes behind ≡ --------------------- */

/*
 * WITH JAVASCRIPT the house menu leaves the bar and `view.js` moves it into
 * the ≡ panel when the panel opens, ahead of the collection's items
 * (drawing §1.5). The bar is one row: no second house row any more.
 *
 * WITHOUT JAVASCRIPT core's panel cannot open at all, so hiding the house
 * menu would leave the page with none. `.vm-header--js` is added by
 * `view.js` as its first act; until it is there, the house menu wraps to a
 * row of its own under the mark instead. One house menu, in the header,
 * either way — which is what the brief asks of a page without scripts.
 */
@media (max-width: 960px) {
	.vm-header--house.vm-header--js .vm-header__inner > .vm-header__house-nav {
		display: none;
	}

	.vm-header--house:not( .vm-header--js ) .vm-header__inner {
		flex-wrap: wrap;
	}

	.vm-header--house:not( .vm-header--js ) .vm-header__inner > .vm-header__house-nav {
		order: 2;
		flex-basis: 100%;
		margin-inline-start: 0;
		overflow-x: auto;
	}
}


/* -- 3. Where you are ----------------------------------------------------- */

/*
 * Task 008-7's decision 366, moved into the one bar: the marked section
 * takes the house's own Mark as a 2px rule, the label stays `contrast`.
 * Over the photograph `DECISIONS.md` 116 still wins and both are `base`.
 * The mark itself is set by `view.js` (`aria-current`), the same code that
 * marked the second row — it reads the links from whichever element holds
 * them.
 *
 * Drawn under the label rather than at the foot of the link's box: the box
 * carries the hit area's padding, and a rule at its edge would float a
 * finger's width below the word it belongs to.
 */
.vm-header--house .vm-header__house-link[ aria-current ] {
	position: relative;
	color: var( --wp--preset--color--contrast );
}

.vm-header--house .vm-header__house-link[ aria-current ]::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: calc( var( --wp--preset--spacing--10 ) - 0.35em );
	height: 2px;
	background: var( --vm-color-primary );
}

.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__house-link[ aria-current ] {
	color: var( --wp--preset--color--base );
}

.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .vm-header__house-link[ aria-current ]::after {
	background: var( --wp--preset--color--base );
}


/* -- 4. The ≡ panel -------------------------------------------------------- */

/*
 * The Villas More mark comes first: on a house page it is the way back to
 * the collection (drawing §1.4). `inc/header-house.php` prints it inside
 * the dialog, so it is inside the focus trap.
 */
.vm-header--house .vm-header__panel-brand {
	display: inline-flex;
	align-items: center;
	margin-block-end: var( --wp--preset--spacing--30 );
	color: var( --wp--preset--color--contrast );
	text-decoration: none;
}

.vm-header--house .vm-header__panel-logo {
	display: block;
	width: auto;
	height: var( --wp--preset--spacing--40 );
}

.vm-header--house .vm-header__panel-name {
	font-family: var( --wp--preset--font-family--display );
	font-size: var( --wp--preset--font-size--medium );
	letter-spacing: var( --wp--custom--typography--eyebrow-letter-spacing );
	text-transform: uppercase;
}

/*
 * On a phone the panel also carries the house menu (first) and the actions
 * (last). Each group is separated from the next by a hairline and a step of
 * space, so the house's four words do not run on into the collection's.
 */
/*
 * The four groups are ordered explicitly because the panel's content box is
 * a flex column and two older rules give some of its children an `order`
 * of their own: Task 023's phone rule puts `order: 1` on anything carrying
 * `.wp-block-navigation` — which the house menu borrows — and core's list
 * takes the same. Stated here once, in the document's own order, so what
 * the eye reads and what the Tab key reaches agree.
 */
.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__house-nav {
	order: 1;
}

.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__panel-brand {
	order: 2;
}

.vm-header--house .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
	order: 3;
}

.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__actions--in-menu {
	order: 4;
}

.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__house-nav {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	align-items: center;
	width: auto;
	margin-inline: 0;
	padding-block-end: var( --wp--preset--spacing--30 );
	border-block-end: 1px solid var( --wp--preset--color--border );
}

.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__house-nav .vm-header__house-list {
	flex-direction: column;
	align-items: center;
}

/* Task 023's rule draws the actions' hairline BELOW them, for a panel in
   which they come first. Here they come last, so the line goes above. */
.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__actions--in-menu {
	align-self: stretch;
	margin-inline: 0;
	margin-block-end: 0;
	padding-block-end: 0;
	padding-inline: var( --wp--preset--spacing--30 );
	border-bottom: 0;
	padding-block-start: var( --wp--preset--spacing--30 );
	border-block-start: 1px solid var( --wp--preset--color--border );
}

/*
 * THE PANEL IS A SOLID GROUND, EVEN WHEN THE BAR IS OVER THE PHOTOGRAPH.
 *
 * Found building this, and it is older than this task: at rest, before the
 * page has scrolled, a house page's header is in the over-the-photograph
 * state (`DECISIONS.md` 116), and every rule of that state turns the
 * header's type `base`. Those rules do not stop at the edge of the ≡ panel,
 * and the panel's ground is light — so a guest who opened the menu before
 * scrolling met near-white words on a near-white page. Measured on the
 * phone panel on 2026-11-09: link colour rgb(248, 247, 243). On a house page
 * the panel now opens at every width, desktop included, so it is fixed here
 * for the house bar: inside the open panel the type is `contrast`, exactly
 * as it is once the page has scrolled. One class more specific than the
 * state's own rules, and placed after them.
 */
.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation__responsive-container.is-menu-open {
	--vm-header-text: var( --wp--preset--color--contrast );
	--vm-header-text-hover: var( --wp--preset--color--contrast );
}

.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content,
.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__house-link[ aria-current ],
.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__search .wp-block-search__button,
.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__cta--checkin .wp-block-button__link {
	color: var( --wp--preset--color--contrast );
}

.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__cta--checkin .wp-block-button__link {
	border-color: var( --vm-header-rule );
}

.vm-header--house[ data-vm-navigation="light" ]:not( .vm-header--scrolled ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__house-link[ aria-current ]::after {
	background: var( --vm-color-primary );
}

/* ==========================================================================
 * TASK-014-6 — THE ROOM PAGE: LAYOUT ONLY
 * --------------------------------------------------------------------------
 * The parts are drawn by the plugin's VM Room block (blocks/room); this
 * section only places them, as approved 2026-11-12 (stranica-sobe-
 * reference.html, "zlatna sredina"): photographs across the content width;
 * name and facts left, the date bar right; then description, amenities,
 * and the house's other rooms on a stone band. Tokens only.
 * ========================================================================== */
.vm-room-page > * {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30);
	margin-block: 0;
}

.vm-room-page > .vm-room-page__gallery {
	margin-top: var(--wp--preset--spacing--30);
}

.vm-room-page > .vm-room-page__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
	gap: var(--wp--preset--spacing--50);
	align-items: start;
	padding-block: var(--wp--preset--spacing--40);
}

.vm-room-page__main > * {
	margin: 0;
}

.vm-room-page > .vm-room-page__band {
	padding-block: 0 var(--wp--preset--spacing--40);
}

.vm-room-page > .vm-room-page__others {
	max-width: none;
	background: var(--wp--preset--color--stone);
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	padding-inline: max( var(--wp--preset--spacing--30), calc( ( 100% - var(--wp--style--global--wide-size) ) / 2 + var(--wp--preset--spacing--30) ) );
}

@media ( max-width: 781px ) {
	.vm-room-page > .vm-room-page__gallery {
		margin-top: 0;
		padding-inline: 0;
	}

	.vm-room-page > .vm-room-page__main {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--30);
		padding-block: var(--wp--preset--spacing--30);
	}
}

/* ==================================================================
 * TASK-014-6 PART C — THE HOMEPAGE'S FOUR STAYS (inc/home-stays.php)
 * 2 × 2 on a computer and tablet; on a phone a swipe track with a peek
 * (pure CSS, decision 91) and the counter from assets/js/home-stays.js.
 * The `--four` class is added at render only when exactly four cards
 * are drawn, so the saved 2 + 3 composition above is untouched otherwise.
 * ================================================================== */
.vm-collection-grid.vm-collection-grid--four {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) {
	grid-column: span 1;
}

.vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__media {
	aspect-ratio: 16 / 10;
}

.vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__name {
	font-size: 1.4rem;
}

.vm-stay-card__range {
	margin: 0 0 0.75rem;
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--small );
	letter-spacing: 0.02em;
}

.vm-collection-count {
	margin: 0.75rem 0 0;
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--small );
	text-align: center;
}

@media ( max-width: 599px ) {
	.vm-collection-grid.vm-collection-grid--four {
		display: flex;
		gap: 1rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		/* The container's own side padding, so a snapped card sits on the
		   gutter like the text above it instead of on the screen's edge. */
		scroll-padding-inline: 1.5rem;
	}

	.vm-collection-grid.vm-collection-grid--four::-webkit-scrollbar {
		display: none;
	}

	.vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) {
		flex: 0 0 82%;
		scroll-snap-align: start;
		min-width: 0;
	}

	.vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__media {
		aspect-ratio: 4 / 3;
	}

	.vm-collection-grid.vm-collection-grid--four > .vm-stay-card:nth-child( n ) .vm-stay-card__name {
		font-size: 1.2rem;
	}
}


/* =========================================================================
 * TASK-012-1 — THE HOMEPAGE'S CLOSING BAND, LIGHT, WITH A PHOTOGRAPH
 * =========================================================================
 *
 * Supersedes the colours and spacing of "Final collection band" (TASK-012,
 * further up this file; a note there points here). Ana, 16.11.2026: the
 * dark band "ista kao footer pa se clashaju". The band is now light: the
 * words on the left, lined up with the sections above, and a photograph on
 * the right running to the edge of the screen — the mirror of the homepage
 * hero, which opens with its photograph on the left. On a phone the
 * photograph stands above the words. Same selectors as TASK-012's rules
 * where they replace them, so this section wins by coming last.
 *
 * The photograph is a Cover block (for its focal point), and the words are
 * the Cover's own content; on a wide screen the Cover's <img> is moved into
 * the right-hand 54%, so ONE markup serves both layouts. Text over the
 * photograph was built first and withdrawn the same day — Ana: "nemoj za
 * desktop da ide preko fotografije, čudno je". docs/tasks/TASK-012-1.md.
 *
 * Tokens only. The one breakpoint is 960px, the homepage hero's own
 * (patterns/hero-zrcalo.php NOTE B).
 * ========================================================================= */

.vm-collection-cta {
	/* The seam: the photograph starts here and takes the remaining 54%,
	   the hero's own 54% (`--vmz-seam`) mirrored. */
	--vm-cta-seam: 46%;
	background-color: var( --wp--preset--color--base );
	padding-block: 0;
	border-bottom: 0;
}

/* WordPress's block gap reaches every group level (see the Zrcalo hero's
   NOTE A); without this the panel's children drift by 24px. */
.vm-collection-cta > *,
.vm-collection-cta__panel > * {
	margin-block: 0;
}

.wp-block-cover.vm-collection-cta__cover {
	min-height: calc( var( --wp--preset--spacing--60 ) * 5.5 );
	padding: 0;
}

/* The photograph: the right-hand side, top to bottom, to the screen edge. */
.wp-block-cover.vm-collection-cta__cover > .wp-block-cover__image-background {
	left: var( --vm-cta-seam );
	width: calc( 100% - var( --vm-cta-seam ) );
}

/* The words: the left-hand side, starting on the same line as the
   sections above. */
.wp-block-cover.vm-collection-cta__cover > .wp-block-cover__inner-container {
	width: var( --vm-cta-seam );
	padding-block: var( --wp--preset--spacing--50 );
	padding-inline-start: max(
		var( --wp--preset--spacing--30 ),
		calc( ( 100% - var( --wp--style--global--wide-size ) ) / 2 + var( --wp--preset--spacing--30 ) )
	);
	padding-inline-end: calc( var( --wp--preset--spacing--40 ) * 1.5 );
	box-sizing: border-box;
}

.vm-collection-cta__panel {
	max-width: calc( var( --wp--preset--spacing--40 ) * 11 );
}

/* No photograph: the panel stands on the light ground as a text band,
   lined up with the container. Nothing is drawn in the photograph's place. */
.vm-collection-cta > .vm-collection-cta__panel {
	max-width: var( --wp--style--global--wide-size );
	margin-inline: auto;
	padding: var( --wp--preset--spacing--50 ) var( --wp--preset--spacing--30 );
	box-sizing: border-box;
}

.vm-collection-cta .vm-eyebrow {
	color: var( --wp--preset--color--muted );
}

.vm-collection-cta .wp-block-heading {
	color: var( --wp--preset--color--contrast );
	max-width: none;
	margin-block: calc( var( --wp--preset--spacing--10 ) * 2 ) calc( var( --wp--preset--spacing--20 ) * 1.25 );
}

.vm-collection-cta p:not( .vm-eyebrow ) {
	color: var( --wp--preset--color--muted );
	max-width: none;
}

.vm-collection-cta .wp-block-buttons {
	margin-top: calc( var( --wp--preset--spacing--30 ) * 1.25 );
}

/* Dark, not the header's green: green is booking on this site, and this
   button leads into the collection. */
.vm-collection-cta .vm-cta--primary .wp-block-button__link {
	background-color: var( --wp--preset--color--contrast );
	color: var( --wp--preset--color--base );
}

.vm-collection-cta .vm-cta--primary .wp-block-button__link:hover,
.vm-collection-cta .vm-cta--primary .wp-block-button__link:focus-visible {
	background-color: color-mix( in srgb, var( --wp--preset--color--contrast ) 82%, var( --wp--preset--color--base ) );
	color: var( --wp--preset--color--base );
}

@media ( max-width: 959px ) {
	/* The photograph first, at 4:3, then the words across the width. */
	.wp-block-cover.vm-collection-cta__cover {
		display: block;
		min-height: 0;
	}

	.wp-block-cover.vm-collection-cta__cover > .wp-block-cover__image-background {
		position: relative;
		inset: auto;
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.wp-block-cover.vm-collection-cta__cover > .wp-block-cover__inner-container {
		width: 100%;
		padding: calc( var( --wp--preset--spacing--40 ) * 1.2 ) var( --wp--preset--spacing--30 );
	}

	.vm-collection-cta__panel {
		max-width: none;
	}
}


/* =========================================================================
 * TASK-051 — THE HOMEPAGE CARDS' PHOTOGRAPH, FROM THE HOUSE (inc/home-stays.php)
 * =========================================================================
 *
 * The card's photograph is now an <img> drawn from the house's featured
 * image, not the background saved in page 9. The box keeps every rule it
 * had (its ratio, corner, spacing — above, unchanged); the photograph is
 * laid over the whole box and cropped the way the background was:
 * `cover`, centred. Positioned absolutely, so the box's size never
 * depends on the image and nothing moves while it loads.
 *
 * ⚠ If the card's columns, gaps or ratios change, the `sizes` numbers in
 * villas_more_home_stays_photo_sizes() (inc/home-stays.php) must change
 * with them, or browsers will fetch a file too small or too large.
 * ========================================================================= */

.vm-stay-card__media.vm-stay-card__media--photo {
	position: relative;
	overflow: hidden;
}

.vm-stay-card__media--photo > .vm-stay-card__photo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
	border-radius: inherit;
}


/* =========================================================================
 * TASK-052 — PHONE FIXES BEFORE LAUNCH (2026-11-17)
 * =========================================================================
 *
 * Ana on her iPhone, Safari, the day before launch. Each part is marked
 * with its step; nothing here edits a rule above it.
 *
 * 1  THE HOMEPAGE PHOTOGRAPH (`.vm-zrcalo__media`) fills its column.
 *    Below 960px the hero's own <style> (saved inside page 9, NOT edited —
 *    it is content) makes the photograph an EMPTY grid item with
 *    `aspect-ratio: 4/3; min-height: 0` and no width. Chrome stretches it
 *    to the column; Safari sized it from its (absent) content and drew a
 *    box of about 242 of 390px in the top-left corner. Giving it an
 *    explicit width removes the guess: with `width: 100%` the height
 *    follows from the ratio in every engine. `justify-self: stretch` says
 *    the same thing to the grid. Phone/tablet only — desktop untouched.
 *    Two classes so it does not depend on source order against page 9.
 * ========================================================================= */

@media ( max-width: 959px ) {
	.vm-zrcalo__inner > .vm-zrcalo__media {
		justify-self: stretch;
		width: 100%;
	}
}


/* =========================================================================
 * TASK 013-5 B — THE HOMEPAGE HOUSE CARD'S NAME IS A LINK (2026-11-17)
 * =========================================================================
 * `inc/home-stays.php` wraps each card's name in a link to the house (the
 * same address as "View this stay"). It must look exactly as the name did:
 * same colour, no underline of its own — the card's hover still underlines
 * the name (rule "…--four .vm-stay-card:hover .vm-stay-card__name" above),
 * and a parent's underline is drawn through the link. The stretched button
 * still covers the card, so mouse clicks land on the same address either
 * way; the name's link is for keyboards, screen readers and search engines,
 * so it gets the card's own focus ring.
 * ========================================================================= */

.vm-stay-card .vm-stay-card__name-link {
	color: inherit;
	text-decoration: none;
}

.vm-stay-card .vm-stay-card__name-link:focus-visible {
	outline: 2px solid var( --vm-color-deep );
	outline-offset: 3px;
}


/* =========================================================================
 * TASK-052 (continued) — PHONE FIXES BEFORE LAUNCH, step 2
 * =========================================================================
 * (Task 013-5's section above landed between this task's steps 1 and 2;
 * the two are independent.)
 *
 * 2  ON A HOUSE PAGE'S PHONE BAR, "BOOK NOW" IS THERE FROM THE START.
 *    Ana, 17.11.: „book now bi stao gore". Until now, at 960px and below,
 *    the bar at the top of a house page held mark · search · ≡ and the
 *    button arrived only once the guest scrolled (DECISIONS.md 95, and
 *    Task 008-2's `--cta-idle`, which stands the button down while the
 *    page's own booking call is on screen). Both are lifted here for the
 *    HOUSE bar at phone and tablet widths — the amendment of 95 is drafted
 *    in docs/tasks/TASK-052.md, not written to DECISIONS.md.
 *
 *    The button is the same element as before, with the same link
 *    (inc/booking-links.php → hm_booking_url()); only whether it shows
 *    changes. At 600px and below search leaves the bar to make room: it
 *    is still in the ≡ panel, where the actions group travels when the
 *    panel opens (`.vm-header__actions--in-menu`, not touched). From 601
 *    to 960 there is room for both, and search stays in the bar.
 *    Collection pages are not reached: every selector carries
 *    `.vm-header--house`.
 *
 *    Above 960 nothing changes (the 1152px rules of 008-7/008-9 decide).
 */
@media ( max-width: 960px ) {
	.vm-header--house .vm-header__actions .vm-header__cta--conversion {
		display: flex;
	}

	.vm-header--house.vm-header--cta-idle .vm-header__cta--conversion {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

@media ( max-width: 600px ) {
	.vm-header--house .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__search {
		display: none;
	}

	/* The same narrower button the scrolled phone bar already uses
	   (Task 022's sizing), now at rest as well, so it does not change size
	   when the guest starts to scroll. */
	.vm-header--house .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__cta--conversion .wp-block-button__link {
		padding-inline: 0.8rem;
		font-size: 0.68rem;
		letter-spacing: 0.08em;
	}
}


/* =========================================================================
 * TASK-052 (continued) — step 2 extended, and step 3
 * =========================================================================
 *
 * 2b ANA'S TWO YESES OF 17.11. (15:05) to what step 2 proposed:
 *    – collection pages get the same phone bar as house pages: Book now
 *      from the start at 960px and below, search into the ≡ panel at
 *      600px and below (the rules above, without `.vm-header--house`);
 *    – on a house page from 961 to 1151px (an iPad held sideways, a small
 *      laptop) Book now is shown at the top too. Below 1152 the house bar
 *      carried "one call" (008-7): Online check-in at rest, the button once
 *      scrolled — and Online check-in is switched off since 13.11., so the
 *      top of the page had no call at all in that range.
 *    Same button, same link (hm_booking_url() via inc/booking-links.php).
 */
@media ( max-width: 960px ) {
	.vm-header .vm-header__actions .vm-header__cta--conversion {
		display: flex;
	}

	.vm-header.vm-header--cta-idle .vm-header__cta--conversion {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

@media ( max-width: 600px ) {
	.vm-header .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__search {
		display: none;
	}

	.vm-header .vm-header__actions:not( .vm-header__actions--in-menu ) .vm-header__cta--conversion .wp-block-button__link {
		padding-inline: 0.8rem;
		font-size: 0.68rem;
		letter-spacing: 0.08em;
	}
}

@media ( min-width: 961px ) and ( max-width: 1151px ) {
	.vm-header--house .vm-header__actions .vm-header__cta--conversion {
		display: flex;
	}

	.vm-header--house.vm-header--cta-idle .vm-header__cta--conversion {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

/*
 * 3  THE HOUSE PAGE'S PHONE MENU — ANA'S VARIANT A (17.11.).
 *    docs/design/mobilni-izbornik-kuce-reference.html. Top to bottom:
 *    Book now · the house's name over its sections · OTHER STAYS · the
 *    collection's name over The Collection, Experiences, Dubrovnik Guide ·
 *    search. No Villas More mark in the middle.
 *
 *    The markup: inc/header-house.php prints `.vm-header__panel-phone`
 *    (the other houses and the rest of "Our Stays", read from navigation
 *    292) and marks the "Our Stays" submenu it replaces
 *    (`.vm-header__stays-submenu`) and the mark (`--wide`); render.php
 *    prints the house's name inside the house menu; view.js puts the
 *    actions first (`.vm-header__actions--first`) and search last. So the
 *    document order IS this order and the Tab key follows the eye; the
 *    `order` values below only restate it over 008-9's.
 *
 *    960px and below — where the house menu leaves the bar and the panel
 *    is the phone's menu. Above that the desktop panel is 008-9's exactly:
 *    the list is not displayed and nothing else is reached.
 */
.vm-header__house-name,
.vm-header--house .vm-header__panel-phone {
	display: none;
}

@media ( max-width: 960px ) {
	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__actions--in-menu.vm-header__actions--first {
		order: 0;
		align-self: stretch;
		margin-inline: 0;
		margin-block-end: var( --wp--preset--spacing--20 );
		padding-inline: var( --wp--preset--spacing--30 );
		padding-block: 0;
		border: 0;
	}

	/* Core's overlay shows every item with `.is-menu-open … .wp-block-navigation-item`
	   (four classes), so these carry five. */
	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__panel-brand--wide,
	.vm-header--house .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .vm-header__stays-submenu {
		display: none;
	}

	/* No flex gap between the groups in this panel: their spacing is set
	   below, so the collection's own items (Experiences, Guide) run on
	   directly under The Collection as one list. Only while the phone list
	   is there (`:has`); without it 008-9's spacing stands. */
	.vm-header--house .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content:has( > .vm-header__panel-phone ) {
		gap: 0;
	}

	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__actions--first + .vm-header__house-nav {
		margin-block-start: var( --wp--preset--spacing--20 );
	}

	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__panel-phone {
		order: 2;
		display: flex;
		flex-direction: column;
		align-items: center;
		align-self: stretch;
	}

	.vm-header--house .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
		order: 3;
	}

	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__search {
		order: 5;
		display: flex;
		align-self: center;
		margin-block-start: var( --wp--preset--spacing--20 );
	}

	/* The group labels: the house's name, OTHER STAYS, the collection's
	   name. Small, quiet, centred — they say where the guest is; they are
	   not links. */
	.vm-header--house .wp-block-navigation__responsive-container-content .vm-header__house-name,
	.vm-header--house .vm-header__panel-label {
		display: block;
		align-self: stretch;
		margin: 0 0 var( --wp--preset--spacing--10 );
		font-family: var( --wp--preset--font-family--display );
		font-size: 0.66rem;
		letter-spacing: 0.2em;
		line-height: 1.4;
		text-align: center;
		text-transform: uppercase;
		color: var( --wp--preset--color--muted );
	}

	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__house-nav {
		padding-block-end: var( --wp--preset--spacing--20 );
	}

	/* The house's sections a step closer together than the collection's
	   items used to be (drawing A: 47 rather than 65px a line). */
	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__house-nav .vm-header__house-list {
		gap: 0;
	}

	.vm-header--house .wp-block-navigation__responsive-container-content > .vm-header__house-nav .vm-header__house-link {
		padding-block: 0.875rem;
	}

	/* The second label opens the collection group with the same hairline
	   that closes the house group. */
	.vm-header--house .vm-header__panel-list + .vm-header__panel-label {
		margin-block-start: var( --wp--preset--spacing--20 );
		padding-block-start: var( --wp--preset--spacing--20 );
		border-block-start: 1px solid var( --wp--preset--color--border );
	}

	.vm-header--house .vm-header__panel-phone > .vm-header__panel-label:first-child {
		margin-block-start: var( --wp--preset--spacing--20 );
	}

	/* Other stays, The Collection, and the collection's remaining items
	   (Experiences, Dubrovnik Guide; Offers when the house has none of its
	   own): one list at the size of today's submenu lines, 35px each. */
	.vm-header--house .vm-header__panel-list,
	.vm-header--house .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.vm-header--house .wp-block-navigation__responsive-container.is-menu-open .vm-header__panel-link,
	.vm-header--house .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		display: block;
		padding-block: 0.5rem;
		line-height: 1.1;
		color: var( --wp--preset--color--contrast );
		font-family: var( --wp--preset--font-family--display );
		text-transform: uppercase;
		text-decoration: none;
	}
}

/*
 * 4  THE DESKTOP "OUR STAYS" DROPDOWN HAS ROOM (Mirjana, via Ana, 17.11.).
 *    Core's submenu box is a fixed 200px with 13px of padding at the sides
 *    and line-height 1.1, so "Boutique Villa Filaus" broke onto two lines
 *    and the lines sat tight. Measured before at 1440: box 200 × 154,
 *    items 28px apart, Filaus 42px tall. Now the box is as wide as its
 *    longest name (never narrower than core's 200), names stay on one
 *    line, with more air around each.
 *
 *    Only the dropdown in the bar (`:not( .is-menu-open )`) and only where
 *    the bar shows it (961px and up). The ≡ panels — phone, and a house
 *    page's desktop panel — are not reached.
 */
@media ( min-width: 961px ) {
	.vm-header .wp-block-navigation__responsive-container:not( .is-menu-open ) .wp-block-navigation__submenu-container {
		min-width: max-content;
		padding-block: var( --wp--preset--spacing--10 );
	}

	.vm-header .wp-block-navigation__responsive-container:not( .is-menu-open ) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		white-space: nowrap;
		padding: 0.625rem 1.5rem;
		line-height: 1.2;
	}
}


/* =========================================================================
 * TASK-052 (continued, 2026-11-18) — THE HOUSE MENU CENTRED ON DESKTOP
 * =========================================================================
 *
 * Ana, launch day: the house menu (Accommodation · Location · Offers ·
 * Contact) sat right beside the logo; she wants it centred, like the
 * collection's menu on the homepage. It is centred in the space BETWEEN
 * the logo and the actions (search · Book now · ≡), at every desktop
 * width: 008-9's house-menu box already fills that space
 * (`flex: 1 1 auto`), so its items move to the middle of it, and the one
 * margin it had on the logo's side is given to both sides so the box is
 * symmetrical. Nothing else in the bar moves (logo, actions, height).
 *
 * 961px and up only — at 960 and below the house menu is not in the bar
 * (it is in the ≡ panel), so the phone is untouched.
 * ========================================================================= */
@media ( min-width: 961px ) {
	.vm-header--house .vm-header__inner > .vm-header__house-nav {
		justify-content: center;
		margin-inline: var( --wp--preset--spacing--30 );
	}

	.vm-header--house .vm-header__inner > .vm-header__house-nav .vm-header__house-list {
		justify-content: center;
	}
}


/* =========================================================================
 * TASK-052-1 (2026-11-19) — THE COLLECTION'S PHONE MENU, ANA'S VARIANT C
 * =========================================================================
 *
 * docs/design/mobilni-izbornik-kolekcije-reference.html. The ≡ panel on
 * the homepage and every page that is not a house, top to bottom: the
 * collection's mark (left, in the Close row) · Book now, full width · the
 * houses under "Our Stays", larger · the collection's name over The
 * Collection, Offers, Experiences, Dubrovnik Guide, Contact · search.
 * The same skeleton as the house page's menu (052, step 3, above).
 *
 * The markup: inc/header-house.php prints the mark
 * (`.vm-header__panel-brand--collection`, in the dialog before Close) and
 * the list (`.vm-header__panel-phone--collection`, first in the content
 * wrapper), read from navigation 292; view.js puts the actions in before the list
 * (`.vm-header__actions--first`) and search last. Document order is this
 * order, so the Tab key follows the eye.
 *
 * Every rule is scoped to `.vm-header:not( .vm-header--house )` and to the
 * list's own classes, so a house page's panel (052) and desktop are not
 * reached. The navigation's own list is hidden only where the printed list
 * stands before it (`~`): no list printed (switch off), nothing hidden.
 * The collection's panel exists at 960px and below only (≡ is shown there).
 *
 * Hidden by default twice: the PHP prints both with the `hidden` attribute
 * (so the HTML alone hides them, even before or without this stylesheet),
 * and the rule below. Only the 960px-and-below rules display them.
 *
 * Undo: `define( 'VILLAS_MORE_HEADER_COLLECTION_PHONE_PANEL', false );` —
 * these rules then match nothing — or delete this section.
 * ========================================================================= */
.vm-header .vm-header__panel-brand--collection,
.vm-header .vm-header__panel-phone--collection {
	display: none;
}

@media ( max-width: 960px ) {
	/* The navigation's own list, replaced by the printed one. Core shows it
	   with four classes; this carries more. */
	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .vm-header__panel-phone--collection ~ .wp-block-navigation__container {
		display: none;
	}

	/* No flex gap between the groups: their spacing is set below, as on a
	   house page. Only while the list is there. */
	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content:has( > .vm-header__panel-phone--collection ) {
		gap: 0;
	}

	/* The mark, in the row of the Close button: the dialog is the
	   positioned box, Close sits at its top right, the mark at its top
	   left at the bar's logo height. */
	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__panel-brand--collection {
		position: absolute;
		top: -1px;
		left: var( --wp--preset--spacing--30 );
		display: flex;
		align-items: center;
		height: 26px;
		margin: 0;
		padding: 0;
		border: 0;
		line-height: 0;
	}

	.vm-header:not( .vm-header--house ) .vm-header__panel-brand--collection .vm-header__panel-logo {
		display: block;
		width: auto;
		height: 26px;
		max-width: none;
	}

	.vm-header:not( .vm-header--house ) .vm-header__panel-brand--collection .vm-header__panel-name {
		font-family: var( --wp--preset--font-family--display );
		font-size: 0.8rem;
		letter-spacing: 0.16em;
		line-height: 1.2;
		text-transform: uppercase;
		color: var( --wp--preset--color--contrast );
	}

	/* Book now, full width with the panel's side margins — no longer pushed
	   to the right by the bar's `margin-inline-start: auto`. */
	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container-content > .vm-header__actions--in-menu.vm-header__actions--first {
		align-self: stretch;
		margin-inline: 0;
		margin-block-end: var( --wp--preset--spacing--20 );
		padding-inline: var( --wp--preset--spacing--30 );
		padding-block: 0;
		border: 0;
	}

	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container-content > .vm-header__panel-phone--collection {
		display: flex;
		flex-direction: column;
		align-items: center;
		align-self: stretch;
	}

	/* The two group labels: "Our Stays" and the collection's name. */
	.vm-header:not( .vm-header--house ) .vm-header__panel-phone--collection > .vm-header__panel-label {
		display: block;
		align-self: stretch;
		margin: 0 0 var( --wp--preset--spacing--10 );
		font-family: var( --wp--preset--font-family--display );
		font-size: 0.66rem;
		letter-spacing: 0.2em;
		line-height: 1.4;
		text-align: center;
		text-transform: uppercase;
		color: var( --wp--preset--color--muted );
	}

	.vm-header:not( .vm-header--house ) .vm-header__panel-phone--collection > .vm-header__panel-label:first-child {
		margin-block-start: var( --wp--preset--spacing--20 );
	}

	/* The second label opens the collection group with a hairline. */
	.vm-header:not( .vm-header--house ) .vm-header__panel-phone--collection > .vm-header__panel-list + .vm-header__panel-label {
		margin-block-start: var( --wp--preset--spacing--20 );
		padding-block-start: var( --wp--preset--spacing--20 );
		border-block-start: 1px solid var( --wp--preset--color--border );
	}

	.vm-header:not( .vm-header--house ) .vm-header__panel-phone--collection > .vm-header__panel-list {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	/* The collection's items: the size of the house menu's small lines
	   (34px each). The houses: the size of the house menu's own sections
	   (46px each) — they are what the guest opens this menu to find. */
	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__panel-phone--collection .vm-header__panel-link {
		display: block;
		padding-block: 0.5rem;
		line-height: 1.1;
		color: var( --wp--preset--color--contrast );
		font-family: var( --wp--preset--font-family--display );
		text-align: center;
		text-transform: uppercase;
		text-decoration: none;
	}

	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container.is-menu-open .vm-header__panel-phone--collection .vm-header__panel-list--houses .vm-header__panel-link {
		padding-block: 0.875rem;
	}

	.vm-header:not( .vm-header--house ) .wp-block-navigation__responsive-container-content > .vm-header__search {
		display: flex;
		align-self: center;
		margin-block-start: var( --wp--preset--spacing--20 );
	}
}
