/*
 * Properties mega menu
 * The panel is populated in functions.php from the localized search-page map.
 * Keeping this layer isolated prevents the compact mobile header from inheriting
 * the desktop panel dimensions.
 */

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu > :is(ul.sub-menu, .elementor-nav-menu--dropdown) > li.artbin-properties-mega-wrapper {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 24px !important;
  border: 1px solid rgba(174, 197, 221, .34) !important;
  border-radius: 18px !important;
  background: #0d2845 !important;
  color: #ffffff !important;
  box-shadow: 0 22px 48px rgba(4, 17, 32, .34) !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__deals,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__categories,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__conditions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__deal,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__category,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__condition,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__all {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid rgba(174, 197, 221, .42) !important;
  color: #ffffff !important;
  font-family: "Wix Madefor Display", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: .025em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__deal {
  min-height: 74px !important;
  padding: 16px 18px !important;
  border-color: #f4b51b !important;
  background: transparent !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__deal.is-active {
  background: #f4b51b !important;
  color: #10233a !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__section-title {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 22px 0 12px !important;
  color: rgba(255, 255, 255, .74) !important;
  font-family: "Wix Madefor Display", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .16em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__section-title::before,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__section-title::after {
  display: block !important;
  height: 1px !important;
  background: rgba(174, 197, 221, .32) !important;
  content: "" !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__category {
  flex-direction: column !important;
  min-height: 136px !important;
  padding: 18px !important;
  border-radius: 13px !important;
  background: #102f50 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__condition {
  justify-content: flex-start !important;
  min-height: 62px !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  background: #102f50 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__all {
  min-height: 50px !important;
  margin-top: 18px !important;
  border-width: 0 !important;
  border-top: 1px solid rgba(174, 197, 221, .32) !important;
  border-radius: 0 !important;
  color: #f4b51b !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__icon {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  color: #f4b51b !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__deal.is-active .artbin-properties-mega__icon {
  color: #10233a !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__category .artbin-properties-mega__icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 35px !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__label {
  color: inherit !important;
  font: inherit !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__category .artbin-properties-mega__label {
  margin-top: 9px !important;
  font-size: 17px !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__arrow {
  margin-left: auto !important;
  color: #f4b51b !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__category .artbin-properties-mega__arrow {
  margin: 5px 0 0 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega :is(a:hover, a:focus-visible) {
  border-color: #f4b51b !important;
  background: #183c61 !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 8px 18px rgba(2, 14, 28, .24) !important;
  transform: translateY(-1px) !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega .artbin-properties-mega__deal.is-active:is(:hover, :focus-visible) {
  background: #ffd463 !important;
  color: #10233a !important;
}

@media (min-width: 1024px) {
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-nav-menu--main .artbin-properties-menu > ul.sub-menu.elementor-nav-menu--dropdown {
    width: 632px !important;
    min-width: 632px !important;
    max-width: calc(100vw - 40px) !important;
    margin-top: 17px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-nav-menu--main .artbin-properties-menu > ul.sub-menu.elementor-nav-menu--dropdown > li:not(.artbin-properties-mega-wrapper) {
    display: none !important;
  }
}

@media (max-width: 1023.98px) {
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu > :is(ul.sub-menu, .elementor-nav-menu--dropdown) > li:not(.artbin-properties-mega-wrapper) {
    display: none !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega {
    padding: 16px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 520px) {
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega {
    padding: 12px !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__deal,
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__condition {
    min-height: 54px !important;
    padding: 12px !important;
    font-size: 12px !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__category {
    min-height: 108px !important;
    padding: 12px !important;
    font-size: 13px !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__category .artbin-properties-mega__label {
    font-size: 14px !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__icon {
    font-size: 20px !important;
  }
}

/* Compact header: the generated Properties panel stays a single dark card.
 * Legacy accordion rules colour every nested link navy; explicitly restore the
 * intended contrast here so tablet and phone views remain readable. */
@media (max-width: 1399.98px) {
  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega {
    background: #0d2845 !important;
    color: #ffffff !important;
  }

  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition) {
    background: #102f50 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega .artbin-properties-mega__deal.is-active {
    background: #f4b51b !important;
    color: #10233a !important;
    -webkit-text-fill-color: #10233a !important;
  }

  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition) .artbin-properties-mega__label {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega :is(.artbin-properties-mega__category, .artbin-properties-mega__condition) .artbin-properties-mega__icon,
  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega :is(.artbin-properties-mega__category, .artbin-properties-mega__condition) .artbin-properties-mega__arrow,
  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega .artbin-properties-mega__all {
    color: #f4b51b !important;
    -webkit-text-fill-color: #f4b51b !important;
  }

  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega .artbin-properties-mega__deal.is-active :is(.artbin-properties-mega__icon, .artbin-properties-mega__label) {
    color: #10233a !important;
    -webkit-text-fill-color: #10233a !important;
  }
}

/* Selected Properties submenu concept: one stable right-hand arrow rail,
 * icon-led rows, and a single nested Residential branch. This override is
 * intentionally scoped to the generated wrapper so the native header menus
 * and the About/Blog cards keep their own visual language. */
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega {
  width: min(640px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  padding: 18px !important;
  border: 1px solid rgba(174, 197, 221, .38) !important;
  border-radius: 16px !important;
  background: #0d2845 !important;
  color: #ffffff !important;
  box-shadow: 0 24px 52px rgba(4, 17, 32, .38) !important;
  overflow: visible !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__list {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__section {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__section + .artbin-properties-mega__section {
  border-top: 1px solid rgba(174, 197, 221, .28) !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__item,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested-item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 20px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 64px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(174, 197, 221, .24) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: "Wix Madefor Display", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: .035em !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__section:last-child .artbin-properties-mega__item:last-child,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested-item:last-child {
  border-bottom: 0 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__item:hover,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__item:focus-visible,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested-item:hover,
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested-item:focus-visible {
  z-index: 1 !important;
  border-color: #f4b51b !important;
  border-radius: 10px !important;
  background: rgba(24, 60, 97, .88) !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 8px 18px rgba(2, 14, 28, .24) !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  color: #f4b51b !important;
  font-size: 27px !important;
  line-height: 1 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__label {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  justify-self: end !important;
  color: #f4b51b !important;
  font-size: 19px !important;
  line-height: 1 !important;
  transform: none !important;
  transition: transform .18s ease !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__branch {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__branch .artbin-properties-mega__item--parent {
  border: 1px solid transparent !important;
  border-radius: 10px !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__branch.is-expanded .artbin-properties-mega__item--parent {
  border-color: #f4b51b !important;
  background: rgba(24, 60, 97, .68) !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__branch.is-expanded .artbin-properties-mega__arrow {
  transform: rotate(-90deg) !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested {
  display: none !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 0 0 20px !important;
  padding: 0 0 0 18px !important;
  border-left: 1px solid rgba(174, 197, 221, .45) !important;
}

/* The disclosure script owns the compact/mobile state. Keep the native
 * hidden attribute authoritative until a user expands the parent row, while
 * still revealing the branch on hover/focus for pointer-based desktop menus. */
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested[hidden] {
  display: none !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__branch.is-expanded > .artbin-properties-mega__nested:not([hidden]) {
  display: flex !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested::before {
  display: none !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested-item::before {
  display: none !important;
  content: none !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested-item {
  min-height: 48px !important;
  padding: 10px 8px !important;
  border-bottom-color: rgba(174, 197, 221, .2) !important;
  font-size: 14px !important;
  letter-spacing: .03em !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega__nested-item .artbin-properties-mega__icon {
  width: 24px !important;
  height: 24px !important;
  font-size: 21px !important;
}

/* One menu rail for every Properties destination.  Older iterations mixed
 * large category tiles with compact rows, which left the deal arrows midway
 * through the card.  Each parent destination now uses the same three-column
 * row as the residential type links: icon, label and a fixed right arrow. */
html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega :is(.artbin-properties-mega__deals, .artbin-properties-mega__categories, .artbin-properties-mega__conditions) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition) {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 20px !important;
  align-items: center !important;
  justify-content: initial !important;
  column-gap: 12px !important;
  width: 100% !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 12px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(174, 197, 221, .28) !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition) .artbin-properties-mega__icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  color: #f4b51b !important;
  font-size: 28px !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition) .artbin-properties-mega__label {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition) .artbin-properties-mega__arrow {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition):last-child {
  border-bottom-color: transparent !important;
}

html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
.artbin-properties-menu .artbin-properties-mega .artbin-properties-mega__deal.is-active {
  margin: 4px 0 !important;
  border: 1px solid #f4b51b !important;
  border-radius: 10px !important;
  background: #f4b51b !important;
}

@media (max-width: 1399.98px) {
  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega :is(.artbin-properties-mega__deal, .artbin-properties-mega__category, .artbin-properties-mega__condition) {
    background: transparent !important;
    color: #ffffff !important;
  }

  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-widget-nav-menu > .elementor-nav-menu--dropdown.elementor-nav-menu__container > .elementor-nav-menu > li.artbin-properties-menu.artbin-mobile-submenu-open
  .artbin-properties-mega .artbin-properties-mega__deal.is-active {
    background: #f4b51b !important;
    color: #10233a !important;
  }
}

@media (min-width: 1024px) {
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .elementor-nav-menu--main .artbin-properties-menu > ul.sub-menu.elementor-nav-menu--dropdown {
    width: min(640px, calc(100vw - 32px)) !important;
    min-width: min(640px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin-top: 14px !important;
  }
}

@media (max-width: 1399.98px) {
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(70vh, 640px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__item {
    min-height: 58px !important;
    padding: 12px 8px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 640px) {
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega {
    padding: 12px !important;
    border-radius: 14px !important;
    max-height: min(72vh, 600px) !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__item {
    grid-template-columns: 30px minmax(0, 1fr) 18px !important;
    min-height: 54px !important;
    padding: 10px 6px !important;
    font-size: 13px !important;
    letter-spacing: .02em !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__nested {
    margin-left: 15px !important;
    padding-left: 12px !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__nested-item::before {
    display: none !important;
    content: none !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu .artbin-properties-mega__nested-item {
    grid-template-columns: 26px minmax(0, 1fr) 18px !important;
    min-height: 44px !important;
    padding: 8px 5px !important;
    font-size: 12px !important;
  }
}

/* Mobile submenu reference: keep the Properties destinations in the same
 * light, icon-led card language as the other expanded mobile menus.  The
 * three grid columns reserve one fixed rail for every right-hand arrow, so a
 * longer localized label cannot move its arrow inward. */
@media (max-width: 767.98px) {
  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open .artbin-properties-mega {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    border: 1px solid #f4b51b !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #10233a !important;
    box-shadow: 0 16px 32px rgba(10, 35, 59, .14) !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open .artbin-properties-mega__section + .artbin-properties-mega__section {
    border-top-color: rgba(16, 35, 58, .13) !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open :is(.artbin-properties-mega__item, .artbin-properties-mega__nested-item) {
    grid-template-columns: 30px minmax(0, 1fr) 20px !important;
    min-height: 58px !important;
    padding: 11px 8px !important;
    border-bottom-color: rgba(16, 35, 58, .13) !important;
    background: transparent !important;
    color: #10233a !important;
    -webkit-text-fill-color: #10233a !important;
    font-size: 14px !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open :is(.artbin-properties-mega__item, .artbin-properties-mega__nested-item) .artbin-properties-mega__icon {
    grid-column: 1 !important;
    width: 30px !important;
    height: 30px !important;
    color: #10233a !important;
    -webkit-text-fill-color: #10233a !important;
    font-size: 25px !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open :is(.artbin-properties-mega__item, .artbin-properties-mega__nested-item) .artbin-properties-mega__label {
    grid-column: 2 !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open :is(.artbin-properties-mega__item, .artbin-properties-mega__nested-item) .artbin-properties-mega__arrow {
    grid-column: 3 !important;
    justify-self: end !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    color: #e0a400 !important;
    -webkit-text-fill-color: #e0a400 !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open .artbin-properties-mega__branch > .artbin-properties-mega__item--parent {
    border: 0 !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open .artbin-properties-mega__branch.is-expanded > .artbin-properties-mega__item--parent {
    border: 0 !important;
    background: #fffaf0 !important;
    box-shadow: inset 0 0 0 1px #f4b51b !important;
  }

  html body :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"])
  .artbin-properties-menu.artbin-mobile-submenu-open .artbin-properties-mega__nested {
    margin: 0 0 0 18px !important;
    padding: 0 0 0 12px !important;
    border-left-color: rgba(224, 164, 0, .45) !important;
  }

  /* The compact-header base gives every submenu link `display:flex`.  Scope
   * this final guard to the generated Properties panel so its three-column
   * arrow rail remains intact without changing native submenu links. */
  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"], header.elementor-location-header)
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container
  li.artbin-properties-menu.artbin-mobile-submenu-open > .sub-menu.elementor-nav-menu--dropdown
  .artbin-properties-mega :is(.artbin-properties-mega__item, .artbin-properties-mega__nested-item) {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 20px !important;
    align-items: center !important;
    justify-content: initial !important;
    column-gap: 10px !important;
  }

  html body:not(#artbin-mobile-header-v1-lock)
  :is(#header-hz-elementor, .elementor-location-header, header[data-elementor-type="header"], header[data-elementor-type="wp-post"], header.elementor-location-header)
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container
  li.artbin-properties-menu.artbin-mobile-submenu-open > .sub-menu.elementor-nav-menu--dropdown
  .artbin-properties-mega :is(.artbin-properties-mega__item, .artbin-properties-mega__nested-item) .artbin-properties-mega__arrow {
    grid-column: 3 !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }
}
