/* ===== Wczasy u Bogusława – style dodatkowe ===== */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* --- Nagłówek: przyklejony, z cieniem po przewinięciu --- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .3s ease, background-color .3s ease; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31,58,43,.12); }
.site-header .site-logo a { text-decoration: none; color: inherit; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation-item__content { position: relative; }
.site-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
	background: var(--wp--preset--color--drewno); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-header .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
@media (max-width: 600px) { .header-phone { display: none !important; } }

/* --- Hero: powolny „oddech” zdjęcia --- */
.hero { overflow: hidden; }
.hero .wp-block-cover__image-background { animation: wczasy-kenburns 22s ease-in-out infinite alternate; }
@keyframes wczasy-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .hero-kicker { letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.scroll-hint { display: inline-block; animation: wczasy-bounce 2.2s ease-in-out infinite; text-decoration: none; }
@keyframes wczasy-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* --- Pojawianie się sekcji przy przewijaniu (tylko gdy działa JS) --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .24s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .36s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .48s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .6s; }

/* --- Karty apartamentów --- */
.apt-card { background: var(--wp--preset--color--krem); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 28px rgba(31,58,43,.08); transition: transform .35s ease, box-shadow .35s ease; height: 100%; }
.apt-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31,58,43,.16); }
.apt-card .wp-block-image { margin: 0; overflow: hidden; border-radius: 0; }
.apt-card .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 0; transition: transform .6s ease; }
.apt-card:hover .wp-block-image img { transform: scale(1.06); }
.apt-card .apt-card__body { padding: 1.25rem 1.4rem 1.6rem; }
.apt-price { font-family: var(--wp--preset--font-family--naglowki); color: var(--wp--preset--color--drewno); font-weight: 700; }

/* Fakty (chipy) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--wp--preset--color--piasek); border: 1px solid rgba(31,58,43,.12); border-radius: 999px; padding: .3rem .85rem; font-size: .92rem; font-weight: 600; }
.has-las-background-color .chips li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

/* Atrakcje */
.feature { text-align: center; }
.feature .feature-icon { font-size: 2.2rem; line-height: 1; display: inline-grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: rgba(255,255,255,.1); margin-bottom: .6rem; transition: transform .4s ease; }
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }

/* Galerie */
.wczasy-gallery.wp-block-gallery img { border-radius: 12px; transition: transform .5s ease, filter .5s ease; }
.wczasy-gallery.wp-block-gallery figure { overflow: hidden; border-radius: 12px; }
.wczasy-gallery.wp-block-gallery figure:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* Fala między sekcjami */
.wave-top { position: relative; }
.wave-top::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: inherit; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C150 0 300 0 450 14S750 40 900 26 1100 0 1200 10V40Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C150 0 300 0 450 14S750 40 900 26 1100 0 1200 10V40Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* Mapa */
.map-embed iframe { width: 100%; height: 380px; border: 0; border-radius: 18px; display: block; }

/* Cennik – tabela */
.price-table table { border-collapse: collapse; width: 100%; background: var(--wp--preset--color--krem); border-radius: 14px; overflow: hidden; }
.price-table th, .price-table td { padding: .9rem 1rem; border-bottom: 1px solid rgba(31,58,43,.1); text-align: left; }
.price-table thead th { background: var(--wp--preset--color--las); color: #fff; }
.price-table td:last-child { font-weight: 700; color: var(--wp--preset--color--drewno); white-space: nowrap; }

/* Pasek kontaktu na telefonie */
.mobile-cta { display: none; }
@media (max-width: 781px) {
	.mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 1px; background: rgba(31,58,43,.2); box-shadow: 0 -6px 20px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .35s ease; }
	.mobile-cta.is-visible { transform: none; }
	.mobile-cta a { flex: 1; text-align: center; padding: .95rem .5rem calc(.95rem + env(safe-area-inset-bottom)); font-weight: 700; text-decoration: none; color: #fff; background: var(--wp--preset--color--las); }
	.mobile-cta a.alt { background: var(--wp--preset--color--drewno); }
	body { padding-bottom: 64px; }
}

/* Linki w stopce */
.site-footer a { color: inherit; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: var(--wp--preset--color--piasek); }

/* Szanujemy ustawienie „ogranicz ruch” w telefonie/komputerze */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* Linki i przyciski "outline" na ciemnych sekcjach */
.has-las-background-color a:not(.wp-element-button),
.has-jezioro-background-color a:not(.wp-element-button),
.wp-block-cover a:not(.wp-element-button) { color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--wp--preset--color--las); }
.has-las-background-color .is-style-outline > .wp-block-button__link,
.has-jezioro-background-color .is-style-outline > .wp-block-button__link,
.wp-block-cover .is-style-outline > .wp-block-button__link { color: #fff; }
.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.has-jezioro-background-color .wp-block-heading { color: #fff; }
.price-box { border-radius: 18px; padding: 1.8rem; position: sticky; top: 100px; }
.price-box .apt-price { color: var(--wp--preset--color--piasek); margin: 0; }
.apt-card .wp-block-heading a { color: inherit; text-decoration: none; }
.form-placeholder { opacity: .75; font-style: italic; }
.hero--page h1 { margin-bottom: .25rem; }

/* --- Poprawki v1.0.1 --- */
.site-header .site-logo { white-space: nowrap; }
@media (max-width: 1100px) { .header-phone { display: none !important; } .site-header .wp-block-navigation { --navigation-layout-gap: 1.1rem; gap: 1.1rem; } }
@media (max-width: 781px) {
	.hero p.has-large-font-size { font-size: 1.15rem !important; }
	.hero .hero-kicker { font-size: .8rem; letter-spacing: .12em; }
	/* Atrakcje po dwie w rzędzie */
	.has-las-background-color .wp-block-columns.reveal-stagger { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
	.has-las-background-color .wp-block-columns.reveal-stagger + .wp-block-columns { margin-top: 1.5rem; }
	.feature .feature-icon { width: 3.4rem; height: 3.4rem; font-size: 1.7rem; }
	.feature h3 { font-size: 1.15rem !important; margin-top: .3rem; }
	.feature p { font-size: .92rem; }
	/* Tabela cen jako karty */
	.price-table thead { display: none; }
	.price-table table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
	.price-table tr { padding: .8rem 1rem; border-bottom: 1px solid rgba(31,58,43,.12); }
	.price-table td { border: 0; padding: .15rem 0; }
	.price-table td:first-child { font-family: var(--wp--preset--font-family--naglowki); font-size: 1.2rem; font-weight: 600; }
	.price-table td:last-child { font-size: 1.25rem; }
	.price-box { position: static; }
}

/* --- Lightbox (powiększanie zdjęć) --- */
img.is-zoomable { cursor: zoom-in; }
img.is-zoomable:focus-visible { outline: 3px solid var(--wp--preset--color--drewno); outline-offset: 3px; }
html.lb-open { overflow: hidden; }
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: #0f1812; color: #fff; }
.lb::backdrop { background: rgba(15,24,18,.94); }
.lb[open] { display: grid; place-items: center; animation: lb-fade .25s ease; }
.lb__fig { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 3.5rem 3.5rem 2.5rem; box-sizing: border-box; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: scale(.97); transition: opacity .3s ease, transform .3s ease; }
.lb__img.is-in { opacity: 1; transform: none; }
.lb__cap { position: absolute; bottom: .9rem; left: 0; right: 0; text-align: center; font-size: .9rem; opacity: .8; }
.lb__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.lb__btn:hover, .lb__btn:focus-visible { background: var(--wp--preset--color--drewno); outline: none; }
.lb__close { top: 1rem; right: 1rem; font-size: 1.2rem; }
.lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb--single .lb__prev, .lb--single .lb__next, .lb--single .lb__cap { display: none; }
@media (max-width: 600px) { .lb__fig { padding: 3.5rem .5rem 2.5rem; } .lb__prev, .lb__next { top: auto; bottom: .5rem; transform: none; } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Opinie --- */
.review-card { background: var(--wp--preset--color--krem); border-radius: 18px; padding: 1.6rem 1.6rem 1.2rem; height: 100%; box-shadow: 0 8px 28px rgba(31,58,43,.07); transition: transform .35s ease, box-shadow .35s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(31,58,43,.13); }
.review-stars { color: #E2A33B; letter-spacing: .12em; font-size: 1.15rem; margin: 0; }
.review-quote { border: 0 !important; padding: 0 !important; margin: .6rem 0 !important; font-family: var(--wp--preset--font-family--naglowki); font-style: italic; font-size: 1.08rem; line-height: 1.6; }
.review-author { opacity: .8; margin-top: .4rem; }
.reviews-row { margin-bottom: 1.5rem; }

/* --- Mapa po kliknięciu --- */
.map-consent { position: relative; height: 380px; border-radius: 18px; overflow: hidden; background-size: cover; background-position: center; display: grid; place-items: center; }
.map-consent::before { content: ""; position: absolute; inset: 0; background: rgba(31,58,43,.55); }
.map-consent__box { position: relative; text-align: center; color: #fff; padding: 1.5rem; max-width: 26rem; }
.map-consent__box p { margin: 0 0 1rem; }
.map-consent__btn { background: var(--wp--preset--color--drewno); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.map-consent__btn:hover { background: var(--wp--preset--color--las); transform: translateY(-2px); }
.map-consent__note { font-size: .85rem; opacity: .9; margin-top: 1rem !important; }
.map-consent__note a { color: #fff !important; }
