/*
 * Design "Split": a different layout. The hero is half text, half photo; About, the video band and
 * Get in Touch alternate sides; the gallery is an even row of photos; amenities are a list.
 * Loaded after main.css for villas with "villa.design": "split". Same sections, order and markup as
 * Classic; only the look and the layout change (phones keep the stacked layout). Colours: villa_designs().
 */

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

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-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: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-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: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-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: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-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: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-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: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-ext-400-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: "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-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-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
   ========================================================================== */

:root {
	--color-text: #1f2a35;
	--color-text-muted: #5d6873;
	--color-bg-soft: #f3f1ec;
	--color-bg-sand: #f1eee8;
	--color-footer: #1d2a36;
	--color-border: rgb(31 42 53 / 0.12);
	--color-day-available: #e3ebf3;
	--font-heading: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 0;
	--shadow-card: 0 14px 40px rgb(29 42 54 / 0.1);
}

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

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-branding__name {
	letter-spacing: 0.08em;
	text-transform: none;
	font-size: 22px;
}

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

/* ==========================================================================
   Hero: text and form on the left half (centred in it), the photo on the right half
   ========================================================================== */

@media (min-width: 901px) {
	.hero {
		padding: 72px 50% 120px 0;
		background: var(--color-bg-sand);
		color: var(--color-text);
	}

	.hero--no-photo {
		padding-right: 0;
	}

	.hero__photo {
		left: auto;
		width: 50%;
	}

	.hero::after {
		display: none;
	}

	.hero__title {
		font-size: clamp(36px, 3.4vw, 60px);
		white-space: normal;
	}

	.hero__text {
		max-width: 520px;
		color: var(--color-text-muted);
		font-size: 16px;
	}

	.availability-form {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		max-width: 560px;
		border: 1px solid var(--color-border);
		box-shadow: none;
	}

	.availability-form__submit {
		grid-column: 1 / -1;
	}

	.hero__scroll {
		left: 25%;
		color: var(--color-text);
	}

	.hero--no-photo .hero__scroll {
		left: 50%;
	}
}

/* ==========================================================================
   About: text on the left, the photo on the right
   ========================================================================== */

@media (min-width: 769px) {
	.about__inner {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.about__photo {
		order: 2;
	}
}

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

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

/* ==========================================================================
   Gallery: one even row of photos, then the next
   ========================================================================== */

@media (min-width: 769px) {
	.small-gallery__grid {
		display: flex;
		gap: 14px;
		height: clamp(200px, 19vw, 320px);
	}

	.small-gallery__grid > .small-gallery__item {
		flex: 1 1 0;
		min-width: 0;
	}

	.small-gallery__row {
		height: clamp(200px, 19vw, 320px);
	}
}

/* ==========================================================================
   Video band: a coloured panel on the left, the video on the right
   ========================================================================== */

@media (min-width: 769px) {
	.video-band {
		min-height: clamp(380px, 34vw, 560px);
		background: var(--color-button);
	}

	.video-band__video {
		left: auto;
		width: 55%;
	}

	.video-band::after {
		display: none;
	}

	.video-band__content {
		width: 45%;
		max-width: none;
		margin: 0;
		padding-inline: clamp(24px, 5vw, 80px);
	}

	.video-band__title {
		font-size: clamp(30px, 3vw, 52px);
		text-shadow: none;
	}
}

.video-band__title {
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: none;
}

/* ==========================================================================
   Amenities: a list in three columns, icon beside the name
   ========================================================================== */

@media (min-width: 769px) {
	.amenities__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 48px;
		max-width: 1040px;
		margin-inline: auto;
	}
}

.amenity {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--color-border);
	background: none;
	box-shadow: none;
}

.amenity__icon {
	width: 24px;
	height: 24px;
	color: var(--color-accent);
}

.amenity__label {
	font-weight: 600;
}

/* ==========================================================================
   Prices: a plain band instead of a photo
   ========================================================================== */

.prices__photo,
.prices__band::after {
	display: none;
}

.prices__band {
	background: var(--color-bg-sand);
}

.prices .section-label--light {
	color: var(--color-accent);
}

.prices .section-title--light {
	color: var(--color-text);
}

/* ==========================================================================
   Reviews: no cards, a line on the left
   ========================================================================== */

.review {
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--color-accent);
	background: none;
	box-shadow: none;
}

.review__name {
	font-family: var(--font-heading);
	font-size: 19px;
}

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

/* ==========================================================================
   House rules: two columns
   ========================================================================== */

@media (min-width: 901px) {
	.house-rules:not(.house-rules--small) .house-rules__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 48px;
		max-width: 1040px;
	}

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

/* ==========================================================================
   Get in touch: the photo on the left, the text on the right
   ========================================================================== */

@media (min-width: 769px) {
	.get-in-touch__photo {
		order: -1;
	}

	.get-in-touch__content {
		margin: 0 auto 0 0;
		padding: var(--section-space) var(--gutter) var(--section-space) clamp(24px, 5vw, 80px);
	}
}

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

/* ==========================================================================
   Footer: menu on the left, platforms on the right
   ========================================================================== */

@media (min-width: 769px) {
	.site-footer {
		text-align: left;
	}

	.site-footer__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 24px;
	}

	.site-footer__copyright,
	.site-footer__legal {
		grid-column: 1 / -1;
		justify-content: flex-start;
		margin: 0;
	}
}

.site-footer {
	color: #b4bec9;
}

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

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