/* =====================================================================
   Wawelofts — poprawki wyglądu i dostępności (audyt 03.12.2026)
   Ładowane po style.css. Każda sekcja = jedna zmiana PS-n z raportu.
   ===================================================================== */

/* PS-1 — karta rezerwacji (EO-11) + telefon: stały pasek rezerwacji (EO-12) */
.wl-skrot-h{font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#F3E2D6;margin:0 0 10px}
.wl-po-rez{margin:14px 0 0;font-size:13px;line-height:1.5;color:#F3E2D6;text-align:center}
.single-apartament main [style*="position:sticky"] a[href*="booking.com"]{text-wrap:balance}
.wl-bookbar{display:none}
@media (max-width:760px){
  .wl-bookbar{display:flex;align-items:center;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:900;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#F2EEE6;
    border-top:1px solid rgba(20,17,14,.12);box-shadow:0 -8px 24px rgba(20,17,14,.10)}
  .wl-bookbar__txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
  .wl-bookbar__txt strong{font-size:14.5px;font-weight:800;color:#14110E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .wl-bookbar__txt span{font-size:12.5px;color:#57534F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .wl-bookbar__btn{flex:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-height:50px;padding:4px 20px;border-radius:100px;background:#9E3823;color:#fff !important;font-size:15px;font-weight:700;line-height:1.15}
  .wl-bookbar__btn small{font-size:11px;font-weight:600;color:#F3E2D6;letter-spacing:.02em}
  body:has(.wl-bookbar){padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  body:has(.wl-bookbar) .cmplz-manage-consent{bottom:calc(86px + env(safe-area-inset-bottom)) !important}
  body:has(.wl-bookbar) header .wl-cta-rez{display:none !important}
}

/* PS-2 — galeria: pas na telefonie, mozaika na tablecie i w poziomie */
@media (max-width:760px){
  main [data-anim-solo*="wl-tile"]{display:flex !important;gap:10px !important;overflow-x:auto;scroll-snap-type:x mandatory;
    margin:0 -20px;padding:0 20px 4px;scroll-padding-left:20px;scrollbar-width:none;overscroll-behavior-x:contain}
  main [data-anim-solo*="wl-tile"]::-webkit-scrollbar{display:none}
  main [data-anim-solo*="wl-tile"] > div{flex:0 0 84%;scroll-snap-align:start;border-radius:14px !important}
  main [data-anim-solo*="wl-tile"] > .anim{opacity:1 !important;transform:none !important}
  main [data-anim-solo*="wl-tile"] img.wl-lb{height:250px !important}
}
@media (min-width:761px) and (max-width:900px){
  main div[data-anim-solo*="wl-tile"]{grid-template-columns:2fr 1fr 1fr !important;grid-template-rows:190px 190px !important;gap:10px !important}
  main div[data-anim-solo*="wl-tile"] > div:first-child{grid-row:span 2 !important}
}
@media (min-width:761px) and (max-width:900px) and (orientation:landscape) and (max-height:520px){
  main div[data-anim-solo*="wl-tile"]{grid-template-rows:150px 150px !important}
}

/* PS-3 — karta rezerwacji: pod nagłówkiem na komputerze, zaraz pod galerią na tablecie */
@media (min-width:901px){ main [style*="position:sticky"]{top:105px !important} }
@media (min-width:761px) and (max-width:900px){
  .single-apartament main [style*="position:sticky"]{order:-1;position:static !important;display:grid;grid-template-columns:1fr auto;column-gap:32px;align-items:center;padding:28px 30px !important}
  .single-apartament main [style*="position:sticky"] > *{grid-column:1}
  .single-apartament main [style*="position:sticky"] > a[href*="booking.com"]{grid-column:2;grid-row:1 / span 3;align-self:center;padding:16px 26px !important}
  .single-apartament main [style*="position:sticky"] > .wl-po-rez{grid-column:2;text-align:center}
  .single-apartament main [style*="position:sticky"] > div[style*="flex-direction:column"]{margin-bottom:0 !important}
}

/* PS-4 — strona główna: „dwoje drzwi” w hero (teksty EO-18) */
.wl-doors{display:flex;justify-content:center;align-items:flex-start;gap:0;margin-top:38px;pointer-events:auto}
.wl-door{display:flex;flex-direction:column;align-items:center;gap:12px;padding:0 30px}
.wl-door + .wl-door{border-left:1px solid rgba(242,238,230,.38)}
.wl-door__lbl{font-size:11.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#fff}
.wl-door__btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 30px;border-radius:100px;font-size:15.5px;font-weight:700;box-shadow:0 12px 28px rgba(20,17,14,.24);transition:transform .2s ease,box-shadow .2s ease}
.wl-door__btn:hover{opacity:1;transform:translateY(-2px);box-shadow:0 16px 32px rgba(20,17,14,.28)}
.wl-door--ap .wl-door__btn{background:#F2EEE6;color:#9E3823}
.wl-door--pr .wl-door__btn{background:#F2872F;color:#3A1B08}
.wl-door__more{display:inline-flex;align-items:center;min-height:32px;font-size:13.5px;font-weight:700;color:#fff;text-decoration:underline;text-underline-offset:4px;margin-top:-4px}
@media (prefers-reduced-motion:reduce){.wl-door__btn{transition:none}.wl-door__btn:hover{transform:none}}
@media (max-width:600px){
  .home .wl-hero-in{padding:0 22px !important}
  .home .wl-hero-in > div:first-child{margin-bottom:16px !important;letter-spacing:.14em !important;font-size:11px !important}
  .home .wl-hero-in h1 > span + span{margin-top:14px !important;font-size:15px !important}
  .home .wl-hero-in > p{font-size:15px !important;margin-top:14px !important;line-height:1.5 !important}
  .wl-doors{flex-direction:column;align-items:stretch;width:100%;max-width:340px;gap:18px;margin-top:26px}
  .wl-door{padding:0;gap:8px}
  .wl-door + .wl-door{border-left:0;border-top:1px solid rgba(242,238,230,.38);padding-top:16px}
  .wl-door__btn{width:100%}
}
/* niski ekran poziomy (telefon obrócony): hero dopasowane do treści, opis pod przyciskami */
@media (orientation:landscape) and (max-height:520px){
  .home main > div:first-child{height:auto !important;min-height:0 !important}
  .home .wl-hero-in{position:relative !important;inset:auto !important;padding:26px 40px 30px !important}
  .home .wl-hero-in > div:first-child{margin-bottom:10px !important}
  .home .wl-hero-in .wl-hero-title{font-size:min(17vh,96px) !important}
  .home .wl-hero-in h1 > span + span{margin-top:10px !important;font-size:15px !important}
  .home .wl-hero-in > p{order:5;font-size:14.5px !important;margin-top:18px !important;max-width:640px !important}
  .wl-doors{order:4;margin-top:18px}
  .wl-door__btn{min-height:48px}
}

/* PS-6 — pralnia: wezwanie z mailem (szablon EO-6) i telefonem, powtórzone w miejscach decyzji (EO-1, EO-7) */
.wl-q{display:flex;flex-direction:column;gap:14px;max-width:640px}
.wl-q__btns{display:flex;gap:12px;flex-wrap:wrap}
.wl-q__btns a{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 28px;border-radius:100px;font-size:15.5px;font-weight:700;white-space:nowrap}
.wl-q__mail{background:#F2872F;color:#3A1B08}
.wl-q__tel{background:transparent;color:#F2EEE6;border:1.5px solid rgba(242,238,230,.75)}
.wl-q__tel:hover{background:rgba(242,238,230,.12);opacity:1}
.wl-q__note{margin:0;font-size:14px;line-height:1.55;color:#F2EEE6;max-width:560px}
.wl-q-strip{max-width:1220px;margin:0 auto;padding:0 56px 72px}
.wl-q-strip .wl-q{max-width:none;flex-direction:row;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;
  padding:28px 32px;border-radius:20px;background:#fff;border:1px solid rgba(20,17,14,.08)}
.wl-q-strip .wl-q__note{order:-1;flex:1 1 320px;color:#3D3833;font-size:15px}
.wl-q-strip .wl-q__tel{color:#155AA8;border-color:#155AA8}
.wl-q-strip .wl-q__tel:hover{background:rgba(21,90,168,.08)}
.wl-more-link{display:inline-flex;align-items:center;min-height:44px;margin-left:18px;font-size:14px;font-weight:700;color:#F2EEE6;text-decoration:underline;text-underline-offset:4px}
.wl-prbar{display:none}
@media (max-width:760px){
  .wl-q__btns{flex-direction:column;align-items:stretch}
  .wl-q__btns a{padding:0 16px;font-size:15px}
  .wl-q-strip{padding:0 20px 56px}
  .wl-q-strip .wl-q{padding:22px 20px;flex-direction:column;align-items:stretch}
  .wl-more-link{display:flex;margin:12px 0 0}
  .wl-prbar{display:grid;grid-template-columns:1fr 1.25fr;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:900;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#F2EEE6;
    border-top:1px solid rgba(20,17,14,.12);box-shadow:0 -8px 24px rgba(20,17,14,.10)}
  .wl-prbar a{display:flex;align-items:center;justify-content:center;min-height:50px;border-radius:100px;font-size:15px;font-weight:700}
  .wl-prbar__tel{background:#fff;color:#155AA8;border:1.5px solid #155AA8}
  .wl-prbar__mail{background:#F2872F;color:#3A1B08}
  body:has(.wl-prbar){padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  body:has(.wl-prbar) .cmplz-manage-consent{bottom:calc(86px + env(safe-area-inset-bottom)) !important}
}

/* PS-7 — telefon: nagłówek w jednym rzędzie, menu dostępne */
@media (max-width:760px){
  header.wl-site-header{flex-wrap:wrap;align-items:center;gap:8px 10px !important;padding:12px 16px !important}
  header.wl-site-header > a:first-child{order:1;margin-right:auto;flex:none}
  header.wl-site-header > a:first-child img[style*="height:40px"]{height:30px !important}
  header.wl-site-header > a:first-child img[style*="height:30px"]{height:24px !important}
  header.wl-site-header > div{order:2;gap:10px !important}
  header.wl-site-header > div > span a{display:inline-flex;align-items:center;min-height:32px;padding:0 3px}
  header.wl-site-header > div > a{display:inline-flex !important;align-items:center;min-height:44px;padding:0 16px !important}
  .wl-mobile-toggle{order:3;display:inline-flex !important;align-items:center;justify-content:center;width:44px;height:44px;padding:0 !important;font-size:24px !important;border-radius:10px}
  #wl-nav{display:none !important;order:4;width:100%;flex-direction:column;gap:0 !important;padding-top:4px}
  #wl-nav.wl-open{display:flex !important}
  #wl-nav a{display:flex;align-items:center;min-height:48px;font-size:17px;border-top:1px solid rgba(20,17,14,.08)}
}
@media (max-width:360px){ header.wl-site-header > div > span{display:none !important} }

/* PS-8 — kontrast WCAG 2.2 AA */
/* niebieskie sekcje z tekstem: głębszy błękit (krem 5,9:1, biel 6,9:1) */
[style*="background:#1C74D8"]{background-color:#155AA8 !important}
[style*="background:#1C74D8"] [style*="color:#F79B4B"],
[style*="background:#1C74D8"] [style*="color:#F2872F"]{color:#FFD3AE !important}
[style*="background:#1C74D8"] span[style*="background:rgba(242,135,47,.16)"]{background:rgba(10,30,60,.28) !important}
[style*="background:#1C74D8"] [style*="color:rgba(247,225,208"],
[style*="background:#1C74D8"] [style*="color:rgba(243,233,223"],
[style*="background:#1C74D8"] [style*="color:rgba(251,233,216"]{color:#F2EEE6 !important}
[style*="background:#1C74D8"] [style*="color:rgba(243,217,196"],
[style*="background:#1C74D8"] [style*="color:#A6D0F5"]{color:#DCEBFA !important}
img[src*="pralnia-van-cart"]{opacity:.16 !important}
/* hero pralni: przyciemnienie pod kolumną tekstu (zdjęcie busa rozjaśnia błękit); OZ-6: też gdy <img> jest w <picture> */
main > div:first-child:has(> img[src*="pralnia-van-cart"], > picture > img[src*="pralnia-van-cart"])::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(14,52,104,.55) 0%,rgba(14,52,104,.4) 50%,rgba(14,52,104,0) 85%)}
main > div:first-child:has(> img[src*="pralnia-van-cart"], > picture > img[src*="pralnia-van-cart"]) > div{z-index:1}
@media (max-width:760px){ main > div:first-child:has(> img[src*="pralnia-van-cart"], > picture > img[src*="pralnia-van-cart"])::after{background:rgba(14,52,104,.45)} }
/* niebieski jako tekst na jasnym tle */
[style*="color:#1C74D8"]{color:#155AA8 !important}
/* pomarańcz na białych i beżowych kartach (nadtytuły pralni); tło strony #F2EEE6 celowo pominięte,
   bo obejmuje też sekcje niebieskie i ciemne */
[style*="background:#fff"] [style*="color:#F2872F"],
[style*="background:#F0E7DA"] [style*="color:#F2872F"]{color:#A64F0E !important}
/* ceglane karty: etykiety i opisy bez przezroczystości */
[style*="background:#9E3823"] [style*="color:rgba(243,226,214"],
[style*="background:#9E3823"] [style*="color:#F0C4A8"]{color:#F3E2D6 !important}
/* ramka „Zapraszamy do kontaktu” (pomarańcz) */
[style*="background:#F2872F"] [style*="color:rgba(58,27,8"]{color:#3A1B08 !important}
/* jasne tło: nieaktywny język, okruszki */
a[hreflang][style*="opacity:.5"]{opacity:.74 !important}
nav[aria-label="breadcrumb"]{color:rgba(20,17,14,.7) !important}
/* hero strony głównej: przyciemnienie pod tekstem + pełna biel */
.home main > div:first-child > div[style*="justify-content:center"]{z-index:1}
.home main > div:first-child > div[style*="justify-content:center"]::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 52% 42% at 50% 56%,rgba(20,17,14,.5),rgba(20,17,14,0) 76%)}
.home main > div:first-child [data-anim-order="1"],
.home main > div:first-child [data-anim-order="3"],
.home .wl-hero-title span{color:#fff !important;-webkit-text-fill-color:#fff !important}

/* PS-9 — widoczny fokus + link „Przejdź do treści” */
:focus-visible{outline:3px solid #14110E !important;outline-offset:2px !important;box-shadow:0 0 0 6px #F2EEE6 !important;border-radius:6px}
main#tresc:focus{outline:none !important;box-shadow:none !important}
.wl-skip{position:absolute;left:12px;top:-80px;z-index:3000;background:#14110E;color:#F2EEE6;padding:12px 18px;border-radius:10px;font-weight:700;font-size:15px}
.wl-skip:focus{top:12px}

/* PS-10 — nagłówki pełnym kolorem, bez pętli animacji */
.wl-hero-title, main h1{animation:none !important;will-change:auto !important;background-size:auto !important}
main :is(h1,h2,h3):not(.wl-hero-h1){background:none !important;-webkit-text-fill-color:currentColor !important;color:#14110E !important;filter:none !important}
/* PS-10a: nagłówki w sekcjach ciemnych, niebieskich i ceglanych — specyficzność wyższa niż reguła ogólna wyżej */
main [style*="background:#14110E"] :is(h1,h2,h3):not(.wl-hero-h1),
main [style*="background:#1C74D8"] :is(h1,h2,h3):not(.wl-hero-h1),
main [style*="background:#9E3823"] :is(h1,h2,h3):not(.wl-hero-h1){color:#F2EEE6 !important}
main [style*="background:#1C74D8"] :is(h1,h2,h3)[style*="color:#F2872F"],
main [style*="background:#1C74D8"] :is(h1,h2,h3)[style*="color:#F79B4B"]{color:#FFD3AE !important}
/* tytuł hero /apartamenty/ pełnym kolorem (szkło zostaje tylko na znaku WAWELOFTS na stronie głównej) */
body:not(.home) .wl-hero-title{background:none !important;-webkit-text-fill-color:currentColor !important;color:#F2EEE6 !important;filter:none !important}
@media (forced-colors:active){
  .wl-hero-title, .wl-wm, main :is(h1,h2,h3){-webkit-text-fill-color:CanvasText !important;color:CanvasText !important;background:none !important;filter:none !important}
}

/* PS-11 — prawdziwe dane: wyróżniki z udogodnień, „W skrócie”, kafel marki zamiast obrazów wygenerowanych */
.wl-hl{list-style:none;display:flex;flex-wrap:wrap;margin:-8px 0 18px;padding:0;font-size:13px;font-weight:700;line-height:1.4;color:#7E2A18}
.wl-hl li + li::before{content:"·";margin:0 8px;color:rgba(126,42,24,.55)}
.wl-skrot{list-style:none;margin:4px 0 0;padding:12px 0 0;border-top:1px solid rgba(243,226,214,.2);display:flex;flex-direction:column;gap:8px}
.wl-skrot li{position:relative;padding-left:20px;font-size:14px;color:#F2EEE6;font-weight:600}
.wl-skrot li::before{content:"";position:absolute;left:2px;top:.5em;width:8px;height:8px;border-radius:50%;background:#F3E2D6}
.wl-nofoto,.wl-card-nofoto{position:relative;display:flex;align-items:flex-end;overflow:hidden;color:#F2EEE6;
  background:#9E3823 radial-gradient(rgba(255,255,255,.13) 1px,transparent 1.4px) 0 0/22px 22px}
.wl-nofoto{min-height:412px;border-radius:16px;padding:40px 44px}
.wl-nofoto span{font-family:'Lato',sans-serif;font-weight:800;font-size:clamp(34px,5vw,64px);line-height:1;letter-spacing:-.02em}
.wl-card-nofoto{height:210px;padding:18px 20px}
.wl-card-nofoto span{font-family:'Lato',sans-serif;font-weight:800;font-size:22px;line-height:1.1;letter-spacing:-.01em}
.wl-nofoto::after,.wl-card-nofoto::after{content:"WAWELOFTS";position:absolute;right:-6px;top:6px;font-family:'Lato',sans-serif;font-weight:800;font-size:64px;letter-spacing:-.02em;color:rgba(242,238,230,.08);line-height:1}
@media (max-width:760px){ .wl-nofoto{min-height:240px;padding:26px 24px} }

/* PS-12 — /apartamenty/: lista wyżej, krótsze karty na telefonie */
@media (max-width:760px), (orientation:landscape) and (max-height:520px){
  .post-type-archive-apartament main > div:first-child{min-height:0 !important;height:auto !important;padding-top:44px !important;padding-bottom:48px !important}
}
@media (min-width:601px) and (max-width:900px){
  #lista div[data-anim-solo]{grid-template-columns:1fr 1fr !important;gap:18px !important}
}
@media (max-width:600px){
  #lista [data-anim-solo] > div{display:grid !important;grid-template-columns:112px minmax(0,1fr);align-items:stretch}
  #lista [data-anim-solo] > div > img,
  #lista [data-anim-solo] > div > .wl-card-nofoto{width:112px !important;height:100% !important;min-height:150px;grid-row:1}
  #lista [data-anim-solo] > div > .wl-card-nofoto{align-items:center;justify-content:center;padding:10px}
  #lista [data-anim-solo] > div > .wl-card-nofoto span{display:none}
  #lista [data-anim-solo] > div > .wl-card-nofoto::after{position:static;writing-mode:vertical-rl;transform:rotate(180deg);font-size:15px;letter-spacing:.24em;color:rgba(242,238,230,.6)}
  #lista [data-anim-solo] > div > div{padding:14px 14px 14px 16px !important}
  #lista [data-anim-solo] > div > div > div:first-child{font-size:16.5px !important}
  #lista [data-anim-solo] > div > div > div:nth-child(3){margin-bottom:10px !important}
  #lista .wl-hl{margin:-2px 0 12px}
  #lista .wl-hl{font-size:12.5px}
  #lista .wl-stretch{flex:0 0 0 !important;padding:0 !important;font-size:0 !important;background:none !important;min-width:0}
  #lista .wl-stretch:focus-visible{outline:none !important;box-shadow:none !important}
  #lista .wl-stretch:focus-visible::after{outline:3px solid #14110E;outline-offset:-3px;border-radius:16px}
  #lista a[href*="booking.com"]{flex:1 1 100% !important;min-height:44px;display:inline-flex !important;align-items:center;justify-content:center}
}

/* PS-14 — kafel galerii z fokusem */
img.wl-lb[tabindex]:focus-visible{outline-offset:-4px !important}

/* PS-15 — telefon: kompaktowy baner cookies (treść i przyciski bez zmian) */
@media (max-width:760px){
  .cmplz-cookiebanner{left:8px !important;right:8px !important;bottom:8px !important;width:auto !important;max-width:none !important;padding:14px 14px 12px !important;border-radius:14px !important}
  .cmplz-cookiebanner .cmplz-title{font-size:16px !important}
  .cmplz-cookiebanner .cmplz-body,
  .cmplz-cookiebanner .cmplz-message{font-size:13.5px !important;line-height:1.45 !important}
  .cmplz-cookiebanner .cmplz-buttons{display:grid !important;grid-template-columns:1fr 1fr;gap:8px !important}
  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn{min-height:44px;margin:0 !important;width:100% !important;padding:8px 10px !important}
  .cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences,
  .cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences{grid-column:1 / -1}
  .cmplz-cookiebanner .cmplz-links a{font-size:13px !important}
}

/* PS-16 — telefon poziomo: niski nagłówek, hero bez wymuszonej wysokości */
@media (orientation:landscape) and (max-height:520px) and (min-width:761px){
  header.wl-site-header{padding-top:8px !important;padding-bottom:8px !important}
  header.wl-site-header > a:first-child img{height:28px !important;width:auto !important}
  header.wl-site-header nav{gap:18px !important}
  header.wl-site-header > div > a{padding:8px 16px !important}
  /* hero pralni (PL i EN): wysokość wg treści, przyciski kontaktu (PS-6) nad opisem */
  main > div:first-child:has(img[src*="pralnia-van-cart"]){min-height:0 !important}
  main > div:first-child:has(img[src*="pralnia-van-cart"]) > div[data-anim-group]{display:flex;flex-direction:column;padding:28px 44px 32px !important}
  main > div:first-child:has(img[src*="pralnia-van-cart"]) > div > div:first-child{margin-bottom:12px !important}
  main > div:first-child:has(img[src*="pralnia-van-cart"]) h1{font-size:min(14vh,56px) !important}
  main > div:first-child:has(.wl-q) .wl-q{order:3;margin-top:20px}
  main > div:first-child:has(.wl-q) > div > p{order:4;margin:20px 0 0 !important;font-size:16px !important}
}
