.staypilot-apartment-page { margin:0; }
.staypilot-apartment-page:not(.staypilot-plain) { background:#fbfaf7; }
.staypilot-apartment-page [class*="siteleads-greeting"] { display:none !important; }
.spd-page,
.spd-page * { box-sizing:border-box; }
.spd-page { --spd-ink:#1e2b27; --spd-muted:#69736f; --spd-line:#dedfd9; --spd-paper:#fbfaf7; --spd-green:#2f725f; color:var(--spd-ink); background:var(--spd-paper); font-family:var(--sp-font-text,Manrope,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif); font-size:16px; line-height:1.6; }
.spd-page button,
.spd-page a { font:inherit; }
.spd-shell { width:min(1160px,calc(100% - 40px)); margin:0 auto; }
.spd-header { color:var(--spd-hero-text,#fff); background:var(--spd-hero-bg-start,#172824); border-bottom:1px solid color-mix(in srgb,var(--spd-hero-text,#fff) 12%,transparent); }
.spd-header-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:76px; }
.spd-brand { display:flex; align-items:flex-start; flex-direction:column; gap:2px; color:var(--spd-hero-text,#fff); text-decoration:none; }
.spd-brand img { display:block; width:auto; max-width:min(280px,55vw); height:auto; max-height:40px; object-fit:contain; object-position:left center; }
.spd-brand small { display:block; color:color-mix(in srgb,var(--spd-hero-text,#fff) 55%,transparent); font-size:8px; letter-spacing:.13em; text-transform:uppercase; }
/* Link powrotu nad okruszkami: do bloku z apartamentami na stronie głównej (StayPilot_Block::list_url). */
.spd-back { display:inline-block; margin:0 0 16px; color:color-mix(in srgb,var(--spd-hero-text,#fff) 68%,transparent); font-size:11px; font-weight:700; letter-spacing:.04em; text-decoration:none; }
.spd-back:hover { color:var(--spd-hero-text,#fff); }
.spd-hero { padding:55px 0 118px; color:var(--spd-hero-text,#fff); background:radial-gradient(circle at 88% 10%,color-mix(in srgb,var(--spd-accent) 20%,transparent),transparent 27%),linear-gradient(120deg,var(--spd-hero-bg-start,#172824),var(--spd-hero-bg-end,#304b42)); }
.spd-breadcrumb { margin:0 0 34px; color:color-mix(in srgb,var(--spd-hero-text,#fff) 58%,transparent); font-size:10px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.spd-breadcrumb span { margin:0 9px; color:var(--spd-accent); }
.spd-hero-copy { display:flex; align-items:flex-end; justify-content:space-between; gap:35px; }
.spd-hero h1 { max-width:760px; margin:0; font-family:var(--sp-font-heading,Georgia,"Times New Roman",serif); font-size:clamp(42px,6vw,72px); font-weight:var(--sp-font-heading-weight,400); line-height:.98; letter-spacing:-.045em; }
.spd-location { margin:21px 0 0; color:color-mix(in srgb,var(--spd-hero-text,#fff) 80%,transparent); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
/* Układ bez tła (Wygląd strony → Układ nagłówka): jasny nagłówek, galeria pod tytułem zamiast na tle. */
.spd-page.is-plain { background:transparent; }
.spd-page.is-plain .spd-header { color:var(--spd-ink); background:transparent; border-bottom-color:var(--spd-line); }
.is-plain .spd-brand { color:var(--spd-ink); }
.is-plain .spd-brand small,
.is-plain .spd-back,
.is-plain .spd-breadcrumb { color:var(--spd-muted); }
.is-plain .spd-back:hover { color:var(--spd-ink); }
.is-plain .spd-hero { padding:46px 0 36px; color:var(--spd-ink); background:none; }
.is-plain .spd-location { color:var(--spd-accent); }
.is-plain .spd-gallery { margin-top:0; }
.spd-gallery { margin-top:-78px; padding:12px; background:#fff; border-radius:18px; box-shadow:0 26px 70px rgba(24,36,32,.14); }
/* Karuzela: przewijanie z przyciąganiem (palcem na telefonie), strzałki, licznik i pasek miniatur pod zdjęciem. */
.spd-carousel { position:relative; }
.spd-slides { display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; background:#d9ddd9; border-radius:12px; outline:0; }
.spd-slides::-webkit-scrollbar { display:none; }
.spd-slides:focus-visible { box-shadow:0 0 0 3px color-mix(in srgb,var(--spd-accent) 40%,transparent); }
.spd-slide { flex:0 0 100%; margin:0; scroll-snap-align:start; scroll-snap-stop:always; }
.spd-slide button { display:block; width:100%; padding:0; background:none; border:0; cursor:zoom-in; }
.spd-slide img { display:block; width:100%; height:clamp(300px,46vw,540px); object-fit:cover; }
.spd-carousel-nav { position:absolute; top:50%; z-index:2; display:grid; place-items:center; width:46px; height:46px; padding:0 0 4px; color:var(--spd-ink); background:rgba(255,255,255,.92); border:0; border-radius:50%; box-shadow:0 6px 20px rgba(0,0,0,.18); cursor:pointer; font-size:30px; line-height:1; transform:translateY(-50%); transition:background .2s ease, transform .2s ease; }
.spd-carousel-nav:hover { background:#fff; transform:translateY(-50%) scale(1.06); }
.spd-carousel-nav:focus-visible { outline:3px solid color-mix(in srgb,var(--spd-accent) 45%,transparent); outline-offset:2px; }
.spd-carousel-nav.is-prev { left:16px; }
.spd-carousel-nav.is-next { right:16px; }
.spd-carousel-count { position:absolute; right:14px; bottom:14px; z-index:2; padding:5px 11px; color:#fff; background:rgba(16,24,22,.62); border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.04em; pointer-events:none; }
.spd-thumbnails { position:relative; display:flex; gap:8px; margin-top:10px; overflow-x:auto; scrollbar-width:thin; }
.spd-thumbnail { flex:0 0 112px; height:76px; overflow:hidden; padding:0; background:#e4e5e1; border:2px solid transparent; border-radius:9px; cursor:pointer; opacity:.72; transition:opacity .2s ease, border-color .2s ease; }
.spd-thumbnail:hover,
.spd-thumbnail.is-active { opacity:1; }
.spd-thumbnail.is-active { border-color:var(--spd-accent); }
.spd-thumbnail img { display:block; width:100%; height:100%; object-fit:cover; }
.spd-content-grid { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:65px; align-items:start; padding-top:40px; padding-bottom:95px; }
.spd-content-main { min-width:0; }
.spd-section { padding:0 0 58px; margin-bottom:58px; border-bottom:1px solid var(--spd-line); }
.spd-section:last-child { margin-bottom:0; border-bottom:0; }
.spd-kicker { margin:0 0 11px; color:var(--spd-accent); font-size:10px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; }
.spd-section h2 { margin:0; font-family:var(--sp-font-heading,Georgia,"Times New Roman",serif); font-size:clamp(29px,4vw,44px); font-weight:var(--sp-font-heading-weight,400); line-height:1.08; letter-spacing:-.03em; }
.spd-description { max-width:740px; margin-top:25px; color:#59635f; font-family:var(--spd-description-font,inherit); font-size:15px; }
.spd-description p { margin:0 0 15px; }
.spd-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:25px; }
.spd-features span { display:flex; align-items:center; gap:10px; padding:14px 15px; background:#f1f3ef; border-radius:9px; font-size:12px; font-weight:700; }
.spd-features i { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; color:var(--spd-green); background:#fff; border:1px solid #d5e4dd; border-radius:9px; font-size:16px; font-style:normal; }
/* Kluczowe cechy pod zdjęciami: goście, metraż, pokoje, łazienki i łóżka (motyw nie może zmienić list i akapitów). */
.spd-key-facts { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 50px; padding:0; list-style:none; }
.spd-key-facts li { display:flex; align-items:center; gap:14px; flex:1 1 150px; margin:0; padding:16px 18px; background:#fff; border:1px solid var(--spd-line); border-radius:14px; }
.spd-key-facts li.is-beds { flex:2 1 270px; }
.spd-key-facts i { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; background:#f1f3ef; border-radius:11px; font-size:19px; font-style:normal; }
.spd-key-facts p { margin:0; padding:0; }
.spd-key-facts .spd-key-label { color:var(--spd-muted); font-size:10px; font-weight:800; letter-spacing:.13em; line-height:1.4; text-transform:uppercase; }
.spd-key-facts .spd-key-value { margin-top:2px; color:var(--spd-ink); font-family:var(--sp-font-heading,Georgia,"Times New Roman",serif); font-size:26px; line-height:1.1; }
.spd-key-facts .spd-key-value.is-text { flex-basis:100%; font-size:17px; line-height:1.3; }
/* Łóżka: liczba i rodzaje w jednym wierszu, a przy braku miejsca rodzaje schodzą pod liczbę. */
.spd-key-facts .is-beds > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 14px; }
.spd-key-facts .is-beds .spd-key-label { flex-basis:100%; }
.spd-key-facts .spd-key-beds { display:flex; flex-wrap:wrap; gap:2px 12px; color:var(--spd-muted); font-size:13px; line-height:1.35; }
.spd-key-facts .spd-key-beds b { color:var(--spd-ink); font-weight:700; }
.spd-muted { margin:15px 0 0; color:var(--spd-muted); }
.spd-extras { display:grid; gap:10px; margin:25px 0 0; padding:0; list-style:none; }
.spd-extras li { display:flex; align-items:flex-start; gap:12px; padding:14px 15px; background:#f1f3ef; border-radius:9px; }
.spd-extras i { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; background:#fff; border:1px solid #d5e4dd; border-radius:9px; font-size:16px; font-style:normal; }
.spd-extras strong { display:block; font-size:13px; line-height:1.35; }
.spd-extras small { display:block; margin-top:2px; color:var(--spd-muted); font-size:11px; line-height:1.45; }
.spd-offline { display:grid; gap:4px; margin:20px 0; padding:14px 15px; color:#7d3420; background:#fbeee8; border:1px solid #efd2c6; border-radius:10px; font-size:12px; }
.spd-offline strong { font-size:14px; }
.spd-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.spd-calendar-legend { display:flex; gap:15px; color:var(--spd-muted); font-size:10px; }
.spd-calendar-legend span { display:flex; align-items:center; gap:6px; }
.spd-calendar-legend i { width:8px; height:8px; border-radius:50%; }
.spd-calendar-legend .is-free { background:#58a084; }
.spd-calendar-legend .is-busy { background:#c7c9c5; }
.spd-sync-notice { display:flex; gap:12px; margin-top:22px; padding:13px 15px; color:#73513c; background:#fff0e6; border:1px solid #f0d1bd; border-radius:10px; font-size:11px; }
.spd-sync-notice strong { flex:0 0 auto; }
.spd-calendar-card { margin-top:18px; padding:21px; background:#fff; border:1px solid var(--spd-line); border-radius:13px; box-shadow:0 12px 32px rgba(31,43,39,.05); }
.spd-calendar-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.spd-calendar-toolbar h3 { margin:0; font-family:var(--sp-font-heading,Georgia,serif); font-size:22px; font-weight:var(--sp-font-heading-weight,400); text-transform:capitalize; }
.spd-calendar-toolbar button { display:grid; place-items:center; width:36px; height:36px; color:var(--spd-ink); background:#f3f4f1; border:0; border-radius:50%; cursor:pointer; }
.spd-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.spd-weekday { padding:7px 0; color:#919894; text-align:center; font-size:9px; font-weight:800; text-transform:uppercase; }
.spd-day { position:relative; display:grid; place-items:center; aspect-ratio:1; min-height:45px; border-radius:9px; font-size:12px; font-weight:700; }
.spd-day::after { content:""; position:absolute; bottom:5px; width:4px; height:4px; background:#58a084; border-radius:50%; }
.spd-day.is-busy { color:#9da29f; background:#f0f1ee; text-decoration:line-through; }
.spd-day.is-busy::after { background:#c2c5c1; }
.spd-day.is-outside { opacity:.35; }
.spd-day.is-past { color:#bbc0bd; }
.spd-day.is-past::after { display:none; }
.spd-map { height:390px; margin-top:20px; overflow:hidden; background:#eceeea; border-radius:14px; }
.spd-map iframe { width:100%; height:100%; border:0; }
.spd-booking-card { position:sticky; top:32px; padding:27px; background:#fff; border:1px solid var(--spd-line); border-radius:16px; box-shadow:0 18px 50px rgba(31,43,39,.09); }
.spd-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; padding-bottom:20px; border-bottom:1px solid var(--spd-line); }
.spd-price strong { font-family:var(--sp-font-heading,Georgia,serif); font-size:32px; font-weight:var(--sp-font-heading-weight,400); line-height:1.1; }
.spd-price span { color:var(--spd-muted); font-size:10px; }
.spd-booking-card ul { margin:20px 0; padding:0; list-style:none; }
.spd-booking-card li { display:flex; gap:9px; margin:11px 0; color:#59635f; font-size:11px; }
.spd-booking-card li span { color:var(--spd-green); }
.spd-cta { display:flex; align-items:center; justify-content:space-between; min-height:56px; padding:0 18px; color:#fff; background:var(--spd-accent); border-radius:8px; font-size:12px; font-weight:800; text-decoration:none; transition:filter .2s,transform .2s; }
.spd-cta:hover { color:#fff; filter:brightness(.92); transform:translateY(-1px); }
.spd-booking-card > small { display:block; margin-top:10px; color:#8a928f; text-align:center; font-size:9px; }
/* Bez karty „Twój pobyt” (Wygląd strony → Strona apartamentu): treść na całą szerokość, goście, cena i rezerwacja pod kalendarzem. */
.spd-content-grid.is-single { grid-template-columns:minmax(0,1fr); }
.spd-inline-booking { display:grid; grid-template-columns:minmax(150px,210px) minmax(0,1fr) minmax(220px,280px); gap:12px 16px; align-items:center; margin-top:24px; padding:18px; background:#fff; border:1px solid var(--spd-line); border-radius:14px; }
.spd-inline-booking .af-cart-guests,
.spd-inline-booking .af-quote { margin:0; }
.spd-inline-booking .af-cart-extras { grid-column:1 / -1; grid-row:2; margin:0; }
.spd-inline-booking > small { grid-column:1 / -1; color:#8a928f; text-align:right; font-size:9px; }
.spd-footer { padding:35px 0; color:#fff; background:#172824; }
.spd-footer .spd-shell { display:flex; align-items:center; justify-content:space-between; }
.spd-footer a { color:rgba(255,255,255,.65); font-size:11px; text-decoration:none; }
.spd-lightbox[hidden] { display:none; }
.spd-lightbox { position:fixed; z-index:100000; inset:0; display:grid; place-items:center; padding:40px; background:rgba(9,16,14,.92); }
.spd-lightbox img { max-width:100%; max-height:calc(100vh - 80px); object-fit:contain; }
.spd-lightbox-close,
.spd-lightbox-nav { position:absolute; display:grid; place-items:center; width:42px; height:42px; padding:0 0 3px; color:#fff; background:rgba(255,255,255,.12); border:0; border-radius:50%; cursor:pointer; font-size:30px; line-height:1; }
.spd-lightbox-close { top:20px; right:24px; }
.spd-lightbox-nav { top:50%; width:50px; height:50px; transform:translateY(-50%); }
.spd-lightbox-nav.is-prev { left:20px; }
.spd-lightbox-nav.is-next { right:20px; }
.spd-lightbox-close:hover,
.spd-lightbox-nav:hover { background:rgba(255,255,255,.22); }
body.spd-lightbox-open { overflow:hidden; }
@media (max-width:900px) {
    .spd-content-grid { grid-template-columns:1fr; gap:0; }
    .spd-booking-card { position:static; }
    .spd-inline-booking { grid-template-columns:1fr; }
    .spd-inline-booking .af-cart-extras { grid-row:auto; }
    .spd-inline-booking > small { text-align:center; }
}
@media (max-width:640px) {
    .spd-shell { width:min(100% - 24px,1160px); }
    .spd-header-inner { min-height:66px; }
    .spd-hero { padding:38px 0 88px; }
    .is-plain .spd-hero { padding:30px 0 26px; }
    .spd-breadcrumb { margin-bottom:24px; }
    .spd-hero-copy { align-items:flex-start; flex-direction:column; }
    .spd-gallery { margin-top:-55px; padding:8px; border-radius:15px; }
    .spd-slide img { height:clamp(240px,68vw,340px); }
    .spd-carousel-nav { width:38px; height:38px; font-size:26px; }
    .spd-carousel-nav.is-prev { left:10px; }
    .spd-carousel-nav.is-next { right:10px; }
    .spd-thumbnail { flex-basis:84px; height:60px; }
    .spd-lightbox-nav.is-prev { left:8px; }
    .spd-lightbox-nav.is-next { right:8px; }
    .spd-content-grid { padding-top:28px; padding-bottom:60px; }
    .spd-section { padding-bottom:42px; margin-bottom:42px; }
    .spd-features { grid-template-columns:1fr; }
    /* Trzy karty w rzędzie; łóżka zajmują wolne miejsce obok ostatniej karty albo cały rząd. */
    .spd-key-facts { gap:8px; margin-bottom:38px; }
    .spd-key-facts li { flex:1 1 96px; flex-direction:column; align-items:flex-start; gap:10px; padding:13px; }
    .spd-key-facts li.is-beds { flex:2 1 200px; }
    .spd-key-facts i { flex-basis:34px; width:34px; height:34px; font-size:17px; }
    .spd-key-facts .spd-key-value { font-size:23px; }
    .spd-section-heading { align-items:flex-start; flex-direction:column; }
    .spd-sync-notice { flex-direction:column; }
    .spd-calendar-card { padding:13px 8px; }
    .spd-day { min-height:38px; }
    .spd-map { height:300px; }
    .spd-lightbox { padding:16px; }
}
@media (prefers-reduced-motion:reduce) {
    .spd-page *, .spd-page *::before, .spd-page *::after { transition:none !important; scroll-behavior:auto !important; }
}

/* W pobliżu: miejsca z OpenStreetMap i dopisane w edytorze */
.spd-nearby-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin:22px 0 0; padding:0; list-style:none; }
.spd-nearby-list li { display:flex; align-items:center; gap:12px; padding:12px 14px; background:#f1f3ef; border-radius:9px; }
.spd-nearby-list i { flex:0 0 auto; font-style:normal; font-size:20px; line-height:1; }
.spd-nearby-list div { display:flex; flex-direction:column; min-width:0; flex:1; }
.spd-nearby-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.spd-nearby-list small { color:var(--spd-muted, #68736f); font-size:12px; }
.spd-nearby-distance { display:flex; flex-direction:column; align-items:flex-end; flex:0 0 auto; text-align:right; white-space:nowrap; }
.spd-nearby-note { margin-top:12px; font-size:12px; }
@media (max-width: 720px) {
    .spd-nearby-list { grid-template-columns:minmax(0, 1fr); }
}
