
:root {
  --black: #0a0a0a;
  --ink: #151515;
  --muted: #77736f;
  --line: #ddd9d4;
  --line-soft: #ebe8e4;
  --paper: #fbfaf8;
  --warm: #f3f0eb;
  --red: #e1292f;
  --display: "Bodoni Moda", "Bodoni MT", Didot, Georgia, serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --content: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.content-wrap {
  width: min(calc(100% - 72px), var(--content));
  margin: 0 auto;
}

/* HEADER */

.topbar {
  height: 66px;
  background: #070707;
  color: #fff;
  position: relative;
  z-index: 20;
}

.topbar__inner {
  width: min(calc(100% - 72px), 1540px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 1fr 100px;
  align-items: center;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 19px;
}

.dm-logo,
.zaile-logo {
  font-family: var(--display);
  line-height: .88;
  font-weight: 500;
}

.dm-logo {
  font-size: 15px;
}

.zaile-logo {
  font-size: 25px;
  letter-spacing: .4px;
}

.zaile-logo span {
  color: var(--red);
}

.brand-separator {
  width: 1px;
  height: 31px;
  background: #555;
}

.topbar__nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.topbar__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
}

.topbar__nav a.active {
  color: var(--red);
}

.topbar__icons {
  justify-self: end;
  display: flex;
  gap: 22px;
  font-size: 22px;
}

/* HERO */

.hero {
  min-height: 620px;
  position: relative;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(250,248,244,.98) 0%, rgba(250,248,244,.94) 45%, rgba(236,236,232,.76) 100%);
  border-bottom: 1px solid #e4e0db;
}

.hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 35%, rgba(195,205,207,.42), transparent 31%),
    linear-gradient(90deg, transparent 0 53%, rgba(255,255,255,.35) 53% 54%, transparent 54% 100%);
}

.hero__glass {
  position: absolute;
  top: -60px;
  bottom: -50px;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  filter: blur(8px);
  opacity: .75;
}

.hero__glass--one {
  left: 54%;
}

.hero__glass--two {
  left: 63%;
  width: 70px;
}

.hero__line {
  position: absolute;
  right: 5%;
  border: 1px solid rgba(40,40,40,.13);
  border-bottom: 0;
}

.hero__line--one {
  width: 320px;
  height: 200px;
  bottom: 60px;
}

.hero__line--two {
  width: 160px;
  height: 130px;
  bottom: 60px;
  right: 19%;
}

.hero__inner {
  width: min(calc(100% - 72px), var(--content));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-top: 135px;
}

.hero__copy {
  width: min(760px, 62%);
}

.hero__copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 5vw, 78px);
  line-height: .94;
  letter-spacing: -2px;
  font-weight: 600;
  color: #111;
}

.hero__copy h1 span {
  color: var(--red);
}

.hero__lead {
  margin: 22px 0 20px;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -.8px;
  font-weight: 600;
  color: #111;
}

.hero__sublead {
  margin: 0 0 18px;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -.35px;
  font-weight: 600;
  color: #111;
}

.hero__note {
  margin: 0 0 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.28;
  letter-spacing: -.2px;
  font-weight: 400;
  color: #222;
}

.hero__closing {
  margin: 0;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(22px, 1.9vw, 34px);
  line-height: 1.08;
  letter-spacing: -.35px;
  font-weight: 600;
  color: #111;
}

/* SEARCH */

.search-shell {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -58px;
  transform: translateX(-50%);
  width: min(calc(100% - 72px), var(--content));
  min-height: 118px;
  background: rgba(255,255,255,.96);
  border: 1px solid #dedbd6;
  border-radius: 4px;
  box-shadow: 0 20px 55px rgba(33,28,23,.12);
  display: grid;
  grid-template-columns: 1fr 1px 1fr 320px;
  align-items: center;
  gap: 34px;
  padding: 24px 30px;
}

.search-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.9px;
  color: #77716a;
}

.budget-entry {
  display: flex;
  align-items: baseline;
}

.budget-entry input,
.city-combobox__input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: #151515;
  padding: 0;
}

.budget-entry input {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.budget-entry input::placeholder,
.city-combobox__input::placeholder {
  color: #96918a;
  opacity: 1;
}

.budget-currency {
  font-family: var(--display);
  font-size: 20px;
}

.field-underline {
  height: 1px;
  background: #cfc9c2;
  margin-top: 9px;
  position: relative;
}

.field-underline__dot {
  position: absolute;
  right: 10%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #202020;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.search-divider {
  width: 1px;
  height: 62px;
  background: #d7d2cc;
}

.city-combobox {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 28px 18px;
  align-items: center;
  min-height: 34px;
}

.city-combobox__input {
  font-family: var(--display);
  font-size: 23px;
}

.city-combobox__clear {
  border: 0;
  background: transparent;
  color: #777;
  font-size: 19px;
  line-height: 1;
}

.city-combobox__chevron {
  font-size: 18px;
  color: #777;
}

.city-dropdown {
  position: absolute;
  z-index: 70;
  top: 45px;
  left: -12px;
  right: -12px;
  background: #fff;
  border: 1px solid #d8d4cf;
  box-shadow: 0 18px 45px rgba(20,20,20,.14);
  max-height: 350px;
  overflow: hidden;
}

.city-dropdown__hint {
  padding: 10px 12px;
  font-size: 10px;
  color: #8a847d;
  letter-spacing: .5px;
  border-bottom: 1px solid #eeeae5;
}

.city-dropdown__options {
  max-height: 300px;
  overflow-y: auto;
}

.city-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eeeae5;
  background: #fff;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  color: #181818;
}

.city-option:hover {
  background: #f7f4f0;
}

.city-option__name {
  font-weight: 500;
}

.city-option__count {
  font-size: 11px;
  color: #88827b;
}

.primary-btn {
  min-height: 62px;
  border: 0;
  border-radius: 2px;
  background: #101010;
  color: #fff;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  box-shadow: 0 7px 17px rgba(0,0,0,.10);
}

.primary-btn__arrow {
  font-size: 22px;
  font-weight: 400;
}

/* STATS */

.results-stats {
  padding-top: 98px;
  background: #fff;
  border-bottom: 1px solid #ece9e4;
}

.results-stats__inner {
  min-height: 126px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.35fr;
  align-items: center;
}

.result-stat {
  text-align: center;
  border-right: 1px solid #dedbd5;
}

.result-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
  font-weight: 500;
}

.result-stat span {
  display: block;
  margin-top: 7px;
  color: #5f5a55;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.7px;
}

.government-note {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  color: #68635d;
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

.government-note__icon {
  width: 22px;
  height: 22px;
  border: 1px solid #aaa49c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
}

.compat-hidden {
  display: none;
}

/* SECTION HEADINGS */

.section-heading,
.developer-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h3,
.developer-header h3,
.city-budget-intro h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 44px;
  line-height: .98;
  font-weight: 500;
  letter-spacing: -1.6px;
}

.section-heading h3 em,
.developer-header h3 em {
  font-weight: 400;
}

.section-link {
  border: 0;
  background: transparent;
  padding: 0 0 3px;
  color: #4c4844;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .8px;
}

/* POSSIBILITIES — BEZ ZDJĘĆ */

.possibilities {
  padding-top: 65px;
  padding-bottom: 58px;
}

.possibility-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.possibility-card {
  min-height: 330px;
  border: 1px solid #dcd8d3;
  background: #fff;
  position: relative;
}

.possibility-card.featured {
  border-color: #e46e72;
  box-shadow: inset 0 0 0 1px rgba(225,41,47,.08);
}

.possibility-card__click {
  width: 100%;
  min-height: 330px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.possibility-card__top {
  min-height: 58px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid #ece9e5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.possibility-card__number {
  color: #8e8982;
  font-size: 9px;
  letter-spacing: 1px;
}

.possibility-card.featured .possibility-card__number {
  color: var(--red);
}

.possibility-card__top strong {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.possibility-card__body {
  flex: 1;
  min-height: 222px;
  padding: 22px 17px;
  background:
    linear-gradient(145deg, rgba(246,244,240,.75), rgba(255,255,255,0) 60%);
  display: flex;
  flex-direction: column;
}

.possibility-card__descriptor {
  color: #8d8780;
  font-size: 10px;
  margin-bottom: auto;
}

.possibility-card__metric {
  margin-top: 35px;
  font-family: var(--display);
  font-size: clamp(24px, 2vw, 33px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -1px;
}

.possibility-card__secondary {
  margin-top: 9px;
  display: flex;
  gap: 7px;
  color: #58534e;
  font-size: 11px;
}

.possibility-card__location {
  margin-top: 19px;
  color: #5d5852;
  font-size: 10px;
}

.possibility-card__investment {
  margin-top: 5px;
  color: #99938d;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.possibility-card__arrow {
  width: 34px;
  height: 34px;
  margin: 0 0 16px 17px;
  border: 1px solid #a9a39c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.possibility-card__empty {
  padding: 30px 16px;
  color: #888;
}

.loading-card {
  background:
    linear-gradient(90deg, #f5f2ee, #fff, #f5f2ee);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* CITY COMPARISON — GOTOWE POD ZDJĘCIA */

.city-budget-section {
  background:
    linear-gradient(90deg, #f2efe9, #faf8f4 45%, #eeeae3);
  border-top: 1px solid #e1ddd7;
  border-bottom: 1px solid #dedad3;
}

.city-budget-layout {
  min-height: 210px;
  display: grid;
  grid-template-columns: 245px 1fr 125px;
  align-items: stretch;
}

.city-budget-intro {
  padding: 38px 30px 28px 0;
  border-right: 1px solid #d7d2cc;
}

.city-budget-intro h3 {
  font-size: 31px;
}

.city-budget-intro p {
  margin: 14px 0 0;
  max-width: 180px;
  color: #5e5954;
  font-size: 11px;
  line-height: 1.4;
}

.city-comparison {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.city-card {
  min-width: 0;
  border-right: 1px solid #d7d2cc;
  position: relative;
  overflow: hidden;
}

.city-card__photo {
  height: 118px;
  margin: 20px 15px 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,255,255,.8), rgba(211,207,200,.55));
}

.city-card__photo::before,
.city-card__photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  border: 1px solid rgba(50,50,50,.18);
  border-bottom: 0;
}

.city-card__photo::before {
  left: 20%;
  width: 38%;
  height: 60%;
}

.city-card__photo::after {
  right: 17%;
  width: 25%;
  height: 78%;
}

.city-card__photo-placeholder {
  position: absolute;
  right: 8px;
  top: 8px;
  color: rgba(70,70,70,.36);
  font-size: 7px;
  letter-spacing: 1px;
}

/*
  Gdy dostarczysz zdjęcia miast, podmienimy tylko background-image:
  .city-card[data-city-card="Warszawa"] .city-card__photo { background-image: url(...); }
*/

.city-card__content {
  min-height: 70px;
  padding: 12px 15px 15px;
  text-align: center;
}

.city-card__content span {
  display: block;
  font-family: var(--display);
  font-size: 17px;
}

.city-card__content strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
}

.city-more {
  border: 0;
  background: transparent;
  color: #55504b;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .7px;
}

/* DEVELOPERS */

.developer-section {
  padding-top: 55px;
  padding-bottom: 0;
}

.developer-header {
  margin-bottom: 17px;
}

.developer-header h3 {
  font-size: 38px;
}

.sort-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.sort-pills button {
  border: 1px solid #ddd8d2;
  background: #fff;
  border-radius: 20px;
  padding: 8px 12px;
  color: #4e4944;
  font-size: 9px;
}

.sort-pills button.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.developer-table-wrap {
  border-top: 1px solid #d6d1ca;
  border-bottom: 1px solid #d6d1ca;
  overflow-x: auto;
}

.developer-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  background: transparent;
  font-size: 11px;
}

.developer-table thead th {
  padding: 11px 10px;
  border-bottom: 1px solid #d6d1ca;
  color: #6d6761;
  background: transparent;
  text-align: center;
  font-size: 8px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}

.developer-table thead th:first-child {
  text-align: left;
  padding-left: 18px;
}

.developer-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e6e2dd;
  text-align: center;
}

.developer-table td:first-child {
  text-align: left;
}

.developer-row:hover {
  background: #f8f5f1;
}

.dev-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  vertical-align: middle;
}

.dev-symbol {
  display: inline-flex;
  width: 31px;
  height: 31px;
  margin: 0 11px 0 6px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 600;
}

.dev-symbol--logo {
  background: #fff;
  border: 1px solid #e0dcd6;
  padding: 5px;
}

.dev-symbol--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.expand-btn {
  width: 27px;
  height: 27px;
  border: 0;
  background: transparent;
  color: #75706a;
  font-size: 18px;
}

.investment-panel-row td {
  padding: 0 !important;
  background: #faf8f5;
}

.investment-panel {
  margin: 0 18px 14px 60px;
  border: 1px solid #ddd8d2;
  background: #fff;
}

.investment-head,
.investment-line {
  display: grid;
  grid-template-columns: 2fr .8fr .75fr 1.2fr 1fr .9fr 64px;
  align-items: center;
}

.investment-head {
  background: #f3f0ec;
  font-size: 9px;
  font-weight: 600;
}

.investment-head > div,
.investment-line > div {
  padding: 9px;
  border-right: 1px solid #e6e2dd;
}

.investment-line {
  border-top: 1px solid #e6e2dd;
  font-size: 10px;
}

.investment-name {
  font-family: var(--display);
  font-size: 13px;
}

.apartment-panel {
  margin: 0 14px 14px;
  border: 1px solid #e0dcd6;
  background: #fff;
}

.apartment-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr .6fr .6fr 1fr 1fr 76px;
  font-size: 10px;
}

.apartment-row > div {
  padding: 8px;
  border-right: 1px solid #eeeae5;
  border-top: 1px solid #eeeae5;
}

.apartment-row.header {
  background: #f7f4f0;
  font-weight: 600;
}

.detail-link {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
}

.load-more-wrap {
  min-height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #77716b;
  font-size: 10px;
}

.load-more-btn {
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: #444;
  font-size: 10px;
}

/* FILTERS */

.filters-bar {
  min-height: 70px;
  margin-top: 12px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 160px 115px 120px 120px minmax(165px, 1fr) minmax(165px, 1fr) 110px 90px;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #ddd8d2;
}

.filters-bar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .7px;
}

.filters-bar select,
.filters-bar > input,
.smart-select__button {
  width: 100%;
  height: 39px;
  border: 1px solid #ddd8d2;
  background: #fff;
  padding: 0 11px;
  color: #514c47;
  font-size: 10px;
}

.smart-select {
  position: relative;
}

.smart-select__button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.smart-select__panel {
  position: absolute;
  z-index: 60;
  bottom: 46px;
  left: 0;
  width: 350px;
  background: #fff;
  border: 1px solid #d7d2cc;
  box-shadow: 0 17px 45px rgba(0,0,0,.12);
  padding: 10px;
}

.smart-select__panel input {
  width: 100%;
  height: 36px;
  border: 1px solid #d7d2cc;
  padding: 0 9px;
  outline: 0;
}

.smart-select__meta {
  padding: 8px 2px;
  color: #777;
  font-size: 9px;
}

.smart-select__options {
  max-height: 300px;
  overflow: auto;
}

.smart-option {
  width: 100%;
  border: 0;
  border-top: 1px solid #eeeae5;
  background: #fff;
  padding: 8px 5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 10px;
}

.smart-option:hover {
  background: #f6f3ef;
}

.smart-option small {
  color: #888;
}

.filter-apply {
  height: 39px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #68625c;
  font-size: 9px;
}

/* FOOTER */

.page-footer {
  margin-top: 12px;
  background: #111;
  color: #aaa;
}

.page-footer__inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
}

.page-footer__inner nav {
  display: flex;
  gap: 24px;
}

.page-footer__inner a {
  color: #aaa;
  text-decoration: none;
}

/* MODAL */

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal__box {
  position: absolute;
  top: 35px;
  right: 35px;
  bottom: 35px;
  width: min(520px, calc(100% - 40px));
  overflow: auto;
  background: #fff;
  padding: 28px;
}

.modal__box h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 34px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 29px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item {
  border-bottom: 1px solid #eeeae5;
  padding: 9px 0;
}

.detail-item small {
  display: block;
  color: #8a847d;
  margin-bottom: 4px;
}

.loading-line {
  padding: 28px !important;
  color: #7c766f;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .topbar__inner {
    grid-template-columns: 270px 1fr 70px;
  }

  .topbar__nav {
    gap: 20px;
  }

  .search-shell {
    grid-template-columns: 1fr 1px 1fr 260px;
  }

  .possibility-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .city-budget-layout {
    grid-template-columns: 210px 1fr;
  }

  .city-more {
    display: none;
  }

  .filters-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .content-wrap,
  .hero__inner,
  .search-shell,
  .topbar__inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .topbar__nav {
    display: none;
  }

  .topbar__inner {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 600px;
  }

  .hero__copy {
    width: 100%;
  }

  .hero__copy h1 {
    font-size: 57px;
  }

  .search-shell {
    bottom: -145px;
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 20px;
  }

  .search-divider {
    display: none;
  }

  .results-stats {
    padding-top: 185px;
  }

  .results-stats__inner {
    grid-template-columns: 1fr 1fr;
    padding: 22px 0;
    gap: 20px 0;
  }

  .government-note {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
  }

  .possibility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .city-budget-layout {
    grid-template-columns: 1fr;
  }

  .city-budget-intro {
    border-right: 0;
    border-bottom: 1px solid #d7d2cc;
  }

  .city-comparison {
    grid-template-columns: 1fr 1fr;
  }

  .developer-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero__inner {
    padding-top: 90px;
  }

  .hero__copy h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }

  .hero__copy h2 {
    font-size: 27px;
  }

  .section-heading h3,
  .developer-header h3 {
    font-size: 34px;
  }

  .possibility-grid,
  .city-comparison {
    grid-template-columns: 1fr;
  }

  .result-stat {
    border-right: 0;
  }

  .filters-bar {
    grid-template-columns: 1fr 1fr;
  }

  .filters-bar__title {
    grid-column: 1 / -1;
  }

  .smart-select__panel {
    width: min(340px, 90vw);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   V9 — zdjęcia miast + filtry nad tabelą + normalny font tabeli
   ================================================================ */

/* Sekcja pokazuje dokładnie 5 miast. */
.city-budget-layout {
  grid-template-columns: 230px 1fr;
}

.city-comparison {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.city-card__photo {
  height: 150px;
  margin: 18px 10px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
}

/* Usuwamy wcześniejsze sztuczne kontury budynków. */
.city-card__photo::before,
.city-card__photo::after {
  display: none;
}

.city-card__content {
  min-height: 66px;
  padding: 10px 10px 14px;
}

.city-card__content span {
  font-family: var(--display);
  font-size: 16px;
}

.city-card__content strong {
  font-family: var(--display);
  font-size: 23px;
}

/* Drobne kadrowanie dla konkretnych zdjęć. */
.city-card[data-city-card="Warszawa"] .city-card__photo {
  background-position: center 48%;
}

.city-card[data-city-card="Wrocław"] .city-card__photo {
  background-position: center 58%;
}

.city-card[data-city-card="Kraków"] .city-card__photo {
  background-position: center 50%;
}

.city-card[data-city-card="Katowice"] .city-card__photo {
  background-position: center 55%;
}

.city-card[data-city-card="Gdańsk"] .city-card__photo {
  background-position: center 52%;
}

/* Pasek filtrów jest teraz bezpośrednio pod nagłówkiem deweloperów. */
.developer-header {
  margin-bottom: 14px;
}

.filters-bar {
  margin-top: 0;
  margin-bottom: 14px;
  border-top: 1px solid #ddd8d2;
  border-bottom: 1px solid #ddd8d2;
}

/*
  TYLKO tabela wyników ma zwykły font Inter.
  Nagłówki sekcji, miasta i reszta strony zachowują Bodoni.
*/
.developer-table,
.developer-table th,
.developer-table td,
.developer-table button,
.developer-table .dev-name,
.developer-table .investment-name,
.developer-table .investment-head,
.developer-table .investment-line,
.developer-table .apartment-row,
.developer-table .detail-link {
  font-family: var(--sans) !important;
}

.developer-table .dev-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.investment-name {
  font-size: 11px;
  font-weight: 600;
}

.developer-table td {
  font-size: 11px;
}

.developer-table thead th {
  font-size: 8px;
  font-weight: 600;
}

/* Na mniejszych ekranach zdjęcia miast pozostają czytelne. */
@media (max-width: 1180px) {
  .city-comparison {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .city-card {
    min-width: 150px;
  }
}

@media (max-width: 860px) {
  .city-budget-layout {
    grid-template-columns: 1fr;
  }

  .city-comparison {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
  }
}

@media (max-width: 560px) {
  .city-comparison {
    display: flex;
    overflow-x: auto;
  }

  .city-card {
    min-width: 210px;
  }
}


/* ================================================================
   V10 — dynamiczny suwak budżetu + subtelniejsze filtry
   ================================================================ */

/* SUWAK BUDŻETU */
.budget-slider-wrap {
  margin-top: 9px;
  height: 18px;
  display: flex;
  align-items: center;
}

.budget-slider {
  --slider-progress: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.budget-slider::-webkit-slider-runnable-track {
  height: 1px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      #111 0%,
      #111 var(--slider-progress),
      #cfc9c2 var(--slider-progress),
      #cfc9c2 100%
    );
}

.budget-slider::-moz-range-track {
  height: 1px;
  border: 0;
  border-radius: 999px;
  background: #cfc9c2;
}

.budget-slider::-moz-range-progress {
  height: 1px;
  border: 0;
  border-radius: 999px;
  background: #111;
}

.budget-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -6.5px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.65);
  transition:
    transform .14s ease,
    box-shadow .14s ease;
}

.budget-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.65);
  transition:
    transform .14s ease,
    box-shadow .14s ease;
}

.budget-slider:hover::-webkit-slider-thumb,
.budget-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(17,17,17,.06);
}

.budget-slider:hover::-moz-range-thumb,
.budget-slider:focus-visible::-moz-range-thumb {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(17,17,17,.06);
}

/* FILTRY — mniej "HTML-owo", bardziej editorial/premium */
.filters-bar {
  gap: 10px;
  padding: 12px 0 14px;
  background: transparent;
}

.filters-bar select,
.filters-bar > input,
.smart-select__button {
  height: 43px;
  border: 1px solid #dedad4;
  border-radius: 9px;
  background: rgba(255,255,255,.82);
  color: #37332f;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  outline: none;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.filters-bar select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #7b756f 50%),
    linear-gradient(135deg, #7b756f 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 18px,
    calc(100% - 13px) 18px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.filters-bar > input::placeholder,
.smart-select__panel input::placeholder {
  color: #8d8781;
  opacity: 1;
  font-weight: 400;
}

.filters-bar select:hover,
.filters-bar > input:hover,
.smart-select__button:hover {
  border-color: #c5bfb8;
  background-color: #fff;
}

.filters-bar select:focus,
.filters-bar > input:focus,
.smart-select__button:focus,
.smart-select__button:focus-visible {
  border-color: #a9a29a;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(55,51,47,.045);
  outline: none;
}

/* Chrome/Edge: usunięcie zbyt mocnego natywnego focus ring */
.filters-bar select:focus-visible,
.filters-bar > input:focus-visible {
  outline: none;
}

.smart-select__button {
  border-radius: 9px;
  font-weight: 400;
}

.smart-select__button > span:last-child {
  color: #827c75;
  font-size: 13px;
  transform: translateY(-1px);
}

.smart-select__panel {
  bottom: 50px;
  border: 1px solid #ddd8d2;
  border-radius: 11px;
  box-shadow: 0 20px 55px rgba(20,17,14,.12);
  padding: 11px;
  overflow: hidden;
}

.smart-select__panel input {
  height: 40px;
  border: 1px solid #dedad4;
  border-radius: 8px;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  outline: none;
}

.smart-select__panel input:focus {
  border-color: #a9a29a;
  box-shadow: 0 0 0 3px rgba(55,51,47,.045);
}

.smart-select__meta {
  padding: 9px 4px 8px;
  font-size: 9px;
  color: #8a847e;
}

.smart-select__options {
  border-top: 1px solid #eeeae5;
}

.smart-option {
  min-height: 39px;
  border: 0;
  border-bottom: 1px solid #f0ede9;
  background: #fff;
  padding: 8px 7px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  color: #3c3834;
  transition: background-color .12s ease;
}

.smart-option:hover {
  background: #f7f4f0;
}

.smart-option small {
  color: #9a948d;
  font-weight: 400;
}

.filter-apply {
  height: 43px;
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .6px;
  transition:
    background-color .16s ease,
    transform .16s ease;
}

.filter-apply:hover {
  background: #2a2927;
}

.filter-apply:active {
  transform: translateY(1px);
}

.link-btn {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: .2px;
}

.filters-bar__title {
  color: #4f4a45;
  font-weight: 500;
}

/* Usuwamy spin-buttony z pól metrażu, żeby wyglądały czyściej. */
.filters-bar input[type="number"]::-webkit-inner-spin-button,
.filters-bar input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filters-bar input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 1180px) {
  .filters-bar {
    gap: 9px;
  }
}


/* ================================================================
   V11 — ostrzejsze przyciski i mniej "HTML-owe" pole miasta
   ================================================================ */

/* Ogólnie mniej zaokrągleń w kontrolkach i przyciskach */
.primary-btn,
.filter-apply,
.load-more-btn,
.smart-select__button,
.filters-bar select,
.filters-bar > input,
.smart-select__panel input,
.city-dropdown,
.city-option {
  border-radius: 2px !important;
}

/* Przyciski sortowania również bez "pastylek" */
.sort-pills button {
  border-radius: 2px !important;
  padding: 8px 12px;
}

/* Pole miasta w hero — bardziej typograficzne, mniej formularzowe */
.city-combobox {
  grid-template-columns: 1fr 22px 16px;
  min-height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.city-combobox__input {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .1px;
  color: #2f2b27;
  line-height: 1.2;
}

.city-combobox__input::placeholder {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: #918b84;
  opacity: 1;
}

.city-combobox__input:focus {
  outline: none;
  box-shadow: none;
}

.city-combobox__clear {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: #8a847d;
}

.city-combobox__chevron {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: #8a847d;
}

/* Dropdown miasta */
.city-dropdown {
  top: 43px;
  left: -6px;
  right: -6px;
  border: 1px solid #d8d3cd;
  background: rgba(255,255,255,.985);
  box-shadow: 0 16px 40px rgba(20,18,16,.10);
}

.city-dropdown__hint {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  color: #8f8982;
  letter-spacing: .3px;
}

.city-option {
  min-height: 40px;
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: #393530;
}

.city-option__name {
  font-weight: 400;
}

.city-option__count {
  font-size: 9px;
  font-weight: 400;
  color: #9b958e;
}

.city-option:hover {
  background: #f7f4f0;
}

/* Dolne filtry: zachowujemy delikatność, ale bez pigułek */
.filters-bar select,
.filters-bar > input,
.smart-select__button,
.filter-apply {
  border-radius: 2px !important;
}

.filters-bar select,
.filters-bar > input,
.smart-select__button {
  font-size: 10.5px;
  font-weight: 400;
}

.smart-select__panel {
  border-radius: 2px !important;
}

.smart-option {
  border-radius: 0 !important;
}

/* Nieco subtelniejszy focus bez "grubej ramy" */
.filters-bar select:focus,
.filters-bar > input:focus,
.smart-select__button:focus,
.smart-select__button:focus-visible,
.smart-select__panel input:focus {
  border-color: #b8b1aa;
  box-shadow: 0 0 0 2px rgba(55,51,47,.025);
}

/* Górny przycisk bardziej prostokątny */
.primary-btn {
  border-radius: 1px !important;
}


/* ================================================================
   V12 — kolumna Witryna zamiast Piętro
   ================================================================ */

.website-link {
  color: #25211e;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid #b9b2aa;
  padding-bottom: 1px;
  transition:
    color .14s ease,
    border-color .14s ease;
}

.website-link span {
  margin-left: 2px;
  font-size: 11px;
}

.website-link:hover {
  color: #d82028;
  border-bottom-color: #d82028;
}

.website-missing {
  color: #a19b94;
  font-family: var(--sans);
  font-weight: 400;
}


/* ================================================================
   V13 — Strona WWW na końcu tabeli + bez pola Pokoje
   ================================================================ */

/* Nr / Metraż / Cena / Cena za m² / Strona WWW / Akcja */
.apartment-row {
  grid-template-columns: 1.15fr .8fr 1.08fr 1fr 1.35fr 82px !important;
}

.details-website-link {
  color: #22201d;
  text-decoration: none;
  border-bottom: 1px solid #b9b2aa;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
}

.details-website-link:hover {
  color: #d82028;
  border-bottom-color: #d82028;
}

/* Po usunięciu "Liczba pokoi" pozostałe filtry dostają więcej miejsca. */
.filters-bar {
  grid-template-columns:
    160px
    135px
    135px
    minmax(190px, 1fr)
    minmax(190px, 1fr)
    110px
    90px !important;
}


/* ================================================================
   V14 — Strona WWW w szczegółach + układ inwestycji
   ================================================================ */

/*
  Rozwinięty deweloper:
  Inwestycja | Mieszkania | Zakres cen | Zakres metrażu |
  Największe | Strona WWW | Pokaż
*/
.investment-head,
.investment-line {
  grid-template-columns:
    2fr
    .75fr
    1.25fr
    1.05fr
    .9fr
    1fr
    68px !important;
}

/* Strona WWW w panelu szczegółów zajmuje całą szerokość. */
.detail-item--full {
  grid-column: 1 / -1;
  width: 100%;
}

.detail-item--full strong {
  display: block;
  width: 100%;
}

/*
  Pełny URL ma wyglądać tak samo jak pozostałe wartości
  w szczegółach — bez osobnej, "technicznej" typografii.
*/
.detail-item--full .details-website-link {
  display: block;
  width: 100%;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  border-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-item--full .details-website-link:hover {
  color: #d82028;
  border-bottom: 0;
}

/* Strona WWW w rozwiniętych inwestycjach pozostaje jako "Witryna ↗". */
.investment-line .website-link {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}


/* ================================================================
   V14.1 — przesłane zdjęcie hero + sortowanie pod filtrami
   ================================================================ */

.hero {
  background:
    linear-gradient(
      90deg,
      rgba(248, 244, 239, .28) 0%,
      rgba(248, 244, 239, .15) 34%,
      rgba(255, 255, 255, .03) 64%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("/frontend/hero-apartment.png") center center / cover no-repeat;
}

/* Usuwamy sztuczne elementy z poprzedniego tła — teraz pracuje zdjęcie. */
.hero__background::before,
.hero__glass,
.hero__line {
  display: none !important;
}

/* Lekka warstwa pod tekstem, bez zasłaniania zdjęcia. */
.hero__background {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 242, .22) 0%,
      rgba(250, 247, 242, .10) 38%,
      rgba(250, 247, 242, 0) 68%
    );
}

/*
  Sortowanie jest teraz:
  1. nagłówek
  2. filtry: metraż / deweloper / inwestycja / zastosuj
  3. sortowanie
  4. tabela
*/
.developer-header {
  margin-bottom: 14px;
}

.filters-bar {
  margin-bottom: 10px;
}

.developer-sort-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 12px;
  border-bottom: 1px solid #ddd8d2;
}

.developer-sort-row .sort-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.developer-sort-row .sort-pills button {
  height: 34px;
  border-radius: 2px !important;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
}

.developer-sort-row .sort-pills button.active {
  font-weight: 500;
}

@media (max-width: 860px) {
  .hero {
    background-position: 58% center;
  }

  .developer-sort-row {
    justify-content: flex-start;
  }

  .developer-sort-row .sort-pills {
    justify-content: flex-start;
  }
}




/* ================================================================
   V14.2 — ustawienia użytkownika
   ================================================================ */

.hero {
  min-height: 680px;
  background-position: center center;
}

.search-shell {
  bottom: 60px !important;
}

.results-stats {
  padding-top: 18px !important;
}

@media (max-width: 1180px) {
  .hero {
    min-height: 620px;
  }

  .search-shell {
    bottom: 30px !important;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 850px;
    background-position: 60% center;
  }

  .search-shell {
    bottom: 24px !important;
  }

  .results-stats {
    padding-top: 18px !important;
  }
}


/* ================================================================
   V14.3 — szybkie filtry w górnej wyszukiwarce
   ================================================================ */

/* Wyszukiwarka ma miejsce na drugi rząd małych filtrów. */
.search-shell {
  min-height: 148px;
  padding-top: 20px;
  padding-bottom: 17px;
  align-items: center;
}

.search-field {
  min-width: 0;
}

.search-field--budget,
.search-field--city {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-divider {
  height: 94px;
}

.primary-btn {
  align-self: center;
}

/* Szybkie filtry pod ceną / miastem */
.hero-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  min-height: 24px;
  flex-wrap: nowrap;
}

.hero-quick button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(61, 56, 51, .30);
  border-radius: 0;
  background: transparent;
  color: #625c56;
  padding: 4px 1px 3px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
  transition:
    color .14s ease,
    border-color .14s ease,
    background-color .14s ease;
}

.hero-quick button:hover {
  color: #111;
  border-bottom-color: #111;
}

.hero-quick button.selected {
  color: #111;
  border-bottom: 2px solid #111;
  font-weight: 500;
}

.hero-quick--budget {
  justify-content: flex-start;
}

.hero-quick--city {
  justify-content: flex-start;
  gap: 8px;
}

/* Zmniejszamy lekko odstęp pod polem miasta, żeby chipy były blisko inputa. */
.search-field--city .field-underline {
  margin-top: 8px;
}

/* Pole budżetu nadal ma funkcjonalny suwak. */
.budget-slider-wrap {
  margin-top: 7px;
}

/* Szybkie filtry nie uruchamiają wyszukiwania automatycznie.
   Wyszukiwanie startuje dopiero po głównym przycisku. */

@media (max-width: 1180px) {
  .search-shell {
    min-height: 154px;
    gap: 24px;
  }

  .hero-quick {
    gap: 5px;
  }

  .hero-quick button {
    font-size: 8px;
  }
}

@media (max-width: 860px) {
  .search-shell {
    min-height: auto;
  }

  .search-divider {
    display: none;
  }

  .hero-quick {
    flex-wrap: wrap;
  }

  .hero-quick button {
    font-size: 9px;
  }
}


/* ================================================================
   V14.4 — większe szybkie filtry + zakres budżetu OD–DO
   ================================================================ */

.hero-quick {
  gap: 10px;
  margin-top: 12px;
  min-height: 30px;
}

.hero-quick button {
  font-size: 11.5px;
  padding: 5px 2px 4px;
  letter-spacing: .05px;
}

.hero-quick--city {
  gap: 14px;
}

.budget-range-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.budget-range-value {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
}

.budget-range-value__label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #8a847d;
}

.budget-range-value input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: #151515;
}

.budget-range-value input::placeholder {
  color: #aaa49d;
  opacity: 1;
}

.budget-range-separator {
  align-self: center;
  color: #aaa49d;
  font-size: 15px;
  transform: translateY(3px);
}

.budget-range-value .budget-currency {
  font-size: 16px;
}

.budget-range-slider {
  position: relative;
  height: 22px;
  margin-top: 7px;
}

.budget-range-slider__track,
.budget-range-slider__fill {
  position: absolute;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  pointer-events: none;
}

.budget-range-slider__track {
  left: 0;
  right: 0;
  background: #cfc9c2;
}

.budget-range-slider__fill {
  left: 0;
  right: 0;
  background: #111;
}

.budget-range-slider__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}

.budget-range-slider__input::-webkit-slider-runnable-track {
  height: 1px;
  background: transparent;
  border: 0;
}

.budget-range-slider__input::-moz-range-track {
  height: 1px;
  background: transparent;
  border: 0;
}

.budget-range-slider__input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -7px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 0 0 3px rgba(255,255,255,.65);
}

.budget-range-slider__input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 0 0 3px rgba(255,255,255,.65);
}

.budget-range-slider__input--min {
  z-index: 3;
}

.budget-range-slider__input--max {
  z-index: 4;
}

@media (max-width: 1180px) {
  .hero-quick button {
    font-size: 10.5px;
  }

  .budget-range-value input {
    font-size: 20px;
  }
}

@media (max-width: 860px) {
  .hero-quick button {
    font-size: 11px;
  }

  .budget-range-values {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .budget-range-separator {
    display: none;
  }
}


/* ================================================================
   V14.5 — dopracowany budżet i szybkie filtry
   ================================================================ */

/* Pole DO jest mocniej zaakcentowane i bez drugiego "zł". */
.budget-range-value--max {
  grid-template-columns: auto minmax(0, 1fr);
}

.budget-range-value--max input {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.5px;
}

.budget-range-value--max .budget-range-value__label {
  transform: translateY(-1px);
}

/*
  Szybkie filtry są równomiernie rozciągnięte od lewej do prawej
  w obrębie swojego pola.
*/
.hero-quick {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 12px;
}

.hero-quick--budget {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-quick--city {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Prostokątne przyciski zamiast podkreślonego tekstu. */
.hero-quick button {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 0 8px;
  border: 1px solid #d4cec7;
  border-radius: 2px !important;
  background: rgba(255,255,255,.74);
  color: #4f4943;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
  transition:
    border-color .14s ease,
    background-color .14s ease,
    color .14s ease;
}

.hero-quick button:hover {
  border-color: #aaa39c;
  background: #fff;
  color: #111;
}

.hero-quick button.selected {
  border-color: #111;
  background: #111;
  color: #fff;
  font-weight: 500;
}

/* Zachowujemy czytelny odstęp od suwaka. */
.hero-quick--budget {
  margin-top: 13px;
}

.hero-quick--city {
  margin-top: 13px;
}

/* Wartość DO ma nieco więcej miejsca, żeby była czytelniejsza. */
.budget-range-values {
  grid-template-columns: minmax(0, .92fr) 18px minmax(0, 1.08fr);
}

/* Drobna korekta pionowego układu całej wyszukiwarki. */
.search-shell {
  min-height: 154px;
}

@media (max-width: 1180px) {
  .hero-quick {
    gap: 6px;
  }

  .hero-quick button {
    min-height: 30px;
    padding: 0 6px;
    font-size: 9.5px;
  }

  .budget-range-value--max input {
    font-size: 24px;
  }
}

@media (max-width: 860px) {
  .hero-quick--budget,
  .hero-quick--city {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-quick button {
    font-size: 10px;
  }

  .budget-range-values {
    grid-template-columns: 1fr;
  }

  .budget-range-value--max {
    grid-template-columns: auto minmax(0, 1fr);
  }
}


/* ================================================================
   V14.6 — wyrównanie górnej wyszukiwarki
   ================================================================ */

/*
  Budżet i Miasto mają identyczny układ pionowy:
  1. nagłówek
  2. główne pole
  3. linia / suwak
  4. szybkie przyciski
*/
.search-field--budget,
.search-field--city {
  align-self: center;
  display: grid !important;
  grid-template-rows: 16px 38px 22px 31px;
  row-gap: 5px;
  min-width: 0;
  justify-content: stretch;
}

.search-field--budget > label,
.search-field--city > label {
  margin: 0 !important;
  align-self: start;
  height: 16px;
  line-height: 16px;
}

/* Główne pola dokładnie na tej samej wysokości. */
.budget-range-values,
.city-combobox {
  align-self: center;
  height: 38px;
  min-height: 38px;
  margin: 0;
}

/* Budżet: OD — DO ... zł */
.budget-range-values {
  display: grid;
  grid-template-columns: minmax(0, .92fr) 18px minmax(0, 1.08fr);
  gap: 8px;
  align-items: center;
}

.budget-range-value--min {
  grid-template-columns: auto minmax(0, 1fr);
}

.budget-range-value--max {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.budget-range-value {
  height: 38px;
  align-items: center;
}

.budget-range-value__label {
  align-self: center;
  transform: none !important;
}

.budget-range-value input {
  align-self: center;
  line-height: 1;
}

.budget-range-value--max input {
  font-size: 28px;
  font-weight: 600;
}

.budget-currency--final {
  align-self: center;
  margin-left: 2px;
  font-size: 17px;
}

/*
  Suwak budżetu i linia pod miastem zajmują ten sam rząd
  i mają środek dokładnie na tej samej wysokości.
*/
.budget-range-slider,
.search-field--city .field-underline {
  align-self: center;
  width: 100%;
  margin: 0 !important;
}

.budget-range-slider {
  height: 22px;
}

.search-field--city .field-underline {
  height: 1px;
}

/* Oba rzędy szybkich filtrów mają identyczny start i wysokość. */
.hero-quick,
.hero-quick--budget,
.hero-quick--city {
  align-self: end;
  width: 100%;
  height: 31px;
  min-height: 31px;
  margin: 0 !important;
}

.hero-quick {
  display: grid;
  gap: 8px;
}

.hero-quick--budget {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-quick--city {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hero-quick button {
  height: 31px;
  min-height: 31px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Separator pionowy też wizualnie centrujemy względem obu pól. */
.search-divider {
  align-self: center;
  height: 112px;
}

/*
  Główna siatka wyszukiwarki nie rozciąga już jednej kolumny
  inaczej niż drugiej.
*/
.search-shell {
  align-items: center !important;
}

/* Miasto: input jest pionowo wycentrowany tak samo jak ceny. */
.city-combobox__input {
  align-self: center;
  line-height: 38px;
  height: 38px;
}

.city-combobox__clear,
.city-combobox__chevron {
  align-self: center;
}

/* Mniejsze ekrany: zachowujemy wspólną linię tak długo, jak się mieści. */
@media (max-width: 1180px) {
  .search-field--budget,
  .search-field--city {
    grid-template-rows: 16px 38px 22px 31px;
  }

  .hero-quick {
    gap: 6px;
  }

  .budget-range-value--max input {
    font-size: 25px;
  }
}

@media (max-width: 860px) {
  .search-field--budget,
  .search-field--city {
    display: grid !important;
    grid-template-rows: auto auto auto auto;
    row-gap: 8px;
  }

  .hero-quick,
  .hero-quick--budget,
  .hero-quick--city {
    height: auto;
    min-height: 31px;
  }
}


/* ================================================================
   V14.7 — bez myślnika przy DO i bez strzałki przy mieście
   ================================================================ */

/* Po usunięciu separatora OD i DO stoją obok siebie bez dodatkowej kolumny. */
.budget-range-values {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
  gap: 14px !important;
}

.budget-range-separator {
  display: none !important;
}

/* Pole miasta nie rezerwuje już miejsca na strzałkę. */
.city-combobox {
  grid-template-columns: 1fr 22px !important;
}

.city-combobox__chevron {
  display: none !important;
}


/* ================================================================
   V14.8 — średnia i mediana ceny m² dla miasta
   ================================================================ */

/*
  Cztery dotychczasowe statystyki + prawa sekcja z dwiema
  statystykami miasta.
*/
.results-stats__inner {
  grid-template-columns: repeat(4, 1fr) 1.65fr !important;
}

.city-m2-stats {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.city-m2-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}

.city-m2-stat + .city-m2-stat {
  border-left: 1px solid #dedbd5;
}

.city-m2-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.city-m2-stat span {
  display: block;
  margin-top: 7px;
  color: #5f5a55;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.35px;
}

/* Stary komunikat nie jest już używany. */
.government-note,
.government-note__icon {
  display: none !important;
}

@media (max-width: 1180px) {
  .results-stats__inner {
    grid-template-columns: repeat(4, 1fr) 1.5fr !important;
  }

  .city-m2-stat {
    padding: 0 10px;
  }

  .city-m2-stat strong {
    font-size: 21px;
  }

  .city-m2-stat span {
    font-size: 7px;
  }
}

@media (max-width: 860px) {
  .results-stats__inner {
    grid-template-columns: 1fr 1fr !important;
  }

  .city-m2-stats {
    grid-column: 1 / -1;
    min-height: 95px;
    border-top: 1px solid #dedbd5;
  }
}


/* ================================================================
   V14.9 — odchylenie ceny m² od mediany miasta
   ================================================================ */

/* Nr | Metraż | Cena | Cena/m² | Odchylenie | WWW | Akcja */
.apartment-row {
  grid-template-columns:
    1.05fr
    .72fr
    1fr
    .9fr
    1.1fr
    1.12fr
    82px !important;
}

.median-deviation {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.median-deviation--positive {
  color: #16813b;
}

.median-deviation--negative {
  color: #d82028;
}

.median-deviation--neutral {
  color: #77716b;
}

@media (max-width: 1180px) {
  .apartment-row {
    grid-template-columns:
      1fr
      .7fr
      .96fr
      .88fr
      1.02fr
      1.05fr
      78px !important;
  }
}


/* ================================================================
   V14.10 — kontekst wyniku + miasto pod średnią/medianą
   ================================================================ */

.results-context-title-wrap {
  padding-top: 14px;
  padding-bottom: 0;
}

.results-context-title {
  margin-left: 14px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #26221f;
}

/* Sekcja statystyk ma teraz tytuł nad sobą. */
.results-stats__inner {
  min-height: 112px;
}

/* "w <miasto>" pod średnią i medianą */
.city-m2-stat small {
  display: block;
  margin-top: 4px;
  color: #8b857f;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .2px;
  text-transform: none;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .results-context-title {
    margin-left: 0;
    line-height: 1.35;
  }
}


/* ================================================================
   V14.13 — wyrównanie średniej i mediany ze statystykami
   ================================================================ */

/*
  Średnia i mediana mają teraz dokładnie ten sam poziom:
  1. wartość liczbowa
  2. etykieta
  jak MIESZKANIA / INWESTYCJI / DEWELOPERÓW.
  Dopiero trzeci wiersz pokazuje "w Warszawa" / "w całej bazie".
*/
.city-m2-stat {
  justify-content: flex-start !important;
  padding-top: 0 !important;
}

.city-m2-stat strong {
  height: 32px;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  margin: 0 !important;
  line-height: 1 !important;
}

.city-m2-stat span {
  height: 18px;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  margin-top: 7px !important;
  line-height: 1.2;
}

.city-m2-stat small {
  height: 16px;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  margin-top: 3px !important;
  line-height: 1.2;
}

/* Rezerwujemy identyczną górną przestrzeń dla wszystkich statystyk. */
.result-stat,
.city-m2-stat {
  min-height: 72px;
}

/* Pierwsze cztery statystyki zaczynają się w tym samym miejscu. */
.result-stat strong {
  height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
}

.result-stat span {
  height: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 7px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .city-m2-stat strong,
  .result-stat strong {
    height: 30px;
  }
}


/* ================================================================
   V14.14 — ciaśniejszy odstęp pod ŚREDNIA/MEDIANA CENA / M²
   ================================================================ */

/* Usuwamy pustą wizualnie linię między etykietą a "w mieście / w całej bazie". */
.city-m2-stat span {
  height: auto !important;
  margin-bottom: 0 !important;
}

.city-m2-stat small {
  height: auto !important;
  margin-top: 0 !important;
  transform: translateY(-2px);
}


/* ================================================================
   V14.15 — nowy układ tekstu hero
   ================================================================ */
@media (max-width: 1180px) {
  .hero__copy {
    width: min(760px, 68%);
  }
}

@media (max-width: 860px) {
  .hero__copy {
    width: 100%;
  }

  .hero__copy h1 {
    font-size: clamp(40px, 10vw, 56px);
    letter-spacing: -1.4px;
  }

  .hero__lead {
    font-size: clamp(22px, 6vw, 32px);
  }

  .hero__sublead,
  .hero__closing {
    font-size: clamp(19px, 5vw, 26px);
  }

  .hero__note {
    font-size: clamp(15px, 4vw, 20px);
  }
}


/* ================================================================
   V14.16 — białe menu Developer Magazine
   ================================================================ */

.topbar {
  height: 76px !important;
  background: #fff !important;
  color: #111 !important;
  border-bottom: 1px solid #e8e4df;
  position: relative;
  z-index: 30;
}

.topbar__inner {
  width: min(calc(100% - 72px), 1540px) !important;
  height: 100%;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(330px, 470px) 1fr !important;
  align-items: center;
  gap: 38px;
}

.topbar__brand {
  display: flex !important;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
}

.topbar__logo {
  display: block;
  width: min(100%, 455px);
  max-height: 56px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.topbar__nav {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center;
  gap: clamp(18px, 2vw, 34px) !important;
  flex-wrap: nowrap;
}

.topbar__nav a {
  color: #111 !important;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition:
    color .14s ease,
    border-color .14s ease;
}

.topbar__nav a:hover {
  color: var(--red) !important;
  border-bottom-color: var(--red);
}

.topbar__icons,
.dm-logo,
.zaile-logo,
.brand-separator {
  display: none !important;
}

/* Zachowujemy wcześniejsze, mniejsze teksty hero pod głównym tytułem. */
.hero__copy h1 {
  margin-bottom: 16px;
}

.hero__lead {
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-weight: 600;
  color: #111;
}

.hero__sublead {
  margin: 0 0 11px;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.12;
  letter-spacing: -0.2px;
  font-weight: 600;
  color: #111;
}

.hero__note {
  margin: 0 0 11px;
  max-width: 690px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 400;
  color: #292521;
}

.hero__closing {
  margin: 0;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.2px;
  font-weight: 600;
  color: #111;
}

.hero__copy {
  width: min(720px, 62%);
}

@media (max-width: 1180px) {
  .topbar__inner {
    grid-template-columns: minmax(270px, 390px) 1fr !important;
    gap: 24px;
  }

  .topbar__logo {
    width: min(100%, 375px);
    max-height: 50px;
  }

  .topbar__nav {
    gap: 16px !important;
  }

  .topbar__nav a {
    font-size: 10px;
  }

  .hero__lead {
    font-size: 27px;
  }

  .hero__sublead {
    font-size: 20px;
  }

  .hero__note {
    font-size: 15px;
  }

  .hero__closing {
    font-size: 19px;
  }
}

@media (max-width: 860px) {
  .topbar {
    height: auto !important;
    min-height: 76px;
  }

  .topbar__inner {
    width: min(calc(100% - 32px), 1540px) !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 11px 0 13px;
  }

  .topbar__brand {
    justify-self: start;
  }

  .topbar__logo {
    width: min(100%, 360px);
    max-height: 48px;
  }

  .topbar__nav {
    width: 100%;
    justify-content: flex-start !important;
    gap: 8px 18px !important;
    flex-wrap: wrap;
  }

  .topbar__nav a {
    font-size: 10px;
    padding: 4px 0;
  }

  .hero__copy {
    width: 100%;
  }

  .hero__lead {
    font-size: 24px;
  }

  .hero__sublead {
    font-size: 19px;
  }

  .hero__note {
    font-size: 15px;
  }

  .hero__closing {
    font-size: 19px;
  }
}


/* ================================================================
   V14.17 — stopka Developer Magazine
   ================================================================ */

.page-footer {
  margin-top: 38px !important;
  background: #111 !important;
  color: #a9a9a9;
}

.page-footer__main {
  background: #111;
}

.page-footer__main-inner {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 0 30px;
}

.page-footer__logo-link {
  display: block;
  text-decoration: none;
}

.page-footer__logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.page-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.page-footer__social span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #303030;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.page-footer__social span:last-child {
  font-size: 13px;
}

.page-footer__nav {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 38px) !important;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-footer__nav a {
  color: #9d9d9d !important;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .14s ease;
}

.page-footer__nav a:hover {
  color: #fff !important;
}

.page-footer__bottom {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,.03);
}

.page-footer__bottom-inner {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #878787;
}

.page-footer__bottom-inner a {
  color: var(--red) !important;
  text-decoration: none;
}

.page-footer__bottom-inner a:hover {
  text-decoration: underline;
}

/* Wyłączamy reguły starej stopki. */
.page-footer__inner {
  display: none !important;
}

@media (max-width: 860px) {
  .page-footer__main-inner {
    min-height: 0;
    padding: 32px 0 28px;
  }

  .page-footer__logo {
    width: min(100%, 360px);
    max-height: 54px;
  }

  .page-footer__social {
    margin-top: 23px;
  }

  .page-footer__nav {
    margin-top: 25px;
    gap: 13px 22px !important;
  }

  .page-footer__nav a {
    font-size: 11px;
  }

  .page-footer__bottom-inner {
    min-height: 105px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .page-footer__logo {
    width: min(100%, 300px);
  }

  .page-footer__nav {
    flex-direction: column;
    gap: 12px !important;
  }
}


/* ================================================================
   V14.18 — kontakt i aktywne social media w stopce
   ================================================================ */

.page-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #303030;
  color: #fff !important;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color .14s ease,
    transform .14s ease;
}

.page-footer__social a:last-child {
  font-size: 13px;
}

.page-footer__social a:hover {
  background: #444;
  transform: translateY(-1px);
}

/* Stare span-y nie są już używane. */
.page-footer__social span {
  display: none !important;
}

.page-footer__bottom-inner {
  min-height: 160px;
  gap: 10px;
}

.page-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #8d8d8d;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.page-footer__privacy {
  margin-top: 2px;
  color: var(--red) !important;
  text-decoration: none;
}

.page-footer__privacy:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .page-footer__bottom-inner {
    min-height: 145px;
  }

  .page-footer__contact {
    font-size: 11px;
  }
}
