/*
Theme Name: PixelMaker – Pensjonat Giecówka
Theme URI: https://pixelmaker.pl/
Author: PixelMaker
Author URI: https://pixelmaker.pl/
Description: Indywidualny wygląd strony Pensjonat Giecówka oparty na motywie PixelMaker.
Template: pixelmaker
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixelmaker-giecowka
Update URI: false
*/

/*
 * Wygląd Pensjonatu Giecówka: reguły uzupełniające theme.json.
 * Ciepłe drewno i woda: terakota, miód, kremowe tło,
 * szeryfowe nagłówki z kursywą.
 * Klasy sekcji z prefiksem gc- (Zaawansowane → Dodatkowe klasy CSS w edytorze).
 */

:root {
	--gc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--gc-radius: 22px;
	--gc-radius-s: 14px;
	--gc-shadow: 0 1px 2px rgb(36 23 15 / 0.05), 0 24px 48px -30px rgb(36 23 15 / 0.38);
	--gc-shadow-lift: 0 2px 4px rgb(36 23 15 / 0.06), 0 34px 60px -30px rgb(36 23 15 / 0.48);
	--gc-tint: color-mix(in srgb, var(--wp--preset--color--primary) 11%, var(--wp--preset--color--surface));
	--gc-bg: var(--wp--preset--color--base);
	--gc-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 8'%3E%3Cpath d='M1 4c3.5-4 6.5-4 10 0s6.5 4 10 0 6.5-4 10 0' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
	--gc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E4E2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.2'/%3E%3C/svg%3E");
}

.has-base-2-background-color {
	--gc-bg: var(--wp--preset--color--base-2);
}

::selection {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
	color: var(--wp--preset--color--heading);
}

/* ---------- Typografia ---------- */

main h1,
main h2 {
	letter-spacing: -0.018em;
	text-wrap: balance;
}

main h2 {
	font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.6rem);
	font-weight: 360;
	line-height: 1.06;
}

main h3 {
	font-weight: 450;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

main p {
	text-wrap: pretty;
}

:where(h1, h2, h3) em {
	color: var(--wp--preset--color--primary);
	font-style: italic;
	font-weight: 320;
}

:where(.has-white-color, .gc-hero, .gc-band, .gc-footer) :where(h1, h2, h3) em {
	color: var(--wp--preset--color--accent);
}

main .wp-block-image img,
main .wp-block-gallery img {
	border-radius: var(--wp--custom--radius--image);
}

/* Nadtytuł: drobne wersaliki z falą jeziora przed tekstem. */
.gc-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0;
	color: var(--wp--preset--color--primary);
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.gc-eyebrow::before {
	content: "";
	flex: none;
	width: 32px;
	height: 8px;
	background: currentcolor;
	-webkit-mask: var(--gc-wave) center / contain no-repeat;
	mask: var(--gc-wave) center / contain no-repeat;
}

.gc-eyebrow + :where(h1, h2) {
	margin-top: 1rem !important;
}

:where(.gc-hero, .gc-band, .gc-footer) .gc-eyebrow {
	color: var(--wp--preset--color--accent);
}

/* ---------- Przyciski ---------- */

.wp-block-button__link {
	transition: background-color 0.25s var(--gc-ease), color 0.25s var(--gc-ease), border-color 0.25s var(--gc-ease), transform 0.25s var(--gc-ease), box-shadow 0.25s var(--gc-ease);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-dark);
	box-shadow: 0 14px 28px -16px rgb(125 60 33 / 0.75);
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent);
	background: transparent;
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}

.wp-block-button.gc-button-light .wp-block-button__link {
	border-color: rgb(255 255 255 / 0.55);
	color: var(--wp--preset--color--white);
}

.wp-block-button.gc-button-light .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--heading);
}

.wp-block-button.gc-button-white .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--heading);
}

.wp-block-button.gc-button-white .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--black);
}

/* ---------- Nagłówek strony: logo klienta, telefon jako przycisk ---------- */

/* Logo: złoty napis odręczny – wyższy niż zwykłe logo, żeby był czytelny. */
.pm-header {
	--pm-logo-h: 84px !important;
	--pm-logo-h-scrolled: 62px !important;
	--pm-logo-h-mobile: 54px !important;
}

.pm-header:has(.wp-block-site-logo img) .wp-block-site-title {
	display: none;
}

/* Na jasnym tle złoto przyciemnione do ciepłego brązu (jasne jest za blade). */
.pm-header .wp-block-site-logo img {
	object-fit: contain;
	filter: brightness(0.58) saturate(1.35) hue-rotate(-8deg);
	transition: filter 0.3s var(--gc-ease);
}

/* Na zdjęciu i ciemnym tle – oryginalne złoto. */
.pm-header.is-position-overlay:not(.is-scrolled) .wp-block-site-logo img {
	filter: drop-shadow(0 1px 8px rgb(20 12 6 / 0.45));
}

.pm-header .wp-block-navigation-item__content {
	font-weight: 500;
	text-decoration: underline 1.5px transparent;
	text-underline-offset: 0.5em;
	transition: text-decoration-color 0.25s var(--gc-ease);
}

.pm-header .wp-block-navigation-item__content:hover,
.pm-header .current-menu-item > .wp-block-navigation-item__content,
.pm-header .wp-block-navigation-item__content[aria-current="page"] {
	text-decoration-color: var(--wp--preset--color--accent);
}

.pm-header .pm-header-phone .pm-company__item {
	align-items: center;
	padding: 0.6em 1.2em;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	transition: background-color 0.25s var(--gc-ease);
}

.pm-header .pm-header-phone .pm-company__item:hover {
	background: var(--wp--preset--color--primary-dark);
}

.pm-header .pm-header-phone .pm-icon {
	margin-top: 0;
}

.pm-header .pm-header-phone a,
.pm-header .pm-header-phone a:hover {
	color: var(--wp--preset--color--on-primary) !important;
	text-decoration: none;
}

@media (max-width: 600px) {

	.pm-header .pm-header-phone .pm-company__item {
		padding: 0;
	}
}

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

.gc-hero.wp-block-cover {
	padding-bottom: calc(var(--wp--preset--spacing--80) + 3.5rem) !important;
}

.gc-hero h1 {
	max-width: min(980px, 100%) !important;
	font-size: clamp(2.85rem, 1.6rem + 5vw, 5.75rem);
	font-weight: 330;
	letter-spacing: -0.025em;
	line-height: 0.98;
}

.gc-hero h1 em {
	display: block;
	font-weight: 300;
}

.gc-hero .has-large-font-size {
	max-width: 33rem;
	color: rgb(255 255 255 / 0.9) !important;
}

@media (max-width: 781px) {

	.gc-hero.wp-block-cover {
		padding-top: 7.5rem !important;
	}

	.gc-hero h1 {
		font-size: 2.6rem;
	}

	.gc-hero h1 em {
		font-size: 0.8em;
	}
}

.gc-hero .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40) !important;
}

@media (prefers-reduced-motion: no-preference) {

	.gc-hero .wp-block-cover__image-background {
		animation: gc-hero-in 12s ease-out both;
	}

	@keyframes gc-hero-in {

		from {
			transform: scale(1.08);
		}
	}
}

/* Tytuł podstrony (zdjęcie w nagłówku) na tej samej linii co treść poniżej. */
.pm-page-hero > .wp-block-cover__inner-container > * {
	max-width: var(--wp--style--global--wide-size);
}

/* ---------- Najważniejsze informacje: karta na hero ---------- */

.gc-features__card {
	position: relative;
	z-index: 2;
	margin-top: -5.5rem !important;
	padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.25rem, 3.5vw, 3rem);
	border-radius: var(--gc-radius);
	background: var(--wp--preset--color--surface);
	box-shadow: 0 2px 6px rgb(36 23 15 / 0.05), 0 40px 80px -40px rgb(36 23 15 / 0.45);
}

.gc-feature.pm-icon-box {
	align-items: center;
	gap: 1rem;
}

.gc-feature .pm-icon-box__icon,
.gc-chip .pm-icon-box__icon,
.gc-panel__head .pm-icon-box__icon {
	border-radius: 50%;
	background: var(--gc-tint);
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent);
}

.gc-feature .pm-icon-box__icon {
	width: 58px;
	height: 58px;
}

.gc-feature .gc-feature__title {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.3rem;
	font-weight: 480;
	line-height: 1.15;
}

.gc-feature .gc-feature__text {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

@media (min-width: 1100px) {

	.gc-feature + .gc-feature {
		padding-left: clamp(1rem, 2vw, 2rem);
		border-left: 1px solid var(--wp--preset--color--line);
	}
}

@media (max-width: 781px) {

	.gc-features__card {
		margin-top: -3.5rem !important;
	}

	.gc-features__card .is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.5rem 1rem !important;
	}

	.gc-feature.pm-icon-box {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.gc-feature .pm-icon-box__icon {
		width: 48px;
		height: 48px;
	}

	.gc-feature .gc-feature__title {
		font-size: 1.125rem;
	}
}

/* ---------- Wstęp: dwa zdjęcia i plakietka z odległością ---------- */

.gc-duo {
	position: relative;
	padding-bottom: 18%;
}

.gc-duo .gc-duo__main {
	width: 86%;
	margin: 0 0 0 auto;
}

.gc-duo .gc-duo__main img {
	box-shadow: var(--gc-shadow);
}

.gc-duo .gc-duo__small {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48%;
	margin: 0;
}

.gc-duo .gc-duo__small img,
.gc-unit .gc-unit__small img {
	border: 8px solid var(--gc-bg);
	border-radius: calc(var(--wp--custom--radius--image) + 8px);
	box-shadow: 0 30px 60px -30px rgb(36 23 15 / 0.5);
}

.gc-duo .gc-duo__badge {
	position: absolute;
	top: 9%;
	left: 2%;
	max-width: 11rem;
	margin: 0;
	padding: 1.1rem 1.3rem 1.2rem;
	border-radius: 18px;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 24px 40px -22px rgb(125 60 33 / 0.8);
	color: var(--wp--preset--color--on-primary);
	font-size: 0.9375rem;
	line-height: 1.3;
}

.gc-duo .gc-duo__badge strong {
	display: block;
	margin-bottom: 0.15rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.4rem;
	font-weight: 400;
	line-height: 1;
}

@media (max-width: 781px) {

	.gc-duo .gc-duo__badge {
		top: auto;
		right: 0;
		bottom: 4%;
		left: auto;
		padding: 0.85rem 1rem;
	}

	.gc-duo .gc-duo__badge strong {
		font-size: 1.8rem;
	}
}

/* ---------- Nagłówek sekcji: tytuł z lewej, opis z prawej ---------- */

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

.gc-section-head p:not(.gc-eyebrow) {
	max-width: 30rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
}

@media (min-width: 782px) {

	.gc-section-head p:not(.gc-eyebrow) {
		margin-left: auto;
	}
}

/* ---------- Karty pokoi ---------- */

.gc-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--gc-radius);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--gc-shadow);
	transition: transform 0.45s var(--gc-ease), box-shadow 0.45s var(--gc-ease);
}

.gc-card:hover {
	box-shadow: var(--gc-shadow-lift);
	transform: translateY(-5px);
}

.gc-card > .wp-block-image {
	overflow: hidden;
	margin: 0;
}

main .gc-card > .wp-block-image img {
	border-radius: 0;
	transition: transform 0.9s var(--gc-ease);
}

.gc-card:hover > .wp-block-image img {
	transform: scale(1.05);
}

.gc-card__body {
	flex: 1;
	padding: 1.4rem 1.5rem 1.6rem;
}

.gc-card__body h3 a {
	color: var(--wp--preset--color--heading);
	text-decoration: none;
}

/* Cała karta klikalna (link w tytule), przycisk zostaje nad nią. */
.gc-card__body h3 a::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
}

.gc-card__body h3 a:focus-visible {
	outline: none;
}

.gc-card:has(h3 a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.gc-card .gc-card__meta {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.gc-card__body > .wp-block-buttons {
	position: relative;
	z-index: 2;
	margin-top: auto !important;
	padding-top: 0.25rem;
}

/* Przycisk w karcie jako odnośnik ze strzałką. */
.gc-card .wp-block-button.is-style-outline .wp-block-button__link,
.gc-card .wp-block-button.is-style-outline .wp-block-button__link:hover {
	padding: 0.35em 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--wp--preset--color--primary-dark);
	font-weight: 650;
	transform: none;
}

.gc-card .wp-block-button.is-style-outline .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.3s var(--gc-ease);
}

.gc-card:hover .wp-block-button.is-style-outline .wp-block-button__link::after {
	transform: translateX(5px);
}

@media (max-width: 781px) {

	/* Na telefonie karty pokoi w rzędzie przesuwanym palcem. */
	.gc-cards.wp-block-group.is-layout-grid {
		grid-template-columns: none !important;
		grid-auto-columns: min(82%, 20rem);
		grid-auto-flow: column;
		gap: 1rem !important;
		overflow-x: auto;
		margin-inline: calc(var(--wp--style--root--padding-left, 1rem) * -1) calc(var(--wp--style--root--padding-right, 1rem) * -1);
		padding: 0.5rem var(--wp--style--root--padding-right, 1rem) 1.5rem var(--wp--style--root--padding-left, 1rem);
		scroll-padding-inline: var(--wp--style--root--padding-left, 1rem);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.gc-cards > .gc-card {
		scroll-snap-align: start;
	}

	.gc-card:hover {
		transform: none;
	}
}

/* ---------- Lista z ptaszkami ---------- */

.gc-ticks {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gc-ticks li {
	position: relative;
	padding-left: 1.85rem;
	line-height: 1.45;
}

.gc-ticks li::before {
	content: "";
	position: absolute;
	top: 0.12em;
	left: 0;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--gc-check) center / 0.72rem no-repeat, var(--gc-tint);
}

.gc-card .gc-ticks {
	gap: 0.4rem;
	font-size: 0.9375rem;
}

.gc-ticks--columns {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1.5rem;
}

/* ---------- Udogodnienia: białe „żetony” z ikoną w kółku ---------- */

.gc-chip.pm-icon-box {
	align-items: center;
	gap: 0.85rem;
	padding: 0.7rem 1rem 0.7rem 0.7rem;
	border-radius: var(--gc-radius-s);
	background: var(--wp--preset--color--surface);
	transition: box-shadow 0.3s var(--gc-ease), transform 0.3s var(--gc-ease);
}

.gc-chip.pm-icon-box:hover {
	box-shadow: 0 14px 28px -20px rgb(36 23 15 / 0.4);
	transform: translateY(-2px);
}

.gc-chip .pm-icon-box__icon {
	width: 44px;
	height: 44px;
}

.gc-chip p {
	color: var(--wp--preset--color--heading);
	font-size: 0.975rem;
	font-weight: 550;
	line-height: 1.3;
}

.gc-chips {
	gap: 0.75rem !important;
}

@media (max-width: 599px) {

	.gc-chips.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.gc-chip.pm-icon-box {
		padding-block: 0.55rem;
	}

	/* W opisie pokoju krótkie etykiety: dwie kolumny. */
	.gc-unit .gc-chips.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.5rem !important;
	}

	.gc-unit .gc-chip.pm-icon-box {
		gap: 0.55rem;
		padding: 0.45rem 0.6rem 0.45rem 0.45rem;
	}

	.gc-unit .gc-chip .pm-icon-box__icon {
		width: 34px;
		height: 34px;
	}

	.gc-unit .gc-chip p {
		font-size: 0.875rem;
	}
}

/* ---------- Wygoda: wysokie zdjęcie na miodowym podkładzie ---------- */

.gc-photo-tall {
	position: relative;
	isolation: isolate;
	margin-right: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}

.gc-photo-tall::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 2rem -1.5rem -1.5rem 2rem;
	border-radius: calc(var(--gc-radius) + 6px);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 30%, var(--wp--preset--color--base-2));
}

.gc-photo-tall img,
.gc-unit .gc-photo img {
	box-shadow: var(--gc-shadow);
}

/* ---------- Ciemny pas na zdjęciu: trasa od drzwi Giecówki ---------- */

.gc-band {
	color: rgb(255 255 255 / 0.88);
}

.gc-band h2 {
	color: var(--wp--preset--color--white);
}

.gc-band__columns {
	gap: var(--wp--preset--spacing--60) !important;
}

.gc-band__columns > .wp-block-column:first-child > .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40) !important;
}

.gc-route {
	border-top: 1px solid rgb(255 255 255 / 0.18);
}

.gc-route > .gc-route__stop {
	gap: 2rem;
	margin: 0 !important;
	padding: 1.5rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.18);
	transition: padding 0.35s var(--gc-ease);
}

.gc-route > .gc-route__stop:hover {
	padding-left: 0.75rem;
}

.gc-route .gc-route__where {
	flex: 0 0 11rem;
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
	font-style: italic;
	font-weight: 320;
	line-height: 1.05;
}

.gc-route .gc-route__what {
	max-width: 36rem;
	margin: 0;
	padding-top: 0.35rem;
	color: rgb(255 255 255 / 0.88);
	font-size: var(--wp--preset--font-size--medium);
}

@media (max-width: 781px) {

	.gc-route > .gc-route__stop {
		flex-direction: column;
		gap: 0.25rem;
		padding: 1.15rem 0;
	}

	.gc-route .gc-route__where {
		flex-basis: auto;
	}
}

/* ---------- Galeria na stronie głównej (karuzela) ---------- */

.gc-carousel {
	margin-top: var(--wp--preset--spacing--50) !important;
}

.gc-carousel + .pm-carousel__nav {
	max-width: var(--wp--style--global--wide-size);
}

.gc-carousel figure.wp-block-image {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--image);
}

.gc-carousel figure.wp-block-image img {
	transition: transform 0.9s var(--gc-ease);
}

.gc-carousel figure.wp-block-image:hover img {
	transform: scale(1.04);
}

/* ---------- Zaproszenie do rezerwacji: karta na zdjęciu ---------- */

.gc-cta.wp-block-cover > .wp-block-cover__inner-container > .wp-block-group {
	max-width: 780px;
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 4rem);
	border-radius: calc(var(--gc-radius) + 8px);
	background: var(--wp--preset--color--surface);
	box-shadow: 0 50px 100px -50px rgb(0 0 0 / 0.6);
	color: var(--wp--preset--color--contrast);
}

.gc-cta h2 {
	color: var(--wp--preset--color--heading);
	font-size: clamp(2.3rem, 1.4rem + 3vw, 3.9rem);
}

.gc-cta .gc-eyebrow {
	justify-content: center;
}

.gc-cta p:not(.gc-eyebrow) {
	max-width: 34rem;
	margin-inline: auto;
	color: var(--wp--preset--color--muted);
}

/* ---------- Pokoje: zdjęcie główne i mniejsze nachodzące ---------- */

.gc-unit__media {
	position: relative;
	padding: 0 13% 15% 0;
}

.gc-unit__media .gc-photo {
	margin: 0;
}

.gc-unit .gc-unit__small {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 40%;
	margin: 0;
}

.gc-unit .gc-chips {
	margin-top: var(--wp--preset--spacing--30) !important;
}

.gc-unit .gc-ticks {
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 782px) {

	.gc-unit--reverse.wp-block-columns {
		flex-direction: row-reverse;
	}

	.gc-unit--reverse .gc-unit__media {
		padding: 0 0 15% 13%;
	}

	.gc-unit--reverse .gc-unit__small {
		right: auto;
		left: 0;
	}

	.gc-unit.wp-block-columns {
		gap: clamp(2.5rem, 6vw, 6rem);
	}
}

/* Kolejne zdjęcia pokoju: równy rząd pod jednostką (z powiększeniem). */
.gc-unit-more.wp-block-gallery.has-nested-images {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: clamp(0.6rem, 1.2vw, 1rem);
	margin-top: var(--wp--preset--spacing--60) !important;
}

.gc-unit-more.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: 100% !important;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--image);
}

@media (max-width: 781px) {

	.gc-unit-more.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-flow: row;
	}
}

.gc-unit-more figure .wp-lightbox-container {
	height: 100%;
}

.gc-unit-more.wp-block-gallery figure img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.9s var(--gc-ease);
}

.gc-unit-more.wp-block-gallery figure:hover img {
	transform: scale(1.04);
}

/* Cena: karta z dużą kwotą. */
.gc-price {
	gap: var(--wp--preset--spacing--50) !important;
	padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
	border-radius: calc(var(--gc-radius) + 6px);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--gc-shadow);
}

.gc-price .gc-price__value {
	margin: 0.35rem 0 0;
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
	font-weight: 360;
	line-height: 1.1;
}

.gc-price .gc-price__value strong {
	color: var(--wp--preset--color--primary);
	font-size: 1.75em;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.gc-price .gc-price__note {
	max-width: 34rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Atrakcje: panele z ikoną ---------- */

.gc-panel {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--gc-radius);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--gc-shadow);
}

.gc-panel__head.pm-icon-box {
	align-items: center;
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.gc-panel__head .pm-icon-box__icon {
	width: 56px;
	height: 56px;
}

.gc-panels {
	margin-top: var(--wp--preset--spacing--60) !important;
}

/* ---------- Galeria: mozaika z dużymi kadrami ---------- */

.gc-gallery.wp-block-gallery.has-nested-images {
	display: grid;
	grid-auto-flow: dense;
	grid-auto-rows: clamp(11rem, 17vw, 16rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.6rem, 1.2vw, 1rem);
	margin-top: var(--wp--preset--spacing--60) !important;
}

.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: 100% !important;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--image);
}

.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 1) {
	grid-row: span 2;
	grid-column: span 2;
}

.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 4) {
	grid-row: span 2;
	grid-column: 2 / span 2;
}

/*
 * Niepełna ostatnia szóstka (klient może dodawać i usuwać zdjęcia):
 * ostatnie zdjęcie wypełnia dziurę obok dużego kadru albo zajmuje cały rząd.
 */
.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 1):last-child,
.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 4):last-child {
	grid-column: 1 / -1;
}

.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 2):last-child,
.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 5):last-child {
	grid-row: span 2;
}

.gc-gallery figure .wp-lightbox-container {
	height: 100%;
}

.gc-gallery.wp-block-gallery figure img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: cover;
	transition: transform 0.9s var(--gc-ease);
}

.gc-gallery.wp-block-gallery figure:hover img {
	transform: scale(1.04);
}

@media (max-width: 781px) {

	.gc-gallery.wp-block-gallery.has-nested-images {
		grid-auto-rows: 9.5rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 1),
	.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 4) {
		grid-row: span 2;
		grid-column: 1 / -1;
	}

	.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 2):last-child,
	.gc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(6n + 5):last-child {
		grid-row: auto;
		grid-column: 1 / -1;
	}
}

/* ---------- Kontakt ---------- */

.gc-contact.wp-block-columns {
	gap: clamp(2rem, 5vw, 5rem);
}

.gc-contact-card {
	margin-top: var(--wp--preset--spacing--30) !important;
	padding: 1.4rem 1.6rem;
	border-radius: var(--gc-radius);
	background: var(--wp--preset--color--surface);
}

.gc-contact-card > * + * {
	margin-top: 0.6rem !important;
}

.gc-contact-card .gc-contact-card__title {
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.gc-contact__phones a {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	font-weight: 380;
	line-height: 1.15;
}

.gc-contact__phones .pm-company__label {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
}

.gc-contact-card .pm-icon,
.gc-footer .pm-icon {
	color: var(--wp--preset--color--primary);
}

.gc-form-card {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: calc(var(--gc-radius) + 6px);
	background: var(--wp--preset--color--surface);
	box-shadow: 0 2px 6px rgb(36 23 15 / 0.05), 0 40px 90px -45px rgb(36 23 15 / 0.45);
}

.gc-form-card .pm-form__field :is(input, textarea) {
	border-color: var(--wp--preset--color--line);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	transition: border-color 0.2s var(--gc-ease), background-color 0.2s var(--gc-ease);
}

.gc-form-card .pm-form__field :is(input, textarea):hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--line));
}

.gc-form-card .pm-form__field :is(input, textarea):focus-visible {
	background: var(--wp--preset--color--surface);
}

.gc-form-card .pm-form__submit,
.gc-form-card .pm-form__actions .wp-block-button__link {
	min-width: 12rem;
}

.gc-map-section {
	padding-bottom: var(--wp--preset--spacing--80) !important;
}

.gc-map-section .wp-block-pixelmaker-map,
.gc-map-section iframe {
	overflow: hidden;
	border-radius: var(--gc-radius);
}

/* ---------- Stopka: zdjęcie domu pod ciemną nakładką ---------- */

/*
 * Strona kończy się sekcją na całą szerokość (zaproszenie, mapa):
 * bez pustego pasa nad stopką.
 */
.pm-page-content > .alignfull:first-child:not(.wp-block-cover) {
	padding-top: var(--wp--preset--spacing--70) !important;
}

/* Sekcje na całą szerokość stykają się (bez pasków między zdjęciami). */
.pm-page-content > .alignfull + .alignfull {
	margin-block-start: 0 !important;
}

.pm-page-content:has(> .alignfull:last-child) {
	padding-bottom: 0 !important;
}

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

.gc-footer.wp-block-cover {
	min-height: 0;
	color: rgb(255 255 255 / 0.74);
	font-size: 0.975rem;
}

.gc-footer a {
	color: rgb(255 255 255 / 0.92);
	text-decoration: none;
}

.gc-footer a:hover {
	color: var(--wp--preset--color--accent);
}

.gc-footer__grid {
	row-gap: var(--wp--preset--spacing--50) !important;
}

@media (min-width: 1024px) {

	.gc-footer__grid.is-layout-grid {
		grid-template-columns: 1.5fr 1fr 1.1fr 1fr !important;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {

	.gc-footer__grid.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.gc-footer__grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 599px) {

	.gc-footer__grid.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

.gc-footer .gc-footer__logo img {
	width: 230px;
	height: auto;
}

.gc-footer .gc-footer__about {
	max-width: 24rem;
	line-height: 1.6;
}

.gc-footer .gc-footer__title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--accent);
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.gc-footer .gc-footer__title::after {
	content: "";
	flex: 1;
	max-width: 3rem;
	height: 1px;
	background: rgb(255 255 255 / 0.22);
}

.gc-footer__nav a {
	display: inline-block;
	font-size: var(--wp--preset--font-size--medium);
	transition: color 0.2s var(--gc-ease), transform 0.25s var(--gc-ease);
}

.gc-footer__nav a:hover {
	transform: translateX(4px);
}

.gc-footer .pm-company {
	gap: 0.75rem;
}

.gc-footer .pm-icon {
	color: var(--wp--preset--color--accent);
}

.gc-footer .pm-company__label {
	color: rgb(255 255 255 / 0.55);
}

.gc-footer__facts {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gc-footer__facts li {
	position: relative;
	padding-left: 1.1rem;
}

.gc-footer__facts li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.gc-footer .gc-footer__sep {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40) !important;
	border: 0;
	border-top: 1px solid rgb(255 255 255 / 0.16);
	opacity: 1;
}

.gc-footer__bottom {
	gap: 0.75rem 2rem !important;
	color: rgb(255 255 255 / 0.6);
	font-size: var(--wp--preset--font-size--x-small);
}

.gc-footer__bottom p {
	margin: 0;
}

.gc-footer__bottom a {
	color: rgb(255 255 255 / 0.8);
}
