/*
Theme Name: Sosnowy Zakątek
Theme URI: https://sosnowyzakatek-mielnik.pl
Author: Sosnowy Zakątek
Description: Motyw strony agroturystyki Sosnowy Zakątek w Mielniku. Motyw blokowy – treści, zdjęcia i ceny edytuje się w zwykłym edytorze stron.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sosnowy-zakatek
*/

/* ---------- podstawy ---------- */
html { scroll-behavior: smooth; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
[id] { scroll-margin-top: 20px; }
.sz-sekcja p, .sz-hero p { margin: 0; }
.wp-block-group.sz-sekcja, .wp-block-group.sz-hero { margin-block-start: 0; }

/* nagłówek */
.sz-header { padding-left: 5vw !important; padding-right: 5vw !important; gap: 16px; }
.sz-header .wp-block-site-title a { text-decoration: none; }
.sz-nav a { text-decoration: none; }
.sz-nav a:hover { text-decoration: underline; }
.sz-header-cta { align-items: center; }
.sz-tel a { text-decoration: none; }

/* stopka */
.sz-footer .alignwide { gap: 16px; }
.sz-footer p { margin: 0; }

/* ---------- sekcje ---------- */
.sz-sekcja { padding: 96px 5vw; }
.sz-sekcja-mniejsza { padding-top: 48px; padding-bottom: 72px; }
.sz-sekcja-galeria { padding-top: 72px; padding-bottom: 48px; }
.sz-sekcja-intro { padding-bottom: 48px; }
#noclegi { padding-top: 48px; }
.sz-kontener { max-width: 1240px; margin-left: auto; margin-right: auto; }
.sz-kontener > * + * { margin-block-start: 0; }
.sz-tlo-las { background: var(--wp--preset--color--las); color: var(--wp--preset--color--krem); }
.sz-tlo-las h1, .sz-tlo-las h2, .sz-tlo-las h3 { color: var(--wp--preset--color--krem); }
.sz-tlo-las a:not(.wp-element-button) { color: var(--wp--preset--color--krem); }
.sz-tlo-piasek { background: var(--wp--preset--color--piasek); }
.sz-tlo-bialy { background: #fff; }

.sz-sekcja h2 { margin: 0 0 20px; }
.sz-sekcja .sz-wstep { max-width: 680px; line-height: 1.6; margin: -8px 0 36px; }
.sz-sekcja p + p { margin-top: 16px; }
.sz-sekcja .sz-tekst p { line-height: 1.7; }
.sz-nadtytul { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px !important; }
.sz-braz { color: var(--wp--preset--color--braz); }
.sz-zloty { color: var(--wp--preset--color--zloto); }
.sz-link-mocny { font-weight: 600; margin-top: 24px !important; }
.sz-podtytul { font-size: 24px !important; margin: 36px 0 14px !important; }
.sz-mniejszy { font-size: 32px !important; }
.sz-przypis { font-size: 14px; color: var(--wp--preset--color--szary); margin-top: 14px !important; }
.sz-przygaszony { opacity: 0.85; margin-top: 10px !important; }

/* dwie kolumny: tekst + zdjęcia */
.sz-dwie-kolumny { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.sz-dwie-kolumny > * { flex: 1 1 420px; min-width: 0; margin: 0 !important; }
.sz-dwie-kolumny > .sz-mozaika-21 { flex-basis: 560px; }
.sz-tekst ul { margin: 0 0 8px; padding-left: 20px; line-height: 1.8; font-size: 16px; }

/* ---------- hero ---------- */
.sz-hero { position: relative; display: flex; align-items: flex-end; min-height: 640px; padding: 0 5vw 72px; color: #fff; }
.sz-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 30, 22, 0.42); }
.sz-hero-podstrona { min-height: 520px; padding-bottom: 56px; }
.sz-hero-podstrona::before { background: linear-gradient(to top, rgba(20, 30, 22, 0.7), rgba(20, 30, 22, 0.1)); }
.sz-hero-tresc { position: relative; max-width: 760px; }
.sz-hero-podstrona .sz-hero-tresc { max-width: 820px; }
.sz-hero h1 { color: #fff; margin: 0 0 20px; }
.sz-hero-podstrona h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.sz-hero .sz-nadtytul { font-size: 15px; letter-spacing: 0.08em; font-weight: 400; }
.sz-hero .sz-lead { font-size: 19px; line-height: 1.55; margin-bottom: 32px; }
.sz-hero-podstrona .sz-lead { margin-bottom: 0; }
.sz-okruszki { font-size: 14px; margin-bottom: 12px !important; }
.sz-okruszki a { color: #fff; }

/* przyciski */
.wp-block-buttons { gap: 12px; }
.sz-btn-jasny .wp-block-button__link { background: var(--wp--preset--color--krem); color: var(--wp--preset--color--las); }
.sz-btn-jasny .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--las-ciemny); }
.sz-btn-obrys-jasny .wp-block-button__link { background: transparent; color: #fff; border: 1px solid currentColor; }
.sz-btn-obrys-jasny .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- paski ---------- */
.sz-pasek-atutow { padding-top: 28px; padding-bottom: 28px; }
.sz-atuty { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.sz-atuty > * { margin: 0 !important; }
.sz-atut-tytul { font-weight: 600; font-size: 16px; }
.sz-atut-opis { font-size: 14px; opacity: 0.85; margin-top: 4px !important; }

.sz-pasek-stat { padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--wp--preset--color--bez); }
.sz-pasek-stat .sz-kontener { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; justify-content: space-between; }
.sz-pasek-stat .sz-kontener > * { margin: 0 !important; }
.sz-staty { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.sz-staty > * { margin: 0 !important; }
.sz-stat-liczba { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 30px; color: var(--wp--preset--color--las); line-height: 1.2; }
.sz-stat-opis { font-size: 14px; color: var(--wp--preset--color--szary); margin-top: 2px !important; }

.sz-pasek-ceny { padding-top: 72px; padding-bottom: 72px; }
.sz-pasek-ceny .sz-kontener { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.sz-pasek-ceny .sz-kontener > * { margin: 0 !important; }
.sz-pasek-ceny .sz-nadtytul { font-size: 15px; margin-bottom: 8px !important; }
.sz-cena-duza { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 48px; line-height: 1.1; }

/* ---------- zdjęcia ---------- */
.sz-sekcja .wp-block-image { margin: 0; }
.sz-sekcja .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.sz-pozycja-dol img { object-position: center 70%; }

.sz-mozaika { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 12px; }
.sz-mozaika > * { margin: 0 !important; height: 100%; }
.sz-mozaika > .sz-duze { grid-row: span 2; }
.sz-mozaika-21 { grid-template-columns: 2fr 1fr; grid-auto-rows: 204px; }
.sz-mozaika-211 { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 200px; }

.sz-siatka { display: grid; gap: 12px; margin-top: 12px !important; }
.sz-siatka > * { margin: 0 !important; height: 200px; }
.sz-siatka-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sz-siatka-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sz-siatka-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sz-siatka-4 > *, .sz-wysokie > * { height: 260px; }
.sz-panorama { height: 360px; margin-top: 12px !important; }
.sz-foto-boczne { height: 380px; }

/* ---------- karty ---------- */
.sz-karty-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.sz-karty-2 > * { margin: 0 !important; }
.sz-karta { background: #fff; border: 1px solid var(--wp--preset--color--bez); border-radius: 10px; overflow: hidden; }
.sz-karta > * { margin: 0 !important; }
.sz-karta .sz-karta-foto { height: 300px; }
.sz-karta .sz-karta-foto img { border-radius: 0; }
.sz-karta-tekst { padding: 28px; }
.sz-karta-tekst h3 { margin: 0 0 6px; }
.sz-cena { color: var(--wp--preset--color--braz); font-weight: 600; margin-bottom: 16px !important; }
.sz-karta-tekst p { line-height: 1.6; font-size: 16px; }
.sz-karta-tytul { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 22px; }
.sz-karta-tytul a { text-decoration: none; color: var(--wp--preset--color--tekst); }
.sz-karta-tytul a::after { content: ""; position: absolute; inset: 0; }
.sz-karta:has(.sz-karta-tytul) { position: relative; }
.sz-karta:has(.sz-karta-tytul) .sz-karta-foto { height: 200px; }
.sz-karta:has(.sz-karta-tytul) .sz-karta-tekst { padding: 20px; }
.sz-karta-pod { font-size: 15px; color: var(--wp--preset--color--szary); margin-top: 4px !important; }

.sz-ramka { background: #fff; border: 1px solid var(--wp--preset--color--bez); border-radius: 10px; padding: 28px; }
.sz-ramka > * { margin-top: 0; }
.sz-ramka h3 { font-size: 24px; margin: 0 0 12px; }
.sz-ramka ul { margin: 0; padding-left: 20px; line-height: 1.8; font-size: 16px; }
.sz-ramka-odstep { margin-top: 20px !important; }
.sz-trzy-karty { display: flex; flex-wrap: wrap; gap: 20px; }
.sz-trzy-karty > * { flex: 1 1 300px; margin: 0 !important; }
.sz-checklist { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; }
.sz-checklist li::before { content: "✓ "; color: var(--wp--preset--color--las); font-weight: 600; }

/* bliźniak – części */
.sz-czesc { border-radius: 12px; margin-bottom: 28px !important; }
.sz-czesc > p { margin: 0 0 20px !important; font-size: 16px; line-height: 1.6; }
.sz-czesc-naglowek { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sz-czesc-naglowek > * { margin: 0 !important; }
.sz-czesc-tytul { font-size: 30px !important; margin: 0 !important; }

/* atrakcje */
.sz-atrakcje { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.sz-atrakcje > * { margin: 0 !important; }
.sz-atrakcja .wp-block-image { height: 220px; }
.sz-maly-tytul { font-family: var(--wp--preset--font-family--inter) !important; color: var(--wp--preset--color--tekst) !important; font-size: 18px !important; margin: 14px 0 4px !important; }
.sz-maly-opis { font-size: 15px; line-height: 1.5; margin: 0 !important; }

/* cennik */
.sz-cennik-kafle { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px !important; }
.sz-cennik-kafle > * { margin: 0 !important; }
.sz-cennik-kafel { padding: 24px; }
.sz-cennik-nazwa { font-size: 15px; margin-bottom: 8px !important; }
.sz-cennik-cena { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 30px; color: var(--wp--preset--color--las); line-height: 1.2; margin: 0 !important; }
.sz-cennik-jedn { font-size: 14px; color: var(--wp--preset--color--szary); margin: 0 !important; }
.sz-sekcja-cennik h1 { margin: 0 0 16px; }
.sz-sekcja-cennik .wp-block-list { line-height: 1.8; margin-bottom: 28px; }

/* gospodarze, opinie */
.sz-podpis { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 22px; color: var(--wp--preset--color--las); margin-top: 20px !important; }
#gospodarze .sz-foto-boczne { height: 400px; flex-basis: 520px; }
.sz-ocena { margin: -8px 0 32px !important; font-size: 16px; }
.sz-opinie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.sz-opinie > * { margin: 0 !important; }
.sz-opinia { background: #fff; padding: 28px; border-radius: 10px; }
.sz-opinia-tekst { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 22px; line-height: 1.35; margin-bottom: 16px !important; }
.sz-opinia-autor { font-size: 14px; color: var(--wp--preset--color--szary); }

/* kontakt */
.sz-kontakt { align-items: flex-start; }
.sz-kontakt > .sz-tekst { flex-basis: 360px; }
.sz-kontakt > .sz-formularz { flex-basis: 480px; }
.sz-adres { line-height: 1.8; margin: 28px 0 24px !important; }
.sz-mapa { margin-top: 24px; }
.sz-mapa iframe { width: 100%; height: 240px; border: 0; border-radius: 8px; display: block; }
.sz-formularz { background: #fff; border: 1px solid var(--wp--preset--color--bez); border-radius: 10px; padding: 32px; }
.sz-formularz-miejsce { color: var(--wp--preset--color--szary); font-style: italic; }

/* okolica */
.sz-okolica { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.sz-okolica > * { margin: 0 !important; }
.sz-okolica-kafel { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sz-okolica-kafel > p { padding: 0 22px; }
.sz-okolica-kafel > .sz-okolica-nazwa { padding-top: 18px; }
.sz-okolica-kafel > .sz-okolica-opis { padding-bottom: 22px; }
.sz-sekcja .sz-okolica-foto { margin: 0 !important; height: 210px; }
.sz-sekcja .sz-okolica-foto img { border-radius: 0; }
.sz-poz-gora img { object-position: center 20%; }
.sz-okolica-dalej { margin-top: 24px !important; font-size: 16px; line-height: 1.6; }
.sz-okolica-nazwa { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 21px; color: var(--wp--preset--color--las); line-height: 1.25; }
.sz-okolica-odl { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wp--preset--color--braz); margin-top: 6px !important; }
.sz-okolica-opis { font-size: 15px; line-height: 1.55; margin-top: 10px !important; }

/* jak zarezerwować */
.sz-kroki { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.sz-kroki > * { margin: 0 !important; }
.sz-krok { border-top: 2px solid var(--wp--preset--color--las); padding-top: 20px; }
.sz-krok-nr { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 44px; line-height: 1; color: var(--wp--preset--color--braz); }
.sz-krok-tytul { font-size: 22px !important; margin: 12px 0 8px !important; }
.sz-krok-opis { font-size: 16px; line-height: 1.6; margin: 0 !important; }
#rezerwacja { padding-bottom: 32px; }

/* ---------- telefon ---------- */
@media (max-width: 640px) {
	.sz-hide-mobile { display: none !important; }
	.sz-sekcja { padding: 44px 6vw; }
	.sz-hero { min-height: 600px; padding: 0 6vw 44px; }
	.sz-hero-podstrona { min-height: 460px; }
	.sz-dwie-kolumny { gap: 32px; }
	.sz-dwie-kolumny > * { flex-basis: 100% !important; }
	.sz-mozaika, .sz-mozaika-21, .sz-mozaika-211 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
	.sz-mozaika > .sz-duze { grid-column: 1 / -1; grid-row: span 2; }
	.sz-siatka-3, .sz-siatka-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sz-siatka > *, .sz-siatka-4 > *, .sz-wysokie > * { height: 150px; }
	.sz-panorama, .sz-foto-boczne, #gospodarze .sz-foto-boczne { height: 260px; }
	.sz-karta .sz-karta-foto { height: 220px; }
	.sz-atrakcje { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.sz-atrakcja .wp-block-image { height: 140px; }
	.sz-maly-tytul { font-size: 16px !important; margin-top: 10px !important; }
	.sz-maly-opis { font-size: 14px; }
	.sz-formularz { padding: 22px; }
	.sz-cena-duza { font-size: 38px; }
}

/* edytor: pokazuj układ podobnie jak na stronie */
.editor-styles-wrapper .sz-hero { color: #fff; }
