@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#17221e;--muted:#68736d;--green:#c8ef8b;--paper:#f6f7f3;--line:#e1e6df;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:'DM Sans',sans-serif;background:var(--paper)}a{color:inherit}.topbar{height:78px;padding:0 6.5%;display:flex;align-items:center;justify-content:space-between;background:#17221e;color:#fff}.brand{display:flex;gap:12px;align-items:center;text-decoration:none}.brand-mark{font-size:39px;color:var(--green);line-height:1}.brand b{display:block;font:800 20px Manrope,sans-serif;letter-spacing:-.7px}.brand small{display:block;color:#bdc6c0;font-size:11px;margin-top:1px}.topbar nav{display:flex;gap:34px}.topbar nav a,footer a{font-size:13px;text-decoration:none;color:#e7ece7}.topbar nav a:hover,footer a:hover{color:var(--green)}
.brand-footer{transition:color .2s ease}
.brand-footer .brand-mark,.brand-footer b,.brand-footer small{transition:color .2s ease}
.brand-footer:hover .brand-mark,.brand-footer:hover b,.brand-footer:hover small{color:var(--green)}.hero{min-height:525px;background:linear-gradient(90deg,rgba(13,25,20,.91),rgba(13,25,20,.57) 55%,rgba(13,25,20,.13)),url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=85') center/cover;background-image:linear-gradient(90deg,rgba(13,25,20,.91),rgba(13,25,20,.57) 55%,rgba(13,25,20,.13)),url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=85');}
.hero{background-image:linear-gradient(90deg,rgba(13,25,20,.92),rgba(13,25,20,.58) 58%,rgba(13,25,20,.15)),url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=85');display:flex;align-items:center;padding:65px 6.5%}.hero-content{width:100%;max-width:1240px;margin:auto}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.2px;color:#7a9e58}.hero .eyebrow{color:var(--green)}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Manrope,sans-serif;letter-spacing:-1.8px}h1{font-size:clamp(38px,5.2vw,68px);line-height:1.06;color:#fff;margin:20px 0 17px}h1 em,h2 em{font-style:normal;color:#bfe98a}.hero-content>p{color:#e2e8e2;font-size:16px;max-width:500px;line-height:1.7;margin-bottom:34px}.search-panel{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:10px;background:#fff;padding:10px;border-radius:8px;max-width:1050px;box-shadow:0 18px 55px #0002}.search-panel label{display:flex;flex-direction:column;gap:5px;padding:7px 12px;border-right:1px solid var(--line)}.search-panel label span{font-size:10px;color:var(--muted)}input,select,textarea{font:inherit;color:var(--ink);border:1px solid #dfe5de;border-radius:5px;background:#fff;padding:12px;min-width:0;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:#7a9e58;box-shadow:0 0 0 3px #c8ef8b44}.search-panel input,.search-panel select{border:0;padding:3px 0;font-size:13px}.button{border:0;border-radius:5px;padding:14px 20px;font:700 13px 'DM Sans',sans-serif;cursor:pointer;display:flex;justify-content:center;align-items:center;gap:24px;transition:transform .2s,background .2s}.button:hover{transform:translateY(-1px)}.button-dark{background:var(--ink);color:white}.button-dark:hover{background:var(--green);color:var(--ink)}.button-dark:hover span{color:var(--ink)}.button span{color:var(--green);font-size:18px}.section{padding:78px 6.5%}.listings-section{max-width:1600px;margin:auto}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.section-heading h2,.submit-intro h2,.how-section h2{font-size:clamp(30px,3vw,42px);line-height:1.15;margin:12px 0 0}.muted{color:var(--muted);font-size:12px}.listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.listing-card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;transition:transform .25s,box-shadow .25s}.listing-card:hover{transform:translateY(-4px);box-shadow:0 15px 35px #17221e10}.listing-photo{height:215px;background:#e5e9e1;position:relative;overflow:hidden}.listing-photo img{width:100%;height:100%;object-fit:cover;display:block}.photo-count{position:absolute;right:12px;bottom:12px;background:#17221ed9;color:#fff;padding:6px 9px;border-radius:4px;font-size:11px}.listing-body{padding:20px}.listing-type{font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#6b8d4e}.listing-body h3{font:700 18px Manrope,sans-serif;margin:10px 0}.listing-location{font-size:12px;color:var(--muted);margin-bottom:15px}.listing-description{font-size:13px;line-height:1.65;color:#526057;white-space:pre-line;overflow-wrap:anywhere}.listing-meta{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:14px;margin-top:17px;gap:10px}.price{font:800 19px Manrope,sans-serif}.area{font-size:12px;color:var(--muted)}.empty-state{text-align:center;padding:60px 10px;color:var(--muted)}.empty-state>span{font-size:42px;color:#8ba86d}.empty-state h3{color:var(--ink);margin:12px 0}.notice{padding:12px 15px;background:#e8f2df;border:1px solid #cfe1c0;border-radius:6px;margin-bottom:20px;font-size:13px}.submit-section{padding:90px 6.5%;background:#e9ede5;display:grid;grid-template-columns:1fr minmax(350px,520px);gap:8%;align-items:start}.submit-intro{padding-top:30px;max-width:490px}.submit-intro h2{font-size:clamp(38px,4vw,54px);margin:18px 0}.submit-intro h2 em{color:#688d4b}.submit-intro>p{color:#59665d;line-height:1.8;font-size:15px}.process{display:grid;gap:18px;margin-top:40px}.process div{display:flex;gap:17px;align-items:center;font-size:13px}.process b{font:700 12px Manrope;color:#688d4b;border:1px solid #b7c8ac;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.form-card{background:#fff;padding:32px;border-radius:9px;box-shadow:0 20px 50px #17221e0a}.form-card h3{font:800 25px Manrope;margin-bottom:7px}.form-card>p{margin-bottom:25px}.form-card>label:not(.upload-box):not(.consent),.form-row label{display:block;font-size:12px;font-weight:600;margin-bottom:17px}.form-card label input,.form-card label textarea,.form-card label select{display:block;margin-top:8px;font-weight:400;font-size:13px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.counter{display:block;text-align:right;color:var(--muted);font-size:10px;font-weight:400;margin-top:5px}.upload-box{border:1px dashed #b8c5b2;border-radius:6px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 10px;margin:5px 0 18px;cursor:pointer;color:#526057;font-size:12px}.upload-box:hover{background:#f8faf6}.upload-box input{position:absolute;width:1px;height:1px;opacity:0}.upload-icon{font-size:27px;color:#688d4b}.upload-box b{color:var(--ink);font-size:13px}.file-names{max-width:100%;overflow-wrap:anywhere;text-align:center;color:#688d4b}.consent{display:flex;gap:10px;align-items:flex-start;font-size:11px;line-height:1.6;color:#59665d;margin-bottom:20px}.consent input{width:15px;height:15px;flex-shrink:0;margin:2px 0 0;accent-color:#688d4b}.consent a{color:#466a2f}.full-width{width:100%}.form-footnote{font-size:10px!important;color:var(--muted);text-align:center;margin:13px 0 0!important;line-height:1.6}.form-message{font-size:12px;line-height:1.5;margin-top:12px}.form-message.error{color:#a83232}.form-message.success{color:#3b6b2c}.how-section{background:#fff}.how-section h2{margin:14px 0 40px}.how-section h2 em{color:#688d4b}.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:35px}.how-grid article{border-top:1px solid var(--line);padding-top:20px}.how-grid article>span{font-size:11px;color:#688d4b;font-weight:700}.how-grid h3{font:700 19px Manrope;margin:20px 0 9px}.how-grid p{font-size:13px;line-height:1.8;color:var(--muted);max-width:310px}footer{background:#17221e;color:white;display:flex;align-items:center;justify-content:space-between;padding:28px 6.5%;gap:20px}footer>span{font-size:11px;color:#bfc8c0}footer>div{display:flex;gap:22px}.brand-footer .brand-mark{font-size:30px}.brand-footer b{font-size:16px}.brand-footer small{font-size:10px}.page-shell{max-width:900px;margin:70px auto;padding:0 22px;min-height:55vh}.page-shell h1{color:var(--ink);font-size:42px}.page-shell p,.page-shell li{line-height:1.8;color:#526057;font-size:14px}.admin-wrap{max-width:1100px;margin:50px auto;padding:0 20px;min-height:60vh}.admin-wrap h1{color:var(--ink);font-size:38px}.admin-login{max-width:430px;background:white;padding:28px;border:1px solid var(--line);border-radius:8px}.admin-login label{display:block;font-size:12px;margin:14px 0}.admin-login input{margin-top:7px}.admin-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.admin-list{display:grid;gap:14px;margin-top:25px}.admin-item{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;display:grid;grid-template-columns:1fr auto;gap:20px}.admin-item p{font-size:13px;line-height:1.6;white-space:pre-line}.admin-actions{display:flex;gap:8px;align-items:start;flex-wrap:wrap}.button-small{padding:10px 13px;font-size:12px}.button-approve{background:#e5f2d9;color:#315522}.button-danger{background:#f8e5e3;color:#8c2d26}.status{display:inline-block;border-radius:30px;padding:5px 9px;font-size:10px;background:#f5ecd5;color:#725a1d;margin-bottom:10px}
@media(max-width:850px){.topbar{padding:0 5%;height:70px}.topbar nav{gap:14px}.topbar nav a{font-size:11px}.hero{padding:55px 5%;min-height:560px}.search-panel{grid-template-columns:1fr 1fr}.search-panel label:nth-child(2){border-right:0}.search-panel label:nth-child(3){border-top:1px solid var(--line);padding-top:12px}.search-panel button{margin-top:5px}.section{padding:60px 5%}.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.submit-section{padding:65px 5%;grid-template-columns:1fr;gap:35px}.submit-intro{padding-top:0}.process{margin-top:25px}.form-card{max-width:600px;width:100%}footer{padding:25px 5%;flex-wrap:wrap}}
@media(max-width:560px){.topbar{height:auto;min-height:70px;align-items:flex-start;padding-top:15px;padding-bottom:13px;gap:12px;flex-direction:column}.topbar nav{width:100%;justify-content:space-between;gap:8px}.topbar nav a{font-size:12px}.hero{min-height:0;padding:55px 5% 42px}.hero-content>p{font-size:14px}.search-panel{grid-template-columns:1fr;gap:0}.search-panel label{border-right:0;border-bottom:1px solid var(--line);padding:12px}.search-panel label:nth-child(3){border-top:0}.search-panel button{margin-top:10px}.section{padding:48px 5%}.section-heading{align-items:start;gap:15px;flex-direction:column}.listing-grid{grid-template-columns:1fr;gap:15px}.listing-photo{height:220px}.submit-section{padding:55px 5%}.form-card{padding:23px 18px}.form-row{grid-template-columns:1fr;gap:0}.how-grid{grid-template-columns:1fr;gap:20px}.how-section h2{margin-bottom:25px}footer{flex-direction:column;align-items:flex-start}footer>div{flex-wrap:wrap}.admin-item{grid-template-columns:1fr}.admin-wrap{margin:30px auto}}

/* Podstrona wszystkich ogłoszeń */
.all-listings-link{display:flex;justify-content:center;margin-top:30px}
.all-listings-link .button{text-decoration:none;display:inline-flex;align-items:center;gap:12px}
.all-listings-section{padding-top:55px;min-height:55vh}
.all-listings-filters{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:12px;margin:24px 0 30px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:8px}
.all-listings-filters label{display:block;font-size:12px;color:var(--muted)}
.all-listings-filters input,.all-listings-filters select{width:100%;margin-top:7px;padding:12px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit}
.all-listings-filters button{align-self:end}
@media(max-width:850px){.all-listings-filters{grid-template-columns:1fr 1fr}.all-listings-filters button{min-height:42px}}
@media(max-width:560px){.all-listings-filters{grid-template-columns:1fr}.all-listings-filters button{width:100%}}

/* Wspólny hover logo stopki na wszystkich podstronach */
footer a.brand-footer:hover,footer a.brand-footer:hover .brand-mark,footer a.brand-footer:hover b,footer a.brand-footer:hover small,footer a.brand-footer:focus-visible,footer a.brand-footer:focus-visible .brand-mark,footer a.brand-footer:focus-visible b,footer a.brand-footer:focus-visible small{color:var(--green)!important;transition:color .2s ease}
#dodaj{scroll-margin-top:20px}


/* Stronicowanie listy wszystkich ogłoszeń */
.pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:30px 0 10px}
.pagination button,.pagination a{min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.pagination button:hover,.pagination a:hover{border-color:var(--green);color:var(--green)}
.pagination button[aria-current="page"]{background:var(--green);border-color:var(--green);color:#fff;cursor:default}
.pagination button:disabled{opacity:.4;cursor:not-allowed}
.pagination .pagination-ellipsis{padding:0 4px;color:var(--muted)}
@media(max-width:560px){.pagination{gap:5px}.pagination button,.pagination a{min-width:36px;height:38px;padding:0 9px;font-size:13px}}


/* Karty ogłoszeń: jednolity stan zwinięty i rozwijanie pełnego opisu */
.listing-grid{align-items:stretch}
.listing-card,.listing-card-premium{display:flex;flex-direction:column;min-width:0}
.listing-photo{flex:0 0 215px}
.listing-body{display:flex;flex:1;flex-direction:column;min-width:0}
.listing-badges{display:flex;align-items:center;gap:7px;min-height:27px;margin-bottom:5px}
.listing-badges .listing-premium-label{margin:0}
.listing-badges .listing-featured-label{margin:0}
.listing-featured-placeholder{display:block;width:1px;height:22px}
.listing-body .listing-type{display:block;margin:0 0 7px}
.listing-body .listing-location{margin:0 0 10px;min-height:18px}
.listing-description-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;min-height:calc(1.65em * 3);max-height:calc(1.65em * 3);margin:0 0 12px;overflow-wrap:anywhere}
.listing-meta{margin-top:auto;margin-bottom:12px;min-height:43px}
.listing-expand-button{margin-top:0;flex:0 0 auto}
.listing-expanded{border-top:1px solid var(--line);padding-top:12px;margin:0 0 12px;overflow-wrap:anywhere}
.listing-description-full{white-space:pre-line;margin:0 0 12px}
.listing-area-detail{font-size:12px;margin:0 0 12px}
.listing-contact-details{padding:12px;border:1px solid #dce5dc;border-radius:7px;overflow-wrap:anywhere;background:rgba(255,255,255,.45)}
.listing-contact-details p:last-child{margin-bottom:0}
.listing-body.is-expanded .listing-description-preview{display:none}
.listing-body.is-expanded .listing-meta{margin-top:0}
.listing-expanded[hidden]{display:none!important}
@media(max-width:560px){.listing-photo{flex-basis:220px}.listing-description-preview{min-height:calc(1.65em * 3);max-height:calc(1.65em * 3)}}


/* Czytelny komunikat po poprawnym wysłaniu ogłoszenia */
.form-message.success {
  display: block;
  margin-top: 20px;
  padding: 20px 22px;
  border: 2px solid #6b9f55;
  border-left-width: 6px;
  border-radius: 10px;
  background: #edf7e8;
  color: #285b2c;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  box-shadow: 0 5px 16px rgba(45, 91, 44, .10);
}

.form-message.success::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-right: 10px;
  border-radius: 50%;
  background: #397b42;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  vertical-align: middle;
}

@media (max-width: 560px) {
  .form-message.success {
    padding: 16px;
    font-size: 14px;
  }
}


/* PROMO_MODAL – sama grafika, bez dodatkowej ramki kontenera */
.promo-modal[hidden] { display: none !important; }
.promo-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 12px; }
.promo-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 13, 9, .78); backdrop-filter: blur(3px); animation: promoFadeIn .2s ease both; }
.promo-modal__dialog { position: relative; z-index: 1; width: min(76.8vw, 960px, calc(73.6vh * 1.236)); max-height: 73.6vh; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; overflow: visible; animation: promoDialogIn .25s ease both; }
.promo-modal__stage { position: relative; width: 100%; line-height: 0; }
.promo-modal__image { display: block; width: 100%; height: auto; max-height: 73.6vh; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; user-select: none; -webkit-user-drag: none; }
.promo-modal__close, .promo-modal__hotspot { position: absolute; display: block; margin: 0; padding: 0; border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; cursor: pointer; text-decoration: none; line-height: normal; -webkit-tap-highlight-color: transparent; }
.promo-modal__close { left: 86.5%; top: 2.4%; width: 9.4%; height: 11.5%; border-radius: 28%; appearance: none; }
.promo-modal__hotspot--add { left: 2.7%; top: 80.8%; width: 45.7%; height: 12.1%; }
.promo-modal__hotspot--listings { left: 50.1%; top: 80.8%; width: 46.0%; height: 12.1%; }
.promo-modal__close:focus, .promo-modal__close:focus-visible { outline: none !important; box-shadow: none !important; }
.promo-modal__hotspot:focus-visible { outline: 2px solid #7fa85c; outline-offset: -4px; border-radius: 8px; }
body.promo-modal-open { overflow: hidden; }
@keyframes promoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes promoDialogIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 560px) { .promo-modal { padding: 8px; } .promo-modal__dialog { width: min(78.4vw, calc(73.6vh * 1.236)); } }
@media (prefers-reduced-motion: reduce) { .promo-modal__backdrop, .promo-modal__dialog { animation: none; } }


/* Spójna ramka wyłącznie dla aktywnych ogłoszeń PREMIUM + WYRÓŻNIONE
   – działa identycznie na stronie głównej i na liście wszystkich ogłoszeń. */
.listing-card.listing-card-premium.is-featured {
  border: 2px solid #e3262e !important;
  border-radius: 14px !important;
}


/* Etykieta PREMIUM – identyczny styl jak na stronie głównej */
.listing-badges .listing-premium-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e5f3df;
  color: #245b2a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}


/* Czerwona ramka dla aktywnego połączenia PREMIUM + WYRÓŻNIONE */
#listings .listing-card.listing-card-premium.is-featured {
  border: 2px solid #e3262e !important;
  border-radius: 14px !important;
}
