/*
 * Hotelesque — TAC Booking Engine.
 *
 * Loaded on the pages the plugin loads on, through its own tacbe_enqueue_assets
 * action, which fires after its stylesheet, the variables its settings emit and
 * any custom CSS. So this sheet lands last and wins on order rather than on
 * weight — there is almost no !important here, unlike the two sheets this
 * replaces, which had to fight a plugin that styled itself through ids.
 *
 * The plugin's own look is set where it should be, under Properties → Settings →
 * Look & feel: brand and accent plum, text navy, the divider #CECECE, panels
 * oatmeal, a small radius. What is here is the part settings cannot say.
 *
 * Everything the plugin draws sits under .tac-stays-root and its classes are
 * prefixed tacbe-. They are the plugin's own names, so an upstream rebuild may
 * rename them — if a page reverts to the default look, that is the first thing
 * to check.
 *
 * The property page follows Figma 112:4491, carried over from the plugin this
 * replaces: Canela 80/90 and 28/40, Mundial 20/27 and 16/25, a column of 974
 * beside a 414 booking card, and the gallery above the name rather than below
 * it. The homepage's bar is not here at all — it is the theme's own now, in
 * style.css, and this only dresses the one on the search page.
 *
 * @package Hotelesque
 * @since Hotelesque 0.2.0
 */

/* Tokens
   ---------------------------------------------------------------------- */

/*
 * Two of the plugin's own variables are read by its stylesheet but never
 * written by its settings — the reviews block falls back to a grey of its own
 * for one, and the other only exists as a hardcoded fallback beside it. Both
 * are given a value here so nothing is left to a fallback.
 */
.tac-stays-root {
	--tacbe-font-heading: var(--hotelesque-font-display);
	--tacbe-font-body: var(--hotelesque-font-ui);
	--tacbe-muted: var(--wp--preset--color--accent-4);
	--tacbe-accent-dark: var(--wp--preset--color--plum);
	--tacbe-surface: var(--wp--preset--color--base);
}

/* The band
   ---------------------------------------------------------------------- */

/*
 * The engine holds everything it prints to 1200 and pads it 28 either side,
 * "so it looks good in any theme". Here that made the search and its results a
 * band of their own, and a different one on each kind of page: 1144 on
 * Listings, where nothing else held them, and 1504 on a collection or Work &
 * Stay Longer, where the page's 1560 took over the 1200 but the 28 stayed — so
 * the cards began 28 in from the heading over them and the header's logo.
 *
 * It takes the site's wide band instead and no padding of its own. The gutter
 * at a narrow window is the page's, which every template that can hold one of
 * these already carries.
 *
 * Not the property page: that is the same root laid out as a grid, and sets its
 * own band further down.
 */
.tac-stays-root:not( .tacbe-property ) {
	max-width: var(--wp--style--global--wide-size, 1560px);
	padding-inline: 0;
}

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

/*
 * The site's button: filled plum turning outlined, 15 over 20 uppercase and
 * tracked, and a border it carries at all times so it does not move when the
 * fill goes. See .wp-block-button__link in style.css, which this follows.
 */
.tac-stays-root .tacbe-btn,
.tac-stays-root .tacbe-sb-go {
	border: 1px solid transparent;
	border-radius: 6px;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 300;
	letter-spacing: 1.5px;
	line-height: 20px;
	padding: 13px 33px 15px;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tac-stays-root .tacbe-btn-primary,
.tac-stays-root .tacbe-sb-go {
	background: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--base);
}

/*
 * The search bar's button is not one of the engine's .tacbe-btn, so it misses
 * the treatment above and comes out at 133 by 15 in a 12.8 semibold with square
 * corners. Named alongside them it takes the site's button, and the 174 every
 * other one on the site is drawn at.
 */
.tac-stays-root .tacbe-sb-go {
	min-width: 174px;
}

.tac-stays-root .tacbe-btn-primary:hover,
.tac-stays-root .tacbe-btn-primary:focus-visible,
.tac-stays-root .tacbe-sb-go:hover,
.tac-stays-root .tacbe-sb-go:focus-visible {
	background: transparent;
	border-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--plum);
}

/*
 * The booking box is styled through its id, which outweighs any class of ours,
 * so its two buttons need the id said back to them. Everything else the rule
 * above sets reaches them without this — only the size and the corner were
 * being taken back.
 */
.tac-stays-root #tacbe-quote .tacbe-btn {
	border-radius: 6px;
	font-size: var(--hotelesque-size-label);
}

/* Search bar, on the search page
   ---------------------------------------------------------------------- */

/*
 * The bar above the results. It keeps the plugin's shape — a word over each
 * field and the answer under it, which tells a guest what is applied — and
 * takes the site's white ground, 6px corner and 952.
 *
 * That width also settles a bug: sticky, the plugin pulls the bar out to the
 * window with a negative margin measured against 100vw, which is wider than the
 * page whenever a scrollbar shows. The page scrolled sideways by the width of
 * one, 1808 against 1793, and by 54 on a phone.
 */
.tac-stays-root .tacbe-searchbar {
	align-items: center;
	background: var(--wp--preset--color--base);
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	margin-inline: auto;
	max-width: min( 952px, 100% );
	min-height: 72px;
	padding: 11px 8px;
}

/*
 * The plugin draws a divider down the right of every field, the last one
 * included, which leaves a line standing between the final field and the
 * Search button with nothing on either side of it to divide. The dividers
 * between the fields themselves are the plugin's and are left alone.
 */
.tac-stays-root .tacbe-searchbar > .tacbe-sb-field:last-of-type {
	border-right: 0;
}

/*
 * The engine pins the bar to the very top of the window, and the pill that
 * stands for it on a phone 8 below it. The site's header slides away on the
 * way down the page and comes back on the way up (assets/js/header.js) onto
 * that same spot, at 100 over the bar's 40, and hid all 72 of it. So while the
 * header is showing the two pin under it instead, and move up with it, at its
 * pace, when it slides away.
 */
.tac-stays-root .tacbe-searchbar-sticky,
.tacbe-search-pill-sticky {
	transition: top 0.35s ease;
}

body:has( .wp-site-blocks > header:not( .is-away ) ) .tac-stays-root .tacbe-searchbar-sticky {
	top: var(--hotelesque-header-height);
}

body:has( .wp-site-blocks > header:not( .is-away ) ) .tacbe-search-pill-sticky {
	top: calc( var(--hotelesque-header-height) + 8px );
}

/* As the header, which does not slide for anyone who has asked for less motion. */
@media ( prefers-reduced-motion: reduce ) {
	.tac-stays-root .tacbe-searchbar-sticky,
	.tacbe-search-pill-sticky {
		transition: none;
	}
}

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

/*
 * The card the rest of the site uses: a square-cornered photograph, the suburb
 * over the name in the label style, the name in the display face, and the price
 * split so the figure can stand larger than the words either side of it.
 */
/*
 * Set as the homepage's card is set — .residence-card in style.css: the
 * photograph on the 464 by 398 it is drawn at with a 6 corner, the name in the
 * display face at 28 over 40, the words inset 41, and the rate with its figure
 * standing between two smaller words.
 */

/*
 * On nothing, and still when pointed at. The engine paints each card in its
 * paper colour and lifts it two pixels under a shadow on hover; the homepage's
 * card does neither — it sits on the page, and the photograph is the thing that
 * carries it. The transition goes with the lift, so nothing is left waiting to
 * animate a property that no longer changes.
 */
.tac-stays-root .tacbe-card {
	background: none;
	transition: none;
}

.tac-stays-root .tacbe-card:hover {
	box-shadow: none;
	transform: none;
}
/*
 * The photograph's corners rounded by 3, all four, as the theme's own cards'
 * are (.residence-card__media) — the client asked for every card to match
 * (review, October 2026). On the frame, which clips, rather than on the card:
 * a card with an offer lets its badge stand out over its edge, so it does not
 * clip, and its photo was coming out square beside its neighbours' rounded ones.
 */
.tac-stays-root .tacbe-card-media {
	border-radius: 3px;
}

.tac-stays-root .tacbe-card-img,
.tac-stays-root .tacbe-card-slide img {
	border-radius: 0;
}

/*
 * The grid's printed cards (1.23.8) hold their photo in .tacbe-card-img until
 * the live cards replace them; the same shape, or every card grew 36px as
 * they did.
 */
.tac-stays-root .tacbe-card-media,
.tac-stays-root .tacbe-card-img {
	aspect-ratio: 464 / 398;
	height: auto;
	position: relative;
}

/*
 * Each photograph is a background on its slide rather than an image in it, and
 * the engine cuts them to 4 by 3 — a different shape from the 464 by 398 the
 * card is now drawn at, so they were being cropped twice.
 */
.tac-stays-root .tacbe-card-slide {
	aspect-ratio: 464 / 398;
}

/*
 * The heart over the photograph is a button now, added by
 * assets/js/card-save.js and drawn with the theme's own cards' (.card-save in
 * style.css); it used to be painted here and did nothing.
 */

.tac-stays-root .tacbe-card-body {
	padding-inline: 20px;
}

.tac-stays-root .tacbe-card-suburb {
	color: var(--wp--preset--color--navy);
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 100;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/*
 * Navy, said outright. The whole card is a link and the plugin colours what is
 * inside it with the brand, which is the plum the buttons are — a name is not a
 * button, and every other card on the site writes its name in navy.
 */
/*
 * Named through the body as well, because the engine sets this heading through
 * .tacbe-card-body h3 — two classes and a tag against the two classes here, so
 * a rule on the class alone loses and the name stayed at 23 rather than the 28
 * the homepage's card is set in.
 */
.tac-stays-root .tacbe-card-body .tacbe-card-title {
	color: var(--wp--preset--color--navy);
	font-family: var(--hotelesque-font-display);
	font-size: var(--hotelesque-size-subtitle);
	margin-top: 0;
	font-weight: 100;
	line-height: var(--hotelesque-line-subtitle);
}

/*
 * Guests, beds and baths as the theme's cards draw them (.residence-card__marks):
 * its own marks, in that order, at the figure size. The engine draws its own
 * icons, in bed, bath, guests order and leaving out any it has no number for, so
 * each is known by its drawing — the guests one alone has a circle — and the
 * theme's mark is laid over it.
 */
.tac-stays-root .tacbe-card-spec {
	align-items: center;
	color: var(--wp--preset--color--navy);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-figure);
	font-weight: 100;
	gap: 8px 20px;
	line-height: 1;
}

.tac-stays-root .tacbe-card-spec .tacbe-spec-item {
	align-items: center;
	display: flex;
	gap: 6px;
}

.tac-stays-root .tacbe-card-spec .tacbe-spec-svg {
	display: none;
}

.tac-stays-root .tacbe-card-spec .tacbe-spec-item::before {
	background-color: currentColor;
	content: "";
	height: 25px;
	mask: var( --spec-mark ) center / contain no-repeat;
	width: var( --spec-width );
}

.tac-stays-root .tacbe-card-spec .tacbe-spec-item:has( circle ) {
	--spec-mark: url("../images/spec-guests.svg");
	--spec-width: 30px;
	order: -1;
}

.tac-stays-root .tacbe-card-spec .tacbe-spec-item:has( path[d^="M2 20v-8"] ) {
	--spec-mark: url("../images/spec-bed.svg");
	--spec-width: 37px;
}

.tac-stays-root .tacbe-card-spec .tacbe-spec-item:has( path[d^="M10 4"] ) {
	--spec-mark: url("../images/spec-bath.svg");
	--spec-width: 43px;
	order: 1;
}

/*
 * The price as the theme's cards set it (.residence-card__price): "from" and
 * "/ night" small and in lower case, the figure larger, with no rule over it,
 * and no line about fees under it, which those cards do not have either.
 */
.tac-stays-root .tacbe-card-price {
	align-items: baseline;
	border-top: 0;
	display: flex;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-figure);
	font-weight: 300;
	gap: 8px;
	line-height: var(--hotelesque-line-figure);
	opacity: 1;
	padding-top: 0;
}

.tac-stays-root .tacbe-card-price strong {
	font-weight: 300;
}

.tac-stays-root .tacbe-card-feenote {
	display: none;
}

.tac-stays-root .tacbe-card-from,
.tac-stays-root .tacbe-card-per {
	/* Navy with the figure, not the engine's muted grey (client feedback, October 2026). */
	color: var(--wp--preset--color--navy);
	font-size: var(--hotelesque-size-unit);
	letter-spacing: normal;
	line-height: 22px;
	text-transform: lowercase;
}

/*
 * "View property" (inc/listing-cards.php): under the price rather than beside
 * it, outlined, and filled while the card is pointed at. It is a label inside
 * the card's link, not a link of its own, so the whole card is still the one
 * thing pressed (client feedback, October 2026).
 */
.tac-stays-root .tacbe-card-foot {
	align-items: flex-start;
	border-top: 0;
	flex-direction: column;
	gap: 20px;
	padding-top: 0;
}

.tac-stays-root .tacbe-card-cta {
	background: transparent;
	border-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--plum);
	font-size: var(--hotelesque-size-label);
	font-weight: 300;
	margin-left: 0;
	min-width: 174px;
	padding: 13px 33px 15px;
	text-align: center;
}

.tac-stays-root .tacbe-card:focus-visible .tacbe-card-cta {
	background: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--base);
}

@media ( hover: hover ) {
	.tac-stays-root .tacbe-card:hover .tacbe-card-cta {
		background: var(--wp--preset--color--plum);
		color: var(--wp--preset--color--base);
	}
}

/* Search results: filters, sort, view and loading (client review, October 2026)
   ---------------------------------------------------------------------- */

/*
 * The arrows over a card's photographs keep the engine's white circle, with
 * the site's chevron drawn in the middle of it in place of the ‹ and › typed
 * there, which sat off-centre by however the font set the character (client
 * feedback, October 2026). The chevron is turned on a pseudo-element of its
 * own: turning the button would turn the engine's translate with it.
 */
.tac-stays-root .tacbe-card-nav {
	color: transparent;
	font-size: 0;
}

.tac-stays-root .tacbe-card-nav::before {
	background-color: var(--wp--preset--color--navy);
	content: "";
	height: 6px;
	mask: url("../images/chevron.svg") center / contain no-repeat;
	width: 12px;
}

.tac-stays-root .tacbe-card-next::before {
	rotate: -90deg;
	translate: 1px 0;
}

.tac-stays-root .tacbe-card-prev::before {
	rotate: 90deg;
	translate: -1px 0;
}

/* The Filters panel's heading in the site's navy, not the engine's bold brand colour. */
.tac-stays-root .tacbe-filterpanel-title {
	color: var(--wp--preset--color--navy);
	font-weight: 300;
}

/*
 * The search bar's field labels (Where, Check in, Check out, Guests) and the
 * Good to know labels: navy, at the weight every small-capitals label on the
 * site is set, not the engine's muted grey.
 */
.tac-stays-root .tacbe-sb-label,
.tac-stays-root .tacbe-gtk-label {
	color: var(--wp--preset--color--navy);
	font-weight: 100;
}

/*
 * The Filters panel keeps the engine's tinted box, which shows it belongs to
 * the Filters button, but its contents are set in the same pieces as the row
 * above it rather than browser checkboxes: the heading as an eyebrow, and each
 * amenity a white pill the size of its words, outlined like the Cards / Map
 * toggle. The checkbox stays in the page for keyboards and screen readers but
 * is not drawn; a pill that is on takes the blush fill, the plum outline and a
 * tick. The Filters button takes the blush fill and a dot beside its chevron
 * while any filter in its panel is on.
 */

.tac-stays-root .tacbe-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tac-stays-root .tacbe-filter-chip {
	align-items: center;
	background: #fff;
	border: 1px solid color-mix( in srgb, var(--wp--preset--color--navy) 25%, transparent );
	border-radius: 999px;
	box-sizing: border-box;
	color: var(--wp--preset--color--navy);
	font-size: 0.92rem;
	gap: 6px;
	line-height: normal;
	min-height: 36px;
	padding: 0 16px;
	position: relative;
	transition: background-color 0.15s, border-color 0.15s;
}

.tac-stays-root .tacbe-filter-chip:hover {
	border-color: var(--wp--preset--color--plum);
}

.tac-stays-root .tacbe-filter-chip input[type="checkbox"] {
	height: 1px;
	inset: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.tac-stays-root .tacbe-filter-chip:has( input:focus-visible ) {
	outline: 2px solid var(--wp--preset--color--plum);
	outline-offset: 2px;
}

.tac-stays-root .tacbe-filter-chip:has( input:checked ) {
	background: color-mix( in srgb, var(--wp--preset--color--blush) 35%, transparent );
	border-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--plum);
}

.tac-stays-root .tacbe-filter-chip:has( input:checked )::before {
	background-color: currentColor;
	content: "";
	height: 10px;
	mask: url("../images/icon-tick.svg") center / contain no-repeat;
	width: 12px;
}

.tac-stays-root:has( .tacbe-filterpanel input:checked ) [data-filters-toggle] {
	background: color-mix( in srgb, var(--wp--preset--color--blush) 35%, transparent );
}

.tac-stays-root:has( .tacbe-filterpanel input:checked ) [data-filters-toggle]::after {
	background: var(--wp--preset--color--plum);
	border-radius: 50%;
	content: "";
	height: 6px;
	order: 1;
	width: 6px;
}

.tac-stays-root [data-filters-toggle] .tacbe-ctrl-caret {
	order: 2;
}

/*
 * One height for every control above the results — Filters, Sort and the
 * Cards / Map toggle — 38 on a desktop and 44, a finger's width, from 860 down,
 * where the toggle gives way to the floating Map button and Filters and Sort
 * share a line. Set as a height with the words centred rather than built from
 * padding and line-height, which is what clipped the g of "high" in Sort.
 */
.tac-stays-root {
	--hq-control-height: 38px;
}

@media ( max-width: 860px ) {
	.tac-stays-root {
		--hq-control-height: 44px;
	}
}

/*
 * The control-row buttons (Filters, and Neighbourhoods where the bar is not on
 * the page) set like the Cards / Map toggle beside them: plum outline, the
 * same size and height. The engine draws its caret and icon as text (▾ and ☰),
 * which in Mundial came out as a speck and a menu icon; both are drawn here
 * instead, the caret with the site's chevron. Open, the button takes the
 * blush fill and the chevron turns over.
 */
.tac-stays-root .tacbe-ctrl {
	border-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--plum);
	box-sizing: border-box;
	font-size: 0.92rem;
	gap: 8px;
	height: var(--hq-control-height);
	line-height: normal;
	padding: 0 16px;
}

.tac-stays-root .tacbe-ctrl:hover,
.tac-stays-root .tacbe-ctrl[aria-expanded="true"] {
	background: color-mix( in srgb, var(--wp--preset--color--blush) 35%, transparent );
}

.tac-stays-root .tacbe-ctrl-caret,
.tac-stays-root [data-filters-toggle] .tacbe-ctrl-ic {
	background-color: currentColor;
	display: inline-block;
	font-size: 0;
}

.tac-stays-root .tacbe-ctrl-caret {
	height: 6px;
	mask: url("../images/chevron.svg") center / contain no-repeat;
	transition: rotate 0.15s;
	width: 11px;
}

.tac-stays-root .tacbe-ctrl[aria-expanded="true"] .tacbe-ctrl-caret {
	rotate: 180deg;
}

.tac-stays-root [data-filters-toggle] .tacbe-ctrl-ic {
	height: 14px;
	mask: url("../images/icon-filters.svg") center / contain no-repeat;
	width: 16px;
}

/*
 * The search bar's Where (and Guests & rooms, where the bar has it) caret: the
 * engine's ▾ came out as a speck in Mundial, so it is drawn with the site's
 * chevron, turned over while its list is open.
 */
.tac-stays-root .tacbe-sb-select-caret {
	background-color: var(--wp--preset--color--navy);
	display: inline-block;
	font-size: 0;
	height: 6px;
	mask: url("../images/chevron.svg") center / contain no-repeat;
	transition: rotate 0.15s;
	width: 11px;
}

.tac-stays-root [aria-expanded="true"] > .tacbe-sb-select-caret {
	rotate: 180deg;
}

/*
 * On a phone the search sheet opens over the page at the engine's z-index of
 * 100, under its own floating Map button at 1200, which then sat on the sheet.
 * The sheet is raised over it (the full-map overlay, at 1100, stays below
 * both). The Map button is left to float over the Filters panel, as it does
 * over the cards.
 */
.tac-stays-root .tacbe-search.tacbe-search-open .tacbe-searchbar {
	z-index: 1300;
}

/* The panel's heading in the site's eyebrow voice: tracked capitals, light. */
.tac-stays-root .tacbe-filterpanel-title {
	font-size: 0.8rem;
	letter-spacing: 3px;
	text-transform: uppercase;
}

/*
 * Sort: no fill, and the site's own chevron, set in from the right edge rather
 * than the browser's arrow hard against it (a plum copy, since a background
 * image cannot take currentColor). A pill outlined in plum like
 * Filters and the Cards / Map toggle, so the three controls read as one set.
 */
.tac-stays-root .tacbe-sort-select {
	appearance: none;
	background: transparent url("../images/chevron-plum.svg") no-repeat right 14px center / 12px auto;
	border-color: var(--wp--preset--color--plum);
	border-radius: 999px;
	color: var(--wp--preset--color--plum);
	box-sizing: border-box;
	font-size: 0.92rem;
	height: var(--hq-control-height);
	line-height: normal;
	padding: 0 40px 0 16px;
}

.tac-stays-root .tacbe-sort-select:hover {
	background-color: color-mix( in srgb, var(--wp--preset--color--blush) 35%, transparent );
}

/* Cards / Map / Map + cards: outlined in plum, and a blush tint under the pointer. */
.tac-stays-root .tacbe-viewseg {
	border-color: var(--wp--preset--color--plum);
	box-sizing: border-box;
	height: var(--hq-control-height);
}

.tac-stays-root .tacbe-viewseg-btn {
	line-height: normal;
	padding-block: 0;
}

.tac-stays-root .tacbe-viewseg-btn + .tacbe-viewseg-btn {
	border-left-color: var(--wp--preset--color--plum);
}

.tac-stays-root .tacbe-viewseg-btn:not( .is-active ):hover {
	background: color-mix( in srgb, var(--wp--preset--color--blush) 35%, transparent );
}

/*
 * Loading: the H monogram on its own, in place of the white wordmark on a plum
 * square. Drawn here rather than set as the engine's logo, which wants a full
 * address that would not survive the move to the live domain — and the map's
 * privacy marker falls back to that logo.
 */
.tac-stays-root .tacbe-loader-chip {
	background: url("../images/logo-monogram.svg") center / contain no-repeat;
	border-radius: 0;
	height: 64px;
	width: 72px;
}

.tac-stays-root .tacbe-loader-chip img {
	display: none;
}

/* Property page — Figma 112:4491
   ---------------------------------------------------------------------- */

/*
 * The design lays the page out as a 974 column of words beside a 414 booking
 * card, against the 1200 the plugin caps itself at. 974 is the theme's own
 * contentSize, so the words here are set to the same measure as every other
 * page on the site.
 *
 * The band is the site's 1560, not the 1613 this frame is drawn to. That frame
 * sets its own header at about 1718, so it is not drawn to the band the site
 * was built on, and taking its content width literally stood this page 59 past
 * the header above it and the difference band below it. The two columns are the
 * measurements worth keeping; the space between them is only what is left over,
 * so that is what gives — 172 here against the 231 drawn.
 *
 * space-between is what hands the leftover to it, which also closes it toward
 * 24 as the page narrows rather than holding a gap and squeezing the words.
 *
 * The gutter is carried here rather than left to main.property. The post content
 * inside it is alignfull, which breaks back out of that padding, so between
 * about 1425 and 1610 the page had no gutter at all and this band stood wider
 * than the header above it — 1425 against 1373. Held on this box instead, and
 * counted into the width so the band is a true 1560 once there is room for it:
 * 26 is the page's own gutter, the one main.property is set with.
 */
.tac-stays-root.tacbe-property {
	max-width: calc( var(--wp--style--global--wide-size, 1560px) + 52px );
	padding-inline: 26px;
}

/*
 * A hairline above each block rather than under the one before it, so the first
 * carries none and the column does not end on a rule.
 */
/*
 * Said through .tacbe-prop-main, as the engine says it. Written against
 * .tacbe-prop-section alone this lost outright — its own rules name the column
 * as well as the section, which outweighs a rule that names only the section,
 * so the rhythm below was never on the page and the sections kept its 40 and 34
 * with a grey rule rather than these and a navy one.
 */
.tac-stays-root .tacbe-prop-main > .tacbe-prop-section {
	border-top: 1px solid var(--wp--preset--color--navy);
	margin-top: 0;
	/*
	 * Uneven on purpose: the frame sets 31 between the rule and the heading under
	 * it and about 77 above it, so a rule reads as belonging to the block it
	 * opens rather than sitting between two.
	 */
	padding: 31px 0 77px;
}

.tac-stays-root .tacbe-prop-main > .tacbe-prop-section:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 44px;
}

/*
 * Named as a descendant rather than a child, here and on the type rule below.
 * Every section heading is a direct child except the reviews one, which sits
 * inside .property-reviews__header beside the overall rating — and a child
 * selector let that one fall through to the plugin's own h2 rule, which draws
 * it at 1.45rem and weight 600 against the 28 over 40 at weight 100 the rest
 * are set in. It read as a different heading because it was one.
 */
.tac-stays-root .tacbe-prop-section h2 {
	margin: 0 0 14px;
}

/*
 * The design opens straight onto the description. The heading is kept for
 * anyone reading the page as a structure rather than a picture — it is only
 * taken out of the drawing.
 */
.tac-stays-root .tacbe-prop-about > h2 {
	clip-path: inset( 50% );
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/*
 * READ MORE and VIEW MORE. The plugin draws each of these as a bordered button;
 * the design has a plain underlined word under the block it opens.
 */
.tac-stays-root .tacbe-clamp-toggle,
.tac-stays-root .tacbe-amenity-more,
.tac-stays-root .tacbe-rev-more,
.tac-stays-root .property-reviews__more {
	background: none;
	border: 0;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 100;
	letter-spacing: 1.5px;
	line-height: 20px;
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	text-decoration: underline;
	text-transform: uppercase;
}

/*
 * House rules, folded to five lines. The section is drawn by
 * inc/property-house-rules.php in the engine's own class names, so the engine's
 * stylesheet dresses nearly all of it; these are the two things it has no rule
 * for, because it does not fold this section itself. The clamp carries the body
 * now, so it takes the type the section was set in, and the last paragraph's
 * margin comes off since the toggle rather than a paragraph ends the section.
 *
 * Said here rather than in the plugin's sheet for the same reason the markup is
 * in the theme: the next vendor release overwrites that file and not this one.
 */
.tac-stays-root .tacbe-houserules .tacbe-clamp {
	font-size: 1rem;
}

.tac-stays-root .tacbe-houserules .tacbe-clamp > :last-child {
	margin-bottom: 0;
}

/* The reviews expander is a <summary>, which draws its own marker. */
.tac-stays-root .tacbe-rev-more::marker,
.tac-stays-root .property-reviews__more::marker,
.tac-stays-root .tacbe-rev-more::-webkit-details-marker,
.tac-stays-root .property-reviews__more::-webkit-details-marker {
	display: none;
}

/*
 * A note on the min() in every auto-fit below: a track's minimum is a floor it
 * will not go under, so minmax(380px, 1fr) in a column of 323 lays out 380 and
 * hangs 57 off the side — which main.property then clips, taking the words with
 * it. min(380px, 100%) lets the floor give way once there is less room than
 * that, which is the only state where it matters.
 */

/*
 * Amenities, four columns as drawn against the plugin's two, each marked with
 * the ringed check the rest of the site uses — assets/images/icon-check.svg at
 * 32, with the label 20 away.
 *
 * The plugin already hangs a mark on each of these, absolutely placed with the
 * room for it made by padding, so only the mark and the room are changed. Laid
 * out as a flex row instead, this rule would have done two things it did not
 * mean to: left the mark where it was, over the first letters of the label, and
 * overridden the display: none that keeps the long tail of the list folded away
 * until it is asked for — all 53 amenities showed at once.
 *
 * The line box is the mark's own height so that a label sits on its middle
 * without needing to be laid out, and a label that wraps keeps its mark on the
 * first line, as the design draws it.
 */
.tac-stays-root .tacbe-amenities {
	gap: 13px 24px;
	/*
	 * Four at the width the design draws them, and fewer as the column narrows —
	 * counted from the room there is rather than from the window, because what
	 * this sits in is the words column and that is squeezed by the booking card
	 * beside it, not by the page. Told to hold four regardless, it was fitting
	 * them into 519 on a small laptop.
	 */
	grid-template-columns: repeat( auto-fit, minmax( min( 210px, 100% ), 1fr ) );
}

.tac-stays-root .tacbe-amenity {
	line-height: 32px;
	padding-inline-start: 52px;
}

.tac-stays-root .tacbe-amenity::before {
	background: url("../images/icon-check.svg") center / 32px 32px no-repeat;
	content: "";
	height: 32px;
	top: 0;
	width: 32px;
}

/*
 * Bedroom configurations — Figma 112:5355. Four cards of 224 across the 974 the
 * words are read at, 26 apart, each 142 tall with the bed mark at 34 from the
 * top and the two lines under it at 76 and 99. Counted from the room there is
 * rather than held at four, so they drop to three and two as the column narrows.
 */
.property-bedrooms__list {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat( auto-fit, minmax( min( 200px, 100% ), 1fr ) );
	list-style: none;
	margin: 27px 0 0;
	padding: 0;
}

.property-bedrooms__card {
	border: 1px solid var(--wp--preset--color--navy);
	border-radius: 6px;
	min-height: 142px;
	padding: 34px 26px 20px;
}

.property-bedrooms__mark {
	display: block;
	height: 25px;
	width: auto;
}

/*
 * Both of these name the column and the tag as well as the class. The engine
 * sets every paragraph in this column to a 25 line, at the weight of two classes
 * and a tag, and these two are drawn on a 20 and a 22 — left at one class each
 * they lost, and the card stood 151 tall against the 142 it is drawn at.
 */
.tac-stays-root .tacbe-prop-main p.property-bedrooms__room {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 100;
	letter-spacing: 1.5px;
	line-height: 20px;
	margin: 17px 0 0;
	text-transform: uppercase;
}

.tac-stays-root .tacbe-prop-main p.property-bedrooms__beds {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-body-sm);
	font-weight: 200;
	line-height: 22px;
	margin: 3px 0 0;
}

/* The map is a panel on the page, cornered like everything else here. */
.tac-stays-root .tacbe-map {
	border-radius: 6px;
}

/*
 * Leaflet stacks its tiles at 400 and its zoom buttons at 1000, which put the
 * map over the sticky header (100). Isolating the map keeps those numbers
 * inside it, so the header and anything else over the page stay on top.
 */
.tac-stays-root .tacbe-map,
.tac-stays-root .tacbe-mapview-canvas {
	isolation: isolate;
}

/*
 * Three stays across the page, as drawn. The plugin lays this row out for as
 * many as will fit, which put three cards of 303 in a row built for five.
 */
.tac-stays-root .tacbe-similar-grid {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

/*
 * Reviews — Figma 148:7732. Two to a row of 460, 53 apart and 69 between rows,
 * counted from the room there is rather than held at two. The heading carries
 * the overall score against the right-hand edge.
 */
.property-reviews__header {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
}

.property-reviews__score {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 0;
}

.property-reviews__score-label,
.property-reviews__date {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 100;
	letter-spacing: 1.5px;
	line-height: 20px;
	text-transform: uppercase;
}

.property-reviews__score-star {
	display: block;
	height: auto;
	width: 33px;
}

/* 26 over 20, tracked wide — the frame's own sub-head. */
.property-reviews__score-value {
	font-family: var(--hotelesque-font-ui);
	font-size: 26px;
	font-weight: 200;
	letter-spacing: 3.9px;
	line-height: 20px;
}

.property-reviews__list {
	display: grid;
	gap: 69px 53px;
	grid-template-columns: repeat( auto-fit, minmax( min( 380px, 100% ), 1fr ) );
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
}

.property-reviews__head {
	align-items: center;
	display: flex;
	gap: 13px;
	margin: 0;
}

.property-reviews__stars {
	align-items: center;
	display: flex;
	gap: 10px;
}

.property-reviews__star {
	display: block;
	height: auto;
	width: 17px;
}

/*
 * Named through the column and the tag: the engine sets every paragraph in this
 * column, at the weight of two classes and a tag, and would take the 9 above
 * this back to its own spacing.
 */
.tac-stays-root .tacbe-prop-main p.property-reviews__text {
	margin: 9px 0 0;
}

/*
 * The English translation of a review written in another language, under the
 * words it translates. Set quieter than them: the guest's own sentence is the
 * review, and this is an accommodation for readers who cannot follow it.
 *
 * Named through the main column like the text above it, because the plugin sets
 * a margin on every p in there that one class of ours does not outweigh.
 */
.tac-stays-root .tacbe-prop-main p.property-reviews__translation {
	border-left: 1px solid var(--wp--preset--color--blush);
	margin: 14px 0 0;
	opacity: .85;
	padding-left: 16px;
}

/* The label sits on its own line above the translation, in the small tracked
   uppercase the date beside it is set in. */
.property-reviews__translation-label {
	display: block;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 100;
	letter-spacing: 1.5px;
	line-height: 20px;
	margin-bottom: 4px;
	text-transform: uppercase;
}

/* The rest, behind a word rather than a button — see the other two like it. */
.property-reviews__rest > .property-reviews__list {
	margin-top: 36px;
}

/*
 * Which of the summary's two labels is drawn. A <summary> keeps its place at the
 * head of the block it opens, so once the rest are down the word is no longer
 * asking for them — it offers the way back instead, as the other two do.
 */
.property-reviews__less-text,
.property-reviews__rest[open] .property-reviews__more-text {
	display: none;
}

.property-reviews__rest[open] .property-reviews__less-text {
	display: inline;
}

/*
 * The booking card: the design draws it as a panel on the page rather than a
 * card floating above one, in the blush at a quarter — no border, no shadow.
 */
.tac-stays-root .tacbe-quote-box {
	background: color-mix( in srgb, var(--wp--preset--color--blush) 25%, #fff );
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	/*
	 * A row each, the dates and the guests included. The frame stands those two
	 * side by side, the dates at 209 of 352, but it draws the card before
	 * anything is chosen: once a date is, the engine writes "Nov 1, 2026" into
	 * it, which needs 78 to 92 and had 69 on a desktop and 46 on a phone — it
	 * read "Nov …" and could not be checked. On a row of their own each date has
	 * 125 or more. A grid, not the engine's stack, for the even gaps.
	 */
	display: grid;
	padding: 31px;
	row-gap: 18px;

	/*
	 * The card's own words, at the size the rest of the page is read at. The
	 * engine sets this whole box at 22 over 30.8 — larger than the body of the
	 * page beside it — and nothing on the frame is that size. It was the line
	 * about adding dates that showed it: 92 of the card given to a sentence,
	 * which is what kept it looking untouched however the fields were arranged.
	 */
	font-size: var(--hotelesque-size-body-sm);
	line-height: 25px;
}

/*
 * Before there are dates there is nothing to reserve, so the engine disables
 * this — rightly. Left to its own it went to grey on oatmeal, which reads as
 * broken beside a frame that draws a solid plum button here. The same button,
 * dimmed: plainly the thing you will press, plainly not yet.
 */
.tac-stays-root .tacbe-bk-reserve[disabled] {
	background: var(--wp--preset--color--plum);
	border-color: transparent;
	color: var(--wp--preset--color--base);
	opacity: 0.4;
}

.tac-stays-root .tacbe-quote-box > * {
	grid-column: 1 / -1;
	margin: 0;
}

/*
 * 20 in from the edge on a phone rather than 31, so that a 360 still gives the
 * check-out date the 90 its widest, "Nov 30, 2026", needs beside the chevron.
 */
@media ( max-width: 767px ) {
	.tac-stays-root .tacbe-quote-box {
		padding: 20px;
	}
}

/*
 * Beside the words on a desktop, Guests holds one figure and has no need of the
 * row: as wide as Check in above it, so its right edge stands under the line
 * between the dates. That line is 10 left of the middle — Check out's cell
 * carries 20 more padding, for the chevron — so the half comes 10 short. Stacked
 * under the words on a tablet or phone it keeps the row.
 */
@media ( min-width: 1025px ) {
	.tac-stays-root .tacbe-quote-box > .tacbe-bk-guests {
		justify-self: start;
		width: calc( 50% - 10px );
	}
}

/*
 * The two fields: a plum hairline with a 6 corner, as drawn.
 *
 * The frame draws each as one line — "Check in Dates", "Guests" — because it
 * draws the card before anything is chosen. Once a date is, the engine writes
 * "22 Aug 2026" into it, and two of those with a separator do not fit beside
 * the words. So the word stays above the answer, which is the engine's own
 * arrangement and the only one that holds at both ends.
 */
.tac-stays-root .tacbe-daterange,
.tac-stays-root .tacbe-bk-guests {
	align-items: center;
	border: 1px solid var(--wp--preset--color--plum);
	border-radius: 6px;
	display: flex;
	/*
	 * Said outright: the card sets a 22 over 30.8 for the price at the top of it,
	 * and every line box inside these two inherited it — which is what stood them
	 * at 73 against the 50 they are drawn at, whatever padding they were given.
	 */
	font-size: var(--hotelesque-size-body-sm);
	line-height: 22px;
	min-height: 50px;
	overflow: hidden;
	padding: 0;
}

/* Opens the calendar under it, so it is marked as something that opens. */
.tac-stays-root .tacbe-daterange {
	background: url("../images/chevron.svg") no-repeat right 14px center / 12px auto;
}

.tac-stays-root .tacbe-dr-cell {
	flex: 1;
	min-width: 0;
	padding: 7px 12px;
}

.tac-stays-root .tacbe-dr-cell + .tacbe-dr-cell {
	padding-inline-end: 32px;
}

/*
 * Sentence case, as the frame writes these. Set in the site's tracked capitals
 * they were wider than half of 209 — "CHECK OUT" came to 77 in a 75 cell — so
 * each label took a second line and pushed the field to 71.
 */
.tac-stays-root .tacbe-dr-label,
.tac-stays-root .tacbe-bk-guests label {
	color: var(--wp--preset--color--accent-4);
	display: block;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-unit);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 14px;
	text-transform: none;
	white-space: nowrap;
}

.tac-stays-root .tacbe-dr-val {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-body-sm);
	font-weight: 200;
	line-height: 20px;
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tac-stays-root .tacbe-bk-guests {
	display: block;
	padding: 7px 12px;
}

/*
 * The count reads as the answer beside the word above it rather than as a box
 * inside a box — the field is already the box. It keeps its steppers: it is a
 * number and this is where it is set.
 */
.tac-stays-root .tacbe-bk-guests input {
	background: none;
	border: 0;
	border-radius: 0;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-body-sm);
	font-weight: 200;
	display: block;
	height: auto;
	line-height: 20px;
	margin-top: 2px;
	padding: 0;
	width: 100%;
}

/*
 * The enquiry, which takes the card's place when Enquire is pressed.
 *
 * It is the same panel, not a second one: the engine empties the booking box
 * and marks it, then writes the form into a slot below the button. Left alone
 * that read as three things stacked — an empty blush panel, the button, and a
 * grey box of browser defaults in the oatmeal the engine ships.
 *
 * So the empty box goes, and the form takes on what the box had: the blush at a
 * quarter, the 6 corner, the 31 of padding, and fields with a plum hairline.
 * Pressing Enquire changes what the panel asks, not what the page looks like.
 */
.tac-stays-root .tacbe-quote-box.tacbe-enquiry-open {
	display: none;
}

.tac-stays-root .tacbe-enquiry {
	background: color-mix( in srgb, var(--wp--preset--color--blush) 25%, #fff );
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	/* The engine holds it to 360, which is 54 short of the card it replaces. */
	max-width: none;
	/* Under the button at the card's own row spacing. */
	margin: 18px 0 0;
	padding: 31px;
}

/*
 * Said outright for the same reason the card says it: the engine sets this box
 * at 22 over 30.8, which every line inside it inherits — the fields came out 49
 * tall against the 50 they are drawn at only because their padding was fighting
 * it, and the labels above the dates were 12.8 rather than 12.
 */
.tac-stays-root .tacbe-enquiry,
.tac-stays-root .tacbe-enquiry input,
.tac-stays-root .tacbe-enquiry textarea {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-body-sm);
	font-weight: 200;
	line-height: 22px;
}

.tac-stays-root .tacbe-enquiry-fields {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/*
 * Two to a row, as the engine writes them, at the card's own 14 between — and
 * one to a row once two will not fit.
 *
 * 150 is what a date field needs: it is the browser's own control and it draws
 * dd/mm/yyyy and a calendar into it. On a phone the card is 261 across inside
 * its padding, which gave each of the pair 124 and cut the date to dd/mm/y.
 * Written as a basis rather than a breakpoint so it is the fields that decide,
 * whatever the card is asked to be.
 */
.tac-stays-root .tacbe-enquiry-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.tac-stays-root .tacbe-enquiry-row > * {
	flex: 1 1 150px;
	min-width: 0;
}

/*
 * Every box in the form is the card's box: a plum hairline, a 6 corner, 50
 * tall, the answer 12 in from the left. The engine ships them at a 2 corner in
 * a grey that belongs to no other part of this page.
 */
.tac-stays-root .tacbe-enquiry input:not( .tacbe-hp ),
.tac-stays-root .tacbe-enquiry textarea {
	background: transparent;
	border: 1px solid var(--wp--preset--color--plum);
	border-radius: 6px;
	box-shadow: none;
	color: var(--wp--preset--color--navy);
	display: block;
	min-height: 50px;
	padding: 13px 12px;
	width: 100%;
}

.tac-stays-root .tacbe-enquiry textarea {
	min-height: 96px;
	resize: vertical;
}

.tac-stays-root .tacbe-enquiry input:not( .tacbe-hp )::placeholder,
.tac-stays-root .tacbe-enquiry textarea::placeholder {
	color: var(--wp--preset--color--accent-4);
	opacity: 1;
}

.tac-stays-root .tacbe-enquiry input:focus-visible,
.tac-stays-root .tacbe-enquiry textarea:focus-visible {
	outline: 1px solid var(--wp--preset--color--plum);
	outline-offset: 1px;
}

/*
 * A date is the one field the engine gives a word of its own, and it writes the
 * word above the box rather than inside it — the same arrangement the booking
 * card's two fields use, so it is set the same way: the label small and grey,
 * sentence case, and the box under it.
 */
.tac-stays-root .tacbe-enquiry-datelabel {
	color: var(--wp--preset--color--accent-4);
	display: block;
	font-size: var(--hotelesque-size-unit);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 14px;
	text-transform: none;
}

.tac-stays-root .tacbe-enquiry-datelabel input {
	margin-top: 6px;
}

/*
 * What the engine says back — sent, or why not. Its own colours are a green and
 * a red that appear nowhere else here; navy for the good news and plum for the
 * bad is the palette this page already has.
 */
.tac-stays-root .tacbe-enquiry-status {
	font-size: var(--hotelesque-size-unit);
	line-height: 18px;
}

.tac-stays-root .tacbe-enquiry-status:not( :empty ) {
	margin-top: -6px;
}

/* Both buttons run the width of the card, 50 tall, as drawn. */
.tac-stays-root .tacbe-bk-reserve,
.tac-stays-root .tacbe-bk-enquire {
	min-height: 50px;
	width: 100%;
}

/*
 * Outlined, and standing below the tinted panel rather than inside it — see
 * assets/js/property-booking.js, which is what moves it out. Once it is a child
 * of .tacbe-quote rather than of the panel it needs its own width and the space
 * the frame leaves above it.
 */
.tac-stays-root .tacbe-quote > .tacbe-bk-enquire {
	display: block;
	margin-top: 20px;
	/*
	 * The engine caps the panel at 420, which this used to sit inside and so
	 * inherited. Out here it is a sibling of the panel rather than a child, and
	 * took the full width of the column instead — 833 under a 420 panel wherever
	 * the card is stacked under the words.
	 */
	max-width: 420px;
	width: 100%;
}

/*
 * Stacked under the words on a tablet, the panel and the button under it stand
 * in the middle of the column, not at its left (client feedback, October 2026).
 */
@media ( max-width: 1024px ) {
	.tac-stays-root .tacbe-quote > .tacbe-quote-box,
	.tac-stays-root .tacbe-quote > .tacbe-bk-enquire {
		margin-inline: auto;
	}
}

.tac-stays-root .tacbe-bk-enquire {
	background: transparent;
	border-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--plum);
}

.tac-stays-root .tacbe-bk-enquire:hover,
.tac-stays-root .tacbe-bk-enquire:focus-visible {
	background: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--base);
}

/*
 * The design opens on the photographs and puts the name under them; the plugin
 * writes the name first. The order is swapped here rather than through the
 * markup, because the head and the gallery are the plugin's own two blocks and
 * this only changes which way round they are read.
 */
/*
 * The design opens on the photographs, puts the name under them, and stands the
 * booking card beside the name rather than below it. The plugin writes the name
 * first and keeps the card in a row of its own further down, so the page is
 * laid on one grid and each part placed on it — which is also what holds the
 * name to the 974 the design wraps it at instead of the full width of the page.
 *
 * .tacbe-prop-cols is dissolved so the two halves it holds become parts of this
 * grid. If a rebuild puts a third thing in that row it will land here as well,
 * so this is worth re-checking after a plugin update.
 */
.tac-stays-root.tacbe-property {
	column-gap: 24px;
	display: grid;
	grid-template-columns: minmax( 0, 974px ) 414px;
	justify-content: space-between;
}

/*
 * The booking engine's own gallery — a picture with a grid of four beside it.
 * Ours is drawn instead, from the same photographs; see inc/property-gallery.php
 * for why this is hidden rather than not written.
 */
.tac-stays-root.tacbe-property > .tacbe-gallery {
	display: none;
}

/*
 * The gallery the design opens on — Figma 112:5028, "Hero Banner": one
 * photograph in the middle with the one before and the one after showing past
 * it either side, an arrow over each, and VIEW GALLERY at the bottom on the
 * right-hand one's edge.
 *
 * It is drawn as a row 3103 wide inside a frame of 1920, so it runs off both
 * edges of the page and is cut by them: 1299 by 908 in the middle, 37 either
 * side of it, and 865 by 742 for the two beside it — shorter than the middle
 * one and centred against it, which is what leaves the white above and below
 * them and raises the middle photograph out of the row. Only about 270 of each
 * of those is ever in view, so they are cut here by the page rather than sized:
 * every slide is the middle one's width, and it is the height that tells them
 * apart.
 *
 * The numbers are read as fractions of the page, because that is what the frame
 * draws them against: 1299 of 1920 is 67.66, and 908 of 1299 is what holds the
 * shape.
 */
.property-gallery {
	--gallery-main: min( 67.66vw, 1299px );
	--gallery-gap: 37px;

	grid-column: 1 / -1;
	grid-row: 1;
	position: relative;
}

/*
 * Out to the width of the page. 100vw counts the scrollbar and the page is not
 * that wide, so the 15 or so it overhangs by is cut off at main.property, which
 * is exactly as wide as the page can be. Clipped rather than hidden: hidden
 * would make that element a scroll container and unpin the booking card.
 */
main.property {
	overflow-x: clip;
}

/*
 * Said through the gallery as well, for the same reason the slide's width is:
 * Swiper's own stylesheet centres .swiper with auto margins, at the weight of a
 * single class, and is printed after this sheet. Left to it the row sat in the
 * band and ran off the right-hand side instead of standing either side of it.
 */
.property-gallery .property-gallery__track {
	margin-inline: calc( 50% - 50vw );
	overflow: hidden;
	width: 100vw;
}

/* Centred, so the two beside the middle one sit on its middle rather than its top. */
.property-gallery .swiper-wrapper {
	align-items: center;
}

/*
 * Said through the row as well as the slide: Swiper's own stylesheet holds
 * .swiper-slide at the full width of the track, at the same weight as a single
 * class here, and it is printed after this sheet.
 *
 * The height is what raises the middle photograph: 742 of the 908 it stands at,
 * for the two either side of it.
 */
.property-gallery .property-gallery__slide {
	aspect-ratio: 1299 / 908;
	height: 100%;
	transition: height 0.3s ease;
	width: var( --gallery-main );
}

/*
 * Stated as the exception rather than the rule so the middle photograph is its
 * full height on the first paint. Written the other way round — short by
 * default, full once Swiper marks the active slide — every property page opened
 * with the photograph growing into place, because that mark is only put on
 * after the script runs.
 */
.property-gallery .property-gallery__slide:not( .swiper-slide-active ) {
	height: 81.72%;
}

/*
 * The row is as tall as the middle photograph, so it does not change height as
 * the row moves.
 */
.property-gallery__track {
	aspect-ratio: unset;
	height: calc( var( --gallery-main ) / 1299 * 908 );
}

.property-gallery__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/*
 * Over the photographs either side, as drawn, and on the page's own gutter
 * rather than the row's — the same arrows the residences row uses.
 */
.property-gallery__arrow {
	/*
	 * White behind the ring. The mark itself — assets/images/arrow.svg — draws a
	 * navy circle around a navy arrow and leaves the middle of it clear, which is
	 * right everywhere else on the site: every other row stands its arrows on the
	 * page beside the cards. These stand on a photograph, and unfilled they were a
	 * ring with the picture showing through the middle of it. The design fills the
	 * circle white; it is filled here rather than in the file so the four rows
	 * that share it are left alone.
	 */
	background: var(--wp--preset--color--base);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	line-height: 0;
	padding: 0;
	position: absolute;
	top: 50%;
	translate: 0 -50%;
	z-index: 2;
}

/*
 * Centred on the photograph either side rather than set in from the page: what
 * is in view of each is half of what is left once the middle one and its two
 * gaps are taken out, and the arrow is 60 across.
 *
 * The 50% - 50vw is what moves the measurement off this box and onto the page.
 * These sit in the 1560 band while the row itself runs the full width, so
 * without it both arrows were a band's inset too far in.
 */
.property-gallery__arrow--prev,
.property-gallery__arrow--next {
	--gallery-peek: calc( ( 100vw - var( --gallery-main ) - 2 * var( --gallery-gap ) ) / 2 );
}

.property-gallery__arrow--prev {
	inset-inline-start: calc( 50% - 50vw + var( --gallery-peek ) / 2 - 30px );
	rotate: 180deg;
}

.property-gallery__arrow--next {
	inset-inline-end: calc( 50% - 50vw + var( --gallery-peek ) / 2 - 30px );
}

.property-gallery__arrow[aria-disabled="true"] {
	opacity: 0.4;
	pointer-events: none;
}

/*
 * 261 by 50, its bottom level with the bottom of the middle photograph — which
 * is below the two either side, those being the shorter ones, so it stands
 * clear of them.
 *
 * Set in from the right-hand edge of the page rather than out from the middle
 * photograph. The design has it on the left edge of the right-hand one, but
 * that edge is only 273 from the page's own edge at the width it is drawn at,
 * and less than that on any narrower screen — measured from there the button
 * walks off the page. From this end it keeps the 22 it is drawn with.
 */
.property-gallery__all {
	bottom: 0;
	inset-inline-end: calc( 50% - 50vw + 22px );
	justify-content: center;
	width: 261px;
	z-index: 2;
	background: var(--wp--preset--color--plum);
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 300;
	letter-spacing: 1.5px;
	line-height: 20px;
	margin: 0;
	padding: 13px 33px 15px;
	position: absolute;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/*
 * No wider than the white under the right-hand photograph: from its left edge
 * to the 22 the button keeps from the page's. At 261 it reached back across
 * the gap onto the middle photograph below about 1600 (client review, October
 * 2026). Its words set closer to fit what is left.
 */
@media ( min-width: 1025px ) {
	.property-gallery__all {
		max-width: calc( 50vw - var( --gallery-main ) / 2 - var( --gallery-gap ) - 22px );
	}
}

@media ( min-width: 1025px ) and ( max-width: 1600px ) {
	.property-gallery__all {
		letter-spacing: 1px;
		padding-inline: 14px;
	}
}

/* Smaller words, as on a phone, so they keep to one line in less white. */
@media ( min-width: 1025px ) and ( max-width: 1365px ) {
	.property-gallery__all {
		font-size: var(--hotelesque-size-unit);
	}
}

/* Too little white to stand in at all: under the row, as on a phone. */
@media ( min-width: 1025px ) and ( max-width: 1199px ) {
	.property-gallery__all {
		display: block;
		inset-inline-end: auto;
		margin: 16px 0 0 auto;
		max-width: none;
		padding: 11px 20px 13px;
		position: static;
		width: auto;
	}
}

.property-gallery__all:hover,
.property-gallery__all:focus-visible {
	background: transparent;
	border-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--plum);
}

/* Clear of the name under it. */
.property-gallery {
	margin-bottom: 60px;
}

/* Where the page is drawn — Figma 112:4491 — the suburb's line stands 155 below. */
@media ( min-width: 1025px ) {
	.property-gallery {
		margin-bottom: 155px;
	}
}

/* Every photograph at once, behind that button. */
.property-gallery__lightbox {
	background: var(--wp--preset--color--base);
	border: 0;
	height: 100%;
	max-height: 100%;
	max-width: 100%;
	padding: 0;
	width: 100%;
}

.property-gallery__lightbox::backdrop {
	background: rgba( 25, 40, 61, 0.85 );
}

.property-gallery__all-photos {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat( auto-fill, minmax( min( 380px, 100% ), 1fr ) );
	padding: 90px 40px 40px;
}

.property-gallery__all-photo {
	aspect-ratio: 3 / 2;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.property-gallery__close {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--navy);
	border-radius: 50%;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	font-size: 28px;
	height: 48px;
	inset-inline-end: 40px;
	line-height: 1;
	position: fixed;
	top: 28px;
	width: 48px;
	z-index: 2;
}

.tac-stays-root .tacbe-prop-head {
	grid-column: 1;
	grid-row: 2;
}

.tac-stays-root.tacbe-property > .property-spec {
	grid-column: 1;
	grid-row: 3;
}

.tac-stays-root .tacbe-prop-cols {
	display: contents;
}

.tac-stays-root .tacbe-prop-main {
	grid-column: 1;
	grid-row: 4;
}

/*
 * Beside the name and the words both, and pinned as the page scrolls — but
 * pinned from inside rather than as itself. Dissolving .tacbe-prop-cols takes
 * away the box that would have bounded the pinning, and what is left to bound
 * it is the whole page: the card came unstuck from its own column and rode down
 * over the reviews and the similar stays. Given the height of the two rows it
 * stands beside, it is that box the card is now pinned within.
 */
.tac-stays-root .tacbe-prop-aside {
	align-self: stretch;
	grid-column: 2;
	grid-row: 2 / 5;
	position: static;
}

.tac-stays-root .tacbe-prop-aside--sticky .tacbe-quote {
	position: sticky;
	/* Clear of the bar at the top, which rides over the page. */
	top: calc( var(--hotelesque-header-height, 92px) + 20px );
}

/* Reviews are read at the same measure as the rest of the words. */
.tac-stays-root .tacbe-reviews {
	grid-column: 1;
}

.tac-stays-root .property-similar {
	grid-column: 1 / -1;
}

/*
 * The booking engine's own row of marks. Ours is printed above it and reads the
 * same three numbers — see inc/property-spec.php for why it is drawn rather than
 * rewritten. This still reaches the marks on its cards, which are its own.
 */
.tac-stays-root .tacbe-prop-head .tacbe-specbar {
	display: none;
}

/*
 * The design's row: the marks on a 25 band with the number beside each, 24
 * between one and the next. Figma 112:5169 and 112:5175.
 */
.property-spec {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	list-style: none;
	/* The 18 the frame sets between the name and this row. */
	margin: 18px 0 0;
	padding: 0;
}

.property-spec__item {
	align-items: center;
	display: flex;
	gap: 6px;
}

.property-spec__mark {
	display: block;
	height: 25px;
	width: auto;
}

/* At 100, as every count of guests, beds and baths is (client review, October 2026). */
.property-spec__n {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-figure);
	font-weight: 100;
	line-height: 1;
}

/* The score closes the row at the far end of the column. */
.property-spec__rating {
	gap: 8px;
	margin-inline-start: auto;
}

.property-spec__star {
	display: block;
	height: auto;
	width: 24px;
}

/*
 * Share and save, in the gap between the words and the booking card — they
 * belong to neither column, and the frame stands them there: 60 clear of the
 * card's left edge, which is what they are hung off below rather than the
 * words, so they keep that clearance as the gap changes width.
 *
 * The gap is only wide enough to hold them once the band has reached its full
 * 1560, which wants a page of 1612. Narrower than that it closes to 24 — less
 * than these two are wide — so they sit at the end of the words instead, and on
 * a phone there is no second column for them to be beside at all.
 */
.property-actions {
	align-self: start;
	display: flex;
	gap: 12px;
	grid-column: 1;
	grid-row: 2;
	justify-self: end;
	/* The frame sets them 11.6 below the top of the suburb's line beside them. */
	margin-top: 12px;
}

@media ( min-width: 1612px ) {
	.property-actions {
		grid-column: 2;
		justify-self: start;
		/* Their own width, plus the 60 the frame leaves before the card. */
		translate: calc( -100% - 60px ) 0;
	}
}

.property-actions__button {
	background: none;
	border: 0;
	color: var(--wp--preset--color--plum);
	cursor: pointer;
	line-height: 0;
	padding: 4px;
	position: relative;
	transition: color 0.2s ease, scale 0.2s ease;
}

.property-actions__button:hover {
	scale: 1.08;
}

/* The heart takes a tint of its fill under the pointer, before it is saved. */
.property-actions__button--save:not( [aria-pressed="true"] ):hover .property-actions__mark {
	fill: color-mix( in srgb, currentColor 25%, transparent );
}

.property-actions__mark {
	display: block;
	height: 29px;
	width: auto;
}

/* Saved: the outline fills in, which is the whole of what the state looks like. */
.property-actions__button--save[aria-pressed="true"] .property-actions__mark {
	fill: currentColor;
}

/* "Link copied", under the mark, for as long as it takes to read. */
.property-actions__note {
	background: var(--wp--preset--color--navy);
	border-radius: 4px;
	color: var(--wp--preset--color--base);
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-unit);
	font-weight: 300;
	inset-inline-end: 0;
	letter-spacing: 1px;
	line-height: 1;
	padding: 7px 10px;
	position: absolute;
	top: calc(100% + 8px);
	text-transform: uppercase;
	white-space: nowrap;
}

/*
 * The suburb, over the name, as every eyebrow on the site is set — in the
 * brand's navy, not the engine's muted grey (client review, October 2026).
 */
.tac-stays-root .tacbe-prop-eyebrow {
	color: var(--wp--preset--color--navy);
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 100;
	letter-spacing: 1.5px;
	line-height: 20px;
	text-transform: uppercase;
}

/*
 * The design's H2: Canela 80 over 90, which is the hero size the rest of the
 * site is set in. It was at 45 here, which is a different heading altogether.
 */
.tac-stays-root .tacbe-prop-title {
	font-family: var(--hotelesque-font-display);
	font-size: var(--hotelesque-size-hero);
	font-weight: 100;
	line-height: var(--hotelesque-line-hero);
	/* The 27 the frame sets between the suburb and the name. */
	margin: 27px 0 0;
}

/*
 * The head holds the engine's row of marks, which is hidden — but the box round
 * it is not, and neither is the space the head keeps under itself, so between
 * them they stood 38 between the name and our row against the design's 10.
 */
.tac-stays-root .tacbe-prop-head {
	margin-bottom: 0;
}

.tac-stays-root .tacbe-prop-metarow {
	display: none;
}

/* Guests, beds and baths on one line under the name. */
.tac-stays-root .tacbe-specbar {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-body-sm);
	font-weight: 200;
	line-height: 25px;
}

/* The heading over each section of the page. */
/*
 * The heading over each block. The frame names it H5 — Canela Thin 28 over 40 —
 * and these were set at 40 over 52, which is the size above it.
 *
 * Similar stays keeps that larger size: it is not one of these blocks, it is a
 * row of its own below them all, and the frame draws its heading larger.
 */
.tac-stays-root .tacbe-prop-section h2,
.tac-stays-root .tacbe-reviews-title {
	font-family: var(--hotelesque-font-display);
	font-size: var(--hotelesque-size-subtitle);
	font-weight: 100;
	line-height: var(--hotelesque-line-subtitle);
}

/*
 * Similar stays: the homepage's row, borrowed whole — see inc/property-similar.php.
 * Only the heading and the room around it are said here; the card and the
 * carousel are already dressed for the homepage and carry that over unchanged.
 */
.tac-stays-root .property-similar {
	margin-top: 90px;
	/* Clear of the band under it: the rate is now the last line of every card. */
	padding-bottom: calc(110px * var(--hotelesque-section-scale));
}

/*
 * The row is laid out by .residences__carousel, which already centres the
 * arrows against it and keeps the 80 either side. What it does not carry is the
 * flex itself: on the homepage that comes from the layout class core puts on
 * the group, and there is no group here — so the arrows stacked above and below
 * the cards instead of standing either side of them.
 */
.tac-stays-root .property-similar__carousel {
	display: flex;
	flex-wrap: nowrap;
}

/*
 * On a phone the arrows go under the row rather than either side of it. Beside
 * it they cost 100 of the 323 the page has, and a card cut to 223 is not a card
 * — the row is better off giving them a line of their own and keeping its full
 * width for the one stay it can show.
 *
 * Laid as a grid rather than by wrapping the flex, so the row can be told to
 * come first and the two arrows to sit under it in the order they are written:
 * the markup is prev, row, next, which wrapping would put in that order.
 */
@media ( max-width: 767px ) {
	.tac-stays-root .property-similar__carousel {
		/*
		 * Two equal columns, not two auto ones. Auto columns size to their
		 * contents and justify-content then centres the pair, which can pull
		 * the track in from both edges and leave the card sitting inside
		 * everything above it. 1fr each fills the row whatever the contents
		 * measure. Kept identical to .residences .residences__carousel in
		 * style.css, which is the same row on the homepage.
		 */
		display: grid;
		gap: 30px;
		grid-template-columns: 1fr 1fr;

		/*
		 * The 40 this inherits is for arrows standing beside the track, where
		 * their width comes off the card. Under it they cost the card nothing,
		 * so they are drawn at the size the mark is made at.
		 */
		--arrow-size: 60px;
	}

	.tac-stays-root .property-similar__carousel .residences__slider {
		grid-column: 1 / -1;
		grid-row: 1;
		min-width: 0;
		width: 100%;
	}

	/*
	 * Its own size, because the one it had came from flex — flex: 0 0 40px on a
	 * grid item is ignored, and the button fell back to the mark's own 60 with
	 * nothing holding it, which drew two circles half the width of the phone.
	 */
	.tac-stays-root .property-similar__carousel .residences__arrow {
		block-size: var(--arrow-size);
		grid-row: 2;
		inline-size: var(--arrow-size);
	}

	/*
	 * Drawn together in the middle. The row above spans both columns, so the
	 * two of them are half the width of the slider each and an arrow left to
	 * sit at the start of its own column ends up at the edge of the page. Each
	 * is pushed to the side of its column that faces the other instead, and the
	 * gap between the columns is what holds them apart.
	 */
	.tac-stays-root .property-similar__carousel .residences__arrow--prev {
		justify-self: end;
	}

	.tac-stays-root .property-similar__carousel .residences__arrow--next {
		justify-self: start;
	}
}

.tac-stays-root .property-similar__title {
	font-family: var(--hotelesque-font-display);
	font-size: var(--hotelesque-size-title);
	font-weight: 100;
	line-height: var(--hotelesque-line-title);
	margin: 0 0 70px;
}

/*
 * The card as this row draws it — Figma 112:4568: near enough square, and every
 * one with its marks and its rate showing, where the homepage keeps those for
 * the card in the middle.
 */
.tac-stays-root .residence-card--listed .residence-card__media {
	aspect-ratio: 464 / 466;
}

.tac-stays-root .residence-card--listed .residence-card__detail {
	height: auto;
	opacity: 1;
}

/* The card's guests, beds and baths are in style.css, beside the rest of the card. */

/*
 * The arrows stand outside the column where the window has the room, as they do
 * on the homepage, so the three cards share the whole of it — 1840 is the
 * column and an arrow and its 80 either side.
 */
@media ( min-width: 1900px ) {
	.tac-stays-root .property-similar__carousel {
		margin-inline: calc( -1 * ( var( --arrow-size ) + var( --carousel-gap ) ) );
	}
}

.tac-stays-root .tacbe-prop-section,
.tac-stays-root .tacbe-prop-main p,
.tac-stays-root .tacbe-amenity,
.tac-stays-root .tacbe-gtk-item {
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-body-sm);
	font-weight: 200;
}

/*
 * The line, said without the amenities.
 *
 * They were in the rule above and took its 25 with them, which is the same
 * weight as the 32 set on them further up and written later, so the 25 won: the
 * row came out 25 tall with a 32 mark hanging 7 below it, which ate more than
 * half of the 13 between one row and the next. The amenities keep the face and
 * the size from above and set their own line where it is set, beside the mark
 * it has to agree with.
 */
.tac-stays-root .tacbe-prop-section,
.tac-stays-root .tacbe-prop-main p,
.tac-stays-root .tacbe-gtk-item {
	line-height: 25px;
}

/*
 * The booking card, 414 as drawn against the 974 the words are read at. The
 * plugin already keeps it beside them and pins it as the page scrolls.
 */
.tac-stays-root .tacbe-prop-aside {
	flex-basis: 414px;
}

.tac-stays-root .tacbe-bk-price {
	font-family: var(--hotelesque-font-display);
	font-size: var(--hotelesque-size-figure);
	font-weight: 100;
}

.tac-stays-root .tacbe-bk-unit {
	font-size: var(--hotelesque-size-unit);
	letter-spacing: 1.5px;
	font-weight: 100;
	text-transform: uppercase;
}

/*
 * The Local Guide section's link to the suburb's guide (inc/local-guides.php):
 * the site's outlined button, between the words and the map.
 */
.tac-stays-root .property-guide-link {
	margin: 30px 0;
}

.tac-stays-root .property-guide-link__button {
	border: 1px solid var(--wp--preset--color--plum);
	border-radius: 6px;
	color: var(--wp--preset--color--plum);
	display: inline-block;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 300;
	letter-spacing: 1.5px;
	line-height: 20px;
	padding: 13px 33px 15px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tac-stays-root .property-guide-link__button:hover,
.tac-stays-root .property-guide-link__button:focus-visible {
	background-color: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--base);
}

/*
 * "From" before the nightly rate while no dates are chosen, since the rate
 * varies by date (client feedback, October 2026). Once dates are in, the
 * plugin writes the nights under the price and the rate becomes the stay's
 * average, so the word goes; on the phone's bar it goes once the bar shows a
 * total. Said here because the plugin's script writes the price.
 */
.tac-stays-root .tacbe-bk-head:has( .tacbe-bk-sub:empty ) .tacbe-bk-price:not( :empty )::before {
	content: "From";
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-unit);
	letter-spacing: 1.5px;
	margin-right: 8px;
	text-transform: uppercase;
}

.tacbe-mobile-bookbar:not( .is-ready ) .tacbe-mbb-price:not( :empty )::before {
	color: var(--tacbe-muted-ink, #8a8f96);
	content: "From";
	font-size: 0.85rem;
	font-weight: 400;
	margin-right: 4px;
}

/*
 * The phone's bar is put on the page outside .tac-stays-root, where none of the
 * site's button reaches, so its Reserve and Add dates came out as the browser
 * draws a button — square, navy, 1 by 6 of padding. Given the site's button
 * here, plum and filled. It keeps the filled look under the pointer too: the
 * engine holds its words white with !important, which an outline would lose.
 */
.tacbe-mobile-bookbar .tacbe-mbb-go {
	background: var(--wp--preset--color--plum);
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-label);
	font-weight: 300;
	letter-spacing: 1.5px;
	line-height: 20px;
	padding: 13px 24px 15px;
	text-transform: uppercase;
}

/*
 * The call-out and promotion pills carry their colours as inline styles, set
 * per tag in the plugin's settings, so only the shape is ours to say.
 */
.tac-stays-root .tacbe-callout,
.tac-stays-root .tacbe-card-callout,
.tac-stays-root .tacbe-card-promopill {
	border-radius: 0;
	font-family: var(--hotelesque-font-ui);
	font-size: var(--hotelesque-size-unit);
	font-weight: 300;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Narrower
   ---------------------------------------------------------------------- */

/*
 * The property page, in one column.
 *
 * The plugin stacks it below 860 by re-columning .tacbe-prop-cols — which is
 * the box dissolved above, so none of that reaches the page any more and the
 * two columns held at every width. A 414 card alone is wider than a phone, so
 * this is not a matter of it reading tight: the page went off the side of
 * itself.
 *
 * Stacked at 1024 rather than at the plugin's 860, because the card does not
 * narrow: every pixel the page loses comes off the words instead, and by 1024
 * they are down to 519 against the 974 they are set at. The card is better off
 * the row by then.
 *
 * The card goes above the words, as the plugin puts it — on a small screen the
 * price and the dates are what the page is for — and stops being pinned, since
 * there is nothing beside it to be pinned against.
 */
@media ( max-width: 1024px ) {
	.tac-stays-root.tacbe-property {
		grid-template-columns: minmax( 0, 1fr );
	}

	.tac-stays-root.tacbe-property > .property-gallery {
		grid-row: 1;
	}

	.tac-stays-root .tacbe-prop-head {
		grid-column: 1;
		grid-row: 2;
	}

	.tac-stays-root.tacbe-property > .property-spec {
		grid-row: 3;
	}

	.property-actions {
		grid-column: 1;
		justify-self: end;
		translate: none;
	}

	/*
	 * Its own space above and below. The grid these rows belong to is given a
	 * column gap and no row gap — right in two columns, where each block carries
	 * its own margins, and wrong the moment they are all in one: the gallery,
	 * the marks and the similar stays each bring a margin with them and the card
	 * brings none, so it sat flush against the marks above it and the words
	 * below with nothing between.
	 */
	.tac-stays-root .tacbe-prop-aside {
		grid-column: 1;
		grid-row: 4;
		margin-block: 40px;
	}

	.tac-stays-root .tacbe-prop-main {
		grid-column: 1;
		grid-row: 5;
	}

	.tac-stays-root .tacbe-prop-aside--sticky .tacbe-quote {
		position: static;
	}

	/*
	 * More of the photograph, but not all of it: the arrows go here, so what is
	 * left of the two either side is the only thing saying the row moves at all.
	 * At 86 there was nothing left of them and it read as a single picture.
	 */
	.property-gallery .property-gallery__slide {
		width: 80%;
	}

	.property-gallery__arrow {
		display: none;
	}

	/*
	 * Under the row rather than on it. The design stands this in the white to
	 * the right of the middle photograph, and on a phone there is no white
	 * there — placed as drawn it sat on the picture, and behind it, since the
	 * row is painted after. Sized to its words too: 261 covers most of a phone.
	 */
	.property-gallery__all {
		display: block;
		font-size: var(--hotelesque-size-unit);
		inset-inline-end: auto;
		margin: 16px 0 0 auto;
		padding: 11px 20px 13px;
		position: static;
		width: auto;
	}


	.tac-stays-root .tacbe-prop-section {
		padding: 36px 0;
	}
}


/*
 * The bar keeps its fields on one row at every width — it is the plugin's own
 * layout and it does not stack them — so the only thing to take off here is the
 * divider, which reads as clutter once the fields are this close together.
 *
 * The button keeps its 174. Given the full width instead it pushed the row past
 * the page and took 412 of sideways scroll with it.
 */
@media ( max-width: 767px ) {
	.tac-stays-root .tacbe-sb-field + .tacbe-sb-field::before {
		display: none;
	}
}

/*
 * The plugin gives Where and Guests the same share, so on a tablet Where cut
 * "All neighbourhoods" to "All neighbou…" while Guests stood half empty round
 * its one figure. Shared out by what each one holds instead.
 */
@media ( max-width: 1024px ) {
	.tac-stays-root .tacbe-searchbar > .tacbe-sb-where {
		flex: 1.3;
	}

	.tac-stays-root .tacbe-searchbar > .tacbe-sb-field:last-of-type {
		flex: 0.7;
	}
}

/*
 * The fields need about 780 for their words and the button 174 more, which a
 * window under 900 does not have — at 768 Check out broke onto two lines. The
 * plugin keeps them on one row regardless, so the row is allowed to wrap and the
 * button takes the line under them.
 */
@media ( max-width: 900px ) {
	.tac-stays-root .tacbe-searchbar {
		flex-wrap: wrap;
	}

	.tac-stays-root .tacbe-sb-go {
		width: 100%;
	}
}

/*
 * Above the results on a phone or tablet — from 860, where the plugin swaps
 * Cards / Map for the floating Map button — the plugin stacks Filters, the
 * count and Sort, each on a line of its own. Here Filters and Sort share the
 * first line and the count follows.
 *
 * They sit in different boxes, so the search box becomes a wrapping row: the
 * sort bar steps aside (display: contents) to let its select line up with the
 * rest, order brings Filters and Sort up under the search, and an
 * empty ::after ends that line. Everything else keeps a line to itself, in the
 * plugin's order. The word Sort is still read out, not shown; the select says
 * what it does.
 */
@media ( max-width: 860px ) {
	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) {
		align-items: center;
		column-gap: 12px;
		display: flex;
		flex-wrap: wrap;
	}

	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) > * {
		flex: 0 0 100%;
		min-width: 0;
	}

	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) > .tacbe-search-pill,
	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) > .tacbe-searchbar {
		order: -2;
	}

	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) > .tacbe-controls {
		flex: none;
		margin-bottom: 16px;
		order: -1;
	}

	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only )::after {
		content: "";
		flex-basis: 100%;
		order: -1;
	}

	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) > .tacbe-sortbar:not( [hidden] ) {
		display: contents;
	}

	/* Level with the Filters button: both take --hq-control-height. */
	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) .tacbe-sort-select {
		margin: 0 0 16px auto;
		order: -1;
	}

	.tac-stays-root .tacbe-search:not( .tacbe-grid-only, .tacbe-bar-only ) .tacbe-sort-label {
		clip-path: inset( 50% );
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}
}

/*
 * On a phone the search pill gets a gap under it — the Filters button stood
 * against it — and the amenities go two to a line, where the plugin's 150
 * minimum left one: fourteen rows of them.
 */
@media ( max-width: 720px ) {
	.tac-stays-root .tacbe-search-pill {
		margin-bottom: 12px;
	}

	.tac-stays-root .tacbe-filter-chips {
		column-gap: 12px;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}
