/**
 * WEBPC — single-v2.css
 * Style dla nowej wersji single oferty
 *
 * BACKGROUND: białe (override starych classic styli .webpc-oferta-page)
 */

.webpc-oferta-v2 {
	font-family: var(--font-sans);
	color: var(--c-text-primary);
	background: white;
}

/* Override classic — usuń kremowe tło sekcji */
.webpc-oferta-v2 .webpc-oferta-opis,
.webpc-oferta-v2 .webpc-oferta-mapa-wrap,
.webpc-oferta-v2 .webpc-oferta-sasiedztwo,
.webpc-oferta-v2 .webpc-oferta-podobne {
	background: white;
}

/* ============================================================
   1. HERO V2 — biały tytuł, lewa-stronnie, większe ikony
   ============================================================ */
.webpc-hero-v2 {
	position: relative;
	min-height: 520px;
	background-size: cover;
	background-position: center;
	background-color: var(--c-text-primary);
	display: flex;
	align-items: flex-end;
	padding: 100px 0 56px;
	overflow: hidden;
}

@media (max-width: 768px) {
	.webpc-hero-v2 { min-height: 400px; padding: 70px 0 36px; }
}

.webpc-hero-v2-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.8) 0%,
		rgba(0, 0, 0, 0.5) 50%,
		rgba(0, 0, 0, 0.2) 100%
	);
}

.webpc-hero-v2-content {
	position: relative;
	z-index: 2;
	color: white;
	max-width: 760px;
	text-align: left;
}

.webpc-hero-v2-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--e-global-color-primary, var(--c-accent));
	color: white;
	padding: 6px 14px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 4px;
	margin-bottom: 14px;
}

.webpc-hero-v2-badge svg {
	width: 12px;
	height: 12px;
	fill: white;
}

.webpc-hero-v2-meta-top {
	margin-bottom: 12px;
}

.webpc-hero-v2-type-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--c-gold);
	text-transform: uppercase;
	border: 1px solid var(--c-gold);
	padding: 4px 12px;
	border-radius: 4px;
}

.webpc-hero-v2-title {
	font-family: var(--font-serif);
	font-size: 64px;
	font-weight: 500;
	color: white;
	margin: 0 0 6px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
	.webpc-hero-v2-title { font-size: 38px; }
}

@media (max-width: 480px) {
	.webpc-hero-v2-title { font-size: 30px; }
}

.webpc-hero-v2-subtitle {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 14px;
	letter-spacing: 0.01em;
}

.webpc-hero-v2-tagline {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 20px;
	line-height: 1.4;
	font-style: italic;
	max-width: 600px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
	.webpc-hero-v2-tagline { font-size: 17px; }
}

.webpc-hero-v2-price {
	font-family: var(--font-serif);
	font-size: 44px;
	font-weight: 500;
	color: var(--c-gold);
	line-height: 1;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.webpc-hero-v2-price small {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 400;
}

@media (max-width: 768px) {
	.webpc-hero-v2-price { font-size: 32px; }
}

.webpc-hero-v2-divider {
	width: 80px;
	height: 1px;
	background: var(--c-gold);
	margin: 22px 0 18px;
}

.webpc-hero-v2-meta {
	display: flex;
	gap: 36px;
	flex-wrap: wrap;
}

@media (max-width: 480px) {
	.webpc-hero-v2-meta { gap: 22px; }
}

.webpc-hero-v2-meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.95);
	font-size: 16px;
	font-weight: 400;
}

.webpc-hero-v2-meta-item svg {
	width: 28px;
	height: 28px;
	stroke: var(--c-gold);
}

@media (max-width: 480px) {
	.webpc-hero-v2-meta-item { font-size: 14px; }
	.webpc-hero-v2-meta-item svg { width: 24px; height: 24px; }
}

/* ============================================================
   2. GALERIA V2 — full width, 1 rząd, kolaż 4:3 cells
   ============================================================ */
.webpc-galeria-v2 {
	background: white;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 0;
	display: block;
}

/*
 * 1 rząd:
 * Slot 1 (duże poziome) — 2 kolumny
 * Slot 2 (pionowe) — 1 kolumna
 * Slot 3, 4, 5 — kompresowane w pionie (każde 1 kolumna)
 *
 * Każda kolumna ma szerokość 25vw, wysokość rzędu = 25vw * 0.75 (4:3) = 18.75vw
 *
 * Layout:
 * | [1] (2 cols) | [2] (1 col) | [3] (1 col) |
 * | [1] cont.    | [2] cont.   | [4] (1 col) |
 *  ... ale my chcemy w 1 RZĘDZIE.
 *
 * Robię tak: 5 kolumn, slot 1 = 2-szerokie, reszta = 1-szerokie. Wysokość rzędu = (100vw/5 minus gap) * 0.75 = ~15vw
 */

.webpc-galeria-v2-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr; /* slot1 = 2x szeroki, reszta = 1x */
	gap: 4px;
	width: 100vw;
	height: calc(25vw * 0.75); /* wysokość = (100vw / 4) * 3/4 */
	max-height: 600px;
	min-height: 300px;
}

.webpc-galeria-v2-item {
	position: relative;
	overflow: hidden;
	background: var(--c-cream);
	display: block;
	cursor: pointer;
	transition: opacity 0.15s;
}

.webpc-galeria-v2-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}

.webpc-galeria-v2-item:hover img {
	transform: scale(1.04);
}

@media (max-width: 768px) {
	.webpc-galeria-v2-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 140px;
		height: auto;
		max-height: none;
	}
}

@media (max-width: 480px) {
	.webpc-galeria-v2-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}
}

/* Overlay "+X więcej" */
.webpc-galeria-v2-item.has-more::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(28, 35, 48, 0.55);
	z-index: 1;
	transition: background 0.15s;
}

.webpc-galeria-v2-item.has-more:hover::before {
	background: rgba(28, 35, 48, 0.7);
}

.webpc-galeria-v2-more {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	gap: 4px;
	pointer-events: none;
	text-align: center;
}

.webpc-galeria-v2-more-num {
	font-family: var(--font-serif);
	font-size: 48px;
	font-weight: 500;
	line-height: 1;
}

@media (max-width: 768px) {
	.webpc-galeria-v2-more-num { font-size: 38px; }
}

.webpc-galeria-v2-more-label {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.webpc-galeria-v2-hidden {
	display: none;
}

/* ============================================================
   PASEK MINIATUREK pod galerią
   ============================================================ */
.webpc-galeria-v2-thumbs-wrap {
	position: relative;
	margin-top: 12px;
	padding: 0 50px;
}

.webpc-galeria-v2-thumbs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--c-border-medium) transparent;
	padding: 4px 0;
}

.webpc-galeria-v2-thumbs::-webkit-scrollbar {
	height: 6px;
}

.webpc-galeria-v2-thumbs::-webkit-scrollbar-thumb {
	background: var(--c-border-medium);
	border-radius: 999px;
}

.webpc-galeria-v2-thumb {
	flex-shrink: 0;
	width: 90px;
	height: 68px;
	border-radius: 3px;
	overflow: hidden;
	background: var(--c-cream);
	cursor: pointer;
	transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
	opacity: 0.85;
	display: block;
	border: 2px solid transparent;
}

.webpc-galeria-v2-thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	border-color: var(--e-global-color-primary, var(--c-accent));
}

.webpc-galeria-v2-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.webpc-galeria-v2-thumbs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	border: 1px solid var(--c-border-medium);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-text-primary);
	z-index: 2;
	transition: opacity 0.15s, background 0.15s;
	opacity: 0.95;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.webpc-galeria-v2-thumbs-arrow:hover {
	background: var(--e-global-color-primary, var(--c-accent));
	color: white;
	border-color: var(--e-global-color-primary, var(--c-accent));
	opacity: 1;
}

.webpc-galeria-v2-thumbs-arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.webpc-galeria-v2-thumbs-arrow svg {
	width: 16px;
	height: 16px;
}

.webpc-galeria-v2-thumbs-prev {
	left: 8px;
}

.webpc-galeria-v2-thumbs-next {
	right: 8px;
}

@media (max-width: 600px) {
	.webpc-galeria-v2-thumbs-wrap { padding: 0 40px; }
	.webpc-galeria-v2-thumb { width: 70px; height: 54px; }
	.webpc-galeria-v2-thumbs-arrow { width: 30px; height: 30px; }
}

/* ============================================================
   3. BODY V2 — białe tło + boxy
   ============================================================ */
.webpc-oferta-v2-body {
	background: white;
	padding: 56px 0 64px;
}

.webpc-oferta-v2-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
}

@media (max-width: 1024px) {
	.webpc-oferta-v2-grid {
		grid-template-columns: 1fr;
	}
}

.webpc-oferta-v2-main {
	min-width: 0;
}

/* Cechy */
.webpc-cechy-v2 {
	background: var(--c-cream-light);
	border-radius: 6px;
	padding: 32px;
	margin-bottom: 24px;
	border: 0.5px solid var(--c-border-soft);
}

.webpc-cechy-v2 .webpc-h2 {
	margin-bottom: 20px;
}

.webpc-cechy-v2-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 32px;
}

@media (max-width: 600px) {
	.webpc-cechy-v2-grid { grid-template-columns: 1fr; }
}

.webpc-cecha-v2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--c-text-primary);
	padding: 4px 0;
}

.webpc-cecha-v2 svg {
	width: 18px;
	height: 18px;
	stroke: var(--e-global-color-primary, var(--c-accent));
	flex-shrink: 0;
}

/* Opis */
.webpc-opis-v2 {
	background: var(--c-cream-light);
	border-radius: 6px;
	padding: 32px;
	border: 0.5px solid var(--c-border-soft);
}

.webpc-opis-v2 .webpc-h2 {
	margin-bottom: 20px;
}

.webpc-opis-v2-content {
	font-size: 15px;
	color: var(--c-text-secondary);
	line-height: 1.75;
}

.webpc-opis-v2-content p { margin: 0 0 1em; }
.webpc-opis-v2-content p:last-child { margin-bottom: 0; }
.webpc-opis-v2-content strong {
	color: var(--c-text-primary);
	font-weight: 500;
}

.webpc-opis-v2-content h2,
.webpc-opis-v2-content h3,
.webpc-opis-v2-content h4 {
	color: var(--c-text-primary);
	font-family: var(--font-serif);
	margin: 1.4em 0 0.5em;
	font-weight: 500;
}

/* ============================================================
   4. INFO PANEL V2 — z podsumowaniem HERO
   ============================================================ */
.webpc-oferta-v2-aside {
	position: sticky;
	top: 100px;
}

@media (max-width: 1024px) {
	.webpc-oferta-v2-aside { position: static; }
}

.webpc-info-panel-v2 {
	background: white;
	border-radius: 6px;
	padding: 28px;
	border: 0.5px solid var(--c-border-soft);
	box-shadow: 0 2px 12px rgba(28, 35, 48, 0.04);
}

/* Podsumowanie HERO w info panel */
.webpc-info-panel-v2-summary {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 0.5px solid var(--c-border-soft);
}

.webpc-info-panel-v2-title {
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 500;
	color: var(--c-text-primary);
	margin: 0 0 4px;
	line-height: 1.2;
}

.webpc-info-panel-v2-loc {
	font-size: 13px;
	color: var(--c-text-secondary);
	margin-bottom: 14px;
}

.webpc-info-panel-v2-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.webpc-info-panel-v2-icon {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--c-text-primary);
	font-weight: 500;
}

.webpc-info-panel-v2-icon svg {
	width: 16px;
	height: 16px;
	stroke: var(--e-global-color-primary, var(--c-accent));
}

/* Header z ceną */
.webpc-info-panel-v2-header {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 0.5px solid var(--c-border-soft);
}

.webpc-info-panel-v2-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	gap: 8px;
	flex-wrap: wrap;
}

.webpc-info-panel-v2-type {
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--c-text-tertiary);
	font-weight: 500;
	text-transform: uppercase;
}

.webpc-info-panel-v2-numer {
	font-family: var(--font-mono);
	font-size: 11px;
	background: var(--c-cream);
	color: var(--c-text-primary);
	padding: 3px 10px;
	border-radius: 4px;
	font-weight: 500;
}

.webpc-info-panel-v2-price {
	font-family: var(--font-serif);
	font-size: 34px;
	font-weight: 500;
	color: var(--c-text-primary);
	line-height: 1;
}

.webpc-info-panel-v2-price small {
	font-size: 16px;
	color: var(--c-text-secondary);
	font-weight: 400;
}

.webpc-info-panel-v2-pricem2 {
	font-size: 12px;
	color: var(--c-text-tertiary);
	margin-top: 4px;
}

.webpc-info-panel-v2-neg {
	font-size: 12px;
	color: var(--c-accent);
	margin-top: 6px;
	font-weight: 500;
}

.webpc-info-panel-v2-cta {
	width: 100%;
	margin-bottom: 20px;
	text-align: center;
	box-sizing: border-box;
}

/* Kalkulator V2 */
.webpc-kalkulator-v2 {
	background: var(--c-cream-light);
	border-radius: 4px;
	padding: 18px;
	margin-top: 4px;
}

.webpc-kalkulator-v2-title {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 500;
	color: var(--c-text-primary);
	margin: 0 0 16px;
}

.webpc-kalkulator-v2 .webpc-kalk-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 4px;
	font-size: 12px;
}

.webpc-kalkulator-v2 .webpc-kalk-row label {
	color: var(--c-text-secondary);
}

.webpc-kalkulator-v2 .webpc-kalk-row output {
	color: var(--c-text-primary);
	font-weight: 500;
}

.webpc-kalkulator-v2 input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	background: var(--c-border-soft);
	border-radius: 999px;
	margin: 4px 0 14px;
	cursor: pointer;
}

.webpc-kalkulator-v2 input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--e-global-color-primary, var(--c-accent));
	cursor: pointer;
	border: 0;
}

.webpc-kalkulator-v2 input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--e-global-color-primary, var(--c-accent));
	cursor: pointer;
	border: 0;
}

.webpc-kalkulator-v2 .webpc-kalk-result {
	background: white;
	padding: 12px 14px;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 6px;
}

.webpc-kalkulator-v2 .webpc-kalk-result span {
	font-size: 12px;
	color: var(--c-text-secondary);
}

.webpc-kalkulator-v2 .webpc-kalk-result output {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--e-global-color-primary, var(--c-accent));
}

.webpc-kalkulator-v2 .webpc-kalk-disclaimer {
	font-size: 10px;
	color: var(--c-text-tertiary);
	margin: 10px 0 0;
	text-align: center;
	line-height: 1.5;
}

.webpc-kalkulator-v2 .webpc-kalk-disclaimer a {
	color: var(--e-global-color-primary, var(--c-accent));
	text-decoration: none;
}

.webpc-kalkulator-v2 .webpc-kalk-disclaimer a:hover {
	text-decoration: underline;
}
