/*
Theme Name: Martine
Theme URI: https://colorlib.com/wp/themes/martine/
Author: Colorlib
Author URI: https://colorlib.com/
Description: A block theme for travel agencies and small tour operators. A full-height beach hero with a site search for tours and places, destination photographs that reveal their names, tour cards with length, group size, highlights, the next departure and the price from, a slider of upcoming departures, a tour page written out day by day with what is and is not included and a table of dates, reviews, a gallery and a journal — and a tour enquiry form that needs no plugin and never takes a booking or a payment. Eight colour palettes, five type pairings, visitor dark mode and WooCommerce support. Full site editing throughout.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Update URI: https://updates.colorlib.com/theme/martine.json
Text Domain: martine
Tags: blog, e-commerce, full-site-editing, block-patterns, block-styles, template-editing, wide-blocks, accessibility-ready, translation-ready, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, one-column, two-columns, right-sidebar, sticky-post, theme-options

Martine WordPress Theme, (C) 2026 Colorlib.
Martine is distributed under the terms of the GNU GPL v2 or later.

Martine bundles the following third-party resources:

Open Sans and Barlow
License: SIL Open Font License 1.1, https://openfontlicense.org/
Source: https://fontsource.org/

Tabler Icons
License: MIT, https://github.com/tabler/tabler-icons/blob/main/LICENSE
Source: https://tabler.io/icons

Photographs
License: Pexels License, https://www.pexels.com/license/
Source: https://www.pexels.com/ (each file is credited in readme.txt)
*/

/*
 * A block theme styles itself from theme.json. What lives here is what
 * theme.json cannot express: the header that pins itself as you scroll, the
 * trip finder that overlaps the hero, the destination cards whose names rise
 * on a navy shade, the tour cards, the sliders, the tour page's timeline and
 * lists, the icons, and the layout corrections a full-width design needs.
 *
 * This file is also the editor stylesheet (add_editor_style), so a tour card
 * or a destination looks the same while it is being edited.
 *
 * Every colour is a palette variable. Nothing here is a literal colour except
 * white and black at low opacity for highlights and shadows, which is what
 * lets all eight palettes, and dark mode, restyle every component.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

body {
	/* The edge of anything a visitor operates -- a field, an arrow. Half the
	   text colour into the ground clears 3:1 (WCAG 1.4.11) in every palette
	   and turns over with dark mode. */
	--martine-edge: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, var(--wp--preset--color--base));
	/* The top bar scrolls away; the bar under it stays. */
	--martine-topbar-h: 50px;
	--martine-gutter: var(--wp--style--root--padding-left, 1rem);
	--martine-container: min(1140px, calc(100vw - 2 * var(--martine-gutter)));
}

@media (max-width: 781px) {
	body {
		--martine-topbar-h: 0px;
	}
}

/* ==========================================================================
   Screen reader text
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--base);
	clip-path: none;
	color: var(--wp--preset--color--contrast);
	display: block;
	height: auto;
	left: 6px;
	padding: 15px 23px 14px;
	top: 7px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   Layout rhythm

   WordPress separates the top-level pieces of a page, and every full-width
   section inside a page's content, with the root block gap: a strip of bare
   page between every pair. Sections carry their own padding, so they meet
   edge to edge instead.
   ========================================================================== */

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-block-post-content > .alignfull + .alignfull,
.wp-block-post-content > .alignfull + .wp-block-group.alignfull {
	margin-block-start: 0;
}

/* Two sections on the page ground share one gap, as the template's do. */
.martine-section:not(.has-background) + .martine-section:not(.has-background) {
	padding-top: 0 !important;
}

/* A page built from sections needs no padding of its own -- each section has
   it. A page of ordinary paragraphs still needs room to breathe. */
.martine-page-content:not(:has(> .alignfull:first-child)) {
	padding-top: var(--wp--preset--spacing--70);
}

.martine-page-content:not(:has(> .alignfull:last-child)) {
	padding-bottom: var(--wp--preset--spacing--70);
}

/* Two columns that meet the container at both edges, as Bootstrap's offset
   columns do: the space between them, not after them. */
@media (min-width: 782px) {
	.martine-split {
		justify-content: space-between;
	}
}

/* An <iframe> is inline, and auto margins do not centre an inline box. */
.martine-map {
	display: block;
}

.martine-section,
.martine-footer {
	position: relative;
	overflow-x: clip;
}

a {
	text-underline-offset: 0.2em;
}

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

   A pale top bar with the favourite destinations and the phone, then the
   white bar with the name, the menu and the Enquire button. The whole part is
   sticky with its top set to minus the top bar's height, so the top bar
   scrolls away and the bar under it pins itself, as the template's does; once
   the page moves it tightens and takes a shadow.
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(-1 * var(--martine-topbar-h));
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--martine-topbar-h));
}

@media (max-width: 600px) {
	/* The admin bar scrolls away on a phone, so the header must not wait for it. */
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.martine-header {
	/* Core pads any group with a background (1.25em 2.375em); the header's
	   two bars run edge to edge. */
	padding: 0 !important;
	transition: box-shadow 0.3s ease;
}

.martine-header > .martine-topbar,
.martine-header > .martine-header__main {
	margin-block: 0;
}

.martine-scrolled .martine-header {
	box-shadow: 0 10px 15px rgb(0 0 0 / 0.06);
}

.martine-topbar {
	min-height: var(--martine-topbar-h);
	padding-block: 0 !important;
	font-size: var(--wp--preset--font-size--small);
}

.martine-topbar__row {
	min-height: var(--martine-topbar-h);
}

.martine-topbar p {
	margin: 0;
}

.martine-topbar a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.martine-topbar a:hover,
.martine-topbar a:focus-visible {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.martine-topbar__places {
	column-gap: 1.875rem !important;
}

.martine-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.martine-topbar__phone::before {
	color: var(--wp--preset--color--primary);
}

.martine-topbar__social,
.martine-footer__social {
	gap: 0.9rem !important;
}

.martine-topbar__social .wp-social-link a,
.martine-footer__social .wp-social-link a {
	padding: 0.15rem;
}

@media (max-width: 781px) {
	.martine-topbar {
		display: none;
	}
}

.martine-header__bar {
	min-height: 100px;
	transition: min-height 0.3s ease;
}

.martine-scrolled .martine-header__bar {
	min-height: 76px;
}

/* The name, with the template's orange full stop after it unless a logo is
   set. The stop is decoration, not a character a reader reads. */
.martine-brand {
	margin: 0;
	white-space: nowrap;
}

.martine-brand a {
	text-decoration: none;
}

.martine-brand a::after {
	content: ".";
	color: var(--wp--preset--color--accent);
}

.martine-header .wp-block-navigation {
	color: var(--wp--preset--color--contrast);
}

.martine-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: 0;
}

.martine-header .wp-block-navigation-item__content {
	position: relative;
	padding: 0.5rem 1.375rem;
	transition: color 0.2s ease;
}

.martine-header .wp-block-navigation-item__content:hover,
.martine-header .wp-block-navigation-item__content:focus-visible,
.martine-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

/* The page you are on also carries a short orange line under its name:
   colour alone is not a signal everyone can see. */
.martine-header .current-menu-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 1.375rem;
	right: 1.375rem;
	bottom: 0;
	height: 2px;
	background-color: var(--wp--preset--color--accent);
}

@media (max-width: 1199px) {
	.martine-header .wp-block-navigation-item__content {
		padding-inline: 0.8rem;
	}

	.martine-header .current-menu-item > .wp-block-navigation-item__content::after {
		left: 0.8rem;
		right: 0.8rem;
	}
}

/*
 * Core switches the navigation to its menu button below 600px. Six links, the
 * name, the switch and the Enquire button need about 1000px, so between 600
 * and 992 the links had nowhere to go but a second row. Collapse where the
 * template does.
 */
@media (max-width: 991px) {
	.martine-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.martine-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.martine-header__bar > .martine-nav {
		order: 3;
	}

	.martine-header__bar > .martine-brand {
		margin-right: auto;
	}
}

.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.martine-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 0.35rem 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.martine-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content::after {
	left: 0;
	right: auto;
	width: 2.5rem;
}

.martine-header__actions {
	flex-wrap: nowrap;
	gap: 0.75rem;
}

.martine-header .martine-scheme-toggle > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 781px) {
	.martine-header__bar {
		min-height: 72px;
		gap: 0.5rem !important;
	}

	.martine-scrolled .martine-header__bar {
		min-height: 64px;
	}

	.martine-header .martine-header__cta > .wp-block-button__link {
		padding: 0.5rem 0.9rem;
		white-space: nowrap;
		font-size: var(--wp--preset--font-size--small);
	}

	.martine-header__actions {
		gap: 0.25rem;
	}
}

@media (max-width: 400px) {
	.martine-header .martine-scheme-toggle > .wp-block-button__link {
		width: 36px;
	}

	.martine-header .martine-brand {
		font-size: 1.25rem;
	}

	.martine-header .martine-header__cta > .wp-block-button__link {
		padding-inline: 0.6rem;
	}
}

/* ==========================================================================
   Buttons

   The template's .btn_1 (theme.json): square, orange, a white label, blue on
   hover. The hero's is blue and bigger.
   ========================================================================== */

.wp-block-button__link,
.wp-element-button {
	transition: background-color 0.3s ease, color 0.3s ease;
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
	outline-offset: 3px;
}

.martine-hero .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--overlay);
}

/* ==========================================================================
   Icons

   Tabler Icons, used as masks: the SVG supplies the shape and the element's
   own text colour fills it, so an icon takes whatever palette is active and
   turns over in dark mode with no extra files. The class sits on the block
   itself -- the editor draws a block's classes, but not an empty span inside
   its text. An editor changes an icon under Advanced › Additional CSS
   class(es).
   ========================================================================== */

.martine-icon--phone { --martine-icon: url("assets/icons/phone.svg"); }
.martine-icon--mail { --martine-icon: url("assets/icons/mail.svg"); }
.martine-icon--home { --martine-icon: url("assets/icons/home.svg"); }
.martine-icon--user { --martine-icon: url("assets/icons/user.svg"); }
.martine-icon--users { --martine-icon: url("assets/icons/users.svg"); }
.martine-icon--folder { --martine-icon: url("assets/icons/folder.svg"); }
.martine-icon--calendar-event { --martine-icon: url("assets/icons/calendar-event.svg"); }
.martine-icon--clock { --martine-icon: url("assets/icons/clock.svg"); }
.martine-icon--walk { --martine-icon: url("assets/icons/walk.svg"); }
.martine-icon--building-cottage { --martine-icon: url("assets/icons/building-cottage.svg"); }

[class*="martine-icon--"]::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask: var(--martine-icon) center / contain no-repeat;
	mask: var(--martine-icon) center / contain no-repeat;
}

/* A line with its icon in front: the icon hangs in the margin, so a line that
   wraps stays one block of text. */
.martine-line[class*="martine-icon--"] {
	position: relative;
	padding-left: 2.4em;
}

.martine-line[class*="martine-icon--"]::before {
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 1.5em;
	height: 1.5em;
}

.martine-line strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.martine-line a {
	color: inherit;
}

.martine-meta[class*="martine-icon--"],
.martine-tour__facts[class*="martine-icon--"],
.martine-tour__date[class*="martine-icon--"] {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

/* ==========================================================================
   Small type
   ========================================================================== */

/* "Who we are", "Next departure": the template's small orange line over a
   heading, in the readable orange. */
.martine-eyebrow {
	margin-bottom: 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

mark.has-inline-color:not([style*="background"]) {
	background-color: transparent;
}

/* ==========================================================================
   Section titles: 46px, bold, centred, with a line under them
   ========================================================================== */

.martine-section-head {
	margin-bottom: var(--wp--preset--spacing--60);
}

.martine-section-head > .martine-section-title {
	margin-bottom: 0;
}

.martine-section-head > .martine-section-lead {
	margin-top: 1.625rem;
	line-height: 1.75;
}

/* ==========================================================================
   Page banners: the dark sea photograph under a 60% shade
   ========================================================================== */

.martine-banner {
	text-align: center;
}

.martine-banner .wp-block-post-title,
.martine-banner h1 {
	margin-bottom: 0;
	line-height: 1.1;
}

.martine-crumb {
	margin-top: 1.5rem !important;
	font-weight: 600;
}

.martine-crumb p {
	margin: 0;
}

.martine-crumb a {
	color: inherit;
	text-decoration: none;
}

.martine-crumb a:hover,
.martine-crumb a:focus-visible {
	text-decoration: underline;
}

.martine-banner__terms a {
	color: var(--wp--preset--color--overlay);
	text-decoration: none;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ==========================================================================
   Hero: a beach from above at 880px, a 120px headline
   ========================================================================== */

.martine-hero .wp-block-cover__inner-container {
	padding-bottom: 80px;
}

.martine-hero .martine-hero__title {
	margin-bottom: 1.375rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.martine-hero .martine-hero__lead {
	max-width: 44rem;
	margin-inline: auto;
	line-height: 1.4;
	text-wrap: balance;
}

.martine-hero .wp-block-buttons {
	margin-top: 3.75rem;
}

.martine-hero__button > .wp-block-button__link {
	padding: 1.4375rem 4.9375rem;
	/* The template's blue box, with a white edge: on the shaded water the
	   blue alone does not stand out as a button (WCAG 1.4.11). */
	border: 2px solid var(--wp--preset--color--overlay);
}

.martine-hero__button > .wp-block-button__link:hover,
.martine-hero__button > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--primary) !important;
}

@media (max-width: 781px) {
	.martine-hero {
		min-height: 620px !important;
	}

	.martine-hero .wp-block-buttons {
		margin-top: 2rem;
	}

	.martine-hero__button > .wp-block-button__link {
		padding: 1rem 2.25rem;
	}
}

/* ==========================================================================
   Trip finder: the white card that overlaps the foot of the hero

   It searches the site -- tours are pages, so they are found -- and lists
   every destination. The template drew a hotel/ticket booking form with
   dates and guests that went nowhere; this does what it says.
   ========================================================================== */

.martine-finder {
	position: relative;
	z-index: 2;
	margin-top: -80px !important;
}

.martine-finder > .martine-finder__tab {
	margin-block: 0;
	font-weight: 600;
	line-height: 1.5;
}

/* The tab is a span inside a paragraph that takes the container's width: an
   inline-block child of a constrained layout ignores its auto margins and
   sat at the window's edge, not the card's. */
.martine-finder__tab > span {
	display: inline-block;
	margin-left: 1.5rem;
	padding: 1.75rem 1.25rem 1.6rem;
	background-color: var(--wp--preset--color--base);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent);
}

.martine-finder > .martine-finder__card {
	margin-block-start: 0;
	padding: 2.5rem;
	box-shadow: var(--wp--preset--shadow--card);
}

.martine-finder__search .wp-block-search__inside-wrapper {
	gap: 1rem;
}

.martine-finder__search .wp-block-search__input {
	min-height: 50px;
	padding-inline: 1rem;
	font-size: var(--wp--preset--font-size--medium);
}

.martine-finder__search .wp-block-search__button {
	margin: 0;
	padding-inline: 2.5rem;
}

.martine-finder__places {
	margin-top: 1.25rem !important;
	line-height: 2;
}

.martine-finder__places strong {
	color: var(--wp--preset--color--contrast);
	margin-right: 0.35rem;
}

.martine-finder__places a {
	display: inline-block;
	margin-right: 1.1rem;
	font-weight: 600;
}

@media (max-width: 600px) {
	.martine-finder > .martine-finder__card {
		padding: 1.5rem 1.25rem;
	}

	.martine-finder__search .wp-block-search__inside-wrapper {
		flex-direction: column;
	}

	.martine-finder__search .wp-block-search__button {
		width: 100%;
	}
}

/* ==========================================================================
   Destinations: a photograph whose name rises on a navy shade

   Transparent, not hidden: the name's link must stay reachable by Tab, and
   focusing it is what raises the caption for a keyboard user. On a screen with
   no pointer to hover, and on a phone, the caption shows all the time on a
   shade that fades up from the foot of the photograph.
   ========================================================================== */

.martine-places {
	margin-bottom: var(--wp--preset--spacing--40);
}

.martine-place {
	position: relative;
	overflow: hidden;
	scroll-margin-top: 140px;
}

.martine-place > .wp-block-image {
	margin: 0;
}

.martine-place > .wp-block-image img {
	display: block;
	width: 100%;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.martine-place::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--wp--preset--color--dark-deep);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

.martine-place > .martine-place__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	margin: 0 !important;
	padding: 2.5rem;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.martine-place:hover::after,
.martine-place:focus-within::after {
	opacity: 0.75;
}

.martine-place:hover > .martine-place__caption,
.martine-place:focus-within > .martine-place__caption {
	opacity: 1;
	transform: none;
}

.martine-place:hover > .wp-block-image img {
	transform: scale(1.04);
}

.martine-place__caption > * {
	margin: 0;
}

.martine-place__caption > .martine-place__tag {
	display: inline-block;
	justify-self: start;
	width: fit-content;
	margin-bottom: 0.9rem !important;
	padding: 0.5rem 1.4rem;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.martine-place__name {
	font-weight: 700;
	line-height: 1.2;
}

.martine-place__name a {
	color: inherit;
	text-decoration: none;
}

.martine-place__name a:hover,
.martine-place__name a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.martine-place__name a:focus-visible {
	outline: 2px solid var(--wp--preset--color--overlay);
	outline-offset: 4px;
}

@media (hover: none), (max-width: 781px) {
	.martine-place::after {
		background: linear-gradient(to top,
			color-mix(in srgb, var(--wp--preset--color--dark-deep) 88%, transparent) 0,
			color-mix(in srgb, var(--wp--preset--color--dark-deep) 72%, transparent) 50%,
			transparent 90%);
		opacity: 1;
	}

	.martine-place > .martine-place__caption {
		padding: 1.5rem;
		opacity: 1;
		transform: none;
	}
}

.martine-more {
	margin-top: calc(var(--wp--preset--spacing--60) - var(--wp--preset--spacing--40)) !important;
}

/* ==========================================================================
   Tour cards: the template's hotel cards -- a photograph, then the words, and
   a rule under the lot
   ========================================================================== */

.martine-tours {
	margin-bottom: var(--wp--preset--spacing--60);
}

.martine-tours:last-child {
	margin-bottom: 0;
}

.martine-tours > .wp-block-column {
	display: flex;
}

.martine-tour {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}

.martine-tour > .wp-block-image {
	margin: 0;
	overflow: hidden;
}

.martine-tour > .wp-block-image img {
	display: block;
	width: 100%;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.martine-tour:hover > .wp-block-image img {
	transform: scale(1.04);
}

.martine-tour > .martine-tour__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-block-start: 0;
	padding: 2rem 0 1.75rem;
}

.martine-tour > *,
.martine-tour__body > * {
	/* A flex column: auto margins from the constrained layout would centre
	   every line. */
	margin-inline: 0 !important;
}

.martine-tour__body > .martine-tour__name {
	margin-bottom: 0.4rem;
	font-weight: 500;
}

.martine-tour__name a {
	color: inherit;
	text-decoration: none;
}

.martine-tour__name a:hover,
.martine-tour__name a:focus-visible {
	color: var(--wp--preset--color--primary);
}

.martine-tour__facts {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.martine-tour__facts::before,
.martine-tour__date::before {
	color: var(--wp--preset--color--primary);
}

.martine-tour__body > .martine-tour__highlights {
	margin-bottom: 0.4rem;
	font-size: var(--wp--preset--font-size--small);
}

.martine-tour__body > .martine-tour__foot {
	margin-top: auto;
	padding-top: 0.9rem;
}

.martine-tour__foot > p {
	margin: 0;
}

.martine-tour__price strong {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
}

.martine-tour__enquire a {
	font-weight: 600;
	text-decoration: none;
}

.martine-tour__enquire a::after {
	content: " \2192";
}

.martine-tour__enquire a:hover,
.martine-tour__enquire a:focus-visible {
	text-decoration: underline;
}

/* Ticks and crosses (block styles on core/list). */
.wp-block-list.is-style-martine-ticks,
.wp-block-list.is-style-martine-crosses {
	padding-left: 0;
	list-style: none;
}

.is-style-martine-ticks > li,
.is-style-martine-crosses > li {
	position: relative;
	margin-bottom: 0.45em;
	padding-left: 1.75em;
	line-height: 1.6;
}

.is-style-martine-ticks > li::before,
.is-style-martine-crosses > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 1.1em;
	height: 1.1em;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("assets/icons/check.svg") center / contain no-repeat;
	mask: url("assets/icons/check.svg") center / contain no-repeat;
}

.is-style-martine-crosses > li::before {
	background-color: var(--wp--preset--color--muted);
	-webkit-mask-image: url("assets/icons/x.svg");
	mask-image: url("assets/icons/x.svg");
}

/* ==========================================================================
   Sliders: departures on the photograph, reviews on the band

   A row that scrolls sideways with snap points. interactions.js adds the
   arrows; without it a visitor scrolls the row.
   ========================================================================== */

.martine-slider {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.martine-js .martine-slider {
	scrollbar-width: none;
}

.martine-js .martine-slider::-webkit-scrollbar {
	display: none;
}

.martine-slider:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
	outline-offset: 6px;
}

.martine-slider > .martine-slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0 !important;
	scroll-snap-align: start;
}

.martine-slider__nav[hidden] {
	display: none !important;
}

.martine-slider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	cursor: pointer;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

.martine-slider__arrow::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: url("assets/icons/chevron-left.svg") center / contain no-repeat;
	mask: url("assets/icons/chevron-left.svg") center / contain no-repeat;
}

.martine-slider__arrow--next::before {
	-webkit-mask-image: url("assets/icons/chevron-right.svg");
	mask-image: url("assets/icons/chevron-right.svg");
}

.martine-slider__arrow:disabled {
	opacity: 0.45;
	cursor: default;
}

.martine-slider__arrow:focus-visible {
	outline: 3px solid var(--wp--preset--color--overlay);
	outline-offset: 3px;
}

/* Departures: one white card at a time on the right half of the photograph,
   round arrows at the container's edges. */
.martine-departures {
	padding-block: var(--wp--preset--spacing--70) !important;
}

.martine-departures .wp-block-cover__inner-container {
	position: relative;
}

.martine-departures .martine-slide {
	display: flex !important;
	justify-content: flex-end;
}

.martine-departure {
	width: min(555px, 100%);
	margin: 0 !important;
	padding: 3.125rem;
	color: var(--wp--preset--color--muted);
}

.martine-departure .martine-departure__name {
	font-weight: 700;
}

.martine-departure .martine-fact {
	margin: 0;
}

.martine-departure .martine-fact strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 400;
}

.martine-departure .wp-block-buttons {
	margin-top: 1rem;
}

.martine-departures .martine-slider__nav {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.martine-departures .martine-slider__arrow {
	position: absolute;
	top: 50%;
	width: 75px;
	height: 75px;
	margin-top: -37.5px;
	border-radius: 50%;
	background-color: rgb(255 255 255 / 0.6);
	color: var(--wp--preset--color--primary);
	pointer-events: auto;
}

.martine-departures .martine-slider__arrow:hover:not(:disabled) {
	background-color: var(--wp--preset--color--base);
}

.martine-departures .martine-slider__arrow--prev {
	left: 0;
}

.martine-departures .martine-slider__arrow--next {
	right: -100px;
}

@media (max-width: 1360px) {
	.martine-departures .martine-slider__arrow--next {
		right: calc(555px + 1rem);
	}
}

@media (max-width: 991px) {
	.martine-departures .martine-slide {
		justify-content: center;
	}

	.martine-departures .martine-slider__nav {
		position: static;
		display: flex;
		justify-content: center;
		gap: 1rem;
		margin-top: 1.5rem;
	}

	.martine-departures .martine-slider__arrow {
		position: static;
		width: 56px;
		height: 56px;
		margin: 0;
	}
}

@media (max-width: 600px) {
	.martine-departure {
		padding: 1.75rem 1.5rem;
	}
}

/* The tour page's banner is the same card, alone and without arrows. */
.martine-tour-hero .martine-departure__name {
	font-size: var(--wp--preset--font-size--heading) !important;
	line-height: 1.12;
}

/* Reviews: three at a time on the navy band, square blue arrows beside the
   title. */
.martine-reviews {
	position: relative;
}

.martine-reviews > .martine-reviews__title {
	box-sizing: border-box;
	margin-bottom: var(--wp--preset--spacing--60);
	padding-right: 120px;
}

.martine-reviews__slider > .martine-slide {
	flex-basis: calc((100% - 2 * var(--wp--preset--spacing--40)) / 3);
	padding: 1.875rem;
}

.martine-review > .martine-stars {
	letter-spacing: 0.15em;
	line-height: 1;
}

.martine-review__quote {
	line-height: 1.75;
}

.martine-review {
	display: flex;
	flex-direction: column;
}

.martine-review > * {
	margin-inline: 0 !important;
}

/* The name sits at the foot of the card, however long the quote above it. */
.martine-review__who {
	margin-top: auto !important;
	padding-top: 1.25rem;
	font-weight: 600;
}

.martine-review__who em {
	font-weight: 400;
}

.martine-reviews .martine-slider__nav {
	position: absolute;
	top: calc(var(--wp--preset--spacing--70) + 0.4rem);
	right: max(var(--martine-gutter), calc((100% - 1140px) / 2));
	display: flex;
	gap: 10px;
}

.martine-reviews .martine-slider__arrow {
	width: 45px;
	height: 45px;
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--on-primary);
}

.martine-reviews .martine-slider__arrow:hover:not(:disabled) {
	background-color: var(--wp--preset--color--primary);
}

@media (max-width: 991px) {
	.martine-reviews__slider > .martine-slide {
		flex-basis: calc((100% - var(--wp--preset--spacing--40)) / 2);
	}
}

@media (max-width: 600px) {
	.martine-reviews__slider > .martine-slide {
		flex-basis: 88%;
	}

	.martine-reviews > .martine-reviews__title {
		padding-right: 0;
	}

	.martine-reviews .martine-slider__nav {
		position: static;
		justify-content: flex-end;
		margin-top: 1.5rem;
	}
}

/* ==========================================================================
   How we travel: four photographs with a heading and a line
   ========================================================================== */

.martine-service > .wp-block-image {
	margin: 0 0 0.4rem;
}

.martine-service > .wp-block-image img {
	display: block;
	width: 100%;
}

.martine-service > .martine-service__name {
	font-weight: 400;
}

@media (min-width: 600px) and (max-width: 991px) {
	.martine-services {
		flex-wrap: wrap !important;
	}

	.martine-services > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--40)) !important;
	}
}

/* ==========================================================================
   About and gallery
   ========================================================================== */

.martine-about .wp-block-image,
.martine-gallery .wp-block-image {
	margin-bottom: 0;
}

.martine-about .wp-block-image img,
.martine-gallery .wp-block-image img {
	display: block;
	width: 100%;
}

.martine-gallery .wp-block-column > .wp-block-image + .wp-block-image {
	margin-top: 1rem;
}

/* ==========================================================================
   One tour: key facts, the day-by-day timeline, the lists and the dates
   ========================================================================== */

.martine-keyfacts {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--divider);
}

.martine-keyfact__label {
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.martine-keyfact__label::before {
	width: 1.5em;
	height: 1.5em;
	color: var(--wp--preset--color--primary);
}

.martine-keyfact__value {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.martine-section > .martine-itinerary {
	position: relative;
	box-sizing: border-box;
	max-width: calc(780px + 2.25rem) !important;
	margin-inline: auto !important;
	padding-left: 2.25rem;
}

.martine-itinerary::before {
	content: "";
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	left: 0.45rem;
	width: 2px;
	background-color: var(--wp--preset--color--divider);
}

.martine-day {
	position: relative;
}

.martine-day::before {
	content: "";
	position: absolute;
	top: 0.35rem;
	left: -2.25rem;
	width: 1rem;
	height: 1rem;
	border: 3px solid var(--wp--preset--color--surface);
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
	box-sizing: border-box;
	outline: 2px solid var(--wp--preset--color--accent);
}

.martine-day__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.martine-day > .martine-day__title {
	margin-bottom: 0.25rem;
}

.martine-dates table {
	border-collapse: collapse;
}

.martine-dates th,
.martine-dates td {
	padding: 0.95rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--divider);
	text-align: left;
}

.martine-dates thead th {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.martine-dates td:first-child,
.martine-dates td:last-child {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.martine-dates td:last-child,
.martine-dates th:last-child {
	text-align: right;
}

@media (max-width: 600px) {
	.martine-dates th,
	.martine-dates td {
		padding-inline: 0.4rem;
		font-size: var(--wp--preset--font-size--small);
	}
}

/* ==========================================================================
   Enquiry: how it works beside the form
   ========================================================================== */

.martine-enquiry .martine-eyebrow {
	margin-bottom: -0.75rem;
}

.martine-enquiry__note {
	padding-left: 1rem;
	border-left: 3px solid var(--wp--preset--color--accent);
}

.martine-enquiry__form {
	box-shadow: var(--wp--preset--shadow--card);
}

.martine-line[class*="martine-icon--"]::before,
.martine-contact .martine-line::before {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Block style: Card with a shadow (core/group)
   ========================================================================== */

.wp-block-group.is-style-martine-card {
	padding: 1.875rem;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
}

/* ==========================================================================
   The journal: a wide photograph with the date on an orange tab over its
   corner, then the words in a panel with a soft shadow
   ========================================================================== */

.martine-post-list > li + li {
	margin-top: 2.25rem;
}

.martine-post-card__media {
	position: relative;
}

.martine-post-card__media > .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.martine-post-card__media > .wp-block-post-featured-image img {
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.martine-post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.martine-post-card__media > .martine-date-tab {
	position: absolute;
	left: clamp(1.25rem, 3vw, 1.875rem);
	bottom: -1.25rem;
	z-index: 1;
	max-width: none;
	margin: 0 !important;
	padding: 0.5rem 1.4rem;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	text-align: center;
}

/* A post with no featured image: the tab sits in the flow and overlaps the
   panel below, instead of floating over nothing. */
.martine-post-card__media:not(:has(img)) > .martine-date-tab {
	position: relative;
	bottom: auto;
	display: inline-block;
	margin: 0 0 -1.25rem clamp(1.25rem, 3vw, 1.875rem) !important;
}

.martine-date-tab > * {
	margin: 0 !important;
}

.martine-date-tab__day {
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.martine-date-tab__month {
	font-size: 1.125rem;
	line-height: 1.4;
}

.martine-post-card > .wp-block-group.martine-post-card__body {
	margin-block-start: 0;
	padding: clamp(2.5rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 1.75rem) 2rem;
	box-shadow: var(--wp--preset--shadow--card);
}

.martine-post-card__body .wp-block-post-title {
	font-weight: 600;
}

.martine-post-card__body .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.martine-post-meta a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.martine-post-meta a:hover {
	color: var(--wp--preset--color--primary);
}

.martine-pagination {
	margin-top: 3.125rem;
	gap: 0.6rem;
}

.martine-pagination .page-numbers,
.martine-pagination .wp-block-query-pagination-previous,
.martine-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.8rem;
	height: 2.8rem;
	padding: 0 0.8rem;
	border: 1px solid var(--wp--preset--color--divider);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.martine-pagination .page-numbers.current {
	background-color: var(--wp--preset--color--surface);
}

.martine-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.6rem;
}

.martine-news .wp-block-post-featured-image {
	margin: 0;
}

/* ==========================================================================
   Sidebar  (block style: core/group › Widget panel)
   ========================================================================== */

.wp-block-group.is-style-martine-widget {
	padding: 1.875rem;
	background-color: var(--wp--preset--color--surface);
}

.martine-sidebar > .is-style-martine-widget + .is-style-martine-widget {
	margin-block-start: 1.875rem;
}

.is-style-martine-widget > .martine-widget__title {
	margin-bottom: 0;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--wp--preset--color--divider);
	font-weight: 500;
}

.is-style-martine-widget .wp-block-categories,
.is-style-martine-widget .wp-block-latest-posts {
	padding-left: 0;
	list-style: none;
}

.is-style-martine-widget .wp-block-categories li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--wp--preset--color--divider);
	font-size: var(--wp--preset--font-size--small);
}

.is-style-martine-widget .wp-block-categories li:first-child {
	padding-top: 0;
}

.is-style-martine-widget .wp-block-categories a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.is-style-martine-widget .wp-block-categories a:hover {
	color: var(--wp--preset--color--primary);
}

.is-style-martine-widget .wp-block-latest-posts li {
	display: flow-root;
	margin-bottom: 1.25rem;
}

.is-style-martine-widget .wp-block-latest-posts__featured-image.alignleft {
	margin: 0 1.25rem 0 0;
}

.is-style-martine-widget .wp-block-latest-posts__featured-image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
}

.is-style-martine-widget .wp-block-latest-posts__post-title {
	display: block;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
}

.is-style-martine-widget .wp-block-latest-posts__post-title:hover {
	color: var(--wp--preset--color--primary);
}

.is-style-martine-widget .wp-block-latest-posts__post-date {
	font-size: var(--wp--preset--font-size--small);
}

.is-style-martine-widget .wp-block-tag-cloud a {
	margin: 0 0.2rem 0.5rem 0;
	padding: 0.25rem 1.1rem;
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: 0;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem !important;
	text-decoration: none;
}

.is-style-martine-widget .wp-block-tag-cloud a:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.martine-widget--search .wp-block-search__inside-wrapper {
	flex-direction: column;
	gap: 1rem;
}

.martine-widget--search .wp-block-search__button,
.martine-widget--search .wp-block-search__input {
	width: 100%;
	margin: 0;
}

.martine-widget--search .wp-block-search__button {
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--small);
}

/* ==========================================================================
   Single post
   ========================================================================== */

.martine-post-meta.is-layout-flex {
	margin-block-start: 1.5rem;
}

.martine-entry blockquote.wp-block-quote {
	margin: 2rem 0;
	padding: 1.9rem 1.9rem 1.9rem 2.2rem;
	background-color: var(--wp--preset--color--surface);
}

.martine-entry blockquote.wp-block-quote p {
	margin: 0;
}

.martine-tags a {
	display: inline-block;
	margin: 0 0.3rem 0.4rem 0;
	padding: 0.2rem 0.9rem;
	border: 1px solid var(--wp--preset--color--divider);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.martine-tags .wp-block-post-terms__separator {
	display: none;
}

.martine-post-nav {
	padding-block: 1.9rem;
	border-top: 1px solid var(--wp--preset--color--divider);
	border-bottom: 1px solid var(--wp--preset--color--divider);
	font-weight: 500;
}

.martine-post-nav a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.martine-post-nav a:hover {
	color: var(--wp--preset--color--primary);
}

/* A post with no author (an import, a script) renders an empty author block:
   no panel for it either. */
.martine-author-box:not(:has(.wp-block-post-author)) {
	display: none;
}

.martine-author .wp-block-post-author__avatar img {
	border-radius: 50%;
}

.martine-author .wp-block-post-author__name {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.martine-comments .martine-comment {
	margin-block: 1.9rem 0;
}

.martine-comments .wp-block-comment-content p {
	margin-top: 0;
}

.martine-comment .wp-block-comment-date a,
.martine-comment__reply a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	text-transform: uppercase;
}

/* ==========================================================================
   Footer: destinations, the newsletter and the address on the dark ground,
   over a deeper copyright strip
   ========================================================================== */

.martine-footer {
	padding: 0 !important;
}

.martine-footer .martine-footer__title {
	margin-bottom: 2.5rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.martine-footer__places {
	columns: 2;
	column-gap: 1.5rem;
	padding-left: 0;
	list-style: none;
}

.martine-footer__places li {
	margin-bottom: 0.65rem;
	break-inside: avoid;
	font-size: 0.9375rem;
	font-weight: 600;
}

.martine-footer a:not(.wp-element-button) {
	color: var(--wp--preset--color--overlay);
	text-decoration: none;
}

.martine-footer a:not(.wp-element-button):hover,
.martine-footer a:not(.wp-element-button):focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.martine-footer .martine-footer__detail {
	margin-block: 0 1.25rem;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.8;
}

.martine-footer .martine-footer__email a:not(.wp-element-button) {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
}

.martine-footer__note {
	margin-top: 1.5rem !important;
}

.martine-footer__copy a:not(.wp-element-button) {
	color: var(--wp--preset--color--accent);
}

.martine-footer__copy {
	margin: 0;
}

/* The footer's sign-up: the address and a small orange button side by side. */
.martine-footer .martine-form--compact {
	display: flex;
	align-items: stretch;
}

.martine-footer .martine-form--compact .martine-form__grid {
	flex: 1;
}

.martine-footer .martine-form--compact .martine-form__notice {
	position: absolute;
}

.martine-footer .martine-form--compact .martine-field__control {
	height: 50px;
	border-color: transparent;
	background-color: var(--wp--preset--color--dark-deep);
	color: var(--wp--preset--color--overlay);
}

.martine-footer .martine-form--compact .martine-field__control::placeholder {
	color: var(--wp--preset--color--overlay-muted);
	opacity: 1;
}

.martine-footer .martine-form--compact .martine-form__actions {
	margin: 0;
}

.martine-footer .martine-form--compact .martine-form__actions .wp-element-button {
	height: 50px;
	padding-inline: 1.25rem;
	/* The template's bright orange: as a fill it stands out from the navy
	   footer, where the readable orange does not, and it carries a dark label. */
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--dark-deep);
}

.martine-footer .martine-form--compact .martine-form__actions .wp-element-button:hover,
.martine-footer .martine-form--compact .martine-form__actions .wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--overlay);
	color: var(--wp--preset--color--dark-deep);
}

/* ==========================================================================
   Phones
   ========================================================================== */

@media (max-width: 781px) {
	.martine-footer__columns > .wp-block-column + .wp-block-column {
		margin-top: var(--wp--preset--spacing--50);
	}
}

/* ==========================================================================
   Reduced motion: nothing moves
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.martine-place::after,
	.martine-place > .martine-place__caption,
	.martine-header,
	.martine-header__bar,
	.wp-block-post-featured-image img,
	.martine-place > .wp-block-image img,
	.martine-tour > .wp-block-image img {
		transition: none;
	}

	.martine-place > .martine-place__caption {
		transform: none;
	}

	.martine-place:hover > .wp-block-image img,
	.martine-tour:hover > .wp-block-image img,
	.martine-post-card:hover .wp-block-post-featured-image img {
		transform: none;
	}
}
