/**
 * 4.estate — oferty (Wrocławski Pośrednik / Houzez Child).
 * Wygląd: starter wtyczki + tokeny brandu klienta.
 */

:root {
  --fe-bg: #f8fafc;
  --fe-surface: #ffffff;
  --fe-ink: #121820;
  --fe-muted: #556070;
  --fe-line: #e2e8f0;
  --fe-accent: #c59b27;
  --fe-accent-ink: #ffffff;
  --fe-accent-hover: #a8811d;
  --fe-gold-light: #fbf7ee;
  --fe-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --fe-radius: 8px;
  --fe-font: "Plus Jakarta Sans", sans-serif;
  --fe-display: "Plus Jakarta Sans", sans-serif;
}

.fe-offers,
.fe-offer,
.fe-offers-grid-wrap {
  color: var(--fe-ink);
  font-family: var(--fe-font);
  font-size: inherit;
}

.fe-offer-block {
  font-family: inherit;
  font-size: inherit;
}

.fe-offer-block.has-fe-font-size {
  font-size: var(--fe-font-size);
}

.fe-offers__shell,
.fe-offer__shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.fe-offers__header,
.fe-offer__header {
  margin-bottom: 2rem;
}

.fe-offers__brand,
.fe-offer__brand {
  margin: 0 0 0.5rem;
  font-size: 0.8em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fe-accent);
  font-weight: 700;
}

.fe-offers__title,
.fe-offer__title {
  margin: 0;
  font-family: var(--fe-display);
  font-weight: 500;
  line-height: 1.15;
  font-size: 1.85em;
}

.fe-offers__lead,
.fe-offer__address {
  margin: 0.75rem 0 0;
  color: var(--fe-muted);
  max-width: 40rem;
}

.fe-offer-cats {
  margin: 0 0 1.75rem;
}

.fe-offer-cats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--fe-line);
}

.fe-offer-cats__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.65rem 0;
  color: var(--fe-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.95em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.fe-offer-cats__link:hover {
  color: var(--fe-ink);
}

.fe-offer-cats__link.is-active {
  color: var(--fe-ink);
  border-bottom-color: var(--fe-accent);
  font-weight: 600;
}

.fe-offer-cats__count {
  font-size: 0.75em;
  color: var(--fe-muted);
  font-weight: 500;
}

.fe-offer-search {
  margin: 0 0 1.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* Bloki wyszukiwarki: dziedziczą kolor/tło z wrappera (Style → Kolory). */
.fe-offer-block--offer-search,
.fe-offer-block--offer-search-bar,
.wp-block-four-estate-offer-search,
.wp-block-four-estate-offer-search-bar {
  box-sizing: border-box;
  width: 100%;
}

.fe-offer-block--offer-search .fe-offer-search,
.fe-offer-block--offer-search-bar .fe-offer-search,
.wp-block-four-estate-offer-search .fe-offer-search,
.wp-block-four-estate-offer-search-bar .fe-offer-search {
  margin: 0;
  color: inherit;
}

.fe-offer-block--offer-search .fe-offer-search input,
.fe-offer-block--offer-search .fe-offer-search select,
.fe-offer-block--offer-search-bar .fe-offer-search input,
.fe-offer-block--offer-search-bar .fe-offer-search select,
.wp-block-four-estate-offer-search .fe-offer-search input,
.wp-block-four-estate-offer-search .fe-offer-search select,
.wp-block-four-estate-offer-search-bar .fe-offer-search input,
.wp-block-four-estate-offer-search-bar .fe-offer-search select {
  color: inherit;
  border-bottom-color: color-mix(in srgb, currentColor 35%, transparent);
}

.fe-offer-block--offer-search .fe-offer-search select,
.fe-offer-block--offer-search-bar .fe-offer-search select,
.wp-block-four-estate-offer-search .fe-offer-search select,
.wp-block-four-estate-offer-search-bar .fe-offer-search select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
}

.fe-offer-block--offer-search .fe-offer-search input::placeholder,
.fe-offer-block--offer-search-bar .fe-offer-search input::placeholder,
.wp-block-four-estate-offer-search .fe-offer-search input::placeholder,
.wp-block-four-estate-offer-search-bar .fe-offer-search input::placeholder {
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.fe-offer-block--offer-search .fe-offer-search input:focus,
.fe-offer-block--offer-search .fe-offer-search select:focus,
.fe-offer-block--offer-search-bar .fe-offer-search input:focus,
.fe-offer-block--offer-search-bar .fe-offer-search select:focus,
.wp-block-four-estate-offer-search .fe-offer-search input:focus,
.wp-block-four-estate-offer-search .fe-offer-search select:focus,
.wp-block-four-estate-offer-search-bar .fe-offer-search input:focus,
.wp-block-four-estate-offer-search-bar .fe-offer-search select:focus {
  border-bottom-color: currentColor;
}

.fe-offer-block--offer-search .fe-offer-search__submit,
.fe-offer-block--offer-search-bar .fe-offer-search__submit,
.wp-block-four-estate-offer-search .fe-offer-search__submit,
.wp-block-four-estate-offer-search-bar .fe-offer-search__submit {
  color: inherit;
  border-bottom-color: currentColor;
}

.fe-offer-block--offer-search .fe-offer-search__submit:hover,
.fe-offer-block--offer-search-bar .fe-offer-search__submit:hover,
.wp-block-four-estate-offer-search .fe-offer-search__submit:hover,
.wp-block-four-estate-offer-search-bar .fe-offer-search__submit:hover {
  color: inherit;
  opacity: 0.8;
  border-bottom-color: currentColor;
}

.fe-offer-block--offer-search .fe-offer-search__reset,
.fe-offer-block--offer-search-bar .fe-offer-search__reset,
.wp-block-four-estate-offer-search .fe-offer-search__reset,
.wp-block-four-estate-offer-search-bar .fe-offer-search__reset {
  color: color-mix(in srgb, currentColor 65%, transparent);
}

.fe-offer-block--offer-search .fe-offer-search__reset:hover,
.fe-offer-block--offer-search-bar .fe-offer-search__reset:hover,
.wp-block-four-estate-offer-search .fe-offer-search__reset:hover,
.wp-block-four-estate-offer-search-bar .fe-offer-search__reset:hover {
  color: inherit;
}

.fe-offer-search--embedded {
  margin: 0 0 1.5rem;
}

.fe-offer-search--bar {
  margin: 0 0 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.fe-offer-search--bar .fe-offer-search__grid,
.fe-offer-search--bar .fe-offer-search__row--bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fe-offer-search__grid {
  display: grid;
  gap: 0.75rem;
}

.fe-offer-search__row {
  display: grid;
  gap: 0.55rem 0.75rem;
  align-items: end;
  min-width: 0;
}

.fe-offer-search__row--primary {
  grid-template-columns: minmax(7.5rem, 9.5rem) minmax(0, 1.6fr) minmax(8rem, 1fr) minmax(7rem, 0.85fr);
}

.fe-offer-search__row--primary:has(.fe-offer-search__field--transaction):not(:has(select[name="kategoria"])) {
  grid-template-columns: minmax(7.5rem, 9.5rem) minmax(0, 1.8fr) minmax(7rem, 0.9fr);
}

.fe-offer-search__row--bar {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.fe-offer-search__row--bar:not(:has(select[name="kategoria"])) {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
}

.fe-offer-search__row--ranges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fe-offer-search__row--extra {
  grid-template-columns: minmax(7rem, 0.8fr) minmax(7rem, 0.8fr) minmax(0, 1.4fr) auto;
}

.fe-offer-search__field {
  display: grid;
  gap: 0;
  margin: 0;
  min-width: 0;
}

.fe-offer-search__field--location {
  min-width: 0;
}

.fe-offer-search__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  min-width: 0;
}

.fe-offer-search__field--actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-start;
}

.fe-offer-search--bar .fe-offer-search__field--actions {
  justify-content: flex-end;
  padding-bottom: 0.15rem;
}

.fe-offer-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fe-offer-search input,
.fe-offer-search select {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid var(--fe-line);
  border-radius: 0;
  padding: 0.55rem 0.15rem;
  font: inherit;
  font-size: 0.92em;
  color: var(--fe-ink);
  background: transparent;
  appearance: none;
}

.fe-offer-search select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fe-muted) 50%),
    linear-gradient(135deg, var(--fe-muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% + 2px), calc(100% - 7px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.25rem;
}

.fe-offer-search input::placeholder {
  color: var(--fe-muted);
}

.fe-offer-search input:focus,
.fe-offer-search select:focus {
  outline: none;
  border-bottom-color: var(--fe-accent);
}

.fe-offer-search__submit {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0.55rem 0;
  background: transparent;
  color: var(--fe-accent);
  font: inherit;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--fe-accent);
}

.fe-offer-search__submit:hover {
  color: var(--fe-ink);
  border-bottom-color: var(--fe-ink);
}

.fe-offer-search__reset {
  color: var(--fe-muted);
  text-decoration: none;
  font-size: 0.85em;
}

.fe-offer-search__reset:hover {
  color: var(--fe-ink);
}

@media (max-width: 900px) {
  .fe-offer-search__row--primary {
    grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  }

  .fe-offer-search__row--primary .fe-offer-search__field--location {
    grid-column: 2;
  }

  .fe-offer-search__row--primary .fe-offer-search__field:not(.fe-offer-search__field--transaction):not(.fe-offer-search__field--location) {
    grid-column: auto;
  }

  .fe-offer-search__row--bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .fe-offer-search__row--bar .fe-offer-search__field--location {
    grid-column: 1 / -1;
  }

  .fe-offer-search__row--bar .fe-offer-search__field--actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .fe-offer-search__row--ranges {
    grid-template-columns: 1fr;
  }

  .fe-offer-search__row--extra {
    grid-template-columns: 1fr 1fr;
  }

  .fe-offer-search__field--sort,
  .fe-offer-search__field--actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .fe-offer-search__row--primary {
    grid-template-columns: 1fr;
  }

  .fe-offer-search__row--primary .fe-offer-search__field--location {
    grid-column: auto;
  }

  .fe-offer-search__row--bar {
    grid-template-columns: 1fr;
  }

  .fe-offer-search__row--bar .fe-offer-search__field--location,
  .fe-offer-search__row--bar .fe-offer-search__field--actions {
    grid-column: auto;
  }

  .fe-offer-search__row--extra {
    grid-template-columns: 1fr;
  }
}

.fe-offers-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.fe-offers-grid--cols-1 {
  grid-template-columns: minmax(0, 1fr);
}

.fe-offers-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fe-offers-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fe-offers-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fe-offers-grid--center {
  justify-content: center;
  justify-items: stretch;
}

.fe-offers-grid--center.fe-offers-grid--cols-2,
.fe-offers-grid--center.fe-offers-grid--cols-3,
.fe-offers-grid--center.fe-offers-grid--cols-4 {
  grid-template-columns: repeat(var(--fe-grid-cols, 3), minmax(0, 20rem));
}

.fe-offers-grid--center.fe-offers-grid--cols-2 {
  --fe-grid-cols: 2;
}

.fe-offers-grid--center.fe-offers-grid--cols-3 {
  --fe-grid-cols: 3;
}

.fe-offers-grid--center.fe-offers-grid--cols-4 {
  --fe-grid-cols: 4;
}

@media (max-width: 900px) {
  .fe-offers-grid--cols-3,
  .fe-offers-grid--cols-4,
  .fe-offers-grid--center.fe-offers-grid--cols-3,
  .fe-offers-grid--center.fe-offers-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fe-offers-grid--center.fe-offers-grid--cols-3,
  .fe-offers-grid--center.fe-offers-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 20rem));
  }
}

@media (max-width: 560px) {
  .fe-offers-grid--cols-2,
  .fe-offers-grid--cols-3,
  .fe-offers-grid--cols-4,
  .fe-offers-grid--center.fe-offers-grid--cols-2,
  .fe-offers-grid--center.fe-offers-grid--cols-3,
  .fe-offers-grid--center.fe-offers-grid--cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Blok listy: kolor/tło z Style → Kolory dziedziczą na tekst kart. */
.fe-offer-block--offer-list,
.wp-block-four-estate-offer-list {
  box-sizing: border-box;
  width: 100%;
}

.fe-offer-block--offer-list .fe-offers-grid-wrap,
.wp-block-four-estate-offer-list .fe-offers-grid-wrap {
  color: inherit;
}

.fe-offer-block--offer-list .fe-offers-grid-wrap__heading,
.wp-block-four-estate-offer-list .fe-offers-grid-wrap__heading {
  color: inherit;
}

.fe-offer-block--offer-list .fe-offer-card,
.wp-block-four-estate-offer-list .fe-offer-card {
  background: var(--fe-card-bg, var(--fe-surface));
  border-color: var(--fe-card-border-color, var(--fe-line));
  border-radius: var(--fe-card-border-radius, var(--fe-radius));
}

.fe-offer-block--offer-list .fe-offer-card__title,
.wp-block-four-estate-offer-list .fe-offer-card__title {
  color: var(--fe-card-title-color, inherit);
  font-size: var(--fe-card-title-size, 0.92em);
  font-weight: var(--fe-card-title-weight, 500);
}

.fe-offer-block--offer-list .fe-offer-card__price,
.wp-block-four-estate-offer-list .fe-offer-card__price {
  color: var(--fe-card-price-color, inherit);
  font-size: var(--fe-card-price-size, 1.05em);
  font-weight: var(--fe-card-price-weight, 700);
}

.fe-offer-block--offer-list .fe-offer-card__address,
.wp-block-four-estate-offer-list .fe-offer-card__address {
  color: var(--fe-card-address-color, color-mix(in srgb, currentColor 70%, transparent));
  font-size: var(--fe-card-address-size, 0.85em);
}

.fe-offer-block--offer-list .fe-offer-card__meta,
.wp-block-four-estate-offer-list .fe-offer-card__meta {
  color: var(--fe-card-meta-color, color-mix(in srgb, currentColor 70%, transparent));
  font-size: var(--fe-card-meta-size, 0.85em);
}

.fe-offer-block--offer-list .fe-offers-empty,
.wp-block-four-estate-offer-list .fe-offers-empty {
  color: color-mix(in srgb, currentColor 70%, transparent);
  border-color: color-mix(in srgb, currentColor 25%, transparent);
}

.fe-offers-empty {
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--fe-line);
  color: var(--fe-muted);
  text-align: center;
}

.fe-offer-card {
  background: var(--fe-surface);
  border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius);
  overflow: hidden;
  box-shadow: var(--fe-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(28, 26, 23, 0.12);
}

.fe-offer-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fe-offer-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e4ddd2;
  overflow: hidden;
}

.fe-offer-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-offer-card__img--placeholder {
  background:
    linear-gradient(135deg, rgba(47, 93, 80, 0.12), transparent 55%),
    #e4ddd2;
}

.fe-offer-card__badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.35rem 0.55rem;
  background: rgba(28, 26, 23, 0.82);
  color: #fff;
  font-size: 0.72em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe-offer-card__body {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 0.3rem;
}

.fe-offer-card--align-center .fe-offer-card__body {
  text-align: center;
  justify-items: center;
}

.fe-offer-card--align-right .fe-offer-card__body {
  text-align: right;
  justify-items: end;
}

.fe-offer-card__address {
  margin: 0;
  color: var(--fe-muted);
  font-size: 0.85em;
  line-height: 1.35;
}

.fe-offer-card__price {
  margin: 0;
  font-weight: 700;
  font-size: 1.05em;
  color: var(--fe-accent);
}

.fe-offer-card__meta {
  margin: 0;
  color: var(--fe-muted);
  font-size: 0.85em;
}

.fe-offer-card__title {
  margin: 0.15rem 0 0;
  font-family: var(--fe-display);
  font-size: 0.92em;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fe-ink);
}

.fe-offers__pagination {
  margin-top: 2rem;
}

.fe-offers__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fe-offer__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  color: var(--fe-muted);
  font-size: 0.9em;
}

.fe-offer__crumb a {
  color: var(--fe-accent);
  text-decoration: none;
}

.fe-offer__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-end;
}

.fe-offer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.fe-offer__tag {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-style: var(--fe-chip-border-style, solid);
  border-width: var(--fe-chip-border-width, 1px);
  border-color: var(--fe-chip-border-color, var(--fe-accent));
  border-radius: var(--fe-chip-border-radius, 0);
  background: var(--fe-chip-bg, transparent);
  color: var(--fe-chip-color, var(--fe-accent));
  font-size: 0.75em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe-offer__tag--muted {
  border-color: var(--fe-chip-border-color, var(--fe-line));
  color: var(--fe-chip-color, var(--fe-muted));
}

.fe-offer__price {
  margin: 0;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--fe-accent);
  white-space: nowrap;
}

.fe-offer__gallery {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.fe-offer__gallery-main {
  background: #ddd6cb;
  border-radius: var(--fe-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.fe-offer__gallery-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-offer__thumbs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fe-offer__thumbs-arrow {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--fe-line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
}

.fe-offer__thumbs-arrow:hover:not(:disabled) {
  border-color: var(--fe-accent);
  color: var(--fe-accent);
}

.fe-offer__thumbs-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.fe-offer__thumbs-arrow[hidden] {
  display: none !important;
}

.fe-offer__thumbs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0;
}

.fe-offer__thumbs::-webkit-scrollbar {
  display: none;
}

.fe-offer__thumb {
  flex: 0 0 clamp(88px, 18%, 120px);
  border: 2px solid transparent;
  padding: 0;
  background: #ddd6cb;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.fe-offer__thumb.is-active,
.fe-offer__thumb:hover {
  border-color: var(--fe-accent);
}

.fe-offer__thumb {
  position: relative;
}

.fe-offer__thumb img,
.fe-offer__thumb-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-offer__thumb-placeholder {
  background: #101614;
}

.fe-offer__thumb-badge {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(16, 22, 20, 0.82);
  color: #f4faf7;
  font-size: 0.65em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.fe-offer__gallery-main .fe-offer__embed--in-gallery {
  border: 0;
  border-radius: 0;
  height: 100%;
  aspect-ratio: auto;
}

.fe-offer__gallery-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 12rem;
  background: #101614;
}

.fe-offer__layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: start;
}

.fe-offer__section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--fe-line);
}

.fe-offer__section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fe-offer__section-title {
  margin: 0 0 1rem;
  font-family: var(--fe-display);
  font-size: 1.25em;
  font-weight: 500;
}

.fe-offer__specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.fe-offer__spec dt {
  margin: 0;
  color: var(--fe-muted);
  font-size: 0.8em;
}

.fe-offer__spec dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.fe-offer__room-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--fe-muted);
  font-size: 0.85em;
  font-weight: 500;
}

.fe-offer__description {
  line-height: 1.65;
  color: #2c2924;
}

.fe-offer__description > *:first-child {
  margin-top: 0;
}

.fe-offer__features,
.fe-offer__plans {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fe-offer__plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.fe-offer__plan {
  margin: 0;
  list-style: none;
}

.fe-offer__plan-frame {
  display: block;
  border-radius: var(--fe-radius, 12px);
  overflow: hidden;
  background: var(--fe-surface, #f7f5f2);
  border: 1px solid var(--fe-line, #e8e4df);
  aspect-ratio: 16 / 10;
  text-decoration: none;
}

.fe-offer__plan-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.fe-offer__features li,
.fe-offer__plans a:not(.fe-offer__plan-frame) {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-style: var(--fe-chip-border-style, solid);
  border-width: var(--fe-chip-border-width, 1px);
  border-color: var(--fe-chip-border-color, var(--fe-line));
  border-radius: var(--fe-chip-border-radius, 999px);
  background: var(--fe-chip-bg, var(--fe-surface));
  color: var(--fe-chip-color, inherit);
  text-decoration: none;
  font-size: 0.9em;
}

.fe-offer__spec {
  background: var(--fe-chip-bg, var(--fe-surface));
  border-style: var(--fe-chip-border-style, solid);
  border-width: var(--fe-chip-border-width, 1px);
  border-color: var(--fe-chip-border-color, var(--fe-line));
  border-radius: var(--fe-chip-border-radius, var(--fe-radius));
  padding: 0.85rem 0.95rem;
  color: var(--fe-chip-color, inherit);
}

.fe-offer__aside {
  position: sticky;
  top: 1rem;
}

.fe-offer__contact {
  background: var(--fe-surface);
  border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius);
  padding: 1.25rem;
  box-shadow: var(--fe-shadow);
  display: grid;
  gap: 0.55rem;
}

.fe-offer__agent {
  margin: 0;
  font-weight: 600;
}

.fe-offer__contact-link {
  color: var(--fe-accent);
  text-decoration: none;
  word-break: break-word;
}

.fe-offer__cta {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: var(--fe-accent);
  color: var(--fe-accent-ink);
  text-decoration: none;
  border-radius: var(--fe-radius);
  font-weight: 600;
}

.fe-offer__cta--ghost {
  background: transparent;
  color: var(--fe-accent);
  border: 1px solid var(--fe-accent);
}

.fe-offer__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius);
  overflow: hidden;
  background: #101614;
}

.fe-offer__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fe-offer__embed--map {
  aspect-ratio: 16 / 10;
}

.fe-offer__embed-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.9em;
}

.fe-offer__embed-fallback a {
  color: var(--fe-accent);
}

.fe-offer__agent-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--fe-line);
}

/* Chip tokens live on an inner skin so they never paint the block chrome */
.fe-offer-block__skin {
  display: contents;
}

/* WP Styles → font-weight on wrapper should reach offer text */
.fe-offer-block .fe-offer__title,
.fe-offer-block .fe-offer__address,
.fe-offer-block .fe-offer__price,
.fe-offer-block .fe-offer__brand,
.fe-offer-block .fe-offer__tag,
.fe-offer-block .fe-offer__agent,
.fe-offer-block .fe-offer__cta,
.fe-offer-block .fe-offer__description,
.fe-offer-block .fe-offer__description *,
.fe-offer-block .fe-offer__section-title,
.fe-offer-block .fe-offer__features li,
.fe-offer-block .fe-offer__plans a:not(.fe-offer__plan-frame),
.fe-offer-block .fe-offer__spec,
.fe-offer-block .fe-offer__spec dt,
.fe-offer-block .fe-offer__spec dd,
.fe-offer-block .fe-offer__crumb,
.fe-offer-block .fe-offer__crumb a {
  font-family: inherit;
  font-weight: inherit;
}

/* Typografia z panelu bloku — jawna grubość (SSR) nadpisuje domyślne wagi w CSS */
.fe-offer-block.has-fe-font-weight,
.fe-offer-block.has-fe-font-weight .fe-offer__title,
.fe-offer-block.has-fe-font-weight .fe-offer__address,
.fe-offer-block.has-fe-font-weight .fe-offer__price,
.fe-offer-block.has-fe-font-weight .fe-offer__brand,
.fe-offer-block.has-fe-font-weight .fe-offer__tag,
.fe-offer-block.has-fe-font-weight .fe-offer__agent,
.fe-offer-block.has-fe-font-weight .fe-offer__cta,
.fe-offer-block.has-fe-font-weight .fe-offer__description,
.fe-offer-block.has-fe-font-weight .fe-offer__description *,
.fe-offer-block.has-fe-font-weight .fe-offer__section-title,
.fe-offer-block.has-fe-font-weight .fe-offer__features li,
.fe-offer-block.has-fe-font-weight .fe-offer__plans a:not(.fe-offer__plan-frame),
.fe-offer-block.has-fe-font-weight .fe-offer__spec,
.fe-offer-block.has-fe-font-weight .fe-offer__spec dt,
.fe-offer-block.has-fe-font-weight .fe-offer__spec dd,
.fe-offer-block.has-fe-font-weight .fe-offer__crumb,
.fe-offer-block.has-fe-font-weight .fe-offer__crumb a {
  font-weight: var(--fe-font-weight);
}

/* Wyrównanie treści w poziomie i pionie (np. w kolumnach) */
.fe-offer-block--aligned {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
}

.fe-offer-block--h-left {
  align-items: flex-start;
  text-align: left;
}

.fe-offer-block--h-center {
  align-items: center;
  text-align: center;
}

.fe-offer-block--h-right {
  align-items: flex-end;
  text-align: right;
}

.fe-offer-block--v-top {
  justify-content: flex-start;
}

.fe-offer-block--v-center {
  justify-content: center;
}

.fe-offer-block--v-bottom {
  justify-content: flex-end;
}

.fe-offer-block--h-center .fe-offer__features,
.fe-offer-block--h-center .fe-offer__plans,
.fe-offer-block--h-center .fe-offer__tags,
.fe-offer-block--h-center .fe-offer__specs {
  justify-content: center;
}

.fe-offer-block--h-right .fe-offer__features,
.fe-offer-block--h-right .fe-offer__plans,
.fe-offer-block--h-right .fe-offer__tags,
.fe-offer-block--h-right .fe-offer__specs {
  justify-content: flex-end;
}

.wp-block-column .fe-offer-block--aligned,
.wp-block-group .fe-offer-block--aligned {
  flex: 1 1 auto;
}

.wp-block-group.fe-offer__main > *:last-child .fe-offer__section:last-child,
.wp-block-group.fe-offer__main > .fe-offer__section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 860px) {
  .fe-offer__layout {
    grid-template-columns: 1fr;
  }

  .fe-offer__aside {
    position: static;
  }

  .fe-offer__gallery-main {
    aspect-ratio: 4 / 3;
  }
}

/* Layout presets (simple builder) */
.fe-offer--gallery > .fe-offer__shell {
  margin-top: 1.25rem;
}

.fe-offer--gallery .alignfull.wp-block-four-estate-offer-media,
.fe-offer--gallery .wp-block-four-estate-offer-media.alignfull {
  margin-inline: 0;
  max-width: none;
  width: 100%;
}

.fe-offer--minimal .fe-offer__header--minimal {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.fe-offer__aside--sticky {
  position: sticky;
  top: 1rem;
}

@media (max-width: 860px) {
  .fe-offer__aside--sticky {
    position: static;
  }
}

/* =========================================================
   Houzez Child — dopasowanie pod header / kontener klienta
========================================================= */
body.wp-estate-offers #main-wrap {
  background: var(--fe-bg);
}

body.wp-estate-offers .fe-offers__shell,
body.wp-estate-offers .fe-offer__shell {
  width: min(1280px, calc(100% - 3rem));
  padding-top: 2rem;
}

body.wp-estate-offers .fe-offer__aside--sticky {
  top: 6.5rem; /* sticky site-header */
}

.fe-offer-search__submit:hover,
.fe-offer-block--offer-search .fe-offer-search__submit:hover,
.fe-offer-block--offer-search-bar .fe-offer-search__submit:hover,
.wp-block-four-estate-offer-search .fe-offer-search__submit:hover,
.wp-block-four-estate-offer-search-bar .fe-offer-search__submit:hover {
  background: var(--fe-accent-hover, #a8811d);
}

.fe-offers__brand,
.fe-offer__brand {
  color: var(--fe-accent);
}

.fe-plugin-missing {
  width: min(1280px, calc(100% - 3rem));
  margin: 3rem auto;
  padding: 1.5rem;
  background: var(--fe-gold-light, #fbf7ee);
  border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius);
  color: var(--fe-ink);
}

.fe-plugin-missing p {
  margin: 0;
}

/* Category tiles — jak karty ofert: zdjęcie → tytuł → liczba */
.fe-offer-cat-tiles {
  margin: 0 0 2rem;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.fe-offer-cat-tiles__heading {
  margin: 0 0 1.35rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fe-ink, #121820);
  letter-spacing: -0.01em;
}

.fe-offer-cat-tiles__grid {
  gap: 1.5rem;
}

.fe-offer-cat-tiles__item {
  display: flex;
  height: 100%;
}

.fe-offer-cat-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--fe-line, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(18, 24, 32, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}

.fe-offer-cat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 155, 39, 0.45);
  box-shadow: 0 18px 40px rgba(18, 24, 32, 0.12);
}

.fe-offer-cat-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 0;
  background: #e8edf3;
  overflow: hidden;
  line-height: 0;
}

.fe-offer-cat-tile__media .fe-offer-cat-tile__img,
.fe-offer-cat-tile__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.fe-offer-cat-tile:hover .fe-offer-cat-tile__img {
  transform: scale(1.04);
}

.fe-offer-cat-tile__img--placeholder {
  background:
    linear-gradient(135deg, rgba(197, 155, 39, 0.16), transparent 55%),
    #e8edf3;
}

.fe-offer-cat-tile__body {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.fe-offer-cat-tile__title {
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fe-ink, #121820);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.fe-offer-cat-tile:hover .fe-offer-cat-tile__title {
  color: var(--fe-accent, #c59b27);
}

.fe-offer-cat-tile__count {
  margin: 0;
  padding: 0;
  color: var(--fe-muted, #556070);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =========================================================
   Wyszukiwarki shortcode — styl Wrocławski Pośrednik
   [estate_offer_search] + [estate_offer_search layout="bar"]
========================================================= */
.fe-offer-search,
.fe-offer-search--embedded,
.fe-offer-search--bar {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.5rem 1.45rem;
  background: #ffffff;
  border: 1px solid var(--fe-line, #e2e8f0);
  border-radius: 14px;
  box-shadow: var(--fe-shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--fe-ink, #121820);
}

.fe-offer-search--bar {
  padding: 0.85rem 1rem;
  margin-bottom: 0;
}

.fe-offer-search__grid {
  gap: 1rem;
}

.fe-offer-search__row {
  gap: 0.85rem 1rem;
}

/* Uproszczona (bar): zwarta belka — bez „dziury” od marginów Houzez/Bootstrap */
.fe-offer-search--bar .fe-offer-search__grid {
  gap: 0;
}

.fe-offer-search--bar .fe-offer-search__row--bar {
  align-items: center;
  gap: 0.65rem 0.75rem;
}

.fe-offer-search--bar .fe-offer-search__field {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.fe-offer-search--bar .fe-offer-search__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fe-offer-search--bar input,
.fe-offer-search--bar select,
.fe-offer-search--bar .fe-offer-search__submit,
.fe-offer-search--bar .fe-offer-search__reset {
  margin: 0 !important;
  margin-bottom: 0 !important;
  float: none !important;
}

.fe-offer-search--bar .fe-offer-search__field--actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.5rem;
}

/* Widoczne etykiety (full); bar zostaje przy placeholderach */
.fe-offer-search:not(.fe-offer-search--bar) .fe-offer-search__label {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0.4rem;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 0;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fe-muted, #556070);
}

.fe-offer-search__field {
  gap: 0;
}

.fe-offer-search input,
.fe-offer-search select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--fe-line, #e2e8f0);
  border-radius: 10px;
  background: var(--fe-bg, #f8fafc);
  color: var(--fe-ink, #121820);
  font: inherit;
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.fe-offer-search select {
  background-color: var(--fe-bg, #f8fafc);
  background-image: linear-gradient(45deg, transparent 50%, #556070 50%),
    linear-gradient(135deg, #556070 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% + 2px), calc(100% - 11px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
  cursor: pointer;
}

.fe-offer-search input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.fe-offer-search input:hover,
.fe-offer-search select:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.fe-offer-search input:focus,
.fe-offer-search select:focus {
  outline: none;
  border-color: var(--fe-accent, #c59b27);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.18);
}

.fe-offer-search__range {
  gap: 0.65rem;
}

.fe-offer-search__field--actions {
  gap: 0.75rem;
  align-items: center;
}

.fe-offer-search--bar .fe-offer-search__field--actions {
  padding-bottom: 0;
  align-items: stretch;
}

/* CTA jak phone-btn w headerze */
.fe-offer-search__submit,
.fe-offer-block--offer-search .fe-offer-search__submit,
.fe-offer-block--offer-search-bar .fe-offer-search__submit,
.wp-block-four-estate-offer-search .fe-offer-search__submit,
.wp-block-four-estate-offer-search-bar .fe-offer-search__submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border: 0 !important;
  border-radius: 50px;
  background: var(--fe-accent, #c59b27);
  color: #ffffff !important;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.35);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.fe-offer-search__submit:hover,
.fe-offer-block--offer-search .fe-offer-search__submit:hover,
.fe-offer-block--offer-search-bar .fe-offer-search__submit:hover,
.wp-block-four-estate-offer-search .fe-offer-search__submit:hover,
.wp-block-four-estate-offer-search-bar .fe-offer-search__submit:hover {
  background: var(--fe-accent-hover, #a8811d);
  color: #ffffff !important;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.45);
  border-bottom-color: transparent;
}

.fe-offer-search__submit:focus-visible {
  outline: 2px solid var(--fe-accent, #c59b27);
  outline-offset: 3px;
}

.fe-offer-search__reset,
.fe-offer-block--offer-search .fe-offer-search__reset,
.fe-offer-block--offer-search-bar .fe-offer-search__reset,
.wp-block-four-estate-offer-search .fe-offer-search__reset,
.wp-block-four-estate-offer-search-bar .fe-offer-search__reset {
  color: var(--fe-muted, #556070);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.fe-offer-search__reset:hover,
.fe-offer-block--offer-search .fe-offer-search__reset:hover,
.fe-offer-block--offer-search-bar .fe-offer-search__reset:hover,
.wp-block-four-estate-offer-search .fe-offer-search__reset:hover,
.wp-block-four-estate-offer-search-bar .fe-offer-search__reset:hover {
  color: var(--fe-accent, #c59b27);
  border-bottom-color: var(--fe-accent, #c59b27);
}

.fe-offer-search--bar input,
.fe-offer-search--bar select,
.fe-offer-search--bar .fe-offer-search__submit {
  min-height: 48px;
  height: 48px;
  box-sizing: border-box;
}

.fe-offer-search--bar .fe-offer-search__submit {
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

/* Full: nieco więcej powietrza między rzędami */
.fe-offer-search:not(.fe-offer-search--bar) .fe-offer-search__grid {
  gap: 1.15rem;
}

.fe-offer-search:not(.fe-offer-search--bar) .fe-offer-search__field--actions {
  padding-top: 0.15rem;
}

/* Bloki Gutenberg / Style panel — nie psuj brandingu WP */
.fe-offer-block--offer-search .fe-offer-search input,
.fe-offer-block--offer-search .fe-offer-search select,
.fe-offer-block--offer-search-bar .fe-offer-search input,
.fe-offer-block--offer-search-bar .fe-offer-search select,
.wp-block-four-estate-offer-search .fe-offer-search input,
.wp-block-four-estate-offer-search .fe-offer-search select,
.wp-block-four-estate-offer-search-bar .fe-offer-search input,
.wp-block-four-estate-offer-search-bar .fe-offer-search select {
  color: var(--fe-ink, #121820);
  border-color: var(--fe-line, #e2e8f0);
  border-bottom-color: var(--fe-line, #e2e8f0);
}

.fe-offer-block--offer-search .fe-offer-search input:focus,
.fe-offer-block--offer-search .fe-offer-search select:focus,
.fe-offer-block--offer-search-bar .fe-offer-search input:focus,
.fe-offer-block--offer-search-bar .fe-offer-search select:focus,
.wp-block-four-estate-offer-search .fe-offer-search input:focus,
.wp-block-four-estate-offer-search .fe-offer-search select:focus,
.wp-block-four-estate-offer-search-bar .fe-offer-search input:focus,
.wp-block-four-estate-offer-search-bar .fe-offer-search select:focus {
  border-color: var(--fe-accent, #c59b27);
  border-bottom-color: var(--fe-accent, #c59b27);
}

@media (max-width: 900px) {
  .fe-offer-search,
  .fe-offer-search--embedded,
  .fe-offer-search--bar {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .fe-offer-search--bar .fe-offer-search__field--actions {
    justify-content: stretch;
  }

  .fe-offer-search--bar .fe-offer-search__submit {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .fe-offer-search__field--actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fe-offer-search__submit {
    width: 100%;
  }
}

/* =========================================================
   Lista ofert shortcode — [estate_offers]
   Karty w stylu Wrocławski Pośrednik
========================================================= */
.fe-offers-grid-wrap {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--fe-ink, #121820);
}

.fe-offers-grid-wrap__heading {
  margin: 0 0 1.35rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fe-ink, #121820);
  letter-spacing: -0.01em;
}

.fe-offers-grid {
  gap: 1.5rem;
}

.fe-offer-card,
.fe-offer-block--offer-list .fe-offer-card,
.wp-block-four-estate-offer-list .fe-offer-card {
  background: #ffffff;
  border: 1px solid var(--fe-line, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 24, 32, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}

.fe-offer-card:hover,
.fe-offer-block--offer-list .fe-offer-card:hover,
.wp-block-four-estate-offer-list .fe-offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 155, 39, 0.45);
  box-shadow: 0 18px 40px rgba(18, 24, 32, 0.12);
}

.fe-offer-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.fe-offer-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  flex: 0 0 auto;
  background: #e8edf3;
  overflow: hidden;
  /* Houzez / Bootstrap: img { height:auto } zostawia szarą dziurę pod zdjęciem */
  line-height: 0;
}

.fe-offer-card__media .fe-offer-card__img,
.fe-offer-card__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.fe-offer-card:hover .fe-offer-card__img {
  transform: scale(1.04);
}

.fe-offer-card__img--placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(197, 155, 39, 0.16), transparent 55%),
    #e8edf3;
}

.fe-offer-card__badge {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 1;
  padding: 0.55rem 0.95rem;
  border-radius: 50px;
  background: var(--fe-accent, #c59b27);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.4);
}

.fe-offer-card__body {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.fe-offer-card__title,
.fe-offer-block--offer-list .fe-offer-card__title,
.wp-block-four-estate-offer-list .fe-offer-card__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fe-ink, #121820);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.fe-offer-card:hover .fe-offer-card__title {
  color: var(--fe-accent, #c59b27);
}

.fe-offer-card__price,
.fe-offer-block--offer-list .fe-offer-card__price,
.wp-block-four-estate-offer-list .fe-offer-card__price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fe-accent, #c59b27);
  letter-spacing: -0.01em;
}

.fe-offer-card__address,
.fe-offer-block--offer-list .fe-offer-card__address,
.wp-block-four-estate-offer-list .fe-offer-card__address {
  margin: 0;
  color: var(--fe-muted, #556070);
  font-size: 0.875rem;
  line-height: 1.4;
}

.fe-offer-card__meta,
.fe-offer-block--offer-list .fe-offer-card__meta,
.wp-block-four-estate-offer-list .fe-offer-card__meta {
  margin: 0.15rem 0 0;
  color: var(--fe-muted, #556070);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fe-offers-empty {
  margin: 0;
  padding: 2.25rem 1.5rem;
  border: 1px dashed var(--fe-line, #e2e8f0);
  border-radius: 14px;
  background: #ffffff;
  color: var(--fe-muted, #556070);
  text-align: center;
  font-weight: 500;
}

/* Paginacja listingu w tym samym klimacie */
.fe-offers__pagination .nav-links {
  gap: 0.55rem;
}

.fe-offers__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--fe-line, #e2e8f0);
  border-radius: 50px;
  background: #ffffff;
  color: var(--fe-ink, #121820);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.fe-offers__pagination .page-numbers:hover {
  border-color: var(--fe-accent, #c59b27);
  color: var(--fe-accent, #c59b27);
}

.fe-offers__pagination .page-numbers.current {
  background: var(--fe-accent, #c59b27);
  border-color: var(--fe-accent, #c59b27);
  color: #ffffff;
}
