/*
Theme Name: Chmielowiec Real Estate
Theme URI: https://www.nieruchomosci-chmielowiec.pl/
Author: OpenAI
Description: Lekki, czarno-złoty motyw WordPress dla biura nieruchomości Chmielowiec. Zawiera własny typ wpisu Nieruchomości, wyszukiwarkę, galerie, formularz kontaktowy i sekcję opinii.
Version: 4.9.1
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: chmielowiec
*/

:root{
  --bg:#070807;
  --bg-soft:#0f1110;
  --card:#101210;
  --gold:#d3a33f;
  --gold-2:#f0c867;
  --text:#f5f3ee;
  --muted:#b9b7b0;
  --line:rgba(211,163,63,.32);
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--max),calc(100% - 40px));margin:auto}
.section{padding:60px 0}
.section-title{text-align:center;font-family:Georgia,serif;font-size:clamp(30px,4vw,48px);margin:0 0 34px}
.section-title:after{content:"";display:block;width:76px;height:2px;background:var(--gold);margin:12px auto 0}
.btn{display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#0b0b0a;padding:14px 24px;border-radius:4px;font-weight:800;border:0;cursor:pointer}
.btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
.site-header{position:sticky;top:0;z-index:999;background:rgba(4,5,4,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.site-logo img{width:145px;max-height:58px;object-fit:contain}
.main-nav ul{display:flex;gap:26px;list-style:none;margin:0;padding:0}
.main-nav a{font-size:14px;font-weight:700;text-transform:uppercase}
.main-nav a:hover{color:var(--gold)}
.header-phone{border:1px solid var(--gold);padding:10px 16px;border-radius:4px;color:var(--gold-2);font-weight:800}
.menu-toggle{display:none;background:none;border:1px solid var(--line);color:#fff;padding:8px 12px}
.hero{min-height:560px;display:flex;align-items:center;position:relative;background:#090b0a center/cover no-repeat;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.96) 0%,rgba(0,0,0,.78) 37%,rgba(0,0,0,.14) 75%,rgba(0,0,0,.2) 100%)}
.hero-content{position:relative;z-index:2;max-width:650px;padding:62px 0 112px}
.eyebrow{color:var(--gold-2);text-transform:uppercase;font-weight:800;letter-spacing:.05em}
.hero h1{font-family:Georgia,serif;font-size:clamp(42px,4.5vw,64px);line-height:1.05;margin:16px 0 22px;font-weight:500}
.hero h1 span{color:var(--gold-2)}
.hero p{color:#d7d5cf;font-size:17px;max-width:620px}
.search-panel{position:relative;margin-top:-50px;z-index:5;background:rgba(8,9,8,.97);border:1px solid var(--line);padding:24px;border-radius:6px;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.search-title{font-size:20px;color:var(--gold-2);font-weight:800;margin-bottom:18px}
.search-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr auto;gap:16px;align-items:end}
.field label{display:block;color:var(--gold-2);font-size:13px;margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;background:#0a0b0a;border:1px solid var(--line);color:#fff;padding:13px;border-radius:4px}
.properties-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.property-card{background:linear-gradient(180deg,#131514,#0d0f0e);border:1px solid var(--line);border-radius:5px;overflow:hidden;transition:.25s}
.property-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(0,0,0,.35)}
.property-thumb{aspect-ratio:16/10;object-fit:cover;width:100%}
.property-body{padding:17px}
.property-status{display:inline-block;background:var(--gold);color:#111;padding:4px 9px;font-size:12px;font-weight:800;border-radius:3px;margin-bottom:12px}
.property-title{font-family:Georgia,serif;font-size:20px;line-height:1.25;margin:0 0 8px}
.property-location{color:var(--gold-2);font-size:14px}
.property-meta{display:flex;flex-wrap:wrap;gap:9px;color:#d7d5cf;font-size:12px;margin:13px 0}
.property-price{color:var(--gold-2);font-family:Georgia,serif;font-size:23px}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.trust-item{text-align:center;padding:28px 18px;border-right:1px solid var(--line)}
.trust-item:last-child{border-right:0}
.trust-icon{font-size:42px;color:var(--gold-2)}
.trust-item h3{font-size:15px;text-transform:uppercase}
.trust-item p{color:var(--muted)}
.reviews-wrap{background:#0b0d0c;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.review{border:1px solid var(--line);padding:28px;background:#101211;border-radius:5px}
.review .stars{color:var(--gold-2);letter-spacing:4px}
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr 1fr;gap:34px;align-items:start}
.contact-list{display:grid;gap:16px;color:#ddd}
.contact-list strong{color:var(--gold-2)}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.contact-form textarea{grid-column:1/-1;min-height:130px}
.contact-form button{grid-column:1/-1}
.map-box iframe{width:100%;height:320px;border:1px solid var(--line);border-radius:5px;filter:grayscale(1) invert(.92) contrast(.85)}
.site-footer{border-top:1px solid var(--line);padding:24px 0;background:#070807;color:#aaa;font-size:13px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer-logo img{width:150px}
.archive-header{padding:90px 0 40px;text-align:center;background:#0d0f0e}
.single-property{padding:60px 0}
.single-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:36px}
.gallery-main img{width:100%;border-radius:6px}
.gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px}
.gallery-thumbs img{aspect-ratio:1;object-fit:cover;border-radius:4px}
.property-sidebar{background:#101211;border:1px solid var(--line);padding:26px;border-radius:6px;position:sticky;top:110px;height:max-content}
.meta-table{display:grid;gap:12px;margin:20px 0}
.meta-row{display:flex;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:8px}
.notice{padding:12px 16px;border:1px solid var(--line);background:#101211;margin-bottom:20px}
@media(max-width:980px){
 .main-nav{display:none;position:absolute;left:0;right:0;top:82px;background:#090a09;padding:20px}
 .main-nav.open{display:block}.main-nav ul{flex-direction:column}.menu-toggle{display:block}.header-phone{display:none}
 .search-grid{grid-template-columns:1fr 1fr}.properties-grid,.reviews-grid{grid-template-columns:1fr 1fr}.trust-grid{grid-template-columns:1fr 1fr}.contact-grid,.single-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
 .container{width:min(100% - 24px,var(--max))}.hero{min-height:560px}.hero-content{padding:56px 0 110px}.hero h1{font-size:40px}.search-grid,.properties-grid,.reviews-grid,.trust-grid,.contact-form{grid-template-columns:1fr}.trust-item{border-right:0;border-bottom:1px solid var(--line)}.contact-form textarea,.contact-form button{grid-column:auto}.footer-inner{flex-direction:column;align-items:flex-start}
}

/* Wersja 1.1: grafiki domyślne */
.hero{background-size:cover;background-position:center right;background-repeat:no-repeat}
.hero::before{background:linear-gradient(90deg,rgba(3,5,4,.98) 0%,rgba(3,5,4,.92) 34%,rgba(3,5,4,.42) 66%,rgba(3,5,4,.06) 100%)}
.property-image img{width:100%;height:100%;object-fit:cover;display:block}
.property-card.demo-card{pointer-events:none}
.property-details{color:#d8d8d8;font-size:.9rem;margin:.8rem 0;line-height:1.55}
@media(max-width:760px){.hero{background-position:65% center}.hero::before{background:linear-gradient(90deg,rgba(3,5,4,.97),rgba(3,5,4,.78))}}

/* Wersja 1.2: bardziej kompaktowa skala desktopowa */
@media (min-width:1400px){
  .container{width:min(var(--max),calc(100% - 64px))}
}


/* Wersja 1.3: lżejsza typografia, większe logo i profesjonalne ikony */
body{font-family:"Segoe UI",Arial,sans-serif;font-weight:400}
.site-logo img{width:180px;max-height:68px}
.main-nav a{font-weight:600;letter-spacing:.02em}
.eyebrow{font-weight:600;letter-spacing:.06em}
.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.015em}
.hero p{font-weight:400}
.section-title{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(28px,3vw,40px)}
.trust-item{padding:26px 22px}
.trust-icon{width:58px;height:58px;margin:0 auto 18px;color:var(--gold-2)}
.trust-icon svg{display:block;width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.trust-item h3{font-size:15px;font-weight:500;letter-spacing:.01em;margin:0 0 14px}
.trust-item p{font-size:15px;font-weight:400;line-height:1.75;margin:0}
.contact-list a:hover{color:var(--gold-2)}
@media(max-width:980px){.site-logo img{width:155px}}


/* Wersja 1.4: podstrona O nas */
.about-hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line);background:radial-gradient(circle at 74% 16%,rgba(211,163,63,.12),transparent 26%),linear-gradient(100deg,#050706 0%,#090b0a 58%,#040504 100%)}
.about-hero-inner{min-height:500px;display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:44px}
.about-copy{padding:70px 0;position:relative;z-index:2}
.about-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,5vw,68px);font-weight:400;line-height:1;margin:12px 0 10px}
.about-subtitle{font-family:Georgia,"Times New Roman",serif;font-size:clamp(22px,2.4vw,32px);text-transform:uppercase;margin:0 0 26px}
.about-rule{width:180px;height:1px;background:linear-gradient(90deg,var(--gold),transparent);margin:0 0 28px}
.about-copy p{max-width:560px;color:#ddd;font-size:17px;margin:0 0 18px}
.about-photo{align-self:end;display:flex;justify-content:center;position:relative}
.about-photo:before{content:"";position:absolute;width:430px;height:430px;border:1px solid rgba(240,200,103,.55);border-radius:50%;top:18px;right:0;box-shadow:0 0 55px rgba(211,163,63,.16)}
.about-photo img{position:relative;z-index:1;width:min(470px,100%);height:auto;object-fit:contain;filter:drop-shadow(0 18px 28px rgba(0,0,0,.42))}
.about-values{background:#090b0a;border-bottom:1px solid var(--line)}
.about-process{border-bottom:1px solid var(--line)}
.process-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.process-item{text-align:center;position:relative;padding:14px 12px}
.process-icon{width:70px;height:70px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;color:var(--gold-2);font-size:30px}
.process-item h3{font-size:14px;text-transform:uppercase;font-weight:600;margin:0 0 8px}
.process-item p{font-size:14px;color:var(--muted);margin:0}
.about-cta{background:linear-gradient(90deg,rgba(3,5,4,.97),rgba(3,5,4,.74)),url('assets/img/hero-default.jpg') center/cover no-repeat;border-bottom:1px solid var(--line)}
.about-cta-inner{min-height:220px;display:flex;justify-content:flex-end;align-items:center;padding:40px 0}
.about-cta-box{max-width:600px}
.about-cta h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,48px);font-weight:400;line-height:1.15;margin:0 0 22px}
.about-cta h2 span{color:var(--gold-2)}
@media(max-width:900px){.about-hero-inner{grid-template-columns:1fr;min-height:auto}.about-copy{padding:56px 0 20px}.about-photo{max-width:520px;margin:auto}.process-grid{grid-template-columns:1fr 1fr}.about-cta-inner{justify-content:flex-start}}
@media(max-width:560px){.about-copy h1{font-size:42px}.about-subtitle{font-size:22px}.process-grid{grid-template-columns:1fr}.about-photo:before{width:320px;height:320px}.about-cta-inner{min-height:260px}}


/* Wersja 1.5: rozbudowany system ofert */
.property-image{position:relative;aspect-ratio:16/10;overflow:hidden}
.property-image-badges{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.property-badge{display:inline-block;background:#111;color:var(--gold-2);border:1px solid var(--gold);padding:4px 9px;font-size:12px;font-weight:700;border-radius:3px}
.property-breadcrumb{font-size:13px;color:var(--muted);margin-bottom:28px}
.property-breadcrumb span{color:var(--gold);padding:0 8px}
.property-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:28px}
.property-heading h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(34px,4vw,58px);line-height:1.08;margin:12px 0 8px}
.property-heading-labels{display:flex;gap:8px;flex-wrap:wrap}
.property-heading-location{color:var(--gold-2);margin:0}
.property-heading-price{font-family:Georgia,"Times New Roman",serif;color:var(--gold-2);font-size:clamp(28px,3vw,44px);text-align:right;white-space:nowrap}
.property-heading-price small{display:block;color:var(--muted);font-family:"Segoe UI",Arial,sans-serif;font-size:13px;margin-top:5px}
.property-gallery{display:grid;grid-template-columns:2fr 1fr;gap:10px;margin-bottom:40px}
.property-gallery button{padding:0;border:0;background:none;cursor:zoom-in;overflow:hidden;border-radius:5px}
.property-gallery img{width:100%;height:100%;object-fit:cover;transition:.25s}
.property-gallery button:hover img{transform:scale(1.02)}
.gallery-featured{min-height:430px}
.gallery-side{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(3,1fr);gap:10px}
.gallery-side button{min-height:0}
.property-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:42px;align-items:start}
.property-content h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:30px;margin:42px 0 14px;color:#fff}
.property-content ul{padding-left:22px}
.property-content li{margin-bottom:8px}
.property-description{font-size:16px;color:#ddd}
.property-description small{color:#9d9d98}
.property-key-info{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#0c0e0d;border-radius:6px;overflow:hidden}
.key-info-item{padding:18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.key-info-item span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;margin-bottom:6px}
.key-info-item strong{color:var(--gold-2);font-weight:500}
.virtual-tour{margin-top:46px;padding-top:8px}
.section-kicker{text-transform:uppercase;color:var(--gold-2);font-size:12px;letter-spacing:.1em}
.tour-frame{aspect-ratio:16/9;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#050605}
.tour-frame iframe{width:100%;height:100%;border:0}
.virtual-tour-placeholder{padding:26px;border:1px dashed var(--line);border-radius:6px;background:#0d0f0e}
.virtual-tour-placeholder h2{margin-top:5px}
.property-share{margin-top:40px;border-top:1px solid var(--line);padding-top:12px}
.share-buttons{display:flex;gap:10px;flex-wrap:wrap}
.share-buttons a,.share-buttons button{border:1px solid var(--line);background:#0d0f0e;color:#fff;padding:10px 15px;border-radius:4px;cursor:pointer}
.share-buttons a:hover,.share-buttons button:hover{border-color:var(--gold);color:var(--gold-2)}
.property-sidebar{top:96px}
.sidebar-price{font-family:Georgia,"Times New Roman",serif;color:var(--gold-2);font-size:34px;margin-bottom:20px}
.sidebar-summary{display:grid;gap:0;margin-bottom:24px}
.sidebar-summary div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-summary span{color:var(--muted)}
.sidebar-summary strong{font-weight:500;text-align:right}
.property-sidebar h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:28px;margin:25px 0 8px}
.sidebar-contact-links{display:grid;gap:8px;margin:20px 0}
.sidebar-contact-links a{color:var(--gold-2)}
.property-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:10000;display:grid;place-items:center;padding:50px}
.property-lightbox[hidden]{display:none}
.property-lightbox img{max-width:min(1200px,90vw);max-height:88vh;object-fit:contain}
.lightbox-close,.lightbox-prev,.lightbox-next{position:absolute;background:rgba(10,10,10,.72);border:1px solid var(--line);color:#fff;width:48px;height:48px;border-radius:50%;font-size:30px;cursor:pointer}
.lightbox-close{right:24px;top:20px}
.lightbox-prev{left:24px;top:50%}
.lightbox-next{right:24px;top:50%}
@media(max-width:980px){
  .property-layout{grid-template-columns:1fr}
  .property-sidebar{position:static}
  .property-key-info{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .property-heading{display:block}
  .property-heading-price{text-align:left;margin-top:16px}
  .property-gallery{grid-template-columns:1fr}
  .gallery-featured{min-height:300px}
  .gallery-side{grid-template-columns:1fr 1fr}
  .gallery-side button{min-height:130px}
  .property-key-info{grid-template-columns:1fr}
  .key-info-item{border-right:0}
  .property-lightbox{padding:20px}
}


/* Wersja 1.6: czytelniejsza lokalizacja na kartach */
.property-card .property-location{
  font-size:17px;
  font-weight:600;
  line-height:1.45;
  margin:10px 0 14px;
  letter-spacing:.01em;
}
.property-card .property-location::first-letter{font-size:18px}
@media(max-width:760px){.property-card .property-location{font-size:16px}}


/* Wersja 1.7: dopracowanie strony głównej */
.hero .btn,
.hero a.btn,
.hero-content .btn{
  font-size:20px !important;
  font-weight:700 !important;
  line-height:1.2;
  padding:16px 28px !important;
  letter-spacing:.02em;
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.hero .btn::after,
.hero a.btn::after,
.hero-content .btn::after{
  font-size:24px;
  line-height:1;
  transition:transform .25s ease;
}
.hero .btn:hover::after,
.hero a.btn:hover::after,
.hero-content .btn:hover::after{
  transform:translateX(4px);
}
.site-header .custom-logo,
.site-header .site-logo img,
.site-header .logo img{
  max-height:86px !important;
  width:auto;
}
.hero{
  min-height:min(760px,78vh) !important;
}
.property-card{
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.property-card:hover{
  transform:translateY(-5px);
  border-color:var(--gold);
  box-shadow:0 16px 38px rgba(0,0,0,.38),0 0 0 1px rgba(212,164,59,.08);
}
.property-card .property-image img,
.property-card .property-thumb{
  transition:transform .45s ease;
}
.property-card:hover .property-image img,
.property-card:hover .property-thumb{
  transform:scale(1.035);
}
.property-card .property-location{
  font-size:17px;
  font-weight:600;
}
html{
  scroll-behavior:smooth;
}
@media(max-width:760px){
  .hero .btn,
  .hero a.btn,
  .hero-content .btn{
    font-size:18px !important;
    padding:14px 22px !important;
    min-height:50px;
  }
  .site-header .custom-logo,
  .site-header .site-logo img,
  .site-header .logo img{
    max-height:72px !important;
  }
}


/* Wersja 1.8: wycentrowanie layoutu i czyste zdjęcie główne */
:root{
  --max:1400px;
}
.container{
  width:min(var(--max),calc(100% - 80px));
  margin-left:auto;
  margin-right:auto;
}
.hero{
  background-position:center right !important;
}
.hero::before{
  background:
    linear-gradient(
      90deg,
      rgba(3,5,4,.98) 0%,
      rgba(3,5,4,.94) 25%,
      rgba(3,5,4,.70) 43%,
      rgba(3,5,4,.18) 70%,
      rgba(3,5,4,.04) 100%
    ) !important;
}
.hero-content{
  max-width:690px;
  padding-left:0;
  margin-left:0;
}
.hero h1{
  max-width:680px;
}
.header-inner{
  width:100%;
}
.search-panel{
  width:100%;
}
@media(max-width:1100px){
  :root{--max:1180px}
  .container{width:min(var(--max),calc(100% - 48px))}
}
@media(max-width:760px){
  .container{width:calc(100% - 24px)}
  .hero{background-position:68% center !important}
  .hero::before{
    background:linear-gradient(90deg,rgba(3,5,4,.97),rgba(3,5,4,.72)) !important;
  }
}


/* Wersja 4.8: premium banner katalogu ofert */
.archive-header{
  position:relative;
  isolation:isolate;
  min-height:300px;
  display:flex;
  align-items:center;
  padding:58px 0;
  border-bottom:1px solid var(--line);
  overflow:hidden;
  background-color:#070908;
  background-image:url("assets/img/hero-default.jpg");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center 54%;
}
.archive-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,rgba(3,5,4,.94) 0%,rgba(3,5,4,.86) 42%,rgba(3,5,4,.62) 72%,rgba(3,5,4,.76) 100%);
}
.archive-header::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 82% 48%,rgba(211,163,63,.20),transparent 32%),
    linear-gradient(90deg,transparent 54%,rgba(211,163,63,.08) 100%);
}
.archive-header .container{
  width:100%;
}
.archive-header .section-kicker{
  letter-spacing:.13em;
  text-shadow:0 2px 18px rgba(0,0,0,.7);
}
.archive-header .section-title{
  max-width:760px;
  text-align:left;
  margin:12px 0 18px;
  color:#fff;
  text-shadow:0 3px 22px rgba(0,0,0,.72);
}
.archive-header p{
  color:rgba(255,255,255,.82);
  max-width:720px;
  margin:0;
  font-size:18px;
  line-height:1.6;
  text-shadow:0 2px 14px rgba(0,0,0,.78);
}
.archive-header .section-title::after{
  content:"";
  display:block;
  width:94px;
  height:2px;
  margin-top:24px;
  background:linear-gradient(90deg,var(--gold),var(--gold-2));
  box-shadow:0 0 18px rgba(211,163,63,.25);
}
.offers-filter-section{
  padding:32px 0 0;
}
.offers-filter{
  margin:0;
}
.offers-filter-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr .8fr .8fr .8fr 1fr;
  gap:14px;
  align-items:end;
}
.offers-filter .field label{
  display:block;
  color:var(--gold-2);
  font-size:12px;
  margin:0 0 7px;
}
.offers-filter input,
.offers-filter select{
  width:100%;
  min-height:48px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#080a09;
  color:#fff;
}
.offers-filter input:focus,
.offers-filter select:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 2px rgba(213,163,62,.12);
}
.offers-filter-actions{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:18px;
}
.filter-reset{
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:4px;
}
.filter-reset:hover{
  color:var(--gold-2);
}
.offers-results{
  padding-top:34px;
}
.offers-results-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  color:var(--muted);
}
.offers-results-header strong{
  color:var(--gold-2);
}
.offers-empty{
  grid-column:1/-1;
  text-align:center;
  padding:60px 24px;
  border:1px dashed var(--line);
  border-radius:6px;
  background:#0a0c0b;
}
.offers-empty h2{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:32px;
  margin:0 0 10px;
}
.offers-empty p{
  color:var(--muted);
  margin-bottom:24px;
}
.offers-pagination{
  margin-top:42px;
}
.offers-pagination .nav-links{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.offers-pagination .page-numbers{
  min-width:42px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:4px;
  color:#fff;
  background:#0a0c0b;
}
.offers-pagination .page-numbers.current,
.offers-pagination .page-numbers:hover{
  border-color:var(--gold);
  color:#050505;
  background:var(--gold-2);
}
@media(max-width:1180px){
  .offers-filter-grid{
    grid-template-columns:repeat(3,1fr);
  }
}
@media(max-width:760px){
  .archive-header{
    min-height:255px;
    padding:42px 0;
    background-position:66% center;
  }
  .archive-header::before{
    background:linear-gradient(90deg,rgba(3,5,4,.96),rgba(3,5,4,.78));
  }
  .archive-header .section-title{
    font-size:clamp(36px,11vw,48px);
  }
  .archive-header p{
    font-size:16px;
  }
  .offers-filter-grid{
    grid-template-columns:1fr;
  }
  .offers-filter-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .offers-filter-actions .btn{
    width:100%;
  }
}


/* Wersja 2.0: kompletna strona pojedynczej oferty */
.tour-fallback,
.map-note{
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
}
.tour-fallback a{
  color:var(--gold-2);
  text-decoration:underline;
  text-underline-offset:3px;
}
.property-map{
  margin-top:52px;
}
.map-frame{
  aspect-ratio:16/7;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:#080a09;
}
.map-frame iframe{
  width:100%;
  height:100%;
  border:0;
  filter:grayscale(1) contrast(1.04) brightness(.82);
}
.sidebar-agent{
  padding-top:4px;
}
.sidebar-cta{
  width:100%;
}
.property-enquiry-section{
  display:grid;
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);
  gap:56px;
  margin-top:76px;
  padding:48px;
  border:1px solid var(--line);
  border-radius:7px;
  background:
    radial-gradient(circle at 10% 10%,rgba(204,157,57,.10),transparent 34%),
    #0a0c0b;
}
.enquiry-intro h2,
.related-properties h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(34px,4vw,52px);
  font-weight:400;
  margin:8px 0 16px;
}
.enquiry-intro p{
  color:var(--muted);
}
.property-enquiry-form label{
  display:block;
  color:#e9e4da;
  font-size:13px;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px;
}
.form-full{
  grid-column:1/-1;
}
.property-enquiry-form input,
.property-enquiry-form textarea{
  width:100%;
  margin-top:7px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#050706;
  color:#fff;
}
.property-enquiry-form input:focus,
.property-enquiry-form textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 2px rgba(210,160,56,.13);
}
.form-consent{
  display:flex !important;
  align-items:flex-start;
  gap:9px;
  margin:17px 0;
  color:var(--muted) !important;
}
.form-consent input{
  width:auto;
  margin:3px 0 0;
}
.form-honeypot{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}
.form-notice{
  padding:13px 15px;
  margin-bottom:17px;
  border-radius:4px;
}
.form-notice.success{
  border:1px solid #527e5e;
  background:#102617;
  color:#bfe5c8;
}
.form-notice.error{
  border:1px solid #8a4c4c;
  background:#2a1212;
  color:#f1c1c1;
}
.related-properties{
  margin-top:86px;
  padding-top:55px;
  border-top:1px solid var(--line);
}
.related-properties h2{
  margin-bottom:30px;
}
@media(max-width:900px){
  .property-enquiry-section{
    grid-template-columns:1fr;
    gap:28px;
    padding:32px;
  }
}
@media(max-width:620px){
  .property-enquiry-section{
    padding:24px 18px;
  }
  .form-grid{
    grid-template-columns:1fr;
  }
  .form-full{
    grid-column:auto;
  }
  .map-frame{
    aspect-ratio:4/3;
  }
}


/* Wersja 3.5: statusy ofert i ręczny wybór ofert na stronę główną */
.property-image-badges{align-items:flex-start}
.property-lifecycle{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:3px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.property-lifecycle.reservation{
  background:#b47b13;
  color:#fff;
}
.property-lifecycle.sold{
  background:#8e2323;
  color:#fff;
}
.property-availability-banner{
  margin:0 0 24px;
  padding:14px 18px;
  border-radius:4px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  text-align:center;
}
.property-availability-banner.reservation{
  border:1px solid #b47b13;
  background:rgba(180,123,19,.15);
  color:#efc46e;
}
.property-availability-banner.sold{
  border:1px solid #8e2323;
  background:rgba(142,35,35,.18);
  color:#efaaaa;
}

/* Wersja 3.7: kompaktowe karty i cztery zdjęcia w podglądzie oferty */
@media (max-width:1180px) and (min-width:981px){
  .properties-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
}


/* Wersja 3.8: wymuszone 4 karty na szerokich ekranach i elegancka sekcja multimediów */
@media (min-width:1200px){
  body .properties-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:18px !important}
  body .property-card h3{font-size:23px;line-height:1.28}
  body .property-card .property-body{padding:18px}
}
.property-multimedia{margin-top:46px;padding-top:8px}
.property-multimedia>h2{margin-bottom:22px}
.multimedia-item{margin-top:28px}
.multimedia-item:first-of-type{margin-top:0}
.multimedia-item h3{margin:0 0 12px;font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:400;color:#fff}
.video-frame{background:#050605}
@media(max-width:1199px) and (min-width:981px){body .properties-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}


/* Wersja 4.0: dopracowane proporcje bez zmiany charakteru strony */
@media (min-width:1200px){
  body .properties-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:20px !important}
}
.property-card .property-image{aspect-ratio:16/9}
.property-card .property-body{padding:16px 16px 18px}
.property-card .property-title{
  font-size:20px !important;
  line-height:1.28 !important;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:2.56em;
}
.property-card .property-location{font-size:14px;line-height:1.35;margin:8px 0 10px}
.property-card .property-meta{font-size:12px;margin:10px 0 12px;gap:8px}
.property-card .property-price{font-size:22px}

.single-property{padding:38px 0 56px}
.property-breadcrumb{margin-bottom:20px}
.property-heading{align-items:flex-end;gap:26px;margin-bottom:22px}
.property-heading h1{
  font-size:clamp(32px,3.2vw,48px);
  line-height:1.08;
  max-width:1050px;
  margin:10px 0 7px;
}
.property-heading-price{font-size:clamp(28px,2.5vw,38px)}
.property-heading-location{font-size:15px}

.property-gallery{
  grid-template-columns:minmax(0,1.9fr) minmax(310px,.95fr);
  gap:10px;
  margin-bottom:32px;
  height:clamp(430px,36vw,540px);
}
.property-gallery .gallery-featured,
.property-gallery .gallery-side{min-height:0;height:100%}
.property-gallery .gallery-featured img{width:100%;height:100%;object-fit:cover}
.gallery-side{
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:10px;
}
.gallery-side button{min-width:0;min-height:0}
.gallery-side img{width:100%;height:100%;object-fit:cover}

@media(max-width:1199px) and (min-width:981px){
  body .properties-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .property-gallery{height:470px;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}
}
@media(max-width:980px){
  .property-heading h1{font-size:clamp(30px,5vw,42px)}
  .property-gallery{height:auto;grid-template-columns:1fr}
  .property-gallery .gallery-featured{height:420px}
  .gallery-side{height:auto;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,180px)}
}
@media(max-width:640px){
  .single-property{padding:24px 0 42px}
  .property-heading h1{font-size:32px}
  .property-heading-price{font-size:30px}
  .property-gallery .gallery-featured{height:300px}
  .gallery-side{grid-template-rows:repeat(2,125px)}
}


/* Wersja 4.1: finalne proporcje podstrony oferty */
.property-heading{
  align-items:flex-end;
  margin-bottom:18px;
}
.property-heading h1{
  font-size:clamp(28px,2.55vw,40px) !important;
  line-height:1.1 !important;
  max-width:980px;
  margin:8px 0 7px;
}
.property-heading-price{
  font-size:clamp(26px,2.2vw,34px) !important;
}
.property-heading-facts{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(211,163,63,.32);
}
.property-heading-fact{
  display:flex;
  align-items:baseline;
  gap:7px;
  padding:0 18px;
  border-right:1px solid rgba(211,163,63,.32);
  line-height:1.25;
}
.property-heading-fact:first-child{padding-left:0}
.property-heading-fact:last-child{border-right:0}
.property-heading-fact small{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.property-heading-fact strong{
  color:var(--gold-2);
  font-size:14px;
  font-weight:600;
}
.property-gallery{
  height:clamp(320px,27vw,390px) !important;
  grid-template-columns:minmax(0,1.9fr) minmax(285px,.95fr) !important;
  gap:8px !important;
  margin-bottom:28px !important;
}
.gallery-side{gap:8px !important}

@media(max-width:1199px) and (min-width:981px){
  .property-heading h1{font-size:clamp(28px,3vw,38px) !important}
  .property-gallery{height:350px !important;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr) !important}
}
@media(max-width:980px){
  .property-heading h1{font-size:clamp(28px,4.4vw,38px) !important}
  .property-heading-facts{margin-top:12px}
  .property-heading-fact{padding:0 12px 6px}
  .property-gallery{height:auto !important;grid-template-columns:1fr !important}
  .property-gallery .gallery-featured{height:330px !important}
  .gallery-side{grid-template-rows:repeat(2,145px) !important}
}
@media(max-width:640px){
  .property-heading{gap:14px}
  .property-heading h1{font-size:28px !important}
  .property-heading-price{font-size:27px !important}
  .property-heading-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 0}
  .property-heading-fact{padding:0 10px 6px;border-right:0}
  .property-heading-fact:nth-child(odd){padding-left:0;border-right:1px solid rgba(211,163,63,.32)}
  .property-gallery .gallery-featured{height:255px !important}
  .gallery-side{grid-template-rows:repeat(2,110px) !important}
}


/* Wersja 4.2: kompaktowa galeria oraz film w galerii */
.property-gallery{
  height:clamp(190px,16vw,235px) !important;
  grid-template-columns:minmax(0,1.9fr) minmax(250px,.95fr) !important;
  gap:7px !important;
  margin-bottom:24px !important;
}
.gallery-side{gap:7px !important}
.gallery-video{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  background:#0b0c0b !important;
  cursor:pointer !important;
}
.gallery-video img{filter:brightness(.58);transform:none !important}
.gallery-video:hover img{filter:brightness(.48);transform:scale(1.02) !important}
.gallery-video-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#fff;
  text-align:center;
  font-weight:700;
  font-size:13px;
  letter-spacing:.02em;
  text-shadow:0 2px 10px rgba(0,0,0,.8);
}
.gallery-video-play{
  width:42px;
  height:42px;
  border:1px solid rgba(240,200,103,.9);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(7,8,7,.68);
  color:var(--gold-2);
  font-size:16px;
  padding-left:2px;
  box-shadow:0 6px 20px rgba(0,0,0,.28);
}
.property-video-modal{
  position:fixed;
  inset:0;
  z-index:10020;
  display:grid;
  place-items:center;
  padding:40px;
  background:rgba(0,0,0,.94);
}
.property-video-modal[hidden]{display:none}
.property-video-dialog{position:relative;width:min(1100px,92vw)}
.property-video-frame{aspect-ratio:16/9;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#000}
.property-video-frame iframe{width:100%;height:100%;border:0}
.video-modal-close{
  position:absolute;
  right:-14px;
  top:-54px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#0b0c0b;
  color:#fff;
  font-size:26px;
  cursor:pointer;
}
@media(max-width:1199px) and (min-width:981px){
  .property-gallery{height:215px !important;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr) !important}
}
@media(max-width:980px){
  .property-gallery{height:auto !important;grid-template-columns:1fr !important}
  .property-gallery .gallery-featured{height:245px !important}
  .gallery-side{grid-template-rows:repeat(2,105px) !important}
}
@media(max-width:640px){
  .property-gallery .gallery-featured{height:210px !important}
  .gallery-side{grid-template-rows:repeat(2,92px) !important}
  .property-video-modal{padding:18px}
  .gallery-video-overlay{font-size:12px}
  .gallery-video-play{width:36px;height:36px}
}


/* === Chmielowiec v4.5: final layout corrections === */
.site-header .header-inner{
  min-height:82px;
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);
  align-items:center;
  gap:24px;
}
.site-header .site-logo{justify-self:start;display:flex;align-items:center;line-height:0}
.site-header .site-logo img,
.site-header .custom-logo{
  width:190px !important;
  height:auto !important;
  max-height:72px !important;
  object-fit:contain !important;
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}
.site-header .main-nav{justify-self:center}
.site-header .header-phone{justify-self:end}

/* Archive: 4 cards per row, 12 properties per page supplied in PHP. */
.post-type-archive-nieruchomosc .properties-grid,
.page-template-page-oferty .properties-grid,
.offers-page .properties-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  align-items:stretch;
}
.post-type-archive-nieruchomosc .property-card,
.page-template-page-oferty .property-card,
.offers-page .property-card{height:100%}

/* Gallery contains photographs only. */
.property-gallery{height:215px !important;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr) !important;gap:7px !important}
.property-gallery .gallery-featured,
.property-gallery .gallery-side{height:100% !important;min-height:0 !important}
.property-gallery .gallery-side{grid-template-columns:repeat(2,minmax(0,1fr)) !important;grid-template-rows:repeat(2,minmax(0,1fr)) !important;gap:7px !important}
.property-gallery img{width:100%;height:100%;object-fit:cover}
.gallery-video,.property-video-modal{display:none !important}

/* Standalone video below the description. */
.property-video-section{margin-top:28px}
.property-video-embed{position:relative;overflow:hidden;border:1px solid rgba(212,169,55,.42);border-radius:7px;background:#050605;aspect-ratio:16/9;max-width:980px}
.property-video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

@media (max-width:1250px){
  .post-type-archive-nieruchomosc .properties-grid,
  .page-template-page-oferty .properties-grid,
  .offers-page .properties-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media (max-width:980px){
  .site-header .header-inner{display:flex;min-height:74px}
  .site-header .site-logo img,.site-header .custom-logo{width:165px !important;max-height:64px !important}
  .property-gallery{height:auto !important;grid-template-columns:1fr !important}
  .property-gallery .gallery-featured{height:245px !important}
  .property-gallery .gallery-side{height:auto !important;grid-template-rows:repeat(2,105px) !important}
  .post-type-archive-nieruchomosc .properties-grid,
  .page-template-page-oferty .properties-grid,
  .offers-page .properties-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media (max-width:620px){
  .site-header .site-logo img,.site-header .custom-logo{width:145px !important;max-height:58px !important}
  .property-gallery .gallery-featured{height:210px !important}
  .property-gallery .gallery-side{grid-template-rows:repeat(2,92px) !important}
  .post-type-archive-nieruchomosc .properties-grid,
  .page-template-page-oferty .properties-grid,
  .offers-page .properties-grid{grid-template-columns:1fr !important}
}


/* === Chmielowiec v4.6: cache-safe logo and photos-only gallery === */
.site-header .site-logo{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.site-header .site-logo img{background:transparent!important;display:block!important;width:190px!important;max-height:72px!important;object-fit:contain!important}
.gallery-video,.property-video-modal,[data-video-open]{display:none!important}
.property-gallery .gallery-side{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}


/* === Chmielowiec v4.7: slightly larger property gallery === */
@media (min-width:981px){
  .property-gallery{
    height:270px !important;
    grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr) !important;
    gap:9px !important;
  }
  .property-gallery .gallery-side{gap:9px !important;}
}
@media (min-width:621px) and (max-width:980px){
  .property-gallery .gallery-featured{height:290px !important;}
  .property-gallery .gallery-side{grid-template-rows:repeat(2,125px) !important;gap:9px !important;}
}


/* === Chmielowiec v4.9.1: quick add-offer action for logged-in editors === */
.site-header .header-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.site-header .header-add-property{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 15px;
  border-radius:4px;
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:#0b0b0a;
  font-size:13px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
  transition:filter .2s ease,transform .2s ease;
}
.site-header .header-add-property:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}
@media(max-width:1250px) and (min-width:981px){
  .site-header .header-inner{grid-template-columns:minmax(165px,.8fr) auto minmax(300px,1fr);gap:16px}
  .site-header .header-phone{padding:9px 12px;font-size:13px}
  .site-header .header-add-property{padding:10px 12px;font-size:12px}
}
@media(max-width:980px){
  .site-header .header-actions{display:none}
}
