/**
 * Location pages (Porto Moniz, Calheta) — Location.dc.html / LocationMobile.dc.html
 * and Calheta.dc.html / CalhetaMobile.dc.html: one template, two scrims.
 * Shared section vocabulary: page-sections.css.
 */

/* ------------------------------------------------------------------ hero */

/* Radial behind the copy over the shared vertical scrim; measured, see design-language.md. */
.wp-block-cover.mvr-hero--porto-moniz {
	--mvr-scrim: radial-gradient(ellipse 26% 33% at 24% 69%, rgba(20, 26, 35, 0.54) 0%, rgba(20, 26, 35, 0.54) 50%, rgba(20, 26, 35, 0) 100%), linear-gradient(180deg, rgba(20, 26, 35, 0.55) 0%, rgba(20, 26, 35, 0.08) 24%, rgba(20, 26, 35, 0.15) 50%, rgba(20, 26, 35, 0.72) 100%);
}

.wp-block-cover.mvr-hero--calheta {
	--mvr-scrim: linear-gradient(180deg, rgba(20, 26, 35, 0.55) 0%, rgba(20, 26, 35, 0.08) 24%, rgba(20, 26, 35, 0.35) 50%, rgba(20, 26, 35, 0.8) 100%);
}

/* -------------------------------------------------------------- the area */

.wp-block-column.mvr-area__text {
	gap: 28px;
}

.mvr-area__image img {
	height: 640px;
}

.wp-block-group.mvr-facts-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding: 24px 0;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-group.mvr-facts-row > *,
.wp-block-group.mvr-fact > * {
	margin: 0;
}

.wp-block-group.mvr-fact {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	column-gap: 14px;
	row-gap: 2px;
	align-content: center;
	align-items: center;
}

.wp-block-group.mvr-fact::before {
	content: "";
	grid-row: 1 / span 2;
	width: 26px;
	height: 26px;
	background: var(--wp--preset--color--brand);
	-webkit-mask: var(--mvr-icon) center / contain no-repeat;
	mask: var(--mvr-icon) center / contain no-repeat;
}

.mvr-fact--where {
	--mvr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11A6.5 6.5 0 0 1 18.5 10c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E");
}

.mvr-fact--airport {
	--mvr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8-8M16 7l2 2M14 9l1.5 1.5'/%3E%3C/svg%3E");
}

.mvr-fact--villas {
	--mvr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V7'/%3E%3Cpath d='M3 14h18v4'/%3E%3Cpath d='M21 14v-2.5A2.5 2.5 0 0 0 18.5 9H11v5'/%3E%3Ccircle cx='7' cy='11' r='1.8'/%3E%3C/svg%3E");
}

.mvr-fact__label {
	grid-column: 2;
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: normal;
	text-transform: uppercase;
}

.mvr-fact__value {
	grid-column: 2;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--body);
	line-height: normal;
}

/* ------------------------------------------------------------- nearby */

.wp-block-column.mvr-nearby__intro {
	gap: 24px;
}

.wp-block-image.mvr-nearby__image {
	margin-top: 12px !important;
}

.mvr-nearby__image img {
	height: 420px;
}

.wp-block-column.mvr-nearby__col {
	padding-top: 8px;
}

.wp-block-group.mvr-nearby {
	counter-reset: mvr-nearby;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-group.mvr-nearby > * {
	margin: 0;
}

.wp-block-group.mvr-nearby__item {
	counter-increment: mvr-nearby;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 16px;
	row-gap: 8px;
	padding: 24px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-group.mvr-nearby__item::before {
	content: counter(mvr-nearby, decimal-leading-zero);
	grid-row: 1 / span 2;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: 28px;
	line-height: 1;
}

.wp-block-group.mvr-nearby__item > * {
	grid-column: 2;
	margin: 0;
}

.mvr-nearby__item h3 {
	font-size: 28px;
	line-height: 1;
}

/* --------------------------------------------------------- getting here */

.wp-block-column.mvr-getting__text {
	gap: 18px;
}

.mvr-getting__address {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.7;
}

/* ------------------------------------------------ the other location */

.wp-block-group.mvr-other {
	padding: 0 var(--mvr-gutter) var(--wp--preset--spacing--3-xl);
	background-color: var(--wp--preset--color--mist);
}

.wp-block-group.mvr-other--calheta {
	padding-top: var(--wp--preset--spacing--3-xl);
}

.wp-block-group.mvr-other > * {
	margin: 0;
}

.wp-block-cover.mvr-location-tile--other {
	--mvr-tile-h: 440px;
	--mvr-tile-pad: 0 48px 44px;
	--mvr-scrim: linear-gradient(180deg, rgba(20, 26, 35, 0.05) 30%, rgba(20, 26, 35, 0.75) 100%);
}

.mvr-location-tile--other .mvr-tile__title {
	font-size: var(--wp--preset--font-size--display-l);
	line-height: 0.95;
}

/* ---------------------------------------------------------- book direct */

.wp-block-cover.mvr-cta-band--calheta {
	--mvr-dim: 0.6;
}

/* 0.5 left the lead at 3.5:1 (worst pixel). */
.wp-block-cover.mvr-cta-band--porto-moniz {
	--mvr-dim: 0.61;
}

/* ================================================================ phone */

@media (max-width: 781px) {
	.wp-block-cover.mvr-hero--location {
		--mvr-hero-h: 580px;
		--mvr-hero-bottom: 48px;
	}

	.wp-block-cover.mvr-hero--porto-moniz {
		--mvr-scrim: radial-gradient(ellipse 48% 29% at 49% 76%, rgba(20, 26, 35, 0.24) 0%, rgba(20, 26, 35, 0.24) 50%, rgba(20, 26, 35, 0) 100%), linear-gradient(180deg, rgba(20, 26, 35, 0.6) 0%, rgba(20, 26, 35, 0.12) 20%, rgba(20, 26, 35, 0.35) 48%, rgba(20, 26, 35, 0.82) 100%);
	}

	.mvr-hero--porto-moniz .wp-block-cover__image-background {
		object-position: 55% 45% !important;
	}

	.wp-block-cover.mvr-hero--calheta {
		--mvr-scrim: linear-gradient(180deg, rgba(20, 26, 35, 0.6) 0%, rgba(20, 26, 35, 0.12) 20%, rgba(20, 26, 35, 0.5) 48%, rgba(20, 26, 35, 0.85) 100%);
	}

	.mvr-hero--location h1 {
		font-size: 44px;
	}

	/* The area: copy in the band, then the photograph full-bleed below it. */
	.wp-block-group.mvr-area {
		padding-bottom: 0;
	}

	.mvr-area .wp-block-columns.mvr-split {
		gap: 0;
	}

	.wp-block-column.mvr-area__text {
		gap: 18px;
	}

	.wp-block-columns.mvr-split .wp-block-column.mvr-area__media {
		margin: 56px -24px 0;
	}

	.mvr-area__image img {
		height: 300px;
	}

	.wp-block-group.mvr-facts-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.wp-block-group.mvr-stay {
		padding: 56px 16px;
	}

	.wp-block-group.mvr-stay .mvr-head {
		padding: 0 8px;
	}

	.mvr-stay .mvr-head .mvr-link-arrow {
		display: none;
	}

	.mvr-nearby-band .wp-block-columns.mvr-split {
		gap: 20px;
	}

	.wp-block-column.mvr-nearby__intro {
		gap: 20px;
	}

	.wp-block-image.mvr-nearby__image {
		margin-top: 0 !important;
	}

	.mvr-nearby__image img {
		height: 240px;
	}

	.wp-block-column.mvr-nearby__col {
		padding-top: 0;
	}

	.wp-block-group.mvr-nearby__item {
		padding: 20px 0;
	}

	.wp-block-group.mvr-nearby__item::before,
	.mvr-nearby__item h3 {
		font-size: 24px;
	}

	/* Getting here: the map moves between the copy and the addresses. */
	.mvr-getting .wp-block-columns.mvr-split {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.mvr-getting .wp-block-column.mvr-getting__text {
		display: contents;
	}

	.mvr-getting .wp-block-column.mvr-getting__map {
		order: 1;
	}

	.mvr-getting .mvr-getting__address {
		order: 2;
		font-size: var(--wp--preset--font-size--body-xs);
	}

	.wp-block-group.mvr-other,
	.wp-block-group.mvr-other--calheta {
		padding: 16px 16px 56px;
	}

	/*
	 * The other location's tile: at 390 the copy starts halfway up the tile,
	 * so the ramp has to be dark by then (the 1440 ramp left the eyebrow at
	 * 2.1:1 on Calheta's sky). Plateau from 50%; measured on both tiles.
	 */
	.wp-block-cover.mvr-location-tile--other {
		--mvr-tile-h: 360px;
		--mvr-tile-pad: 0 24px 28px;
		--mvr-scrim: linear-gradient(180deg, rgba(20, 26, 35, 0) 35%, rgba(20, 26, 35, 0.61) 50%, rgba(20, 26, 35, 0.61) 100%);
	}

	.mvr-location-tile--other .mvr-tile__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.mvr-location-tile--other .mvr-tile__title {
		font-size: 34px;
		line-height: 1;
	}

	.mvr-location-tile--other .mvr-tile__text {
		font-size: var(--wp--preset--font-size--body);
	}

	/* 0.5 left the lead at 3.4:1 (worst pixel). */
	.wp-block-cover.mvr-cta-band--porto-moniz {
		--mvr-dim: 0.62;
	}
}
