/* Page layouts. */

.h3 {
	font-family: var(--font-serif);
	font-size: var(--text-h3);
	line-height: var(--leading-h3);
	font-weight: 400;
}

.button--outline-light {
	background: transparent;
	color: var(--color-ivory);
	border-color: var(--color-ivory);
}

.button--outline-light:hover {
	background: var(--color-ivory);
	color: var(--color-nile);
}

.button--outline-light:focus-visible {
	outline-color: var(--color-ivory);
}

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

.hero {
	padding: var(--space-32) var(--space-32) 0;
}

.hero__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-24);
	background: var(--color-nile);
}

.hero__media .photo {
	width: 100%;
	min-height: 520px;
	border-radius: 0;
	object-fit: cover;
}

.hero__media .photo--placeholder {
	align-items: flex-end;
	justify-content: flex-start;
	padding: var(--space-24);
	color: var(--color-ivory);
	background: linear-gradient(140deg, #2b6878 0%, var(--color-nile) 55%, #0f3440 100%);
}

/* Text is vertically centred on the left, over a shade that darkens the
   left side of the photo so ivory text stays readable on any photo. */
.hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: var(--space-24);
	padding: var(--space-48) var(--space-64);
	background: linear-gradient(90deg, rgb(16 42 50 / 62%) 0%, rgb(16 42 50 / 38%) 40%, rgb(16 42 50 / 0%) 72%);
	color: var(--color-ivory);
}

.hero__eyebrow {
	font-size: var(--text-small);
	line-height: var(--leading-tight);
	font-weight: 400;
	color: var(--color-ivory);
}

.hero__title {
	max-width: 520px;
	color: var(--color-ivory);
	font-size: var(--text-display);
	line-height: var(--leading-display);
}

.hero__text {
	max-width: 36rem;
	color: var(--color-ivory);
}

.hero__content .actions {
	gap: var(--space-16);
}

/* "No upfront payment · Local people" card under the photo. */
.reassurance {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-24);
	min-height: 104px;
	margin-top: var(--space-32);
	padding: var(--space-24) var(--space-64);
	background: #fffcf6;
	border: 1px solid var(--color-sand);
	border-radius: var(--radius-20);
}

.reassurance__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-16) var(--space-32);
	margin: 0;
	padding: 0;
	list-style: none;
}

.reassurance__list li {
	display: flex;
	flex-direction: column;
	min-width: 280px;
	gap: var(--space-4);
	font-size: var(--text-caption);
	line-height: 1.5714;
	color: var(--color-muted);
}

.reassurance__list strong {
	font-size: var(--text-small);
	line-height: var(--leading-tight);
	font-weight: 500;
	color: var(--color-nile);
}

@media (max-width: 1199px) {
	.hero {
		padding: var(--space-16) var(--space-16) 0;
	}

	.hero__content {
		padding: var(--space-40);
	}

	.reassurance {
		margin-top: var(--space-16);
		padding: var(--space-24) var(--space-40);
	}
}

@media (max-width: 767px) {
	.hero {
		padding: var(--space-8) var(--space-8) 0;
	}

	.hero__media {
		border-radius: var(--radius-20);
	}

	/* On phones the text sits below the photo instead of over it. */
	.hero__media .photo {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.hero__content {
		position: static;
		padding: var(--space-32) var(--space-24);
		background: var(--color-nile);
	}

	.hero__content .actions .button {
		flex: 1 1 100%;
	}

	.reassurance {
		margin-top: var(--space-8);
		padding: var(--space-24);
	}

	.reassurance .button {
		width: 100%;
	}
}

/* ------------------------------------------------------------------
 * Listings
 * ------------------------------------------------------------------ */

.listing-filters {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	margin-bottom: var(--space-40);
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-16);
	padding: var(--space-48);
	background: var(--color-sand-soft);
	border-radius: var(--radius-20);
}

.empty-state .actions {
	margin-top: var(--space-8);
}

/* ------------------------------------------------------------------
 * Trip page
 * ------------------------------------------------------------------ */

.trip-layout {
	display: grid;
	grid-template-columns: minmax(0, 904px) minmax(300px, 352px);
	justify-content: space-between;
	gap: var(--space-40);
	align-items: start;
}

.trip-main {
	min-width: 0;
}

.trip-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-16);
	margin-bottom: var(--space-32);
}

.trip-header .eyebrow + h1 {
	margin-top: calc(-1 * var(--space-8));
}

.trip-photo figcaption {
	margin-top: var(--space-8);
}

.trip-photo .photo-frame:hover .photo {
	transform: scale(1.02);
}

.trip-nav {
	position: sticky;
	top: var(--header-height);
	z-index: 5;
	margin: var(--space-32) 0 0;
	background: var(--color-ivory);
	border-bottom: 1px solid var(--color-line);
}

.trip-nav ul {
	display: flex;
	gap: var(--space-32);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.trip-nav ul::-webkit-scrollbar {
	display: none;
}

.trip-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	color: var(--color-ink);
	font-size: var(--text-small);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.trip-nav a:hover {
	color: var(--color-nile);
	text-decoration: underline;
}

.trip-section {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	padding-top: var(--space-48);
}

.trip-section + .trip-section:not(.panel) {
	margin-top: var(--space-16);
	border-top: 1px solid var(--color-line);
}

.trip-section.panel {
	margin-top: var(--space-48);
	padding-top: var(--space-32);
}

.trip-text {
	max-width: 850px;
}

.trip-subtitle {
	margin-top: var(--space-8);
}

.highlights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-24);
	margin: 0;
	padding: 0;
	list-style: none;
}

.highlights li {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.highlights p {
	color: var(--color-muted);
}

.highlights--wide {
	margin-top: var(--space-16);
}

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

/* Itinerary: numbered with a counter so hidden package steps do not count. */
.segmented {
	margin: 0;
	padding: 0;
	border: 0;
}

.segmented__options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
	margin-top: var(--space-8);
}

.segmented label {
	position: relative;
	display: inline-flex;
}

.segmented input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.segmented span {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: var(--space-8) var(--space-16);
	border: 1.5px solid var(--color-line);
	border-radius: var(--radius-pill);
	font-size: var(--text-small);
}

.segmented input:checked + span {
	background: var(--color-nile);
	border-color: var(--color-nile);
	color: var(--color-ivory);
	font-weight: 600;
}

.segmented input:focus-visible + span {
	outline: 2px solid var(--color-nile);
	outline-offset: 3px;
}

.itinerary {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.itinerary li {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: var(--space-24);
	counter-increment: step;
}

.itinerary__marker {
	font-family: var(--font-serif);
	font-size: var(--text-h3);
	line-height: var(--leading-h3);
	color: var(--color-terra);
}

.itinerary__marker:empty::before {
	content: counter(step, decimal-leading-zero);
}

.itinerary__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.itinerary__tag {
	align-self: flex-start;
	padding: 2px var(--space-12);
	background: var(--color-sand-soft);
	border-radius: var(--radius-pill);
	font-size: var(--text-caption);
	font-weight: 500;
}

.packages {
	display: grid;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.package {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-24);
	padding: var(--space-16) var(--space-24);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-16);
}

.package__price {
	flex: none;
}

.inclusions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-24);
}

.inclusions h3 {
	margin-bottom: var(--space-16);
}

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

.info-list {
	display: grid;
	gap: var(--space-16);
	margin: 0;
}

.info-list div {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: var(--space-16);
	padding-bottom: var(--space-16);
	border-bottom: 1px solid var(--color-line);
}

.info-list dt {
	font-weight: 600;
}

.info-list dd {
	margin: 0;
	color: var(--color-muted);
}

.info-list--wide {
	max-width: 1000px;
}

@media (max-width: 599px) {
	.info-list div {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-4);
	}
}

.review-stack {
	display: grid;
	gap: var(--space-16);
}

/* Sticky booking card */
.booking-card {
	position: sticky;
	top: calc(var(--header-height) + var(--space-24));
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-24);
	background: var(--color-ivory);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-20);
	box-shadow: var(--shadow-raised);
}

.booking-card__price .price strong {
	font-size: 1.75rem;
}

.booking-card__form {
	gap: var(--space-16);
	padding-top: var(--space-16);
	border-top: 1px solid var(--color-line);
}

.booking-card__notes {
	display: grid;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-small);
	line-height: var(--leading-tight);
	color: var(--color-muted);
}

.booking-card__notes li {
	display: flex;
	gap: var(--space-8);
}

.booking-card__notes .icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--color-nile);
}

.availability-bar {
	display: none;
}

/* Tablet: the booking card moves above the content, no longer sticky. */
@media (max-width: 1023px) {
	.trip-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.booking-card {
		position: static;
		order: -1;
		box-shadow: none;
	}
}

/* Phones: the card goes back to the end and a bar stays at the bottom. */
@media (max-width: 767px) {
	.booking-card {
		order: 0;
		margin-top: var(--space-48);
	}

	.availability-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 30;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-16);
		padding: var(--space-12) var(--gutter);
		padding-bottom: calc(var(--space-12) + env(safe-area-inset-bottom));
		background: var(--color-ivory);
		box-shadow: 0 -1px 0 var(--color-line), 0 -8px 24px rgb(37 42 43 / 8%);
	}

	.availability-bar .caption {
		line-height: 1.3;
	}

	.route-trip .site-footer {
		padding-bottom: calc(var(--space-40) + 88px);
	}
}

/* ------------------------------------------------------------------
 * Gallery
 * ------------------------------------------------------------------ */

.gallery {
	display: grid;
	gap: var(--space-24);
}

.gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-24);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery .photo-frame:hover .photo {
	transform: scale(1.03);
}

@media (max-width: 767px) {
	.gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-12);
	}
}

/* ------------------------------------------------------------------
 * Gallery lightbox
 *
 * The dialog covers the whole screen. The buttons are positioned against
 * the screen, not the photo, so photos of any size never move them; the
 * photo is limited to the space between the buttons.
 * ------------------------------------------------------------------ */

.lightbox {
	--lightbox-button: 56px;
	--lightbox-edge: var(--space-24);

	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
	color: var(--color-ink);
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Transparent, lightly tinted and blurred, so the page stays visible behind. */
.lightbox::backdrop {
	background: rgb(37 42 43 / 28%);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

html:has(.lightbox[open]) {
	overflow: hidden;
}

.lightbox__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: var(--space-72) calc(var(--lightbox-edge) * 2 + var(--lightbox-button));
}

.lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--radius-12);
	box-shadow: 0 24px 64px rgb(16 42 50 / 35%);
	opacity: 0;
	transition: opacity var(--duration) var(--ease);
}

.lightbox__image.is-loaded {
	opacity: 1;
}

.lightbox__button {
	position: fixed;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--lightbox-button);
	height: var(--lightbox-button);
	padding: 0;
	background: var(--color-ivory);
	border: 0;
	border-radius: var(--radius-pill);
	box-shadow: 0 6px 20px rgb(16 42 50 / 25%);
	color: var(--color-ink);
	transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.lightbox__button:hover {
	background: #fff;
}

.lightbox__button:focus-visible {
	outline: 3px solid var(--color-ivory);
	outline-offset: 3px;
	border-radius: var(--radius-pill);
}

.lightbox__button .icon {
	width: 24px;
	height: 24px;
}

.lightbox__button--prev,
.lightbox__button--next {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__button--prev {
	left: var(--lightbox-edge);
}

.lightbox__button--next {
	right: var(--lightbox-edge);
}

.lightbox__close {
	top: var(--lightbox-edge);
	right: var(--lightbox-edge);
	width: 48px;
	height: 48px;
}

.lightbox__counter {
	position: fixed;
	bottom: var(--lightbox-edge);
	left: 50%;
	transform: translateX(-50%);
	padding: var(--space-4) var(--space-16);
	background: var(--color-ivory);
	border-radius: var(--radius-pill);
	font-size: var(--text-small);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* Phones: the photo uses the full width; the buttons sit over its edges. */
@media (max-width: 767px) {
	.lightbox {
		--lightbox-button: 44px;
		--lightbox-edge: var(--space-12);
	}

	.lightbox__figure {
		padding: var(--space-72) var(--space-8);
	}

	.lightbox__close {
		width: 44px;
		height: 44px;
	}
}

/* ------------------------------------------------------------------
 * Booking flow
 * ------------------------------------------------------------------ */

.progress {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-8);
	margin: 0 0 var(--space-40);
	padding: 0;
	list-style: none;
}

.progress__step {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	min-height: 54px;
	padding-top: var(--space-12);
	border-top: 3px solid var(--color-line);
	font-size: var(--text-small);
	color: var(--color-muted);
}

.progress__number {
	font-family: var(--font-serif);
	font-size: 1.125rem;
}

.progress__step.is-done {
	border-top-color: var(--color-sea);
	color: var(--color-ink);
}

.progress__step[aria-current="step"] {
	border-top-color: var(--color-nile);
	color: var(--color-ink);
	font-weight: 600;
}

@media (max-width: 599px) {
	.progress__label {
		font-size: var(--text-caption);
	}

	.progress__step {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
}

.booking .form-notice {
	margin-bottom: var(--space-32);
}

.booking-layout {
	display: grid;
	grid-template-columns: minmax(0, 784px) minmax(280px, 464px);
	justify-content: space-between;
	gap: var(--space-48);
	align-items: start;
}

@media (max-width: 1023px) {
	.booking-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

.booking-step {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Without JavaScript both steps show, one after the other. */
.booking-step + .booking-step {
	margin-top: var(--space-72);
	padding-top: var(--space-48);
	border-top: 1px solid var(--color-line);
}

.js .booking-step + .booking-step {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.booking-step__legend {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: 0;
	margin-bottom: var(--space-8);
}

.booking__title {
	display: block;
	font-family: var(--font-serif);
	font-size: var(--text-h1);
	line-height: var(--leading-h1);
	color: var(--color-ink);
}

.booking__trip {
	font-family: var(--font-serif);
	font-size: var(--text-h3);
	line-height: var(--leading-h3);
}

.booking__recap {
	font-size: var(--text-small);
	color: var(--color-muted);
	margin-top: calc(-1 * var(--space-16));
}

.booking__estimate {
	font-weight: 500;
}

.booking__estimate:empty {
	display: none;
}

.booking-aside {
	position: sticky;
	top: calc(var(--header-height) + var(--space-24));
}

.booking-aside__subtitle {
	margin: var(--space-24) 0 var(--space-12);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	font-weight: 600;
}

.booking-aside .numbered-list {
	margin-bottom: var(--space-16);
	color: var(--color-muted);
}

@media (max-width: 1023px) {
	.booking-aside {
		position: static;
	}
}

.booking__summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	margin-top: var(--space-32);
}

.booking__reassure {
	display: flex;
	align-items: flex-start;
	gap: var(--space-12);
	margin: var(--space-32) 0;
	font-size: 1.125rem;
}

.booking__reassure .icon {
	flex: none;
	color: var(--color-nile);
}

.success .booking__title,
.success h1 {
	margin-top: var(--space-24);
}

.success .lead {
	margin-top: var(--space-16);
}

/* ------------------------------------------------------------------
 * Two-column form pages (contact, plan my trip)
 * ------------------------------------------------------------------ */

.split {
	display: grid;
	grid-template-columns: minmax(280px, 400px) minmax(0, 832px);
	justify-content: space-between;
	gap: var(--space-64);
	align-items: start;
}

.split--contact {
	grid-template-columns: minmax(280px, 448px) minmax(0, 784px);
}

.split__aside {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

@media (max-width: 1023px) {
	.split,
	.split--contact {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-40);
	}

	/* The form comes first on smaller screens. */
	.split__main {
		order: -1;
	}
}

.contact-list {
	display: grid;
	gap: var(--space-16);
	margin: var(--space-8) 0 0;
}

.contact-list dt {
	font-size: var(--text-caption);
	color: var(--color-muted);
}

.contact-list dd {
	margin: 0;
	font-weight: 500;
}

/* ------------------------------------------------------------------
 * Destinations
 * ------------------------------------------------------------------ */

.destination-banner {
	margin-bottom: var(--space-48);
}

.related-chips {
	margin-top: var(--space-24);
}

/* ------------------------------------------------------------------
 * Reviews
 * ------------------------------------------------------------------ */

.review-summary {
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	gap: var(--space-48);
	align-items: center;
	margin-top: var(--space-16);
}

.review-summary__totals {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-16);
}

.review-summary__score {
	font-family: var(--font-serif);
	font-size: var(--text-h1);
	line-height: var(--leading-h1);
}

.review-summary__score span {
	font-size: var(--text-h3);
	color: var(--color-muted);
}

.review-summary__photo .photo {
	aspect-ratio: 928 / 280;
}

@media (max-width: 767px) {
	.review-summary {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------
 * About, policies, WhatsApp
 * ------------------------------------------------------------------ */

.about-hero {
	display: grid;
	grid-template-columns: minmax(0, 600fr) minmax(0, 632fr);
	gap: var(--space-64);
	align-items: center;
}

.about-hero h1 {
	font-size: var(--text-h1);
	line-height: var(--leading-h1);
}

@media (max-width: 899px) {
	.about-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-32);
	}
}

.principles {
	margin-top: var(--space-72);
	padding-top: var(--space-40);
	border-top: 1px solid var(--color-line);
}

.team-photo .photo {
	aspect-ratio: 1296 / 360;
}

.policy-list {
	display: grid;
	gap: var(--space-32);
}

.policy-list section {
	display: grid;
	gap: var(--space-8);
	padding-bottom: var(--space-32);
	border-bottom: 1px solid var(--color-line);
}

.whatsapp-number {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	font-family: var(--font-serif);
	font-size: var(--text-h3);
	line-height: var(--leading-h3);
}

.whatsapp-number .eyebrow {
	font-family: var(--font-sans);
}
