/*
Theme Name: Trek24 Modern v4
Theme URI: https://trek24.pl/
Author: OpenAI
Description: Nowoczesny motyw Adventure Expedition/Trek24 zgodny z istniejącą hierarchią stron.
Version: 4.0.8
Text Domain: trek24-modern
*/
:root{--blue:#087ccf;--blue2:#0f67b5;--navy:#0b315d;--ink:#163652;--muted:#62768a;--soft:#f4f9fd;--line:#dbe9f4;--shadow:0 16px 44px rgba(11,49,93,.12);--shell:1280px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.62;background:#fff}body.admin-bar .site-header{top:32px}body.admin-bar .anchor-nav{top:120px}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}.shell{width:min(var(--shell),calc(100% - 48px));margin:auto}.section{padding:76px 0}.section--soft{background:linear-gradient(#f1f8fd,#fff)}.content-narrow{max-width:900px}.eyebrow,.hero-kicker{font-size:.76rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;color:var(--navy);line-height:1.06}h2{font-size:clamp(2rem,3vw,3.1rem);margin:.15em 0 .55em}.entry-content{color:#294a65}.entry-content a{color:var(--blue2);text-decoration:underline;text-underline-offset:3px}.entry-content img{border-radius:10px}.lead-copy{font-size:1.08rem}.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:5px;font-size:.82rem;font-weight:900;text-transform:uppercase;border:1px solid transparent}.btn--primary{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;box-shadow:0 8px 24px rgba(8,124,207,.25)}.btn--outline{border-color:var(--blue);color:var(--blue);background:#fff}.btn--ghost{border-color:#fff;color:#fff;background:transparent}.btn--wide{width:100%}.text-link,.subpage-link{font-size:.8rem;font-weight:900;text-transform:uppercase;color:var(--blue2)}.site-header{position:sticky;top:0;z-index:110;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(8,124,207,.12);backdrop-filter:blur(12px)}.header-inner{height:88px;display:flex;align-items:center;gap:28px}.header-brand{margin-right:auto}.custom-logo,.brand img{max-height:62px;width:auto}.site-nav>ul{display:flex;gap:26px;align-items:center;list-style:none;margin:0;padding:0}.site-nav li{position:relative}.site-nav a{font-size:.78rem;font-weight:900;text-transform:uppercase;color:var(--navy)}.site-nav a:hover{color:var(--blue)}.site-nav .sub-menu{display:none;position:absolute;top:100%;left:-18px;min-width:230px;background:#fff;box-shadow:var(--shadow);padding:12px 0;list-style:none;border-top:3px solid var(--blue)}.site-nav li:hover>.sub-menu{display:block}.site-nav .sub-menu a{display:block;padding:9px 18px}.header-search{font-size:1.7rem}.menu-toggle{display:none;border:0;background:none;width:42px}.menu-toggle span{display:block;height:2px;background:var(--navy);margin:6px}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}.home-hero,.page-hero,.trip-hero,.guide-hero,.image-cta{position:relative;background:var(--hero) center/cover no-repeat;color:#fff;overflow:hidden}.home-hero{min-height:690px}.home-hero__shade,.page-hero__shade,.trip-hero__shade,.guide-hero__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,31,55,.9),rgba(5,45,78,.5) 54%,rgba(5,45,78,.1))}.home-hero__inner,.page-hero__inner,.trip-hero__inner,.guide-hero__inner{position:relative;z-index:2}.home-hero__inner{padding:112px 0 96px;max-width:760px}.home-hero h1{font-size:clamp(4rem,7.5vw,7.4rem);line-height:.9;color:#fff;margin:.2em 0}.home-hero p{font-family:Georgia,serif;font-size:1.45rem}.hero-actions{display:flex;gap:14px;margin-top:30px}.script-note{font-family:"Segoe Script","Bradley Hand",cursive;color:#0b5ea6;font-size:1.45rem;transform:rotate(-3deg)}.script-note--hero{color:#dff3ff;font-size:2rem}.trust-strip{border-bottom:1px solid var(--line)}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}.trust-grid>div{padding:27px 32px;border-right:1px solid var(--line)}.trust-grid>div:last-child{border:0}.trust-grid b{display:block;font-family:Georgia,serif;font-size:1.32rem;color:var(--navy)}.trust-grid span{font-size:.86rem;color:var(--muted)}.page-hero{min-height:410px}.page-hero--compact{min-height:340px}.page-hero__inner{padding:70px 0 88px}.page-hero h1,.trip-hero h1,.guide-hero h1{color:#fff}.page-hero h1{font-size:clamp(3.4rem,6vw,6rem);margin:.2em 0}.page-hero p{max-width:680px;font-size:1.17rem}.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;font-size:.76rem;color:#d9efff}.breadcrumbs a{color:#fff}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:36px;margin-bottom:30px}.section-heading h2{margin:0}.section-heading>p{max-width:480px;color:var(--muted)}.trip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.trip-grid--home{grid-template-columns:repeat(4,1fr)}.trip-card,.guide-card,.news-card{background:#fff;border:1px solid #e4eef6;border-radius:10px;overflow:hidden;box-shadow:0 12px 34px rgba(11,49,93,.09)}.trip-card__media,.guide-card__media,.news-card__media{display:block;overflow:hidden;background:#e8f2f8}.trip-card__media{height:220px}.trip-card__img,.guide-card__img,.news-card__media img{width:100%!important;height:100%!important;object-fit:cover}.trip-card__body,.guide-card__body,.news-card__body{padding:20px}.trip-card__label{display:inline-block;background:var(--blue);color:#fff;font-size:.66rem;font-weight:900;padding:5px 8px;border-radius:4px}.trip-card h3,.guide-card h3,.news-card h3,.news-card h2{font-size:1.42rem;margin:.5em 0}.trip-card__meta,.news-card time{font-size:.76rem;color:#778c9e}.trip-card p,.guide-card p,.news-card p{font-size:.91rem;color:#607487}.trip-card__price{font-weight:900;color:var(--blue2);margin:12px 0}.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.guide-card__media{height:310px}.about-intro{max-width:980px;margin:0 auto 58px}.image-cta{min-height:350px;display:flex;align-items:center}.image-cta:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,46,80,.84),rgba(8,80,130,.18))}.image-cta .shell{position:relative;z-index:2}.image-cta h2{font-size:clamp(2.8rem,5vw,5rem);color:#fff}.about-split{display:grid;grid-template-columns:.95fr 1.05fr;gap:60px;align-items:center}.about-photo{height:440px;border-radius:12px;overflow:hidden}.about-photo img{width:100%;height:100%;object-fit:cover}.about-copy h2{font-size:clamp(2.6rem,4vw,4rem)}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.news-card__media{height:230px}.trip-hero{min-height:570px}.trip-hero__inner{padding:72px 0 96px;max-width:900px}.trip-hero h1{font-size:clamp(4rem,7vw,7rem);margin:.2em 0}.trip-subtitle{font-size:1.16rem;max-width:720px}.trip-meta{display:flex;gap:24px;flex-wrap:wrap;font-weight:700;margin-top:26px}.anchor-nav{position:sticky;top:88px;z-index:95;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 6px 20px rgba(7,62,105,.07)}.anchor-inner{display:flex;gap:24px;align-items:center;overflow:auto;white-space:nowrap}.anchor-inner>a{padding:17px 0;font-size:.74rem;font-weight:900;text-transform:uppercase;color:#294a65}.anchor-inner>a:hover,.anchor-inner>a.is-current,.anchor-inner>a.is-active{color:var(--blue)}.anchor-inner>.btn{color:#fff;margin-left:auto;padding:11px 16px}.trip-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:46px;align-items:start}.trip-section{padding:22px 0 52px;border-bottom:1px solid var(--line);scroll-margin-top:155px}.trip-section+.trip-section{padding-top:52px}.booking-card{position:sticky;top:154px;border:1px solid #d6eaf7;border-radius:12px;padding:26px;background:linear-gradient(#eef8ff,#fff);box-shadow:var(--shadow)}.booking-card h3{font-size:1.3rem}.booking-price{font-family:Georgia,serif;font-size:2rem;font-weight:700;color:var(--navy)}.availability{display:inline-block;margin:10px 0 18px;padding:6px 10px;border-radius:99px;background:#e8f6ed;color:#34764b;font-size:.71rem;font-weight:900}.booking-links{display:grid;margin-top:22px;border-top:1px solid var(--line)}.booking-links a{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:.83rem}.script-note--card{margin-top:28px;font-size:1.2rem}.trip-gallery-content .gallery,.trip-gallery-content .wp-block-gallery{display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px}.trip-gallery-content .gallery-item{width:auto!important;margin:0!important}.trip-gallery-content img{width:100%;height:220px;object-fit:cover}.program-panel h5{font-family:inherit;color:var(--blue2);font-size:.86rem;text-transform:uppercase;padding:15px 0 7px;border-top:1px solid var(--line)}.price-content ul{list-style:none;padding:0}.price-content li{position:relative;padding:.3em 0 .3em 1.5em}.price-content li:before{content:"✓";position:absolute;left:0;color:var(--blue);font-weight:900}.legacy-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px}.guide-hero{min-height:500px}.guide-hero__inner{padding:70px 0 92px}.guide-hero__copy{max-width:650px}.guide-hero h1{font-size:clamp(4rem,7vw,7rem);margin:.15em 0}.guide-hero .script-note{color:#dff3ff;margin-top:28px}.guide-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:44px}.guide-main>section{padding-bottom:44px;margin-bottom:44px;border-bottom:1px solid var(--line)}.guide-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.guide-facts div{text-align:center;padding:22px 12px;background:var(--soft);border:1px solid #e2eef6;border-radius:10px}.guide-facts strong{display:block;font-family:Georgia,serif;color:var(--navy)}.guide-facts span{font-size:.78rem;color:var(--muted)}.info-card{position:sticky;top:154px;background:#eff8fe;border:1px solid #d8eaf6;border-radius:12px;padding:22px}.info-avatar{height:240px;overflow:hidden;border-radius:9px}.info-avatar img,.guide-photo-feature img{width:100%!important;height:100%!important;object-fit:cover}.info-list{display:grid;gap:7px;margin:18px 0;font-size:.84rem}.guide-photo-feature{height:420px;overflow:hidden;border-radius:12px}.contact-strip{border-bottom:1px solid var(--line)}.contact-points{display:grid;grid-template-columns:repeat(3,1fr)}.contact-points>*{padding:28px;border-right:1px solid var(--line)}.contact-points>*:last-child{border:0}.contact-points b{display:block;color:var(--navy)}.contact-points span{color:var(--muted)}.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:34px}.contact-card,.contact-existing{padding:34px;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(11,49,93,.06)}.contact-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.contact-context{padding:14px;background:#eef8ff;border-radius:8px}.site-footer{position:relative;background:linear-gradient(#0b66ad,#083f72);color:#fff;padding-top:55px}.footer-top{display:grid;grid-template-columns:1.1fr 1.7fr .8fr;gap:38px}.footer-brand .custom-logo,.footer-brand .brand img{filter:brightness(0) invert(1)}.footer-brand p{font-family:"Segoe Script",cursive}.footer-nav ul{display:flex;flex-wrap:wrap;gap:14px 22px;list-style:none;padding:0}.footer-nav a{font-size:.76rem;font-weight:900;text-transform:uppercase}.footer-contact{display:grid;gap:6px}.footer-bottom{display:flex;justify-content:space-between;gap:20px;margin-top:40px;padding:18px 0;border-top:1px solid rgba(255,255,255,.2);font-size:.76rem;color:#d9efff}.empty-state{padding:40px;text-align:center;background:var(--soft);border-radius:12px}@media(max-width:1080px){.site-nav{display:none;position:absolute;left:0;right:0;top:88px;background:#fff;padding:18px 24px;box-shadow:var(--shadow)}.site-nav.is-open{display:block}.site-nav>ul{display:grid;gap:3px}.site-nav a{display:block;padding:10px}.site-nav .sub-menu{display:block;position:static;border:0;box-shadow:none;padding-left:14px}.menu-toggle{display:block}.header-search{display:none}.trip-grid--home{grid-template-columns:repeat(2,1fr)}.guide-grid{grid-template-columns:repeat(3,1fr)}.trip-layout,.guide-layout,.legacy-layout{grid-template-columns:1fr}.booking-card,.info-card{position:relative;top:auto}.trip-aside,.guide-aside{order:-1}.footer-top{grid-template-columns:1fr 1fr}.footer-contact{grid-column:1/-1}}@media(max-width:760px){body.admin-bar .site-header{top:46px}.shell{width:min(var(--shell),calc(100% - 28px))}.header-inner{height:74px}.custom-logo,.brand img{max-height:48px}.site-nav{top:74px}.home-hero{min-height:620px}.home-hero__inner{padding:82px 0 70px}.home-hero h1{font-size:4rem}.trust-grid{grid-template-columns:repeat(2,1fr)}.trust-grid>div{padding:19px;border-bottom:1px solid var(--line)}.trip-grid,.trip-grid--home,.guide-grid,.news-grid{display:flex;overflow:auto;scroll-snap-type:x mandatory}.trip-card,.guide-card,.news-card{min-width:82vw;scroll-snap-align:start}.section{padding:54px 0}.section-heading{align-items:flex-start;flex-direction:column;gap:10px}.about-split,.contact-layout{grid-template-columns:1fr}.page-hero,.trip-hero,.guide-hero{min-height:470px}.page-hero h1,.trip-hero h1,.guide-hero h1{font-size:3.7rem}.anchor-nav{top:74px}.anchor-inner>.btn{display:none}.trip-gallery-content .gallery,.trip-gallery-content .wp-block-gallery{grid-template-columns:repeat(2,1fr)}.trip-gallery-content img{height:160px}.guide-facts{grid-template-columns:repeat(2,1fr)}.contact-points{grid-template-columns:1fr}.contact-points>*{border-right:0;border-bottom:1px solid var(--line)}.footer-top{grid-template-columns:1fr}.footer-bottom{flex-direction:column}}@media(max-width:480px){.home-hero h1{font-size:3.35rem}.hero-actions{display:grid}.btn{width:100%}.page-hero h1,.trip-hero h1,.guide-hero h1{font-size:3rem}.trip-card,.guide-card,.news-card{min-width:88vw}.guide-card__media{height:285px}.trip-meta{gap:12px;font-size:.82rem}.contact-card,.contact-existing{padding:24px}}

/* =========================================================
   v3 — visual fidelity pass based on approved Trek24 mockups
   ========================================================= */
:root{
  --blue:#087dcc;
  --blue-strong:#006fbd;
  --navy:#0a315c;
  --navy-deep:#072947;
  --ink:#173550;
  --muted:#60758a;
  --soft:#f5faff;
  --line:#dceaf5;
  --shell:1180px;
  --radius:6px;
  --shadow-soft:0 12px 34px rgba(9,48,87,.09);
}
body{font-size:16px;line-height:1.58;color:var(--ink)}
.shell{width:min(var(--shell),calc(100% - 64px))}
.section{padding:54px 0}
h1,h2,h3{letter-spacing:-.02em}
h2{font-size:clamp(1.75rem,2.35vw,2.55rem);line-height:1.08}
.eyebrow,.hero-kicker{font-size:.72rem;letter-spacing:.11em}

/* header — closer to mockup: lower, calmer, more air */
.header-inner{height:76px;gap:24px}
.custom-logo,.brand img{max-height:54px}
.site-nav>ul{gap:24px}
.site-nav a{font-size:.72rem;letter-spacing:.015em}
.header-search{font-size:1.35rem}

/* Trip hero */
.trip-hero{min-height:440px;background-position:center 46%}
.trip-hero__shade{
  background:linear-gradient(90deg,rgba(4,35,62,.88) 0%,rgba(4,40,69,.68) 42%,rgba(4,43,72,.2) 78%,rgba(4,43,72,.08) 100%);
}
.trip-hero:after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:16px;background:#fff;
  clip-path:polygon(0 50%,5% 20%,11% 50%,18% 25%,25% 55%,33% 22%,41% 50%,49% 18%,57% 55%,65% 26%,73% 52%,81% 25%,90% 55%,100% 25%,100% 100%,0 100%);
}
.trip-hero__inner{padding:48px 0 58px;max-width:760px;margin-left:max(0px,calc((100vw - var(--shell))/2))}
.trip-hero .breadcrumbs{margin-bottom:18px;font-size:.69rem;opacity:.92}
.trip-hero .hero-kicker{margin-bottom:12px;color:#5bc1ff}
.trip-hero h1{
  font-size:clamp(2.9rem,4.1vw,4.75rem);
  line-height:.98;
  max-width:780px;
  margin:.08em 0 .2em;
  text-wrap:balance;
}
.trip-subtitle{font-size:1rem;line-height:1.55;max-width:660px;margin:0;color:#f2f8fc}
.trip-meta{gap:18px;margin-top:24px;font-size:.82rem;font-weight:600}
.trip-meta span{display:inline-flex;align-items:center;gap:6px}

/* Sticky anchor bar */
.anchor-nav{top:76px;box-shadow:0 3px 14px rgba(7,62,105,.06)}
body.admin-bar .anchor-nav{top:108px}
.anchor-inner{gap:28px;min-height:58px}
.anchor-inner>a:not(.btn){padding:20px 0 16px;font-size:.69rem;position:relative}
.anchor-inner>a:not(.btn):after{content:"";position:absolute;left:0;right:0;bottom:8px;height:2px;background:transparent}
.anchor-inner>a:hover:after,.anchor-inner>a.is-current:after,.anchor-inner>a.is-active:after{background:var(--blue)}
.anchor-inner>.btn{padding:10px 17px;border-radius:3px}

/* Main trip layout */
.trip-layout{grid-template-columns:minmax(0,1fr) 310px;gap:38px}
.trip-main{min-width:0}
.trip-section{padding:14px 0 38px;scroll-margin-top:142px}
.trip-section+.trip-section{padding-top:38px}
.trip-section h2{margin-top:.12em;margin-bottom:.48em}
.entry-content{font-size:.94rem;line-height:1.68;color:#35516a}
.lead-copy{font-size:.96rem;line-height:1.7}
.entry-content p{margin:.72em 0}
.entry-content h2{font-size:1.8rem}.entry-content h3{font-size:1.38rem}.entry-content h4{font-size:1.08rem}
.entry-content img{border-radius:6px}

/* booking card — light blue card from mockup */
.booking-card{
  top:146px;padding:22px 20px;border-radius:6px;
  background:linear-gradient(180deg,#eef8ff 0%,#f8fcff 100%);
  box-shadow:none;border:1px solid #d7eaf6;
}
.booking-card .eyebrow{color:var(--navy);font-family:Georgia,"Times New Roman",serif;text-transform:none;letter-spacing:0;font-size:1rem;font-weight:700}
.booking-card h3{font-family:inherit;font-size:.95rem;line-height:1.45;margin:10px 0 14px;color:var(--navy)}
.booking-price{font-size:1.85rem;line-height:1.1;margin:10px 0}
.availability{margin:4px 0 16px;font-size:.66rem}
.booking-card .btn{min-height:44px;border-radius:3px;font-size:.72rem}
.booking-links{margin-top:18px}
.booking-links a{padding:10px 0;font-size:.78rem}
.script-note--card{font-size:1.05rem;text-align:center;color:#0e5fa4}

/* Gallery — one strong panoramic image / neat thumbnails when legacy gallery supplies them */
.trip-gallery-content .gallery,.trip-gallery-content .wp-block-gallery{gap:7px}
.trip-gallery-content .gallery-item:first-child,.trip-gallery-content .wp-block-image:first-child{grid-column:1/-1}
.trip-gallery-content .gallery-item:first-child img,.trip-gallery-content .wp-block-image:first-child img{height:330px}
.trip-gallery-content img{height:126px;border-radius:4px}

/* Existing legacy content shouldn't explode the new layout */
.trip-main .entry-content table{width:100%;border-collapse:collapse;font-size:.88rem}
.trip-main .entry-content td,.trip-main .entry-content th{padding:10px;border-bottom:1px solid var(--line);vertical-align:top}
.trip-main .entry-content iframe{max-width:100%;width:100%;border:0;border-radius:6px}
.trip-main .entry-content .wp-caption{max-width:100%!important}
.trip-main .entry-content figure{max-width:100%}
.subpage-link{display:inline-block;margin-top:12px;font-size:.68rem}

/* cards/list pages */
.trip-grid{gap:18px}.trip-grid--home{gap:16px}
.trip-card,.guide-card,.news-card{border-radius:5px;box-shadow:var(--shadow-soft)}
.trip-card__media{height:190px}.trip-card__body,.guide-card__body,.news-card__body{padding:16px}
.trip-card h3,.guide-card h3,.news-card h3,.news-card h2{font-size:1.25rem}
.trip-card p,.guide-card p,.news-card p{font-size:.86rem}
.guide-card__media{height:270px}

/* Other heroes */
.page-hero{min-height:330px}.page-hero--compact{min-height:290px}
.page-hero__inner{padding:54px 0 62px}
.page-hero h1{font-size:clamp(2.7rem,4.4vw,4.4rem)}
.guide-hero{min-height:420px}.guide-hero__inner{padding:55px 0 68px}.guide-hero h1{font-size:clamp(3rem,4.8vw,4.8rem)}
.home-hero{min-height:610px}.home-hero__inner{padding:92px 0 80px;max-width:660px}.home-hero h1{font-size:clamp(3.5rem,5.5vw,5.6rem)}

@media (max-width:1100px){
  .shell{width:min(var(--shell),calc(100% - 40px))}
  .trip-layout{grid-template-columns:minmax(0,1fr) 280px;gap:28px}
  .trip-hero__inner{margin-left:0}
}
@media (max-width:860px){
  .shell{width:calc(100% - 32px)}
  .trip-hero{min-height:410px}
  .trip-hero__inner{padding:42px 0 54px}
  .trip-hero h1{font-size:clamp(2.55rem,10vw,3.7rem);max-width:94%}
  .trip-subtitle{font-size:.94rem;max-width:92%}
  .trip-meta{font-size:.76rem}
  .trip-layout{display:block}
  .trip-aside{margin-top:28px}.booking-card{position:static}
  .anchor-nav{top:68px}.anchor-inner{gap:22px}.anchor-inner>.btn{display:none}
}
@media (max-width:640px){
  .header-inner{height:68px}.custom-logo,.brand img{max-height:48px}
  .trip-hero{min-height:440px;background-position:center}
  .trip-hero h1{font-size:2.65rem;line-height:1.02}
  .trip-subtitle{font-size:.9rem}
  .trip-meta{gap:10px 16px}
  .anchor-inner>a:not(.btn){font-size:.65rem;padding-top:18px}
  .section{padding:38px 0}
  .trip-section{padding-bottom:30px}.trip-section+.trip-section{padding-top:30px}
  .trip-gallery-content .gallery,.trip-gallery-content .wp-block-gallery{grid-template-columns:repeat(2,1fr)!important}
  .trip-gallery-content .gallery-item:first-child,.trip-gallery-content .wp-block-image:first-child{grid-column:1/-1}
  .trip-gallery-content .gallery-item:first-child img,.trip-gallery-content .wp-block-image:first-child img{height:220px}
  .trip-gallery-content img{height:108px}
}

/* Language switcher */
.language-switcher{display:flex;align-items:center;border:1px solid #d6e6f2;border-radius:999px;padding:3px;background:#f5f9fc;flex:0 0 auto}
.language-switcher__link{display:flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 8px;border-radius:999px;font-size:.68rem;font-weight:900;letter-spacing:.04em;color:var(--navy);transition:.2s ease}
.language-switcher__link:hover{color:var(--blue)}
.language-switcher__link.is-current{background:var(--blue);color:#fff;box-shadow:0 3px 10px rgba(8,124,207,.22)}
@media(max-width:1080px){.language-switcher{margin-left:auto}.menu-toggle{order:4}.header-search{order:3}}
@media(max-width:480px){.language-switcher__link{min-width:30px;height:26px;padding:0 6px;font-size:.64rem}}

/* =========================================================
   v4 — structured trip sections
   ========================================================= */
.trip-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:28px;background:var(--line);border:1px solid var(--line);border-radius:6px;overflow:hidden}.trip-facts>div{background:#fff;padding:16px}.trip-facts span{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.trip-facts b{display:block;margin-top:3px;color:var(--navy);font-family:Georgia,"Times New Roman",serif;font-size:1.03rem}.program-timeline{display:grid;gap:0;border-top:1px solid var(--line)}.program-day{display:grid;grid-template-columns:105px 1fr;gap:22px;padding:24px 0;border-bottom:1px solid var(--line)}.program-day__badge{height:max-content;background:#e9f6ff;color:var(--blue2);font-size:.71rem;font-weight:900;text-transform:uppercase;text-align:center;padding:8px;border-radius:4px}.program-day__body h3{margin:0 0 8px;font-size:1.28rem}.program-day__copy p{margin:.4em 0}.program-day__overnight{margin-top:10px;color:var(--muted);font-size:.82rem;font-weight:700}.trip-dates{display:grid;gap:10px}.trip-date{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 18px;border:1px solid var(--line);border-radius:5px;background:#f8fcff}.trip-date b{display:block;color:var(--navy);font-size:1rem}.trip-date span{display:block;color:var(--muted);font-size:.78rem;margin-top:2px}.trip-date>strong{font-size:.75rem;color:#187143;background:#e9f8f0;padding:6px 9px;border-radius:999px}.price-hero{display:flex;align-items:baseline;gap:14px;padding:20px 22px;background:#eef8ff;border:1px solid #d5eaf7;border-radius:5px;margin-bottom:18px}.price-hero span{font-size:.76rem;font-weight:800;text-transform:uppercase;color:var(--muted)}.price-hero strong{font-family:Georgia,"Times New Roman",serif;font-size:2rem;color:var(--navy)}.price-note{font-size:.9rem;color:var(--muted)}.price-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:22px}.price-columns>div{border:1px solid var(--line);border-radius:5px;padding:18px}.price-columns h3{font-size:1.15rem;margin:0 0 12px}.check-list,.cross-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.check-list li,.cross-list li{position:relative;padding-left:25px;font-size:.9rem}.check-list li:before{content:"✓";position:absolute;left:0;color:#16804c;font-weight:900}.cross-list li:before{content:"×";position:absolute;left:2px;color:#bd4b4b;font-weight:900}.modern-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.modern-gallery figure{margin:0}.modern-gallery figure:first-child{grid-column:1/-1}.modern-gallery img{width:100%;height:150px;object-fit:cover;border-radius:5px}.modern-gallery figure:first-child img{height:370px}.modern-map-image img{width:100%;border-radius:6px}.modern-map-embed iframe{width:100%;min-height:420px;border:0;border-radius:6px}.trip-guide-card{display:grid;grid-template-columns:160px 1fr;gap:22px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:6px;background:#f8fcff}.trip-guide-card__photo img{width:160px;height:160px;object-fit:cover;border-radius:5px}.trip-guide-card h3{font-size:1.4rem;margin:0 0 8px}.trip-guide-card p{font-size:.9rem;margin:0 0 10px}.faq-list{border-top:1px solid var(--line)}.faq-item{border-bottom:1px solid var(--line)}.faq-item summary{cursor:pointer;padding:17px 4px;font-family:Georgia,"Times New Roman",serif;font-size:1.05rem;font-weight:700;color:var(--navy);list-style:none}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary:after{content:"+";float:right;color:var(--blue);font-family:inherit}.faq-item[open] summary:after{content:"−"}.faq-item>div{padding:0 4px 16px;color:#466078;font-size:.9rem}.booking-mini{font-size:.78rem;color:var(--muted);margin:-4px 0 8px}.trip-card__duration{font-size:.73rem;color:var(--navy);font-weight:800;margin-top:4px}
@media(max-width:760px){.trip-facts{grid-template-columns:repeat(2,1fr)}.program-day{grid-template-columns:1fr;gap:10px}.program-day__badge{width:max-content}.price-columns{grid-template-columns:1fr}.modern-gallery{grid-template-columns:repeat(2,1fr)}.modern-gallery figure:first-child{grid-column:1/-1}.modern-gallery figure:first-child img{height:230px}.modern-gallery img{height:115px}.trip-guide-card{grid-template-columns:100px 1fr}.trip-guide-card__photo img{width:100px;height:100px}}


/* =========================================================
   v4.0.2 — Blog / Aktualności
   ========================================================= */
.blog-hero{min-height:300px}
.blog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}
.blog-toolbar h2{margin:0}
.blog-toolbar p{margin:0;color:var(--muted);max-width:620px}
.news-card__media img{transition:transform .35s ease}
.news-card:hover .news-card__media img{transform:scale(1.035)}
.news-card__body time{display:block;margin-bottom:7px}
.news-card__categories{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.news-card__categories a{font-size:.64rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--blue2);background:#edf7fd;padding:4px 7px;border-radius:4px}
.blog-pagination{display:flex;justify-content:center;gap:7px;margin-top:42px;flex-wrap:wrap}
.blog-pagination .page-numbers{min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:5px;font-size:.8rem;font-weight:800;color:var(--navy);background:#fff}
.blog-pagination .page-numbers.current,.blog-pagination .page-numbers:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.article-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;font-size:.78rem;color:#d9efff}
.article-shell{max-width:900px}
.article-featured{margin:-28px auto 36px;position:relative;z-index:3}
.article-featured img{width:100%;max-height:520px;object-fit:cover;border-radius:7px;box-shadow:var(--shadow)}
.article-footer{display:flex;justify-content:space-between;gap:20px;margin-top:42px;padding-top:24px;border-top:1px solid var(--line)}
.article-footer a{color:var(--blue2);font-weight:800;font-size:.82rem}
@media(max-width:760px){
  .blog-toolbar{align-items:flex-start;flex-direction:column}
  .article-footer{flex-direction:column}
}


/* =========================================================
   v4.0.3 — Galerie: równe miniatury + odstępy + hover
   Flexbox celowo zamiast CSS Grid, aby uniknąć problemów
   starszych walidatorów z jednostką fr.
   ========================================================= */

/* Klasyczna galeria WordPress + galeria blokowa */
.entry-content .gallery,
.entry-content .wp-block-gallery,
.trip-gallery-content .gallery,
.trip-gallery-content .wp-block-gallery,
.modern-gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: stretch;
}

/* Kasujemy specjalne powiększanie pierwszego zdjęcia z poprzedniej wersji */
.trip-gallery-content .gallery-item:first-child,
.trip-gallery-content .wp-block-image:first-child,
.modern-gallery figure:first-child {
  grid-column: auto !important;
}

/* Jeden kafel = 4 zdjęcia w rzędzie */
.entry-content .gallery .gallery-item,
.entry-content .wp-block-gallery .wp-block-image,
.trip-gallery-content .gallery .gallery-item,
.trip-gallery-content .wp-block-gallery .wp-block-image,
.modern-gallery figure {
  position: relative;
  display: block !important;
  flex: 0 0 calc(25% - 8px) !important;
  width: calc(25% - 8px) !important;
  max-width: calc(25% - 8px) !important;
  height: 190px !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 7px;
  background: #e8f2f8;
}

/* WordPress potrafi opakować obraz w div/a — wszystkie warstwy dostają pełny rozmiar */
.entry-content .gallery .gallery-icon,
.entry-content .gallery .gallery-icon a,
.entry-content .wp-block-gallery .wp-block-image a,
.trip-gallery-content .gallery .gallery-icon,
.trip-gallery-content .gallery .gallery-icon a,
.trip-gallery-content .wp-block-gallery .wp-block-image a,
.modern-gallery figure a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Wszystkie zdjęcia mają identyczny kadr; pionowe są przycinane, nie rozciągane */
.entry-content .gallery img,
.entry-content .wp-block-gallery img,
.trip-gallery-content .gallery img,
.trip-gallery-content .wp-block-gallery img,
.modern-gallery img,
.trip-gallery-content .gallery-item:first-child img,
.trip-gallery-content .wp-block-image:first-child img,
.modern-gallery figure:first-child img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: scale(1);
  filter: brightness(1);
  transition: transform .38s ease, filter .38s ease;
}

/* Delikatna warstwa i lupa */
.entry-content .gallery .gallery-item::after,
.entry-content .wp-block-gallery .wp-block-image::after,
.trip-gallery-content .gallery .gallery-item::after,
.trip-gallery-content .wp-block-gallery .wp-block-image::after,
.modern-gallery figure::after {
  content: "＋";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  background: rgba(5, 49, 88, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, background .3s ease;
}

.entry-content .gallery .gallery-item:hover img,
.entry-content .wp-block-gallery .wp-block-image:hover img,
.trip-gallery-content .gallery .gallery-item:hover img,
.trip-gallery-content .wp-block-gallery .wp-block-image:hover img,
.modern-gallery figure:hover img {
  transform: scale(1.055);
  filter: brightness(.82);
}

.entry-content .gallery .gallery-item:hover::after,
.entry-content .wp-block-gallery .wp-block-image:hover::after,
.trip-gallery-content .gallery .gallery-item:hover::after,
.trip-gallery-content .wp-block-gallery .wp-block-image:hover::after,
.modern-gallery figure:hover::after {
  opacity: 1;
  background: rgba(5, 49, 88, .26);
}

/* Podpis nie może rozwalać wysokości kafla */
.entry-content .gallery-caption,
.trip-gallery-content .gallery-caption,
.wp-block-gallery figcaption,
.modern-gallery figcaption {
  display: none !important;
}

@media (max-width: 980px) {
  .entry-content .gallery .gallery-item,
  .entry-content .wp-block-gallery .wp-block-image,
  .trip-gallery-content .gallery .gallery-item,
  .trip-gallery-content .wp-block-gallery .wp-block-image,
  .modern-gallery figure {
    flex-basis: calc(33.333% - 7px) !important;
    width: calc(33.333% - 7px) !important;
    max-width: calc(33.333% - 7px) !important;
    height: 175px !important;
  }
}

@media (max-width: 700px) {
  .entry-content .gallery .gallery-item,
  .entry-content .wp-block-gallery .wp-block-image,
  .trip-gallery-content .gallery .gallery-item,
  .trip-gallery-content .wp-block-gallery .wp-block-image,
  .modern-gallery figure {
    flex-basis: calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    height: 155px !important;
  }
}

@media (max-width: 420px) {
  .entry-content .gallery .gallery-item,
  .entry-content .wp-block-gallery .wp-block-image,
  .trip-gallery-content .gallery .gallery-item,
  .trip-gallery-content .wp-block-gallery .wp-block-image,
  .modern-gallery figure {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
  }
}

.lang-switch{display:inline-flex;gap:3px;margin-left:10px;padding:3px;border:1px solid #d9e6ef;border-radius:999px;background:#fff}.lang-switch a{display:flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:900;color:#0b3760;text-decoration:none}.lang-switch a:hover,.lang-switch a.is-active{background:#0b84c6;color:#fff}@media(max-width:900px){.lang-switch{margin:8px 0}}
