/*
 * Azuréen base: reset, typography patterns, container, buttons, bezel,
 * shared utilities. Block-specific CSS lives in blocks/<name>/style.css.
 * Every value comes from tokens.css (→ theme.json).
 */

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: normal; /* As the design: components set their own line-height. */
	color: var(--color-ink);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-optical-sizing: auto;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
/* Sticky elements clear the WordPress admin bar (logged-in only; fixed above 600px). */
:root { --az-adminbar: 0px; }
.admin-bar { --az-adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --az-adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --az-adminbar: 0px; } }

h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
/* German compounds ("Datenschutzerklärung") are wider than a phone: hyphenate them. */
:lang(de) :is(h1, h2, h3, h4, dt, .az-btn__label, .az-cruise-fact__value) { hyphens: auto; }
/* Never let one long word push out of its box (German compounds, URLs, e-mails). */
body { overflow-wrap: break-word; }
/* Chinese has no italic: the accent phrase keeps its colour, not a fake slant. */
:lang(zh) em { font-style: normal; }
p { text-wrap: pretty; }
:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }

/* Block themes wrap template parts and post content: no stray gaps. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
main { display: block; }

/* ---- Accessibility -------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--color-red); outline-offset: 3px; border-radius: 4px; }
.az-skip {
	position: absolute; left: var(--gutter); top: -100px; z-index: 100;
	padding: 12px 20px; border-radius: var(--radius-pill);
	background: var(--color-ink); color: var(--color-white);
	font-weight: 700; text-decoration: none;
}
.az-skip:focus { top: 12px; }
.screen-reader-text, .az-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Layout --------------------------------------------------------------- */
.az-container {
	width: 100%;
	/* The design's boxes are content-box: 1240px of content plus the gutters. */
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.az-section { padding-block: var(--section); }
.az-section--lg { padding-block: var(--section-lg); }
.az-section--sm { padding-block: var(--section-sm); }
.az-section--blush { background: var(--color-blush-3); }

/* ---- Type patterns -------------------------------------------------------- */
.az-eyebrow {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--fs-eyebrow);
	color: var(--color-red);
}
.az-h1, .az-h2, .az-h3 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: var(--ls-tight);
	color: var(--color-ink);
}
.az-h1 { font-size: var(--fs-h1); line-height: 1; }
.az-h2 { font-size: var(--fs-h2); line-height: 1.04; }
.az-h2--sm { font-size: var(--fs-h2-sm); }
.az-h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
/* The design's signature: one phrase in Bodoni italic red. */
.az-h1 em, .az-h2 em, .az-h3 em, .az-title em { font-style: italic; color: var(--color-red); }
.az-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--color-muted); }
.az-caps {
	font-size: var(--fs-caps);
	font-weight: 800;
	letter-spacing: var(--ls-caps);
	text-transform: uppercase;
	line-height: 1.4;
	text-wrap: balance; /* no lone "H" when a label wraps on phones */
}
.az-muted { color: var(--color-muted); }

/* ---- Buttons -------------------------------------------------------------- */
.az-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 6px 6px 6px 22px;
	border-radius: var(--radius-pill);
	background: var(--color-red);
	color: var(--color-white);
	font-size: var(--fs-ui);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease);
}
.az-btn:hover { background: var(--color-ink); color: var(--color-white); }
.az-btn:active { transform: scale(0.97); }
.az-btn__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-pill);
	background: var(--color-on-red-chip);
	transition: transform 380ms var(--ease);
}
.az-btn:hover .az-btn__icon { transform: translate(3px, -2px) scale(1.07); }
.az-btn--sm { min-height: 48px; padding-left: 20px; font-size: var(--fs-ui); }
.az-btn--sm .az-btn__icon { width: 34px; height: 34px; }
.az-btn--lg { min-height: 56px; padding: 8px 8px 8px 24px; font-size: var(--fs-md); }
.az-btn--block { display: flex; width: 100%; }
/* Ghost: 1.5px ink border pill. */
.az-btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.az-btn--ghost .az-btn__icon { background: var(--color-blush); }
.az-btn--ghost:hover { background: var(--color-ink); color: var(--color-white); }
.az-btn--ghost:hover .az-btn__icon { background: var(--color-on-red-chip); }
/* Plain text pill without the icon circle. */
.az-btn--plain { padding: 0 22px; justify-content: center; }

.az-link {
	color: var(--color-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.az-link:hover { color: var(--color-red); }

/* ---- Double bezel (key cards: booking widget, charts) --------------------- */
.az-bezel {
	padding: var(--bezel-pad);
	border-radius: var(--radius-bezel);
	background: var(--bezel-bg);
	border: 1px solid var(--bezel-border);
	box-shadow: var(--shadow-widget);
}
.az-bezel__in {
	border-radius: calc(var(--radius-bezel) - var(--bezel-pad));
	background: var(--color-white);
	box-shadow: var(--shadow-inner);
	overflow: hidden;
}

/* ---- "A separate service" (Flower Motorboat) ------------------------------ */
.az-separate { border: var(--separate-border); border-radius: var(--radius-xl); }
.az-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	background: var(--color-red-tint);
	color: var(--color-red);
	font-size: var(--fs-caps);
	font-weight: 800;
	letter-spacing: var(--ls-caps);
	text-transform: uppercase;
	line-height: 1.2;
}

/* ---- Rich text inside blocks (WYSIWYG fields, legal pages) ----------------- */
.az-prose { color: var(--color-ink-2); font-size: var(--fs-md); line-height: 1.7; }
.az-prose > * + * { margin-top: 1em; }
.az-prose h2, .az-prose h3 { margin-top: 1.6em; font-family: var(--font-display); font-weight: 500; color: var(--color-ink); }
.az-prose h2 { font-size: var(--fs-xl); }
.az-prose h3 { font-size: var(--fs-lg); }
.az-prose a { color: var(--color-red); text-underline-offset: 3px; }
.az-prose ul, .az-prose ol { padding-left: 1.2em; }

/* Placeholder text waiting on the client: [square brackets]. */
.az-todo { background: var(--color-red-tint); border-radius: 4px; box-shadow: 0 0 0 2px var(--color-red-tint); }

/* ---- Motion: reduced motion turns everything off -------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- Core blocks used in templates (404, legal) --------------------------- */
.az-main > .az-eyebrow + .az-h1 { margin-top: 18px; }
.az-main > .az-h1 + .az-lead { margin-top: 22px; max-width: 560px; }
.az-main .wp-block-buttons { margin-top: 32px; }
.az-btn-core .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 24px;
	border-radius: var(--radius-pill);
	background: var(--color-red);
	color: var(--color-white);
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--dur-ui) var(--ease);
}
.az-btn-core .wp-block-button__link:hover { background: var(--color-ink); }

/* ---- Section rhythm ---------------------------------------------------------
 * Blocks follow the prototype's chained spacing:
 * - .az-sec  = white section: no top space, section space below.
 * - .az-band = tinted band: section space above and below.
 * A white section right after a band gets the top space back.
 */
/* :where() keeps these at zero specificity: a block's own padding always wins. */
:where(.az-sec) { padding-bottom: var(--section); }
:where(.az-band) { padding-block: var(--section); }
:where(.az-band + .az-sec) { padding-top: var(--section); }
.az-band--blush { background: var(--color-blush); }
.az-band--blush-2 { background: var(--color-blush-2); }
.az-band--blush-3 { background: var(--color-blush-3); }

/* Two-part section heads: heading left, aside right (rating, links). */
.az-sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	margin-bottom: 40px;
}

/* Definition grid used by skipper, boat and legal data. */
.az-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 28px; margin: 8px 0 0; }
.az-specs > div { border-top: 1px solid var(--color-line-2); padding-top: 14px; }
.az-specs dt { color: var(--color-muted-2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.az-specs dd { margin: 6px 0 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.4; }

/* Rating stars. */
.az-stars { color: var(--color-star); letter-spacing: 2px; }

/* Breadcrumb (page heads). */
.az-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--color-muted-2); font-size: var(--fs-sm); }
/* The "/" trails its item, so a wrapped crumb never starts with one; the current page
   (already the H1) shortens to one line rather than wrapping. */
.az-crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; }
.az-crumbs li:last-child { min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-crumbs a { color: var(--color-muted); text-decoration: none; }
.az-crumbs a:hover { color: var(--color-red); }
.az-crumbs [aria-current] { color: var(--color-ink); font-weight: 700; }

/* ---- Motion start states (assets/js/motion.js) ------------------------------
 * Hero children start hidden only with JS; a CSS failsafe shows them after 2.5 s
 * if the script never runs. Reduced motion: nothing is hidden.
 */
@keyframes az-failsafe { to { opacity: 1; } }
.js [data-anim="hero"] > * { opacity: 0; animation: az-failsafe 0s 2.5s forwards; }
.js [data-anim="hero"].is-animated > * { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.js [data-anim="hero"] > * { opacity: 1; animation: none; }
}

/* ---- Lightbox (assets/js/lightbox.js) --------------------------------------- */
.az-lightbox {
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.az-lightbox::backdrop { background: transparent; }
.az-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 72px 16px 32px;
	background: var(--lb-bg);
}
.az-lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1100px, 100%); margin: 0; }
.az-lightbox__img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: var(--radius-tile); }
.az-lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--lb-text); font-size: var(--fs-small); }
.az-lightbox__count { color: var(--lb-muted); font-variant-numeric: tabular-nums; }
.az-lightbox__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--lb-control-line);
	background: var(--lb-control);
	color: var(--color-white);
	cursor: pointer;
	transition: background-color var(--dur-ui) var(--ease);
}
.az-lightbox__btn:hover { background: var(--lb-control-line); }
.az-lightbox__btn--close { top: 16px; right: 16px; }
.az-lightbox__btn--prev { left: 16px; top: 50%; margin-top: -26px; }
.az-lightbox__btn--next { right: 16px; top: 50%; margin-top: -26px; }
@media (max-width: 639px) {
	.az-lightbox__btn--prev, .az-lightbox__btn--next { top: auto; bottom: 16px; margin-top: 0; }
}

/* ---- Meeting point (inc/meeting.php) ----------------------------------------- */
.az-meet { display: flex; flex-direction: column; gap: 20px; }
.az-meet__map { padding: var(--bezel-pad); border-radius: var(--radius-bezel); background: var(--color-white); }
.az-meet__svg { width: 100%; height: auto; border-radius: var(--radius-md); background: var(--color-blush); }
.az-meet__address { display: flex; flex-direction: column; gap: 6px; font-style: normal; }
.az-meet__address b { font-size: var(--fs-lead); }
.az-meet__address span { color: var(--color-muted); }
.az-meet__tips { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-ui); }
.az-meet__tips li { position: relative; padding-left: 18px; line-height: 1.5; }
.az-meet__tips li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--color-ink); }
.az-sec .az-meet__map { background: var(--color-blush-3); }

/* ---- Price ("from €89 / person") -------------------------------------------- */
.az-price { color: var(--color-ink); }
.az-price__from, .az-price__unit { color: var(--color-muted); font-size: var(--fs-sm); }
.az-price b { font-size: var(--fs-lg); }

/* ---- Badges on photos ------------------------------------------------------- */
.az-tag {
	display: inline-flex;
	padding: 7px 10px;
	border-radius: var(--radius-badge);
	background: var(--color-red);
	color: var(--color-white);
	font-size: var(--fs-xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
}
.az-tag--light { background: var(--color-white); color: var(--color-ink); }

/* ---- Sticky booking bar on phones (inc/cruises.php) -------------------------- */
.az-mbar { display: none; }
@media (max-width: 767px) {
	.az-mbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 10px 14px max(10px, env(safe-area-inset-bottom));
		border-top: 1px solid var(--color-line);
		background: var(--color-white);
		box-shadow: var(--shadow-float);
		transform: translateY(110%);
		transition: transform 500ms var(--ease);
	}
	.az-mbar.is-visible { transform: none; }
	body:has(.az-mbar) { --az-bar-h: 70px; }
	.az-mbar__price { flex: 1; min-width: 0; color: var(--color-muted); font-size: var(--fs-sm); }
	.az-mbar-price b { color: var(--color-ink); font-size: var(--fs-md); }
	.az-mbar-price__from, .az-mbar-price__unit { color: var(--color-muted); }
	.az-mbar__wa {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 48px;
		height: 48px;
		border-radius: var(--radius-pill);
		box-shadow: inset 0 0 0 1.5px var(--color-ink);
		color: var(--color-ink);
	}
	.az-mbar__cta {
		flex: 0 0 auto;
		padding: 14px 18px;
		border-radius: var(--radius-pill);
		background: var(--color-red);
		color: var(--color-white);
		font-size: var(--fs-ui);
		font-weight: 700;
		text-decoration: none;
	}
	/* The cookie banner sits above the bar. */
	body:has(.az-mbar.is-visible) .cc { bottom: 80px; }
}

/* ---- Check lists and departure chips (cruise cards, cruise pages, booking) ---- */
.az-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-ui); }
.az-checks li { display: flex; gap: 12px; line-height: 1.5; }
.az-checks .az-icon { flex: 0 0 auto; margin-top: 3px; color: var(--color-red); }
/* A list icon sits on the first line; flex would otherwise stretch the svg to the item's height (multi-line items on phones). */
li > svg.az-icon { align-self: flex-start; }
.az-slots { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); font-weight: 700; }
.az-slots span { padding: 6px 10px; border: 1px solid var(--color-line-2); border-radius: var(--radius-chip); font-variant-numeric: tabular-nums; }
.az-slots .is-highlight { border-color: var(--color-red); color: var(--color-red); }

/* ---- Booking card + "ask the captain" (inc/booking.php; cruise pages, private charter) ---- */
.az-booking__head { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 16px; border-bottom: 1px dashed var(--color-line-2); }
.az-booking__label { color: var(--color-red); }
.az-booking-price__from, .az-booking-price__unit { color: var(--color-muted); font-size: var(--fs-small); }
.az-booking-price b { font-family: var(--font-display); font-size: var(--fs-time); font-weight: 500; }
.az-booking__body { display: flex; flex-direction: column; gap: 22px; padding: 18px 22px 22px; }
.az-booking__fallback { display: flex; flex-direction: column; gap: 14px; }
/* Regiondo widget: room reserved while it loads (no layout jump); the theme inside is assets/css/regiondo-theme.css. */
.az-booking__widget { display: flex; flex-direction: column; gap: 14px; }
.az-booking__widget booking-widget { display: block; min-height: 460px; }
.az-booking__widget booking-widget[hidden],
.az-booking__fallback[hidden] { display: none; }
.az-booking__title { font-family: var(--font-display); font-size: var(--fs-eyebrow); }
.az-booking__text { color: var(--color-muted); font-size: var(--fs-small); line-height: 1.6; }
.az-booking__choice { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--color-red-tint); color: var(--color-red); font-weight: 700; }
.az-booking__step { display: flex; flex-direction: column; gap: 10px; }
.az-booking__step .az-caps { color: var(--color-muted-2); }
.az-booking__trust { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--color-muted); font-size: var(--fs-small); }
.az-booking__trust li { display: flex; gap: 10px; }
.az-booking__trust .az-icon { flex: 0 0 auto; margin-top: 3px; color: var(--color-red); }
.az-ask { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-tile); background: var(--color-blush-3); color: var(--color-ink); text-decoration: none; }
.az-ask:hover { background: var(--color-blush); }
.az-ask__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-red); }
.az-ask b { display: block; font-size: var(--fs-ui); }
.az-ask__text > span { display: block; color: var(--color-muted); font-size: var(--fs-sm); }
.az-ask__text > .az-ask__reply { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 4px 11px 4px 9px; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-ink); font-size: var(--fs-xs); font-weight: 700; }
.az-ask__reply i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--color-red); }
@media (prefers-reduced-motion: no-preference) {
	.az-ask__reply i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-red); animation: az-ping 2s ease-out infinite; }
	@keyframes az-ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
}


/* ---- Phone carousel (.az-snap): reels / videos scroll sideways with the next card peeking.
 * "body" outranks the block grids (block styles load after base.css). */
@media (max-width: 767px) {
	body .az-snap {
		display: flex;
		flex-wrap: nowrap;
		flex-direction: row;
		gap: 12px;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	body .az-snap::-webkit-scrollbar { display: none; }
	body .az-snap > * { flex: 0 0 68%; min-width: 0; scroll-snap-align: start; }
	body .az-snap:focus-visible { outline-offset: -2px; }
	body .az-snap--wide > *,
	body .az-snap--wide > [data-snap-contents] > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
	/* A wrapper inside the strip (reviews' side column) lets its cards join the row. */
	body .az-snap > [data-snap-contents] { display: contents; }
	body .az-snap--wide { align-items: stretch; }
	.az-snap-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
	.az-snap-dots button {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: var(--color-line-2);
		cursor: pointer;
		transition: width var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
	}
	.az-snap-dots button[aria-current="true"] { width: 22px; background: var(--color-red); }
}
/* Large phones / small tablets: two cards and a peek instead of one huge card. */
@media (min-width: 560px) and (max-width: 767px) {
	body .az-snap > * { flex-basis: 42%; }
	body .az-snap--wide > *,
	body .az-snap--wide > [data-snap-contents] > * { flex-basis: 58%; }
}
@media (min-width: 768px) {
	.az-snap-dots { display: none; }
}

/* Inline lists with "·" separators (cruise meta line, private hero facts, separate
   service facts): on phones the items wrap, and a dot would start or end a line —
   the dots go, the gap stays. */
@media (max-width: 599px) {
	:is(.az-cruise-title__meta, .az-phero__facts, .az-separate-service__facts) > span[aria-hidden="true"] { display: none; }
}
