/* InfoGrunt — Ogłoszenia. Scoped product layer: .og-page / .og-* */

.og-page {
  --og-ink: #10251a;
  --og-brand: #0d3a26;
  --og-action: #17603b;
  --og-accent: #a7ff45;
  --og-page: #f4f7f1;
  --og-surface: #fffef9;
  --og-line: #d9e2d9;
  --og-muted: #455b4d;
  --og-secondary: #455b4d;
  background: var(--og-page);
  min-height: 100vh;
  color: var(--og-ink);
}
body.og-page { width: auto; min-width: 0; max-width: 100%; overflow-x: hidden; }
.og-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 20px 72px; outline: 0; }
.og-wrap a { color: var(--og-action); }
.og-h1 { font-size: 28px; margin: 6px 0 18px; }

/* ---- task header ---- */
.og-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; margin: 0 0 18px; }
.og-hero-txt h1 { margin: 0 0 5px; font-size: 29px; line-height: 1.12; letter-spacing: -.02em; }
.og-hero-txt p { max-width: 720px; margin: 0; color: var(--og-muted); font-size: 14.5px; line-height: 1.45; }
.og-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 17px;
  border: 1px solid var(--og-brand); border-radius: 11px; background: var(--og-brand); color: var(--og-accent) !important;
  font-size: 14px; font-weight: 800; text-decoration: none;
}
.og-add-btn:hover { background: #15412a; }
.og-add-btn:focus-visible, .og-tab:focus-visible, .og-category-rail a:focus-visible,
.og-filter-details > summary:focus-visible, .og-active-filters a:focus-visible, .og-card:focus-visible {
  outline: 3px solid #67b986; outline-offset: 3px;
}

/* ---- primary type and category navigation ---- */
.og-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: 0 0 12px; border: 1px solid var(--og-line); border-radius: 13px; background: #e9efe8; }
.og-tab { min-width: 112px; padding: 9px 18px; border-radius: 9px; color: #385044 !important; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.og-tab.active { background: var(--og-surface); color: var(--og-brand) !important; box-shadow: 0 1px 3px rgba(16, 37, 26, .08); }
.og-location-search { display: none; }
.og-category-rail { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.og-category-rail a {
  display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 12px; border: 1px solid var(--og-line);
  border-radius: 999px; background: var(--og-surface); color: #385044 !important; font-size: 12.5px; font-weight: 750; text-decoration: none;
}
.og-category-rail a.active { border-color: var(--og-brand); background: var(--og-brand); color: #fff !important; }

/* ---- result tools and filters ---- */
.og-results-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 12px; }
.og-count { margin: 0; min-height: 20px; color: var(--og-muted); font-size: 13.5px; font-weight: 650; }
.og-quick-sort { display: none; }
.og-filter-details { grid-column: 1 / -1; min-width: 0; }
.og-filter-details > summary { display: none; }
.og-filters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 10px;
  min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--og-line); border-radius: 14px;
  background: var(--og-surface); box-sizing: border-box;
}
.og-filter-field { display: grid; gap: 5px; min-width: 0; color: #486052; font-size: 11.5px; font-weight: 750; }
.og-filter-field > span { padding-left: 2px; }
.og-filter-field input, .og-filter-field select, .og-quick-sort select {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #cfdacf; border-radius: 10px;
  background: #fbfdfb; color: var(--og-ink); font: inherit; font-size: 14px; font-weight: 500; box-sizing: border-box; outline: 0;
}
.og-filter-field input:focus, .og-filter-field select:focus, .og-quick-sort select:focus { border-color: var(--og-action); box-shadow: 0 0 0 3px rgba(23, 96, 59, .13); }
.og-f-q { grid-column: span 2; }
.og-filter-actions { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.og-filter-actions button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--og-brand); color: var(--og-accent); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.og-filter-actions button:hover { background: #15412a; }
.og-filter-actions a { font-size: 13px; font-weight: 700; }
.og-active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -2px 0 14px; }
.og-active-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid #c8d8ca; border-radius: 999px; background: #edf4ec; color: #31533f !important; font-size: 12px; font-weight: 700; text-decoration: none; }
.og-active-filters .og-clear-all { border-color: transparent; background: transparent; text-decoration: underline; }

/* ---- listing cards ---- */
.og-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.og-card {
  position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr) 18px; min-width: 0; min-height: 124px;
  overflow: hidden; border: 1px solid var(--og-line); border-radius: 14px; background: var(--og-surface);
  color: var(--og-ink) !important; text-decoration: none; transition: border-color .14s, box-shadow .14s;
}
.og-card.is-official { border-color: #bfd4c2; }
.og-card:hover { border-color: #91ad98; box-shadow: 0 2px 8px rgba(16, 37, 26, .08); }
.og-card-img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; align-self: start; min-width: 0; height: auto; background: #eaf1e8; overflow: hidden; }
.og-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.og-card-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--og-brand); font-size: 42px; opacity: .78; }
.og-card-noimg .ig-svgico, .og-gallery-none .ig-svgico { width: 42px; height: 42px; }
.og-card-noimg-fallback { align-content: center; gap: 8px; padding: 10px 8px; color: #466450; font-size: 10.5px; line-height: 1.3; text-align: center; opacity: 1; overflow-wrap: anywhere; }
.og-media-icon { display: block; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 7px 7px 9px 9px; position: relative; opacity: .72; }
.og-media-icon::before { content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.og-media-icon::after { content: ''; position: absolute; left: 4px; bottom: 4px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: skew(-28deg) rotate(31deg); }
.og-parcel-preview { background: #e5eee2; }
.og-card-img .og-parcel-preview { filter: brightness(.92) contrast(1.06) saturate(.94); }
.og-card-body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 11px 8px 11px 13px; }
.og-card-kicker { display: flex; flex-wrap: wrap; gap: 5px; min-height: 21px; }
.og-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 21px; padding: 0 8px; border-radius: 999px; background: var(--og-brand); color: var(--og-accent); font-size: 10.5px; font-weight: 850; }
.og-badge-type { border: 1px solid #9fbaaa; background: transparent; color: #214d35; }
.og-badge-official { border: 1px solid #bcd9c4; background: #edf7ec; color: #145f35; }
.og-badge-automatic { max-width: 100%; min-height: 24px; border: 1px solid #e5c66d; background: #fff8df; color: #654d08; line-height: 1.25; white-space: normal; }
.og-badge-expired { border: 1px solid #e5b8ae; background: #fff1ed; color: #8d291d; }
.og-card.is-expired { border-color: #d9b8ad; background: #fffdfc; }
.og-card-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 820; line-height: 1.22; overflow-wrap: anywhere; text-wrap: pretty; }
.og-card-parcels { color: #31533f; font-size: 11.5px; font-weight: 760; line-height: 1.3; overflow-wrap: anywhere; }
.og-card-price { color: #126739; font-size: 16px; font-weight: 900; }
.og-card-price.is-missing { max-width: 32ch; font-size: 12.5px; line-height: 1.25; }
.og-card-m2, .og-card-loc, .og-card-area, .og-card-publisher { overflow: hidden; color: var(--og-muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.og-card-publisher { color: var(--og-action); font-weight: 750; }
.og-card-facts { display: flex; min-width: 0; overflow: hidden; color: var(--og-muted); font-size: 12px; line-height: 1.3; white-space: nowrap; }
.og-card-facts span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.og-card-facts span + span::before { content: '·'; margin: 0 6px; color: #8b9c90; }
.og-card-summary { display: flex; min-width: 0; overflow: hidden; color: var(--og-muted); font-size: 12px; line-height: 1.3; white-space: nowrap; }
.og-card-summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.og-card-summary span + span::before { content: '·'; margin: 0 6px; color: #8b9c90; }
.og-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 5px 7px; margin-top: auto; color: var(--og-secondary); font-size: 11px; }
.og-chip { min-width: 0; overflow: hidden; color: #31533f; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.og-card-date { flex: 1 1 125px; color: #4b5f53; font-weight: 750; line-height: 1.25; text-align: right; overflow-wrap: anywhere; }
.og-card.is-expired .og-card-date { color: #8d291d; }
.og-card-arrow { align-self: center; color: #678071; font-size: 25px; font-weight: 400; }

/* ---- empty / pager / note ---- */
.og-empty { padding: 42px 24px; border: 1px solid var(--og-line); border-radius: 16px; background: var(--og-surface); text-align: center; }
.og-empty-emoji { display: grid; place-items: center; margin-bottom: 8px; color: var(--og-brand); }
.og-empty-emoji .ig-svgico { width: 50px; height: 50px; }
.og-inline-icon { display: inline-flex; vertical-align: -.15em; }
.og-inline-icon .ig-svgico { width: 1em; height: 1em; }
.og-empty h1, .og-empty h2 { margin: 0 0 8px; font-size: 22px; }
.og-empty p { max-width: 460px; margin: 0 auto 20px; color: var(--og-muted); }
.og-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 26px 0 4px; font-weight: 700; }
.og-pager a { padding: 10px 18px; border: 1px solid var(--og-line); border-radius: 10px; background: var(--og-surface); text-decoration: none; }
.og-pager span { color: var(--og-muted); font-size: 14px; }
.og-selection-note { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; max-width: 840px; margin: 30px auto 0; padding: 18px 0; border-top: 1px solid #b9cdbd; border-bottom: 1px solid #d4e0d6; color: var(--og-ink); }
.og-selection-note-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e6f1e4; color: var(--og-action); font-size: 25px; font-weight: 800; }
.og-selection-note h2 { margin: 0 0 5px; color: var(--og-brand); font-size: 15px; line-height: 1.3; }
.og-selection-note p { max-width: 72ch; margin: 0; color: #40594a; font-size: 13px; line-height: 1.55; }
.og-selection-note .og-selection-note-boundary { margin-top: 5px; color: #5a6b5f; font-size: 12.5px; }
.og-foot-note { max-width: 760px; margin: 14px auto 0; color: #5a6b5f; font-size: 12.5px; line-height: 1.55; text-align: center; }

/* ---- breadcrumb / banery ---- */
.og-bread { font-size: 13px; color: #536457; margin: 2px 0 14px; }
.og-bread a { text-decoration: none; }
.og-bread a:hover { text-decoration: underline; }
.og-closed-banner, .og-owner-banner {
  border-radius: 13px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.og-closed-banner { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }
.og-owner-banner { background: #e7f5ec; color: #15412a; border: 1px solid #c2e4cf; }

/* ---- strona ogłoszenia ---- */
.og-item { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.og-item-main { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); min-width: 0; }
.og-item-side { position: sticky; top: 86px; }
.og-gallery { width: 100%; overflow: hidden; border-radius: 14px; }
.og-gallery-main { width: 100%; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #0f241808; border-radius: 14px; display: block; }
.og-gallery-main.og-parcel-preview { aspect-ratio: 16 / 9; object-fit: cover; }
.og-parcel-count-chip { background: #e9f3f8; color: #1f5873; border: 1px solid #bdd8e6; }
.og-parcel-gallery { width: 100%; min-width: 0; }
.og-parcel-gallery-frame { position: relative; min-width: 0; }
.og-parcel-gallery-rail { display: flex; width: 100%; max-width: 100%; margin: 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; list-style: none; border-radius: 14px; }
.og-parcel-gallery-rail:focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }
.og-parcel-gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.og-parcel-gallery-slide figure { margin: 0; }
.og-parcel-gallery-slide .og-gallery-main { border-radius: 14px 14px 0 0; }
.og-parcel-gallery-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid #d7e5d8; border-top: 0; border-radius: 0 0 14px 14px; background: #fbfdf9; color: #284235; font-size: 13px; line-height: 1.35; }
.og-parcel-gallery-caption-main { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 3px 8px; min-width: 0; }
.og-parcel-gallery-caption-main span + span::before { content: '·'; margin-right: 8px; color: #768b7b; }
.og-preview-tier { flex: 0 1 auto; display: inline-flex; min-height: 21px; align-items: center; padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.25; text-align: right; }
.og-preview-tier--exact { border-color: #bcd9c4; background: #edf7ec; color: #145f35; }
.og-preview-tier--parent { border-color: #edd394; background: #fff7e6; color: #76520b; }
.og-preview-tier--context { border-color: #bdd8e6; background: #e9f3f8; color: #1f5873; }
.og-preview-tier--document { border-color: #d6d9d7; background: #f2f3f2; color: #45514a; }
.og-parcel-gallery-arrow { position: absolute; z-index: 2; top: calc((100% - 44px) / 2); width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(16,37,26,.84); color: #fff; font: inherit; font-size: 31px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(4,26,14,.28); }
.og-parcel-gallery-arrow:hover:not(:disabled) { background: #17472d; }
.og-parcel-gallery-arrow:disabled { opacity: .48; cursor: default; }
.og-parcel-gallery-prev { left: 10px; }
.og-parcel-gallery-next { right: 10px; }
.og-parcel-gallery-index { display: flex; gap: 7px; margin-top: 10px; padding: 0 1px 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.og-parcel-gallery-index a { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 7px 11px; border: 1px solid #c8d8ca; border-radius: 10px; background: #fff; color: #31533f; font-size: 12px; font-weight: 800; text-decoration: none; }
.og-parcel-gallery-index a:hover, .og-parcel-gallery-index a[aria-current="true"] { border-color: #1f7a3d; background: #edf7ec; color: #145f35; }
.og-parcel-gallery-status { margin: 7px 1px 0; color: #536457; font-size: 12px; font-weight: 700; }
.og-gallery-official-fallback { min-height: 0; padding: 18px; color: #466450; text-align: center; font-size: 13px; overflow: hidden; }
.og-gallery-none {
  display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 1 / 1; width: 100%; box-sizing: border-box; border-radius: 14px;
  background: #eef4ea; font-size: 13px; color: #103221; overflow: hidden; overflow-wrap: anywhere;
}
.og-gallery-none span { font-size: 13px; color: var(--og-secondary); }
.og-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.og-thumb { width: 86px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.og-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-thumb.active { border-color: #1f7a3d; }
.og-item-title { font-size: 24px; margin: 16px 0 4px; line-height: 1.25; overflow-wrap: break-word; }
.og-item-meta { font-size: 12.5px; color: var(--og-secondary); margin: 0 0 14px; }
.og-item-desc { font-size: 15px; line-height: 1.6; white-space: normal; overflow-wrap: break-word; margin-bottom: 18px; }
.og-keyfacts { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #d7e6d8; border-radius: 14px; background: #f4faf1; }
.og-keyfacts h2 { margin: 0 0 9px; color: #17472d; font-size: 15px; }
.og-keyfacts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.og-keyfacts dl > div { min-width: 0; }
.og-keyfacts dt { color: var(--og-secondary); font-size: 11px; font-weight: 750; }
.og-keyfacts dd { margin: 2px 0 0; color: #10251a; font-size: 14px; font-weight: 760; overflow-wrap: anywhere; }
.og-source-detail { margin: 0 0 16px; border-top: 1px solid #e5ece5; padding-top: 10px; }
.og-source-detail summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #17603b; font-size: 13px; font-weight: 750; }
.og-source-detail p { margin: 4px 0 0; color: #536457; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.og-documents ul { margin: 0; padding-left: 18px; }
.og-documents li { margin: 6px 0; color: #536457; font-size: 13px; }
.og-item-details { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.og-item-details th, .og-item-details td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef2ee; vertical-align: top; }
.og-item-details th { width: 140px; color: #536457; font-weight: 600; }
.og-item-report { margin: 6px 0 0; }
.og-link-btn { background: none; border: 0; color: var(--og-action); font-size: 13px; cursor: pointer; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; padding: 4px 0; }
.og-link-btn:hover { color: #b3261e; }

.og-report-box {
  display: flex; align-items: center; gap: 12px; text-decoration: none; margin: 4px 0 16px;
  background: #e8f5eb; border: 1.5px solid #bfe3cc; border-radius: 14px; padding: 14px 16px;
}
.og-report-box:hover { border-color: #1f7a3d; }
.og-report-ico { display: grid; place-items: center; width: 26px; height: 26px; }
.og-report-ico .ig-svgico { width: 26px; height: 26px; }
.og-report-txt { flex: 1; min-width: 0; color: #103221; }
.og-report-txt strong { display: block; font-size: 14.5px; }
.og-report-txt small { color: #536457; font-size: 12.5px; }
.og-report-arrow { font-size: 20px; font-weight: 900; color: #1f7a3d; }

.og-price-box { background: #fff; border-radius: 18px; padding: 20px 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.og-price-val { font-size: 26px; font-weight: 900; color: #15703a; margin-bottom: 12px; }
.og-phone-btn {
  width: 100%; padding: 13px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 800; font-size: 15px;
  background: #103221; color: #a7ff45;
}
.og-phone-btn:hover { background: #15412a; }
.og-wrap .og-source-btn {
  display: block; width: 100%; padding: 13px; border-radius: 13px; box-sizing: border-box;
  background: #103221; color: #a7ff45; font-weight: 800; font-size: 15px; text-align: center;
  text-decoration: none;
}
.og-source-btn:hover { background: #15412a; }
.og-no-phone { font-size: 13px; color: var(--og-secondary); margin: 0; }
/* Dwa działania w kafelku ceny to dwa osobne kafelki. Bez odstępu zlewały się
   w jeden zielony blok (zgłoszenie ownera 2026-09-11). */
.og-source-btn + .og-phone-btn,
.og-source-btn + .og-no-phone { margin-top: 10px; }
.og-safe-note { font-size: 12px; color: var(--og-secondary); line-height: 1.45; margin: 12px 0 0; }

/* Text actions remain distinguishable without colour alone. */
.og-source-detail a, .og-documents a, .og-item-details a { color: var(--og-action); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.og-source-detail a:visited, .og-documents a:visited, .og-item-details a:visited { color: #17472d; }
.og-link-btn:hover, .og-source-detail a:hover, .og-documents a:hover, .og-item-details a:hover { color: #0a4328; text-decoration-thickness: 2px; }
.og-wrap :is(.og-link-btn, .og-source-btn, .og-phone-btn, .og-report-box, .og-source-detail summary, .og-documents a, .og-item-details a):focus-visible {
  outline: 3px solid #17603b;
  outline-offset: 3px;
}
.og-wrap .og-source-btn:visited { color: #d6ff9f; }

/* ---- formularz ---- */
.og-form { max-width: 760px; }
.og-fs { background: #fff; border: 0; border-radius: 16px; padding: 16px 18px 18px; margin: 0 0 14px; box-shadow: 0 5px 16px rgba(0, 0, 0, .06); }
.og-fs legend { font-weight: 800; font-size: 15px; padding: 0 6px; }
.og-fs legend small { color: #8a978d; font-weight: 600; }
.og-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.og-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; margin: 8px 0 2px; }
.og-field > span { font-size: 13px; font-weight: 700; color: #2f5a3e; }
.og-field > span small { color: #8a978d; font-weight: 500; }
.og-field input, .og-field select, .og-field textarea {
  padding: 11px 13px; border: 1.5px solid #d5e0d6; border-radius: 12px; font-size: 15px;
  background: #fbfdfb; color: #103221; outline: none; font-family: inherit; width: 100%; box-sizing: border-box;
}
.og-field input:focus, .og-field select:focus, .og-field textarea:focus { border-color: #1f7a3d; box-shadow: 0 0 0 3px rgba(31, 122, 61, .12); }
.og-check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 10px 0 2px; cursor: pointer; }
.og-check input { width: 18px; height: 18px; accent-color: #1f7a3d; }
.og-terms { align-items: flex-start; line-height: 1.45; }
.og-terms input { margin-top: 2px; flex: 0 0 auto; }
.og-kind-row { display: flex; gap: 10px; }
.og-kind { flex: 1; cursor: pointer; }
.og-kind input { position: absolute; opacity: 0; }
.og-kind span {
  display: block; text-align: center; padding: 14px 10px; border: 2px solid #d5e0d6; border-radius: 14px;
  font-weight: 800; font-size: 15px; line-height: 1.3; transition: border-color .12s, background .12s;
}
.og-kind small { font-weight: 600; color: #8a978d; }
.og-kind input:checked + span { border-color: #1f7a3d; background: #ecf8ef; }
.og-kind input:focus-visible + span { border-color: #1f7a3d; box-shadow: 0 0 0 3px rgba(31, 122, 61, .25); }
.og-parcel-link { margin-top: 10px; background: #ecf8ef; border: 1px solid #bfe3cc; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.og-photos { display: flex; gap: 12px; flex-wrap: wrap; }
.og-photo-slot { position: relative; width: 132px; height: 100px; border-radius: 13px; overflow: hidden; background: #f0f6ee; }
.og-photo-add {
  width: 100%; height: 100%; border: 2px dashed #c4d4c6; border-radius: 13px; background: none;
  cursor: pointer; font-size: 18px; color: #6a7b6e; line-height: 1.3;
}
.og-photo-add:hover { border-color: #1f7a3d; color: #1f7a3d; }
.og-photo-add small { font-size: 12px; }
.og-photo-prev { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-photo-del {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .94); color: #b3261e; font-size: 17px; line-height: 1; cursor: pointer;
}
.og-form-err { background: #fde8e6; color: #93281f; border: 1px solid #f5c6c1; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.og-submit { width: 100%; font-size: 16px; padding: 15px; }
.og-submit:disabled { opacity: .6; transform: none; cursor: default; }
.og-form-note { font-size: 12.5px; color: #8a978d; text-align: center; margin-top: 10px; }
.og-login-gate { max-width: 560px; margin: 0 auto; }

/* ---- moje ogłoszenia ---- */
.og-mine { display: flex; flex-direction: column; gap: 10px; }
.og-mine-row {
  display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 15px; padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06); flex-wrap: wrap;
}
.og-mine-img { width: 84px; height: 64px; border-radius: 10px; object-fit: cover; background: #eef4ea; display: grid; place-items: center; font-size: 28px; flex: 0 0 auto; }
.og-mine-info { flex: 1 1 220px; min-width: 0; }
.og-mine-title { font-weight: 700; font-size: 14.5px; text-decoration: none; color: #103221 !important; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-mine-sub { font-size: 12.5px; color: #8a978d; margin-top: 3px; }
.og-mine-status { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.og-mine-status.st-active { background: #e7f5ec; color: #15703a; }
.og-mine-status.st-closed { background: #f0f0f0; color: #6a6a6a; }
.og-mine-status.st-expired { background: #fff3cd; color: #664d03; }
.og-mine-status.st-blocked { background: #fde8e6; color: #93281f; }
.og-mine-blocked { font-size: 12px; color: #93281f; font-weight: 600; }
.og-mine-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.og-mine-acts button, .og-mine-acts a {
  border: 1px solid #d5e0d6; background: #fbfdfb; color: #2f5a3e; border-radius: 10px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.og-mine-acts button:hover, .og-mine-acts a:hover { border-color: #1f7a3d; }
.og-mine-acts .danger { color: #b3261e; }
.og-mine-acts .danger:hover { border-color: #b3261e; background: #fde8e6; }

/* ---- regulamin ---- */
.og-terms-page { background: #fff; border-radius: 20px; padding: 28px 30px 30px; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); max-width: 820px; line-height: 1.6; }
.og-terms-page h1 { font-size: 24px; margin-top: 0; }
.og-terms-page h2 { font-size: 18px; margin: 24px 0 10px; }
.og-terms-page ol { padding-left: 22px; }
.og-terms-page li { margin-bottom: 8px; font-size: 14.5px; }
.og-terms-date { color: #8a978d; font-size: 13px; }

/* ---- modal zgłoszenia (JS) ---- */
html.og-modal-open, body.og-modal-open { overflow: hidden; overscroll-behavior: none; }
/* The consent banner is already inert and aria-hidden while the report dialog
   is open. Hide that same background layer visually; removing og-modal-open
   restores the banner's exact previous state. */
html.og-modal-open #cookieBanner { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.og-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 14px 14px max(14px, env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.og-modal-bg { position: absolute; inset: 0; background: rgba(8, 22, 14, .55); }
.og-modal-card { position: relative; z-index: 1; width: min(420px, 100%); max-height: calc(100dvh - 28px - env(safe-area-inset-bottom, 0px)); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 26px 70px rgba(7, 31, 18, .4); box-sizing: border-box; }
.og-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.og-modal-card h2 { margin: 7px 0 10px; color: #103221; font-size: 18px; line-height: 1.3; }
.og-modal-close { flex: 0 0 44px; width: 44px; min-height: 44px; margin: -4px -4px 0 0; border: 0; border-radius: 10px; background: #edf4ed; color: #103221; font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.og-modal-close:hover { background: #dcebdd; }
.og-modal-card textarea { width: 100%; box-sizing: border-box; min-height: 90px; padding: 11px 13px; border: 1.5px solid #d5e0d6; border-radius: 12px; font-size: 14px; font-family: inherit; }
.og-modal-description { margin: 0 0 12px; color: #455b4d; font-size: 14px; line-height: 1.45; }
.og-modal-label { display: block; margin: 0 0 6px; color: #103221; font-size: 14px; font-weight: 800; }
.og-modal-acts { display: flex; gap: 10px; margin-top: 12px; }
.og-modal-acts button { flex: 1; min-height: 44px; padding: 11px; border: 0; border-radius: 11px; font-weight: 800; cursor: pointer; }
.og-modal-send { background: #103221; color: #a7ff45; }
.og-modal-send:hover:not(:disabled) { background: #15412a; }
.og-modal-send:disabled { cursor: progress; opacity: .75; }
.og-modal-cancel { background: #f0f4ef; color: #3a4a40; }
.og-modal-cancel:hover { background: #e2ece2; }
.og-modal-card :is(textarea, button):focus-visible { outline: 3px solid #17603b; outline-offset: 3px; }
.og-modal-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.og-modal-ok { color: #15703a; font-weight: 700; }
.og-modal-error { color: #9e251d; font-weight: 700; }

/* ---- mobile ---- */
@media (max-width: 980px) {
  .og-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .og-wrap { padding: 22px 14px calc(84px + env(safe-area-inset-bottom, 0px)); }
  .og-item { grid-template-columns: 1fr; }
  .og-item-side { position: static; }
  .og-hero-txt h1 { font-size: 24px; }
  .og-grid { grid-template-columns: 1fr; gap: 9px; }
  .og-card { grid-template-columns: 110px minmax(0, 1fr) 16px; min-height: 110px; }
  .og-card-title { font-size: 14.5px; }
  .og-card-price { font-size: 15.5px; }
  .og-gallery-main { max-height: none; }
  .og-item-title { font-size: 20px; }
  .og-terms-page { padding: 20px 18px; }
}
.og-filter-details:not([open]) > .og-filters { display: grid; }
@media (max-width: 700px) {
  .og-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 14px; }
  .og-hero-txt h1 { font-size: 23px; }
  .og-hero-txt p { font-size: 13px; line-height: 1.42; }
  .og-add-btn { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .og-tabs { display: grid; width: 100%; box-sizing: border-box; }
  .og-tab { min-width: 0; min-height: 44px; padding: 10px 12px; box-sizing: border-box; }
  .og-location-search {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
    margin: 0 0 12px; padding: 7px; border: 1px solid var(--og-line); border-radius: 12px; background: var(--og-surface);
  }
  .og-location-search label { display: inline-flex; align-items: center; gap: 4px; padding-left: 5px; color: #385044; font-size: 12px; font-weight: 800; }
  .og-location-search label span { color: var(--og-action); font-size: 18px; line-height: 1; }
  .og-location-search input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #cfdacf; border-radius: 9px; background: #fbfdfb; color: var(--og-ink); font: inherit; font-size: 13px; box-sizing: border-box; outline: 0; }
  .og-location-search input:focus { border-color: var(--og-action); box-shadow: 0 0 0 3px rgba(23, 96, 59, .13); }
  .og-location-search button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--og-brand); color: var(--og-accent); font: inherit; font-size: 12.5px; font-weight: 850; cursor: pointer; }
  .og-category-rail { flex-wrap: nowrap; margin-right: -14px; margin-left: -14px; padding: 0 14px 5px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .og-category-rail::-webkit-scrollbar { display: none; }
  .og-category-rail a { flex: 0 0 auto; min-height: 44px; }
  .og-active-filters a { min-height: 44px; }
  .og-results-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .og-count { grid-column: 1 / -1; }
  .og-quick-sort { display: block; grid-column: 2; grid-row: 2; min-width: 0; }
  .og-quick-sort label { display: block; }
  .og-quick-sort label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .og-quick-sort select { padding-right: 24px; background: var(--og-surface); font-size: 12px; font-weight: 750; }
  .og-filter-details { grid-column: 1; grid-row: 2; }
  .og-filter-details > summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 12px; border: 1px solid #cfdacf; border-radius: 10px; background: var(--og-surface); color: var(--og-brand); font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; box-sizing: border-box; }
  .og-filter-details > summary::-webkit-details-marker { display: none; }
  .og-filter-details:not([open]) > .og-filters { display: none; }
  .og-filter-details[open] > .og-filters { width: calc(200% + 8px); }
  .og-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 8px; padding: 12px; }
  .og-f-q { grid-column: 1 / -1; }
  .og-f-wide-mobile { grid-column: 1 / -1; }
  .og-f-sort { display: none; }
  .og-filter-actions { grid-column: 1 / -1; }
  .og-filter-actions button { flex: 1 1 auto; }
  .og-active-filters { flex-wrap: nowrap; margin-right: -14px; margin-left: -14px; padding: 0 14px 4px; overflow-x: auto; scrollbar-width: none; }
  .og-active-filters::-webkit-scrollbar { display: none; }
  .og-active-filters a { flex: 0 0 auto; }
  .og-card { grid-template-columns: 104px minmax(0, 1fr) 14px; min-height: 104px; }
  .og-card-body { gap: 5px; padding: 9px 6px 9px 11px; }
  .og-card-kicker { min-height: 20px; }
  .og-badge { min-height: 20px; padding: 0 7px; font-size: 10px; }
  .og-card-title { min-height: 0; }
  .og-card-meta { margin-top: 4px; }
  .og-selection-note { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; margin-top: 24px; padding: 16px 0; }
  .og-selection-note-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 21px; }
  .og-foot-note { margin-top: 22px; text-align: left; }
  .og-parcel-gallery-caption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 10px; }
  .og-preview-tier { justify-self: start; text-align: left; }
  .og-parcel-gallery-arrow { top: calc((100% - 44px) / 2); }
}
@media (max-width: 350px) {
  .og-parcel-gallery-caption { font-size: 12px; }
  .og-parcel-gallery-caption-main { display: block; }
  .og-parcel-gallery-caption-main span { display: block; margin-top: 2px; }
  .og-parcel-gallery-caption-main span + span::before { content: none; margin: 0; }
  .og-parcel-gallery-prev { left: 6px; }
  .og-parcel-gallery-next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .og-parcel-gallery-rail { scroll-behavior: auto; }
}
@media (max-width: 350px) {
  .og-wrap { padding-right: 10px; padding-left: 10px; }
  .og-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .og-hero-txt h1 { font-size: 21px; }
  .og-hero-txt p { font-size: 12.5px; }
  .og-add-btn { padding: 0 9px; }
  .og-location-search { grid-template-columns: auto minmax(0, 1fr); }
  .og-location-search button { grid-column: 1 / -1; min-height: 44px; }
  .og-category-rail, .og-active-filters { margin-right: -10px; margin-left: -10px; padding-right: 10px; padding-left: 10px; }
  .og-card { grid-template-columns: 96px minmax(0, 1fr) 12px; min-height: 96px; }
  .og-card-body { padding-left: 9px; }
  .og-keyfacts dl { grid-template-columns: 1fr; }
  .og-item-main { padding: 12px; }
}

/* Pozycje oferty: jedna działka, kilka osobno wycenionych części (2026-09-12) */
.og-count-history { color: var(--og-secondary); font-weight: 600; white-space: nowrap; }
.og-lots { margin: 0 0 18px; }
.og-lots h2 { margin: 0 0 6px; color: #17472d; font-size: 15px; }
.og-lots-note { margin: 0 0 10px; color: var(--og-secondary); font-size: 12.5px; line-height: 1.5; }
.og-tablewrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.og-tablewrap:focus-visible { outline: 3px solid rgba(23, 109, 170, .72); outline-offset: 3px; }
.og-lots-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.og-lots-table th, .og-lots-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e4ebe5; }
.og-lots-table th { color: var(--og-secondary); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.og-lots-table td:first-child { color: #10251a; font-weight: 700; }
.og-lots-table td:last-child { white-space: nowrap; }
@media (max-width: 620px) {
  .og-lots-table { min-width: 420px; }
}
