/*
 * Design "Immersive": full-screen scenes. The whole home page is dark; every section fills at least
 * one screen. Sections with a photo use it as a full-screen background with the content on a
 * floating dark glass panel placed off-centre (hero bottom left, About right, the calendar left,
 * Get in Touch along the bottom); sections without a photo sit on deep colour with large light
 * type. Gentle vertical scroll-snap; a minimal transparent header; the gallery a gapless dark mosaic.
 * Loaded after main.css for villas with "villa.design": "immersive". Same sections, order and markup
 * as Classic; only the look and the layout change. Colours: villa_designs() (a light accent and
 * button: the text on buttons is dark).
 */

/* ==========================================================================
   Fonts (self-hosted: Cormorant Garamond latin + latin-ext; Manrope latin, latin-ext, greek)
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.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.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: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.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.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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-ext-400-normal.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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-ext-500-normal.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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-ext-600-normal.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; }

/* ==========================================================================
   Tokens: a dark page, light type, glass panels
   ========================================================================== */

:root {
	--ink: #0d0f0e; /* the page */
	--ink-2: #131614; /* sections without a photo, alternating */
	--ink-3: #181b19; /* solid panels and fields */
	--glass: rgb(12 14 13 / 0.6);
	--glass-strong: rgb(12 14 13 / 0.74);
	--glass-line: rgb(255 255 255 / 0.12);
	/* Text on the button and accent colours: dark on light colours, white on dark ones (below) */
	--on-button: #15130f;
	--on-accent: #15130f;
	--accent-text: var(--color-accent); /* the accent as text on the dark page (labels, icons, links) */
	--edge: clamp(20px, 5vw, 96px); /* distance of the scenes' content from the screen edges */
	--scene: 100vh;
	--scene: 100svh;

	--color-text: #ece7de;
	--color-text-muted: #b3ab9f;
	--color-bg: var(--ink);
	--color-bg-soft: #1c201e;
	--color-bg-sand: #161917;
	--color-dark: #f3eee6;
	--color-footer: #080908;
	--color-border: rgb(255 255 255 / 0.12);
	--color-day-available: #27392f;
	--color-day-today: var(--color-accent);
	--color-day-booked: #8a3a36;
	--color-day-past: #1f2321;

	--font-heading: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--header-height: 84px;
	--shadow-card: 0 30px 80px rgb(0 0 0 / 0.45);
	--radius: 2px;
}

/* Each villa sets its own button and accent colour: pick the text colour from its lightness */
@supports (color: rgb(from red r g b)) {
	:root {
		/* Grey from 21 to 255: dark when the colour is light (perceived brightness above 150), else white */
		--on-button: rgb(from var(--color-button) clamp(21, calc((150 - (0.299 * r + 0.587 * g + 0.114 * b)) * 1000), 255) clamp(21, calc((150 - (0.299 * r + 0.587 * g + 0.114 * b)) * 1000), 255) clamp(21, calc((150 - (0.299 * r + 0.587 * g + 0.114 * b)) * 1000), 255));
		--on-accent: rgb(from var(--color-accent) clamp(21, calc((150 - (0.299 * r + 0.587 * g + 0.114 * b)) * 1000), 255) clamp(21, calc((150 - (0.299 * r + 0.587 * g + 0.114 * b)) * 1000), 255) clamp(21, calc((150 - (0.299 * r + 0.587 * g + 0.114 * b)) * 1000), 255));
	}
}

@media (max-width: 768px) {
	:root {
		--header-height: 68px;
	}
}

html {
	background: var(--ink);
	color-scheme: dark;
}

/* The home page: scenes snap into place, gently (long sections still scroll freely) */
html:has(body.home) {
	scroll-snap-type: y proximity;
	scroll-padding-top: 0;
}

body {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.75;
}

h1,
h2,
h3,
h4 {
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.005em;
}

.section-title {
	font-size: clamp(40px, 4.6vw, 80px);
}

.section-label {
	margin-bottom: 18px;
	color: var(--accent-text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.32em;
}

.button {
	min-height: 52px;
	padding: 0 32px;
	color: var(--on-button);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
}

.button--outline {
	background: transparent;
	color: var(--color-text);
	border-color: rgb(255 255 255 / 0.4);
}

.button--outline:hover {
	color: var(--on-button);
}

.skip-link:focus {
	color: var(--on-button);
}

/* The accent as text and icons: always light enough on the dark page */
a,
.section-label,
.amenity__icon,
.house-rule__icon,
.owner-card__label,
.about-page__address-icon,
.about-page__map-icon,
.availability-message__link,
.text-page a,
.link-arrow:hover,
.site-nav__menu a:hover,
.language-switcher a:hover,
.language-switcher a.is-current,
.flatpickr-day.today,
.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
	color: var(--accent-text);
}

/* A floating dark glass panel: used for the content over photos */
.hero .availability-form,
.about:not(.about--no-photo) .about__content,
.prices__card,
.get-in-touch:not(.get-in-touch--no-photo) .get-in-touch__content {
	background: var(--glass);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	backdrop-filter: blur(18px) saturate(1.2);
	border: 1px solid var(--glass-line);
	box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Header: a minimal transparent bar over the scenes
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	/* A dark blurred bar: readable over every scene while they scroll beneath it */
	background: rgb(10 11 10 / 0.72);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
	border: 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

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

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header .container {
	max-width: none;
	padding-inline: var(--edge);
}

.site-branding,
.site-branding__location {
	color: var(--color-text);
}

.site-branding__name {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0.24em;
}

.site-branding__location {
	color: rgb(236 231 222 / 0.7);
	font-size: 10px;
	letter-spacing: 0.28em;
}

.site-nav__menu {
	gap: 36px;
}

.site-nav__menu a {
	color: rgb(236 231 222 / 0.86);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.24em;
}

.site-nav__menu a:hover {
	color: #fff;
}

/* BOOK: a quiet outline in the bar */
.site-header__book {
	min-height: 42px;
	padding: 0 24px;
	border: 1px solid rgb(255 255 255 / 0.45);
	background: transparent;
	color: #fff;
}

.site-header__book:hover {
	border-color: var(--color-button);
	background: var(--color-button);
	color: var(--on-button);
}

.site-header .header-whatsapp {
	min-height: 42px;
}

.language-switcher {
	color: var(--color-text);
	font-weight: 500;
}

.language-switcher ul {
	background: var(--ink-3);
	border: 1px solid var(--glass-line);
}

.language-flag {
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
}

.menu-toggle {
	color: #fff;
}

@media (max-width: 900px) {
	.site-nav {
		background: var(--ink-3);
		border-bottom: 1px solid var(--glass-line);
		box-shadow: 0 30px 60px rgb(0 0 0 / 0.5);
	}

	.site-nav__menu a {
		color: var(--color-text);
		font-size: 13px;
	}

	.site-nav__close {
		color: var(--color-text);
	}
}

/* ==========================================================================
   Scenes: every home section is at least one screen tall
   ========================================================================== */

.home .site-main > section {
	scroll-snap-align: start;
}

.home .site-main > .section,
.hero,
.get-in-touch {
	min-height: var(--scene);
}

.home .site-main > .section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: calc(var(--header-height) + 48px) 96px;
}

.home .site-main > .section > .container {
	max-width: none;
	padding-inline: var(--edge);
}

/* ==========================================================================
   Hero: the photo fills the screen, title and form at the bottom left
   ========================================================================== */

.hero,
.admin-bar .hero {
	justify-content: flex-end;
	gap: 36px;
	min-height: var(--scene);
	padding: calc(var(--header-height) + 40px) 0 clamp(48px, 8vh, 96px);
	background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--color-accent) 18%, var(--ink-2)), var(--ink) 70%);
}

.hero::after {
	background:
		linear-gradient(90deg, rgb(8 9 8 / 0.6) 0%, rgb(8 9 8 / 0.15) 60%, rgb(8 9 8 / 0) 100%),
		linear-gradient(180deg, rgb(8 9 8 / 0) 35%, rgb(8 9 8 / 0.72) 100%);
}

.hero .container {
	max-width: none;
	padding-inline: var(--edge);
}

.hero__content {
	max-width: min(980px, 78vw);
	text-align: left;
}

.hero__title {
	margin-bottom: 22px;
	font-size: clamp(56px, 7.4vw, 136px);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.015em;
	white-space: normal;
	text-wrap: balance;
}

.hero__text {
	max-width: 560px;
	margin-inline: 0;
	color: rgb(255 255 255 / 0.86);
	font-size: 16px;
	line-height: 1.75;
}

.hero .availability-form {
	grid-template-columns: 1fr 1fr 0.7fr auto;
	gap: 0;
	max-width: 920px;
	margin-inline: 0;
	padding: 10px;
}

.hero .availability-form__field {
	padding: 6px 14px 4px;
	border-right: 1px solid var(--glass-line);
}

.hero .availability-form__field label {
	color: rgb(255 255 255 / 0.7);
	font-size: 10px;
	letter-spacing: 0.24em;
}

.hero .availability-form input,
.hero .availability-form .choices__inner {
	height: 40px;
	min-height: 40px;
	padding-left: 0;
	border: 0;
	background-color: transparent;
	color: #fff;
	font-size: 16px;
}

.hero .availability-form__submit {
	align-self: stretch;
	min-height: 64px;
	margin-left: 10px;
}

/* "Scroll": a quiet vertical cue at the bottom right */
.hero__scroll {
	left: auto;
	right: var(--edge);
	bottom: clamp(48px, 8vh, 96px);
	gap: 14px;
	transform: none;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.32em;
}

.hero__scroll span {
	writing-mode: vertical-rl;
}

.hero__scroll::after {
	content: "";
	width: 1px;
	height: 56px;
	background: linear-gradient(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0));
}

/* ==========================================================================
   Availability form (everywhere): dark fields
   ========================================================================== */

.availability-form {
	background: var(--ink-3);
	box-shadow: none;
}

.availability-form__field label {
	color: var(--color-text-muted);
	font-weight: 500;
	letter-spacing: 0.18em;
}

.availability-form input,
.availability-form select,
.availability-form .choices__inner {
	border: 1px solid rgb(255 255 255 / 0.16);
	background-color: #1e2220;
	color: var(--color-text);
}

.availability-form input[readonly] {
	background-color: #1e2220;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23b3ab9f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.hero .availability-form input[readonly] {
	background-color: transparent;
	background-position: right 0 center;
}

.availability-form input::placeholder {
	color: rgb(236 231 222 / 0.6);
}

.availability-form .choices__list--single .choices__item {
	color: inherit;
}

.availability-form .choices__inner {
	color: var(--color-text);
}

.hero .availability-form .choices__inner {
	color: #fff;
}

.availability-form .choices[data-type*="select-one"]::after {
	border-color: var(--color-text-muted) transparent transparent;
}

.availability-form .choices__list--dropdown,
.availability-form .choices__list[aria-expanded] {
	border-color: var(--glass-line);
	background: var(--ink-3);
	color: var(--color-text);
}

.availability-form .choices__list--dropdown .choices__item--selectable.is-highlighted,
.availability-form .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
	background: #2a302d;
}

/* Date picker (flatpickr): dark */
.flatpickr-calendar {
	background: var(--ink-3);
	border-color: var(--glass-line);
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month,
.flatpickr-day {
	color: var(--color-text);
	fill: currentColor;
}

.flatpickr-current-month {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 500;
}

.flatpickr-current-month span.cur-month,
.flatpickr-current-month input.cur-year {
	font-weight: 500;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover,
.flatpickr-day:hover,
.flatpickr-day:focus,
.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
	background: #262b28;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
	color: #5c625e;
}

.flatpickr-day.inRange,
.flatpickr-day.inRange:hover {
	background: color-mix(in srgb, var(--color-accent) 22%, var(--ink-3));
	color: var(--color-text);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.flatpickr-disabled.startRange,
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange {
	color: var(--on-accent);
}

.flatpickr-day.selected .flatpickr-day__price,
.flatpickr-day.startRange .flatpickr-day__price,
.flatpickr-day.endRange .flatpickr-day__price {
	color: color-mix(in srgb, var(--on-accent) 75%, transparent);
}

/* ==========================================================================
   About: the photo fills the left of the scene, the story on glass at the right, overlapping it
   ========================================================================== */

.about:not(.about--no-photo) {
	position: relative;
	overflow: hidden;
	background: var(--ink-2);
}

.about:not(.about--no-photo) .about__inner {
	display: flex;
	justify-content: flex-end;
}

.about:not(.about--no-photo) .about__photo {
	position: absolute;
	inset: 0 auto 0 0;
	width: 60%;
}

.about:not(.about--no-photo) .about__photo img {
	height: 100%;
	max-height: none;
	aspect-ratio: auto;
}

.about:not(.about--no-photo) .about__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgb(19 22 20 / 0.7), rgb(19 22 20 / 0) 35%);
}

.about__content {
	position: relative;
	z-index: 1;
	max-width: none;
}

.about:not(.about--no-photo) .about__content {
	width: min(540px, 100%);
	padding: clamp(32px, 3.6vw, 56px);
}

.about .section-title {
	font-size: clamp(36px, 3.4vw, 60px);
}

.about__text {
	color: var(--color-text-muted);
}

.about:not(.about--no-photo) .about__text {
	color: rgb(236 231 222 / 0.82);
}

.about__signature {
	margin: 28px 0 32px;
	color: var(--accent-text);
	font-family: var(--font-heading);
	font-size: 28px;
	font-style: italic;
}

/* No photo: large light type on deep colour */
.about--no-photo {
	background: var(--ink-2);
}

.about--no-photo .about__inner {
	max-width: 1100px;
	margin-inline: 0;
}

.about--no-photo .section-title {
	font-size: clamp(48px, 6vw, 104px);
}

.about--no-photo .about__text {
	max-width: 720px;
	font-size: 18px;
}

/* ==========================================================================
   Gallery: a full-screen dark mosaic without gaps
   ========================================================================== */

.home .site-main > .section.small-gallery {
	justify-content: flex-start;
	padding: 0;
	background: #070807;
}

.home .site-main > .small-gallery > .container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	padding: 0;
}

.small-gallery .section-title {
	margin: 0;
	padding: calc(var(--header-height) + 24px) var(--edge) 28px;
}

.small-gallery__more {
	margin: 0;
	padding: 0 var(--edge) 36px;
}

.small-gallery__grid,
.small-gallery__row {
	grid-column: 1 / -1;
}

.small-gallery__grid {
	order: 3;
	grid-template-rows: repeat(2, calc((var(--scene) - var(--header-height) - 120px) / 2));
	gap: 0;
}

.small-gallery__grid--2,
.small-gallery__grid--1 {
	grid-template-rows: calc(var(--scene) - var(--header-height) - 120px);
}

.small-gallery__row {
	order: 4;
	gap: 0;
	height: 36vh;
	margin: 0;
}

.small-gallery__item {
	border-radius: 0;
	background: #070807;
}

.small-gallery__item img {
	filter: brightness(0.82);
	transition: transform 0.8s ease, filter 0.4s ease;
}

.small-gallery__item:hover img {
	filter: brightness(1);
	transform: scale(1.03);
}

.small-gallery__caption {
	left: 22px;
	bottom: 18px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.link-arrow {
	color: var(--color-text);
	font-weight: 500;
	letter-spacing: 0.24em;
}

/* ==========================================================================
   Amenities: deep colour, the title on the left, a hairline grid on the right
   ========================================================================== */

.amenities {
	background: var(--ink-2);
}

.amenities > .container {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: clamp(40px, 6vw, 120px);
}

.amenities .section-header--center {
	margin: 0;
	text-align: left;
}

.amenities .section-header--center .section-title {
	max-width: 9em;
	margin-inline: 0;
	font-size: clamp(44px, 5.4vw, 96px);
}

.amenities__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--color-border);
}

.amenities__grid > .amenity {
	flex: none;
}

.amenity {
	gap: 18px;
	padding: 30px 24px 30px 0;
	border-bottom: 1px solid var(--color-border);
	background: none;
	box-shadow: none;
}

.amenity__icon {
	width: 30px;
	height: 30px;
	stroke-width: 1.2;
}

.amenity__label {
	font-size: 15px;
	font-weight: 400;
}

/* ==========================================================================
   Prices: the photo fills the screen; calendar on glass at the left, the heading at the bottom right
   ========================================================================== */

.home .site-main > .section.prices {
	--calendar-width: min(760px, 54vw);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 0;
	overflow: hidden;
	background: var(--ink-2);
}

.prices__band,
.prices > .container {
	grid-area: 1 / 1;
}

.prices__band {
	align-items: flex-end;
	justify-content: flex-end;
	padding: calc(var(--header-height) + 48px) var(--edge) clamp(56px, 10vh, 112px) calc(var(--calendar-width) + var(--edge) + 64px);
	background: transparent;
	text-align: right;
}

.prices__band--no-photo::after {
	display: none;
}

.prices__band::after {
	background: linear-gradient(90deg, rgb(8 9 8 / 0.5), rgb(8 9 8 / 0.1) 55%, rgb(8 9 8 / 0.55));
}

.prices__heading {
	padding: 0;
}

.prices__heading .section-title {
	margin-bottom: 28px;
	font-size: clamp(44px, 4.8vw, 88px);
	text-wrap: balance;
}

.home .site-main > .prices > .container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	padding-block: calc(var(--header-height) + 32px) 64px;
}

.prices__card {
	width: var(--calendar-width);
	margin: 0;
	padding: 36px clamp(24px, 2.6vw, 44px) 28px;
}

.calendar__button {
	color: var(--color-text);
}

.calendar-month__title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 500;
}

.calendar-month__weekday {
	font-size: 10px;
	letter-spacing: 0.12em;
}

.calendar-day {
	color: var(--color-text);
}

.calendar-day__price {
	color: rgb(236 231 222 / 0.72);
}

.calendar-day--today,
.calendar-day--today .calendar-day__price {
	color: var(--on-accent);
}

.calendar-day--past {
	color: #5c625e;
}

.calendar__legend,
.calendar__note {
	color: rgb(236 231 222 / 0.75);
}

.calendar__swatch--available {
	box-shadow: none;
}

/* ==========================================================================
   Reviews: deep colour, title and button on the left, the words large on the right
   ========================================================================== */

.reviews {
	background: var(--ink);
}

.reviews > .container {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	grid-template-rows: auto 1fr;
	gap: 0 clamp(40px, 7vw, 140px);
}

.reviews .section-header--center {
	margin: 0;
	text-align: left;
}

.reviews .section-header--center .section-title {
	margin-inline: 0;
	font-size: clamp(44px, 5.4vw, 96px);
}

.reviews__list {
	grid-column: 2;
	grid-row: 1 / 3;
	flex-direction: column;
	gap: 0;
	max-width: none;
	margin: 0;
}

.review {
	flex: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 24px;
	padding: 36px 0;
	border-top: 1px solid var(--color-border);
	background: none;
	box-shadow: none;
}

.review:last-child {
	border-bottom: 1px solid var(--color-border);
}

.review__text {
	grid-column: 1 / -1;
	grid-row: 1;
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: clamp(20px, 1.7vw, 28px);
	font-style: italic;
	line-height: 1.35;
}

.review__author {
	flex-direction: row;
	align-items: baseline;
	gap: 12px;
}

.review__name {
	color: var(--color-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.review__country {
	font-size: 12px;
}

.review__stars {
	margin: 0;
	color: var(--accent-text);
	font-size: 12px;
}

.review__stars-off {
	color: #3a3f3c;
}

.reviews__action {
	grid-column: 1;
	grid-row: 2;
	align-self: start;
	margin: 36px 0 0;
	text-align: left;
}

/* ==========================================================================
   House rules: the title large at the top, the rules in two columns
   ========================================================================== */

.house-rules:not(.house-rules--small) {
	background: var(--ink-2);
}

.house-rules:not(.house-rules--small) .section-header--center {
	text-align: left;
}

.house-rules:not(.house-rules--small) .section-header--center .section-title {
	max-width: none;
	margin-inline: 0;
	font-size: clamp(44px, 5.4vw, 96px);
}

.house-rules__list {
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.house-rules:not(.house-rules--small) .house-rules__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(40px, 6vw, 120px);
}

.house-rule {
	grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
	padding: 26px 0;
	border-top: 1px solid var(--color-border);
	border-bottom: 0;
}

.house-rule__name {
	font-weight: 500;
}

.house-rule__icon {
	stroke-width: 1.3;
}

/* ==========================================================================
   Get in touch: the photo fills the screen, a wide glass panel at the bottom
   ========================================================================== */

.get-in-touch {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: calc(var(--header-height) + 48px) var(--edge) clamp(48px, 8vh, 96px);
	background: var(--ink);
	overflow: hidden;
}

.get-in-touch__photo {
	position: absolute;
	inset: 0;
}

.get-in-touch__photo img {
	height: 100%;
	min-height: 0;
	max-height: none;
}

.get-in-touch__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(8 9 8 / 0.1) 40%, rgb(8 9 8 / 0.6));
}

.get-in-touch__content,
.get-in-touch--no-photo .get-in-touch__content {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 8px clamp(32px, 5vw, 96px);
	align-items: start;
	width: 100%;
	max-width: 1280px;
	margin: 0;
	padding: clamp(32px, 3.6vw, 56px);
}

.get-in-touch--no-photo .get-in-touch__content {
	align-self: center;
	max-width: none;
	padding: 0;
}

.get-in-touch .section-title {
	font-size: clamp(40px, 4.2vw, 76px);
}

.get-in-touch__text {
	grid-column: 1;
	color: rgb(236 231 222 / 0.8);
}

.contact-items {
	grid-column: 2;
	grid-row: 1 / 3;
	align-self: center;
	margin: 0;
	text-align: left;
}

.contact-item {
	align-items: flex-start;
	gap: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--glass-line);
}

.contact-item__icon {
	color: var(--accent-text);
}

.contact-item__title {
	font-size: 24px;
	font-weight: 500;
}

.contact-item__value {
	color: rgb(236 231 222 / 0.8);
}

a.contact-item__value {
	color: var(--accent-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding-block: 72px 48px;
	border-top: 1px solid var(--glass-line);
	color: #a39c91;
	scroll-snap-align: end;
}

.site-footer__menu a {
	color: var(--color-text);
	font-size: 11px;
	letter-spacing: 0.24em;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox::backdrop {
	background: rgb(6 7 6 / 0.94);
}

.lightbox__caption {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lightbox__nav {
	background: rgb(255 255 255 / 0.08);
	border: 1px solid var(--glass-line);
}

/* ==========================================================================
   Theme pages: a tall photo scene, the content on a solid dark panel rising over it
   ========================================================================== */

.theme-page {
	--theme-page-card-overlap: 30vh;
	background: var(--ink);
}

.theme-page__band {
	height: calc(var(--theme-page-card-overlap) + 42vh);
	background: var(--ink-2);
}

.theme-page__band::after {
	background: linear-gradient(180deg, rgb(8 9 8 / 0.45), rgb(8 9 8 / 0.1) 40%, rgb(13 15 14 / 0.9));
}

.theme-page__card {
	max-width: 1180px;
	background: var(--ink-3);
	border: 1px solid var(--glass-line);
	box-shadow: var(--shadow-card);
}

.theme-page__title {
	font-size: clamp(44px, 5vw, 88px);
	text-align: left;
}

.gallery-grid {
	gap: 0;
}

.gallery-grid__item {
	background: #070807;
}

.about-page__photo img {
	aspect-ratio: 4 / 5;
}

.owner-card {
	border: 1px solid var(--glass-line);
}

.owner-card__avatar {
	color: var(--on-accent);
}

.about-page__map-load {
	border-color: rgb(255 255 255 / 0.18);
}

.availability-result__notice {
	background: #1e2220;
}

.availability-result__price strong {
	font-size: 40px;
	font-weight: 500;
}

.photo-slider__button {
	background: rgb(12 14 13 / 0.7);
	color: #fff;
}

.booking-request__field input {
	border-color: rgb(255 255 255 / 0.16);
	background: #1e2220;
	color: var(--color-text);
}

.booking-request__error {
	color: #f0a39d;
}

.booking-request__notice {
	background: #3a1f1d;
	color: #f6c9c4;
}

.booking-request__notice--sent {
	background: #1b3324;
	color: #bfe6cb;
}

.card {
	background: var(--ink-3);
}

/* ==========================================================================
   Tablets
   ========================================================================== */

@media (max-width: 1100px) {
	.amenities > .container,
	.reviews > .container {
		grid-template-columns: minmax(0, 1fr);
	}

	.amenities .section-header--center,
	.reviews .section-header--center {
		margin-bottom: 40px;
	}

	.reviews__list,
	.reviews__action {
		grid-column: 1;
		grid-row: auto;
	}

	/* Prices: the photo scene, then the calendar on deep colour */
	.home .site-main > .section.prices {
		display: block;
	}

	.prices__band {
		min-height: 70svh;
		padding: calc(var(--header-height) + 48px) var(--edge) 136px;
	}

	.home .site-main > .prices > .container {
		padding-block: 0 72px;
	}

	.prices__card {
		width: 100%;
		margin-top: -64px;
		background: var(--glass-strong);
	}

	.get-in-touch__content,
	.get-in-touch--no-photo .get-in-touch__content {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-items {
		grid-column: 1;
		grid-row: auto;
		margin-top: 24px;
	}
}

/* ==========================================================================
   Phones: scenes still fill the screen, panels sit at the bottom
   ========================================================================== */

@media (max-width: 768px) {
	.home .site-main > .section {
		padding-block: calc(var(--header-height) + 32px) 56px;
	}

	.hero,
	.admin-bar .hero {
		gap: 24px;
		padding-bottom: 28px;
	}

	.hero__content {
		max-width: none;
	}

	.hero__title {
		font-size: clamp(44px, 13vw, 60px);
	}

	.hero__text {
		font-size: 15px;
	}

	.hero .availability-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 8px;
	}

	.hero .availability-form__field {
		border-right: 0;
		border-bottom: 1px solid var(--glass-line);
	}

	.hero .availability-form__field:nth-child(1) {
		border-right: 1px solid var(--glass-line);
	}

	.hero .availability-form__field:nth-child(3) {
		grid-column: 1 / -1;
	}

	.hero .availability-form__submit {
		grid-column: 1 / -1;
		min-height: 52px;
		margin: 8px 0 0;
	}

	.hero__scroll {
		display: none;
	}

	.about:not(.about--no-photo) {
		justify-content: flex-end;
		padding-bottom: 20px;
	}

	/* The photo across the top of the scene, the panel rising over its lower part */
	.about:not(.about--no-photo) .about__photo {
		inset: 0 0 auto;
		width: 100%;
		height: 58svh;
	}

	.about:not(.about--no-photo) .about__photo img {
		aspect-ratio: auto;
		max-height: none;
	}

	.about:not(.about--no-photo) .about__photo::after {
		background: linear-gradient(180deg, rgb(19 22 20 / 0) 50%, rgb(19 22 20 / 0.85));
	}

	.about:not(.about--no-photo) .about__content {
		width: 100%;
		margin-top: 36svh;
		padding: 28px 22px;
	}

	.small-gallery__grid,
	.small-gallery__grid--2,
	.small-gallery__grid--3 {
		grid-template-rows: none;
		grid-auto-rows: 50vw;
		gap: 0;
	}

	.small-gallery__grid .small-gallery__item:nth-child(1) {
		grid-column: 1 / -1;
		grid-row: span 2;
	}

	/* 1 full width, then pairs; a photo left alone takes the whole width */
	.small-gallery__grid .small-gallery__item:nth-child(3) {
		grid-column: auto;
	}

	.small-gallery__grid--4 .small-gallery__item:nth-child(4),
	.small-gallery__grid--2 .small-gallery__item:nth-child(2) {
		grid-column: 1 / -1;
	}

	.small-gallery__row {
		height: auto;
	}

	.small-gallery__row > .small-gallery__item {
		flex: 1 1 50%;
		height: 50vw;
	}

	.small-gallery .section-title {
		padding-bottom: 20px;
	}

	.small-gallery__more {
		padding-bottom: 24px;
	}

	.amenities__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Icon beside the label: a compact list */
	.amenity {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		padding: 16px 10px 16px 0;
	}

	.amenity__icon {
		width: 24px;
		height: 24px;
	}

	.amenity__label {
		font-size: 14px;
		line-height: 1.35;
	}

	.review__text {
		font-size: 20px;
	}

	.review {
		padding: 28px 0;
	}

	.house-rules:not(.house-rules--small) .house-rules__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.house-rule {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px 0;
	}

	.prices__band {
		min-height: 64svh;
		text-align: left;
		justify-content: flex-start;
	}

	.prices__card {
		padding: 28px 16px 22px;
	}

	.get-in-touch {
		padding: calc(var(--header-height) + 32px) var(--gutter) 20px;
	}

	.get-in-touch:not(.get-in-touch--no-photo) .get-in-touch__content {
		margin-top: 36svh;
		padding: 28px 22px;
	}

	.contact-items {
		gap: 0;
	}

	/* Icon on the left, title and value beside it */
	.contact-item {
		display: grid;
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 0;
		padding: 14px 0;
	}

	.contact-item__icon {
		grid-row: 1 / 3;
		margin-top: 4px;
	}

	.contact-item__title {
		font-size: 20px;
		line-height: 1.3;
	}

	.theme-page {
		--theme-page-card-overlap: 18vh;
	}

	.theme-page__band {
		height: calc(var(--theme-page-card-overlap) + 34vh);
	}

	.theme-page__card {
		border-inline: 0;
	}

	.theme-page__title {
		font-size: 44px;
	}
}

/* Availability page: the search form lines up with the title */
.availability-form-section--plain > .container {
	padding-inline: 0;
}
