/**
 * Amber theme 2.0 - "Cieply elegancki" (variant E).
 *
 * Layout from variant B, typography from A (Cormorant Garamond + Manrope),
 * dark palette from B, light palette from the warm C. Brand colours come from
 * the logo (teal #098ca9, orange #ef7f1a). Mobile-first; desktop is the
 * enhancement layer. The theme is switched with data-theme on <html>
 * (set before first paint by the inline script in functions.php).
 *
 * Contrast: text and button pairs are AA (4.5:1). Where the preview palette
 * missed it, tokens below are slightly darker (muted/tag/buttons in light mode).
 */

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	color-scheme: light;

	--teal: #098ca9;
	--orange: #ef7f1a;
	--hero-accent: #7fd3e6;

	/* Light = warm palette C */
	--bg: #fbf7f0;
	--alt: #f4ede2;
	--card: #ffffff;
	--card-alt: #ffffff;
	--text: #2a2620;
	--muted: #6b6358;
	--heading: #2a2620;
	--tag: #9c4d08;
	--line: #e7dccb;
	--link: #0b5d6e;
	--link-hover: #0b4452;
	--btn-bg: #0b6e85;
	--btn-hover: #0b5d6e;
	--btn-fg: #ffffff;
	--or-bg: #ef7f1a;
	--or-hover: #d96d0d;
	--or-fg: #1d1409;
	--strip-bg: #0b5d6e;
	--ic-bg: #fde7d1;
	--ghost-bd: #2a2620;
	--ghost-fg: #2a2620;
	--kp-bg: #ffffff;
	--kp-bd: #f3c79c;
	--foot: #0b5d6e;
	--foot-text: #d6e8ec;
	--foot-head: #ffffff;
	--foot-line: rgba(255, 255, 255, 0.18);
	--veil: rgba(42, 38, 32, 0.8);
	--hdr-bg: rgba(251, 247, 240, 0.94);
	--ok: #1a7f37;
	--warn: #a8530a;
	--bad: #c1121f;
	--shadow: 0 10px 30px rgba(42, 38, 32, 0.12);

	/* Fonts (self-hosted) */
	--font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Legacy aliases used by the content layer below */
	--color-bg: var(--bg);
	--color-section: var(--alt);
	--color-border: var(--line);
	--color-text: var(--text);
	--color-text-muted: var(--muted);
	--color-text-invert: #ffffff;
	--color-link: var(--link);
	--color-link-hover: var(--link-hover);
	--amber-blue-alt: var(--btn-hover);
	--amber-orange-alt: var(--or-hover);

	--fs-base: 1.0625rem;
	--fs-sm: 0.875rem;
	--fs-lg: 1.25rem;
	--fs-h1: 2.5rem;
	--fs-h2: 2rem;
	--fs-h3: 1.5rem;
	--lh-base: 1.65;
	--lh-heading: 1.05;
	--fw-normal: 400;
	--fw-bold: 700;

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;
	--space-6: 3rem;

	--container: 1280px;
	--measure: 46rem;
	--gutter: 20px;
	--radius: 6px;
	--radius-lg: 14px;
}

/* Dark = palette B. Applied by data-theme, or by the OS setting when JS is off. */
:root[data-theme="dark"] {
	color-scheme: dark;

	--bg: #041f27;
	--alt: #062f3a;
	--card: #062f3a;
	--card-alt: #041f27;
	--text: #eaf3f5;
	--muted: #9fb7bd;
	--heading: #ffffff;
	--tag: #7fd3e6;
	--line: rgba(255, 255, 255, 0.12);
	--link: #7fd3e6;
	--link-hover: #b4e8f3;
	--btn-bg: #0b6e85;
	--btn-hover: #0e8aa6;
	--or-hover: #f5993f;
	--strip-bg: #0b6e85;
	--ic-bg: rgba(9, 140, 169, 0.18);
	--ghost-bd: rgba(255, 255, 255, 0.35);
	--ghost-fg: #ffffff;
	--kp-bg: linear-gradient(90deg, #11414c, #0b3540);
	--kp-bd: rgba(239, 127, 26, 0.45);
	--foot: #02161c;
	--foot-text: #9fb7bd;
	--veil: rgba(4, 31, 39, 0.78);
	--hdr-bg: rgba(4, 31, 39, 0.94);
	--ok: #5ad08a;
	--warn: #ffa24d;
	--bad: #ff8f8f;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		color-scheme: dark;

		--bg: #041f27;
		--alt: #062f3a;
		--card: #062f3a;
		--card-alt: #041f27;
		--text: #eaf3f5;
		--muted: #9fb7bd;
		--heading: #ffffff;
		--tag: #7fd3e6;
		--line: rgba(255, 255, 255, 0.12);
		--link: #7fd3e6;
		--link-hover: #b4e8f3;
		--btn-bg: #0b6e85;
		--btn-hover: #0e8aa6;
		--or-hover: #f5993f;
		--strip-bg: #0b6e85;
		--ic-bg: rgba(9, 140, 169, 0.18);
		--ghost-bd: rgba(255, 255, 255, 0.35);
		--ghost-fg: #ffffff;
		--kp-bg: linear-gradient(90deg, #11414c, #0b3540);
		--kp-bd: rgba(239, 127, 26, 0.45);
		--foot: #02161c;
		--foot-text: #9fb7bd;
		--veil: rgba(4, 31, 39, 0.78);
		--hdr-bg: rgba(4, 31, 39, 0.94);
		--ok: #5ad08a;
		--warn: #ffa24d;
		--bad: #ff8f8f;
		--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	}
}

/* ==========================================================================
   Fonts (self-hosted, latin + latin-ext for Polish; no external requests)
   ========================================================================== */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 76px;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--text);
	background-color: var(--bg);
	-webkit-font-smoothing: antialiased;
}

html.theme-fade,
html.theme-fade body {
	transition: background-color 0.35s, color 0.35s;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: var(--lh-heading);
	letter-spacing: -0.01em;
	color: var(--heading);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--link);
}

a:hover,
a:focus {
	color: var(--link-hover);
}

:focus-visible {
	outline: 3px solid var(--hero-accent);
	outline-offset: 2px;
}

:root:not([data-theme="dark"]) :focus-visible {
	outline-color: var(--btn-bg);
}

/* ==========================================================================
   Accessibility utilities
   ========================================================================== */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: var(--space-2) var(--space-3);
	background: var(--bg);
	color: var(--link);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   Layout + shared components
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main {
	padding-block: var(--space-5) var(--space-6);
}

.site-main--home {
	padding: 0;
}

.tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tag);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.btn:hover,
.btn:focus {
	background: var(--btn-hover);
	color: var(--btn-fg);
}

.btn--ghost {
	background: transparent;
	border-color: var(--ghost-bd);
	color: var(--ghost-fg);
}

.btn--ghost:hover,
.btn--ghost:focus {
	background: var(--alt);
	color: var(--ghost-fg);
}

/* Glass buttons sit on photos, which are always darkened by an overlay. */
.btn--glass {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff;
	backdrop-filter: blur(6px);
}

.btn--glass:hover,
.btn--glass:focus {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.btn--orange {
	background: var(--or-bg);
	color: var(--or-fg);
}

.btn--orange:hover,
.btn--orange:focus {
	background: var(--or-hover);
	color: var(--or-fg);
}

/* ==========================================================================
   Header (solid on inner pages, overlaid on the photo hero of the front page)
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 30;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	color: var(--text);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 68px;
}

.site-header--overlay {
	position: absolute;
	inset: 0 0 auto 0;
	background: transparent;
	border-bottom: 0;
	color: #ffffff;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	color: inherit;
	text-decoration: none;
}

.brand:hover,
.brand:focus {
	color: inherit;
}

.brand__mark {
	width: 36px;
	height: 36px;
	padding: 4px;
	border-radius: 8px;
	background: #ffffff;
}

.site-header .theme-toggle,
.site-header .menu-toggle {
	flex: none;
}

.theme-toggle {
	display: none;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: 0.9;
}

html[data-theme] .theme-toggle {
	display: inline-grid;
}

.theme-toggle:hover {
	opacity: 1;
	background: rgba(127, 127, 127, 0.18);
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The icon shows what a click switches to. */
.theme-toggle__sun {
	display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
	display: block;
}

html[data-theme="dark"] .theme-toggle__moon {
	display: none;
}

.menu-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: var(--radius);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before {
	position: absolute;
	top: -6px;
}

.menu-toggle__bars::after {
	position: absolute;
	top: 6px;
}

.header-tel {
	display: none;
}

/* On the solid (non-photo) header the glass button needs real contrast. */
.site-header:not(.site-header--overlay) .btn--glass {
	background: transparent;
	border-color: var(--ghost-bd);
	color: var(--ghost-fg);
	backdrop-filter: none;
}

.site-header:not(.site-header--overlay) .btn--glass:hover,
.site-header:not(.site-header--overlay) .btn--glass:focus {
	background: var(--alt);
	color: var(--ghost-fg);
}

/* Mobile: off-canvas drawer */
.main-navigation {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 60;
	width: min(86vw, 360px);
	padding: 72px var(--space-4) var(--space-4);
	overflow-y: auto;
	background: var(--bg);
	color: var(--text);
	box-shadow: var(--shadow);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform 0.25s, visibility 0.25s;
}

.main-navigation.is-open {
	transform: none;
	visibility: visible;
}

.drawer-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: transparent;
	color: var(--text);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.main-navigation .menu,
.main-navigation .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation .menu > li {
	position: relative;
	border-bottom: 1px solid var(--line);
}

.main-navigation a {
	display: block;
	padding: 14px 0;
	color: var(--text);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: var(--link);
}

.main-navigation .sub-menu {
	display: none;
	padding-left: var(--space-3);
}

.main-navigation .sub-menu a {
	font-weight: 500;
}

.main-navigation .submenu-open > .sub-menu {
	display: block;
}

.submenu-toggle {
	position: absolute;
	top: 6px;
	right: 0;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}

.submenu-toggle::after {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	content: "";
}

.submenu-toggle[aria-expanded="true"]::after {
	transform: rotate(-135deg);
}

.main-navigation .drawer-tel {
	display: flex;
	width: 100%;
	margin-top: var(--space-4);
	padding: 15px 26px;
	color: var(--btn-fg);
	text-align: center;
}

.main-navigation .drawer-tel:hover,
.main-navigation .drawer-tel:focus {
	color: var(--btn-fg);
}

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 25;
	background: rgba(2, 22, 28, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.nav-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body.nav-open {
	overflow: hidden;
}

@media (min-width: 960px) {
	.site-header__inner {
		min-height: 88px;
		gap: var(--space-4);
	}

	.menu-toggle,
	.drawer-close,
	.nav-overlay,
	.main-navigation .drawer-tel,
	.submenu-toggle {
		display: none;
	}

	.header-tel {
		display: inline-flex;
	}

	.main-navigation {
		position: static;
		z-index: auto;
		width: auto;
		padding: 0;
		overflow: visible;
		background: transparent;
		box-shadow: none;
		color: inherit;
		transform: none;
		visibility: visible;
		transition: none;
	}

	.main-navigation .menu {
		display: flex;
		gap: 30px;
	}

	.main-navigation .menu > li {
		border: 0;
	}

	.main-navigation a {
		padding: 8px 0;
		color: inherit;
		font-size: 0.9375rem;
		font-weight: 500;
	}

	.site-header--overlay .main-navigation a {
		color: #ffffff;
	}

	.main-navigation a:hover,
	.main-navigation a:focus,
	.main-navigation .current-menu-item > a {
		color: inherit;
		box-shadow: 0 2px 0 var(--orange);
	}

	.main-navigation .sub-menu {
		position: absolute;
		top: 100%;
		left: -16px;
		z-index: 5;
		display: block;
		min-width: 240px;
		padding: var(--space-2) var(--space-3);
		border: 1px solid var(--line);
		border-radius: var(--radius-lg);
		background: var(--bg);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.15s, visibility 0.15s;
	}

	.main-navigation .sub-menu a {
		color: var(--text);
	}

	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
	}
}

/* ==========================================================================
   Front page
   ========================================================================== */
.home-hero {
	position: relative;
	min-height: 640px;
	height: 100svh;
	max-height: 900px;
	overflow: hidden;
	color: #ffffff;
}

.home-hero__img,
.home-hero__img img,
.photo-fill,
.photo-fill img {
	display: block;
	width: 100%;
	height: 100%;
}

.home-hero__img {
	position: absolute;
	inset: 0;
}

.home-hero__img img,
.photo-fill img {
	object-fit: cover;
}

.home-hero::after {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(4, 31, 39, 0.55) 0%, rgba(4, 31, 39, 0.2) 55%, rgba(4, 31, 39, 0) 80%),
		linear-gradient(180deg, rgba(4, 31, 39, 0.72) 0%, rgba(4, 31, 39, 0.5) 24%, rgba(4, 31, 39, 0.62) 40%, rgba(4, 31, 39, 0.72) 58%, rgba(4, 31, 39, 0.95) 100%);
	content: "";
}

.home-hero__in {
	position: absolute;
	inset: auto 0 44px;
	z-index: 2;
	text-shadow: 0 1px 14px rgba(2, 18, 24, 0.55);
}

.home-hero .tag {
	color: var(--hero-accent);
}

.home-hero h1 {
	max-width: 980px;
	margin: 14px 0 20px;
	color: #ffffff;
	font-size: clamp(3.4rem, 13vw, 8.5rem);
	line-height: 0.98;
}

.home-hero h1 i {
	color: var(--hero-accent);
	font-weight: 500;
}

.home-hero p {
	max-width: 36rem;
	margin: 0 0 28px;
	color: #e4eef0;
	font-size: 1.0625rem;
}

.home-hero__cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.strip {
	background: var(--strip-bg);
	color: #ffffff;
}

.strip__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
}

.strip__grid li {
	padding: 18px 0 18px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.strip__grid li:nth-child(odd) {
	padding-left: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.strip b {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1.1;
}

.strip span {
	font-size: 0.875rem;
}

.home-section {
	padding-block: 72px;
}

.home-section--alt {
	background: var(--alt);
}

.home-section--flush {
	padding-top: 0;
}

.home-section--tight {
	padding-bottom: 56px;
}

.home-head {
	max-width: 760px;
	margin-bottom: 32px;
}

.home-head h2 {
	margin: 12px 0 0;
	font-size: clamp(2.8rem, 8vw, 5.1rem);
}

.home-head p {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 1.0625rem;
}

.stays {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.stay {
	position: relative;
	height: 600px;
	overflow: hidden;
	border-radius: var(--radius-lg);
	color: #eaf3f5;
}

.stay::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 31, 39, 0.05) 8%, rgba(4, 31, 39, 0.82) 30%, rgba(4, 31, 39, 0.93) 52%, rgba(4, 31, 39, 0.96) 100%);
	content: "";
}

.stay__badge {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
	padding: 8px 14px;
	border-radius: var(--radius);
	background: var(--or-bg);
	color: var(--or-fg);
	font-size: 0.8125rem;
	font-weight: 700;
}

.stay__body {
	text-shadow: 0 1px 10px rgba(2, 18, 24, 0.5);
	position: absolute;
	inset: auto 22px 24px;
	z-index: 2;
}

.stay .tag {
	color: var(--hero-accent);
}

.stay h3 {
	margin: 8px 0 12px;
	color: #ffffff;
	font-size: clamp(3rem, 9vw, 4rem);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.chips li {
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem;
}

.stay__bot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.stay__price {
	color: #d3e3e7;
	font-size: 0.875rem;
}

.stay__price b {
	display: block;
	white-space: nowrap;
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 3rem;
	font-weight: 600;
	line-height: 1;
}

.stay__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.stay__booking {
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.stay__booking:hover,
.stay__booking:focus {
	color: var(--hero-accent);
}

.price-tables {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 20px;
}

.price-tables > div {
	padding: 20px 24px;
	border-radius: var(--radius-lg);
	background: var(--card);
}

.price-tables p {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.9375rem;
}

.price-tables p:last-child {
	border: 0;
}

.price-tables b {
	color: var(--heading);
}

.price-note {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

/* Big "Kajaki" tile leading to kajakipilica.pl */
.kajaki-tile {
	position: relative;
	display: block;
	min-height: 480px;
	overflow: hidden;
	border-radius: 18px;
	color: #ffffff;
	text-decoration: none;
}

.kajaki-tile::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(4, 31, 39, 0.92) 0%, rgba(4, 31, 39, 0.65) 55%, rgba(4, 31, 39, 0.25) 100%);
	content: "";
}

.kajaki-tile .photo-fill {
	position: absolute;
	inset: 0;
	transition: transform 0.6s;
}

.kajaki-tile:hover .photo-fill,
.kajaki-tile:focus-visible .photo-fill {
	transform: scale(1.04);
}

.kajaki-tile__body {
	text-shadow: 0 1px 12px rgba(2, 18, 24, 0.55);
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	min-height: 480px;
	padding: 28px 24px;
}

.kajaki-tile .tag {
	color: var(--hero-accent);
}

.kajaki-tile h2 {
	margin: 10px 0 14px;
	color: #ffffff;
	font-size: clamp(3.6rem, 14vw, 7rem);
}

.kajaki-tile p {
	max-width: 32rem;
	margin: 0 0 24px;
	color: #e4eef0;
	font-size: 1.0625rem;
}

.kajaki-tile:hover .btn,
.kajaki-tile:focus-visible .btn {
	background: var(--or-hover);
}

.perk-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.perk {
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--card-alt);
}

.perk .photo-fill {
	height: 230px;
}

.perk__body {
	padding: 24px 24px 30px;
}

.perk__ic {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 10px;
	background: var(--ic-bg);
	color: var(--tag);
	font-weight: 700;
}

.perk h3 {
	margin: 0 0 10px;
	font-size: 2.6rem;
}

.perk p {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
}

.home-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 170px;
	gap: 10px;
}

.home-gallery a {
	display: block;
	overflow: hidden;
	border-radius: 10px;
}

.home-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.home-gallery a:hover img,
.home-gallery a:focus-visible img {
	transform: scale(1.05);
}

.area {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	border-radius: 18px;
	background: var(--card);
}

.area .photo-fill {
	height: 260px;
}

.area__body {
	padding: 32px 22px;
}

.area h2 {
	margin: 12px 0 16px;
	font-size: clamp(2.8rem, 8vw, 3.9rem);
}

.area__body > p {
	margin: 0 0 24px;
	color: var(--muted);
}

.area dl {
	margin: 0;
}

.area dl div {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.9375rem;
}

.area dt {
	color: var(--muted);
}

.area dd {
	margin: 0;
	text-align: right;
}

.area .btn {
	margin-top: 24px;
}

.contact {
	position: relative;
	padding-block: 90px;
	overflow: hidden;
	color: #ffffff;
	text-align: center;
}

.contact .photo-fill {
	position: absolute;
	inset: 0;
}

.contact::after {
	position: absolute;
	inset: 0;
	background: var(--veil);
	content: "";
}

.contact .container {
	text-shadow: 0 1px 12px rgba(2, 18, 24, 0.55);
	position: relative;
	z-index: 2;
}

.contact .tag {
	color: var(--hero-accent);
}

.contact h2 {
	margin: 14px 0 18px;
	color: #ffffff;
	font-size: clamp(3.2rem, 11vw, 6rem);
}

.contact p {
	max-width: 36rem;
	margin: 0 auto 32px;
	color: #e8f0f2;
	font-size: 1.0625rem;
}

.contact__nums {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

@media (min-width: 700px) {
	:root {
		--gutter: 48px;
	}

	.home-hero__cta {
		flex-direction: row;
	}

	.strip__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.strip__grid li,
	.strip__grid li:nth-child(odd) {
		padding: 26px 0 26px 24px;
		border-bottom: 0;
		border-right: 1px solid rgba(255, 255, 255, 0.25);
	}

	.strip__grid li:first-child {
		padding-left: 0;
	}

	.strip__grid li:last-child {
		border-right: 0;
	}

	.strip b {
		font-size: 3rem;
	}

	.home-hero__in {
		bottom: 90px;
	}

	.home-hero p {
		font-size: 1.25rem;
	}

	.home-section {
		padding-block: 120px;
	}

	.home-section--flush {
		padding-top: 0;
	}

	.home-section--tight {
		padding-bottom: 72px;
	}

	.home-head {
		margin-bottom: 56px;
	}

	.stays,
	.price-tables {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}

	.price-tables {
		margin-top: 28px;
	}

	.stay {
		height: 680px;
	}

	.stay__body {
		inset: auto 36px 34px;
	}

	.stay__bot {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}

	.stay__actions {
		flex-direction: column;
		align-items: flex-end;
		gap: 12px;
	}

	.kajaki-tile,
	.kajaki-tile__body {
		min-height: 560px;
	}

	.kajaki-tile__body {
		padding: 56px;
	}

	.perk-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}

	.perk .photo-fill {
		height: 300px;
	}

	.perk__body {
		padding: 28px 30px 34px;
	}

	.home-gallery {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 280px;
		gap: 12px;
	}

	.home-gallery .is-wide {
		grid-column: span 2;
	}

	.home-gallery .is-tall {
		grid-row: span 2;
	}

	.area {
		grid-template-columns: 1fr 1fr;
		min-height: 560px;
	}

	.area .photo-fill {
		height: auto;
	}

	.area__body {
		padding: 56px;
	}

	.contact {
		padding-block: 150px;
	}

	.contact__nums {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* ==========================================================================
   Inner pages: optional photo hero for pages with a featured image
   ========================================================================== */
.page-hero {
	position: relative;
	min-height: 320px;
	overflow: hidden;
	color: #ffffff;
}

.page-hero .photo-fill {
	position: absolute;
	inset: 0;
}

.page-hero::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 31, 39, 0.25) 0%, rgba(4, 31, 39, 0.88) 100%);
	content: "";
}

.page-hero__in {
	text-shadow: 0 1px 12px rgba(2, 18, 24, 0.55);
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 320px;
	padding-block: 32px;
}

.page-hero .tag {
	color: var(--hero-accent);
}

.page-hero h1 {
	margin: 8px 0 0;
	color: #ffffff;
	font-size: clamp(3rem, 10vw, 5.5rem);
}

.container--narrow {
	max-width: calc(var(--measure) + 2 * var(--gutter));
}

.entry--page .entry-header {
	margin-bottom: var(--space-4);
}

@media (min-width: 700px) {
	.page-hero,
	.page-hero__in {
		min-height: 440px;
	}

	.page-hero__in {
		padding-block: 48px;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--foot);
	color: var(--foot-text);
	font-size: 0.875rem;
}

.site-footer a {
	color: var(--foot-head);
	text-decoration-color: rgba(255, 255, 255, 0.4);
	text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--hero-accent);
}

.footer-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
	padding-block: 56px 36px;
}

.footer-cols h2 {
	margin: 0 0 14px;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--foot-head);
}

.footer-cols p {
	margin: 0;
}

.footer-cols address {
	font-style: normal;
}

.footer-cols ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-cols li + li {
	margin-top: 6px;
}

.site-footer .brand {
	margin: 0 0 14px;
	color: var(--foot-head);
}

.footer-bar {
	border-top: 1px solid var(--foot-line);
}

.footer-bar__inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-block: 20px;
	font-size: 0.8125rem;
}

.footer-bar p {
	margin: 0;
}

@media (min-width: 700px) {
	.footer-cols {
		grid-template-columns: 2fr 1.4fr 1.2fr 1.2fr;
		gap: 40px;
		padding-block: 70px 44px;
	}

	.footer-bar__inner {
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.theme-fade,
	html.theme-fade body,
	.main-navigation,
	.nav-overlay,
	.kajaki-tile .photo-fill,
	.home-gallery img {
		transition: none;
	}
}

/* ==========================================================================
   Content layer (single posts, pages, lightbox, galleries, tables, video
   facade, 404, search). Carried over from theme 1.x and re-mapped to the
   tokens above so it follows the light/dark switch.
   ========================================================================== */
   Post card (blog list)
   ========================================================================== */
.post-card {
	background: var(--color-bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card + .post-card {
	margin-top: var(--space-5);
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--color-section);
}

.post-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__category {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	padding: 0.3em 0.7em;
	background: var(--or-bg);
	color: var(--or-fg);
	font-family: var(--font-heading);
	font-size: 0.6875rem;
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}

.post-card__category:hover,
.post-card__category:focus {
	background: var(--or-hover);
	color: var(--color-text-invert);
}

.post-card__body {
	padding: var(--space-4);
}

/* Category badge when the post has no thumbnail: inline above the title. */
.post-card__body > .post-card__category {
	position: static;
	display: inline-block;
	margin-bottom: var(--space-2);
}

.post-card__title {
	margin: 0 0 var(--space-2);
	font-size: var(--fs-h3);
	line-height: var(--lh-heading);
}

.post-card__title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
	color: var(--tag);
}

.post-card__meta {
	margin-bottom: var(--space-3);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

.post-card__excerpt {
	margin-bottom: var(--space-3);
}

.post-card__excerpt p:first-child {
	margin-top: 0;
}

.post-card__excerpt p:last-child {
	margin-bottom: 0;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	color: var(--tag);
	text-decoration: none;
}

.post-card__more:hover,
.post-card__more:focus {
	color: var(--tag);
}

.post-card__arrow {
	transition: transform 0.15s ease;
}

.post-card__more:hover .post-card__arrow,
.post-card__more:focus .post-card__arrow {
	transform: translateX(3px);
}

/* ==========================================================================
   Single post & page (entry)
   ========================================================================== */
.entry-featured {
	margin: 0 0 var(--space-4);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-section);
}

.entry-featured__image {
	display: block;
	width: 100%;
	height: auto;
}

/* Breadcrumbs: subtle orientation/SEO path. Mobile-first — wraps, never overflows. */
.breadcrumbs {
	margin-bottom: var(--space-4);
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs__item {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Separator before every item except the first. */
.breadcrumbs__item + .breadcrumbs__item::before {
	content: "›";
	margin-right: var(--space-2);
	color: var(--color-text-muted);
}

.breadcrumbs a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
	color: var(--link);
	text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
	color: var(--color-text);
}

.entry-header {
	margin-bottom: var(--space-4);
}

/* Standalone category badge for single posts (decoupled from the post card). */
.entry-category {
	display: inline-block;
	margin-bottom: var(--space-3);
	padding: 0.3em 0.7em;
	background: var(--or-bg);
	color: var(--or-fg);
	font-family: var(--font-heading);
	font-size: 0.6875rem;
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}

.entry-category:hover,
.entry-category:focus {
	background: var(--or-hover);
	color: var(--color-text-invert);
}

.entry-title {
	margin: 0 0 var(--space-3);
	/* Fluid heading: scales between mobile and the --fs-h1 token. */
	font-size: clamp(1.75rem, 1.25rem + 2.4vw, var(--fs-h1));
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-3);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

/* --- Post / page body --- */
.entry-content {
	--measure: 72ch;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: var(--space-4);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

/* --- Post footer: tag pills (single.php) --- */
/* Discreet block under the content; only rendered when the post has tags.
   Mobile-first: pills wrap, comfortable tap targets, no horizontal scroll. */
.entry-footer {
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2) var(--space-3);
}

.entry-tags__label {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

.entry-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-tags__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem; /* ~36px comfortable tap target on mobile */
	padding: 0.35em 0.85em;
	background: var(--color-section);
	color: var(--link);
	font-size: var(--fs-sm);
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.entry-tags__link:hover,
.entry-tags__link:focus {
	background: var(--btn-bg);
	color: var(--color-text-invert);
	border-color: var(--link);
}

/* --- Post extra (single.php): tabbed carousel ("Powiązane artykuły" /
   "Więcej od autora"). Clickable tabs, one panel + 3 cards at a time, prev/next
   arrows. Enhanced by amber-post-extra.js; degrades to a plain grid without JS.
   Mobile-first card grid: 1 column, then 2, then 3. */
.post-extra {
	margin-top: var(--space-6);
	padding-top: var(--space-5);
	border-top: 1px solid var(--color-border);
}

.post-extra__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	margin-bottom: var(--space-4);
	border-bottom: 2px solid var(--link);
}

.post-extra__tab {
	margin: 0;
	padding: var(--space-2) var(--space-4);
	background: var(--color-section);
	color: var(--color-text-muted);
	font-family: var(--font-heading);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 0;
	border-radius: var(--radius) var(--radius) 0 0;
	cursor: pointer;
}

.post-extra__tab.is-active {
	background: var(--btn-bg);
	color: var(--color-text-invert);
}

.post-extra__track {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}

@media (min-width: 560px) {
	.post-extra__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.post-extra__track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Carousel controls: small chevron buttons, bottom-left like the old site. */
.post-extra__controls {
	display: flex;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

.post-extra__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--color-section);
	color: var(--link);
	font-size: var(--fs-lg);
	line-height: 1;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.post-extra__nav:hover:not(:disabled),
.post-extra__nav:focus:not(:disabled) {
	background: var(--btn-bg);
	color: var(--color-text-invert);
	border-color: var(--link);
}

.post-extra__nav:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Compact related card: lighter than the blog post card. */
.related-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover,
.related-card:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.related-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--color-section);
}

.related-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-card__body {
	display: block;
	padding: var(--space-3);
}

.related-card__date {
	display: block;
	margin-bottom: var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

.related-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2; /* clamp to 2 lines; fallback below caps height */
	line-clamp: 2;
	max-height: calc(2 * var(--lh-heading) * var(--fs-base)); /* fallback when line-clamp unsupported */
	overflow: hidden;
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	font-size: var(--fs-base);
	line-height: var(--lh-heading);
	color: var(--color-text);
}

.related-card__link:hover .related-card__title,
.related-card__link:focus .related-card__title {
	color: var(--link);
}

/* Keep flowing text to a comfortable measure; let tables/media use full width. */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > dl,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > blockquote,
.entry-content > .page-links {
	max-width: var(--measure);
}

.entry-content h2 {
	margin-top: var(--space-5);
	font-size: var(--fs-h2);
}

.entry-content h3 {
	margin-top: var(--space-5);
	font-size: var(--fs-h3);
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: var(--space-2);
}

/* Normalise legacy single-post typography imported from classic editor/Office.
   Scoped to single posts so booking, gallery, rental tables and pages are not affected. */
body.single .entry-content [style*="font-family"] {
	font-family: inherit !important;
}

/* Keep nested unordered lists visually consistent: black disc bullets, not hollow circles. */
body.single .entry-content ul,
body.single .entry-content ul ul {
	list-style-type: disc;
}

/* Majówka/offer posts (#1120, #1470, #1723): heavy Office/classic-editor markup —
   inconsistent inline font-size (13–32px) and colours, plus a hardcoded width:800px
   caption on #1470 that blew the mobile layout viewport out to ~816px. Scoped to these
   three posts only, so other route posts are untouched. Inline text-align left as-is. */
body.postid-1120 .entry-content [style*="font-size"],
body.postid-1470 .entry-content [style*="font-size"],
body.postid-1723 .entry-content [style*="font-size"] {
	font-size: inherit !important;
}

body.postid-1120 .entry-content [style*="color"],
body.postid-1470 .entry-content [style*="color"],
body.postid-1723 .entry-content [style*="color"] {
	color: inherit !important;
}

/* Legacy fixed-width captions carry inline width; strip it so the figure fits.
   The max-width cap is now global (.entry-content .wp-caption). */
body.postid-1120 .entry-content .wp-caption,
body.postid-1470 .entry-content .wp-caption,
body.postid-1723 .entry-content .wp-caption {
	width: auto !important;
	height: auto;
}

body.postid-1120 .entry-content .wp-caption img,
body.postid-1470 .entry-content .wp-caption img,
body.postid-1723 .entry-content .wp-caption img {
	max-width: 100%;
	height: auto;
}

/* --- Offer layout component (clean Majówka/oferty: program days + price list) ---
   Scoped to .offer-* classes, so it only styles rebuilt offer content. Mobile-first. */
.entry-content .offer-lead {
	font-size: var(--fs-lg);
	color: var(--color-text-muted);
}

.entry-content .offer-hero {
	margin-block: var(--space-4);
}

.entry-content .offer-hero img {
	width: 100%;
	height: auto;
}

.entry-content .offer-program {
	display: grid;
	gap: var(--space-4);
	margin-block: var(--space-5);
}

.entry-content .offer-day {
	padding: var(--space-4);
	background: var(--color-section);
	border-left: 4px solid var(--link);
	border-radius: var(--radius);
}

.entry-content .offer-day > :first-child {
	margin-top: 0;
}

.entry-content .offer-day > :last-child {
	margin-bottom: 0;
}

.entry-content .offer-day h3 {
	margin-top: 0;
	color: var(--link);
}

.entry-content .offer-section {
	margin-block: var(--space-5);
}

.entry-content .offer-price-list {
	max-width: 28rem;
	padding-left: 0;
	list-style: none;
}

.entry-content .offer-price-list li {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--color-border);
}

.entry-content .offer-note {
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

/* --- Route/trip single posts: tidy legacy parameter tables, legacy equipment
   icons and leftover inline font-size. Scoped to single posts, so pages (#311
   rental tables, booking, gallery) and the rebuilt Majówka offers (no tables/
   inline) are untouched. */
body.single-post .entry-content [style*="font-size"] {
	font-size: inherit !important;
}

/* The cell borders define the table. No border/radius on the display:block table
   box: at width:100% it stretches a grey frame wider than the (shrink-to-content)
   cells. Keep the global overflow-x:auto + teal header; just keep it to the cells. */
body.single-post .entry-content table {
	border: 0;
	border-radius: 0;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
	padding: var(--space-3);
	border-color: var(--color-border);
	vertical-align: middle;
}

/* Cap any small legacy image that sits inside a table cell. */
body.single-post .entry-content td img,
body.single-post .entry-content th img {
	max-width: 96px;
	height: auto;
	border-radius: var(--radius);
	vertical-align: middle;
}

/* Legacy equipment icons (kajak/canoe/przenoska/domek/namiot) sit in the body as
   oversized, mismatched thumbnails. Cap them to a small, even size. */
body.single-post .entry-content img[src*="domek.png"],
body.single-post .entry-content img[src*="namiot.png"],
body.single-post .entry-content img[src*="kajak-1-os"],
body.single-post .entry-content img[src*="canoe-e1493374864579"],
body.single-post .entry-content img[src*="kajak-2-os"],
body.single-post .entry-content img[src*="przenoska.jpg"] {
	max-width: 96px;
	width: auto;
	height: auto;
	vertical-align: middle;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.entry-content figure {
	max-width: 100%;
	margin-inline: 0;
}

/* fix: legacy [caption] with inline width overflowing on mobile */
.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content figcaption {
	margin-top: var(--space-2);
	color: var(--color-text-muted);
	font-size: var(--fs-sm);
}

.entry-content blockquote {
	margin-inline: 0;
	padding: var(--space-2) var(--space-4);
	border-left: 4px solid var(--orange);
	background: var(--color-section);
	font-style: italic;
}

/* Route-parameter tables: readable, bordered, striped. */
.entry-content table {
	/* display:block + overflow-x lets a wide table scroll inside its own box
	   instead of pushing the page wider on mobile (no horizontal page blowout). */
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin-block: var(--space-4);
	font-size: var(--fs-sm);
}

.entry-content th,
.entry-content td {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--btn-bg);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
}

.entry-content tbody tr:nth-child(even) {
	background: var(--color-section);
}

/* Pasted tables often lack <thead>/<th> (header is the first <td><strong> row).
   Give that first row a light header look so the table reads clearly. */
.entry-content table:not(:has(thead)) tr:first-child td {
	background: var(--color-section);
	border-bottom: 2px solid var(--link);
	font-family: var(--font-heading);
}

/* Old "message-box" callouts from imported content (kept as styling hooks).
   Subtle teal accent in the theme colour — deliberately NOT a background fill:
   these wrappers hold full paragraphs (with links) and even the route table,
   so a fill would hide the teal links and swamp the table. A single accent
   colour (--amber-blue), no second highlight colour. The leftover inline
   highlight spans (#33cccc / #008ca8) are normalised separately in step 2c. */
.entry-content .message-box-head,
.entry-content .message-box-title {
	border-left: 4px solid var(--link);
	padding-left: var(--space-3);
	margin-block: var(--space-3);
}

.entry-content .message-box-content {
	padding: var(--space-2) var(--space-3);
	background: var(--color-section);
	border-radius: var(--radius);
}

/* Kayak spec card — rebuilt from imported nested tables (744 "Kajak TEST").
   Header colour comes from the existing .entry-content thead th rule (teal),
   responsive scroll from .entry-content table — no hardcoded colours here. */
.kayak-card {
	margin-block: var(--space-5);
	padding: var(--space-4);
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.kayak-card h3 {
	margin-top: 0;
	font-size: var(--fs-h3);
}

.kayak-card__img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin-bottom: var(--space-3);
}

/* Spec list as label/value pairs — no horizontal scroll for the 8 params.
   auto-fit: 1 column on narrow (mobile/sidebar), 2 columns when there's room. */
.kayak-specs-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 var(--space-4);
	margin: 0;
	font-size: var(--fs-sm);
}

.kayak-specs-list > div {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--line);
}

.kayak-specs-list dt {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	color: var(--link);
}

.kayak-specs-list dd {
	margin: 0;
	text-align: right;
	color: var(--color-text);
}

/* Route difficulty levels */
.trasa-latwa { color: var(--ok); }
.trasa-srednia { color: var(--warn); }
.trasa-trudna { color: var(--bad); }

/* ==========================================================================
   Post navigation (prev / next)
   ========================================================================== */
.post-navigation {
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
	display: grid;
	gap: var(--space-3);
}

@media (min-width: 769px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		text-align: right;
	}
}

.post-navigation a {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	text-decoration: none;
}

.post-navigation .nav-subtitle {
	display: block;
	margin-bottom: var(--space-1);
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-weight: var(--fw-normal);
	font-size: var(--fs-sm);
}

/* ==========================================================================
   Paginated post/page links
   ========================================================================== */
.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-5);
	font-family: var(--font-heading);
}

.page-links a,
.page-links > span {
	display: inline-flex;
	min-width: 2.25rem;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	padding: 0 var(--space-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
}

.page-links a:hover,
.page-links a:focus {
	border-color: var(--orange);
	color: var(--tag);
}

/* ==========================================================================
   Posts pagination (numbered)
   ========================================================================== */
.pagination {
	margin-top: var(--space-5);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-heading);
}

.pagination .page-numbers {
	display: inline-flex;
	min-width: 2.25rem;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	padding: 0 var(--space-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--color-text);
	text-decoration: none;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus {
	border-color: var(--orange);
	color: var(--tag);
}

.pagination .page-numbers.current {
	background: var(--or-bg);
	border-color: var(--orange);
	color: var(--or-fg);
}

/* Ellipsis: no box. */
.pagination .page-numbers.dots {
	border-color: transparent;
}

/* ==========================================================================
   Lightbox — image overlay (amber-lightbox.js)
   ========================================================================== */
.amber-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
	background: rgba(0, 0, 0, 0.85);
}

.amber-lightbox[hidden] {
	display: none;
}

/* Prevent the page behind the overlay from scrolling. */
body.amber-lightbox-open {
	overflow: hidden;
}

.amber-lightbox__figure {
	margin: 0;
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.amber-lightbox__img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--radius);
	background: #fff;
}

.amber-lightbox__caption {
	margin-top: var(--space-2);
	max-width: 92vw;
	color: var(--color-text-invert);
	font-size: var(--fs-sm);
	text-align: center;
}

.amber-lightbox__caption[hidden] {
	display: none;
}

.amber-lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: var(--color-text-invert);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.amber-lightbox__btn:hover,
.amber-lightbox__btn:focus {
	background: var(--btn-bg);
	outline: 2px solid var(--color-text-invert);
}

.amber-lightbox__btn[hidden] {
	display: none;
}

.amber-lightbox__close {
	top: var(--space-3);
	right: var(--space-3);
}

.amber-lightbox__prev {
	left: var(--space-3);
}

.amber-lightbox__next {
	right: var(--space-3);
}

/* Show that image links in content are clickable previews. */
.entry-content a[href$=".jpg"],
.entry-content a[href$=".jpeg"],
.entry-content a[href$=".png"],
.entry-content a[href$=".webp"] {
	cursor: zoom-in;
}

@media (max-width: 768px) {
	.amber-lightbox__btn {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.5rem;
	}
}

/* ==========================================================================
   Accommodation media — gallery grid + map CTA (scoped, mobile-first)
   Scoped to .accommodation-gallery so it never touches other galleries.
   Theme supports html5 'gallery' → WP prints no default gallery CSS, so this
   is the only styling; clean CSS Grid instead of the classic float layout.
   ========================================================================== */
.accommodation-media {
	margin-block: var(--space-5);
}

.accommodation-media > h2 {
	margin-bottom: var(--space-3);
}

/* Mobile-first: single column, full-width images, no horizontal scroll. */
.accommodation-gallery .gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
	margin: 0;
}

.accommodation-gallery .gallery-item {
	width: auto;
	margin: 0;
	float: none;
}

.accommodation-gallery .gallery-icon {
	margin: 0;
}

.accommodation-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Tablet/desktop: 2-column grid. */
@media (min-width: 640px) {
	.accommodation-gallery .gallery {
		grid-template-columns: 1fr 1fr;
	}
}

/* Map link as a button-like CTA — full width on mobile, inline on desktop. */
.map-cta {
	margin-top: var(--space-4);
}

.map-cta a {
	display: block;
	padding: var(--space-3) var(--space-4);
	background: var(--btn-bg);
	border-radius: var(--radius);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	text-align: center;
	text-decoration: none;
}

.map-cta a:hover,
.map-cta a:focus {
	background: var(--btn-hover);
	color: var(--color-text-invert);
}

@media (min-width: 640px) {
	.map-cta a {
		display: inline-block;
	}
}

/* ==========================================================================
   Video facade — privacy-friendly YouTube (amber-video-facade.js)
   Static thumbnail + play button; the heavy youtube-nocookie iframe loads only
   on click. Mobile-first, 16/9, no horizontal scroll.
   ========================================================================== */
.video-facade {
	margin-block: var(--space-4);
}

.video-facade__link {
	display: block;
	text-decoration: none;
	color: var(--color-link);
}

.video-facade__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: #000;
}

.video-facade__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: var(--color-text-invert);
	font-size: 1.5rem;
}

.video-facade__link:hover .video-facade__play,
.video-facade__link:focus .video-facade__play {
	background: var(--btn-bg);
}

.video-facade__text {
	display: block;
	margin-top: var(--space-2);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
}

/* Activated state: iframe replaces the thumbnail, same 16/9 box. */
.video-facade__embed {
	aspect-ratio: 16 / 9;
}

.video-facade__embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--radius);
}


/* ==========================================================================
   404 — branded "page not found" (mobile-first)
   Hero card inside the content area; river/compass theme, no external assets.
   ========================================================================== */
.error-404 {
	margin-block: var(--space-4);
	padding: var(--space-5) var(--space-4);
	background: var(--color-section);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-align: center;
}

.error-404__icon {
	display: block;
	width: clamp(90px, 28vw, 120px);
	height: auto;
	margin: 0 auto var(--space-3);
	color: var(--link);
}

.error-404__needle-n {
	fill: var(--orange);
}

.error-404__needle-s {
	fill: var(--link-hover);
}

.error-404__code {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(3rem, 12vw, 4.5rem);
	font-weight: var(--fw-bold);
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--tag);
}

.error-404__title {
	margin: var(--space-2) 0 0;
	font-family: var(--font-heading);
	font-size: var(--fs-h2);
	line-height: var(--lh-heading);
}

.error-404__intro {
	max-width: 48ch;
	margin: var(--space-3) auto 0;
	color: var(--color-text-muted);
}

.error-404__search {
	margin-top: var(--space-4);
}

.error-404__search form {
	display: flex;
	gap: var(--space-2);
	max-width: 28rem;
	margin: 0 auto;
}

.error-404__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.error-404__search button,
.error-404__search input[type="submit"] {
	padding: var(--space-2) var(--space-4);
	background: var(--btn-bg);
	border: 0;
	border-radius: var(--radius);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	cursor: pointer;
}

.error-404__search button:hover,
.error-404__search button:focus,
.error-404__search input[type="submit"]:hover,
.error-404__search input[type="submit"]:focus {
	background: var(--btn-hover);
}

.error-404__actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	max-width: 28rem;
	margin: var(--space-4) auto 0;
}

.error-404__primary,
.error-404__secondary {
	display: block;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	text-align: center;
	text-decoration: none;
}

.error-404__primary {
	background: var(--or-bg);
	color: var(--or-fg);
}

.error-404__primary:hover,
.error-404__primary:focus {
	background: var(--or-hover);
	color: var(--color-text-invert);
}

.error-404__secondary {
	background: transparent;
	border: 1px solid var(--link);
	color: var(--link);
}

.error-404__secondary:hover,
.error-404__secondary:focus {
	background: var(--btn-bg);
	color: var(--color-text-invert);
}

.error-404__links {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2);
	max-width: 28rem;
	margin: var(--space-5) auto 0;
	padding: 0;
	list-style: none;
}

.error-404__links a {
	display: block;
	padding: var(--space-3);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	font-family: var(--font-heading);
	text-decoration: none;
}

.error-404__links a:hover,
.error-404__links a:focus {
	border-color: var(--link);
	color: var(--link);
}

/* Desktop polish: a touch more breathing room and a 2-up quick-links grid. */
@media (min-width: 768px) {
	.error-404 {
		padding: var(--space-6) var(--space-5);
	}

	.error-404__actions {
		flex-direction: row;
		justify-content: center;
	}

	.error-404__primary,
	.error-404__secondary {
		flex: 0 1 auto;
		min-width: 12rem;
	}

	.error-404__links {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Search — results header + helpful empty state (mobile-first)
   Reuses the post cards for hits; styles the WP search form + popular links
   for the no-results state. Mirrors the .error-404 look with its own classes.
   ========================================================================== */
.search-header {
	margin-block: var(--space-4);
}

.search-header__query {
	color: var(--tag);
}

.search-no-results {
	margin-block: var(--space-4);
}

.search-no-results__lead {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--fs-h2);
	line-height: var(--lh-heading);
}

.search-no-results__hint {
	max-width: 48ch;
	margin: var(--space-2) 0 0;
	color: var(--color-text-muted);
}

.search-no-results__form {
	margin-top: var(--space-4);
}

.search-no-results__form form {
	display: flex;
	gap: var(--space-2);
	max-width: 28rem;
}

.search-no-results__form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.search-no-results__form button,
.search-no-results__form input[type="submit"] {
	padding: var(--space-2) var(--space-4);
	background: var(--btn-bg);
	border: 0;
	border-radius: var(--radius);
	color: var(--color-text-invert);
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	cursor: pointer;
}

.search-no-results__form button:hover,
.search-no-results__form button:focus,
.search-no-results__form input[type="submit"]:hover,
.search-no-results__form input[type="submit"]:focus {
	background: var(--btn-hover);
}

.search-no-results__links {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2);
	max-width: 28rem;
	margin: var(--space-5) 0 0;
	padding: 0;
	list-style: none;
}

.search-no-results__links a {
	display: block;
	padding: var(--space-3);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	font-family: var(--font-heading);
	text-decoration: none;
}

.search-no-results__links a:hover,
.search-no-results__links a:focus {
	border-color: var(--link);
	color: var(--link);
}

@media (min-width: 768px) {
	.search-no-results__links {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Photo gallery (/galeria/) — core gallery block with hero-style hover zoom
   Selectors scoped to .amber-gallery-grid so normal content images are
   untouched. Motion mirrors .hero__image; rounded corners use --radius
   (NOT core is-style-rounded, which renders pill/circle shapes).
   ========================================================================== */
.amber-gallery-grid.wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: 1fr; /* mobile-first: single column */
	gap: var(--space-3);
	align-items: stretch;
}

/* Core prints (inline) `figure.wp-block-image:not(#individual-image){width:calc(50% …)}`
   — an ID-level selector that otherwise wins and shrinks every tile to ~half a
   column. We match that specificity with :not(#individual-image) so each tile
   fills its grid cell. */
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image,
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: 100%;
	max-width: none;
	flex-basis: auto;
	margin: 0;
	overflow: hidden; /* clip the zoom, like .hero__item */
	border-radius: var(--radius);
}

/* Link must be a block box so the image fills the whole tile (core forces
   display:flex on it via the same ID-level selector). */
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) > a,
.amber-gallery-grid figure.wp-block-image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Override core's img height:100% (also ID-level) with an explicit aspect-ratio
   so tiles get a real, uniform height in the grid. */
.amber-gallery-grid.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img,
.amber-gallery-grid figure.wp-block-image img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.4s ease; /* same motion as .hero__image */
}

/* Subtle zoom on hover/focus — mirrors .hero__item:hover .hero__image. */
.amber-gallery-grid figure.wp-block-image:hover img,
.amber-gallery-grid figure.wp-block-image:focus-within img {
	transform: scale(1.05);
}

@media (min-width: 640px) {
	.amber-gallery-grid.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.amber-gallery-grid.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.amber-gallery-grid figure.wp-block-image img,
	.amber-gallery-grid figure.wp-block-image:hover img,
	.amber-gallery-grid figure.wp-block-image:focus-within img {
		transition: none;
		transform: none;
	}
}

/* ==========================================================================
   Kayak rental (/wypozyczalnia-kajakow/, #311) — minimal responsive fixes for
   legacy classic-editor content. No redesign: only stop tables/images from
   breaking layout. Theme globals already give img{max-width:100%} and
   .entry-content table{display:block;overflow-x:auto}; this only patches the
   things that actually break.
   ========================================================================== */

/* Defeat inline style="height:NNpx" on legacy tables — it combines with
   overflow-x:auto (→ overflow-y:auto) to collapse tables into tiny scroll boxes. */
body.page-id-311 .entry-content table {
	height: auto !important;
}

/* Let the 7-column spec sheets wrap on mobile instead of forcing each value
   onto one line: nowrap made rows ~711px wide, which blew the layout viewport
   out to ~712px on phones (no horizontal page scroll allowed). Values are short
   (e.g. "55×100 cm", "300 kg") so wrapping stays readable. On desktop there is
   room, so restore normal word-breaking to avoid needless mid-token breaks.
   Scoped to .table-data-sheet only — price/normal tables are untouched. */
body.page-id-311 .entry-content .table-data-sheet td,
body.page-id-311 .entry-content .table-data-sheet th {
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	body.page-id-311 .entry-content .table-data-sheet td,
	body.page-id-311 .entry-content .table-data-sheet th {
		overflow-wrap: normal;
	}
}

/* Legacy centered images that the theme doesn't style: block-center them and
   guarantee they stay within the container on mobile. */
body.page-id-311 .entry-content .aligncenter {
	display: block;
	margin-inline: auto;
	max-width: 100%;
	height: auto;
}

/* Legacy captioned images (.wp-caption, classic editor) carry inline
   style="width:600–696px". The global .entry-content .wp-caption max-width caps
   the wrapper; here we strip the inline fixed width so it scales down cleanly. */
body.page-id-311 .entry-content .wp-caption {
	width: auto !important;
	height: auto;
}

body.page-id-311 .entry-content .wp-caption img {
	max-width: 100%;
	height: auto;
}

/* Bike-rental page (313): the two imported equipment photos as a simple
   2-column thumbnail grid. Mobile-first — single column on phones, two columns
   from 520px. Links stay intact so the global lightbox (which intercepts
   .entry-content image links) still captures them. */
body.page-id-313 .entry-content .bike-rental-gallery {
	display: grid;
	gap: 1rem;
	margin-block: 1.5rem;
	/* Trim ~20px per thumbnail (~40px total) and re-centre the whole grid. */
	max-width: calc(100% - 40px);
	margin-inline: auto;
}

body.page-id-313 .entry-content .bike-rental-gallery a,
body.page-id-313 .entry-content .bike-rental-gallery img {
	display: block;
}

body.page-id-313 .entry-content .bike-rental-gallery img {
	width: 100%;
	height: auto;
}

@media (min-width: 520px) {
	body.page-id-313 .entry-content .bike-rental-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Contact page (364): the address/phone/email card is centred. Done page-scoped
   here instead of inline style on each heading. Not global — only this page. */
body.page-id-364 .entry-content h3 {
	text-align: center;
}

/* ==========================================================================
   Theme 2.0 adjustments on top of the content layer
   ========================================================================== */
.site-main > .page-hero:first-child {
	margin-top: calc(-1 * var(--space-5));
	margin-bottom: var(--space-4);
}

.map-cta a {
	font-family: var(--font-body);
	font-size: 0.9375rem;
}

.map-cta a:hover,
.map-cta a:focus {
	color: var(--btn-fg);
}

.entry-content .map-cta a,
.entry-content .map-cta a:hover,
.entry-content .map-cta a:focus {
	color: var(--btn-fg);
	text-decoration: none;
}
