:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #f0f3ef;
  --main: #14231d;
  --muted: #68766f;
  --accent: #0c7a5c;
  --accent-dark: #075f47;
  --accent-soft: #d7eee7;
  --accent-pale: #edf8f4;
  --border: #dce4df;
  --danger: #b93838;
  --danger-soft: #fdeaea;
  --warning: #a3620a;
  --warning-soft: #fff4dc;
  --shadow-sm: 0 8px 24px rgba(22, 41, 33, .07);
  --shadow-md: 0 18px 50px rgba(22, 41, 33, .10);
  --shadow-lg: 0 30px 90px rgba(20, 35, 29, .16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1280px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  color: var(--main);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
svg:not(.leaflet-zoom-animated) { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -.025em; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; transform: translateY(-140%); padding: 10px 14px; background: var(--main); color: white; border-radius: 10px; }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mobile-only { display: none!important; }
.row-between { display:flex; align-items:center; justify-content:space-between; gap:20px; }

/* Header */
.site-header { height: var(--header-h); background: rgba(255,255,255,.93); border-bottom: 1px solid rgba(220,228,223,.85); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px); }
.nav-wrap { height:100%; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:inline-flex; align-items:center; gap:10px; font-size:1.36rem; font-weight:800; letter-spacing:-.045em; }
.brand img {
  transform:translateY(0);
  transform-origin:center;
  transition:transform .22s cubic-bezier(.2,.7,.2,1), filter .22s ease;
}
.brand:hover img,
.brand:focus-visible img {
  transform:translateY(-2px);
  filter:drop-shadow(0 4px 6px rgba(20,35,29,.09));
}
.brand:active img {
  transform:translateY(-1px);
  filter:drop-shadow(0 2px 4px rgba(20,35,29,.06));
}
.brand > span:last-child > span { color:var(--accent); }
.brand small { font-size:.66em; color:var(--muted); font-weight:700; }
.brand-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:var(--accent); color:white; box-shadow: 0 7px 18px rgba(12,122,92,.25); }
.brand-mark svg { width:22px; height:22px; fill:currentColor; stroke:none; }
.main-nav { display:flex; align-items:center; gap:24px; font-size:.93rem; font-weight:650; }
.main-nav > a:not(.btn), .nav-ghost { color:#34463e; transition:.18s ease; }
.main-nav > a:not(.btn):hover, .nav-ghost:hover { color:var(--accent); }
.admin-link { color:#8b4a00!important; }
.nav-form { margin:0; }
.nav-ghost { border:0; background:none; padding:0; font-weight:650; }
.nav-message { display:flex; align-items:center; gap:6px; }
.count-badge { min-width:20px; height:20px; display:inline-grid; place-items:center; padding:0 6px; background:var(--accent); color:#fff; border-radius:999px; font-size:.7rem; font-weight:800; }
.mobile-menu-button { display:none; border:0; background:none; padding:8px; }
.mobile-menu-button span:not(.sr-only) { display:block; width:24px; height:2px; background:var(--main); margin:5px 0; border-radius:2px; }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 17px; border:1px solid transparent; border-radius:12px; font-weight:750; font-size:.92rem; line-height:1.15; transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:none; }
.btn-primary { color:white; background:var(--accent); box-shadow:0 8px 20px rgba(12,122,92,.20); }
.btn-primary:hover { background:var(--accent-dark); box-shadow:0 11px 24px rgba(12,122,92,.25); }
.btn-secondary { background:var(--surface); border-color:var(--border); color:var(--main); box-shadow:0 4px 14px rgba(20,35,29,.04); }
.btn-secondary:hover { border-color:#bfcfc6; background:#fbfcfb; }
.btn-ghost { background:transparent; border-color:transparent; color:var(--muted); }
.btn-danger { background:var(--danger-soft); color:var(--danger); border-color:#f6cccc; }
.btn-large { min-height:50px; padding:13px 22px; border-radius:14px; font-size:.98rem; }
.btn-small { min-height:34px; padding:7px 10px; border-radius:9px; font-size:.78rem; }
.btn-block { width:100%; }
.btn-nav { padding-inline:16px; }
.text-link { color:var(--accent); font-weight:750; display:inline-flex; align-items:center; gap:7px; }
.text-link:hover { color:var(--accent-dark); }
.icon-button { width:38px; height:38px; border:1px solid var(--border); background:white; color:var(--main); border-radius:11px; display:grid; place-items:center; }

/* flash */
.flash-stack { position:fixed; top:calc(var(--header-h) + 14px); right:18px; z-index:300; width:min(420px, calc(100% - 36px)); display:grid; gap:9px; }
.flash {
  --flash-duration: 5500ms;
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  overflow:hidden;
  padding:13px 15px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:white;
  box-shadow:var(--shadow-md);
  font-size:.9rem;
  opacity:1;
  transform:translateY(0);
  transition:opacity .2s ease, transform .2s ease;
}
.flash::after {
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:3px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left center;
  animation:flash-progress var(--flash-duration) linear forwards;
}
.flash-error::after {
  background:var(--danger);
}
.flash-warning::after {
  background:var(--warning);
}
.flash:hover::after,
.flash:focus-within::after {
  animation-play-state:paused;
}
.flash.is-leaving {
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
}
@keyframes flash-progress {
  from { transform:scaleX(1); }
  to { transform:scaleX(0); }
}
.flash-success { border-color:#b9decf; background:#f2fbf7; }
.flash-error { border-color:#f1c5c5; background:#fff7f7; color:#7d2929; }
.flash-warning { border-color:#ecd5a5; background:#fffaf0; color:#805411; }
.flash-info { background:#f5f8fb; }
.flash-close { border:0; background:none; color:inherit; opacity:.55; font-size:1.2rem; line-height:1; padding:0; }

/* Common form */
.field { display:grid; gap:7px; min-width:0; }
.field > span, .account-type legend { color:#405149; font-size:.84rem; font-weight:700; }
.field small, .field-hint { font-size:.75rem; color:var(--muted); font-weight:500; }
input, select, textarea { width:100%; border:1px solid var(--border); background:#fff; color:var(--main); border-radius:11px; padding:11px 12px; outline:0; transition:border-color .15s ease, box-shadow .15s ease, background .15s ease; }
input, select { min-height:44px; }
textarea { resize:vertical; }
input:focus, select:focus, textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(12,122,92,.11); }
input::placeholder, textarea::placeholder { color:#9aa59f; }
.form-grid { display:grid; gap:14px; }
.form-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.form-grid.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.form-stack { display:grid; gap:16px; }
.check-row { display:flex; align-items:flex-start; gap:10px; color:#4d5c55; font-size:.85rem; }
.check-row input { width:18px; height:18px; min-height:18px; margin-top:2px; accent-color:var(--accent); }
.check-row a { color:var(--accent); text-decoration:underline; }
.check-row.compact { align-items:center; font-size:.8rem; }
.check-row.compact input { margin-top:0; }
.check-row span small { display:block; margin-top:2px; color:var(--muted); }
.inline-form { display:flex; gap:10px; }
.inline-form input { flex:1; }

/* hero */
.hero-home { min-height:clamp(560px,58vh,620px); position:relative; z-index:10; overflow:visible; display:flex; align-items:center; color:white; }
.hero-home__image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; display:block; pointer-events:none; transform:none; }
.hero-home__overlay { position:absolute; inset:0; background:linear-gradient(90deg, rgba(9,28,21,.84) 0%, rgba(9,28,21,.58) 42%, rgba(9,28,21,.25) 70%, rgba(9,28,21,.12) 100%), linear-gradient(0deg, rgba(8,22,17,.22), rgba(8,22,17,.02)); }
.hero-home__grid { position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1fr) minmax(580px,620px); gap:44px; align-items:center; padding-top:38px; padding-bottom:38px; }
.hero-copy { max-width:720px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--accent); font-size:.74rem; line-height:1; text-transform:uppercase; letter-spacing:.15em; font-weight:850; }
.eyebrow > span { width:18px; height:2px; background:currentColor; border-radius:2px; }
.eyebrow-light { color:#d8f5eb; }
.hero-copy h1 { font-size:clamp(3rem,4.7vw,4.95rem); line-height:.98; margin:14px 0 18px; max-width:760px; }
.hero-copy h1 em { font-style:normal; color:#bfe9dc; }
.hero-copy > p { max-width:650px; font-size:1.1rem; line-height:1.7; color:rgba(255,255,255,.86); }
.hero-trust { display:flex; gap:30px; margin-top:26px; padding-top:20px; border-top:1px solid rgba(255,255,255,.24); }
.hero-trust div { display:grid; gap:1px; }
.hero-trust strong { font-size:1.28rem; }
.hero-trust span { color:rgba(255,255,255,.72); font-size:.76rem; }
.glass-card { background:rgba(255,255,255,.93); color:var(--main); border:1px solid rgba(255,255,255,.68); box-shadow:0 28px 80px rgba(8,25,18,.25); backdrop-filter:blur(14px); }
.search-card { border-radius:26px; padding:30px; width:100%; }
.search-card__heading { margin-bottom:18px; }
.search-card__heading h2 { font-size:1.9rem; margin:8px 0 0; }
.home-search { display:grid; gap:15px; }
.segmented { display:grid; grid-template-columns:1fr 1fr; padding:4px; background:#eef2ef; border-radius:12px; }
.segmented__button { border:0; min-height:40px; background:transparent; color:var(--muted); border-radius:9px; font-weight:750; }
.segmented__button.is-active { background:white; color:var(--accent-dark); box-shadow:0 3px 12px rgba(20,35,29,.08); }
.search-card .field > span { font-size:.75rem; }
.home-search > .location-picker--inline { grid-template-columns:minmax(0,4fr) minmax(118px,1fr); gap:12px; align-items:stretch; }
.home-search > .location-picker--inline .location-picker__main { min-width:0; }
.home-search > .location-picker--inline .location-radius { min-width:0; }
.home-search > .location-picker--inline .location-radius select { font-size:.78rem; padding:0 24px 0 9px; }
.home-search__details { display:grid; grid-template-columns:1.25fr 1fr 1fr .95fr; gap:12px; }
.search-card__note { margin:0; color:var(--muted); text-align:center; font-size:.72rem; }

/* Sections and listing cards */
.section { padding:82px 0; }
.section-soft { background:#edf1ed; border-block:1px solid #e1e8e3; }
.section-heading { margin-bottom:30px; }
.section-heading h2 { font-size:clamp(2rem,3vw,3rem); line-height:1.08; margin:10px 0 8px; }
.section-heading p { color:var(--muted); margin:0; }
.section-heading.centered { text-align:center; max-width:760px; margin-inline:auto; margin-bottom:38px; }
.listing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.listing-card { background:var(--surface); border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow:0 2px 5px rgba(20,35,29,.025), 0 10px 22px -12px rgba(20,35,29,.18); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.listing-card:hover { transform:translateY(-3px); border-color:#cad8d0; box-shadow:0 3px 7px rgba(20,35,29,.03), 0 12px 26px -12px rgba(20,35,29,.20); }
.listing-card__media { height:210px; position:relative; display:block; overflow:hidden; background:#e6ece7; }
.listing-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.listing-card:hover .listing-card__media img { transform:scale(1.025); }
.listing-card__placeholder { height:100%; display:grid; place-items:center; color:#91a198; }
.listing-card__placeholder svg { width:54px; height:54px; fill:currentColor; stroke:none; opacity:.48; }
.listing-card__badge { position:absolute; left:12px; top:12px; background:rgba(255,255,255,.94); color:var(--accent-dark); border-radius:999px; padding:6px 10px; font-size:.69rem; font-weight:850; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.listing-card__body { padding:15px; }
.listing-card__topline { display:flex; align-items:center; justify-content:space-between; min-height:30px; }
.listing-card__type { margin:0; text-transform:uppercase; color:var(--accent); font-size:.67rem; font-weight:850; letter-spacing:.1em; }
.favorite-form { margin:0; }
.listing-card__title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:1.02rem; line-height:1.28; font-weight:790; min-height:2.6em; margin-top:4px; }
.listing-card__title:hover { color:var(--accent); }
.listing-card__location { margin:7px 0 9px; color:var(--muted); font-size:.8rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.listing-card__meta { display:flex; gap:10px; flex-wrap:wrap; color:#4a5a52; font-size:.78rem; }
.listing-card__meta span + span::before { content:'•'; color:#a3ada8; margin-right:10px; }
.listing-card__price-row { display:flex; justify-content:space-between; align-items:end; gap:10px; margin-top:14px; padding-top:13px; border-top:1px solid #edf0ee; }
.listing-card__price-row strong { font-size:1.12rem; }
.listing-card__price-row strong small { font-size:.66rem; font-weight:650; color:var(--muted); }
.listing-card__price-row > span { font-size:.7rem; color:var(--muted); }
.empty-state { text-align:center; padding:60px 25px; border:1px dashed #c8d4cd; background:rgba(255,255,255,.65); border-radius:22px; }
.empty-state h2,.empty-state h3 { margin-bottom:8px; }
.empty-state p { color:var(--muted); max-width:560px; margin:0 auto 20px; }


/* Home categories */
.home-categories {
  padding: 18px 0 70px;
  background: var(--bg);
}
.home-section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}
.home-section-heading__copy {
  min-width:0;
}
.home-section-heading h2 {
  margin:8px 0 0;
  font-size:clamp(1.9rem,2.7vw,2.5rem);
  line-height:1.08;
}
.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.home-category-card {
  min-width: 0;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 14px 19px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(20,35,29,.035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.home-category-card:hover {
  transform: translateY(-3px);
  border-color: #c4d4cc;
  box-shadow: var(--shadow-sm);
}
.home-category-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 17px;
  background: var(--accent-pale);
  color: var(--accent);
}
.home-category-card__icon svg {
  width: 32px!important;
  height: 32px!important;
  stroke-width: 1.65;
}
.home-category-card strong {
  max-width: 180px;
  font-size: .95rem;
  line-height: 1.25;
}
.home-category-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.3;
}
.home-category-card--house .home-category-card__icon {
  color: #18855f;
  background: #e8f6f0;
}
.home-category-card--plot .home-category-card__icon {
  color: #5f8a35;
  background: #f0f6e9;
}
.home-category-card--commercial .home-category-card__icon {
  color: #187f7a;
  background: #e8f5f4;
}
.home-category-card--all {
  border-style: dashed;
  background: #f8fbf9;
}
.home-category-card--all .home-category-card__icon {
  color: var(--main);
  background: #e9efeb;
}
.home-category-card--all:hover {
  background: var(--accent-pale);
  border-color: #a9cec1;
}

/* Home — szybkie wyszukiwania */
.home-quick-searches {
  padding:18px 0 64px;
  background:var(--bg);
}
.home-quick-searches__head {
  margin-bottom:26px;
}
.home-quick-searches__columns {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
}
.home-quick-searches__group {
  min-width:0;
  padding:0 34px;
}
.home-quick-searches__group:first-child {
  padding-left:0;
}
.home-quick-searches__group:last-child {
  padding-right:0;
}
.home-quick-searches__group + .home-quick-searches__group {
  border-left:1px solid #dfe6e2;
}
.home-quick-searches__group h3 {
  margin:0 0 14px;
  padding-bottom:12px;
  border-bottom:1px solid #e7ece9;
  color:var(--main);
  font-size:.92rem;
  line-height:1.3;
}
.home-quick-searches__links {
  display:grid;
  gap:0;
}
.home-quick-searches__links a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:38px;
  padding:7px 0;
  color:#415248;
  font-size:.82rem;
  font-weight:650;
  line-height:1.35;
  border-bottom:1px solid transparent;
  transition:color .15s ease, padding-left .15s ease;
}
.home-quick-searches__links a > span:last-child {
  flex:0 0 auto;
  color:#8a9991;
  font-size:.95rem;
  transition:transform .15s ease, color .15s ease;
}
.home-quick-searches__links a:hover {
  padding-left:3px;
  color:var(--accent-dark);
}
.home-quick-searches__links a:hover > span:last-child {
  transform:translateX(3px);
  color:var(--accent);
}

.value-grid { display:grid; grid-template-columns:.82fr 1.18fr; gap:70px; align-items:start; }
.value-intro { position:sticky; top:110px; }
.value-intro h2 { font-size:clamp(2.2rem,3.5vw,3.8rem); line-height:1.04; margin:14px 0 18px; }
.value-intro p { color:var(--muted); font-size:1.05rem; line-height:1.75; margin-bottom:26px; }
.value-cards { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.feature-card { padding:24px; border:1px solid #d8e1dc; background:rgba(255,255,255,.7); border-radius:20px; }
.feature-icon { width:46px; height:46px; display:grid; place-items:center; background:var(--accent-pale); color:var(--accent); border-radius:13px; margin-bottom:25px; }
.feature-icon svg { width:23px; height:23px; }
.feature-card h3 { font-size:1.16rem; margin-bottom:8px; }
.feature-card p { color:var(--muted); font-size:.88rem; line-height:1.65; margin:0; }
/* Home — pasek bezpieczeństwa */
.home-safety-strip {
  padding:28px 0 30px;
  background:var(--bg);
}
.home-safety-strip__inner {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:86px;
  padding:18px 22px;
  border:1px solid #d7e7e1;
  border-radius:18px;
  background:linear-gradient(105deg,#edf8f4 0%,#f7fbf9 58%,#eef7f4 100%);
}
.home-safety-strip__icon {
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  color:var(--accent);
  box-shadow:0 5px 18px rgba(20,35,29,.06);
}
.home-safety-strip__icon svg {
  width:25px!important;
  height:25px!important;
  stroke-width:1.8;
}
.home-safety-strip__copy {
  min-width:0;
}
.home-safety-strip__copy h2 {
  margin:0 0 4px;
  font-size:.96rem;
  line-height:1.3;
}
.home-safety-strip__copy p {
  margin:0;
  max-width:820px;
  color:#53655c;
  font-size:.78rem;
  line-height:1.55;
}
.home-safety-strip__link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent-dark);
  font-size:.78rem;
  font-weight:800;
  white-space:nowrap;
}
.home-safety-strip__link svg {
  width:17px!important;
  height:17px!important;
  transition:transform .15s ease;
}
.home-safety-strip__link:hover svg {
  transform:translateX(3px);
}

/* Safety page */
.safety-page__lead {
  max-width:720px;
  margin:-8px 0 32px;
  color:#4f5f57;
  font-size:1.05rem;
  line-height:1.75;
}
.safety-tips {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:30px 0 38px;
}
.safety-tip {
  padding:22px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
}
.safety-tip > span {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  margin-bottom:15px;
  border-radius:11px;
  background:var(--accent-pale);
  color:var(--accent);
  font-size:.72rem;
  font-weight:900;
}
.safety-tip h2 {
  margin:0 0 7px!important;
  font-size:1.02rem!important;
}
.safety-tip p {
  margin:0;
  font-size:.86rem;
  line-height:1.65;
}
.safety-page__report {
  padding:24px;
  border-radius:18px;
  background:#15241e;
  color:#fff;
}
.safety-page__report h2 {
  margin:0 0 7px!important;
  color:#fff;
}
.safety-page__report p {
  margin:0 0 16px;
  color:#dbe5e0;
}
.safety-page__report .btn {
  width:auto;
}

/* Home — końcowy pas publikacji */
.home-sell-strip {
  position:relative;
  overflow:hidden;
  background:linear-gradient(105deg,#08271f 0%,#07382d 56%,#075641 100%);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.06);
}
.home-sell-strip::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 46% 0%,rgba(56,220,164,.12),transparent 34%);
}
.home-sell-strip__grid {
  position:relative;
  min-height:142px;
  display:grid;
  grid-template-columns:minmax(300px,1.05fr) minmax(230px,.72fr) 68px minmax(500px,1.55fr);
  align-items:center;
  gap:28px;
  padding-top:24px;
  padding-bottom:24px;
}
.home-sell-strip__copy h2 {
  margin:0 0 3px;
  font-size:1.52rem;
  line-height:1.2;
  letter-spacing:-.025em;
}
.home-sell-strip__copy p {
  margin:0;
  color:rgba(255,255,255,.88);
  font-size:1.05rem;
}
.home-sell-strip__copy strong { color:#66e6b7; }
.home-sell-strip__action {
  display:grid;
  justify-items:center;
  gap:6px;
}
.home-sell-strip__button {
  width:100%;
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:10px;
  background:#39d39b;
  color:#082c22;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
  font-size:.85rem;
  line-height:1.1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.025em;
  transition:background .16s ease,transform .16s ease,box-shadow .16s ease;
}
.home-sell-strip__button:hover {
  background:#57dfae;
  transform:translateY(-1px);
  box-shadow:0 13px 28px rgba(0,0,0,.22);
}
.home-sell-strip__action small {
  color:rgba(255,255,255,.68);
  font-size:.65rem;
}
.home-sell-strip__arrow {
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.76);
}
.home-sell-strip__arrow svg {
  width:68px!important;
  height:46px!important;
  stroke-width:1.6;
}
.home-sell-strip__benefits {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.home-sell-strip__benefit {
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.home-sell-strip__benefit > span {
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  color:#d8f5eb;
}
.home-sell-strip__benefit > span svg {
  width:31px!important;
  height:31px!important;
  stroke-width:1.55;
}
.home-sell-strip__benefit > div { display:grid; gap:1px; min-width:0; }
.home-sell-strip__benefit strong {
  color:#fff;
  font-size:.73rem;
  line-height:1.25;
}
.home-sell-strip__benefit small {
  color:rgba(255,255,255,.65);
  font-size:.62rem;
  line-height:1.25;
}

/* Search page — wspólne elementy; layout filtrów jest w search-page.css */
.search-page { padding:48px 0 80px; }
.search-topbar { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.search-topbar h1 { font-size:2.65rem; margin:8px 0 3px; }
.search-topbar p { margin:0; color:var(--muted); }
.field.compact { gap:5px; }
.field.compact > span { font-size:.7rem; }
.field.compact input, .field.compact select { min-height:39px; padding:8px 9px; }
.results-toolbar { min-height:46px; display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-bottom:16px; position:relative; }
.sort-form label { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.78rem; }
.sort-form select { width:auto; min-height:39px; padding:7px 30px 7px 10px; }
.save-search { position:relative; margin-right:auto; }
.save-search summary { list-style:none; cursor:pointer; }
.save-search summary::-webkit-details-marker { display:none; }
.save-search > form { position:absolute; top:48px; left:0; z-index:20; width:310px; padding:15px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow-md); border-radius:14px; display:grid; gap:12px; }
.query-chip { display:inline-block; background:#eef3f0; border-radius:999px; padding:4px 8px; margin:2px; font-size:.72rem; color:#526159; }
.pagination { margin-top:30px; display:flex; align-items:center; justify-content:center; gap:14px; }
.page-link { background:#fff; border:1px solid var(--border); border-radius:10px; padding:9px 13px; font-weight:700; font-size:.82rem; }
.page-status { color:var(--muted); font-size:.8rem; }

/* Auth */
.auth-shell { min-height:calc(100vh - var(--header-h)); display:grid; grid-template-columns:minmax(420px,1fr) minmax(520px,.92fr); background:white; }
.auth-visual { position:relative; min-height:820px; overflow:hidden; }
.auth-visual__image { position:absolute; inset:0; background:url('../img/hero-penthouse.webp') center/cover; }
.auth-visual__overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(5,28,20,.25),rgba(5,28,20,.80)); }
.auth-visual__copy { position:absolute; left:max(35px,7vw); right:50px; bottom:70px; z-index:2; color:white; max-width:620px; }
.auth-visual__copy h1 { font-size:clamp(2.3rem,4vw,4.2rem); line-height:1.02; margin:15px 0 18px; }
.auth-visual__copy p { color:rgba(255,255,255,.82); font-size:1rem; }
.auth-visual__copy ul { list-style:none; padding:0; margin:25px 0 0; display:grid; gap:10px; color:rgba(255,255,255,.9); }
.auth-visual__copy li::before { content:'✓'; color:#bfe9dc; font-weight:900; margin-right:10px; }
.auth-panel { display:grid; place-items:center; padding:55px 50px; }
.auth-card { width:min(100%,560px); }
.auth-heading { margin-bottom:28px; }
.auth-heading h2 { font-size:2rem; margin:27px 0 7px; }
.auth-heading p { color:var(--muted); margin:0; }
.auth-brand { width:max-content; }
.account-type { border:0; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.account-type legend { margin-bottom:7px; }
.account-type label { position:relative; }
.account-type input { position:absolute; opacity:0; pointer-events:none; }
.account-type label > span { display:block; min-height:88px; padding:12px; border:1px solid var(--border); border-radius:11px; font-size:.78rem; font-weight:800; }
.account-type label small { display:block; color:var(--muted); font-weight:500; margin-top:4px; line-height:1.35; }
.account-type input:checked + span { border-color:var(--accent); background:var(--accent-pale); box-shadow:0 0 0 2px rgba(12,122,92,.07); }
.password-input { position:relative; }
.password-input input { padding-right:66px; }
.password-input button { position:absolute; right:8px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:var(--accent); font-size:.75rem; font-weight:800; padding:8px; }
.password-strength { display:flex; align-items:center; gap:10px; margin-top:2px; }
.password-strength__track { height:5px; flex:1; background:#e6ece8; border-radius:999px; overflow:hidden; }
.password-strength__track span { display:block; width:0; height:100%; background:#b13c3c; border-radius:999px; transition:.2s; }
.password-strength > span { min-width:78px; text-align:right; font-size:.68rem; color:var(--muted); }
.password-rules { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; padding:0; margin:2px 0 0; list-style:none; color:var(--muted); font-size:.72rem; }
.password-rules li::before { content:'○'; margin-right:6px; }
.password-rules li.ok { color:var(--accent); }
.password-rules li.ok::before { content:'✓'; }
.form-options { font-size:.78rem; }
.form-options > a { color:var(--accent); font-weight:700; }
.auth-switch { margin:22px 0 0; text-align:center; color:var(--muted); font-size:.86rem; }
.auth-switch a { color:var(--accent); font-weight:800; }
.auth-shell--compact .auth-visual { min-height:660px; }
.auth-oauth {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: #fff;
  border: 1px solid #d8dfdb;
  color: #303330;
  font-weight: 600;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, .05),
    0 2px 5px rgba(0, 0, 0, .04);
}

.btn-google:hover {
  background: #f8faf9;
  border-color: #c5d0ca;
  transform: translateY(-1px);
}

.btn-google:active {
  transform: translateY(0);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke: none;
}
.auth-divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:.72rem; }
.auth-divider::before,.auth-divider::after { content:''; height:1px; background:#e5eae7; flex:1; }
.auth-divider span { white-space:nowrap; }
.google-account-preview { display:flex; align-items:center; gap:11px; padding:13px 14px; margin:-4px 0 20px; border:1px solid #dfe6e2; border-radius:12px; background:#f8faf9; }
.google-account-preview div { display:grid; min-width:0; gap:1px; }
.google-account-preview small { color:var(--muted); font-size:.68rem; }
.google-account-preview strong { overflow:hidden; text-overflow:ellipsis; font-size:.84rem; }
.oauth-verification-note { margin:0; padding:11px 13px; border:1px solid #dce8e3; border-radius:11px; background:#f5faf8; color:#4c6259; font-size:.76rem; line-height:1.45; }

/* simple/legal/contact */
.simple-page, .legal-page, .error-page { padding:70px 0 90px; min-height:60vh; }
.simple-card { background:#fff; border:1px solid var(--border); border-radius:22px; padding:34px; box-shadow:var(--shadow-sm); }
.simple-card h1 { font-size:2.2rem; margin:10px 0 12px; }
.simple-card > p { color:var(--muted); }
.centered-card { text-align:center; }
.centered-inline { margin:25px auto 18px; max-width:520px; }
.big-icon { width:58px; height:58px; border-radius:17px; background:var(--accent-pale); color:var(--accent); display:grid; place-items:center; margin:0 auto 18px; }
.big-icon svg { width:28px; height:28px; }
.contact-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; align-items:start; }
.contact-intro h1 { font-size:3.4rem; margin:12px 0 15px; }
.contact-intro > p { color:var(--muted); font-size:1.03rem; line-height:1.75; }
.contact-points { display:grid; gap:20px; margin-top:35px; }
.contact-points div { display:grid; gap:4px; padding-left:16px; border-left:3px solid var(--accent-soft); }
.contact-points span { color:var(--muted); font-size:.84rem; }
.legal-container { max-width:880px; }
.legal-container h1 { font-size:3rem; margin:12px 0 25px; }
.legal-container h2 { margin-top:34px; font-size:1.4rem; }
.legal-container p { color:#4f5f57; line-height:1.8; }
.notice { padding:14px 16px; border-radius:13px; border:1px solid var(--border); margin:18px 0; font-size:.87rem; }
.notice-warning { background:var(--warning-soft); border-color:#f1d6a6; color:#744c10; }
.error-code { display:block; color:var(--accent); font-size:4rem; font-weight:900; letter-spacing:-.06em; }

/* listing form */
.form-page { padding:48px 0 90px; }
.form-page__container { max-width:1180px; }
.moderation-note { display:flex; align-items:center; gap:10px; min-width:280px; padding:13px 15px; border:1px solid var(--border); border-radius:13px; background:white; font-size:.8rem; }
.moderation-note svg { width:24px; height:24px; color:var(--accent); }
.moderation-note span { font-weight:700; }
.moderation-note small { color:var(--muted); font-weight:500; }
.form-section { background:#fff; border:1px solid var(--border); border-radius:20px; padding:26px; box-shadow:0 7px 22px rgba(20,35,29,.035); display:grid; gap:19px; }
.form-section__head { display:flex; align-items:flex-start; gap:13px; padding-bottom:16px; border-bottom:1px solid #edf1ee; }
.form-section__head h2 { font-size:1.28rem; margin:0 0 2px; }
.form-section__head p { margin:0; color:var(--muted); font-size:.8rem; }
.step-number { flex:0 0 30px; width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:var(--accent-pale); color:var(--accent); font-size:.75rem; font-weight:900; }
.choice-cards { display:grid; gap:10px; }
.choice-cards.two { grid-template-columns:1fr 1fr; }
.choice-cards label { position:relative; }
.choice-cards input { position:absolute; opacity:0; }
.choice-cards label > span { display:grid; gap:2px; padding:14px; border:1px solid var(--border); border-radius:12px; }
.choice-cards small { color:var(--muted); font-size:.75rem; }
.choice-cards input:checked + span { background:var(--accent-pale); border-color:var(--accent); }
.amenities-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.amenities-grid label { position:relative; }
.amenities-grid input { position:absolute; opacity:0; }
.amenities-grid span { display:block; padding:10px 11px; border:1px solid var(--border); border-radius:10px; font-size:.78rem; }
.amenities-grid input:checked + span { background:var(--accent-pale); border-color:#a8d5c6; color:var(--accent-dark); font-weight:700; }
.upload-zone { min-height:170px; border:2px dashed #bfcfc6; background:#f9fbf9; border-radius:16px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:25px; cursor:pointer; transition:.16s; }
.upload-zone:hover,.upload-zone.is-dragover { border-color:var(--accent); background:var(--accent-pale); }
.upload-zone__icon { width:48px; height:48px; display:grid; place-items:center; background:white; border:1px solid var(--border); border-radius:13px; color:var(--accent); margin-bottom:12px; }
.upload-zone strong { font-size:.95rem; }
.upload-zone > span { color:var(--muted); font-size:.74rem; margin-top:4px; }
.new-image-preview,.existing-images { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.preview-image,.existing-image { position:relative; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:#f4f6f4; aspect-ratio:4/3; }
.preview-image img,.existing-image img { width:100%; height:100%; object-fit:cover; }
.preview-image button { position:absolute; top:7px; right:7px; width:26px; height:26px; border:0; border-radius:8px; background:rgba(20,35,29,.82); color:white; font-size:.8rem; }
.preview-image span { position:absolute; left:7px; bottom:7px; right:38px; color:white; background:rgba(20,35,29,.72); padding:4px 6px; border-radius:6px; font-size:.62rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.drag-handle { position:absolute; left:7px; top:7px; background:rgba(20,35,29,.74); color:white; border-radius:6px; padding:4px 6px; font-size:.6rem; cursor:grab; }
.delete-image { position:absolute; right:7px; bottom:7px; background:rgba(255,255,255,.92); border-radius:7px; padding:5px 7px; font-size:.65rem; display:flex; align-items:center; gap:4px; }
.delete-image input { width:13px; height:13px; min-height:13px; }
.existing-image.is-dragging { opacity:.5; }
.submit-legal { color:var(--muted); font-size:.66rem; text-align:center; margin:3px 0 0; }

/* detail */
.detail-page { padding:32px 0 72px; }
.breadcrumbs { display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:.75rem; margin-bottom:17px; }
.breadcrumbs a:hover { color:var(--accent); }
.gallery { display:grid; grid-template-columns:2fr 1fr; gap:8px; height:520px; border-radius:22px; overflow:hidden; background:#e8ece9; }
.gallery-main { border:0; padding:0; overflow:hidden; background:#e8ece9; }
.gallery-main img { width:100%; height:100%; object-fit:cover; }
.gallery-side { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:8px; position:relative; }
.gallery-thumb { padding:0; border:0; overflow:hidden; background:#e8ece9; }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.gallery-more { position:absolute; right:14px; bottom:14px; min-height:40px; padding:8px 12px; border:1px solid rgba(255,255,255,.5); color:white; background:rgba(20,35,29,.72); backdrop-filter:blur(8px); border-radius:10px; font-weight:800; }
.gallery-empty { grid-column:1/-1; display:grid; place-items:center; align-content:center; gap:10px; color:#829189; }
.gallery-empty svg { width:55px; height:55px; fill:currentColor; stroke:none; }
.detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; margin-top:24px; }
.detail-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:24px; border-bottom:1px solid var(--border); }
.detail-header h1 { font-size:clamp(1.8rem, 2.5vw, 2.6rem); line-height:1.08; margin:12px 0 10px; max-width:820px; }
.detail-badges { display:flex; gap:7px; flex-wrap:wrap; }
.detail-badges span { background:var(--accent-pale); color:var(--accent-dark); border:1px solid #cde8df; border-radius:999px; padding:5px 9px; font-size:.68rem; font-weight:800; }
.detail-location { display:flex; align-items:center; gap:7px; color:var(--muted); margin:0; }
.detail-location svg { color:var(--accent); }
.key-facts { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:24px 0; border-bottom:1px solid var(--border); }
.key-facts div { display:grid; gap:3px; }
.key-facts span { color:var(--muted); font-size:.72rem; }
.key-facts strong { font-size:1.15rem; }
.detail-section { padding:31px 0; border-bottom:1px solid var(--border); }
.detail-section h2 { font-size:1.45rem; margin-bottom:17px; }
.description-text { color:#3f5047; line-height:1.8; font-size:.96rem; }
.spec-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 30px; margin:0; }
.spec-grid div { display:flex; justify-content:space-between; gap:15px; padding:11px 0; border-bottom:1px solid #edf1ee; }
.spec-grid dt { color:var(--muted); font-size:.82rem; }
.spec-grid dd { margin:0; font-weight:720; text-align:right; font-size:.84rem; }
.amenity-list { display:flex; flex-wrap:wrap; gap:9px; }
.amenity-list span { padding:8px 10px; border:1px solid var(--border); background:white; border-radius:9px; font-size:.78rem; color:#415149; }
.report-section details summary { cursor:pointer; color:var(--muted); font-size:.8rem; }
.compact-form { margin-top:16px; max-width:520px; }
.sticky-card { position:sticky; top:105px; }
.seller-card { background:white; border:1px solid var(--border); border-radius:20px; padding:22px; box-shadow:var(--shadow-sm); }
.price-block { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.price-block strong { font-size:1.7rem; }
.price-block span,.price-block small { color:var(--muted); font-size:.75rem; }
.price-block small { width:100%; }
.seller-info { display:flex; gap:11px; align-items:center; padding:18px 0; }
.avatar { flex:0 0 42px; width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:var(--accent-pale); color:var(--accent-dark); font-weight:900; }
.seller-info > div:last-child { display:grid; }
.seller-info span { color:var(--muted); font-size:.67rem; }
.seller-info strong { font-size:.9rem; }
.seller-info small { color:var(--accent); font-size:.66rem; }
.contact-seller-form { display:grid; gap:11px; }
.contact-seller-form textarea { font-size:.82rem; }
.seller-note { color:var(--muted); font-size:.72rem; text-align:center; margin:10px 0 0; }
.seller-meta { display:grid; gap:4px; margin-top:17px; padding-top:15px; border-top:1px solid var(--border); color:var(--muted); font-size:.68rem; }
.gallery-dialog { width:min(96vw,1200px); max-height:92vh; border:0; border-radius:18px; padding:18px; background:#111; color:white; }
.gallery-dialog::backdrop { background:rgba(0,0,0,.85); }
.gallery-dialog__content { display:grid; gap:12px; max-height:86vh; overflow:auto; }
.gallery-dialog__content img { max-height:82vh; margin:auto; object-fit:contain; }
.dialog-close { position:sticky; top:0; margin-left:auto; z-index:3; width:38px; height:38px; border:0; border-radius:50%; background:white; color:#111; font-size:1.3rem; }

/* dashboard */
.dashboard-page { padding:48px 0 85px; }
.dashboard-head { display:flex; justify-content:space-between; align-items:end; gap:25px; margin-bottom:24px; }
.dashboard-head h1 { font-size:2.55rem; margin:8px 0 5px; }
.dashboard-head p { color:var(--muted); margin:0; }
.dashboard-nav,.admin-nav { display:flex; gap:4px; overflow:auto; padding:5px; background:#e9eeeb; border-radius:13px; margin-bottom:22px; }
.dashboard-nav a,.admin-nav a { padding:9px 13px; border-radius:9px; font-size:.78rem; font-weight:750; color:#516158; white-space:nowrap; }
.dashboard-nav a.is-active,.admin-nav a.is-active { background:white; color:var(--accent-dark); box-shadow:0 3px 10px rgba(20,35,29,.07); }
.dashboard-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.dashboard-stats div,.admin-stats div { background:white; border:1px solid var(--border); border-radius:15px; padding:16px 18px; display:grid; gap:3px; }
.dashboard-stats span,.admin-stats span { color:var(--muted); font-size:.72rem; }
.dashboard-stats strong,.admin-stats strong { font-size:1.55rem; }
.panel-card,.admin-card { background:white; border:1px solid var(--border); border-radius:20px; box-shadow:0 7px 24px rgba(20,35,29,.035); padding:22px; }
.panel-card__head,.admin-card__head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.panel-card__head h2,.admin-card__head h2 { margin:0 0 2px; font-size:1.2rem; }
.panel-card__head p,.admin-card__head p { margin:0; color:var(--muted); font-size:.76rem; }
.owner-listings { display:grid; }
.owner-listing { display:grid; grid-template-columns:120px minmax(0,1fr); gap:16px; padding:16px 0; border-top:1px solid #edf1ee; }
.owner-listing:first-child { border-top:0; padding-top:0; }
.owner-listing__image { width:120px; height:90px; overflow:hidden; border-radius:11px; background:#edf0ee; display:grid; place-items:center; font-size:.65rem; color:var(--muted); }
.owner-listing__image img { width:100%; height:100%; object-fit:cover; }
.owner-listing__body { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 24px; align-items:start; }
.owner-listing h3 { margin:5px 0 3px; font-size:1rem; }
.owner-listing p { color:var(--muted); font-size:.76rem; margin:0; }
.owner-listing__stats { display:flex; gap:15px; color:var(--muted); font-size:.69rem; }
.owner-listing__stats strong { color:var(--main); }
.owner-listing__actions { grid-column:1/-1; display:flex; gap:7px; flex-wrap:wrap; }
.status { display:inline-flex; align-items:center; width:max-content; padding:4px 8px; border-radius:999px; font-size:.64rem; line-height:1; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }
.status-active { color:#086448; background:#e0f5ed; }
.status-pending { color:#8b5906; background:#fff1d2; }
.status-draft { color:#586861; background:#edf1ef; }
.status-rejected { color:#9a2e2e; background:#fde7e7; }
.status-archived,.status-sold { color:#586861; background:#ecefee; }
.inline-note { display:inline-block; margin-top:6px; padding:6px 8px; border-radius:8px; background:var(--warning-soft); color:#7d5413; font-size:.7rem; }
.dashboard-grid { margin-top:24px; }
.saved-search-list { display:grid; }
.saved-search-list article { display:flex; justify-content:space-between; gap:20px; padding:15px 0; border-top:1px solid #edf1ee; }
.saved-search-list article:first-child { border-top:0; }
.saved-search-list h3 { margin:7px 0 5px; }
.saved-search-list p { margin:0; }
.saved-search-actions { display:flex; align-items:center; gap:8px; }
.profile-layout { display:grid; grid-template-columns:1fr .7fr; gap:20px; }
.profile-form { max-width:650px; }
.account-card dl { margin:0; display:grid; }
.account-card dl div { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid #edf1ee; font-size:.8rem; }
.account-card dt { color:var(--muted); }
.account-card dd { margin:0; text-align:right; }
.verified { color:var(--accent); font-size:.67rem; }

/* Messages: pełny moduł ma własny plik messages.css */

/* admin */
.admin-body { background:#f1f3f1; }
.admin-page { padding:38px 0 80px; }
.admin-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.admin-head h1 { font-size:2.5rem; margin:7px 0 3px; }
.admin-head p { color:var(--muted); margin:0; }
.admin-chip { display:inline-flex; align-items:center; background:#192a23; color:#dff5ec; border-radius:999px; padding:7px 11px; font-size:.68rem; font-weight:800; }
.admin-chip.small { padding:3px 6px; margin-left:4px; }
.admin-nav { background:#dfe5e1; }
.admin-stats { display:grid; grid-template-columns:repeat(7,1fr); gap:9px; margin-bottom:18px; }
.admin-stats div { padding:13px; }
.admin-stats strong { font-size:1.3rem; }
.admin-stats .accent-stat { border-color:#abd8c8; background:var(--accent-pale); }
.admin-grid.two-col { display:grid; grid-template-columns:1.1fr .9fr; gap:18px; }
.admin-list { display:grid; }
.admin-list article { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; padding:13px 0; border-top:1px solid #edf1ee; }
.admin-list article:first-child { border-top:0; }
.admin-list h3 { margin:5px 0 2px; font-size:.9rem; }
.admin-list p { margin:0; color:var(--muted); font-size:.72rem; }
.row-actions,.table-actions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.security-mini { display:grid; gap:8px; }
.security-mini div { display:grid; grid-template-columns:1fr auto; gap:2px 10px; padding:8px 0; border-top:1px solid #edf1ee; }
.security-mini div:first-child { border-top:0; }
.security-mini code { color:#2d4f40; font-size:.7rem; }
.security-mini span,.security-mini small { color:var(--muted); font-size:.65rem; }
.security-mini small { grid-column:1/-1; }
.admin-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.admin-toolbar > span { color:var(--muted); font-size:.75rem; }
.admin-filter { display:flex; gap:8px; }
.admin-filter input { width:280px; }
.admin-filter select { width:180px; }
.admin-table-wrap { overflow:auto; border:1px solid var(--border); background:white; border-radius:16px; }
.admin-table { width:100%; border-collapse:collapse; min-width:880px; }
.admin-table th { text-align:left; padding:11px 12px; color:var(--muted); background:#f7f9f7; font-size:.67rem; text-transform:uppercase; letter-spacing:.05em; }
.admin-table td { padding:12px; border-top:1px solid #edf1ee; vertical-align:top; font-size:.75rem; }
.admin-table td > strong,.admin-table td > small { display:block; }
.admin-table td > small { color:var(--muted); margin-top:3px; }
.moderate-details { position:relative; }
.moderate-details summary { list-style:none; }
.moderate-details summary::-webkit-details-marker { display:none; }
.moderate-details form { position:absolute; right:0; top:38px; z-index:20; width:300px; background:white; border:1px solid var(--border); box-shadow:var(--shadow-md); border-radius:12px; padding:12px; }
.moderate-details form textarea { font-size:.75rem; }
.moderate-details form > div { display:flex; justify-content:flex-end; gap:6px; margin-top:7px; }
.report-list article,.contact-list article { background:white; border:1px solid var(--border); border-radius:15px; padding:17px; margin-bottom:10px; }
.report-list blockquote,.contact-list blockquote { margin:10px 0; padding:10px 12px; background:#f7f9f7; border-left:3px solid #ccd9d1; font-size:.78rem; color:#495a51; white-space:pre-wrap; }
.log-table { overflow:auto; max-height:600px; }
.log-row { display:grid; grid-template-columns:120px 1.4fr 80px 1fr; gap:8px; padding:8px 4px; border-top:1px solid #edf1ee; font-size:.67rem; align-items:center; }
.log-head { color:var(--muted); text-transform:uppercase; font-weight:800; border-top:0; }
.log-row code { white-space:nowrap; color:#315444; }
.system-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.system-check { background:white; border:1px solid var(--border); border-radius:16px; padding:18px; display:grid; gap:4px; }
.system-check > span { color:var(--muted); font-size:.7rem; }
.system-check strong { font-size:1.05rem; }
.system-check small { color:var(--muted); font-size:.68rem; }
.system-check.ok { border-top:4px solid #2e9c73; }
.system-check.warn { border-top:4px solid #d89a36; }
.system-check.bad { border-top:4px solid #c84949; }
.admin-system-note { margin-top:17px; }
.empty-inline { color:var(--muted); font-size:.8rem; }

/* footer — kompaktowy */
.site-footer--compact {
  background:#fff;
  color:#34463e;
  padding:0;
  border-top:1px solid var(--border);
}
.footer-compact {
  min-height:68px;
  display:grid;
  grid-template-columns:minmax(160px,.8fr) minmax(0,2fr) minmax(90px,.5fr);
  align-items:center;
  gap:30px;
}
.footer-compact__copyright {
  color:#65746d;
  font-size:.72rem;
  white-space:nowrap;
}
.footer-compact__nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;
  min-width:0;
}
.footer-compact__nav a {
  color:#405149;
  font-size:.74rem;
  font-weight:650;
  white-space:nowrap;
  transition:color .15s ease;
}
.footer-compact__nav a:hover { color:var(--accent); }
.footer-compact__socials {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}
.footer-compact__socials a {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  color:#405149;
  border-radius:8px;
  transition:background .15s ease,color .15s ease;
}
.footer-compact__socials a:hover {
  background:var(--accent-pale);
  color:var(--accent);
}
.footer-compact__socials svg {
  width:18px!important;
  height:18px!important;
}

@media (max-width: 1120px) {
  .hero-home__grid { grid-template-columns:minmax(0,1fr) 540px; gap:30px; }
  .listing-grid { grid-template-columns:repeat(3,1fr); }
  .admin-stats { grid-template-columns:repeat(4,1fr); }
  .form-grid.four { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .home-sell-strip__grid {
    grid-template-columns:minmax(280px,1fr) minmax(225px,.72fr) minmax(0,1.5fr);
    gap:24px;
  }
  .home-sell-strip__arrow { display:none; }
  .home-sell-strip__benefits { gap:16px; }
  .footer-compact__nav { gap:20px; }
}

@media (max-width: 900px) {
  .home-quick-searches__columns {
    grid-template-columns:repeat(2,minmax(0,1fr));
    row-gap:32px;
  }
  .home-quick-searches__group {
    padding:0 26px;
  }
  .home-quick-searches__group:first-child {
    padding-left:0;
  }
  .home-quick-searches__group:nth-child(2) {
    padding-right:0;
  }
  .home-quick-searches__group:nth-child(3) {
    grid-column:1/-1;
    padding:28px 0 0;
    border-left:0;
    border-top:1px solid #dfe6e2;
  }
  .home-quick-searches__group:nth-child(3) .home-quick-searches__links {
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:30px;
  }

  .home-safety-strip__inner {
    grid-template-columns:auto minmax(0,1fr);
  }
  .home-safety-strip__link {
    grid-column:2;
    justify-self:start;
  }

  .home-categories {
    padding: 8px 0 58px;
  }
  .home-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-category-card--all {
    grid-column: 1 / -1;
    min-height: 126px;
    flex-direction: row;
    gap: 14px;
  }
  .home-category-card--all .home-category-card__icon {
    margin-bottom: 0;
  }
  .home-sell-strip__grid {
    grid-template-columns:minmax(0,1fr) minmax(240px,.75fr);
    gap:22px 30px;
    padding-top:28px;
    padding-bottom:28px;
  }
  .home-sell-strip__arrow { display:none; }
  .home-sell-strip__benefits {
    grid-column:1/-1;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.11);
  }
  .footer-compact {
    grid-template-columns:1fr auto;
    gap:14px 24px;
    padding-top:16px;
    padding-bottom:16px;
  }
  .footer-compact__nav {
    grid-column:1/-1;
    grid-row:1;
    justify-content:flex-start;
    gap:18px 24px;
    flex-wrap:wrap;
  }
  .footer-compact__copyright { grid-column:1; grid-row:2; }
  .footer-compact__socials { grid-column:2; grid-row:2; }
  :root { --header-h: 68px; }
  .mobile-only { display:inline-flex!important; }
  .mobile-menu-button { display:block; }
  .main-nav { display:none; position:absolute; left:16px; right:16px; top:calc(var(--header-h) - 4px); padding:16px; background:white; border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-md); flex-direction:column; align-items:stretch; gap:3px; }
  .main-nav.is-open { display:flex; }
  .main-nav > a:not(.btn), .main-nav .nav-ghost { display:block; padding:10px 8px; text-align:left; }
  .nav-form { width:100%; }
  .btn-nav { margin-top:5px; }
  .hero-home { min-height:auto; }
  .hero-home__overlay { background:linear-gradient(180deg,rgba(9,28,21,.72),rgba(9,28,21,.52)); }
  .hero-home__grid { grid-template-columns:1fr; padding-top:55px; padding-bottom:55px; gap:30px; }
  .hero-copy { max-width:760px; }
  .hero-copy h1 { font-size:clamp(2.7rem,8vw,4.7rem); }
  .search-card { max-width:700px; }
  .listing-grid { grid-template-columns:repeat(2,1fr); }
  .value-grid { grid-template-columns:1fr; gap:35px; }
  .value-intro { position:static; }
  .search-topbar { align-items:center; }
  .auth-shell { grid-template-columns:1fr; }
  .auth-visual { min-height:380px; }
  .auth-visual__copy { left:30px; right:30px; bottom:35px; }
  .auth-panel { padding:45px 28px 70px; }
  .contact-layout { grid-template-columns:1fr; gap:35px; }
  .moderation-note { min-width:0; }
  .detail-layout { grid-template-columns:1fr; gap:25px; }
  .sticky-card { position:static; }
  .gallery { height:440px; }
  .profile-layout { grid-template-columns:1fr; }
  .admin-grid.two-col { grid-template-columns:1fr; }
  .system-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 640px) {
  .home-quick-searches {
    padding:8px 0 46px;
  }
  .home-quick-searches__head {
    margin-bottom:20px;
  }
  .home-quick-searches__columns {
    display:block;
  }
  .home-quick-searches__group,
  .home-quick-searches__group:first-child,
  .home-quick-searches__group:nth-child(2),
  .home-quick-searches__group:nth-child(3),
  .home-quick-searches__group:last-child {
    padding:0;
    border-left:0;
    border-top:0;
  }
  .home-quick-searches__group + .home-quick-searches__group {
    margin-top:28px;
  }
  .home-quick-searches__links,
  .home-quick-searches__group:nth-child(3) .home-quick-searches__links {
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:22px;
  }
  .home-quick-searches__links a {
    min-height:40px;
    font-size:.78rem;
  }

  .home-safety-strip {
    padding:20px 0 24px;
  }
  .home-safety-strip__inner {
    grid-template-columns:1fr;
    gap:12px;
    padding:18px;
  }
  .home-safety-strip__icon {
    width:42px;
    height:42px;
  }
  .home-safety-strip__link {
    grid-column:auto;
    margin-top:2px;
    white-space:normal;
  }
  .safety-tips {
    grid-template-columns:1fr;
  }

  .home-categories {
    padding: 2px 0 46px;
  }
  .home-categories__head {
    margin-bottom: 18px;
  }
  .home-categories__grid {
    gap: 10px;
  }
  .home-category-card {
    min-height: 148px;
    padding: 17px 10px 15px;
    border-radius: 15px;
  }
  .home-category-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 11px;
    border-radius: 14px;
  }
  .home-category-card__icon svg {
    width: 28px!important;
    height: 28px!important;
  }
  .home-category-card strong {
    font-size: .87rem;
  }
  .home-category-card small {
    font-size: .67rem;
  }
  .home-category-card--all {
    min-height: 112px;
    text-align: left;
    justify-content: flex-start;
    padding-inline: 18px;
  }
  .home-sell-strip__grid {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:20px;
    padding-top:28px;
    padding-bottom:28px;
  }
  .home-sell-strip__copy { text-align:center; }
  .home-sell-strip__copy h2 { font-size:1.35rem; }
  .home-sell-strip__copy p { font-size:.95rem; }
  .home-sell-strip__action { width:100%; }
  .home-sell-strip__button { width:100%; }
  .home-sell-strip__benefits {
    width:100%;
    grid-template-columns:1fr;
    gap:10px;
    padding-top:18px;
  }
  .home-sell-strip__benefit {
    justify-content:flex-start;
    padding:4px 12px;
  }
  .home-sell-strip__benefit > span {
    width:34px;
    height:34px;
    flex-basis:34px;
  }
  .home-sell-strip__benefit > span svg {
    width:27px!important;
    height:27px!important;
  }
  .footer-compact {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    padding-top:20px;
    padding-bottom:20px;
  }
  .footer-compact__nav {
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px 20px;
    order:1;
  }
  .footer-compact__copyright { order:2; }
  .footer-compact__socials { order:3; justify-content:flex-start; }
  .container { width:min(calc(100% - 24px), var(--container)); }
  .section { padding:58px 0; }
  .hero-home__grid { padding-top:40px; padding-bottom:38px; }
  .hero-copy h1 { font-size:2.65rem; }
  .hero-copy > p { font-size:.95rem; }
  .hero-trust { gap:17px; justify-content:space-between; }
  .hero-trust span { font-size:.64rem; }
  .search-card { padding:20px; border-radius:20px; }
  .search-card__heading h2 { font-size:1.55rem; }
  .form-grid.two,.form-grid.three,.form-grid.four { grid-template-columns:1fr; }
  .home-search .form-grid.two { grid-template-columns:1fr; }
  .home-search > .location-picker--inline { grid-template-columns:minmax(0,3fr) minmax(118px,1fr); }
  .home-search__details { grid-template-columns:1fr 1fr; }
  .home-search__property { grid-column:1/-1; }
  .listing-grid { grid-template-columns:1fr; }
  .listing-card__media { height:230px; }
  .section-heading h2 { font-size:2rem; }
  .value-cards { grid-template-columns:1fr; }
  .account-type { grid-template-columns:1fr; }
  .password-rules { grid-template-columns:1fr; }
  .auth-visual { min-height:310px; }
  .auth-visual__copy h1 { font-size:2rem; }
  .auth-visual__copy ul { display:none; }
  .auth-panel { padding:34px 16px 60px; }
  .simple-card { padding:24px 18px; }
  .inline-form { flex-direction:column; }
  .legal-container h1,.contact-intro h1 { font-size:2.35rem; }
  .form-page { padding-top:30px; }
  .form-section { padding:19px 15px; }
  .choice-cards.two { grid-template-columns:1fr; }
  .amenities-grid { grid-template-columns:1fr 1fr; }
  .new-image-preview,.existing-images { grid-template-columns:repeat(2,1fr); }
  .gallery { display:block; height:310px; border-radius:15px; }
  .gallery-main { width:100%; height:100%; }
  .gallery-side { display:none; }
  .detail-header { flex-direction:column; }
  .detail-header h1 { font-size:2.05rem; }
  .key-facts { grid-template-columns:repeat(2,1fr); }
  .spec-grid { grid-template-columns:1fr; }
  .dashboard-head { align-items:flex-start; flex-direction:column; }
  .dashboard-head h1 { font-size:2.1rem; }
  .dashboard-stats { grid-template-columns:repeat(2,1fr); }
  .owner-listing { grid-template-columns:85px 1fr; }
  .owner-listing__image { width:85px; height:72px; }
  .owner-listing__body { grid-template-columns:1fr; }
  .owner-listing__stats { grid-column:1; }
  .saved-search-list article { flex-direction:column; }
  .chat-window { padding:15px 11px; }
  .chat-message { max-width:88%; }
  .chat-compose { grid-template-columns:1fr; }
  .admin-head { align-items:flex-start; flex-direction:column; }
  .admin-stats { grid-template-columns:repeat(2,1fr); }
  .admin-filter { width:100%; flex-direction:column; }
  .admin-filter input,.admin-filter select { width:100%; }
  .system-grid { grid-template-columns:1fr; }
  .admin-list article { flex-direction:column; }
}

@media (max-width: 480px) {
  .home-search > .location-picker--inline { grid-template-columns:1fr; }
  .home-search__details { grid-template-columns:1fr; }
  .home-search__property { grid-column:auto; }
}

/* GUS / TERYT location autocomplete */
.location-picker { display:grid; gap:9px; min-width:0; }
.location-picker__main { display:grid; gap:5px; min-width:0; }
.location-picker__field-label { color:#405149; font-size:.72rem; font-weight:750; }
.location-picker__input-wrap { position:relative; min-width:0; }
.location-picker__input-wrap > input[type="text"] { padding-right:48px; }
.location-picker.has-district-selection .location-picker__input-wrap > input[type="text"] { padding-right:88px; }
.location-picker__clear { position:absolute; right:7px; top:50%; translate:0 -50%; width:30px; height:30px; border:0; border-radius:8px; background:transparent; color:#66756d; font-size:1.55rem; line-height:1; display:grid; place-items:center; z-index:4; }
.location-picker__clear:hover { background:#eef3f0; color:var(--main); }
.location-picker__results { position:absolute; z-index:90; left:0; right:0; top:calc(100% + 6px); max-height:430px; overflow:auto; overflow-anchor:none; scrollbar-gutter:stable; background:white; border:1px solid #cbd8d1; border-radius:13px; box-shadow:0 18px 45px rgba(16,35,27,.17); padding:6px; }
.location-group + .location-group { border-top:1px solid #edf1ee; }
.location-option { position:relative; display:flex; align-items:center; gap:8px; min-height:58px; padding:9px 42px 9px 11px; border-radius:9px; cursor:pointer; color:var(--main); }
.location-option:hover,.location-option.is-active { background:#f0f5f2; }
.location-option--child { margin-left:13px; min-height:54px; padding-left:16px; border-left:2px solid #dbe7e1; border-radius:0 9px 9px 0; }
.location-option__copy { display:grid; gap:2px; min-width:0; }
.location-option__copy strong { font-size:.91rem; line-height:1.2; }
.location-option__copy small { color:var(--muted); font-size:.73rem; line-height:1.3; white-space:normal; }
.location-option mark { background:#d7f4e8; color:inherit; border-radius:2px; padding:0 1px; }
.location-option__toggle { position:absolute; right:7px; top:50%; translate:0 -50%; width:32px; height:32px; border:0; border-radius:8px; background:transparent; color:#253a31; font-size:1.35rem; display:grid; place-items:center; }
.location-option__toggle:hover { background:#e5eee9; }
.location-option__toggle span { transition:transform .15s ease; }
.location-option__toggle.is-open span { transform:rotate(180deg); }
.location-children { padding-bottom:4px; overflow-anchor:none; }
.location-empty,.location-loading { padding:15px 12px; color:var(--muted); font-size:.78rem; }
.location-radius { display:grid; gap:5px; }
.location-radius > span { color:#405149; font-size:.72rem; font-weight:750; }
.location-radius select { min-height:40px; padding-block:8px; }
.location-radius select:disabled { background:#f3f5f4; color:#8b9891; cursor:not-allowed; opacity:1; }
.location-radius small { color:var(--muted); font-size:.69rem; }
.location-picker--compact { gap:7px; }
.location-picker--compact .location-picker__results { min-width:340px; }
.search-card .location-picker__results { max-height:360px; }

@media (max-width: 640px) {
  .location-picker__results,.location-picker--compact .location-picker__results { min-width:0; width:min(92vw, 520px); }
}


/* Multi-select dzielnic — kompaktowo, jak w dużych portalach */
.location-picker__count { position:absolute; right:45px; top:50%; translate:0 -50%; z-index:5; min-width:21px; height:21px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:var(--accent-dark); color:#fff; font-size:.69rem; line-height:1; font-weight:850; pointer-events:none; }
.location-picker__count[hidden] { display:none; }
.location-option__check { width:21px; height:21px; min-width:21px; margin:0 3px 0 0; accent-color:var(--main); pointer-events:none; }
.location-option.is-selected { background:#f0f2f1; }
.location-option.is-selected .location-option__copy strong { color:var(--main); }
.location-picker[data-multi-district="1"] .location-children { padding:2px 0 6px; }
.location-picker[data-multi-district="1"] .location-option--child { margin-left:6px; min-height:50px; padding-left:10px; border-left:0; }


.location-children__more {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--main);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 12px 10px;
  border-radius: 8px;
}

.location-children__more:hover {
  background: #f0f5f2;
  color: var(--accent-dark);
}

.location-children__more[hidden],
.location-option[hidden] {
  display: none !important;
}

/* Lokalizacja i Promień: ten sam baseline i dokładnie ta sama wysokość. */
.home-search > .location-picker--inline .location-picker__main,
.home-search > .location-picker--inline .location-radius {
  grid-template-rows: 16px 48px;
  align-content: end;
}

.home-search > .location-picker--inline .location-picker__field-label,
.home-search > .location-picker--inline .location-radius > span {
  min-height: 16px;
  line-height: 16px;
  margin: 0;
}

.home-search > .location-picker--inline .location-picker__input-wrap,
.home-search > .location-picker--inline .location-picker__input-wrap > input[type="text"],
.home-search > .location-picker--inline .location-radius select {
  height: 48px;
  min-height: 48px;
}

/* Location picker: dropdown może wychodzić poza hero */
.hero-home .search-card,
.hero-home .home-search,
.hero-home .location-picker,
.hero-home .location-picker__main,
.hero-home .location-picker__input-wrap {
  overflow: visible;
}

.hero-home .location-picker__results {
  z-index: 500;
}

.section-latest {
  position: relative;
  z-index: 1;
}

@media (min-width: 901px) {
  .section-latest {
    padding-top: 62px;
  }
}

.latest-carousel__actions {
  display:flex;
  align-items:center;
  gap:18px;
}
.latest-carousel__buttons {
  display:flex;
  gap:8px;
}
.latest-carousel__button {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--border);
  border-radius:50%;
  background:#fff;
  color:var(--main);
  box-shadow:0 4px 14px rgba(20,35,29,.05);
  transition:border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.latest-carousel__button:hover {
  border-color:#b8cac0;
  color:var(--accent);
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(20,35,29,.08);
}
.latest-carousel__button:disabled {
  opacity:.34;
  cursor:default;
  transform:none;
  box-shadow:none;
}
.latest-carousel__button:disabled:hover {
  border-color:var(--border);
  color:var(--main);
}
.latest-carousel__button svg {
  width:20px!important;
  height:20px!important;
}
.latest-carousel {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 60px) / 4);
  gap:20px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding:8px 2px 22px;
  margin-top:-6px;
}
.latest-carousel::-webkit-scrollbar { display:none; }
.latest-carousel:focus-visible {
  outline:2px solid rgba(12,122,92,.35);
  outline-offset:5px;
  border-radius:18px;
}
.latest-carousel__item {
  min-width:0;
  scroll-snap-align:start;
}
.latest-carousel__item .listing-card {
  height:100%;
}

@media (max-width: 1100px) {
  .latest-carousel {
    grid-auto-columns:calc((100% - 40px) / 3);
  }
}

@media (max-width: 760px) {
  .home-section-heading {
    align-items:flex-end;
    margin-bottom:22px;
  }
  .latest-carousel__actions .text-link {
    display:none;
  }
  .latest-carousel {
    grid-auto-columns:min(78vw, 310px);
    gap:14px;
    margin-right:-16px;
    padding-right:16px;
  }
  .latest-carousel__button {
    width:38px;
    height:38px;
  }
}

@media (max-width: 480px) {
  .latest-carousel__buttons {
    display:none;
  }
  .home-section-heading {
    margin-bottom:18px;
  }
  .latest-carousel {
    grid-auto-columns:84vw;
  }
}

/* Listing form: city -> district -> street address flow */
.listing-city-field .location-picker { grid-template-columns:1fr; }
.listing-address-grid { align-items:start; }
.field-required-mark { color:var(--accent); font-style:normal; }
.field-required-mark[hidden] { display:none; }
.location-no-street { display:flex; align-items:center; gap:7px; margin-top:7px; color:var(--muted); font-size:.74rem; cursor:pointer; width:max-content; }
.location-no-street input { width:16px; height:16px; min-height:16px; margin:0; accent-color:var(--accent); }
.field input:disabled,.field select:disabled { background:#f3f5f4; color:#8b9891; cursor:not-allowed; opacity:1; }
.address-privacy-copy { align-content:start; min-height:100%; padding:10px 12px; border:1px solid #e3e9e5; border-radius:11px; background:#f8faf9; }
.address-privacy-copy > span { margin-bottom:4px; }

@media (max-width: 640px) {
  .location-no-street { width:auto; }
}

/* ===== Kreator ogłoszenia / wizard ===== */
.wizard-page { background:#f4f6f5; min-height:calc(100vh - 72px); }
.wizard-container { max-width:1220px; }
.wizard-topbar { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:24px; }
.wizard-topbar h1 { margin:7px 0 5px; font-size:2.35rem; }
.wizard-topbar p { margin:0; color:var(--muted); max-width:720px; }
.wizard-save-state { flex:0 0 auto; display:flex; align-items:center; gap:8px; font-size:.76rem; color:var(--muted); background:#fff; border:1px solid var(--border); border-radius:999px; padding:9px 13px; }
.wizard-save-dot { width:8px; height:8px; border-radius:50%; background:#9aa49e; }
.wizard-save-state.is-saving .wizard-save-dot { background:#c49b35; animation:wizardPulse .9s infinite; }
.wizard-save-state.is-saved .wizard-save-dot { background:var(--accent); }
.wizard-save-state.is-error { color:#9b2c2c; border-color:#eccaca; }
.wizard-save-state.is-error .wizard-save-dot { background:#d04949; }
@keyframes wizardPulse { 50% { opacity:.35; } }

.listing-wizard { display:grid; grid-template-columns:238px minmax(0,1fr); gap:28px; align-items:start; }
.wizard-sidebar { min-width:0; }
.wizard-sidebar__inner { position:sticky; top:92px; padding:10px 0 14px; }
.wizard-steps { list-style:none; padding:0; margin:0; }
.wizard-step { position:relative; }
.wizard-step:not(:last-child)::after { content:""; position:absolute; left:16px; top:36px; bottom:-6px; width:1px; background:#cdd6d1; }
.wizard-step.is-complete:not(:last-child)::after { background:#68c9a7; }
.wizard-step button { width:100%; border:0; background:transparent; padding:7px 0; display:flex; align-items:flex-start; gap:12px; text-align:left; color:#66716b; cursor:pointer; font:inherit; }
.wizard-step button:disabled { cursor:default; opacity:.62; }
.wizard-step__marker { position:relative; z-index:1; flex:0 0 33px; width:33px; height:33px; border:1px solid #aebcb5; background:#f4f6f5; border-radius:50%; display:grid; place-items:center; font-size:.75rem; font-weight:800; color:#65736c; }
.wizard-step__marker svg { display:none; width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2.3; }
.wizard-step.is-active .wizard-step__marker { background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 0 0 5px rgba(22,138,101,.09); }
.wizard-step.is-complete .wizard-step__marker { background:#fff; border-color:var(--accent); color:var(--accent); }
.wizard-step.is-complete .wizard-step__marker span { display:none; }
.wizard-step.is-complete .wizard-step__marker svg { display:block; }
.wizard-step__copy { min-width:0; display:grid; gap:1px; padding-top:1px; }
.wizard-step__copy strong { font-size:.82rem; color:#445049; }
.wizard-step__copy small { font-size:.68rem; line-height:1.35; color:#8a948f; }
.wizard-step.is-active .wizard-step__copy strong { color:#10261e; }
.wizard-clear-draft { margin:18px 0 0 45px; border:0; background:transparent; color:#78837d; text-decoration:underline; text-underline-offset:3px; font-size:.7rem; cursor:pointer; padding:0; }

.wizard-main { min-width:0; max-width:880px; }
.wizard-mobile-progress { display:none; }
.wizard-panel { padding:30px 32px; border-radius:20px; box-shadow:0 8px 26px rgba(18,39,30,.045); gap:22px; }
.wizard-panel__head { padding-bottom:20px; }
.wizard-panel__head h2 { font-size:1.42rem; }
.wizard-panel__head p { font-size:.82rem; }
.wizard-panel[hidden] { display:none !important; }
.wizard-panel .field-label { display:block; font-size:.75rem; font-weight:800; color:#36453e; margin-bottom:9px; }
.wizard-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:20px; margin-top:2px; border-top:1px solid #edf1ee; }
.wizard-actions > div { display:flex; align-items:center; gap:10px; margin-left:auto; }
.wizard-actions .btn { min-height:44px; }
.wizard-actions--publish { margin-top:4px; }
.wizard-validation-message { border:1px solid #edcaca; background:#fff4f4; color:#9b2c2c; padding:11px 13px; border-radius:11px; font-size:.78rem; font-weight:700; }
.field input.is-invalid,.field select.is-invalid,.field textarea.is-invalid,.location-picker input.is-invalid { border-color:#d34c4c !important; box-shadow:0 0 0 3px rgba(211,76,76,.08) !important; }
.wizard-inline-note { font-size:.74rem; line-height:1.55; color:#66736c; background:#f6f9f7; border:1px solid #e2e9e5; border-radius:12px; padding:12px 14px; }

.price-per-meter-card { display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:20px; row-gap:2px; padding:18px 20px; background:#f3f8f5; border:1px solid #dbe8e1; border-radius:14px; }
.price-per-meter-card > span { grid-row:1 / span 2; font-size:.78rem; color:#65736c; }
.price-per-meter-card strong { font-size:1.35rem; color:#10261e; }
.price-per-meter-card small { color:#7a867f; font-size:.7rem; }
.contact-preview-card { display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid var(--border); border-radius:15px; padding:17px 19px; background:#fbfcfb; }
.contact-preview-card > div { display:grid; gap:3px; }
.contact-preview-card strong { font-size:1rem; color:#15271f; }
.contact-preview-card small { color:var(--muted); }

.quality-card { border:1px solid #d8e8e0; background:#f7fbf9; border-radius:17px; padding:20px; display:grid; gap:18px; }
.quality-card__score { display:flex; align-items:center; gap:18px; }
.quality-ring { --quality:0deg; width:76px; height:76px; flex:0 0 76px; border-radius:50%; display:grid; place-items:center; position:relative; background:conic-gradient(var(--accent) var(--quality), #dfe8e3 0); }
.quality-ring::after { content:""; position:absolute; inset:7px; border-radius:50%; background:#fff; }
.quality-ring strong { position:relative; z-index:1; font-size:1rem; }
.quality-card h3 { margin:3px 0 3px; font-size:1.05rem; }
.quality-card p { margin:0; color:var(--muted); font-size:.76rem; }
.quality-suggestions { margin:0; padding:0; list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:7px 14px; }
.quality-suggestions li { position:relative; padding-left:18px; color:#58665f; font-size:.73rem; }
.quality-suggestions li::before { content:"+"; position:absolute; left:0; top:-1px; color:var(--accent); font-weight:900; }
.quality-suggestions li.is-good::before { content:"✓"; }

.preview-block { display:grid; gap:12px; }
.preview-block__heading { display:flex; justify-content:space-between; align-items:end; gap:18px; }
.preview-block__heading h3 { margin:3px 0 0; font-size:1rem; }
.wizard-result-preview { display:grid; grid-template-columns:260px 1fr; min-height:190px; border:1px solid #d7ded9; border-radius:17px; overflow:hidden; background:#fff; box-shadow:0 5px 14px rgba(23,38,31,.045); }
.wizard-result-preview__media,.wizard-detail-preview__hero { background:#eef1ef; min-height:190px; display:grid; place-items:center; color:#8d9792; font-size:.78rem; overflow:hidden; }
.wizard-result-preview__media img,.wizard-detail-preview__hero img { width:100%; height:100%; object-fit:cover; }
.wizard-result-preview__body { padding:20px; display:flex; flex-direction:column; gap:8px; }
.wizard-preview-price { display:flex; align-items:baseline; gap:8px; }
.wizard-preview-price strong { font-size:1.25rem; color:#11251d; }
.wizard-preview-price span { color:#6e7973; font-size:.74rem; }
.wizard-result-preview h4 { margin:3px 0 0; font-size:1rem; }
.wizard-result-preview p { margin:0; color:#596760; font-size:.78rem; }
.wizard-preview-facts { display:flex; gap:14px; color:#36463e; font-size:.76rem; margin-top:5px; }
.wizard-result-preview small { margin-top:auto; color:#818b86; }
.wizard-detail-preview { border:1px solid #d7ded9; border-radius:17px; overflow:hidden; background:#fff; }
.wizard-detail-preview__hero { min-height:300px; max-height:390px; }
.wizard-detail-preview__copy { padding:24px; }
.wizard-detail-preview__copy > div:first-child { display:flex; align-items:baseline; gap:9px; }
.wizard-detail-preview__copy > div:first-child strong { font-size:1.55rem; }
.wizard-detail-preview__copy > div:first-child small { color:#75817b; }
.wizard-detail-preview h3 { margin:15px 0 5px; font-size:1.3rem; }
.wizard-detail-preview__copy > p { color:#68756e; }
.wizard-detail-preview__copy [data-detail-description] { line-height:1.65; color:#33433b; }
.wizard-moderation-note { margin:0; background:#f7faf8; }

@media (max-width: 900px) {
  .wizard-topbar { align-items:flex-start; }
  .listing-wizard { grid-template-columns:1fr; }
  .wizard-sidebar { display:none; }
  .wizard-main { max-width:none; }
  .wizard-mobile-progress { display:grid; gap:9px; margin-bottom:13px; background:#fff; border:1px solid var(--border); border-radius:14px; padding:13px 15px; }
  .wizard-mobile-progress > div:first-child { display:flex; justify-content:space-between; align-items:center; gap:15px; }
  .wizard-mobile-progress span { color:#75817b; font-size:.72rem; }
  .wizard-mobile-progress strong { font-size:.8rem; }
  .wizard-progress { height:4px; border-radius:99px; background:#e4eae6; overflow:hidden; }
  .wizard-progress span { display:block; width:14.28%; height:100%; background:var(--accent); transition:width .2s ease; }
}

@media (max-width: 700px) {
  .wizard-topbar { display:grid; gap:13px; }
  .wizard-topbar h1 { font-size:2rem; }
  .wizard-save-state { justify-self:start; }
  .wizard-panel { padding:20px 16px; border-radius:16px; }
  .wizard-actions { align-items:stretch; flex-direction:column-reverse; }
  .wizard-actions > div { width:100%; margin:0; display:grid; grid-template-columns:1fr 1fr; }
  .wizard-actions > .btn { width:100%; }
  .wizard-actions--publish > div { grid-template-columns:1fr; }
  .quality-card__score { align-items:flex-start; }
  .quality-suggestions { grid-template-columns:1fr; }
  .wizard-result-preview { grid-template-columns:1fr; }
  .wizard-result-preview__media { min-height:210px; }
  .wizard-detail-preview__hero { min-height:230px; }
  .contact-preview-card { align-items:flex-start; flex-direction:column; }
}
.draft-resume-card { margin:18px 0; display:flex; align-items:center; justify-content:space-between; gap:24px; background:#eff8f4; border:1px solid #cfe5da; border-radius:17px; padding:18px 20px; }
.draft-resume-card h2 { margin:3px 0 4px; font-size:1.05rem; }
.draft-resume-card p { margin:0; color:#65736c; font-size:.76rem; }
@media (max-width:700px) { .draft-resume-card { align-items:flex-start; flex-direction:column; } .draft-resume-card .btn { width:100%; } }


/* Search results v2 — pozioma lista + desktopowy slot reklamowy */
.search-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.search-results-list {
  display: grid;
  gap: 14px;
}

.search-listing-card {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  min-height: 218px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(20, 35, 29, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.search-listing-card:hover {
  border-color: #c5d4cc;
  box-shadow: 0 12px 32px rgba(20, 35, 29, .085);
  transform: translateY(-1px);
}

.search-listing-card__media-wrap {
  position: relative;
  min-width: 0;
  background: #e7ece9;
}

.search-listing-card__media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
}

.search-listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.search-listing-card:hover .search-listing-card__media img {
  transform: scale(1.018);
}

.search-listing-card__badge,
.search-listing-card__photos {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--main);
  box-shadow: 0 3px 10px rgba(10, 28, 21, .10);
  backdrop-filter: blur(8px);
}

.search-listing-card__badge {
  top: 11px;
  left: 11px;
  padding: 5px 8px;
  color: var(--accent-dark);
  font-size: .67rem;
  font-weight: 850;
}

.search-listing-card__photos {
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  font-size: .67rem;
  font-weight: 800;
}

.search-listing-card__photos svg {
  width: 15px;
  height: 15px;
}

.search-listing-card__favorite {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
}

.search-listing-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
}

.search-listing-card__price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.search-listing-card__price-line strong {
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.search-listing-card__price-line strong small {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
}

.search-listing-card__price-line > span {
  color: var(--muted);
  font-size: .72rem;
}

.search-listing-card__title {
  max-width: 760px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .98rem;
  line-height: 1.36;
  font-weight: 760;
}

.search-listing-card__title:hover {
  color: var(--accent-dark);
}

.search-listing-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: .75rem;
}

.search-listing-card__location svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #61736a;
}

.search-listing-card__location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-listing-card__facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #415249;
  font-size: .76rem;
}

.search-listing-card__facts > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.search-listing-card__facts svg {
  width: 17px;
  height: 17px;
  color: #31473d;
}

.search-listing-card__facts strong {
  color: var(--main);
  font-weight: 800;
}

.search-listing-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #edf1ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.search-listing-card__seller {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-listing-card__seller-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 900;
}

.search-listing-card__seller > span:last-child {
  min-width: 0;
  display: grid;
  line-height: 1.18;
}

.search-listing-card__seller strong {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .69rem;
}

.search-listing-card__seller small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .62rem;
}

.search-ad-column {
  min-width: 0;
}

.search-ad-sticky {
  position: sticky;
  top: 100px;
}

.search-ad-label {
  display: block;
  margin: 0 0 6px 2px;
  color: #89958f;
  font-size: .65rem;
}

.search-ad-slot {
  width: 300px;
  height: 600px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  border: 1px dashed #cbd5d0;
  border-radius: 12px;
  background: #f3f5f3;
  color: #8a9690;
  text-align: center;
}

.search-ad-slot span {
  font-size: .78rem;
  font-weight: 750;
}

.search-ad-slot strong {
  font-size: 1rem;
  color: #738079;
}

.search-ad-slot small {
  max-width: 220px;
  font-size: .65rem;
  line-height: 1.45;
}

@media (max-width: 1240px) {
  .search-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-ad-column {
    display: none;
  }
}

@media (max-width: 900px) {
  .search-listing-card {
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .search-listing-card {
    display: block;
    min-height: 0;
    border-radius: 15px;
  }

  .search-listing-card__media-wrap {
    height: 230px;
  }

  .search-listing-card__media {
    position: absolute;
  }

  .search-listing-card__body {
    padding: 15px;
  }

  .search-listing-card__price-line strong {
    font-size: 1.16rem;
  }

  .search-listing-card__title {
    font-size: .94rem;
  }

  .search-listing-card__fact-extra {
    display: none !important;
  }

}

@media (max-width: 420px) {
  .search-listing-card__media-wrap {
    height: 205px;
  }

  .search-listing-card__seller strong {
    max-width: 170px;
  }

  .search-listing-card__facts {
    gap: 8px 12px;
  }
}

/* Autosave zdjęć kreatora */
.upload-zone.is-uploading { cursor:wait; opacity:.78; border-color:var(--accent); background:var(--accent-pale); }
.upload-zone.is-uploading .upload-zone__icon { animation:komudom-upload-pulse 1s ease-in-out infinite alternate; }
@keyframes komudom-upload-pulse { from { transform:translateY(0); } to { transform:translateY(-4px); } }
.image-upload-feedback { min-height:22px; margin:8px 0 4px; font-size:.78rem; color:var(--muted); }
.image-upload-feedback.is-success { color:var(--accent-dark); }
.image-upload-feedback.is-error { color:#a1262f; }
.image-upload-feedback.is-loading { color:var(--ink); }
.draft-image { cursor:grab; }
.draft-image.is-dragging { opacity:.48; cursor:grabbing; }
.draft-image.is-removing { opacity:.45; pointer-events:none; }
.draft-image__meta { font-variant-numeric:tabular-nums; }
.draft-image__order { position:absolute; left:7px; top:7px; padding:4px 6px; border-radius:6px; background:rgba(255,255,255,.9); color:var(--ink); font-size:.6rem; line-height:1; box-shadow:0 1px 4px rgba(0,0,0,.1); }


/* Interaktywna mapa lokalizacji */
.location-visibility { border:0; padding:0; margin:18px 0 14px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.location-visibility legend { grid-column:1/-1; font-weight:800; color:var(--ink); margin-bottom:2px; }
.location-visibility__option { display:flex; gap:11px; align-items:flex-start; padding:13px 14px; border:1px solid var(--border); border-radius:12px; cursor:pointer; background:#fff; transition:.18s ease; }
.location-visibility__option:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 2px rgba(12,122,92,.09); background:#f7fcfa; }
.location-visibility__option input { margin-top:3px; accent-color:var(--accent); }
.location-visibility__option span { display:grid; gap:3px; }
.location-visibility__option strong { font-size:.88rem; }
.location-visibility__option small { color:var(--muted); line-height:1.4; font-size:.72rem; }
.location-map-card { margin-top:12px; border:1px solid var(--border); border-radius:15px; overflow:hidden; background:#fff; }
.location-map-card__bar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:13px 14px; background:#e4f5f8; border-bottom:1px solid #c8e7ec; }
.location-map-card__bar > div { display:grid; gap:2px; }
.location-map-card__bar strong { font-size:.83rem; }
.location-map-card__bar small { color:var(--muted); font-size:.69rem; }
.listing-location-map { width:100%; height:390px; background:#eef2ef; z-index:0; }
.listing-location-map.is-invalid { box-shadow:inset 0 0 0 3px #c63b46; }
.location-map-privacy-note { padding:10px 14px; color:var(--muted); font-size:.72rem; border-top:1px solid var(--border); }
.komudom-map-pin-wrap { background:transparent!important; border:0!important; }
.komudom-map-pin { display:block; width:30px; height:30px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:var(--accent); border:3px solid #fff; box-shadow:0 4px 12px rgba(9,45,35,.32); }
.komudom-map-pin::after { content:""; position:absolute; width:8px; height:8px; border-radius:50%; background:#fff; left:8px; top:8px; }
.komudom-privacy-circle {
  stroke:#168a65 !important;
  fill:#2fc78f !important;
  stroke-width:3px;
  stroke-dasharray:9 7;
  vector-effect:non-scaling-stroke;
}
.public-listing-map { height:380px; border-radius:14px; overflow:hidden; border:1px solid var(--border); margin-top:14px; background:#eef2ef; }
.map-privacy-caption { margin:9px 0 0!important; font-size:.75rem; color:var(--muted); }
.leaflet-control-attribution { font-size:10px!important; }
/* Leaflet używa własnego SVG do warstw wektorowych (okręgi/poligony).
   Nie wolno stosować do niego globalnych wymiarów ikon. */
.leaflet-overlay-pane svg.leaflet-zoom-animated {
  max-width: none !important;
  max-height: none !important;
}


@media (max-width:700px) {
  .location-visibility { grid-template-columns:1fr; }
  .listing-location-map { height:310px; }
  .public-listing-map { height:300px; }
  .location-map-card__bar { align-items:flex-start; flex-direction:column; }
  .location-map-card__bar .btn { width:100%; }
}

/* Widoczność lokalizacji — własny wygląd radio bez stylów pól tekstowych */
.location-visibility__option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  margin: 0;
  margin-top: 1px;
  padding: 0;
  border: 1.5px solid #8f9994;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  outline: 0;
  position: relative;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.location-visibility__option input[type="radio"]::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s ease, transform .15s ease;
  transform: scale(.72);
}

.location-visibility__option input[type="radio"]:checked {
  border-color: var(--accent);
  background: #fff;
}

.location-visibility__option input[type="radio"]:checked::after {
  background: var(--accent);
  transform: scale(1);
}

.location-visibility__option input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(12,122,92,.14);
}

/* Dynamiczny kreator zależny od typu nieruchomości */
.property-type-intro {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid #d9e7e1;
  border-radius: 12px;
  background: #f4faf7;
  color: #456158;
  font-size: .9rem;
  line-height: 1.45;
}

.property-details-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #dce6e1;
  border-radius: 16px;
  background: #fbfdfc;
}

.property-details-card__head {
  margin-bottom: 16px;
}

.property-details-card__head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.property-details-card__head p {
  margin: 0;
  color: #687970;
  font-size: .88rem;
}

.property-check-grid {
  margin-top: 12px;
}

.property-amenities {
  margin-top: 22px;
}

[data-property-types][hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .property-details-card {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash { transition:none; }
  .flash::after { display:none; }
  .brand img { transition:none; }
  .brand:hover img,
  .brand:focus-visible img,
  .brand:active img { transform:none; filter:none; }
}

/* ============================================================
   ULUBIONE — jeden wygląd serduszka w całym KomuDom
   ============================================================ */

/* Karty: home, podobne oferty, wyniki wyszukiwania. */
.favorite-form .icon-button,
.search-listing-card__favorite.icon-button,
.search-listing-card__favorite .icon-button {
  width:38px !important;
  height:38px !important;
  min-width:38px;
  min-height:38px;
  padding:0 !important;
  display:grid !important;
  place-items:center;
  border:1px solid #dfe7e3 !important;
  border-radius:999px !important;
  background:#f7f9f8 !important;
  color:#385249 !important;
  box-shadow:none !important;
  transition:
    color .15s ease,
    background .15s ease,
    border-color .15s ease,
    transform .15s ease !important;
}

.favorite-form .icon-button:hover,
.search-listing-card__favorite.icon-button:hover,
.search-listing-card__favorite .icon-button:hover {
  color:var(--accent) !important;
  background:#eef8f4 !important;
  border-color:#cbe6dc !important;
}

.favorite-form .icon-button:active,
.search-listing-card__favorite.icon-button:active,
.search-listing-card__favorite .icon-button:active {
  transform:scale(.96);
}

.favorite-form .heart-icon,
.search-listing-card__favorite-login .heart-icon,
.detail-top-action__heart {
  width:19px !important;
  height:19px !important;
  fill:transparent !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Aktywny stan wszędzie jest zielony — bez czerwonych serduszek. */
.favorite-form .js-favorite[aria-pressed="true"],
.search-listing-card__favorite .js-favorite[aria-pressed="true"] {
  color:var(--accent) !important;
  background:#eaf7f2 !important;
  border-color:#c7e8dc !important;
}

.favorite-form .js-favorite[aria-pressed="true"] .heart-icon,
.search-listing-card__favorite .js-favorite[aria-pressed="true"] .heart-icon,
.detail-top-action[aria-pressed="true"] .detail-top-action__heart {
  fill:var(--accent) !important;
  stroke:var(--accent) !important;
}

/* Widok szczegółów: ten sam znak i te same kolory,
   ale zostawiamy wygodny tekstowy przycisk. */
.detail-top-action:has(.detail-top-action__heart) {
  color:#385249;
}

.detail-top-action:has(.detail-top-action__heart):hover {
  color:var(--accent);
  background:#eef8f4;
}

.detail-top-action[aria-pressed="true"] {
  color:var(--accent) !important;
  background:#eaf7f2 !important;
}



/* Facebook OAuth */
.btn-facebook {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:#1877f2;
  border:1px solid #1877f2;
  color:#fff;
  font-weight:650;
  box-shadow:0 2px 8px rgba(24,119,242,.18);
}
.btn-facebook:hover { background:#146bdd; border-color:#146bdd; transform:translateY(-1px); }
.btn-facebook:active { transform:translateY(0); }
.btn-facebook svg { width:20px; height:20px; flex:0 0 20px; stroke:none; }
.social-account-preview { display:flex; align-items:center; gap:11px; padding:13px 14px; margin:-4px 0 20px; border:1px solid #dfe6e2; border-radius:12px; background:#f8faf9; }
.social-account-preview div { display:grid; min-width:0; gap:1px; }
.social-account-preview small { color:var(--muted); font-size:.68rem; }
.social-account-preview strong { overflow:hidden; text-overflow:ellipsis; font-size:.84rem; }
.facebook-mark { width:25px; height:25px; flex:0 0 25px; display:grid; place-items:center; border-radius:50%; background:#1877f2; color:#fff; font:900 18px/1 Arial,sans-serif; }

/* Dashboard — puste „Moje ogłoszenia” */
.dashboard-listings-empty {
  padding-top: 34px;
}
.dashboard-listings-empty__image {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin: 0 auto 14px;
}
.dashboard-listings-empty h3 {
  margin-top: 0;
}
@media (max-width: 640px) {
  .dashboard-listings-empty {
    padding: 28px 18px 34px;
  }
  .dashboard-listings-empty__image {
    width: min(230px, 70vw);
    margin-bottom: 10px;
  }
}


/* Dashboard — puste „Ulubione” */
.dashboard-favorites-empty {
  padding-top: 30px;
}
.dashboard-favorites-empty__image {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin: 0 auto 12px;
}
.dashboard-favorites-empty h2 {
  margin-top: 0;
}
@media (max-width: 640px) {
  .dashboard-favorites-empty {
    padding: 26px 18px 34px;
  }
  .dashboard-favorites-empty__image {
    width: min(230px, 70vw);
    margin-bottom: 8px;
  }
}


/* ============================================================
   HOME MOBILE — uproszczony hero i formularz wyszukiwania
   Na telefonie: bez lewej sekcji, bez promienia/cen/pokoi.
   Desktop pozostaje bez zmian.
   ============================================================ */
@media (max-width: 700px) {
  .site-header {
    position: relative;
    top: auto;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-home__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .hero-home .hero-copy {
    display: none !important;
  }

  .hero-home .search-card {
    width: 100%;
    max-width: none;
    padding: 18px;
  }

  .hero-home .home-search > .location-picker--inline {
    grid-template-columns: 1fr !important;
  }

  .hero-home .home-search > .location-picker--inline .location-radius {
    display: none !important;
  }

  .hero-home .home-search__details {
    grid-template-columns: 1fr !important;
  }

  .hero-home .home-search__advanced {
    display: none !important;
  }

  .hero-home .home-search__property {
    grid-column: auto !important;
  }
}


/* ============================================================
   FOOTER — social media
   Wypełnione, czytelne ikony; nadpisuje globalny styl SVG.
   ============================================================ */
.footer-compact__socials {
  gap: 10px;
}

.footer-compact__socials .footer-social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dde6e1;
  border-radius: 50%;
  background: #f8faf9;
  box-shadow: 0 3px 10px rgba(20,35,29,.04);
  transform: translateY(0);
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.footer-compact__socials .footer-social svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
  stroke: none !important;
  stroke-width: 0 !important;
}

.footer-compact__socials .footer-social--facebook {
  color: #1877f2;
}

.footer-compact__socials .footer-social--linkedin {
  color: #0a66c2;
}
.footer-compact__socials .footer-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(20,35,29,.09);
}

.footer-compact__socials .footer-social--facebook:hover {
  background: #eef5ff;
  border-color: #c8dcfb;
  color: #1877f2;
}

.footer-compact__socials .footer-social--linkedin:hover {
  background: #eef6fb;
  border-color: #c6ddea;
  color: #0a66c2;
}
/* Language switcher */
.language-switcher {
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:3px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
.language-switcher__item {
  min-width:34px;
  padding:6px 7px;
  border-radius:7px;
  text-align:center;
  color:var(--muted);
  font-size:.76rem;
  font-weight:800;
  line-height:1;
}
.language-switcher__item:hover { color:var(--accent); background:var(--accent-soft); }
.language-switcher__item.is-active { color:#fff; background:var(--accent); }
@media (max-width: 900px) {
  .language-switcher { margin:7px 0; align-self:flex-start; }
}

/* On-demand listing translation */
.listing-description-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.listing-translation-actions { display:flex; align-items:center; gap:8px; }
.listing-translation-note { margin:7px 0 12px; color:var(--muted); font-size:.82rem; }
.listing-translation-status { min-height:1.2em; margin:8px 0 0; color:var(--muted); font-size:.84rem; }
.listing-description-section .description-text { white-space:pre-line; }

/* contact visibility and first-message safeguards */
.choice-row { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:#fbfcfb; }
.choice-row input { width:18px; height:18px; min-height:18px; padding:0; margin:2px 0 0; flex:0 0 18px; accent-color:var(--accent); }
.choice-row > span { display:grid; gap:3px; }
.choice-row strong { font-size:.84rem; }
.choice-row small { color:var(--muted); font-size:.72rem; line-height:1.45; }
.listing-contact-settings { display:grid; gap:14px; padding:18px; border:1px solid var(--border); border-radius:16px; background:#fbfcfb; }
.listing-contact-settings__head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.listing-contact-settings__head h3 { margin:3px 0 0; font-size:1.05rem; }
.contact-seller-form { margin-top:10px; }
.seller-phone { display:grid; gap:7px; margin-bottom:10px; }
.seller-phone__revealed { background:var(--accent-pale); border-color:#b8ddd0; color:var(--accent-dark); font-variant-numeric:tabular-nums; letter-spacing:.01em; }
.seller-phone__revealed:hover { background:#e2f4ee; border-color:#9fcfbe; color:var(--accent-dark); }
.seller-phone__status { min-height:1em; margin:0; color:var(--muted); text-align:center; }

/* Listing detail — czytelna karta treści i zwijany opis */
.detail-main-card {
  min-width:0;
  padding:28px 30px 18px;
  border:1px solid var(--border);
  border-radius:20px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}
.detail-main-card > .detail-section:last-child { border-bottom:0; }

.description-collapsible {
  --description-collapsed-height:252px;
  position:relative;
}
.description-collapsible__viewport { position:relative; }
.description-collapsible.is-collapsed .description-collapsible__viewport {
  max-height:var(--description-collapsed-height);
  overflow:hidden;
}
.description-collapsible__fade {
  display:none;
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:82px;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.94) 58%, #fff 100%);
}
.description-collapsible.is-collapsed .description-collapsible__fade { display:block; }
.description-collapsible__toggle {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:10px;
  padding:5px 0;
  border:0;
  background:transparent;
  color:var(--accent-dark);
  font-size:.82rem;
  font-weight:800;
}
.description-collapsible__toggle:hover { color:var(--accent); }
.description-collapsible__toggle[hidden] { display:none!important; }
.description-collapsible__toggle [data-description-toggle-icon] { font-size:.95em; }

@media (max-width:640px) {
  .detail-main-card { padding:22px 18px 14px; border-radius:16px; }
  .description-collapsible { --description-collapsed-height:224px; }
}

/* ============================================================
   HOME DESKTOP — glass card + prosty panel formularza (v15)
   Delikatne dopracowanie zaokrągleń: zewnętrzna karta ma odrobinę
   większy radius, a wewnętrzny jasny panel dostaje minimalne,
   subtelne zaokrąglenie.
   ============================================================ */
@media (min-width: 901px) {
  .hero-home .search-card {
    position: relative;
    z-index: 2;
    isolation: isolate;
    padding: 30px 30px 20px;
    background: rgba(251,252,251,.78);
    border: 0;
    box-shadow: 0 14px 34px rgba(8,25,18,.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-home .search-card__heading {
    margin-bottom: 16px;
  }

  .hero-home .home-search {
    position: relative;
    padding: 0 0 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-home .home-search::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -12px;
    right: -12px;
    top: -10px;
    bottom: 40px;
    border-radius: 12px;
    background: rgba(251,252,251,.98);
    border: 1px solid rgba(222,229,224,.94);
    box-shadow: 0 10px 24px rgba(8,25,18,.05);
    pointer-events: none;
  }

  .hero-home .home-search > * {
    position: relative;
    z-index: 1;
  }

  .hero-home .search-card__note {
    margin-top: 16px;
    position: relative;
    z-index: 1;
  }

  .hero-home .segmented {
    background: rgba(236,241,238,.80);
    border: 1px solid rgba(255,255,255,.42);
  }
}

/* HOME — tylko warstwa dropdownu lokalizacji ponad resztą formularza */
@media (min-width: 901px) {
  .hero-home .home-search > .location-picker--inline {
    z-index: 20;
  }
}



/* ==========================================================
   Team / organization members
   ========================================================== */

.team-layout {
  display: grid;
  gap: 18px;
}

.team-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.team-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.team-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.team-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}


/* Invite */

.team-invite-card {
  padding-bottom: 20px;
}

.team-invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 760px;
}

.team-invite-field {
  margin: 0;
}

.team-invite-field input {
  min-height: 44px;
}

.team-invite-form .btn {
  min-height: 44px;
  white-space: nowrap;
}

.team-invite-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.5;
}


/* Members */

.team-members-panel {
  padding: 0;
  overflow: visible;
}

.team-members-panel > .team-section-head {
  padding: 22px 22px 0;
}

.team-member-list {
  display: grid;
}

.team-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
  border-top: 1px solid #edf1ee;
}

.team-member-card:last-child {
  border-radius: 0 0 20px 20px;
}

.team-member-card.is-suspended {
  background: #fafbfa;
}

.team-member-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.team-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--main);
  font-size: 1rem;
  font-weight: 800;
}

.team-member-copy {
  min-width: 0;
}

.team-member-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 4px;
}

.team-member-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.team-member-name h3 {
  margin: 0;
  font-size: .96rem;
  line-height: 1.3;
}

.team-member-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
}

.team-chip--owner,
.team-chip--admin {
  color: var(--main);
}

.team-chip--active {
  background: #eef8f2;
  border-color: #d6eadc;
  color: #31714a;
}

.team-chip--suspended {
  background: var(--danger-soft);
  border-color: #f6cccc;
  color: var(--danger);
}

.team-chip--self {
  background: white;
  color: var(--main);
}

.team-member-email {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: .79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member-email:hover {
  color: var(--main);
}

.team-member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .7rem;
}

.team-member-meta strong {
  color: var(--main);
  font-weight: 600;
}

.team-member-warning {
  color: var(--danger);
}


/* Actions */

.team-member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.team-role-form {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.team-role-form label {
  display: grid;
  gap: 4px;
}

.team-role-form label > span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.team-role-form select {
  min-width: 140px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.team-danger-details {
  position: relative;
}

.team-danger-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 2px;
  color: var(--danger);
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}

.team-danger-details > summary::-webkit-details-marker {
  display: none;
}

.team-danger-details > summary:hover {
  text-decoration: underline;
}

.team-danger-confirm {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 34px rgba(20,35,29,.13);
}

.team-danger-confirm strong {
  display: block;
  margin-bottom: 5px;
  font-size: .83rem;
}

.team-danger-confirm p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.team-empty {
  padding: 28px 22px;
  color: var(--muted);
  font-size: .85rem;
}


@media (max-width: 820px) {
  .team-member-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .team-member-actions {
    justify-content: flex-start;
    padding-left: 60px;
  }

  .team-danger-confirm {
    right: auto;
    left: 0;
  }
}


@media (max-width: 620px) {
  .team-invite-form {
    grid-template-columns: 1fr;
  }

  .team-invite-form .btn {
    width: 100%;
  }

  .team-member-card {
    padding: 17px;
  }

  .team-members-panel > .team-section-head {
    padding: 18px 17px 0;
  }

  .team-member-main {
    align-items: flex-start;
  }

  .team-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .team-member-heading {
    display: grid;
    gap: 7px;
  }

  .team-member-actions {
    display: grid;
    justify-content: stretch;
    padding-left: 54px;
  }

  .team-role-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-role-form select {
    width: 100%;
    min-width: 0;
  }

  .team-danger-details > summary {
    display: inline-block;
  }

  .team-danger-confirm {
    position: static;
    width: auto;
    margin-top: 8px;
  }
}


/* Team UX v2 */

.team-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
}

.team-add-details {
  position: relative;
}

.team-add-details > summary {
  list-style: none;
  cursor: pointer;
}

.team-add-details > summary::-webkit-details-marker {
  display: none;
}

.team-add-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  box-shadow: 0 16px 42px rgba(20,35,29,.14);
}

.team-add-popover > strong {
  display: block;
  margin-bottom: 4px;
  font-size: .92rem;
}

.team-add-popover > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
}

.team-add-form {
  display: grid;
  gap: 11px;
}

.team-add-form .field {
  margin: 0;
}

.team-add-form .btn {
  justify-self: start;
}

@media (max-width: 620px) {
  .team-section-head {
    align-items: center;
  }

  .team-header-actions {
    gap: 6px;
  }

  .team-add-popover {
    position: fixed;
    top: 50%;
    right: 18px;
    left: 18px;
    width: auto;
    transform: translateY(-50%);
  }

  .team-add-form .btn {
    width: 100%;
  }
}


/* Team UX v3 */

.team-manage-details {
  position: relative;
}

.team-manage-details > summary {
  list-style: none;
  cursor: pointer;
}

.team-manage-details > summary::-webkit-details-marker {
  display: none;
}

.team-manage-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  width: 310px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  box-shadow: 0 16px 42px rgba(20,35,29,.14);
}

.team-manage-head {
  display: grid;
  gap: 2px;
  padding-bottom: 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid #edf1ee;
}

.team-manage-head strong {
  font-size: .86rem;
}

.team-manage-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-manage-role {
  display: grid;
  gap: 10px;
}

.team-manage-role .field {
  margin: 0;
}

.team-manage-role .btn {
  justify-self: start;
}

.team-manage-danger {
  padding-top: 14px;
  margin-top: 15px;
  border-top: 1px solid #edf1ee;
}

.team-manage-danger summary {
  list-style: none;
  cursor: pointer;
  color: var(--danger);
  font-size: .73rem;
  font-weight: 700;
}

.team-manage-danger summary::-webkit-details-marker {
  display: none;
}

.team-manage-danger summary:hover {
  text-decoration: underline;
}

.team-danger-inline {
  padding-top: 10px;
}

.team-danger-inline p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .team-manage-popover {
    position: fixed;
    top: 50%;
    right: 18px;
    left: 18px;
    width: auto;
    transform: translateY(-50%);
  }
}
