/* ==========================================================================
   Aapartamentoos: the site's only stylesheet.

   Written for these templates only (no framework, no build step). Sections:
   1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Type · 6 Buttons · 7 Header
   8 Hero · 9 Sections · 10 Carousel & cards · 11 Experiences & reviews
   12 Footer · 13 Contact actions · 14 Inner pages · 15 Room page
   16 Forms · 17 FAQ & thank-you · 18 Motion preferences

   Contrast (WCAG AA) of the main pairs, checked: ink on ivory 16.4:1, text on
   ivory 8.4:1, muted on sand 5.0:1, gold-deep on sand 5.2:1, gold on night 7.9:1,
   night on gold (buttons) 7.9:1, white on WhatsApp green 5.3:1.
   ========================================================================== */

/* 1. Fonts: self-hosted (no requests to Google). Cormorant Garamond and Jost,
   both SIL Open Font License; files and licences in static/home/fonts. */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-500-normal.efeea72c7a42.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-500-normal.60704cc35ffe.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-600-normal.d18ea9df8e38.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-500-italic.9b8a16c9964e.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-500-italic.9ee79c50a32b.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/jost-latin-wght-normal.928f4210aa48.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/jost-latin-ext-wght-normal.7f44f6fd229b.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens */
:root {
	--night: #15120f;
	--night-2: #1f1b17;
	--ink: #1c1915;
	--text: #4f4840;
	--muted: #6b6359;
	--ivory: #faf7f2;
	--sand: #f2ece2;
	--white: #ffffff;
	--line: #e3d9c9;
	--gold: #c6a46c;
	--gold-light: #d8bd8e;
	--gold-deep: #7a5c34;
	--on-dark: #ece5d8;
	--on-dark-muted: #a99f91;
	--line-dark: rgba(236, 229, 216, 0.16);
	--whatsapp: #0e7a5f;
	--whatsapp-dark: #075e54;
	--danger: #a3302a;

	--serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(48px, 6.5vw, 88px);
	--radius: 2px;
	--header-h: 76px;
	--shadow: 0 18px 40px -24px rgba(21, 18, 15, 0.35);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--gold);
	color: var(--night);
}

.skip-link:focus {
	top: 16px;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.whatsapp-icon {
	width: 1.3em;
	height: 1.3em;
	flex: none;
}

/* 4. Layout */
.container {
	width: 100%;
	max-width: calc(1240px + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(820px + 2 * var(--gutter));
}

/* 5. Type */
h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	color: var(--ink);
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.005em;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--gold-deep);
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.eyebrow--light {
	color: var(--gold);
}

.section-title {
	font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.section-intro {
	max-width: 60ch;
	color: var(--muted);
	font-size: 1.1rem;
}

.prose {
	margin-top: 36px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

/* The features row above already has a bottom rule; don't draw a second one. */
.room-meta--large + .prose {
	margin-top: 32px;
	padding-top: 0;
	border-top: 0;
}

.prose h2 {
	font-size: 1.9rem;
}

/* 6. Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	background: transparent;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--sm {
	min-height: 44px;
	padding: 10px 20px;
}

.btn--block {
	width: 100%;
}

.btn--gold {
	background: var(--gold);
	color: var(--night);
}

.btn--gold:hover {
	background: var(--gold-light);
}

.btn--outline {
	border-color: var(--ink);
	color: var(--ink);
}

.btn--outline:hover {
	background: var(--ink);
	color: var(--ivory);
}

.btn--outline-light {
	border-color: rgba(250, 247, 242, 0.7);
	color: var(--ivory);
}

.btn--outline-light:hover {
	background: var(--ivory);
	color: var(--night);
}

/* Charcoal with gold text (7.9:1), gold on hover: secondary actions in the
   site palette, e.g. WhatsApp and Call in the room booking panel. */
.btn--dark {
	background: var(--ink);
	color: var(--gold);
}

.btn--dark:hover {
	background: var(--gold);
	color: var(--night);
}

.btn--whatsapp {
	background: var(--whatsapp);
	color: var(--white);
}

.btn--whatsapp:hover {
	background: var(--whatsapp-dark);
}

.btn--link {
	min-height: 44px;
	padding: 8px 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: var(--gold-deep);
}

.btn--link .icon {
	transition: transform 0.3s var(--ease);
}

.btn--link:hover .icon {
	transform: translateX(4px);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s;
}

.icon-btn:hover {
	background: var(--ink);
	color: var(--ivory);
}

.icon-btn:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.icon-btn--overlay {
	border: 0;
	background: rgba(250, 247, 242, 0.92);
	color: var(--ink);
}

/* 7. Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--night);
	color: var(--on-dark);
	transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
}

.site-header__logo img {
	width: auto;
	height: 44px;
}

.page-home .site-header {
	position: fixed;
	inset: 0 0 auto;
	background: linear-gradient(to bottom, rgba(21, 18, 15, 0.55), rgba(21, 18, 15, 0));
}

.page-home .site-header.is-scrolled,
.nav-open .site-header {
	background: var(--night);
	box-shadow: 0 1px 0 var(--line-dark);
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -12px;
	border: 0;
	background: none;
	color: var(--on-dark);
}

.nav-toggle .icon {
	width: 26px;
	height: 26px;
}

.nav-toggle__close,
.nav-open .nav-toggle__open {
	display: none;
}

.nav-open .nav-toggle__close {
	display: block;
}

.site-nav {
	position: fixed;
	inset: var(--header-h) 0 0;
	display: none;
	flex-direction: column;
	gap: 32px;
	padding: 40px var(--gutter);
	background: var(--night);
	overflow-y: auto;
}

.nav-open .site-nav {
	display: flex;
}

.nav-open {
	overflow: hidden;
}

.site-nav__list a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-dark);
	color: var(--on-dark);
	font-family: var(--serif);
	font-size: 2rem;
	text-decoration: none;
}

.site-nav__list a[aria-current="page"] {
	color: var(--gold);
}

.site-nav__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gold);
	font-size: 1.1rem;
	text-decoration: none;
}

.site-nav__phone .icon {
	width: 18px;
	height: 18px;
}

@media (min-width: 992px) {
	.site-nav__phone {
		min-height: 44px;
		padding: 8px 18px;
		border: 1px solid rgba(198, 164, 108, 0.5);
		border-radius: var(--radius);
		font-size: 0.9rem;
		letter-spacing: 0.06em;
		transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
	}

	.site-nav__phone:hover {
		background: var(--gold);
		color: var(--night);
	}
}

@media (min-width: 992px) {
	.nav-toggle {
		display: none;
	}

	.site-nav,
	.nav-open .site-nav {
		position: static;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 40px;
		padding: 0;
		background: none;
		overflow: visible;
	}

	.site-nav__list {
		display: flex;
		gap: 36px;
	}

	.site-nav__list a {
		position: relative;
		padding: 8px 0;
		border: 0;
		font-family: var(--sans);
		font-size: 0.82rem;
		font-weight: 500;
		letter-spacing: 0.18em;
		text-transform: uppercase;
	}

	.site-nav__list a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 100%;
		bottom: 2px;
		height: 1px;
		background: var(--gold);
		transition: right 0.35s var(--ease);
	}

	.site-nav__list a:hover::after,
	.site-nav__list a[aria-current="page"]::after {
		right: 0;
	}

	.site-nav__list a[aria-current="page"] {
		color: var(--on-dark);
	}
}

/* 8. Hero */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: var(--night);
	color: var(--ivory);
}

.hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	background: var(--night);
}

/* Darkens the footage evenly so the centred text stays readable on bright frames,
   a little more at the top (header) and bottom. */
.hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(21, 18, 15, 0.45) 0%, rgba(21, 18, 15, 0) 25%, rgba(21, 18, 15, 0) 70%, rgba(21, 18, 15, 0.55) 100%),
		rgba(21, 18, 15, 0.5);
}

.hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: calc(var(--header-h) + 32px);
	padding-bottom: 56px;
}

@media (min-width: 992px) {
	.hero__content {
		padding-bottom: 56px;
	}
}

.hero__title {
	max-width: 16ch;
	margin-bottom: 20px;
	color: var(--ivory);
	font-size: clamp(2.9rem, 7vw, 5.6rem);
	line-height: 1.02;
}

.hero__text {
	max-width: 48ch;
	color: rgba(250, 247, 242, 0.9);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	font-weight: 300;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 28px;
}

.hero__price {
	margin: 32px 0 0;
	padding-top: 18px;
	border-top: 1px solid rgba(250, 247, 242, 0.25);
	color: rgba(250, 247, 242, 0.85);
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hero__price strong {
	color: var(--gold);
	font-family: var(--serif);
	font-size: 1.7rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

/* 9. Sections */
.section {
	padding-block: var(--section);
}

.section--tight {
	padding-block: clamp(36px, 5vw, 64px);
}

.section--sand {
	background: var(--sand);
}

/* Two sand sections in a row read as one band: don't double the gap between them. */
.section--sand + .section--sand {
	padding-top: 0;
}

.section-head {
	margin-bottom: clamp(24px, 3.5vw, 40px);
}

.section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
}

.section-head--split .section-intro {
	margin-bottom: 0;
}

.section-head--center {
	text-align: center;
}

.section-head--center .section-intro {
	margin-inline: auto;
}

/* 10. Carousel & room cards */
/* Phones: one item per view at full content width (100% of the track's content box,
   i.e. the screen minus the side padding). The gap equals the side padding, so the
   next item starts exactly at the screen edge and doesn't peek in. */
.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: var(--gutter);
	margin-inline: calc(-1 * var(--gutter));
	padding: 4px var(--gutter) 8px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__item {
	scroll-snap-align: start;
	min-width: 0;
}

.carousel__controls {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 20px;
}

.carousel.is-static .carousel__controls {
	display: none;
}

@media (min-width: 640px) {
	.carousel__track {
		grid-auto-columns: calc((100% - 2 * var(--gutter) - 24px) / 2);
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.carousel__track {
		grid-auto-columns: calc((100% - 2 * var(--gutter) - 2 * 28px) / 3);
		gap: 28px;
	}
}

/* Room card: white card, photo, name, features and "View details" (original layout). */
.room-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 10px;
	background: var(--white);
	border-radius: 4px;
	box-shadow: 0 2px 18px -10px rgba(21, 18, 15, 0.18);
}

.room-card__media {
	display: block;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	border-radius: 3px;
	background: var(--sand);
}

.room-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

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

.room-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 14px 14px;
}

.room-card__title {
	margin-bottom: 16px;
	font-size: 1.7rem;
}

.room-card__title a {
	text-decoration: none;
}

.room-card__title a:hover {
	color: var(--gold-deep);
}

.room-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 0.92rem;
}

.room-features li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.room-features .icon {
	width: 18px;
	height: 18px;
	color: var(--gold-deep);
}

.room-card__btn {
	align-self: flex-start;
	margin-top: auto;
}

.room-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: var(--muted);
	font-size: 0.92rem;
}

.room-meta li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.room-meta .icon {
	width: 18px;
	height: 18px;
	color: var(--gold-deep);
}

.room-meta--large {
	gap: 12px 28px;
	padding-block: 20px;
	border-block: 1px solid var(--line);
	font-size: 1rem;
}

.room-grid {
	display: grid;
	gap: 48px 28px;
}

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

@media (min-width: 1024px) {
	.room-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 11. Experiences & reviews */
.feature {
	display: grid;
	gap: 32px;
	align-items: center;
}

.feature + .feature {
	margin-top: clamp(48px, 6vw, 80px);
}

.feature__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand);
}

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

.feature__title {
	font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.check-list {
	display: grid;
	gap: 10px;
	margin: 24px 0 28px;
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--text);
}

.check-list .icon {
	width: 20px;
	height: 20px;
	margin-top: 4px;
	color: var(--gold-deep);
}

@media (min-width: 992px) {
	.feature {
		grid-template-columns: 7fr 5fr;
		gap: 72px;
	}

	.feature--reverse {
		grid-template-columns: 5fr 7fr;
	}

	.feature--reverse .feature__media {
		order: 2;
	}
}

/* Experiences: a swipeable carousel of cards on phones and tablets (as before),
   editorial rows on desktop. */
.features {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: var(--gutter);
	margin-inline: calc(-1 * var(--gutter));
	padding: 4px var(--gutter) 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.features::-webkit-scrollbar {
	display: none;
}

.features .feature {
	align-content: start;
	gap: 0;
	scroll-snap-align: start;
	background: var(--white);
	border-radius: 4px;
	box-shadow: 0 2px 18px -10px rgba(21, 18, 15, 0.18);
	overflow: hidden;
}

.features .feature + .feature {
	margin-top: 0;
}

.features .feature__body {
	padding: 26px 22px 18px;
}

@media (min-width: 640px) and (max-width: 991.98px) {
	.features {
		grid-auto-columns: calc((100% - 2 * var(--gutter) - 24px) / 2);
		gap: 24px;
	}
}

@media (min-width: 992px) {
	.features {
		display: block;
		margin-inline: 0;
		padding: 0;
		overflow: visible;
	}

	.features .feature {
		gap: 72px;
		background: none;
		border-radius: 0;
		box-shadow: none;
		overflow: visible;
	}

	.features .feature + .feature {
		margin-top: clamp(48px, 6vw, 80px);
	}

	.features .feature__body {
		padding: 0;
	}
}

/* Reviews: light section with sand cards (original design), one per view on phones,
   two on desktop. */
.testimonials {
	background: var(--white);
}

.carousel__track.carousel__track--quotes {
	grid-auto-columns: 100%;
	align-items: stretch;
}

@media (min-width: 992px) {
	.carousel__track.carousel__track--quotes {
		grid-auto-columns: calc((100% - 2 * var(--gutter) - 28px) / 2);
		gap: 28px;
	}
}

.testimonial {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: clamp(28px, 4vw, 40px);
	background: var(--sand);
	border-radius: 4px;
}

.testimonial__text {
	flex: 1;
	margin: 0 0 28px;
	color: var(--text);
	font-size: 1.05rem;
	line-height: 1.75;
}

.testimonial__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.testimonial__name {
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.4rem;
	line-height: 1.2;
}

.testimonial__stars {
	display: flex;
	gap: 3px;
	color: #e9ba17;
}

.testimonial__stars .icon {
	width: 16px;
	height: 16px;
}

/* 12. Footer */
.site-footer {
	background: var(--night);
	color: var(--on-dark-muted);
	font-size: 0.95rem;
}

.site-footer__grid {
	display: grid;
	gap: 40px;
	padding-block: 72px 48px;
}

.site-footer__brand img {
	width: auto;
	height: 52px;
	margin-bottom: 20px;
}

.site-footer__brand p {
	max-width: 40ch;
}

.site-footer__title {
	margin-bottom: 18px;
	color: var(--gold);
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.site-footer a {
	color: var(--on-dark);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--gold);
}

.site-footer__links li + li,
.site-footer__contact li + li {
	margin-top: 10px;
}

.site-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.site-footer__contact .icon {
	width: 18px;
	height: 18px;
	margin-top: 5px;
	color: var(--gold);
}

.social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
}

.social .icon {
	width: 16px;
	height: 16px;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 24px;
	border-top: 1px solid var(--line-dark);
	font-size: 0.85rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	color: var(--gold);
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1.2fr;
		gap: 56px;
	}
}

/* Phones: everything centred. */
@media (max-width: 767.98px) {
	.site-footer__grid,
	.site-footer__bottom {
		text-align: center;
	}

	.site-footer__brand img,
	.site-footer__brand p {
		margin-inline: auto;
	}

	.social,
	.site-footer__contact li,
	.site-footer__bottom {
		justify-content: center;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: center;
	}
}

/* 13. WhatsApp button: round, bottom-right, on every screen size.
   White icon on #0e7a5f is 5.3:1; the usual WhatsApp green #25D366 is only 2:1. */
.whatsapp-float {
	position: fixed;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--whatsapp);
	color: var(--white);
	box-shadow: 0 10px 24px -8px rgba(14, 122, 95, 0.55), 0 4px 10px rgba(21, 18, 15, 0.18);
	transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-float::after {
	/* thin ring for a finished look against photos */
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid rgba(14, 122, 95, 0.35);
	border-radius: 50%;
	pointer-events: none;
}

.whatsapp-float .whatsapp-icon {
	width: 30px;
	height: 30px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
	background: var(--whatsapp-dark);
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 14px 28px -8px rgba(14, 122, 95, 0.6), 0 6px 14px rgba(21, 18, 15, 0.2);
}

@media (min-width: 992px) {
	.whatsapp-float {
		right: 28px;
		bottom: 28px;
		width: 62px;
		height: 62px;
	}

	.whatsapp-float .whatsapp-icon {
		width: 32px;
		height: 32px;
	}
}

/* 14. Inner pages: title band, breadcrumbs, filters, pagination */
.page-header {
	padding-block: clamp(36px, 6vw, 72px) clamp(36px, 5vw, 56px);
	background: var(--night);
	color: var(--on-dark-muted);
}

.page-header__title {
	max-width: 20ch;
	color: var(--on-dark);
	font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.page-header__intro {
	max-width: 56ch;
	margin: 0;
	font-size: 1.1rem;
}

.page-header .eyebrow {
	color: var(--gold);
}

.breadcrumb {
	margin-bottom: 24px;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.breadcrumb li + li::before {
	content: "/";
	margin-right: 6px;
	opacity: 0.5;
}

.breadcrumb a {
	color: var(--on-dark);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--gold);
}

.breadcrumb--dark {
	margin: 0;
	padding-block: 24px;
	color: var(--muted);
}

.breadcrumb--dark a {
	color: var(--ink);
}

.breadcrumb--dark a:hover {
	color: var(--gold-deep);
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 48px;
}

.filters__item {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.filters__item:hover {
	border-color: var(--ink);
}

.filters__item[aria-current="true"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--ivory);
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 64px;
}

.pagination__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	text-decoration: none;
}

.pagination__page[aria-current="page"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--ivory);
}

/* 15. Room page */
.gallery {
	position: relative;
}

.gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	background: var(--sand);
}

.gallery__track::-webkit-scrollbar {
	display: none;
}

.gallery__slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	aspect-ratio: 3 / 2;
}

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

/* Arrows only where there's a mouse-sized screen; phones swipe and use the thumbnails. */
.gallery .gallery__prev,
.gallery .gallery__next {
	position: absolute;
	top: 50%;
	display: none;
	transform: translateY(-50%);
}

@media (min-width: 992px) {
	.gallery .gallery__prev,
	.gallery .gallery__next {
		display: inline-flex;
	}
}

.gallery__prev {
	left: 16px;
}

.gallery__next {
	right: 16px;
}

.gallery__count {
	position: absolute;
	right: 16px;
	bottom: 16px;
	margin: 0;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(21, 18, 15, 0.72);
	color: var(--ivory);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
}

.gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.gallery__thumb {
	flex: none;
	padding: 0;
	border: 1px solid transparent;
	background: none;
	opacity: 0.6;
	transition: opacity 0.3s, border-color 0.3s;
}

.gallery__thumb:hover,
.gallery__thumb[aria-current="true"] {
	border-color: var(--gold-deep);
	opacity: 1;
}

.gallery__thumb img {
	width: 80px;
	height: 60px;
	object-fit: cover;
}

@media (min-width: 992px) {
	/* Leave room for the name and booking panel to show on the first screen. */
	.gallery__slide {
		aspect-ratio: auto;
		height: min(66vh, 680px);
	}
}

.room-layout {
	display: grid;
	gap: 48px;
}

.room-title {
	font-size: clamp(2.6rem, 5vw, 4rem);
}

.room-layout__main .prose p {
	max-width: 68ch;
}

/* Amenities: icon tiles. */
.amenities {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.amenity {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
	font-size: 0.95rem;
	line-height: 1.35;
}

.amenity__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sand);
	color: var(--gold-deep);
}

.amenity__icon .icon {
	width: 22px;
	height: 22px;
}

@media (min-width: 640px) {
	.amenities {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

/* Booking actions: a compact sticky panel on desktop; on phones and tablets a
   "Book this apartment" button under the room details instead. */
.room-book-mobile {
	margin-top: 24px;
}

@media (min-width: 992px) {
	.room-book-mobile {
		display: none;
	}
}

.room-layout__aside {
	display: none;
}

.book-box {
	display: grid;
	gap: 12px;
	padding: 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 4px;
	box-shadow: var(--shadow);
}

.book-box__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.book-box__row .btn {
	padding-inline: 12px;
}

@media (min-width: 992px) {
	.room-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 72px;
		align-items: start;
	}

	.room-layout__aside {
		position: sticky;
		top: calc(var(--header-h) + 24px);
		display: block;
	}
}

/* 16. Forms (inquiry and contact) */
.form-layout {
	display: grid;
	gap: 40px;
}

/* Contact page: the form comes first on phones and tablets. */
@media (max-width: 991.98px) {
	.form-layout--form-first .form {
		order: -1;
	}
}

@media (min-width: 992px) {
	.form-layout {
		grid-template-columns: 380px minmax(0, 1fr);
		gap: 72px;
		align-items: start;
	}
}

.summary-card,
.contact-card {
	background: var(--white);
	border: 1px solid var(--line);
}

.summary-card__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.summary-card__body,
.contact-card {
	padding: 28px;
}

.summary-card__title {
	font-size: 1.8rem;
}

/* Phones and tablets: a compact room summary, so the form starts near the top. */
@media (max-width: 991.98px) {
	.summary-card {
		display: grid;
		grid-template-columns: 112px 1fr;
		align-items: center;
	}

	.summary-card__image {
		height: 100%;
		aspect-ratio: auto;
	}

	.summary-card__body {
		padding: 16px 20px;
	}

	.summary-card__title {
		font-size: 1.4rem;
	}

	.summary-card .room-meta {
		font-size: 0.85rem;
	}

	.summary-card .btn--link {
		display: none;
	}
}

.summary-card .btn--link {
	margin-top: 16px;
}

.note {
	margin-top: 24px;
	color: var(--muted);
}

.contact-list {
	display: grid;
	gap: 20px;
	margin-bottom: 28px;
}

.contact-list li {
	display: flex;
	gap: 14px;
}

.contact-list .icon {
	width: 20px;
	height: 20px;
	margin-top: 4px;
	color: var(--gold-deep);
}

.contact-list__label {
	display: block;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.contact-list a {
	color: var(--ink);
}

.map {
	margin-top: 24px;
	aspect-ratio: 4 / 3;
	background: var(--sand);
	border: 1px solid var(--line);
}

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

.form {
	padding: clamp(28px, 4vw, 48px);
	background: var(--white);
	border: 1px solid var(--line);
}

.form__title {
	margin-bottom: 28px;
	font-size: 2rem;
}

.form__alert {
	padding: 12px 16px;
	border-left: 3px solid var(--danger);
	background: #fbefed;
	color: var(--danger);
}

.form__grid {
	display: grid;
	gap: 24px;
	margin-bottom: 32px;
}

@media (min-width: 640px) {
	.form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.field--full {
		grid-column: 1 / -1;
	}
}

.field label {
	display: block;
	margin-bottom: 8px;
	color: var(--ink);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.field__optional {
	color: var(--muted);
	letter-spacing: 0.06em;
	text-transform: none;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--ivory);
	color: var(--ink);
	font: inherit;
	transition: border-color 0.3s, background-color 0.3s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--gold-deep);
	background: var(--white);
	outline: none;
	box-shadow: 0 0 0 3px rgba(198, 164, 108, 0.35);
}

.field [aria-invalid="true"] {
	border-color: var(--danger);
}

.field__error {
	margin: 6px 0 0;
	color: var(--danger);
	font-size: 0.9rem;
}

/* 17. FAQ & thank-you */
.faq {
	border-top: 1px solid var(--line);
}

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

.faq__question {
	position: relative;
	display: block;
	padding: 26px 48px 26px 0;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.6rem;
	line-height: 1.25;
	cursor: pointer;
	list-style: none;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question::after,
.faq__question::before {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 18px;
	height: 1px;
	background: var(--gold-deep);
	transition: transform 0.3s var(--ease);
}

.faq__question::before {
	transform: rotate(90deg);
}

.faq__item[open] .faq__question::before {
	transform: rotate(0deg);
}

.faq__answer {
	padding-bottom: 26px;
	color: var(--text);
}

.faq__answer p:last-child {
	margin-bottom: 0;
}

.thank-you {
	text-align: center;
}

.thank-you .section-intro {
	margin-inline: auto;
}

.thank-you__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 24px;
	border: 1px solid var(--gold);
	border-radius: 50%;
	color: var(--gold-deep);
}

.thank-you__icon .icon {
	width: 30px;
	height: 30px;
}

.thank-you__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 32px;
}

/* 18. Motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Comfortable tap targets (WCAG 2.5.8: at least 24px) for links in lists. */
.breadcrumb a,
.site-footer__links a,
.site-footer__contact a {
	display: inline-block;
	padding-block: 6px;
}

.site-footer__links li + li,
.site-footer__contact li + li {
	margin-top: 2px;
}

/* Grid items may shrink below their content (e.g. the reCAPTCHA iframe). */
.form-layout > *,
.room-layout > * {
	min-width: 0;
}

/* Google's reCAPTCHA widget is a fixed 304px wide; scale it down on small phones so
   the form doesn't overflow the screen. */
@media (max-width: 400px) {
	.form {
		padding: 24px 18px;
	}

	.g-recaptcha {
		transform: scale(0.88);
		transform-origin: left top;
	}
}

/* Footer legal links */
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 20px;
}

.site-footer__legal a:hover {
	color: var(--gold);
}

.site-footer__legal a {
	display: inline-block;
	padding-block: 6px;
}

/* "From … € per night" */
.room-price,
.book-box__price,
.room-card__price {
	color: var(--muted);
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.room-price strong,
.book-box__price strong,
.room-card__price strong {
	color: var(--gold-deep);
	font-family: var(--serif);
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.room-price {
	margin: -4px 0 20px;
}

.book-box__price {
	margin: 0 0 4px;
	text-align: center;
}

.room-card__price {
	margin: -8px 0 18px;
}

/* Room facts ("Good to know") */
.facts {
	display: grid;
	gap: 12px 32px;
	margin: 0;
}

.fact {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.fact dt {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.fact dt .icon {
	width: 18px;
	height: 18px;
	color: var(--gold-deep);
}

.fact dd {
	margin: 0;
	color: var(--ink);
}

.fact a {
	color: var(--gold-deep);
}

@media (min-width: 640px) {
	.facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.form__fineprint {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 0.88rem;
}

.form__fineprint a {
	color: var(--gold-deep);
}

/* 20. Legal pages */
.legal h2 {
	margin-top: 40px;
	font-size: 2rem;
}

.legal h2:first-child {
	margin-top: 0;
}

.legal h3 {
	margin: 24px 0 8px;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.legal a {
	color: var(--gold-deep);
}

.legal ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
	list-style: disc;
}

.legal li + li {
	margin-top: 6px;
}

.legal__note {
	color: var(--muted);
	font-size: 0.85em;
}

.table-wrap {
	margin-bottom: 1em;
	overflow-x: auto;
}

.legal table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.legal th,
.legal td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.legal th {
	color: var(--ink);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}


/* Phones: table rows become stacked cards, each value with its label. */
@media (max-width: 639.98px) {
	.legal table,
	.legal tbody,
	.legal tr,
	.legal td {
		display: block;
		min-width: 0;
	}

	.legal thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.legal tr {
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
	}

	.legal td {
		padding: 3px 0;
		border: 0;
	}

	.legal td::before {
		content: attr(data-label);
		display: block;
		color: var(--muted);
		font-size: 0.72rem;
		font-weight: 500;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}
}
