/*
Theme Name: Whirlspring
Theme URI: https://example.com/whirlspring
Author: Jefferson Mwendwa
Author URI: https://example.com
Description: A bespoke hotel theme built for Whirlspring Hotel, Kisumu, under agreement PWH-2026-014-C. Rooms with meal-plan rates, services, gallery, enquiry forms and a self-hosted booking engine with offline payment instructions. Colours and type follow the hotel's own rate card. No page-builder dependency.
Version: 1.3.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whirlspring
Tags: hotel, hospitality, booking, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   0. Fonts — self-hosted, Latin subset, variable weight. No third-party
      request, so nothing blocks rendering and no visitor data goes to Google.
   ========================================================================== */

@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/cormorant-garamond.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Karla";
	src: url("assets/fonts/karla.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   1. Tokens — sampled from the hotel's official rate card
   ========================================================================== */

:root {
	--cream: #fbf6f1;
	--cream-warm: #fcefdf;
	--card: #fffcf8;

	--gold: #c9922f;
	--gold-lit: #e0b45c;
	--gold-pale: #f0dcb4;

	--tan: #ac804f; /* decorative only: borders, gradients */
	--tan-text: #8b6337; /* tan for text, 4.7:1 or better */
	--brown: #6b4a2a;
	--brown-deep: #2f241e;

	--text: #3a2e26;
	--muted: #6f6056; /* 5.3:1 on the warmest cream */
	--line: #e6dbcd;
	--alert: #b5502c;

	--font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

	--step--1: clamp(0.79rem, 0.76rem + 0.15vw, 0.87rem);
	--step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
	--step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
	--step-2: clamp(1.55rem, 1.32rem + 1vw, 2.2rem);
	--step-3: clamp(2.1rem, 1.65rem + 2.1vw, 3.4rem);
	--step-4: clamp(2.7rem, 1.95rem + 3.6vw, 5.2rem);

	--gutter: clamp(1.25rem, 4vw, 4.5rem);
	--measure: 66ch;
	--radius: 3px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.ve-locked { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	color: var(--brown);
	margin: 0 0 0.55em;
	text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.ve-skip {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--gold);
	color: var(--brown-deep);
	font-weight: 700;
}

.ve-skip:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.ve-wrap {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.ve-wrap--narrow { max-width: 900px; }

.ve-section { position: relative; padding-block: clamp(3.25rem, 7.5vw, 7rem); }
.ve-section--tight { padding-block: clamp(2rem, 4.5vw, 3.75rem); }
.ve-section--warm { background: var(--cream-warm); }

.ve-section--deep {
	background: var(--brown-deep);
	color: var(--cream);
}

.ve-section--deep h1,
.ve-section--deep h2,
.ve-section--deep h3,
.ve-section--deep h4 { color: var(--gold-lit); }

.ve-lede {
	font-size: var(--step-1);
	line-height: 1.55;
	max-width: 48ch;
	color: var(--muted);
}

.ve-section--deep .ve-lede { color: var(--gold-pale); }

.ve-head { max-width: 34ch; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.ve-head p { color: var(--muted); max-width: 46ch; }

/* A gold hairline under section headings, echoing the rate card. */
.ve-head h2::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 2px;
	margin-top: 0.7rem;
	background: var(--gold);
}

.ve-split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

@media (min-width: 900px) {
	.ve-split { grid-template-columns: 1fr 1fr; }
	.ve-split--lead { grid-template-columns: 0.85fr 1.15fr; }
}

.ve-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.ve-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.ve-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* ==========================================================================
   4. Gold thread — signature element, doubles as reading progress
   ========================================================================== */

.ve-thread {
	position: fixed;
	top: 0;
	left: clamp(0.6rem, 2vw, 2.25rem);
	width: 1px;
	height: 100vh;
	background: rgba(201, 146, 47, 0.2);
	z-index: 40;
	pointer-events: none;
}

.ve-thread__fill {
	position: absolute;
	inset: 0 0 auto 0;
	height: 0;
	background: linear-gradient(180deg, rgba(201, 146, 47, 0) 0%, var(--gold) 18%, var(--gold-lit) 100%);
}

.ve-thread__bead {
	position: absolute;
	left: 50%;
	width: 6px; height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 9px rgba(201, 146, 47, 0.6);
}

@media (max-width: 1000px) { .ve-thread { display: none; } }

/* ==========================================================================
   5. Header
   ========================================================================== */

.ve-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	padding-block: clamp(0.9rem, 1.8vw, 1.5rem);
	transition: padding 0.4s var(--ease), background-color 0.4s var(--ease),
		box-shadow 0.4s var(--ease);
}

.ve-header.is-stuck {
	padding-block: 0.6rem;
	background: rgba(251, 246, 241, 0.95);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(47, 36, 30, 0.5);
}

.ve-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

/* Over a photo hero the header sits on dark; once stuck it sits on cream. */
.ve-header:not(.is-stuck) .ve-brand__name { color: var(--cream); }
.ve-header:not(.is-stuck) .ve-nav > ul > li > a { color: var(--cream); }
.ve-header:not(.is-stuck) .ve-burger span { background: var(--cream); }
.ve-header.is-stuck .ve-brand__name { color: var(--brown); }
.ve-header.is-stuck .ve-nav > ul > li > a { color: var(--text); }
.ve-header.is-stuck .ve-burger span { background: var(--brown); }

.ve-brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }

.ve-brand img {
	max-height: clamp(40px, 4.5vw, 60px);
	width: auto;
	transition: max-height 0.4s var(--ease);
}

.ve-header.is-stuck .ve-brand img { max-height: 38px; }

.ve-brand__name {
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 700;
	line-height: 1;
	transition: color 0.4s var(--ease);
}

.ve-brand__place {
	display: block;
	font-family: var(--font-body);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	margin-top: 0.3rem;
}

.ve-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }

.ve-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2vw, 2rem);
	margin: 0; padding: 0;
	list-style: none;
}

.ve-nav a {
	position: relative;
	display: inline-block;
	font-size: var(--step--1);
	font-weight: 600;
	padding-block: 0.4rem;
	white-space: nowrap;
	transition: color 0.4s var(--ease);
}

.ve-nav a::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 1.5px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
}

.ve-nav a:hover::after,
.ve-nav .current-menu-item > a::after,
.ve-nav .current_page_item > a::after,
.ve-nav .current-menu-parent > a::after { transform: scaleX(1); }

/* Buttons */

.ve-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.85rem 1.6rem;
	border: 1.5px solid var(--gold);
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--brown-deep);
	font-size: var(--step--1);
	font-weight: 700;
	text-align: center;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
		border-color 0.3s var(--ease);
}

.ve-btn:hover { background: var(--gold-lit); border-color: var(--gold-lit); }

.ve-btn--ghost {
	background: transparent;
	color: var(--brown);
	border-color: var(--gold);
}

.ve-btn--ghost:hover { background: var(--gold); color: var(--brown-deep); }
.ve-section--deep .ve-btn--ghost { color: var(--gold-lit); }
.ve-hero .ve-btn--ghost { color: var(--cream); }
.ve-hero .ve-btn--ghost:hover { color: var(--brown-deep); }
.ve-btn--wide { width: 100%; }
.ve-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.ve-link {
	display: inline-block;
	font-weight: 700;
	font-size: var(--step--1);
	color: var(--tan-text);
	border-bottom: 1.5px solid var(--gold-pale);
	padding-bottom: 2px;
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.ve-link:hover { color: var(--brown); border-color: var(--gold); }

/* Burger */

.ve-burger { display: none; width: 44px; height: 44px; position: relative; z-index: 70; }

.ve-burger span {
	position: absolute;
	left: 10px;
	width: 24px; height: 2px;
	background: var(--brown);
	transition: transform 0.35s var(--ease), opacity 0.2s linear, background-color 0.4s var(--ease);
}

.ve-burger span:nth-child(1) { top: 16px; }
.ve-burger span:nth-child(2) { top: 22px; }
.ve-burger span:nth-child(3) { top: 28px; }
.ve-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ve-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ve-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.ve-burger { display: block; }

	/* When the panel is open the burger sits on cream, so darken it. */
	.ve-burger[aria-expanded="true"] span { background: var(--brown) !important; }

	.ve-nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 2rem;
		padding: 6rem var(--gutter) 3rem;
		background: var(--cream-warm);
		transform: translateX(100%);
		transition: transform 0.42s var(--ease);
		overflow-y: auto;
	}

	.ve-nav.is-open { transform: translateX(0); }
	.ve-nav ul { flex-direction: column; align-items: flex-start; gap: 1.3rem; }

	.ve-header .ve-nav > ul > li > a,
	.ve-header:not(.is-stuck) .ve-nav > ul > li > a {
		font-family: var(--font-display);
		font-size: var(--step-2);
		font-weight: 600;
		color: var(--brown);
	}
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.ve-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(500px, 84vh, 860px);
	padding-block: clamp(6rem, 14vh, 9rem) clamp(2.75rem, 7vh, 5rem);
	overflow: hidden;
	isolation: isolate;
	color: var(--cream);
}

.ve-hero--inner { min-height: clamp(330px, 50vh, 540px); }

.ve-hero h1 { color: var(--cream); }

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

.ve-hero__media img {
	width: 100%; height: 100%;
	object-fit: cover;
}


.ve-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(47, 36, 30, 0.62) 0%,
		rgba(47, 36, 30, 0.3) 38%,
		rgba(47, 36, 30, 0.88) 100%
	);
}

.ve-hero__stand {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(105% 78% at 20% 10%, rgba(201, 146, 47, 0.45), transparent 62%),
		linear-gradient(158deg, var(--tan) 0%, var(--brown-deep) 74%);
}

.ve-hero__inner { position: relative; width: 100%; }
.ve-hero__title { max-width: 17ch; margin-bottom: 1.2rem; }

.ve-hero__sub {
	max-width: 46ch;
	color: var(--cream);
	opacity: 0.92;
	font-size: var(--step-1);
}

.ve-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem 2.2rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(240, 220, 180, 0.3);
	font-size: var(--step--1);
	color: var(--gold-pale);
}

.ve-hero__meta strong { color: #fff; font-weight: 700; }

/* ==========================================================================
   7. Booking bar
   ========================================================================== */

.ve-bookbar { position: relative; z-index: 5; margin-top: -3.25rem; }

.ve-bookbar__panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 26px 52px -30px rgba(47, 36, 30, 0.55);
}

.ve-bookbar__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1rem 1.15rem;
	background: var(--card);
}

.ve-bookbar__field label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.ve-bookbar__field input,
.ve-bookbar__field select {
	border: 0;
	background: transparent;
	font-family: var(--font-body);
	font-size: var(--step-0);
	color: var(--text);
	padding: 0;
	width: 100%;
}

.ve-bookbar__go { display: flex; padding: 0.7rem; background: var(--card); }
.ve-bookbar__go .ve-btn { width: 100%; }

/* ==========================================================================
   8. Room cards
   ========================================================================== */

.ve-room {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.ve-room:hover {
	border-color: var(--gold);
	box-shadow: 0 18px 40px -30px rgba(47, 36, 30, 0.6);
}

.ve-room__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(150deg, var(--tan), var(--brown));
}

.ve-room__media img { width: 100%; height: 100%; object-fit: cover; }

.ve-room__rate {
	position: absolute;
	right: 0; bottom: 0;
	padding: 0.45rem 0.85rem;
	background: var(--gold);
	color: var(--brown-deep);
	font-size: var(--step--1);
	font-weight: 700;
}

.ve-room__rate span { font-weight: 400; }

.ve-room__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.8rem;
	padding: clamp(1.2rem, 2.4vw, 1.75rem);
}

.ve-room__title { margin: 0; }

.ve-room__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin: 0; padding: 0;
	list-style: none;
	font-size: var(--step--1);
	color: var(--muted);
}

.ve-room__text { flex: 1; color: var(--muted); }
.ve-room__foot { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ==========================================================================
   9. Rate tables — the printed rate card, rebuilt as HTML
   ========================================================================== */

.ve-rates {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--step-0);
}

.ve-rates th,
.ve-rates td {
	padding: 0.55rem 0.4rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.ve-rates thead th {
	font-size: var(--step--1);
	font-weight: 700;
	color: var(--muted);
	border-bottom: 2px solid var(--gold);
}

.ve-rates td:last-child,
.ve-rates thead th:last-child { text-align: right; }
.ve-rates tbody th { font-weight: 400; color: var(--text); }
.ve-rates__amount { font-weight: 700; color: var(--brown); white-space: nowrap; }

.ve-rates__group th {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 700;
	color: var(--tan-text);
	padding-top: 1.3rem;
	border-bottom-color: transparent;
}

.ve-ratecard { display: grid; gap: clamp(1.5rem, 3.5vw, 2.5rem); }

@media (min-width: 820px) { .ve-ratecard { grid-template-columns: 1fr 1fr; } }

.ve-ratecard__panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.ve-ratecard__panel h2,
.ve-ratecard__panel h3 {
	font-size: var(--step-2);
	margin-bottom: 0.3rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--gold);
}

.ve-note { font-size: var(--step--1); color: var(--muted); margin-top: 1.5rem; }

/* ==========================================================================
   10. Service rows
   ========================================================================== */

.ve-service {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	padding-block: clamp(2.25rem, 5vw, 4.25rem);
	border-top: 1px solid var(--line);
}

.ve-service:first-of-type { border-top: 0; padding-top: 0; }

.ve-service__media {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(150deg, var(--tan), var(--brown));
}

.ve-service__media img { width: 100%; height: 100%; object-fit: cover; }

.ve-service__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(201, 146, 47, 0.45);
	border-radius: var(--radius);
	pointer-events: none;
}

.ve-service__title { margin-bottom: 0.5rem; }
.ve-service__body { color: var(--muted); }

.ve-service__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
	gap: 0.45rem 1.4rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--step--1);
}

.ve-service__list li { display: flex; align-items: baseline; gap: 0.55rem; }

.ve-service__list li::before {
	content: "";
	flex: none;
	width: 5px; height: 5px;
	background: var(--gold);
	transform: rotate(45deg) translateY(-1px);
}

@media (min-width: 860px) {
	.ve-service { grid-template-columns: 1fr 1fr; }
	.ve-service--flip .ve-service__media { order: 2; }
	.ve-service--noimage { grid-template-columns: 1fr; }
	.ve-service--noimage .ve-service__body,
	.ve-service--noimage .ve-service__title { max-width: 62ch; }
	.ve-service--noimage .ve-service__list { max-width: 70ch; }
}

/* ==========================================================================
   11. Facilities
   ========================================================================== */

.ve-facilities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
	gap: 1px;
	background: rgba(240, 220, 180, 0.22);
	border: 1px solid rgba(240, 220, 180, 0.22);
}

.ve-facility { padding: clamp(1.3rem, 3vw, 2rem); background: var(--brown-deep); }
.ve-facility__icon { width: 24px; height: 24px; margin-bottom: 0.85rem; color: var(--gold); }

.ve-facility h3,
.ve-facility h4 {
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 700;
	color: var(--cream);
	margin-bottom: 0.25rem;
}

.ve-facility p { font-size: var(--step--1); color: var(--gold-pale); margin: 0; }

/* ==========================================================================
   12. Testimonial
   ========================================================================== */

.ve-quote blockquote {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-3);
	font-style: italic;
	font-weight: 500;
	line-height: 1.25;
	max-width: 26ch;
	color: var(--brown);
}

.ve-quote cite {
	display: block;
	margin-top: 1.25rem;
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-style: normal;
	font-weight: 700;
	color: var(--tan-text);
}

/* ==========================================================================
   13. Gallery
   ========================================================================== */

.ve-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 0.7rem;
}

.ve-gallery button {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--tan);
}

.ve-gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s var(--ease); }
.ve-gallery button:hover img { opacity: 0.85; }
.ve-gallery button:nth-child(6n + 1) { grid-row: span 2; aspect-ratio: 1 / 2.04; }

@media (max-width: 700px) {
	.ve-gallery button:nth-child(6n + 1) { grid-row: auto; aspect-ratio: 1; }
}

.ve-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 5vw, 4rem);
	background: rgba(47, 36, 30, 0.96);
}

.ve-lightbox.is-open { display: flex; }
.ve-lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }

.ve-lightbox__close {
	position: absolute;
	top: clamp(1rem, 3vw, 2rem);
	right: clamp(1rem, 3vw, 2rem);
	width: 44px; height: 44px;
	font-size: 1.9rem;
	line-height: 1;
	color: var(--gold);
}

/* ==========================================================================
   14. Forms
   ========================================================================== */

.ve-form { display: grid; gap: 1.15rem; }
.ve-form__row { display: grid; gap: 1.15rem; }

@media (min-width: 640px) {
	.ve-form__row--2 { grid-template-columns: 1fr 1fr; }
	.ve-form__row--3 { grid-template-columns: repeat(3, 1fr); }
	.ve-form__row--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.ve-form__row--4 { grid-template-columns: repeat(4, 1fr); }
}

.ve-field { display: flex; flex-direction: column; gap: 0.4rem; }

.ve-field label {
	font-size: var(--step--1);
	font-weight: 700;
	color: var(--brown);
}

.ve-field__hint { font-size: var(--step--1); color: var(--muted); font-weight: 400; }

.ve-field input,
.ve-field select,
.ve-field textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: var(--step-0);
	color: var(--text);
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ve-field textarea { min-height: 132px; resize: vertical; }

.ve-field input:focus,
.ve-field select:focus,
.ve-field textarea:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(201, 146, 47, 0.16);
}

.ve-field input[aria-invalid="true"],
.ve-field textarea[aria-invalid="true"] { border-color: var(--alert); }

.ve-notice {
	padding: 0.95rem 1.15rem;
	border-left: 3px solid var(--gold);
	background: rgba(201, 146, 47, 0.12);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.ve-notice--bad { border-left-color: var(--alert); background: rgba(181, 80, 44, 0.1); }
.ve-notice p:last-child { margin-bottom: 0; }
.ve-hp { position: absolute; left: -9999px; }

/* ==========================================================================
   15. Booking engine
   ========================================================================== */

.ve-booking { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }

@media (min-width: 980px) {
	.ve-booking { grid-template-columns: 1.45fr 0.85fr; align-items: start; }
}

/* Ordered because the booking flow genuinely is a sequence. */
.ve-steps { counter-reset: ve-step; display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.ve-step { position: relative; padding-left: 3rem; counter-increment: ve-step; }

.ve-step::before {
	content: counter(ve-step);
	position: absolute;
	left: 0; top: 0;
	display: grid;
	place-items: center;
	width: 2rem; height: 2rem;
	border: 1.5px solid var(--gold);
	border-radius: 50%;
	font-size: var(--step--1);
	font-weight: 700;
	color: var(--tan-text);
	background: var(--card);
}

.ve-step__title {
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 700;
	color: var(--brown);
	margin-bottom: 0.75rem;
}

.ve-avail { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }

.ve-avail__row {
	display: grid;
	gap: 0.75rem 1.25rem;
	grid-template-columns: 1fr;
	align-items: center;
	padding: 1rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (min-width: 700px) {
	.ve-avail__row { grid-template-columns: 1fr auto auto; }
}

.ve-avail__row.is-out {
	background: transparent;
	border-style: dashed;
}

.ve-avail__row.is-out .ve-avail__name { color: var(--muted); }
.ve-avail__row.is-out .ve-avail__meta { color: var(--muted); font-style: italic; }
.ve-avail__row.is-chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.ve-avail__name { font-weight: 700; color: var(--brown); }
.ve-avail__meta { font-size: var(--step--1); color: var(--muted); }
.ve-avail__price { font-weight: 700; color: var(--brown); white-space: nowrap; }
.ve-avail__price small { display: block; font-weight: 400; color: var(--muted); }
.ve-avail__qty { width: 4.5rem; }
.ve-avail__actions { display: flex; align-items: center; gap: 0.5rem; }

.ve-summary {
	position: sticky;
	top: 6rem;
	padding: clamp(1.25rem, 3vw, 1.9rem);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	background: var(--cream-warm);
}

.ve-summary h2,
.ve-summary h3 { font-size: var(--step-2); margin-bottom: 0.9rem; }

.ve-summary__line {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
	border-bottom: 1px solid rgba(172, 128, 79, 0.22);
	font-size: var(--step--1);
}

.ve-summary__line span:first-child { color: var(--muted); }
.ve-summary__line span:last-child { font-weight: 700; text-align: right; }

.ve-summary__total {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
	margin-top: 0.9rem;
	padding-top: 0.85rem;
	border-top: 2px solid var(--gold);
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 700;
	color: var(--brown);
}

.ve-summary__note { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }
.ve-summary__empty { color: var(--muted); font-size: var(--step--1); }

/* Payment instructions */

.ve-pay {
	border: 1.5px solid var(--gold);
	border-radius: var(--radius);
	background: var(--card);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.ve-pay h2,
.ve-pay h3 { font-size: var(--step-2); margin-bottom: 0.85rem; }

.ve-pay__ref {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	margin-bottom: 1.1rem;
	border: 1.5px dashed var(--gold);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--brown);
}

.ve-pay__grid { display: grid; gap: 0.85rem; margin: 0; }

@media (min-width: 620px) { .ve-pay__grid { grid-template-columns: repeat(2, 1fr); } }

.ve-pay__grid dt { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.ve-pay__grid dd { margin: 0.15rem 0 0; font-size: var(--step-1); font-weight: 700; color: var(--brown); }
.ve-pay__note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--muted); }

/* ==========================================================================
   16. Contact
   ========================================================================== */

.ve-contact-list { display: grid; gap: 1.5rem; margin: 0; }
.ve-contact-list dt { font-size: var(--step--1); font-weight: 700; color: var(--tan-text); margin-bottom: 0.2rem; }
.ve-contact-list dd { margin: 0; font-size: var(--step-1); line-height: 1.4; color: var(--brown); }

.ve-map {
	aspect-ratio: 16 / 10;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--cream-warm);
}

.ve-map iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   17. Footer
   ========================================================================== */

.ve-footer {
	background: var(--brown-deep);
	color: var(--gold-pale);
	padding-block: clamp(2.75rem, 6vw, 5rem) 1.75rem;
}

.ve-footer__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.25rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
}

.ve-footer h2,
.ve-footer h4 {
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1rem;
}

.ve-footer p, .ve-footer li, .ve-footer address {
	color: var(--gold-pale);
	font-size: var(--step-0);
	font-style: normal;
	line-height: 1.7;
}

.ve-footer ul { margin: 0; padding: 0; list-style: none; }
.ve-footer a:hover { color: #fff; }

.ve-social { display: flex; gap: 0.8rem; margin-top: 1.25rem; }

.ve-social a {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border: 1px solid rgba(240, 220, 180, 0.3);
	border-radius: 50%;
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.ve-social a:hover { border-color: var(--gold); color: var(--gold); }
.ve-social svg { width: 16px; height: 16px; }

.ve-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
	padding-top: 1.4rem;
	border-top: 1px solid rgba(240, 220, 180, 0.2);
	font-size: var(--step--1);
	color: rgba(240, 220, 180, 0.72);
}

/* Block widgets bring their own headings; keep them in scale. */
.ve-footer__widget h1,
.ve-footer__widget h2,
.ve-footer__widget h3,
.ve-footer__widget h4,
.ve-footer__widget .wp-block-heading {
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--gold);
	margin: 0 0 1rem;
}

.ve-footer__widget ul,
.ve-footer__widget ol { margin: 0; padding: 0; list-style: none; }
.ve-footer__widget li { margin-bottom: 0.4rem; }

/* ==========================================================================
   18. Editor content, pagination
   ========================================================================== */

.ve-entry > * + * { margin-top: 1.15em; }
.ve-entry h2, .ve-entry h3 { margin-top: 1.7em; }
.ve-entry ul, .ve-entry ol { padding-left: 1.3em; }
.ve-entry a { color: var(--tan-text); border-bottom: 1px solid var(--gold-pale); }
.ve-entry a:hover { color: var(--brown); }

.ve-entry blockquote {
	margin: 1.7em 0;
	padding-left: 1.4rem;
	border-left: 2px solid var(--gold);
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: italic;
}

.ve-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.75rem; }

.ve-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding-inline: 0.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: var(--step--1);
}

.ve-pagination .page-numbers.current,
.ve-pagination .page-numbers:hover {
	border-color: var(--gold);
	background: var(--gold);
	color: var(--brown-deep);
}

.wp-caption-text, .wp-element-caption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }
.alignwide { max-width: 1080px; margin-inline: auto; }
.aligncenter { margin-inline: auto; }

/* ==========================================================================
   19. Motion
   ========================================================================== */

/* Only hide the image if JavaScript is running to reveal it again. Without
   the ve-js flag the photo is simply visible. */
.ve-js .ve-wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.ve-js .ve-wipe.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.ve-js .ve-wipe { clip-path: none; }
	.ve-thread { display: none; }
}

/* ==========================================================================
   20. Empty-state robustness
   ========================================================================== */

.ve-room__media:not(:has(img)) { aspect-ratio: 5 / 2; }
.ve-service__media:not(:has(img)) { aspect-ratio: 5 / 2; }

/* ==========================================================================
   21. Admin bar
   ========================================================================== */

body.admin-bar .ve-header { top: 32px; }

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

/* ==========================================================================
   22. Consent line on forms
   ========================================================================== */

.ve-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	font-size: var(--step--1);
	line-height: 1.5;
	color: var(--muted);
	cursor: pointer;
}

.ve-consent input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	accent-color: var(--gold);
}

.ve-consent a { color: var(--tan-text); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   23. WhatsApp button
   ========================================================================== */

.ve-wa {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 55;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.1rem 0.7rem 0.85rem;
	border-radius: 999px;
	background: #1f7a4d;
	color: #fff;
	font-size: var(--step--1);
	font-weight: 700;
	box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.55);
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.ve-wa:hover { background: #17633e; transform: translateY(-2px); }
.ve-wa svg { width: 22px; height: 22px; }

/* On phones keep it to an icon so it never covers a form button. */
@media (max-width: 640px) {
	.ve-wa { padding: 0.8rem; }
	.ve-wa span {
		position: absolute;
		width: 1px; height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
}

@media print { .ve-wa, .ve-thread { display: none; } }

/* ==========================================================================
   24. Brand mark
   ========================================================================== */

.ve-brand__mark {
	width: clamp(38px, 4vw, 48px);
	height: auto;
	flex: none;
	transition: width 0.4s var(--ease);
}

.ve-header.is-stuck .ve-brand__mark { width: 34px; }

/* ==========================================================================
   25. Layout safety — nothing may push the page sideways on a phone
   ========================================================================== */

.ve-rates { table-layout: auto; }
.ve-ratecard__panel { overflow-x: auto; }
.ve-avail__row select { max-width: 100%; }
.ve-entry img, .ve-entry iframe, .ve-entry table { max-width: 100%; }
.ve-entry table { display: block; overflow-x: auto; }
.ve-contact-list dd a { overflow-wrap: anywhere; }
.ve-footer li, .ve-footer a { overflow-wrap: anywhere; }

/* ==========================================================================
   26. Touch targets — 44px minimum, as committed in the specification
   ========================================================================== */

.ve-btn { min-height: 44px; }

.ve-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-bottom: 0;
	border-bottom: 0;
	text-decoration: underline;
	text-decoration-color: var(--gold-pale);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
}

.ve-link:hover { text-decoration-color: var(--brown); }

.ve-room__title a,
.ve-rates__group th a {
	display: inline-block;
	padding-block: 0.45rem;
	min-height: 44px;
}

.ve-rates__group th a { color: var(--tan-text); }
.ve-rates__group th a:hover { color: var(--brown); }

/* Selects and inputs in the booking bar and availability list */
.ve-bookbar__field input,
.ve-bookbar__field select { min-height: 44px; }
.ve-bookbar__field { padding-block: 0.55rem 0.35rem; }

.ve-avail select,
.ve-avail__plan,
.ve-avail__qty {
	min-height: 44px;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font-family: var(--font-body);
	font-size: var(--step--1);
	color: var(--text);
}

.ve-avail__plan { width: 100%; max-width: 22rem; }
.ve-avail__qty { width: 4.75rem; }

.ve-field input,
.ve-field select { min-height: 44px; }

.ve-consent input { width: 1.35rem; height: 1.35rem; }
.ve-consent { padding-block: 0.35rem; }

.ve-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.ve-footer li a { display: inline-block; padding-block: 0.3rem; }
.ve-social a { width: 44px; height: 44px; }
.ve-pagination .page-numbers { min-width: 44px; height: 44px; }
.ve-lightbox__close { width: 48px; height: 48px; }
.ve-brand { min-height: 44px; }
.ve-consent { min-height: 44px; }

/* Section headings promoted to h2 for a correct outline, sized as before. */
.ve-subhead { font-size: var(--step-2); }

/* The place name sits on the dark hero in gold; once the header turns cream
   it needs the darker tan to stay readable. */
.ve-header.is-stuck .ve-brand__place { color: var(--tan-text); }

/* ==========================================================================
   22. Utility bar (wide screens)
   ========================================================================== */

.ve-topbar {
	background: var(--brown-deep);
	color: var(--gold-pale);
	font-size: 0.8rem;
	overflow: hidden;
	max-height: 3rem;
	transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}

.ve-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding-block: 0.5rem;
}

.ve-topbar__group { display: flex; gap: 1.75rem; margin: 0; }
.ve-topbar a { color: var(--gold-pale); transition: color 0.2s var(--ease); }
.ve-topbar a:hover { color: #fff; }
.ve-topbar__times { color: rgba(240, 220, 180, 0.8); }

/* Once the header sticks, the bar folds away so the header stays slim. */
.ve-header { padding-block: 0; }
.ve-header__inner { padding-block: clamp(0.9rem, 1.8vw, 1.5rem); transition: padding 0.4s var(--ease); }
.ve-header.is-stuck { padding-block: 0; }
.ve-header.is-stuck .ve-header__inner { padding-block: 0.6rem; }
.ve-header.is-stuck .ve-topbar { max-height: 0; opacity: 0; }

@media (max-width: 900px) {
	.ve-topbar { display: none; }
}

/* ==========================================================================
   23. Mobile action bar
   ========================================================================== */

.ve-mobilebar { display: none; }

@media (max-width: 900px) {
	.ve-mobilebar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 58;
		display: flex;
		gap: 1px;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--brown-deep);
		box-shadow: 0 -8px 24px -12px rgba(47, 36, 30, 0.6);
	}

	.ve-mobilebar__item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.2rem;
		min-height: 58px;
		padding: 0.45rem 0.5rem;
		color: var(--gold-pale);
		font-size: 0.74rem;
		font-weight: 700;
	}

	.ve-mobilebar__item svg { width: 20px; height: 20px; color: var(--gold); }

	.ve-mobilebar__book {
		flex: 1.6;
		flex-direction: row;
		background: var(--gold);
		color: var(--brown-deep);
		font-size: 0.9rem;
	}

	/* The bar carries WhatsApp on phones, so the floating button steps aside. */
	.ve-wa { display: none; }

	/* Keep the footer's last line clear of the bar. */
	body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

	/* The slide-in menu covers the bar; hide it while the menu is open. */
	body.ve-locked .ve-mobilebar { display: none; }
}

/* ==========================================================================
   24. Questions and policies
   ========================================================================== */

.ve-faq { border-top: 1px solid var(--line); }

.ve-faq__item { border-bottom: 1px solid var(--line); }

.ve-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.15rem;
	cursor: pointer;
	list-style: none;
}

.ve-faq__q::-webkit-details-marker { display: none; }

/* A plus that turns to a minus when open. */
.ve-faq__q::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background:
		linear-gradient(var(--tan-text), var(--tan-text)) center / 100% 2px no-repeat,
		linear-gradient(var(--tan-text), var(--tan-text)) center / 2px 100% no-repeat;
	transition: transform 0.3s var(--ease);
}

.ve-faq__item[open] > .ve-faq__q::after {
	background: linear-gradient(var(--tan-text), var(--tan-text)) center / 100% 2px no-repeat;
}

.ve-faq__title {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 700;
	line-height: 1.45;
	color: var(--brown);
}

.ve-faq__q:hover .ve-faq__title { color: var(--tan-text); }

.ve-faq__a {
	padding: 0 2rem 1.25rem 0;
	color: var(--muted);
	max-width: 62ch;
}

.ve-faq__more {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--cream-warm);
}

.ve-faq__more p { color: var(--muted); }

/* On phones the home hero is shortened so the whole booking panel, including
   its button, sits above the action bar on first load. */
@media (max-width: 900px) {
	.ve-hero:not(.ve-hero--inner) { min-height: 70svh; }
}
