/**
 * The destination page.
 *
 * Loaded only there (see roova_enqueue_destination_assets), on top of theme.css
 * and search.css — the hotels on this page are the results page's own card, so
 * its stylesheet comes with them rather than a third copy of those rules being
 * kept in step by hand.
 *
 * Its own token header all the same, the convention every page in this theme
 * that prints its own document follows: the tokens below are the ones nothing
 * else declares, and each is one of theme.css's colours.
 */

.roova-destination-page {
	--roova-dp-line: rgba(13, 58, 82, .12);
	--roova-dp-tint: #fdfcfa;
}

/* ------------------------------------------------------------------ Hero */

/*
 * Full bleed and square-cornered, the way the homepage hero is — a deliberate
 * departure from a panel inset in the page, and the same one the rest of the
 * theme makes.
 */
.roova-dp__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 520px;
	background: var(--roova-deep);
	color: var(--roova-cream);
	overflow: hidden;
}

.roova-dp__hero--plain {
	min-height: 360px;
}

.roova-dp__hero-media {
	position: absolute;
	inset: 0;
}

.roova-dp__hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * The photograph is the client's, so no corner of it can be assumed dark. The
 * wash is deepest under the words and thins upward, and it is measured the way
 * the checkout banner and the auth scrims are: change the bundled crop or a
 * town's photo and re-check the worst pixel under each text box.
 */
.roova-dp__hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(4, 22, 32, .82) 0%, rgba(4, 22, 32, .52) 45%, rgba(4, 22, 32, .18) 100%);
}

.roova-dp__hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 88px 40px 72px;
	box-sizing: border-box;
}

.roova-dp__crumb {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: .78rem;
	color: rgba(251, 248, 243, .72);
}

.roova-dp__crumb a {
	color: rgba(251, 248, 243, .72);
}

.roova-dp__crumb a:hover {
	color: var(--roova-cream);
}

.roova-dp__hero h1 {
	margin: 14px 0 0;
	font-family: var(--roova-font-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 5vw, 3.62rem);
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--roova-cream);
}

.roova-dp__lede {
	margin: 16px 0 0;
	max-width: 46ch;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(251, 248, 243, .86);
	text-wrap: pretty;
}

.roova-dp__count {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 20px 0 0;
	font-size: .85rem;
	color: rgba(251, 248, 243, .82);
}

.roova-dp__count .roova-icon {
	color: var(--roova-gold);
	flex: none;
}

/* --------------------------------------------------------------- Layout */

.roova-dp__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 40px 88px;
}

.roova-dp__inner--bare {
	padding-top: 80px;
}

.roova-dp__section + .roova-dp__section {
	margin-top: 64px;
}

.roova-dp__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

/*
 * The ruled eyebrow on white. theme.css's .roova-eyebrow--ruled is for dark
 * bands and paints itself cream, so on this page it would be a gold rule in
 * front of nothing — the contact page keeps its own for the same reason.
 */
.roova-dp__eyebrow {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 10.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--roova-faint);
}

.roova-dp__eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	flex: none;
	background: var(--roova-gold);
}

.roova-dp__head h2 {
	margin: 13px 0 0;
	font-family: var(--roova-font-display);
	font-weight: 400;
	font-size: 2rem;
	letter-spacing: -.02em;
	color: var(--roova-deep);
}

.roova-dp__head-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .85rem;
	color: var(--roova-deep);
	white-space: nowrap;
}

.roova-dp__head-link:hover {
	color: var(--roova-gold);
}

.roova-dp__head-link .roova-icon {
	transition: transform .25s var(--roova-ease);
}

.roova-dp__head-link:hover .roova-icon {
	transform: translateX(3px);
}

.roova-dp__content {
	margin-top: 64px;
}

/* ------------------------------------------------------- Landmark pills */

.roova-dp__pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: -4px 0 24px;
}

/*
 * Links, not buttons: the filter is a query argument, so it works with the
 * script blocked and a filtered page can be shared.
 */
.roova-dp__pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--roova-dp-line);
	border-radius: 999px;
	background: #fff;
	font-size: .85rem;
	color: #3d5a63;
	white-space: nowrap;
	transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.roova-dp__pill:hover {
	border-color: var(--roova-deep);
	color: var(--roova-deep);
}

.roova-dp__pill span {
	font-size: .72rem;
	color: var(--roova-faint);
}

.roova-dp__pill.is-active {
	background: var(--roova-deep);
	border-color: var(--roova-deep);
	color: var(--roova-cream);
}

.roova-dp__pill.is-active:hover {
	color: var(--roova-cream);
}

.roova-dp__pill.is-active span {
	color: var(--roova-gold);
}

/* ------------------------------------------------------- Landmark cards */

.roova-dp__landmarks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.roova-lm {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--roova-dp-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	color: var(--roova-ink);
	transition: box-shadow .3s ease, transform .3s var(--roova-ease), border-color .3s ease;
}

.roova-lm:hover {
	color: var(--roova-ink);
	border-color: rgba(13, 58, 82, .22);
	transform: translateY(-2px);
	box-shadow: 0 24px 44px -32px rgba(8, 38, 53, .45);
}

.roova-lm__media {
	position: relative;
	display: block;
	height: 172px;
	background: var(--roova-deep);
}

.roova-lm__media img,
.roova-lm__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.roova-lm__placeholder {
	background: linear-gradient(140deg, var(--roova-deep), #0a2c3f);
}

.roova-lm__kind {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(4, 22, 32, .78);
	font-size: .69rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--roova-cream);
}

.roova-lm__body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 20px 22px 22px;
	flex: 1 1 auto;
}

.roova-lm__name {
	font-family: var(--roova-font-display);
	font-weight: 500;
	font-size: 1.31rem;
	letter-spacing: -.01em;
	color: var(--roova-ink);
}

.roova-lm__text {
	font-size: .85rem;
	line-height: 1.65;
	color: var(--roova-muted);
	text-wrap: pretty;
}

.roova-lm__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 3px;
}

.roova-lm__distance {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: .78rem;
	color: var(--roova-gold);
	white-space: nowrap;
}

.roova-lm__distance .roova-icon {
	flex: none;
}

/* The distance can be missing; "View on map" then sits on its own, right. */
.roova-lm__map {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-size: .78rem;
	color: var(--roova-deep);
	white-space: nowrap;
}

.roova-lm:hover .roova-lm__map .roova-icon {
	transform: translateX(3px);
}

.roova-lm__map .roova-icon {
	transition: transform .25s var(--roova-ease);
}

/* ------------------------------------------------------------- The map */

.roova-dp__map {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	border: 1px solid var(--roova-dp-line);
	border-radius: 16px;
	overflow: hidden;
}

/* No Maps key: the list is the whole panel, so it runs the full width. */
.roova-dp__map--list {
	grid-template-columns: minmax(0, 1fr);
}

.roova-dp__pins {
	display: flex;
	flex-direction: column;
	max-height: 560px;
	overflow-y: auto;
	background: var(--roova-dp-tint);
	border-right: 1px solid var(--roova-hairline);
}

.roova-dp__map--list .roova-dp__pins {
	max-height: none;
	border-right: 0;
}

.roova-dp__pin {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--roova-hairline);
	color: var(--roova-ink);
	text-align: left;
	transition: background .22s ease, box-shadow .22s ease;
}

.roova-dp__pin:last-child {
	border-bottom: 0;
}

.roova-dp__pin:hover {
	background: #fff;
	color: var(--roova-ink);
}

.roova-dp__pin.is-active {
	background: #fff;
	box-shadow: inset 3px 0 0 var(--roova-gold);
}

.roova-dp__marker {
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2ead9;
	color: var(--roova-gold);
	font-family: var(--roova-font-display);
	font-size: .88rem;
}

.roova-dp__marker--hotel {
	background: var(--roova-deep);
	color: var(--roova-cream);
}

.roova-dp__pin-body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.roova-dp__pin-kind {
	display: block;
	font-size: .63rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--roova-faint);
}

.roova-dp__pin-name {
	display: block;
	margin-top: 4px;
	font-size: .91rem;
	font-weight: 500;
	color: var(--roova-ink);
}

.roova-dp__pin-detail {
	display: block;
	margin-top: 3px;
	font-size: .78rem;
	color: var(--roova-muted);
}

.roova-dp__canvas-wrap {
	position: relative;
	min-height: 560px;
	background: #eef1f0;
}

.roova-dp__canvas {
	position: absolute;
	inset: 0;
}

/*
 * The card naming the selected pin. It and the pins are what navigate in the
 * map column; the map around them stays draggable and zoomable, the rule the
 * contact page's own map follows.
 */
.roova-dp__active {
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 11px;
	max-width: calc(100% - 40px);
	padding: 12px 17px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 16px 34px -20px rgba(8, 38, 53, .6);
	color: var(--roova-ink);
	line-height: 1.45;
}

.roova-dp__active:hover {
	color: var(--roova-ink);
	background: #fff;
}

.roova-dp__active-name {
	display: block;
	font-size: .85rem;
}

.roova-dp__active-detail {
	display: block;
	font-size: .75rem;
	color: var(--roova-faint);
}

.roova-dp__note {
	margin: 12px 0 0;
	font-size: .8rem;
	color: var(--roova-muted);
}

/* ------------------------------------------------------------ Narrower */

@media (max-width: 1100px) {
	.roova-dp__landmarks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.roova-dp__map {
		grid-template-columns: minmax(0, 1fr);
	}

	.roova-dp__pins {
		max-height: 300px;
		border-right: 0;
		border-bottom: 1px solid var(--roova-hairline);
	}

	.roova-dp__canvas-wrap {
		min-height: 420px;
	}
}

@media (max-width: 860px) {
	.roova-dp__hero {
		min-height: 420px;
	}

	.roova-dp__hero-inner {
		padding: 64px 24px 48px;
	}

	.roova-dp__inner {
		padding: 44px 24px 64px;
	}

	.roova-dp__section + .roova-dp__section {
		margin-top: 48px;
	}

	.roova-dp__head h2 {
		font-size: 1.7rem;
	}
}

@media (max-width: 620px) {
	.roova-dp__landmarks {
		grid-template-columns: minmax(0, 1fr);
	}

	.roova-dp__hero-inner {
		padding: 56px 20px 40px;
	}

	.roova-dp__inner {
		padding: 36px 20px 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roova-lm,
	.roova-lm .roova-icon,
	.roova-dp__head-link .roova-icon {
		transition: none;
	}

	.roova-lm:hover {
		transform: none;
	}
}
