/* ==================================================================
   Dom na sprzedaż – Klesztów
   ================================================================== */

:root {
	--accent: #ff1654;
	--accent-dark: #e00b45;
	--ink: #151b1d;
	--text: #5c6366;
	--bg: #ffffff;
	--tint: #f8f7fe;
	--card: #ffffff;
	--line: #e9e6e3;
	--on-dark: #ffffff;
	--shadow: 0 12px 34px -14px rgba(21, 27, 29, .22);
	--radius: 8px;
	--sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--header: 72px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #f3f4f5;
		--text: #a3a9ad;
		--bg: #0b0d0e;
		--tint: #121517;
		--card: #171a1c;
		--line: #2a2f32;
		--shadow: 0 12px 34px -14px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--ink: #f3f4f5;
	--text: #a3a9ad;
	--bg: #0b0d0e;
	--tint: #121517;
	--card: #171a1c;
	--line: #2a2f32;
	--shadow: 0 12px 34px -14px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.75 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .6em; color: var(--ink); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { flex-shrink: 0; }

.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }

.skip {
	position: absolute; left: 16px; top: -100px; z-index: 2000;
	padding: .6rem 1rem; border-radius: var(--radius);
	background: var(--accent); color: #fff;
}
.skip:focus { top: 12px; }

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

.eyebrow {
	margin: 0 0 .6rem;
	color: var(--accent);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.eyebrow--light { color: #fff; opacity: .9; }

/* ------------------------------------------------------------------
   Przyciski
   ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 50px; padding: .8rem 1.7rem;
	border: 2px solid transparent; border-radius: var(--radius);
	font: 700 1rem/1 var(--sans);
	text-decoration: none; cursor: pointer;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: .6rem 1.2rem; font-size: .9rem; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: #151b1d; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); color: #fff; }

.icon-btn {
	display: grid; place-items: center;
	width: 42px; height: 42px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%;
	background: var(--card); color: var(--ink);
	cursor: pointer;
	transition: border-color .25s, color .25s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------
   Nagłówek
   ------------------------------------------------------------------ */
.top {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header);
	transition: background .3s, box-shadow .3s;
}
.top__inner { display: flex; align-items: center; gap: 2rem; height: 100%; }
.brand {
	font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em;
	text-decoration: none; color: #fff;
	transition: color .3s;
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 1.6rem; margin-right: auto; }
.nav a {
	position: relative;
	font-size: .95rem; font-weight: 700; text-decoration: none; white-space: nowrap;
	color: rgba(255, 255, 255, .9);
	transition: color .25s;
}
.nav a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
	height: 2px; background: var(--accent);
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--accent); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.top__actions { display: flex; align-items: center; gap: .7rem; }
.top .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }

.top.is-solid { background: var(--card); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .25); }
.top.is-solid .brand { color: var(--ink); }
.top.is-solid .nav a { color: var(--ink); }
.top.is-solid .nav a:hover, .top.is-solid .nav a.is-current { color: var(--accent); }
.top.is-solid .icon-btn { border-color: var(--line); color: var(--ink); }

.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: block; }
	:root:not([data-theme="light"]) .i-moon { display: none; }
}

.nav-toggle { display: none; }
.nav-toggle path { transition: transform .3s var(--ease), opacity .2s; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
	.nav-toggle { display: grid; }
	.top__cta { display: none; }
	.top__inner { justify-content: space-between; }
	.nav {
		position: fixed; top: var(--header); left: 0; right: 0;
		flex-direction: column; gap: 0;
		padding: .5rem 16px 1.2rem;
		background: var(--card);
		box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .35);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.nav a, .top .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
	.nav a::after { display: none; }
	.top.is-open .nav { visibility: visible; opacity: 1; transform: none; }
	.top.is-open { background: var(--card); }
	.top.is-open .brand { color: var(--ink); }
	.top.is-open .icon-btn { border-color: var(--line); color: var(--ink); }
}

/* ------------------------------------------------------------------
   Start (hero)
   ------------------------------------------------------------------ */
.hero {
	position: relative;
	display: flex; align-items: center;
	min-height: 100vh; min-height: 100svh;
	padding: calc(var(--header) + 48px) 0 96px;
	overflow: hidden;
	background: #151b1d;
	color: #fff;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
	background-size: cover; background-position: center;
	opacity: 0; transform: scale(1.08);
	transition: opacity 1.4s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(10, 14, 16, .78) 0%, rgba(10, 14, 16, .45) 55%, rgba(10, 14, 16, .2) 100%);
}
.hero__content { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; color: #fff; font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); }
.hero__lead { max-width: 52ch; font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.4rem; }
.hero__price {
	display: inline-flex; flex-direction: column;
	padding: .9rem 1.4rem;
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: rgba(255, 255, 255, .1);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__price span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.hero__price strong { font-size: 1.8rem; font-weight: 900; line-height: 1.2; }
.hero__dots { position: absolute; left: 50%; bottom: 32px; z-index: 1; display: flex; gap: 10px; transform: translateX(-50%); }
.hero__dots button {
	width: 12px; height: 12px; padding: 0;
	border: 2px solid #fff; border-radius: 50%;
	background: transparent; cursor: pointer;
	transition: background .3s, transform .3s;
}
.hero__dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

/* ------------------------------------------------------------------
   Liczby
   ------------------------------------------------------------------ */
.facts { padding: 64px 0; border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact strong { display: block; color: var(--accent); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 900; line-height: 1.1; }
.fact span { font-size: .95rem; }
@media (max-width: 720px) { .facts__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* ------------------------------------------------------------------
   Sekcje
   ------------------------------------------------------------------ */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { margin: 0; }

/* O domu */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__text .btn { margin-top: .8rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 20px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
	transition: box-shadow .3s, transform .3s var(--ease);
}
.features li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.features svg {
	width: 40px; height: 40px; padding: 9px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.features strong { display: block; color: var(--ink); line-height: 1.3; }
.features span { display: block; font-size: .92rem; line-height: 1.5; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .features { grid-template-columns: 1fr; } }

/* Pomieszczenia */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.room {
	display: flex; flex-direction: column;
	padding: 0; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
	color: inherit; text-decoration: none;
	transition: box-shadow .3s, transform .3s var(--ease);
}
.room:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.room__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room:hover .room__img img { transform: scale(1.06); }
.room__badge {
	position: absolute; right: 12px; bottom: 12px;
	display: inline-flex; align-items: center; gap: 6px;
	padding: .3rem .7rem; border-radius: 999px;
	background: rgba(10, 14, 16, .72); color: #fff;
	font-size: .8rem; font-weight: 700;
}
.room__badge--360 { left: 12px; right: auto; background: var(--accent); }
.room__badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.room__label { margin-bottom: .2rem; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.room__body h3 { margin-bottom: .25rem; }
.room__body p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.room__more { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--accent); font-size: .9rem; font-weight: 700; }

/* Lokalizacja */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.distances { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.distances li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.distances strong { color: var(--ink); }
.map {
	overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow);
}
.map__frame { display: block; width: 100%; height: clamp(300px, 46vh, 440px); border: 0; background: var(--line); }
.map__frame--off {
	display: grid; place-items: center; align-content: center; gap: .8rem;
	padding: 24px; text-align: center;
	background: var(--tint);
}
.map__frame--off svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.map__frame--off p { max-width: 30ch; margin: 0; }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; }
.map__address { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 0; line-height: 1.35; }
.map__address svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.map__address strong { display: block; color: var(--ink); }
.map__link { color: var(--ink); font-size: .9rem; font-weight: 700; }
.map__link:hover { color: var(--accent); }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }

/* Kontakt */
.contact-band { background: #151b1d; color: rgba(255, 255, 255, .82); }
.contact-band h2 { color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact__cards { display: grid; gap: 16px; }
.contact__card {
	display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
	padding: 20px 22px;
	border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
	background: rgba(255, 255, 255, .04);
	text-decoration: none;
	transition: border-color .3s, background .3s;
}
.contact__card:hover { border-color: var(--accent); background: rgba(255, 22, 84, .08); }
.contact__card svg {
	grid-row: span 2; width: 48px; height: 48px; padding: 12px;
	border-radius: 50%; background: var(--accent);
	fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact__card span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.contact__card strong { color: #fff; font-size: 1.15rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.footer { padding: 24px 0; background: #0a0d0e; color: rgba(255, 255, 255, .6); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .footer__credit a { color: #ff8c00; font-weight: 700; }
.footer .footer__credit a:hover { color: #ffa733; text-decoration: underline; }

/* ------------------------------------------------------------------
   Panoramy 360° (Pannellum)
   ------------------------------------------------------------------ */
.pano {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 76vh;
	overflow: hidden;
	border-radius: var(--radius);
	background: #151b1d;
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55);
	font-family: var(--sans);
}
@media (max-width: 600px) { .pano { aspect-ratio: 4 / 5; } }
.pano .pano__viewer { /* wygrywa z pannellum.css .pnlm-container { position: relative } */
	position: absolute; inset: 0;
	width: auto; height: auto;
	background-size: cover; background-position: center;
	cursor: grab;
}
.pano__viewer:active { cursor: grabbing; }

/* własne sterowanie zamiast interfejsu Pannellum */
.pano .pnlm-ui .pnlm-controls-container,
.pano .pnlm-about-msg,
.pano .pnlm-load-box,
.pano .pnlm-load-button { display: none !important; }
.pano .pnlm-container { background: transparent; font-family: var(--sans); }

.pano__title {
	position: absolute; left: 14px; top: 14px; z-index: 3;
	margin: 0; padding: .45rem 1rem;
	border-radius: 999px;
	background: rgba(10, 14, 16, .62);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: #fff; font-size: .9rem; font-weight: 700;
	pointer-events: none;
}
.pano__title:empty { display: none; }

.pano__status {
	position: absolute; left: 50%; top: 50%; z-index: 3;
	margin: 0; padding: .6rem 1.2rem;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: rgba(10, 14, 16, .7);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
	color: #fff;
	pointer-events: none;
	transition: opacity .4s var(--ease);
}
.pano.is-loaded .pano__status { opacity: 0; }

.pano__toast {
	position: absolute; left: 0; right: 0; top: 64px; z-index: 5;
	width: min(92%, 460px); margin: 0 auto;
	padding: .8rem 1.1rem;
	border-left: 4px solid var(--accent); border-radius: var(--radius);
	background: rgba(10, 14, 16, .88);
	font-size: .88rem; line-height: 1.5; text-align: center; color: #fff;
}
.pano__toast[hidden] { display: none; }

.pano__hint {
	position: absolute; left: 50%; top: 50%; z-index: 2;
	display: flex; flex-direction: column; align-items: center; gap: .6rem;
	transform: translate(-50%, -50%);
	font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff;
	pointer-events: none;
	opacity: 0; transition: opacity .6s var(--ease);
}
.pano__hint svg {
	width: 60px; height: 60px;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
	animation: sway 2.4s var(--ease) infinite;
}
.pano__hint span {
	white-space: nowrap; padding: .45rem 1rem; border-radius: 999px;
	background: rgba(10, 14, 16, .62);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pano.is-loaded .pano__hint { opacity: 1; }
.pano.is-touched .pano__hint { opacity: 0; }
@keyframes sway { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }

.pano__controls {
	position: absolute; right: 14px; bottom: 14px; z-index: 4;
	display: flex; gap: 6px; padding: 6px;
	border-radius: 999px;
	background: rgba(10, 14, 16, .62);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pano__btn {
	display: grid; place-items: center;
	width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 50%;
	background: transparent; color: #fff;
	cursor: pointer;
	transition: background .25s;
}
.pano__btn[hidden] { display: none; }
.pano__btn:hover { background: rgba(255, 255, 255, .16); }
.pano__btn[aria-pressed="true"] { background: var(--accent); }
.pano__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pano__btn .i-exit, .pano.is-fullscreen .pano__btn .i-enter { display: none; }
.pano.is-fullscreen .pano__btn .i-exit { display: block; }

.pano__close, .vid__close {
	position: absolute; right: 14px; top: 14px; z-index: 6;
	display: none; align-items: center; gap: .4rem;
	padding: .55rem 1rem .55rem .8rem;
	border: 0; border-radius: 999px;
	background: var(--accent); color: #fff;
	font: 700 .9rem/1 var(--sans);
	cursor: pointer;
}
.pano__close svg, .vid__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pano.is-fullscreen .pano__close, .vid.is-fullscreen .vid__close { display: inline-flex; top: calc(max(14px, env(safe-area-inset-top)) + 4px); }
.pano.is-fullscreen .pano__controls { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 8px); }

/* pełny ekran – natywnie… */
.pano:fullscreen { max-height: none; aspect-ratio: auto; border-radius: 0; }
.pano:-webkit-full-screen { max-height: none; width: 100%; height: 100%; border-radius: 0; }
/* …albo zastępczo (iPhone Safari nie umie dać pełnego ekranu dla <div>) */
.pano.is-pseudo-fullscreen {
	position: fixed; inset: 0 0 auto; z-index: 1500;
	width: auto; height: 100vh; height: 100dvh;
	max-height: none; aspect-ratio: auto; border-radius: 0;
}

/* biblioteka panoram */
.pano-lib {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
	margin-top: 24px;
}
.pano-lib__item {
	position: relative;
	padding: 0; overflow: hidden;
	border: 2px solid var(--line); border-radius: var(--radius);
	background: var(--card);
	color: var(--ink); font: inherit; text-align: left;
	cursor: pointer;
	transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.pano-lib__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pano-lib__item[aria-current="true"] { border-color: var(--accent); }
.pano-lib__item img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.pano-lib__item span { display: block; padding: .6rem .8rem; font-size: .92rem; font-weight: 700; line-height: 1.3; }
.pano-lib__item::before {
	content: '360°';
	position: absolute; left: 8px; top: 8px;
	padding: .15rem .5rem; border-radius: 999px;
	background: rgba(10, 14, 16, .72); color: #fff;
	font-size: .72rem; font-weight: 900; letter-spacing: .04em;
}
.pano-lib__item[aria-current="true"]::before { background: var(--accent); }
.pano-lib:has(> :only-child) { display: none; }

/* ------------------------------------------------------------------
   Galeria (lightbox)
   ------------------------------------------------------------------ */
.lightbox {
	width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: rgba(8, 10, 11, .96); color: #fff;
	font-family: var(--sans);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox__bar {
	display: flex; align-items: center; gap: 16px;
	padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
.lightbox__title { margin: 0 auto 0 0; font-size: 1.1rem; font-weight: 900; }
.lightbox__count { margin: 0; font-size: .9rem; opacity: .75; font-variant-numeric: tabular-nums; }
.lightbox__close, .lightbox__nav {
	display: grid; place-items: center;
	width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .1); color: #fff;
	cursor: pointer;
	transition: background .25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 72px max(16px, env(safe-area-inset-bottom)); touch-action: pan-y; user-select: none; }
.lightbox__img {
	max-width: 100%; max-height: 100%;
	pointer-events: none;
	object-fit: contain; border-radius: 4px;
	user-select: none; -webkit-user-drag: none;
	transition: opacity .25s;
}
.lightbox__img.is-loading { opacity: .25; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 600px) {
	.lightbox__stage { padding: 0; }
	.lightbox__nav { width: 42px; height: 42px; background: rgba(0, 0, 0, .45); }
}

/* ------------------------------------------------------------------
   Strona pomieszczenia
   ------------------------------------------------------------------ */
.page-banner {
	position: relative;
	display: flex; align-items: flex-end;
	min-height: clamp(300px, 46vh, 440px);
	padding: calc(var(--header) + 40px) 0 48px;
	overflow: hidden;
	background: #151b1d;
	color: #fff;
}
.page-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.page-banner::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(10, 14, 16, .82) 0%, rgba(10, 14, 16, .35) 70%, rgba(10, 14, 16, .55) 100%);
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner h1 { margin: 0 0 .4rem; color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.crumbs a { color: var(--accent); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .5rem; border-radius: 50%; background: #fff; vertical-align: middle; }

.rooms-menu {
	display: flex; gap: 8px; overflow-x: auto;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	background: var(--card);
	scrollbar-width: none;
}
.rooms-menu::-webkit-scrollbar { display: none; }
.rooms-menu a {
	flex: 0 0 auto;
	padding: .45rem 1rem;
	border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none;
	transition: border-color .25s, color .25s, background .25s;
}
.rooms-menu a:hover { border-color: var(--accent); color: var(--accent); }
.rooms-menu a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fff; }
@media (min-width: 1232px) { .rooms-menu { justify-content: center; } }

.intro { max-width: 760px; margin: 0 auto; text-align: center; }
.intro p { font-size: 1.1rem; }
.intro p:last-child { margin-bottom: 0; }
.intro + .carousel { margin-top: 48px; }

/* karuzela – zdjęcie na środku, sąsiednie po bokach */
.carousel {
	--w: min(62vw, 860px, (100vh - 200px) * 1.5); /* całe zdjęcie mieści się na ekranie */
	--gap: 28px;
	position: relative;
	width: 100%;
	overflow: hidden;
	overflow: clip;
}
.carousel__stage {
	position: relative;
	height: calc(var(--w) * 2 / 3);
	touch-action: pan-y;
	user-select: none;
}
.carousel__item {
	position: absolute; top: 0; left: 50%;
	width: var(--w);
	margin: 0 0 0 calc(var(--w) / -2);
	transform: translateX(calc(var(--pos, 0) * (var(--w) + var(--gap)))) scale(.82);
	opacity: .5;
	cursor: pointer;
	transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
	filter: saturate(.7);
}
.carousel__item.is-current { transform: translateX(0) scale(1); opacity: 1; filter: none; cursor: zoom-in; z-index: 2; }
.carousel__item.no-anim { transition: none; }
.carousel__item.is-far { opacity: 0; pointer-events: none; }
.carousel__item img {
	width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; /* height: auto – inaczej atrybut height="1067" rozciąga zdjęcie */
	border-radius: var(--radius);
	background: var(--line);
	box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6);
	pointer-events: none;
}
.carousel__btn {
	position: absolute; top: calc(var(--w) / 3); z-index: 3;
	display: grid; place-items: center;
	width: 56px; height: 56px; margin-top: -28px; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--card); color: var(--ink);
	box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45);
	cursor: pointer;
	transition: background .25s, color .25s, transform .25s var(--ease);
}
.carousel__btn:hover { background: var(--accent); color: #fff; }
.carousel__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* strzałki na krawędziach bieżącego zdjęcia */
.carousel__btn--prev { left: calc(50% - var(--w) / 2 - 28px); }
.carousel__btn--next { right: calc(50% - var(--w) / 2 - 28px); }
.carousel__btn--prev:hover { transform: translateX(-3px); }
.carousel__btn--next:hover { transform: translateX(3px); }
.carousel__count { margin: 1.4rem 0 0; text-align: center; font-size: .9rem; font-weight: 700; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.carousel__current { color: var(--accent); }
.carousel.is-single .carousel__btn, .carousel.is-single .carousel__count { display: none; }
@media (max-width: 960px) { .carousel { --w: min(76vw, 700px, (100vh - 200px) * 1.5); } }
@media (max-width: 640px) {
	.carousel { --w: 80vw; --gap: 10px; }
	.carousel__btn { width: 42px; height: 42px; margin-top: -21px; }
	.carousel__btn--prev { left: 6px; }
	.carousel__btn--next { right: 6px; }
}

.neighbours { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 840px; margin: 0 auto; }
.neighbours + .center { margin-top: 40px; }
.center { text-align: center; }

/* ------------------------------------------------------------------
   Informacja o ciasteczkach
   ------------------------------------------------------------------ */
.cookies {
	position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1200;
	display: flex; align-items: center; gap: 12px 20px;
	width: fit-content; max-width: 560px; margin: 0 auto;
	padding: 14px 14px 14px 20px;
	border-left: 4px solid var(--accent); border-radius: var(--radius);
	background: var(--card); color: var(--ink);
	box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .4);
	animation: cookies-in .5s var(--ease) both;
	transition: opacity .3s, transform .3s var(--ease);
}
.cookies p { margin: 0; font-size: .95rem; line-height: 1.5; }
.cookies .btn { flex-shrink: 0; min-width: 72px; }
.cookies.is-leaving { opacity: 0; transform: translateY(20px); }
@keyframes cookies-in { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) { .cookies { animation: none; } }

/* ------------------------------------------------------------------
   Strona kontaktu – formularz
   ------------------------------------------------------------------ */
.form-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; gap: 36px; } }

.form-aside__list { margin: 1.6rem 0; padding: 0; list-style: none; }
.form-aside__list li {
	display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
	padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.form-aside__list svg {
	grid-row: span 2;
	width: 44px; height: 44px; padding: 10px;
	border-radius: 50%; background: rgba(255, 22, 84, .1);
	fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.form-aside__list span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.form-aside__list a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.form-aside__list a:hover { color: var(--accent); }
.form-aside__price { margin: 0; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.form-aside__price strong { display: block; color: var(--ink); font-size: 2rem; font-weight: 900; letter-spacing: 0; text-transform: none; }

.form {
	display: grid; gap: 18px;
	padding: clamp(20px, 4vw, 40px);
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
	box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .4rem; }
.field > span { color: var(--ink); font-size: .9rem; font-weight: 700; }
.form em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
	width: 100%; min-height: 48px; padding: .7rem .9rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--bg); color: var(--ink);
	font: inherit; font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus::placeholder, .field textarea:focus::placeholder { color: transparent; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 22, 84, .18); }
.form .is-invalid { border-color: var(--accent); background: rgba(255, 22, 84, .05); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--accent); }
.check input.is-invalid { outline: 2px solid var(--accent); outline-offset: 2px; }

/* display: none – autouzupełnianie przeglądarki nie wypełnia niewidocznych pól, proste boty tak */
.form__trap { display: none; }

.form__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form__foot .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form__note { margin: 0; font-size: .85rem; }

.form__msg {
	margin: 0; padding: .9rem 1.1rem;
	border-left: 4px solid; border-radius: var(--radius);
	font-weight: 700; line-height: 1.5;
}
.form__msg.is-ok { border-color: #1f9d55; background: rgba(31, 157, 85, .1); color: var(--ink); }
.form__msg.is-error { border-color: var(--accent); background: rgba(255, 22, 84, .08); color: var(--ink); }
.form__msg a { color: var(--accent); white-space: nowrap; }

/* ------------------------------------------------------------------
   Z lotu ptaka – zdjęcia z drona, układ działek i filmy
   ------------------------------------------------------------------ */
.aerial { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.aerial__text p:last-child { margin: 0; }
.aerial__photos, .aerial__videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) {
	.aerial, .aerial__photos, .aerial__videos { grid-template-columns: 1fr; }
}

.shot, .vid { margin: 0; }
.shot--plan { justify-self: center; width: min(100%, 520px); }
.shot__img {
	display: block; width: 100%; padding: 0;
	overflow: hidden;
	border: 0; border-radius: var(--radius);
	background: var(--line);
	box-shadow: var(--shadow);
	cursor: zoom-in;
}
.shot__img img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.shot__img:hover img { transform: scale(1.04); }
.shot figcaption, .vid figcaption {
	display: flex; justify-content: space-between; gap: 12px;
	margin-top: .8rem;
	color: var(--ink); font-size: .95rem; font-weight: 700; line-height: 1.4;
}
.vid figcaption span { color: var(--text); font-weight: 400; font-variant-numeric: tabular-nums; }

/* odtwarzacz filmów – własne przyciski w stylu strony */
.vid__box {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: #151b1d;
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55);
}
.vid__box video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.vid__box:fullscreen { aspect-ratio: auto; border-radius: 0; }
.vid.is-window-fs .vid__box {
	position: fixed; inset: 0 0 auto; z-index: 1500;
	width: auto; height: 100vh; height: 100dvh;
	aspect-ratio: auto; border-radius: 0;
}
.vid.is-fullscreen .vid__bar { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 8px); }
.vid__box:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; }

.vid__play {
	position: absolute; left: 50%; top: 50%; z-index: 2;
	display: grid; place-items: center;
	width: 76px; height: 76px; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--accent); color: #fff;
	box-shadow: 0 0 0 8px rgba(255, 22, 84, .25), 0 14px 30px -10px rgba(0, 0, 0, .6);
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: transform .3s var(--ease), background .25s, opacity .3s;
}
.vid__play:hover { background: var(--accent-dark); transform: translate(-50%, -50%) scale(1.08); }
.vid__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.vid.is-playing .vid__play { opacity: 0; pointer-events: none; }

.vid__spinner {
	position: absolute; left: 50%; top: 50%; z-index: 2;
	width: 54px; height: 54px; margin: -27px 0 0 -27px;
	border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); border-radius: 50%;
	opacity: 0; pointer-events: none;
	animation: vid-spin .9s linear infinite;
	transition: opacity .2s;
}
.vid.is-playing.is-waiting .vid__spinner { opacity: 1; }
@keyframes vid-spin { to { transform: rotate(360deg); } }

.vid__bar {
	position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
	display: flex; align-items: center; gap: 8px;
	padding: 6px 10px 6px 6px;
	border-radius: 999px;
	background: rgba(10, 14, 16, .62);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: #fff;
	transition: opacity .3s, transform .3s var(--ease);
}
.vid:not(.is-started) .vid__bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.vid.is-playing.is-idle .vid__bar { opacity: 0; transform: translateY(8px); }
.vid.is-playing.is-idle .vid__box { cursor: none; }
.vid__btn {
	display: grid; place-items: center;
	width: 38px; height: 38px; padding: 0;
	border: 0; border-radius: 50%;
	background: transparent; color: #fff;
	cursor: pointer;
	transition: background .25s;
}
.vid__btn:hover { background: rgba(255, 255, 255, .16); }
.vid__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vid__btn .i-fill { fill: currentColor; stroke: none; }
.vid__btn[data-action="play"] { background: var(--accent); }
.vid__btn[data-action="play"]:hover { background: var(--accent-dark); }
.vid__btn .i-pause, .vid.is-playing .vid__btn .i-play { display: none; }
.vid.is-playing .vid__btn .i-pause { display: block; }
.vid__btn .i-exit, .vid.is-fullscreen .vid__btn .i-enter { display: none; }
.vid.is-fullscreen .vid__btn .i-exit { display: block; }
.vid__time { flex-shrink: 0; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* pasek postępu: odtworzone (kolor strony) · wczytane (jaśniejsze) · reszta */
.vid__seek {
	--played: 0%; --loaded: 0%;
	flex: 1; min-width: 0; height: 22px; margin: 0;
	background: transparent;
	-webkit-appearance: none; appearance: none;
	cursor: pointer;
}
.vid__seek::-webkit-slider-runnable-track {
	height: 5px; border-radius: 999px;
	background: linear-gradient(90deg, var(--accent) var(--played), rgba(255, 255, 255, .55) var(--played) var(--loaded), rgba(255, 255, 255, .22) var(--loaded));
}
.vid__seek::-moz-range-track {
	height: 5px; border-radius: 999px;
	background: linear-gradient(90deg, var(--accent) var(--played), rgba(255, 255, 255, .55) var(--played) var(--loaded), rgba(255, 255, 255, .22) var(--loaded));
}
.vid__seek::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 15px; height: 15px; margin-top: -5px;
	border: 0; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 3px var(--accent);
}
.vid__seek::-moz-range-thumb {
	width: 15px; height: 15px;
	border: 0; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 3px var(--accent);
}
.vid__seek:focus-visible { outline: none; }
.vid__seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent), 0 0 0 6px rgba(255, 255, 255, .5); }
@media (max-width: 420px) { .vid__time .vid__dur { display: none; } }
.vid.is-playing.is-idle .vid__bar:has(:focus-visible) { opacity: 1; transform: none; }
