/*
 * Design "Sidebar": a different layout, the header as a column on the left (name, menu, buttons
 * stacked) on wide screens; the hero fills the screen beside it; reviews one below the other;
 * Get in Touch with the photo above the text. Below 1100px it is the usual top header.
 * Loaded after main.css for villas with "villa.design": "sidebar". Same sections, order and markup
 * as Classic; only the look and the layout change. Colours: villa_designs().
 */

/* ==========================================================================
   Fonts (self-hosted, latin + latin-ext)
   ========================================================================== */

@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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-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; }
@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: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mulish-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: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mulish-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: "Mulish"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/mulish-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: "Mulish"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/mulish-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
   ========================================================================== */

:root {
	--color-text: #1d2733;
	--color-text-muted: #5e6875;
	--color-bg-soft: #f3f5f8;
	--color-bg-sand: #f1f4f7;
	--color-footer: #172b40;
	--color-border: rgb(29 39 51 / 0.1);
	--color-day-available: #e2ebf4;
	--font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 0;
	--sidebar: 280px;
}

h1,
h2,
h3,
h4 {
	font-weight: 500;
}

.section-title {
	font-size: clamp(30px, 2.6vw, 50px); /* Cormorant runs small */
}

.button {
	font-weight: 600;
	letter-spacing: 0.14em;
}

/* ==========================================================================
   Header: a column on the left on wide screens
   ========================================================================== */

.site-branding__name {
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.site-nav__menu a {
	font-weight: 600;
}

@media (min-width: 1101px) {
	:root {
		--header-height: 0px;
	}

	body {
		padding-left: var(--sidebar);
	}

	html {
		scroll-padding-top: 16px;
	}

	.site-header {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		width: var(--sidebar);
		border-right: 1px solid var(--color-border);
		border-bottom: 0;
		overflow-y: auto;
	}

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

	.site-header__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
		height: 100%;
		max-width: none;
		padding: 56px 28px 40px;
		text-align: center;
	}

	.site-branding {
		align-items: center;
		margin: 0;
	}

	.site-branding__location {
		margin-top: 6px;
		line-height: 1.6;
	}

	.site-nav__menu {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.site-header__actions {
		flex-direction: column;
		width: 100%;
	}

	.site-header__actions .button {
		width: 100%;
	}

	.hero,
	.admin-bar .hero {
		min-height: 100svh;
	}
}

/* ==========================================================================
   Hero: centred, the form as a light bar
   ========================================================================== */

.hero::after {
	background: rgb(16 28 42 / 0.3);
}

.hero__title {
	font-size: clamp(48px, 5.4vw, 86px);
	font-weight: 500;
}

.availability-form {
	background: rgb(255 255 255 / 0.94);
	backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
	.hero__title {
		font-size: 38px;
	}
}

/* ==========================================================================
   About: a taller photo
   ========================================================================== */

.about__photo img {
	aspect-ratio: 2 / 3;
}

.about__signature {
	font-family: var(--font-heading);
	font-size: 30px;
	font-style: italic;
	color: var(--color-accent);
}

/* ==========================================================================
   Gallery: an even grid of squares
   ========================================================================== */

@media (min-width: 769px) {
	.small-gallery__grid,
	.small-gallery__grid--2,
	.small-gallery__grid--3 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: none;
		grid-auto-rows: auto;
	}

	.small-gallery__grid .small-gallery__item:nth-child(n) {
		grid-column: auto;
		grid-row: auto;
		aspect-ratio: 1;
	}

	.small-gallery__row {
		height: auto;
	}

	.small-gallery__row > .small-gallery__item {
		aspect-ratio: 1;
	}
}

/* ==========================================================================
   Video band, amenities
   ========================================================================== */

.video-band__title {
	font-weight: 500;
	letter-spacing: 0.06em;
}

.amenities__grid {
	--amenity-gap: 12px;
}

.amenity {
	align-items: center;
	text-align: center;
	border: 1px solid var(--color-border);
	background: none;
	box-shadow: none;
}

.amenity__icon {
	color: var(--color-accent);
}

.amenity__label {
	font-weight: 600;
}

/* ==========================================================================
   Reviews: one below the other
   ========================================================================== */

.reviews__list {
	flex-direction: column;
	max-width: 760px;
}

.review {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	grid-template-areas: "author text" "stars text";
	align-content: start;
	gap: 4px 32px;
	padding: 28px 0;
	border-bottom: 1px solid var(--color-border);
	background: none;
	box-shadow: none;
}

.review__author {
	grid-area: author;
}

.review__text {
	grid-area: text;
	margin: 0;
	font-family: var(--font-heading);
	font-size: 19px;
	font-style: italic;
}

.review__stars {
	grid-area: stars;
	color: var(--color-accent);
}

.review__name {
	font-family: var(--font-heading);
	font-size: 21px;
	font-weight: 600;
}

@media (max-width: 768px) {
	.review {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "author" "text" "stars";
	}
}

/* ==========================================================================
   Get in touch: the photo above, the text below, centred
   ========================================================================== */

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

.get-in-touch__photo {
	order: -1;
}

.get-in-touch__photo img {
	min-height: 0;
	max-height: none;
	aspect-ratio: 21 / 8;
}

@media (max-width: 768px) {
	.get-in-touch__photo img {
		aspect-ratio: 4 / 3;
	}
}

.get-in-touch__content {
	max-width: 900px;
	margin-inline: auto;
	padding-inline: var(--gutter);
	text-align: center;
}

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

.contact-item__title {
	font-family: var(--font-heading);
	font-size: 21px;
	font-weight: 600;
}

.site-footer {
	color: #b1bfcd;
}

.platform-link {
	border-color: rgb(255 255 255 / 0.25);
}

/* ==========================================================================
   Theme pages
   ========================================================================== */

.theme-page__band {
	background: var(--color-footer);
}
