/*
Theme Name: Imo Custom
Theme URI: http://localhost:8881
Author: Codex
Author URI: http://localhost:8881
Description: Custom coded theme for Imo Invest Costa del Sol.
Version: 1.1.0
Text Domain: imo-custom
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body.admin-bar #brx-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 782px) {
  body.admin-bar #brx-header {
    top: 46px;
  }
}

/* Keep background videos full-bleed inside hero sections */
.brxe-section.has-bg-video,
#hero-section {
  overflow: hidden;
}

.brxe-section.has-bg-video > .bricks-background-video-wrapper,
#hero-section > .bricks-background-video-wrapper {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.brxe-section.has-bg-video > .bricks-background-video-wrapper video,
.brxe-section.has-bg-video > .bricks-background-video-wrapper iframe,
.brxe-section.has-bg-video > .bricks-background-video-wrapper .bricks-video-poster-image,
#hero-section > .bricks-background-video-wrapper video,
#hero-section > .bricks-background-video-wrapper iframe,
#hero-section > .bricks-background-video-wrapper .bricks-video-poster-image {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  transform: translate(-50%, -50%);
  object-fit: cover !important;
}

/* Hero intro animation */
.hero-intro-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  opacity: 0;
  animation: logoReveal 3.5s ease-out forwards;
}

.hero-intro-logo img,
.hero-intro-logo svg {
  max-width: 300px;
  height: auto;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: contentReveal 1s ease-out 3.8s forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
}

@keyframes contentReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Transparent header scroll effect */
#brx-header.main-header,
.main-header {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#brx-header.main-header.scrolled,
.main-header.scrolled {
  background-color: rgba(157, 141, 127, 0.95) !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.imo-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.imo-lang-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  height: 3rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 241, 0.38);
  color: var(--primary-l-4);
  text-decoration: none;
  font-family: Lato, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.imo-lang-switcher__item:hover,
.imo-lang-switcher__item:focus-visible {
  background-color: rgba(245, 243, 241, 0.12);
  border-color: rgba(245, 243, 241, 0.6);
}

.imo-lang-switcher__item.is-current {
  background-color: #f5f3f1;
  border-color: #f5f3f1;
  color: #6f6459;
  font-weight: 700;
}

#brxe-bigesx {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

#brxe-bigesx .bricks-nav-menu-wrapper {
  margin-left: auto;
}

#brxe-bigesx > .imo-lang-switcher {
  margin-left: 0.8rem;
}

.imo-lang-switcher--mobile {
  display: none;
}

#brxe-bigesx .bricks-mobile-menu-wrapper .imo-lang-switcher {
  padding: 0 2.4rem;
}

.imo-lang-switcher--footer {
  margin-top: 1.2rem;
  justify-content: flex-start;
}

.imo-lang-switcher--footer .imo-lang-switcher__item {
  border-color: rgba(245, 243, 241, 0.55);
}

.svg-bg {
  max-height: 100%;
  overflow: hidden;
}

.imo-single-gallery .swiper-slide .image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Home featured slider: prevent document-level horizontal overflow from Splide clones */
#brxe-powafe {
  position: relative;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  #brxe-powafe {
    overflow-x: hidden;
  }
}

#brxe-powafe .splide__arrow--prev {
  left: 0.8rem !important;
}

#brxe-powafe .splide__arrow--next {
  right: 0.8rem !important;
}

/* Mobile: hide arrows and keep track fully edge-to-edge */
@media (max-width: 767px) {
  #brxe-powafe {
    overflow: hidden;
  }

  #brxe-powafe .splide__arrow {
    display: none !important;
  }

  #brxe-powafe .splide__track {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 100000;
  background: #fff;
  color: #000;
  padding: 0.6rem 0.9rem;
}

/* Mobile menu state handled in custom JS */
@media (max-width: 767px) {
  #brxe-bigesx > .imo-lang-switcher {
    display: none;
  }

  .imo-lang-switcher--mobile {
    display: inline-flex;
    margin-top: 1.2rem;
  }

  #brxe-bigesx .bricks-mobile-menu-wrapper {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(-100%, 0, 0) !important;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease !important;
    z-index: 10010 !important;
  }

  #brxe-bigesx.is-open .bricks-mobile-menu-wrapper,
  #brxe-bigesx.brx-open .bricks-mobile-menu-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
  }

  #brxe-bigesx .bricks-mobile-menu-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
    z-index: 10000 !important;
  }

  #brxe-bigesx.is-open .bricks-mobile-menu-overlay,
  #brxe-bigesx.brx-open .bricks-mobile-menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.imo-mobile-open {
    overflow: hidden;
  }
}

@media (max-width: 478px) {
  .imo-lang-switcher--footer {
    justify-content: center;
  }
}

/* Preserve functionality for our custom WP form implementation */
.imo-native-form {
  width: 100%;
}

.imo-native-form .form-group {
  margin-bottom: 1rem;
}

.imo-native-form .submit-button-wrapper button,
.imo-native-form .bricks-button {
  cursor: pointer;
}

.imo-native-form .imo-form-feedback {
  min-height: 0;
  margin: 0 0 1.4rem;
}

.imo-native-form .imo-form-notice {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-family: Lato, sans-serif;
  font-size: 1.45rem;
  line-height: 1.45;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(31, 24, 18, 0.12);
  animation: imoFormNoticeIn 220ms ease both;
}

.imo-native-form .imo-form-notice.success {
  color: #304636;
  background: #edf4ef;
  border-color: #c7d8cb;
}

.imo-native-form .imo-form-notice.error {
  color: #7c3430;
  background: #f9ece9;
  border-color: #e7c0b8;
}

.imo-native-form.is-submitting .submit-button-wrapper button,
.imo-native-form.is-submitting .bricks-button {
  opacity: 0.78;
  pointer-events: none;
}

@keyframes imoFormNoticeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE – BIO
═══════════════════════════════════════════════════════════ */

.imo-about-bio {
  background: hsl(43, 26%, 95%);
  padding: clamp(6rem, 10vw, 13rem) clamp(2rem, 5vw, 4rem);
}

.imo-about-bio__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: min(38%, 400px) 1fr;
  gap: clamp(5rem, 8vw, 11rem);
  align-items: start;
}

/* Photo column */
.imo-about-bio__figure {
  margin: 0;
  position: sticky;
  top: clamp(9rem, 12vw, 12rem);
}

.imo-about-bio__photo-wrap {
  position: relative;
}

/* Decorative offset border behind the photo */
.imo-about-bio__photo-wrap::before {
  content: '';
  position: absolute;
  inset: clamp(1.6rem, 2.5vw, 2.2rem)
         calc(-1 * clamp(1.6rem, 2.5vw, 2.2rem))
         calc(-1 * clamp(1.6rem, 2.5vw, 2.2rem))
         clamp(1.6rem, 2.5vw, 2.2rem);
  border: 1.5px solid hsl(33, 31%, 74%);
  border-radius: clamp(0.8rem, 1.5vw, 1.4rem);
  z-index: 0;
}

.imo-about-bio__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: clamp(0.8rem, 1.5vw, 1.4rem);
  box-shadow:
    0 24px 64px rgba(40, 33, 26, 0.22),
    0 6px 20px rgba(40, 33, 26, 0.1);
}

.imo-about-bio__caption {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.2rem;
}

.imo-about-bio__caption-name {
  font-family: "Qwigley", cursive;
  font-size: clamp(3.3rem, 3.1vw, 4.8rem);
  color: hsl(30, 7%, 16%);
  line-height: 1.02;
  display: block;
}

.imo-about-bio__caption-role {
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 0.85vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(32, 14%, 58%);
  display: block;
}

/* Text column */
.imo-about-bio__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2rem, 3vw, 3rem);
  padding-top: clamp(0.5rem, 1.5vw, 1.5rem);
}

.imo-about-bio__overline {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 0.82vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(32, 14%, 58%);
}

.imo-about-bio__overline::before {
  content: '';
  display: block;
  width: 2.4rem;
  height: 1px;
  background: hsl(32, 14%, 68%);
  flex-shrink: 0;
}

.imo-about-bio__heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 3.8vw, 5.2rem);
  font-weight: 500;
  line-height: 1.12;
  color: hsl(30, 7%, 14%);
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.imo-about-bio__content {
  font-family: "Lato", sans-serif;
  font-size: clamp(1.55rem, 1.3vw, 1.85rem);
  font-weight: 300;
  line-height: 1.82;
  color: hsl(35, 8%, 28%);
}

.imo-about-bio__content p {
  margin: 0 0 1.4em;
}

.imo-about-bio__content p:last-child {
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE – STATS
═══════════════════════════════════════════════════════════ */

.imo-about-stats {
  background: hsl(34, 27%, 88%);
  padding: clamp(2.8rem, 4vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}

.imo-about-stats__row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.imo-about-stats__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0 clamp(1rem, 3vw, 3rem);
  text-align: center;
}

.imo-about-stats__divider {
  width: 1px;
  height: 5rem;
  background: hsl(33, 20%, 68%);
  flex-shrink: 0;
}

.imo-about-stats__value {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.6rem, 5vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: hsl(35, 8%, 22%);
}

.imo-about-stats__label {
  display: block;
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 0.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(32, 14%, 52%);
}


/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE – QUOTE
═══════════════════════════════════════════════════════════ */

.imo-about-quote-section {
  background: hsl(38, 32%, 95%);
  padding: clamp(5.5rem, 9vw, 10rem) clamp(2rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.imo-about-quote-section::before {
  content: '\201C';
  position: absolute;
  top: -0.12em;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: clamp(18rem, 28vw, 42rem);
  line-height: 1;
  color: rgba(157, 141, 127, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.imo-about-quote-inner {
  width: min(100%, 780px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.imo-about-quote-text {
  width: 100%;
  margin: 0 0 2.8rem;
  color: #4b433b;
  font-family: "Lato", sans-serif;
  font-size: clamp(1.9rem, 1.8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.72;
  text-align: center;
  text-wrap: balance;
  border: none;
  padding: 0;
}

.imo-about-quote-text p {
  margin: 0;
}

.imo-about-quote-signature-final {
  width: 100%;
  margin: 1.8rem auto 0;
  text-align: right;
  color: #332b25;
  font-family: "Qwigley", cursive;
  font-size: clamp(5rem, 5.2vw, 8.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  padding-bottom: 0.08em;
}

/* Unify CTA shape/typography and slightly reduce hero button size */
#brxe-argisb,
#brxe-zqdcpp,
.imo-native-form .submit-button-wrapper .btn.bricks-button {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.35rem, 0.85vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 10px;
  padding: 0.82rem 1.35rem;
  min-height: 0;
}

.imo-native-form .submit-button-wrapper .btn.bricks-button,
.imo-native-form .submit-button-wrapper .btn.bricks-button .text {
  color: #2c2926;
}


/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE – CONTACT (wraps existing Bricks #contact styles)
═══════════════════════════════════════════════════════════ */

.imo-about-contact__inner {
  /* Bricks inline CSS on #brxe-jkltdm handles layout */
}

.imo-about-contact__title {
  /* Bricks inline CSS on #brxe-mifaca handles typography */
}

.imo-about-contact__lead {
  /* Bricks inline CSS on #brxe-njygxt handles typography */
}


/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE – RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  .imo-about-bio__grid {
    grid-template-columns: min(42%, 340px) 1fr;
    gap: clamp(4rem, 7vw, 8rem);
  }
}

@media (max-width: 767px) {
  /* Bio */
  .imo-about-bio {
    padding: clamp(4.5rem, 9vw, 7rem) clamp(1.8rem, 5vw, 3rem);
  }

  .imo-about-bio__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .imo-about-bio__figure {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .imo-about-bio__photo-wrap::before {
    inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  }

  .imo-about-bio__photo {
    aspect-ratio: 3 / 4;
  }

  /* Stats — stay horizontal on all screen sizes */
  .imo-about-stats__item {
    padding: 2.5rem 1rem;
    gap: 0.8rem;
  }

  /* Quote */
  .imo-about-quote-section {
    padding: clamp(4rem, 10vw, 5.5rem) clamp(1.6rem, 5vw, 2.4rem);
  }

  .imo-about-quote-text {
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    margin-bottom: 2.2rem;
  }

  .imo-about-quote-signature-final {
    margin-top: 1.2rem;
    text-align: center;
    font-size: clamp(4.4rem, 14vw, 6.6rem);
  }
}

@media (max-width: 478px) {
  .imo-about-bio__body {
    gap: 2rem;
  }

  .imo-about-stats__value {
    font-size: clamp(3.2rem, 10vw, 5rem);
  }

  .imo-about-stats__label {
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    letter-spacing: 0.12em;
  }
}

/* Archive price filter: ensure hidden cards stay hidden even with Bricks display classes */
.imo-filter-hidden {
  display: none !important;
}

form[data-price-filter] {
  width: min(100%, 1080px) !important;
  max-width: min(100%, 1080px) !important;
  margin: clamp(2.4rem, 3vw, 4rem) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  row-gap: 1rem;
}

form[data-price-filter] .imo-price-filter-group {
  width: min(100%, 520px);
  min-width: 0;
  max-width: 520px;
  position: relative;
  padding-top: 3.2rem;
  padding-bottom: 2.6rem;
}

form[data-price-filter] .imo-price-filter-label {
  width: auto;
  margin: 0 !important;
  text-align: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

form[data-price-filter] #brxe-yalvvc.imo-price-filter-label {
  width: 100% !important;
  max-width: none !important;
}

form[data-price-filter] .imo-price-filter-group .double-slider-wrap {
  position: relative;
  width: 100%;
}

form[data-price-filter] .imo-price-filter-group .double-slider-wrap .value-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.7rem);
  margin-top: 0;
}

.imo-archive-toolbar {
  margin-top: 0.2rem;
  width: min(100%, 760px);
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.imo-type-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid #cfc3b4;
  background: #f4efe8;
}

.imo-type-chip {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f574e;
  font-family: Lato, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.imo-type-chip:hover {
  color: #3f3933;
}

.imo-type-chip.is-active {
  background: #9d8d7f;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.imo-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  white-space: nowrap;
  min-height: 3.8rem;
}

.imo-sort-label {
  display: inline-flex;
  align-items: center;
  height: 3.8rem;
  font-family: Lato, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #5f574e;
  line-height: 1;
  margin: 0;
}

.imo-sort-select {
  border: 1px solid #cfc3b4;
  background: #fff;
  color: #4c443c;
  border-radius: 999px;
  min-width: 200px;
  height: 3.8rem;
  line-height: 3.8rem;
  padding: 0 1.4rem;
  font-family: Lato, sans-serif;
  font-size: 1.3rem;
  text-align: center;
  text-align-last: center;
}

.imo-sort-select:focus,
.imo-type-chip:focus-visible {
  outline: 2px solid #9d8d7f;
  outline-offset: 2px;
}

.imo-filter-ghost-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 30;
}

.imo-filter-ghost {
  position: absolute;
  margin: 0 !important;
  pointer-events: none;
  transform-origin: center center;
  will-change: opacity, transform;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.imo-filter-ghost.imo-filter-ghost-leave {
  opacity: 0;
  transform: translateY(8px) scale(0.975);
}

@media (max-width: 1279px) {
  form[data-price-filter] {
    width: min(100%, 760px) !important;
    max-width: min(100%, 760px) !important;
  }

  form[data-price-filter] .imo-price-filter-group {
    width: min(100%, 520px);
    min-width: 0;
    max-width: 520px;
  }

  form[data-price-filter] .imo-price-filter-group .double-slider-wrap {
    width: 100%;
    max-width: none;
  }

  .imo-archive-toolbar {
    width: 100%;
    max-width: 700px;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 1.6rem;
    row-gap: 0.9rem;
  }

  .imo-type-toggle {
    width: min(100%, 380px);
    justify-content: center;
  }

  .imo-sort-wrap {
    width: auto;
    max-width: 300px;
    justify-content: center;
  }

  .imo-sort-select {
    min-width: 0;
    width: 230px;
    max-width: 230px;
  }

  #brxe-uyfchx {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 2rem;
  }
}

@media (max-width: 767px) {
  form[data-price-filter] {
    width: min(100%, 520px) !important;
    max-width: min(100%, 520px) !important;
    margin-top: 2.2rem;
    row-gap: 1rem;
  }

  form[data-price-filter] .imo-price-filter-group {
    width: 100%;
    max-width: none;
  }

  form[data-price-filter] .imo-price-filter-group .double-slider-wrap {
    width: 100%;
    max-width: none;
  }

  .imo-archive-toolbar {
    align-items: center;
    justify-content: center;
  }

  .imo-type-toggle {
    width: 100%;
    max-width: 420px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .imo-type-chip {
    flex: 1 1 30%;
    min-width: 96px;
    padding: 0.9rem 1rem;
    text-align: center;
  }

  .imo-sort-wrap {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .imo-sort-select {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  #brxe-uyfchx {
    grid-template-columns: 1fr;
    grid-gap: 1.4rem;
  }
}

@media (min-width: 1280px) {
  form[data-price-filter] {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    column-gap: 2.8rem;
    row-gap: 0;
  }

  form[data-price-filter] .imo-price-filter-group {
    width: min(100%, 440px);
    max-width: 440px;
  }

  .imo-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.9rem;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
  }

  .imo-type-toggle {
    justify-self: auto;
  }

  .imo-sort-wrap {
    width: auto;
    max-width: none;
    justify-content: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   HOTFIX – ABOUT HERO + ABOUT FORM + SINGLE META SPACING
═══════════════════════════════════════════════════════════ */

#brxe-qjhxzp {
  min-height: clamp(31rem, 44vh, 46rem);
  padding-inline: clamp(1.8rem, 3.2vw, 3.8rem);
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

#brxe-fdmtiw {
  width: 100%;
  max-width: 100% !important;
  align-self: center !important;
  display: flex;
  justify-content: center;
}

#brxe-rojnwf {
  width: 100%;
  padding-left: 0 !important;
  display: flex;
  justify-content: center;
}

#brxe-ygctui {
  margin: 0 auto;
  max-width: min(92vw, 92rem);
  text-align: center;
  color: #fff !important;
}

#contact #brxe-jkltdm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1.6rem, 3.5vw, 4.2rem);
  padding-top: clamp(4.2rem, 6.6vw, 7.4rem);
  padding-bottom: clamp(4.2rem, 6.6vw, 7.4rem);
  row-gap: clamp(1rem, 1.6vw, 1.8rem);
}

#contact #brxe-mifaca,
#contact #brxe-njygxt {
  width: 100%;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

#contact #brxe-njygxt {
  max-width: min(100%, 88rem);
  margin-bottom: clamp(0.8rem, 1.6vw, 1.6rem);
}

#contact #brxe-xxozrf {
  width: min(100%, 64rem) !important;
  max-width: 64rem !important;
  margin-inline: auto;
}

#contact #brxe-bvmjae {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
}

#contact #brxe-bvmjae .form-group {
  width: 100%;
}

#contact #brxe-bvmjae .form-group input,
#contact #brxe-bvmjae .form-group select,
#contact #brxe-bvmjae .form-group textarea {
  width: 100%;
  max-width: 100%;
}

body.single-nieruchomosc #brxe-pehmde {
  padding-top: clamp(1.2rem, 1.8vw, 2rem);
  padding-bottom: clamp(1.2rem, 1.8vw, 2rem);
}

body.single-nieruchomosc #brxe-bgzybu {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: center;
  gap: clamp(1.2rem, 2vw, 3.2rem);
  font-size: clamp(1.45rem, 0.16vw + 1.4rem, 1.7rem);
  line-height: 1.35;
}

body.single-nieruchomosc #brxe-fybcin,
body.single-nieruchomosc #brxe-glgnvl {
  display: inline-flex;
  align-items: center !important;
  column-gap: 0.9rem;
  margin-top: 0 !important;
}

body.single-nieruchomosc #brxe-xbsqin,
body.single-nieruchomosc #brxe-rolnzu {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  line-height: 1.35;
}

@media (max-width: 767px) {
  #brxe-qjhxzp {
    min-height: clamp(26rem, 38vh, 34rem);
  }

  #contact #brxe-xxozrf,
  #contact #brxe-bvmjae {
    max-width: 100% !important;
  }

  #contact #brxe-jkltdm {
    padding-top: clamp(3.2rem, 8vw, 4.6rem);
    padding-bottom: clamp(3.2rem, 8vw, 4.6rem);
  }

  body.single-nieruchomosc #brxe-bgzybu {
    gap: 1.1rem;
    flex-direction: column;
  }
}
