/* ==========================================================================
   Polityka prywatności (page-id-1187) — style tylko dla tej strony
   ========================================================================== */

.page-id-1187 .entry-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}
.page-id-1187 .entry-header {
  padding: 50px 0px;
}
.page-id-1187 .entry-title {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0 20px;
  font-size: 32px;
  font-weight: 700;
  color: #052448;
  border-bottom: 3px solid #d99022;
  padding-bottom: 16px;
}

/* Akapit wstępny */
.page-id-1187 .entry-content > p.wp-block-paragraph {
  margin-bottom: 28px;
}

/* ---------- Listy (wp:list) ---------- */
.page-id-1187 .entry-content ul.wp-block-list,
.page-id-1187 .entry-content ol.wp-block-list {
  margin: 0 0 28px;
  padding-left: 0;
  list-style: none;
  counter-reset: privacy-counter;
}

.page-id-1187 .entry-content ul.wp-block-list > li,
.page-id-1187 .entry-content ol.wp-block-list > li {
  position: relative;
  counter-increment: privacy-counter;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid #eee;
}

.page-id-1187 .entry-content ul.wp-block-list > li::before,
.page-id-1187 .entry-content ol.wp-block-list > li::before {
  content: counter(privacy-counter) ".";
  position: absolute;
  left: 0;
  top: 14px;
  font-weight: 700;
  color: #d99022;
  min-width: 30px;
}

.page-id-1187 .entry-content ul.wp-block-list > li:last-child,
.page-id-1187 .entry-content ol.wp-block-list > li:last-child {
  border-bottom: none;
}

/* Numeracja od 8 — zaczynamy counter od start-1 */
.page-id-1187 .entry-content ul.wp-block-list[start] {
  counter-reset: privacy-counter 7; /* start="8" → licznik startuje z 7, ++ da 8 */
}

/* Zagnieżdżone listy a), b), c) */
.page-id-1187 .entry-content ul.wp-block-list ul.wp-block-list {
  counter-reset: privacy-sub-counter;
  margin: 12px 0 0;
  padding-left: 8px;
}

.page-id-1187 .entry-content ul.wp-block-list ul.wp-block-list > li {
  border-bottom: none;
  padding: 8px 0 8px 36px;
  counter-increment: privacy-sub-counter;
}

.page-id-1187 .entry-content ul.wp-block-list ul.wp-block-list > li::before {
  content: counter(privacy-sub-counter, lower-alpha) ")";
  color: #052448;
  font-weight: 600;
  top: 8px;
}

/* ---------- Tabela (wp:table) ---------- */
.page-id-1187 .entry-content .wp-block-table {
  margin: 0 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-id-1187 .entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.page-id-1187 .entry-content .wp-block-table thead th {
  background: #052448;
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  vertical-align: top;
}

.page-id-1187 .entry-content .wp-block-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

.page-id-1187 .entry-content .wp-block-table tbody tr:nth-child(even) {
  background: #f8f9fb;
}

.page-id-1187 .entry-content .wp-block-table tbody tr:hover {
  background: #fdf3e6;
}

/* ---------- Linki wewnątrz tekstu ---------- */
.page-id-1187 .entry-content a {
  color: #d99022;
  text-decoration: underline;
  word-break: break-word;
}

.page-id-1187 .entry-content a:hover {
  color: #052448;
}

/* ---------- Responsywność ---------- */
@media (max-width: 768px) {
  .page-id-1187 .entry-title {
    font-size: 24px;
    margin-top: 24px;
  }

  .page-id-1187 .entry-content {
    font-size: 15px;
    padding: 24px 16px 40px;
  }

  .page-id-1187 .entry-content ul.wp-block-list > li,
  .page-id-1187 .entry-content ol.wp-block-list > li {
    padding-left: 32px;
  }

  .page-id-1187 .entry-content .wp-block-table table {
    font-size: 13px;
  }
}

/* ========================================================================== 
   Header contact bar
   ========================================================================== */

#header {
  padding: 0;
}

#header .navbar {
  padding: 20px 30px;
}

.header-topbar {
  display: none;
  background: #052448;
}

.header-topbar__inner {
  min-height: 42px;
  margin: 0 auto;
  padding: 8px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.header-topbar__phone,
.header-topbar__mail-cta,
.header-contact-mobile__phone,
.header-contact-mobile__mail-cta {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.header-topbar__phone {
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.header-topbar .icon-phone,
.header-topbar .icon-mail {
  flex: 0 0 auto;
  color: #fff;
}

.header-topbar .icon-phone {
  width: 14px;
  height: 14px;
}

.header-topbar .icon-mail {
  width: 15px;
  height: 11px;
}

.header-topbar__mail-cta {
  gap: 6px;
  padding: 5px 14px;
  border-radius: 6px;
  background: #d99022;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.header-topbar__mail-cta:hover,
.header-contact-mobile__mail-cta:hover {
  background: #c27f1c;
  opacity: 1;
}

.header-topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.header-topbar__social a {
  display: flex;
  align-items: center;
}

.header-topbar__social svg,
.header-topbar__social img {
  display: block;
  width: 15px;
  height: 15px;
}

.header-contact-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 30px;
  background: #f8f9fb;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.header-contact-mobile__phone {
  min-height: 44px;
  gap: 7px;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(14, 67, 130, 0.35);
  background: #fff;
  color: #0e4382;
  font-size: 13px;
  font-weight: 700;
}

.header-contact-mobile__mail-cta {
  min-height: 44px;
  gap: 7px;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #d99022;
  background: #d99022;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}

.header-contact-mobile .icon-phone,
.header-contact-mobile .icon-mail {
  flex: 0 0 auto;
}

.header-contact-mobile .icon-phone {
  width: 16px;
  height: 16px;
}

.header-contact-mobile .icon-mail {
  width: 16px;
  height: 12px;
}

.header-contact-mobile .icon-phone {
  color: #0e4382;
}

.header-contact-mobile__phone:hover {
  border-color: #0e4382;
  background: rgba(14, 67, 130, 0.07);
  color: #0e4382;
  opacity: 1;
}

.header-contact-mobile__phone:focus-visible,
.header-contact-mobile__mail-cta:focus-visible {
  outline: 3px solid #528abf;
  outline-offset: 2px;
}

.header-topbar__mail-cta .icon-mail,
.header-contact-mobile__mail-cta .icon-mail {
  color: #fff;
}

@media (min-width: 1301px) {
  .header-topbar {
    display: block;
  }

  .header-contact-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  #header .navbar {
    padding: 20px;
  }

  .header-contact-mobile {
    gap: 12px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 350px) {
  #header.active {
    position: fixed !important;
  }

  .header-contact-mobile {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .header-contact-mobile__phone,
  .header-contact-mobile__mail-cta {
    font-size: 12px;
  }

  .header-contact-mobile__phone {
    padding-right: 9px;
    padding-left: 9px;
  }

  .header-contact-mobile__mail-cta {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* ========================================================================== 
   Historia cen lokalu
   ========================================================================== */

.price-with-history {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

table.dataTable tbody td .price-history-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #29313a;
  cursor: pointer;
  appearance: none;
}

table.dataTable tbody td .price-history-trigger:hover,
table.dataTable tbody td .price-history-trigger:focus-visible {
  color: #0e4382;
  background: rgba(14, 67, 130, 0.08);
  outline: none;
}

.price-history-trigger svg {
  display: block;
  width: 20px;
  height: 20px;
}

.price-history-tooltip {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 140px;
  margin: 0 !important;
  padding: 6px 9px;
  border-radius: 2px;
  background: #29313a;
  color: #fff;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.price-history-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 4px solid transparent;
  border-top-color: #29313a;
  transform: translateX(-50%);
}

.price-history-trigger:hover .price-history-tooltip,
.price-history-trigger:focus-visible .price-history-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

body.price-history-open {
  overflow: hidden;
}

.price-history-modal[hidden] {
  display: none;
}

.price-history-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s;
}

.price-history-modal.is-open {
  opacity: 1;
}

.price-history-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.price-history-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-height: min(600px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateY(10px);
  transition: transform 0.2s;
}

.price-history-modal.is-open .price-history-modal__dialog {
  transform: translateY(0);
}

.price-history-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e2e2e2;
}

.price-history-modal__header h2 {
  margin: 0;
  color: #29313a;
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
}

.price-history-modal__local {
  margin: 5px 0 0;
  color: #5c5c5d;
  font-size: 13px;
  line-height: 1.3;
}

.price-history-modal__close {
  flex: 0 0 auto;
  margin: -7px -7px 0 0;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.price-history-modal__close:hover,
.price-history-modal__close:focus-visible {
  color: #052448;
  outline: 2px solid #d99022;
  outline-offset: 2px;
}

.price-history-modal__content {
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 0 22px 22px;
}

.price-history-modal__content table {
  width: 100%;
  border-collapse: collapse;
}

.price-history-modal__content th,
.price-history-modal__content td {
  width: 50%;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid #e2e2e2;
  background: #fff !important;
  color: #29313a;
  text-align: left;
  font-size: 16px;
  line-height: 1.35;
}

.price-history-modal__content th:last-child,
.price-history-modal__content td:last-child {
  text-align: right;
}

.price-history-modal__content th {
  color: #5c5c5d;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .price-history-modal {
    padding: 16px;
  }

  .price-history-modal__header {
    padding: 18px 18px 14px;
  }

  .price-history-modal__header h2 {
    font-size: 21px;
  }

  .price-history-modal__content {
    padding: 0 18px 18px;
  }

  .price-history-modal__content th,
  .price-history-modal__content td {
    font-size: 14px;
  }
}

/* ========================================================================== 
   Tabela lokali — tablet i mobile
   ========================================================================== */

#mieszkania-inw .local-table-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 154px;
}

#mieszkania-inw .local-table-actions__primary,
#mieszkania-inw .local-table-actions__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 42px;
  margin: 0;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

#mieszkania-inw .local-table-actions__primary {
  border: 1px solid #0e4382;
  background: #0e4382;
  color: #fff;
}

#mieszkania-inw .local-table-actions__primary:hover,
#mieszkania-inw .local-table-actions__primary:focus-visible {
  border-color: #29313a;
  background: #29313a;
  color: #fff;
  opacity: 1;
}

#mieszkania-inw .local-table-actions__download {
  gap: 7px;
  border: 1px solid #0e4382;
  background: #fff;
  color: #0e4382;
}

#mieszkania-inw .local-table-actions__download:hover,
#mieszkania-inw .local-table-actions__download:focus-visible {
  background: #f7f8fb;
  color: #29313a;
  opacity: 1;
}

#mieszkania-inw .local-table-actions__primary:focus-visible,
#mieszkania-inw .local-table-actions__download:focus-visible {
  outline: 3px solid #528abf;
  outline-offset: 2px;
}

#mieszkania-inw .local-table-actions__download svg {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

#mieszkania-inw.dataTable tbody td .local-table-actions__download span {
  display: block;
  margin-bottom: 0;
  line-height: 1;
}

@media (min-width: 769px) and (max-width: 998px) {
  #mieszkania-inw.dataTable thead th:nth-child(1),
  #mieszkania-inw.dataTable tbody td:nth-child(1),
  #mieszkania-inw.dataTable thead th:nth-child(6),
  #mieszkania-inw.dataTable tbody td:nth-child(6) {
    display: none !important;
  }

  #mieszkania-inw.dataTable thead th:nth-child(5),
  #mieszkania-inw.dataTable tbody td:nth-child(5),
  #mieszkania-inw.dataTable thead th:nth-child(7),
  #mieszkania-inw.dataTable tbody td:nth-child(7) {
    display: table-cell !important;
  }

  #mieszkania-inw.dataTable .xs-display {
    display: none;
  }

  #mieszkania-inw.dataTable thead th,
  #mieszkania-inw.dataTable tbody td {
    padding: 10px 7px;
  }

  #mieszkania-inw.dataTable tbody td p {
    font-size: 15px;
  }

  #mieszkania-inw.dataTable tbody td:last-child .btn {
    white-space: normal;
  }

  #mieszkania-inw .local-table-actions {
    min-width: 154px;
  }

  #mieszkania-inw .local-table-actions__primary,
  #mieszkania-inw .local-table-actions__download {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  #mieszkania-inw.dataTable {
    display: block;
    width: 100% !important;
    border: 0;
  }

  #mieszkania-inw.dataTable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  #mieszkania-inw.dataTable tbody {
    display: grid;
    gap: 16px;
    width: 100%;
  }

  #mieszkania-inw.dataTable tbody tr,
  #mieszkania-inw.dataTable tbody tr.even,
  #mieszkania-inw.dataTable tbody tr.odd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 0;
    width: 100%;
    padding: 0;
    overflow: visible;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(5, 36, 72, 0.08);
  }

  #mieszkania-inw.dataTable tbody tr:hover td {
    background: transparent;
  }

  #mieszkania-inw.dataTable tbody td {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: auto !important;
    min-width: 0;
    padding: 12px 14px !important;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: transparent !important;
    text-align: left;
  }

  #mieszkania-inw.dataTable tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #68727d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(1),
  #mieszkania-inw.dataTable tbody td:nth-child(6),
  #mieszkania-inw.dataTable tbody tr.child {
    display: none !important;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    border-radius: 8px 0 0 0;
    background: #f8f9fb !important;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(7) {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    border-radius: 0 8px 0 0;
    background: #f8f9fb !important;
    text-align: right;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(7)::before {
    text-align: right;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    border-right: 1px solid #edf0f3;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    background: #fffceb !important;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(8) {
    grid-column: 1 / -1;
    grid-row: 4;
    align-items: stretch;
    padding: 12px 14px 14px !important;
    border-bottom: 0;
  }

  #mieszkania-inw.dataTable tbody td p,
  #mieszkania-inw.dataTable tbody td span,
  #mieszkania-inw.dataTable tbody td a {
    margin-bottom: 0 !important;
  }

  #mieszkania-inw.dataTable tbody td p {
    max-width: 100%;
    font-size: 14px !important;
    line-height: 1.35;
    white-space: normal;
  }

  #mieszkania-inw.dataTable .title-local,
  #mieszkania-inw.dataTable .price {
    font-size: 17px !important;
    font-weight: 700;
  }

  #mieszkania-inw.dataTable .stat {
    font-size: 13px !important;
    font-weight: 600;
  }

  #mieszkania-inw.dataTable .size {
    margin: 0;
    padding-right: 32px;
  }

  #mieszkania-inw.dataTable .size-info,
  #mieszkania-inw.dataTable .xs-display {
    display: none;
  }

  #mieszkania-inw.dataTable .price-with-history {
    justify-content: flex-start;
  }

  #mieszkania-inw.dataTable tbody td .price-history-trigger {
    width: 32px;
    height: 32px;
  }

  #mieszkania-inw.dataTable .price-history-trigger svg {
    width: 22px;
    height: 22px;
  }

  #mieszkania-inw.dataTable tbody td:nth-child(8) .btn {
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    text-align: center;
    white-space: normal;
  }

  #mieszkania-inw .local-table-actions {
    width: 100%;
    min-width: 0;
  }

  #mieszkania-inw .local-table-actions__primary,
  #mieszkania-inw .local-table-actions__download {
    width: 100%;
    height: 44px;
    font-size: 14px;
  }

  #mieszkania-inw.dataTable tbody .md-price {
    display: block;
  }

  #mieszkania-inw.dataTable tbody .xs-price {
    display: none;
  }

  .dataTables_wrapper .dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    margin: 0 !important;
    padding: 6px 8px !important;
  }
}

/* Wyśrodkowane atuty lokalizacji na stronie inwestycji Czysta. */
@media (max-width: 768px) {
  .page-id-56 .wp-block-column:has(> .wp-block-columns > .wp-block-column:first-child > .wp-block-image) {
    width: 100%;
    flex-basis: 100% !important;
    text-align: center;
  }

  .page-id-56 .wp-block-column:has(> .wp-block-columns > .wp-block-column:first-child > .wp-block-image) > .wp-block-columns {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }

  .page-id-56 .wp-block-column:has(> .wp-block-columns > .wp-block-column:first-child > .wp-block-image) > .wp-block-columns:last-child {
    margin-bottom: 0;
  }

  .page-id-56 .wp-block-column:has(> .wp-block-columns > .wp-block-column:first-child > .wp-block-image) > .wp-block-columns > .wp-block-column {
    width: 100%;
    flex-basis: auto !important;
  }

  .page-id-56 .wp-block-column:has(> .wp-block-columns > .wp-block-column:first-child > .wp-block-image) .wp-block-image {
    margin: 0 auto;
  }

  .page-id-56 .wp-block-column:has(> .wp-block-columns > .wp-block-column:first-child > .wp-block-image) .wp-block-image img {
    display: block;
    margin: 0 auto;
  }

  .page-id-56 .wp-block-column:has(> .wp-block-columns > .wp-block-column:first-child > .wp-block-image) p {
    margin: 0;
    text-align: center;
  }
}

/* Pojedynczy lokal: status, komplet danych ACF i czytelny układ RWD. */
.single-lokal__lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 34px;
  padding: 24px 28px;
  border: 1px solid #e3e8ee;
  border-left: 5px solid #d99022;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(5, 36, 72, 0.08);
}

.single-lokal__lead-main {
  display: flex;
  align-items: center;
  gap: 50px;
}

.single-lokal__status,
.single-lokal__price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.single-lokal__status-label,
.single-lokal__price > span {
  color: #68727d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-lokal__status strong,
.single-lokal__price strong {
  color: #052448;
  font-size: 24px;
  line-height: 1.2;
}

.single-lokal__status strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-lokal__status strong > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #68727d;
  box-shadow: 0 0 0 4px rgba(104, 114, 125, 0.14);
}

.single-lokal__status.is-available strong {
  color: #277445;
}

.single-lokal__status.is-available strong > span {
  background: #38a961;
  box-shadow: 0 0 0 4px rgba(56, 169, 97, 0.16);
}

.single-lokal__status.is-reserved strong {
  color: #9a6000;
}

.single-lokal__status.is-reserved strong > span {
  background: #d99022;
  box-shadow: 0 0 0 4px rgba(217, 144, 34, 0.17);
}

.single-lokal__status.is-sold strong {
  color: #9f3535;
}

.single-lokal__status.is-sold strong > span {
  background: #c74b4b;
  box-shadow: 0 0 0 4px rgba(199, 75, 75, 0.15);
}

.single-lokal__prospectus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  padding: 13px 20px;
  border-radius: 5px;
  text-align: center;
}

.single-lokal__lead-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
}

.single-lokal__contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 185px;
  padding: 13px 20px;
  border-radius: 5px;
  text-align: center;
}

#formularz-lokalu {
  scroll-margin-top: 130px;
}

.single-lokal__price-history {
  margin: -14px 0 34px;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #fff;
}

.single-lokal__price-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  color: #052448;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.single-lokal__price-history summary::-webkit-details-marker {
  display: none;
}

.single-lokal__price-history-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f1f4f7;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.single-lokal__price-history[open] .single-lokal__price-history-toggle {
  transform: rotate(45deg);
}

.single-lokal__price-history-content {
  overflow-x: auto;
  padding: 0 18px 18px;
}

.single-lokal__price-history table {
  width: 100%;
  border-collapse: collapse;
}

.single-lokal__price-history th,
.single-lokal__price-history td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
}

.single-lokal__price-history th {
  color: #68727d;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.single-lokal__price-history th:last-child,
.single-lokal__price-history td:last-child {
  text-align: right;
}

.single-lokal__price-history tbody tr:last-child td {
  border-bottom: 0;
}

.single-lokal .l-info {
  margin-bottom: 34px;
}

.single-lokal .l-info ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.single-lokal .l-info ul li,
.single-lokal .l-info ul li:last-child {
  width: auto;
  min-height: 88px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #f8fafc;
}

.single-lokal .l-info ul li svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.single-lokal__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.single-lokal__detail-section {
  padding: 24px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fff;
}

.single-lokal__detail-section h2 {
  margin-bottom: 18px;
  color: #052448;
  font-size: 20px;
  text-transform: none;
}

.single-lokal__surface-list,
.single-lokal__amenities-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-lokal__surface-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f3;
}

.single-lokal__surface-list li:last-child {
  border-bottom: 0;
}

.single-lokal__surface-list span {
  color: #68727d;
}

.single-lokal__surface-list strong {
  color: #052448;
  white-space: nowrap;
}

.single-lokal__amenities-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-lokal__amenities-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f8fafc;
}

.single-lokal__amenities-list img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.single-lokal .l-info--extra {
  margin-bottom: 34px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.single-lokal .l-info--extra ul {
  gap: 8px 24px;
}

.single-lokal .l-action__wrap {
  overflow: hidden;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .single-lokal .entry-header {
    padding-top: 64px;
  }

  .single-lokal__lead,
  .single-lokal__lead-main {
    align-items: stretch;
    flex-direction: column;
  }

  .single-lokal__lead {
    gap: 22px;
    padding: 20px;
  }

  .single-lokal__lead-main {
    gap: 20px;
  }

  .single-lokal__status,
  .single-lokal__price {
    padding-bottom: 18px;
    border-bottom: 1px solid #e3e8ee;
  }

  .single-lokal__status strong,
  .single-lokal__price strong {
    font-size: 22px;
  }

  .single-lokal__prospectus {
    width: 100%;
  }

  .single-lokal__lead-actions {
    flex-direction: column;
    width: 100%;
  }

  .single-lokal__contact-cta {
    width: 100%;
  }

  .single-lokal .l-info ul {
    grid-template-columns: 1fr;
  }

  .single-lokal .l-info ul li,
  .single-lokal .l-info ul li:last-child {
    width: 100%;
    border: 1px solid #e3e8ee;
  }

  .single-lokal__details {
    grid-template-columns: 1fr;
  }

  .single-lokal__detail-section {
    padding: 20px;
  }

  .single-lokal__amenities-list {
    grid-template-columns: 1fr;
  }

  .single-lokal .l-info--extra ul {
    align-items: stretch;
    flex-direction: column;
  }

  .single-lokal .l-info--extra ul li {
    width: 100%;
  }
}

/* Stopka: czytelniejsza hierarchia przy zachowaniu identyfikacji Akor. */
#footer {
  margin-top: 0;
  padding: 0;
  border-top: 5px solid #528abf;
  background: #0e4382;
}

#footer hr {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  opacity: 1;
}

#footer .f__main__wraper {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(220px, 1fr) minmax(190px, 260px);
  gap: 48px;
  align-items: start;
  padding: 56px 0 46px;
}

#footer .f__main__wraper > .col {
  width: auto;
  min-width: 0;
}

#footer .f-company {
  max-width: 410px;
  margin: 0;
}

#footer .f-company__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

#footer .f-company__brand a {
  display: inline-block;
}

#footer .f-company__brand img,
#footer .f-company__brand svg {
  display: block;
  width: 190px !important;
  max-width: 100%;
  height: auto !important;
  margin: 0;
}

#footer .f-company__brand p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#footer .f-company__info {
  display: grid;
  gap: 15px;
}

#footer .f-company__info a,
#footer .f-company__info span {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

#footer .f-company__info .f-company__value {
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
}

#footer .f-company__info .f-company__nip {
  display: block;
  padding-left: 38px;
}

#footer .f-company__info a {
  color: #fff;
  font-weight: 500;
}

#footer .f-company__info a:hover {
  color: #ffe681;
  opacity: 1;
}

#footer .f-company__info svg {
  width: 22px;
  max-height: 23px;
  color: currentColor;
}

#footer .f-company__info svg path {
  fill: currentColor;
}

#footer ul {
  margin: 0;
}

#footer .f__menus__wraper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 36px;
  justify-content: stretch;
}

#footer .f__menus__col {
  width: auto;
}

#footer .f__menus-title,
#footer .f__socialmedia > span {
  display: block;
  margin: 0 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#footer .f__menus__col ul {
  display: grid;
  gap: 4px;
}

#footer .f__menus__col ul li a {
  display: inline-block;
  margin: 0;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

#footer .f__menus__col ul li a:hover,
#footer .f__menus__col ul .current-menu-item a {
  color: #ffe681;
  opacity: 1;
}

#footer .f__socialmedia {
  margin: 0;
}

#footer .f__socialmedia ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#footer .f__socialmedia ul li a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
}

#footer .f__socialmedia ul li a:hover {
  border-color: #fff;
  background: #fff;
  color: #0e4382;
  opacity: 1;
}

#footer .f__socialmedia svg {
  width: 25px;
  height: 25px;
}

#footer .f__socialmedia svg path {
  fill: currentColor;
}

#footer .f__img {
  margin-top: 24px;
}

#footer .f__img img {
  display: block;
  max-width: 180px;
  height: auto;
  margin-left: auto;
}

#footer .f__info__wraper {
  justify-content: flex-start;
  padding: 0;
}

#footer .f__info {
  width: 100%;
  padding: 21px 0 24px;
}

#footer .f__info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

#footer .f__info p small {
  color: inherit;
  font-size: 12px;
  line-height: 1.5;
  opacity: 1;
}

#footer .f__info a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

#footer a:focus-visible {
  outline: 3px solid #ffe681;
  outline-offset: 4px;
}

@media (max-width: 998px) {
  #footer .f__main__wraper {
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
    gap: 44px 54px;
    padding: 48px 0 40px;
  }

  #footer .f__main__wraper > .col:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    order: initial;
  }

  #footer .f__main__wraper > .col:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    order: initial;
  }

  #footer .f__main__wraper > .col:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    order: initial;
  }
}

@media (max-width: 768px) {
  #footer {
    border-top-width: 4px;
  }

  #footer .f__main__wraper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 34px;
  }

  #footer .f__main__wraper > .col:nth-child(1),
  #footer .f__main__wraper > .col:nth-child(2),
  #footer .f__main__wraper > .col:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    text-align: center;
  }

  #footer .f-company__brand {
    align-items: center;
    margin-bottom: 26px;
    text-align: center;
  }

  #footer .f-company__brand img,
  #footer .f-company__brand svg {
    margin: 0 auto !important;
  }

  #footer .f-company {
    margin-right: auto;
    margin-left: auto;
  }

  #footer .f-company__info {
    width: min(100%, 370px);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  #footer .f-company__info .f-company__row {
    grid-template-columns: 26px auto;
    justify-content: center;
    text-align: left;
  }

  #footer .f-company__info .f-company__nip {
    padding-left: 0;
    text-align: center;
  }

  #footer .f__menus__wraper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #footer .f__menus__col {
    width: 100%;
  }

  #footer .f__socialmedia {
    width: 100%;
  }

  #footer .f__socialmedia ul {
    justify-content: center;
  }

  #footer .f__img img {
    margin-right: auto;
    margin-left: auto;
  }

  #footer .f__info {
    padding: 20px 0 22px;
  }

  #footer .f__info p {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
