/**
 * Sampatti Setu V2 — Responsive (Phase 4C Batch 1)
 *
 * Header breakpoint map (range queries, no 1px gap):
 *   width >= 1200px          full desktop nav + phone
 *   1025px <= width < 1200   compact desktop nav + phone (14px, nowrap)
 *   width < 1025px           tablet/mobile: logo + phone + hamburger
 *
 * Elementor/WPResidence tablet is also 1024. Range `width < 1025px`
 * covers 1024 and the subpixel gap between 1024 and 1025.
 *
 * Search panel breakpoint map lives with .ss-search-panel below.
 */

@media (max-width: 1366px) {
  :root {
    --ss-gutter-desktop: 1.75rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --ss-gutter-desktop: var(--ss-gutter-tablet, 1.5rem);
  }
}

@media (max-width: 767px) {
  :root {
    --ss-gutter-desktop: var(--ss-gutter-mobile, 1rem);
  }
}

/* Desktop editorial inset: ~12% from the hero’s left edge. */
@media (width >= 1025px) {
  .ss-hero > .e-con-inner {
    padding-inline-start: max(2.5rem, 12%);
    padding-inline-end: var(--ss-gutter-desktop, 2rem);
  }

  .ss-hero > .e-con-inner > .e-con {
    transform: translateY(-0.75rem); /* ~12px optical lift, clears sticky header */
  }

  .ss-hero > .e-con-inner > .e-con > .elementor-widget-heading {
    padding-inline: 0;
  }
}

/* -------------------------------------------------------------------------
 * Compact desktop — 1025px through 1199px
 * ------------------------------------------------------------------------- */
@media (width >= 1025px) and (width < 1200px) {
  .ss-header.e-con,
  .elementor-31735 .e-con.e-parent {
    --padding-left: 1.5rem;
    --padding-right: 1.5rem;
    --justify-content: space-between;
    justify-content: space-between;
    padding-inline: 1.5rem !important;
  }

  .ss-header > .e-con.e-child,
  .elementor-31735 .e-con.e-parent > .e-con.e-child {
    gap: 0.5rem;
  }

  .ss-header > .e-con.e-child:last-child,
  .elementor-31735 .e-con.e-parent > .e-con.e-child:last-child {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
  }

  .ss-header .wpresidence-navigation-menu .menu-mega-menu-updated-container,
  .ss-header .wpresidence-navigation-menu ul.menu,
  .elementor-31735 .wpresidence-navigation-menu .menu-mega-menu-updated-container,
  .elementor-31735 .wpresidence-navigation-menu ul.menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    max-width: none;
    white-space: nowrap;
  }

  .ss-header .wpresidence-navigation-menu ul.menu > .menu-item,
  .elementor-31735 .wpresidence-navigation-menu ul.menu > .menu-item {
    display: inline-flex;
    float: none;
    vertical-align: middle;
    white-space: nowrap;
  }

  .ss-header .wpresidence-navigation-menu ul.menu > .menu-item > a,
  .elementor-31735 .wpresidence-navigation-menu ul.menu > .menu-item > a {
    padding: 0.5rem 0.55rem !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.04em;
    line-height: 1 !important;
    white-space: nowrap;
  }
}

/* Phone stays one line below 1200px (compact desktop + tablet/mobile). */
@media (width < 1200px) {
  .ss-header .header_phone,
  .elementor-31735 .header_phone {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 0.375rem;
    padding-top: 0;
    white-space: nowrap;
  }

  .ss-header .header_phone svg,
  .elementor-31735 .header_phone svg {
    display: block;
    flex: 0 0 auto;
    width: 0.95em;
    height: 0.95em;
  }

  .ss-header .header_phone,
  .ss-header .header_phone a,
  .elementor-31735 .header_phone,
  .elementor-31735 .header_phone a {
    font-size: 0.875rem !important;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* -------------------------------------------------------------------------
 * Tablet + mobile chrome — width < 1025px (includes 1024)
 * One row: logo left, call + gold-line menu on the right.
 * Last child is row-reverse so DOM order (menu, phone) paints as
 * phone then menu on the trailing edge.
 * ------------------------------------------------------------------------- */
@media (width < 1025px) {
  .ss-header.e-con,
  .elementor-31735 .e-con.e-parent {
    --padding-left: 1.25rem;
    --padding-right: 1.25rem;
    --justify-content: space-between;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 82px;
    padding-inline: 1.25rem !important;
  }

  .ss-header > .e-con.e-child,
  .elementor-31735 .e-con.e-parent > .e-con.e-child {
    --width: auto;
    width: auto !important;
    max-width: none;
    flex-wrap: nowrap;
  }

  .ss-header > .e-con.e-child:first-child,
  .elementor-31735 .elementor-element-155b85d {
    flex: 0 0 auto;
    --justify-content: flex-start;
    justify-content: flex-start;
    align-items: center;
  }

  .ss-header > .e-con.e-child:last-child,
  .elementor-31735 .elementor-element-3da2bc5,
  .elementor-31735 .elementor-element.elementor-element-1c5bceb {
    flex: 0 0 auto;
    --flex-direction: row-reverse;
    flex-direction: row-reverse;
    --justify-content: flex-start;
    justify-content: flex-start;
    align-items: center;
    margin-inline-start: auto;
    gap: 0.5rem;
  }

  .ss-header .wpresidence-site-logo,
  .ss-header .elementor-widget-Site_Logo,
  .elementor-31735 .wpresidence-site-logo,
  .elementor-31735 .elementor-widget-Site_Logo {
    width: auto;
    max-width: 150px;
  }

  .ss-header img.image-logo,
  .elementor-31735 img.image-logo {
    width: 145px;
    max-width: 145px;
    height: auto;
  }

  .ss-header .wpresidence-navigation-menu.wpestate-hide-menu-tablet,
  .elementor-31735 .wpresidence-navigation-menu.wpestate-hide-menu-tablet {
    display: none;
  }

  .ss-header .wpestate-elementor-menu-mobile-container.wpestate-show-menu-tablet,
  .elementor-31735 .wpestate-elementor-menu-mobile-container.wpestate-show-menu-tablet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
  }

  .ss-header .wpestate_mobile_menu_trigger,
  .ss-header .wpestate_mobile_menu_trigger_close,
  .elementor-31735 .wpestate_mobile_menu_trigger,
  .elementor-31735 .wpestate_mobile_menu_trigger_close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid var(--ss-muted-gold, #d6b268);
    border-radius: var(--ss-radius-sm, 2px);
    color: var(--ss-muted-gold, #d6b268);
    box-shadow: none;
  }

  .ss-header .wpestate_mobile_menu_trigger svg,
  .ss-header .wpestate_mobile_menu_trigger_close svg,
  .elementor-31735 .wpestate_mobile_menu_trigger svg,
  .elementor-31735 .wpestate_mobile_menu_trigger_close svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .ss-header .wpestate_mobile_menu_trigger svg path,
  .ss-header .wpestate_mobile_menu_trigger_close svg path,
  .elementor-31735 .wpestate_mobile_menu_trigger svg path,
  .elementor-31735 .wpestate_mobile_menu_trigger_close svg path {
    stroke: currentColor !important;
  }

  .ss-hero {
    min-height: clamp(32rem, 78vh, 44rem);
  }

  .ss-hero .elementor-background-video-container,
  .ss-hero .elementor-background-video-container video,
  .ss-hero .elementor-background-video-hosted {
    object-position: 60% 42%;
  }

  .ss-hero > .e-con-inner {
    padding-block: var(--ss-space-7, 3rem);
    padding-inline: var(--ss-gutter-tablet, 1.5rem);
  }
}

/*
 * Mobile branded bar — max-width 767px
 * Solid forest, same height top and scrolled. Phone stays ivory.
 * Drawer uses existing ul.mobilex-menu + WPResidence display toggle.
 */
@media (max-width: 767px) {
  .ss-header:not(.ss-header--scrolled)::before,
  .elementor-31735:not(.ss-header--scrolled)::before {
    content: none;
  }

  .ss-header.e-con,
  .ss-header.e-con.ss-header--scrolled,
  .elementor-31735 .e-con.e-parent {
    min-height: 82px;
    max-height: 86px;
    padding-block: 0 !important;
    padding-inline: 1rem !important;
    background-color: var(--ss-forest, #1f4937) !important;
    background-image: none !important;
    border-bottom: 1px solid color-mix(in srgb, var(--ss-muted-gold, #d6b268) 42%, transparent);
    box-shadow: none;
  }

  .ss-header .header_phone,
  .elementor-31735 .header_phone {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .ss-header .header_phone svg,
  .elementor-31735 .header_phone svg {
    position: absolute;
    left: 0.35rem;
    top: 50%;
    width: 16px;
    height: 16px;
    color: var(--ss-warm-white, #faf8f4);
    fill: currentColor;
    transform: translateY(-50%);
  }

  .ss-header .header_phone svg path,
  .elementor-31735 .header_phone svg path {
    fill: currentColor;
  }

  .ss-header .header_phone,
  .ss-header .header_phone a,
  .elementor-31735 .header_phone,
  .elementor-31735 .header_phone a {
    color: var(--ss-warm-white, #faf8f4);
    text-shadow: none;
  }

  .ss-header .header_phone a,
  .elementor-31735 .header_phone a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.4rem 0 1.7rem;
    font-size: 0.75rem !important;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .ss-header .wpestate-elementor-menu-mobile-container ul.mobilex-menu,
  .elementor-31735 .wpestate-elementor-menu-mobile-container ul.mobilex-menu {
    position: fixed !important;
    top: 82px !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    z-index: 4;
    box-sizing: border-box;
    width: min(22rem, 86vw) !important;
    max-width: min(22rem, 86vw) !important;
    height: calc(100dvh - 82px) !important;
    margin: 0 !important;
    padding: 1.25rem 1.5rem 2rem !important;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--ss-ivory, #f7f3ea) !important;
    background-image: none !important;
    border-left: 1px solid var(--ss-border-light, #e4ded2);
    box-shadow: -16px 0 32px rgba(22, 53, 40, 0.12);
  }

  body.admin-bar .ss-header .wpestate-elementor-menu-mobile-container ul.mobilex-menu,
  body.admin-bar .elementor-31735 .wpestate-elementor-menu-mobile-container ul.mobilex-menu {
    top: calc(82px + 46px) !important;
    height: calc(100dvh - 82px - 46px) !important;
  }

  .ss-header .wpestate_mobile_menu_trigger,
  .ss-header .wpestate_mobile_menu_trigger_close,
  .elementor-31735 .wpestate_mobile_menu_trigger,
  .elementor-31735 .wpestate_mobile_menu_trigger_close {
    position: relative;
    z-index: 6;
  }

  .ss-header .mobilex-menu > li,
  .elementor-31735 .mobilex-menu > li {
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ss-forest, #1f4937) 12%, transparent);
    box-shadow: none;
  }

  .ss-header .mobilex-menu > li:last-child,
  .elementor-31735 .mobilex-menu > li:last-child {
    border-bottom: 0;
  }

  .ss-header .mobilex-menu > li > a,
  .elementor-31735 .mobilex-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 1.75rem 0 0;
    color: #163528 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-family: var(--ss-font-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
  }

  .ss-header .mobilex-menu > .current-menu-item > a,
  .ss-header .mobilex-menu > .current_page_item > a,
  .elementor-31735 .mobilex-menu > .current-menu-item > a,
  .elementor-31735 .mobilex-menu > .current_page_item > a {
    color: #bba15f !important;
  }

  .ss-header .mobilex-menu > .menu-item-has-children > a::after,
  .elementor-31735 .mobilex-menu > .menu-item-has-children > a::after {
    position: absolute;
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    width: auto;
    height: 1em;
    margin: 0;
    color: #bba15f !important;
    background: none !important;
    font-size: 0.875rem;
    line-height: 1;
    transform: translateY(-50%);
  }

  .ss-header .mobilex-menu a:focus-visible,
  .elementor-31735 .mobilex-menu a:focus-visible {
    outline: 2px solid var(--ss-muted-gold, #d6b268);
    outline-offset: 3px;
  }

  /*
   * Submenu: keep WPResidence display toggle. Kill the parent forest
   * panel (--wp-estate-mobile-menu-background-color-option) and the
   * ivory-on-ivory child text that left a blank Services gap.
   */
  .ss-header .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu,
  .elementor-31735 .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.15rem 0 0.35rem 0.85rem !important;
    overflow: visible;
    background: color-mix(in srgb, var(--ss-forest, #1f4937) 5%, var(--ss-ivory, #f7f3ea)) !important;
    background-color: color-mix(in srgb, var(--ss-forest, #1f4937) 5%, var(--ss-ivory, #f7f3ea)) !important;
    background-image: none !important;
    border: 0 !important;
    border-left: 1px solid var(--ss-muted-gold, #d6b268) !important;
    box-shadow: none !important;
  }

  .ss-header .mobilex-menu .sub-menu li,
  .elementor-31735 .mobilex-menu .sub-menu li {
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none;
  }

  .ss-header .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu a,
  .elementor-31735 .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0 0 0.5rem;
    color: var(--ss-forest, #1f4937) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-family: var(--ss-font-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: none;
    text-decoration: none;
    transition: color 180ms ease;
  }

  .ss-header .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu a:hover,
  .ss-header .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu a:focus-visible,
  .elementor-31735 .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu a:hover,
  .elementor-31735 .wpestate-elementor-menu-mobile-container ul.mobilex-menu .sub-menu a:focus-visible {
    color: var(--ss-gold-soft, #b7924a) !important;
  }
}

@media (max-width: 768px) {
  /*
   * Mobile header stays in document flow (Batch 1.1). Size the hero to the
   * remaining first-screen space so the CTA is not pushed below the fold.
   */
  .ss-hero {
    min-height: clamp(26rem, calc(100svh - 15rem), 34rem);
  }

  .ss-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(22, 53, 40, 0.5) 0%,
        rgba(22, 53, 40, 0.18) 22%,
        rgba(22, 53, 40, 0) 40%
      ),
      linear-gradient(
        180deg,
        rgba(22, 53, 40, 0.28) 0%,
        rgba(22, 53, 40, 0.34) 55%,
        rgba(22, 53, 40, 0.42) 100%
      );
  }

  .ss-hero .elementor-background-video-container,
  .ss-hero .elementor-background-video-container video,
  .ss-hero .elementor-background-video-hosted {
    object-position: 54% 38%;
  }

  .ss-hero > .e-con-inner {
    align-items: flex-end;
    padding-block: var(--ss-space-7, 3rem) var(--ss-space-8, 4rem);
    padding-inline: var(--ss-gutter-mobile, 1rem);
  }

  .ss-hero > .e-con-inner > .e-con {
    max-width: 100%;
    margin-inline: 0;
  }

  .ss-hero .elementor-widget-heading .elementor-heading-title {
    font-size: var(--ss-text-hero-mobile, clamp(2.625rem, 1.85rem + 3.8vw, 3.25rem)) !important;
    line-height: 1.05 !important;
  }

  .ss-hero > .e-con-inner > .e-con > .elementor-widget-button:not(:first-child):not(:last-child) .elementor-button {
    font-size: 1.0625rem;
  }
}

/*
 * Batch 1.4 mobile axis + wrap:
 * Elementor heading padding (15px) insets the title from the shared
 * left edge. Zero that padding, then cap title max-width in em so
 * “Find Your Place.” / “Make Your Move.” wrap to four lines at 390/360
 * without shrinking type or pulling eyebrow/support/CTA inward.
 * max-width: 431px so 430 CSS px matches (subpixel: 430px query misses).
 */
@media (max-width: 431px) {
  .ss-hero > .e-con-inner > .e-con > .elementor-widget-heading {
    padding-inline: 0;
  }

  .ss-hero > .e-con-inner > .e-con > .elementor-widget-heading .elementor-heading-title {
    max-width: 6.55em;
  }

}

@media (max-width: 390px) {
  .ss-hero {
    min-height: calc(100svh - 15rem);
  }

  .ss-hero > .e-con-inner {
    padding-block: var(--ss-space-6, 2rem) var(--ss-space-6, 2rem);
  }

  .ss-hero > .e-con-inner > .e-con > .elementor-widget-button:last-child .elementor-button {
    width: auto;
    min-width: min(100%, 16.5rem);
  }
}

@media (max-width: 360px) {
  .ss-hero .elementor-widget-heading .elementor-heading-title {
    font-size: clamp(2.5rem, 1.7rem + 4vw, 3rem) !important;
  }
}

/* -------------------------------------------------------------------------
 * Search panel — tablet / mobile
 * Desktop 4-up lives in ss-components.css.
 * 1024–768: two-row. <768: stacked. No Elementor IDs, no :has().
 * ------------------------------------------------------------------------- */

@media (width < 1281px) {
  .elementor .elementor-element.ss-search-panel {
    width: 90%;
    margin-inline: auto;
  }
}

@media (width < 1025px) {
  .elementor .elementor-element.ss-hero {
    margin-top: 0;
  }

  .elementor .elementor-element.ss-search-panel {
    --ss-search-overlap: 1.5rem;
    width: calc(100% - 2 * var(--ss-gutter-tablet, 1.5rem));
    margin-inline: auto;
  }

  .ss-search-panel > .e-con-inner {
    padding: 1.15rem 1.25rem 1rem;
  }

  .ss-search-panel form:not(.ss-somani-search__form) {
    grid-template-columns: 1fr 1fr;
  }

  .ss-search-panel form > .elemenentor_submit_wrapper {
    grid-column: 1 / -1;
  }

  .ss-somani-search .ss-somani-search__form {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--ss-radius-md, 4px);
  }

  .ss-somani-search__mode-tab,
  .ss-somani-search__select,
  .ss-somani-search__input {
    min-height: 44px;
  }

  .ss-somani-search__form.ss-somani-search__form--has-zone {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ss-somani-search__field {
    border-bottom: 1px solid var(--ss-border-light, #e4ded2);
  }

  .ss-somani-search__field--location {
    border-right: 0;
  }

  .ss-somani-search__field--config {
    border-right: 0;
  }

  .ss-somani-search__form:not(.ss-somani-search__form--has-zone) .ss-somani-search__field--construction {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .ss-somani-search__form--has-zone .ss-somani-search__field--location {
    border-right: 1px solid var(--ss-border-light, #e4ded2);
  }

  .ss-somani-search__form--has-zone .ss-somani-search__field--budget {
    border-right: 0;
  }

  .ss-somani-search__form--has-zone .ss-somani-search__field--config {
    border-right: 1px solid var(--ss-border-light, #e4ded2);
  }

  .ss-somani-search__form--has-zone .ss-somani-search__field--construction {
    border-right: 0;
  }

  .ss-somani-search__field--submit {
    grid-column: 1 / -1;
    border-top: 1px solid var(--ss-border-light, #e4ded2);
    border-right: 0;
    border-bottom: 0;
  }

  .ss-somani-search__submit-btn {
    min-height: 46px;
  }

  .ss-search-panel .elementor-widget-button {
    align-self: stretch;
  }
}

@media (width < 768px) {
  .elementor .elementor-element.ss-search-panel {
    --ss-search-overlap: 0.75rem;
    width: calc(100% - 2 * var(--ss-gutter-mobile, 1rem));
    margin-inline: auto;
    margin-bottom: var(--ss-space-6, 2rem);
    border-radius: 0.875rem;
    box-shadow: 0 0.75rem 2rem rgba(22, 53, 40, 0.11);
  }

  .ss-search-panel > .e-con-inner {
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .ss-somani-search {
    gap: 0.65rem;
  }

  .ss-somani-search__mode-bar {
    width: 100%;
    padding: 0.25rem;
    gap: 0.25rem;
    border-radius: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ss-somani-search__mode-bar::-webkit-scrollbar {
    display: none;
  }

  .ss-somani-search__mode-tab {
    flex: 0 0 auto;
    text-align: center;
    min-height: 44px;
    padding: 0.45rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.6875rem;
    letter-spacing: 0.09em;
    scroll-snap-align: start;
  }

  .ss-somani-search .ss-somani-search__form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ss-somani-search__field {
    min-width: 0;
    min-height: 52px;
    padding: 0 0.7rem;
    background: var(--ss-warm-white, #faf8f4);
    border: 1px solid var(--ss-border-light, #e4ded2);
    border-radius: 0.625rem;
    box-shadow: 0 0.2rem 0.65rem rgba(22, 53, 40, 0.035);
  }

  .ss-somani-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;
  }

  .ss-somani-search__field--city {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .ss-somani-search__field--location {
    grid-column: 3 / 6;
    grid-row: 1;
  }

  .ss-somani-search__field--budget {
    grid-column: 1 / 4;
    grid-row: 2;
  }

  .ss-somani-search__field--config {
    grid-column: 4 / 7;
    grid-row: 2;
  }

  .ss-somani-search__field--zone {
    grid-column: 1 / 7;
    grid-row: 3;
  }

  .ss-somani-search__field--construction {
    grid-column: 1 / 7 !important;
    grid-row: 3;
  }

  .ss-somani-search__form--has-zone .ss-somani-search__field--construction {
    grid-row: 4;
  }

  .ss-somani-search__form > input[type="hidden"] {
    display: none;
  }

  .ss-somani-search__select,
  .ss-somani-search__input {
    min-width: 0;
    min-height: 44px;
    padding-block: 0;
    font-size: 0.875rem;
  }

  .ss-somani-search__field--submit {
    grid-column: 6 / 7;
    grid-row: 1;
    min-height: 52px;
    padding: 0;
    overflow: hidden;
    background: var(--ss-forest, #1f4937);
    border-color: var(--ss-forest, #1f4937);
  }

  .ss-somani-search__submit-btn {
    min-width: 0;
    min-height: 50px;
    width: 100%;
    padding: 0;
    font-size: 0;
    border-radius: 0;
  }

  .ss-somani-search__icon {
    width: 1.125rem;
    height: 1.125rem;
  }

  .ss-search-panel form:not(.ss-somani-search__form) {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .ss-search-panel form > .elemenentor_submit_wrapper {
    grid-column: auto;
  }

  .ss-search-panel--enhanced .ss-search-mode,
  .ss-search-panel .ss-search-mode__btn,
  .ss-search-panel input.adv_locations_search,
  .ss-search-panel .bootstrap-select > .dropdown-toggle,
  .ss-search-panel .wpresidence_button {
    min-height: 44px;
  }

  .ss-search-panel .wpresidence_button {
    width: 100%;
    min-width: 0;
  }

  .ss-search-panel .elementor-widget-button {
    padding-top: 0;
    border-top: 1px solid var(--ss-border-light, #e4ded2);
  }

  .ss-search-panel .elementor-widget-button .elementor-button {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding-block: 0.45rem 0.35rem;
  }
}

/* -------------------------------------------------------------------------
 * Featured Properties — .ss-featured rhythm + mobile chip rail
 * Envelope hide + backtop restack live in the <=431px float block above.
 * ------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .ss-featured .items_shortcode_wrapper {
    scroll-snap-type: x mandatory;
  }
}

@media (max-width: 1199px) {
  .ss-featured {
    --ss-featured-visible: 2.15;
    --ss-featured-gap: 1rem;
  }
}

@media (max-width: 1280px) {
  .ss-featured {
    padding: 52px 36px 56px !important;
  }
}

@media (max-width: 1024px) {
  .ss-featured {
    padding: 52px 28px 52px !important;
    gap: 22px !important;
    row-gap: 22px !important;
  }

  .ss-featured > .e-con-boxed .elementor-widget-heading:last-child {
    margin-bottom: 0;
  }

  .ss-featured .control_tax_wrapper {
    margin-bottom: 25px !important;
  }

  .ss-developer-rail {
    --ss-developer-gap: 48px;
    --ss-developer-logo-h: 56px;
  }
}

@media (max-width: 767px) {
  .ss-featured {
    --ss-featured-visible: 1.1;
    --ss-featured-gap: 0.85rem;
    padding: 48px 22px 44px !important;
    gap: 22px !important;
    row-gap: 22px !important;
  }

  .ss-featured .ss-featured-rail-nav {
    display: none;
  }

  .ss-featured h2.elementor-heading-title {
    font-size: 1.625rem !important;
    white-space: normal;
    line-height: 1.15;
  }

  .ss-featured p.elementor-heading-title {
    font-size: 0.875rem !important;
  }

  .ss-featured .control_tax_wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px !important; /* chip rail → cards */
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
    gap: 8px;
  }

  .ss-featured .control_tax_wrapper::-webkit-scrollbar {
    display: none;
  }

  .ss-featured .control_tax_wrapper::before {
    content: "Type";
    flex: 0 0 auto;
    grid-column: auto;
  }

  .ss-featured .control_tax_wrapper::after {
    display: none;
  }

  .ss-featured .control_tax_sh {
    flex: 0 0 auto;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  .ss-featured .control_tax_sh[data-taxonomy="property_category"] + .control_tax_sh[data-taxonomy="property_city"] {
    grid-column: auto;
    margin-top: 0 !important;
    margin-left: 0.35rem;
    padding-left: 0.85rem !important;
    border-left: 1px solid var(--ss-border-light, #e4ded2) !important;
  }

  .ss-featured .control_tax_sh[data-taxonomy="property_category"] + .control_tax_sh[data-taxonomy="property_city"]::before {
    display: none;
  }

  .ss-developer-rail {
    --ss-developer-gap: 36px;
    --ss-developer-logo-h: 48px;
  }

  .ss-value-marquee {
    --ss-value-height: 46px;
    margin-top: calc(-1 * var(--ss-space-6, 2rem));
  }

  .ss-value-marquee__label {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
  }

  .ss-value-marquee__item {
    gap: 1.25rem;
    padding-inline-end: 1.25rem;
  }
}

/* -------------------------------------------------------------------------
 * Homepage visual completion — 1024 tablet / 390 mobile
 * Does not restyle .ss-featured / header / hero / search.
 * ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  body.home .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-Wpresidence_Grids) {
    padding: 2.75rem 1.75rem 1.25rem !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) {
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_content {
    gap: 8px;
    row-gap: 8px;
    padding: 0 1.25rem 1.5rem;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_content h4,
  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_content h4 a {
    font-size: 1.75rem;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_listings_no {
    font-size: 0.65625rem !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-counter) {
    padding: 3.5rem 1.75rem !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-counter) .e-con.e-child:has(> .elementor-widget-counter) {
    padding: 0.6rem 1rem !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Site_Social) {
    padding-top: 3.25rem !important;
  }
}

@media (max-width: 767px) {
  body.home .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-Wpresidence_Grids) {
    padding: 2.5rem 1.25rem 1rem !important;
  }

  body.home .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-Wpresidence_Grids) .elementor-heading-title {
    font-size: 1.625rem;
    max-width: none;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) {
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .elementor_residence_grid {
    padding: 0 0 8px;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_content {
    gap: 8px;
    row-gap: 8px;
    padding: 0 1.15rem 1.25rem;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_content h4,
  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_content h4 a {
    font-size: 1.5rem;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Wpresidence_Grids) .places_type_2_listings_no {
    font-size: 0.625rem !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-counter) {
    min-height: 0 !important;
    padding: 3rem 1.25rem !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-counter) .elementor-heading-title {
    font-size: 1.625rem;
  }

  body.home .e-con.e-parent:has(.elementor-widget-counter) .e-con.e-child:has(> .elementor-widget-counter) {
    flex: 1 1 46%;
    border-inline-end: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ss-muted-gold, #d6b268) 28%, transparent);
    padding: 1rem 0.35rem !important;
  }

  body.home .e-con.e-parent:has(.elementor-widget-counter) .elementor-counter-number-wrapper,
  body.home .e-con.e-parent:has(.elementor-widget-counter) .elementor-counter-number,
  body.home .e-con.e-parent:has(.elementor-widget-counter) .elementor-counter-number-prefix,
  body.home .e-con.e-parent:has(.elementor-widget-counter) .elementor-counter-number-suffix {
    font-size: 2rem !important;
  }

  body.home .ss-developer-rail {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }

  body.home .e-con.e-parent:has(.elementor-widget-Site_Social) {
    padding-top: 2.5rem !important;
    padding-inline: 1.25rem !important;
  }
}

/* =========================================================================
 * About Us 21420 — tablet / mobile
 * ========================================================================= */

@media (max-width: 1024px) {
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:first-child {
    min-height: clamp(24rem, 52vh, 30rem);
    padding: 4.5rem 1.75rem 6.5rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box) {
    flex-direction: column;
    gap: 1.75rem !important;
    padding: 0 1.75rem 3.25rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box) > .e-con.e-child:first-child {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box) > .e-con.e-child:first-child > .e-con.e-child:first-child {
    width: 100%;
    min-height: 16rem;
    height: 16rem;
    margin-top: -3rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box) > .e-con.e-child:last-child {
    padding-top: 0.5rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-button a[href*="property-search"]),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-button a[href*="property-search"]),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-toggle),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-toggle) {
    padding-inline: 1.75rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-button a[href*="property-search"]) > .e-con.e-child > .e-con.e-child > .e-con.e-child {
    min-height: 20rem;
  }
}

@media (max-width: 767px) {
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:first-child {
    min-height: clamp(22rem, 48svh, 28rem);
    padding: 4rem 1.25rem 4.5rem !important;
    background-position: 54% 38% !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:first-child > .e-con-inner > .elementor-widget-heading:first-child .elementor-heading-title,
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:first-child > .elementor-widget-heading:first-child .elementor-heading-title {
    font-size: clamp(2.15rem, 1.5rem + 3vw, 2.75rem) !important;
    letter-spacing: 0.1em !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:first-child > .e-con-inner > .elementor-widget-heading:last-child,
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:first-child > .elementor-widget-heading:last-child {
    max-width: none;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box) {
    gap: 1.25rem !important;
    padding: 0 1.25rem 2.75rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box) > .e-con.e-child:first-child > .e-con.e-child:first-child {
    min-height: 14.5rem;
    height: 14.5rem;
    margin-top: 0 !important;
    border-radius: var(--ss-radius-card, 6px) var(--ss-radius-card, 6px) 0 0;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box) h2.elementor-heading-title {
    max-width: none;
    font-size: 1.75rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-button a[href*="property-search"]) {
    padding: 3rem 1.25rem 0.75rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-button a[href*="property-search"]) h2.elementor-heading-title,
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-toggle) h2.elementor-heading-title {
    font-size: 1.625rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-button a[href*="property-search"]) {
    padding: 0.35rem 1.25rem 2.75rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-button a[href*="property-search"]) > .e-con.e-child > .e-con.e-child > .e-con.e-child {
    min-height: 17.5rem;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) {
    padding: 2.75rem 1.25rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) > .e-con.e-child:has(.elementor-widget-WpResidence_Contact_Form_Builder) > .e-con.e-child {
    padding: 1.5rem 1.15rem 1.35rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-toggle) {
    padding: 3rem 1.25rem 0.5rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-toggle) {
    padding: 0.25rem 1.25rem 3.5rem !important;
  }
}

@media (max-width: 390px) {
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:first-child {
    min-height: 22rem;
    padding: 3.5rem 1rem 3.75rem !important;
  }

  body.page-id-21420 .elementor-21420 > .e-con:has(.elementor-widget-icon-box),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-button a[href*="property-search"]),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-button a[href*="property-search"]),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(+ .e-con.e-parent .elementor-widget-toggle),
  body.page-id-21420 .elementor-21420 > .e-con.e-parent:has(.elementor-widget-toggle) {
    padding-inline: 1rem !important;
  }
}

/* =========================================================================
 * PROJECTS — page 93 /property-search/
 * QA targets: 1440 desktop (base CSS) and 390 mobile (below).
 * ========================================================================= */

@media (max-width: 1024px) {
  body.page-id-93 .elementor-93 > .e-con.e-parent:first-child {
    min-height: 22rem;
    padding: 4.5rem 1.5rem !important;
  }

  body.page-id-93 .elementor-93 > .e-con.e-parent:has(.elementor-widget-WpResidence_Search_Form_Builder),
  body.page-id-93 .elementor-93 > .e-con.e-parent:has(.elementor-widget-WpResidence_Items_List) {
    padding-inline: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  body.page-id-93 .elementor-93 > .e-con.e-parent:first-child {
    min-height: 18rem;
    padding: 3.75rem 1rem !important;
  }

  body.page-id-93 .elementor-93 > .e-con.e-parent:first-child .elementor-widget-heading:first-child .elementor-heading-title {
    font-size: clamp(1.75rem, 1.2rem + 4vw, 2.25rem) !important;
    letter-spacing: 0.1em;
  }

  body.page-id-93 .elementor-93 > .e-con.e-parent:has(.elementor-widget-WpResidence_Search_Form_Builder) {
    padding: 1.5rem 1rem 0.25rem !important;
  }

  body.page-id-93 .elementor-93 > .e-con.e-parent:has(.elementor-widget-WpResidence_Items_List) {
    padding: 1.25rem 1rem 3.5rem !important;
  }

  body.page-id-93 .elementor-93 .wpestate-adv-holder form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  body.page-id-93 .elementor-93 .elementor-widget-WpResidence_Search_Form_Builder .elementor-field-group,
  body.page-id-93 .elementor-93 .elementor-widget-WpResidence_Search_Form_Builder .elementor-col-40,
  body.page-id-93 .elementor-93 .elementor-widget-WpResidence_Search_Form_Builder .elementor-col-20 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100%;
  }

  body.page-id-93 .elementor-93 .listing_wrapper,
  body.page-id-93 .elementor-93 .listing_wrapper.col-12,
  body.page-id-93 .elementor-93 .listing_wrapper.col-sm-6,
  body.page-id-93 .elementor-93 .listing_wrapper.col-md-6 {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100% !important;
    padding-inline: 0;
    margin-bottom: 1.25rem;
  }

  body.page-id-93 .elementor-93 .wpresidence_shortcode_listings_wrapper {
    margin-inline: 0;
  }

  body.page-id-93 .elementor-93 .property_listing h4,
  body.page-id-93 .elementor-93 .property_listing h4 a {
    font-size: 1.25rem;
  }

  body.page-id-93 .elementor-93 .listing_unit_price_wrapper {
    font-size: 1rem !important;
  }

  body.page-id-93 .elementor-93 .bootstrap-select .dropdown-menu {
    max-width: calc(100vw - 2rem);
  }
}

/* =========================================================================
 * SOLD PROPERTIES — page 22389 /sold-properties/
 * QA targets: 1440 desktop (base CSS) and 390 mobile (below).
 * ========================================================================= */

@media (max-width: 1024px) {
  body.page-id-22389 .elementor-22389 > .e-con.e-parent:first-child {
    min-height: 22rem;
    padding: 4.5rem 1.5rem !important;
  }

  body.page-id-22389 .elementor-22389 > .e-con:has(.elementor-widget-Wpresidence_Filter_List_Properties),
  body.page-id-22389 .elementor-22389 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) {
    padding-inline: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  body.page-id-22389 .elementor-22389 > .e-con.e-parent:first-child {
    min-height: 18rem;
    padding: 3.75rem 1rem !important;
  }

  body.page-id-22389 .elementor-22389 > .e-con.e-parent:first-child .elementor-widget-heading:first-child .elementor-heading-title {
    font-size: clamp(1.75rem, 1.2rem + 4vw, 2.25rem) !important;
    letter-spacing: 0.1em;
  }

  body.page-id-22389 .elementor-22389 > .e-con:has(.elementor-widget-Wpresidence_Filter_List_Properties) {
    padding: 2.5rem 1rem 3.25rem !important;
  }

  body.page-id-22389 .elementor-22389 > .e-con:has(.elementor-widget-Wpresidence_Filter_List_Properties) h2.e-heading-base {
    font-size: clamp(1.5rem, 1.15rem + 2.4vw, 1.875rem) !important;
  }

  body.page-id-22389 .elementor-22389 .no_results {
    margin-top: 1rem;
    padding: 1.75rem 1.15rem;
  }

  body.page-id-22389 .elementor-22389 .listing_wrapper,
  body.page-id-22389 .elementor-22389 .listing_wrapper.col-12,
  body.page-id-22389 .elementor-22389 .listing_wrapper.col-sm-6,
  body.page-id-22389 .elementor-22389 .listing_wrapper.col-md-6,
  body.page-id-22389 .elementor-22389 .listing_wrapper.col-md-4 {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100% !important;
    padding-inline: 0;
    margin-bottom: 1.25rem;
  }

  body.page-id-22389 .elementor-22389 .wpresidence_shortcode_listings_wrapper,
  body.page-id-22389 .elementor-22389 .wpestate_filter_list_properties_wrapper:has(.listing_wrapper) {
    margin-inline: 0;
  }

  body.page-id-22389 .elementor-22389 .property_listing h4,
  body.page-id-22389 .elementor-22389 .property_listing h4 a {
    font-size: 1.25rem;
  }

  body.page-id-22389 .elementor-22389 .listing_unit_price_wrapper {
    font-size: 1rem !important;
  }

  body.page-id-22389 .elementor-22389 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) {
    padding: 2.75rem 1rem 4.5rem !important;
  }

  body.page-id-22389 .elementor-22389 .elementor-element-db01aa2 {
    padding: 1.5rem 1.15rem 1.75rem !important;
  }

  body.page-id-22389 .elementor-22389 .elementor-element-db01aa2 label {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  body.page-id-22389 .elementor-22389 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) .elementor-field-group {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  body.page-id-22389 .elementor-22389 > .e-con.e-parent:first-child {
    min-height: 18rem;
    padding: 3.5rem 1rem 3.75rem !important;
  }
}

/* =========================================================================
 * CONTACT — page 5707 /contact-us/
 * QA targets: 1440 desktop (base CSS) and 390 mobile (below).
 * ========================================================================= */

@media (max-width: 1024px) {
  body.page-id-5707 .elementor-5707 > .e-con.e-parent:first-child {
    min-height: 22rem;
    padding: 4.5rem 1.5rem !important;
  }

  body.page-id-5707 .elementor-5707 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) {
    padding-inline: 1.5rem !important;
  }

  .ss-contact-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ss-contact-map-iframe {
    height: 340px;
  }
}

@media (max-width: 767px) {
  body.page-id-5707 .elementor-5707 > .e-con.e-parent:first-child {
    min-height: 18rem;
    padding: 3.75rem 1rem !important;
  }

  body.page-id-5707 .elementor-5707 > .e-con.e-parent:first-child .elementor-widget-heading:first-child .elementor-heading-title {
    font-size: clamp(1.75rem, 1.2rem + 4vw, 2.25rem) !important;
    letter-spacing: 0.1em;
  }

  body.page-id-5707 .elementor-5707 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) {
    padding: 2.5rem 1rem 3.5rem !important;
  }

  .ss-contact-card {
    padding: 1.75rem 1.25rem;
  }

  .ss-contact-info-family {
    padding: 1.75rem 1.25rem;
  }

  .ss-contact-info-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .ss-contact-info-item {
    padding: 0.875rem 1rem;
  }

  .ss-contact-map-iframe {
    height: 280px;
  }

  body.page-id-5707 .elementor-5707 .elementor-element-d6b231e {
    padding: 1.5rem 1.15rem 1.75rem !important;
  }

  body.page-id-5707 .elementor-5707 .elementor-element-d6b231e label {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  body.page-id-5707 .elementor-5707 > .e-con.e-parent:has(.elementor-widget-WpResidence_Contact_Form_Builder) .elementor-field-group {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  body.page-id-5707 .elementor-5707 > .e-con.e-parent:first-child {
    min-height: 18rem;
    padding: 3.5rem 1rem 3.75rem !important;
  }

  .ss-contact-card {
    padding: 1.5rem 1rem;
  }

  .ss-contact-info-family {
    padding: 1.5rem 1rem;
  }
}

/* =========================================================================
 * SINGLE PROPERTY — template 24137
 * QA targets: 1440 desktop (base CSS) and 390 mobile (below).
 * ========================================================================= */

@media (max-width: 1024px) {
  body.single-estate_property .elementor-24137 .elementor-element-efcf846,
  body.single-estate_property .elementor-24137 .elementor-element-6742de59,
  body.single-estate_property .elementor-24137 .elementor-element-c76869b,
  body.single-estate_property .elementor-24137 .elementor-element-4228945,
  body.single-estate_property .elementor-24137 .elementor-element-36f62199,
  body.single-estate_property .elementor-24137 .elementor-element-f6a6dcd,
  body.single-estate_property .elementor-24137 .elementor-element-8882d30,
  body.single-estate_property .elementor-24137 .elementor-element-1010eff,
  body.single-estate_property .elementor-24137 .elementor-element-2c121e8e,
  body.single-estate_property .elementor-24137 .elementor-element-fb76b7d {
    padding-inline: 1.5rem !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-36f62199,
  body.single-estate_property .elementor-24137 .elementor-element-f6a6dcd {
    padding-block: 2.25rem !important;
  }
}

@media (max-width: 767px) {
  body.single-estate_property .elementor-24137 {
    overflow-x: clip;
  }

  body.single-estate_property .elementor-24137 .elementor-element-efcf846,
  body.single-estate_property .elementor-24137 .elementor-element-6742de59,
  body.single-estate_property .elementor-24137 .elementor-element-c76869b,
  body.single-estate_property .elementor-24137 .elementor-element-4228945,
  body.single-estate_property .elementor-24137 .elementor-element-36f62199,
  body.single-estate_property .elementor-24137 .elementor-element-f6a6dcd,
  body.single-estate_property .elementor-24137 .elementor-element-8882d30,
  body.single-estate_property .elementor-24137 .elementor-element-1010eff,
  body.single-estate_property .elementor-24137 .elementor-element-2c121e8e,
  body.single-estate_property .elementor-24137 .elementor-element-fb76b7d {
    padding-inline: 1rem !important;
  }

  body.single-estate_property .elementor-24137 .gallery_wrapper,
  body.single-estate_property .elementor-24137 .gallery_wrapper .row,
  body.single-estate_property .elementor-24137 .gallery-right-column,
  body.single-estate_property .elementor-24137 .gallery-left-column {
    width: 100% !important;
    max-width: 100% !important;
    float: none;
    margin: 0;
  }

  body.single-estate_property .elementor-24137 .gallery-right-column,
  body.single-estate_property .elementor-24137 .gallery-left-column .col-md-6,
  body.single-estate_property .elementor-24137 .image_gallery {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px;
    min-height: 220px;
  }

  body.single-estate_property .elementor-24137 .gallery-right-column {
    height: 280px;
    min-height: 280px;
    margin-bottom: 4px;
  }

  body.single-estate_property .elementor-24137 .elementor-element-c76869b,
  body.single-estate_property .elementor-24137 .elementor-element-58167517 {
    flex-wrap: wrap;
  }

  body.single-estate_property .elementor-24137 .elementor-element-9143adf {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-2a92cb2,
  body.single-estate_property .elementor-24137 .elementor-element-69cd01c,
  body.single-estate_property .elementor-24137 .elementor-element-63f7bbe {
    flex: none !important;
    width: 100% !important;
    min-width: 0;
  }

  body.single-estate_property .elementor-24137 .elementor-element-4228945 {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1f49dfe {
    width: 100%;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1f49dfe .elementor-button {
    width: 100%;
  }

  body.single-estate_property .elementor-24137 .elementor-element-36f62199,
  body.single-estate_property .elementor-24137 .elementor-element-5e17dd5a,
  body.single-estate_property .elementor-24137 .elementor-element-1c42d01 {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-estate_property .elementor-24137 .listing_detail.col-md-6,
  body.single-estate_property .elementor-24137 .listing_detail.col-md-3 {
    width: 100%;
    max-width: 100%;
    float: none;
  }

  body.single-estate_property .elementor-24137 .front_plan_row,
  body.single-estate_property .elementor-24137 .floor_image img {
    max-width: 100%;
  }

  /* Native floor-plan metadata needs content-sized tracks, not tiny floats. */
  body.single-estate_property .elementor-24137 .front_plan_row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    float: none;
    width: 100%;
  }

  body.single-estate_property .elementor-24137 .front_plan_row > :is(.floor_title, .floor_details) {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.single-estate_property .elementor-24137 .front_plan_row > :is(.floor_title, .floor_price_details) {
    grid-column: 1 / -1;
  }

  body.single-estate_property .elementor-24137 .elementor-element-5c7130f8 .listing_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    float: none;
  }
}

@media (max-width: 390px) {
  body.single-estate_property .elementor-24137 .gallery-right-column {
    height: 240px;
    min-height: 240px;
  }

  body.single-estate_property .elementor-24137 h1.entry_prop,
  body.single-estate_property .elementor-24137 .elementor-element-f61ecc8 h1 {
    font-size: 1.875rem !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-9143adf {
    grid-template-columns: 1fr !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-2a92cb2,
  body.single-estate_property .elementor-24137 .elementor-element-69cd01c,
  body.single-estate_property .elementor-24137 .elementor-element-63f7bbe {
    width: 100% !important;
  }
}

/* =========================================================================
 * R3 — RESPONSIVE: KOLKATA METRO COVERAGE + OUR SERVICES
 * ========================================================================= */

@media (max-width: 1200px) {
  .ss-coverage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .ss-services-grid,
  .ss-services-grid.ss-services-grid--elementor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .ss-coverage-section {
    padding: 3rem 2rem 3.5rem;
  }

  .ss-coverage-intro {
    margin-bottom: 1.75rem;
  }

  .ss-coverage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .ss-coverage-card {
    min-height: 380px;
  }

  .ss-services-section {
    padding: 3.5rem 2rem 4rem;
  }

  .ss-services-intro {
    margin-bottom: 2rem;
  }

  .ss-services-grid,
  .ss-services-grid.ss-services-grid--elementor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .ss-services-grid--elementor .ss-service-card {
    min-width: 0;
  }

  .ss-services-grid--elementor .ss-service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 540px;
    margin-inline: auto;
    width: 100%;
  }

  .ss-service-card {
    padding: 1.75rem 1.35rem 1.5rem;
    min-height: 260px;
  }

  .ss-explore-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 767px) {
  .ss-somani-search__mode-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .ss-somani-search__mode-bar::-webkit-scrollbar {
    display: none;
  }

  .ss-somani-search__mode-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.45rem 0.95rem;
  }

  .ss-explore-categories-section {
    padding: 0 var(--ss-gutter-mobile, 1rem);
    margin: 2rem auto 2.5rem;
  }

  .ss-explore-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .ss-category-card {
    padding: 0.9rem 0.85rem;
    gap: 0.65rem;
  }

  .ss-category-card__icon-box {
    width: 38px;
    height: 38px;
  }

  .ss-category-card__name {
    font-size: 0.875rem;
  }

  .ss-category-card__meta {
    font-size: 0.6875rem;
  }

  .ss-coverage-section {
    padding: 2.5rem 1.25rem 3rem;
  }

  .ss-coverage-intro {
    margin-bottom: 1.5rem;
    padding: 0;
  }

  .ss-coverage-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ss-coverage-card {
    min-height: 320px;
  }

  .ss-coverage-card__content {
    padding: 1.25rem 1rem;
  }

  .ss-coverage-card__title {
    font-size: 1.5rem;
  }

  .ss-services-section {
    padding: 3rem 1.25rem 3.5rem;
  }

  .ss-services-intro {
    margin-bottom: 1.75rem;
    padding: 0;
  }

  .ss-services-grid,
  .ss-services-grid.ss-services-grid--elementor {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ss-services-grid--elementor .ss-service-card,
  .ss-services-grid--elementor .ss-service-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-inline: 0;
  }

  .ss-service-card {
    padding: 1.5rem 1.25rem;
    min-height: 0;
  }

  .ss-service-card__icon-box {
    width: 52px;
    height: 52px;
  }

  .ss-service-card__title {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .ss-explore-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
 * BLOG RESPONSIVE (Revision R4)
 * ========================================================================= */

@media (max-width: 1024px) {
  body.page-template-blog_list .content_wrapper,
  body.page-id-17988 .content_wrapper {
    padding: 2.5rem 1.75rem 4.5rem;
  }

  body.page-template-blog_list .wpresidence_page_content_wrapper .row,
  body.page-id-17988 .wpresidence_page_content_wrapper .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .ss-blog-hero-section {
    margin-bottom: 2.75rem;
  }

  body.single-post .single-content.single-blog {
    padding: 2.25rem 1.75rem 3rem;
  }
}

@media (max-width: 767px) {
  body.page-template-blog_list .content_wrapper,
  body.page-id-17988 .content_wrapper {
    padding: 2rem 1.25rem 3.5rem;
  }

  .ss-blog-hero-section {
    margin-bottom: 2.25rem;
    padding-top: 0.5rem;
  }

  body.page-template-blog_list .wpresidence_page_content_wrapper .row,
  body.page-id-17988 .wpresidence_page_content_wrapper .row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .property_listing_blog h4,
  .property_listing_blog .listing_details_wrapper,
  .property_listing_blog > .listing_details,
  .property_listing_blog > .blog_unit_meta {
    padding-inline: 1.25rem;
  }

  .ss-blog-card__readmore {
    min-height: 44px;
    margin-inline: 1.25rem;
  }

  body.single-post .content_wrapper {
    padding: 1.75rem 1.25rem 3.5rem;
  }

  body.single-post .single-content.single-blog {
    padding: 1.75rem 1.25rem 2.25rem;
  }

  .single-content.single-blog h2 {
    font-size: 1.55rem;
    margin: 2.25rem 0 1rem;
  }

  .single-content.single-blog h3 {
    font-size: 1.3rem;
  }

  .ss-comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ss-blog-cta-box {
    padding: 2rem 1.25rem;
  }
}

/* =========================================================================
 * HOMEPAGE REMAINING RESPONSIVE REFINEMENT — v0.6.5
 * Scope: existing Elementor CTA trio and shared Elementor footer only.
 * Hero, search, featured-property rail, coverage, and Services stay unchanged.
 * ========================================================================= */

@media (max-width: 1024px) {
  body.home .elementor-18618 :is(
    .elementor-element-d16527c,
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__content {
    min-height: clamp(26.25rem, 52vw, 32.5rem) !important;
    padding: 2rem !important;
  }

  body.home .elementor-18618 :is(
    .elementor-element-d16527c,
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) :is(.elementor-cta__title, .elementor-cta__description, .elementor-cta__button) {
    font-family: var(--ss-font-body, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
  }

  body.home .elementor-18618 :is(
    .elementor-element-d16527c,
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__title:not(:last-child) {
    margin-bottom: 1rem !important;
  }

  body.home .elementor-18618 .elementor-element-d16527c .elementor-cta__description,
  body.home .elementor-18618 :is(
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__description {
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
  }

  body.home .elementor-18618 .elementor-element-d16527c .elementor-cta__description {
    font-size: clamp(2rem, 4.5vw, 3rem) !important;
  }

  body.home .elementor-18618 :is(
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__description {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
  }

  body.home .elementor-18618 :is(
    .elementor-element-d16527c,
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.25rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  body.home .elementor-18618 :is(
    .elementor-element-d16527c,
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__content {
    min-height: clamp(21.25rem, 88vw, 25rem) !important;
    padding: 1.5rem !important;
  }

  body.home .elementor-18618 .elementor-element-d16527c .elementor-cta__description {
    max-width: 18ch;
    font-size: clamp(1.65rem, 7vw, 2rem) !important;
  }

  body.home .elementor-18618 :is(
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__description {
    max-width: 22ch;
    width: 100%;
    min-width: 0;
    margin-inline: auto;
    align-self: center;
    overflow-wrap: break-word;
    font-size: clamp(1.4rem, 5.8vw, 1.65rem) !important;
  }

  body.home .elementor-18618 :is(
    .elementor-element-d16527c,
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__title {
    line-height: 1.4 !important;
    letter-spacing: 0.12em !important;
  }

  body.home .elementor-18618 :is(
    .elementor-element-d16527c,
    .elementor-element-21be2d5,
    .elementor-element-7395839
  ) .elementor-cta__button {
    min-height: 44px;
    max-width: 100%;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
  }

  .elementor-31733 #Footer_V1 {
    gap: 1.5rem !important;
    padding: 2.5rem 1.25rem 1.25rem !important;
    align-items: stretch;
  }

  .elementor-31733 #Footer_V1 :is(
    .elementor-icon-box-title,
    .elementor-icon-box-description,
    .elementor-heading-title,
    .elementor-icon-list-text
  ) {
    font-family: var(--ss-font-body, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-c5328bf {
    width: 100%;
    gap: 2rem !important;
    padding: 0 !important;
    align-items: stretch;
  }

  .elementor-31733 #Footer_V1 .elementor-element-7a77919 {
    width: 100%;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-21fda4f {
    min-height: 0 !important;
    padding: 0 !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-21fda4f img {
    width: min(210px, 72vw);
    height: auto;
  }

  .elementor-31733 #Footer_V1 .elementor-element-0f329cd {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
    padding: 0 !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-b3869e0 {
    width: 100%;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 1rem !important;
    padding: 0 !important;
  }

  .elementor-31733 #Footer_V1 :is(
    .elementor-element-1829a4d,
    .elementor-element-38363bd
  ) {
    width: 50%;
    min-width: 0;
    flex: 1 1 0;
    gap: 0.75rem !important;
    padding: 0 !important;
  }

  .elementor-31733 #Footer_V1 .elementor-icon-list-item,
  .elementor-31733 #Footer_V1 .elementor-icon-list-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1.35;
  }

  .elementor-31733 #Footer_V1 .elementor-element-06f6230 .elementor-icon-box-title > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .elementor-31733 #Footer_V1 .elementor-element-306e9a4,
  .elementor-31733 #Footer_V1 .elementor-element-718d9d5,
  .elementor-31733 #Footer_V1 .elementor-element-2380a97 {
    width: 100%;
    padding-inline: 0 !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-2380a97 {
    gap: 0.75rem !important;
  }
}

/* =========================================================================
 * SINGLE PROPERTY RESPONSIVE REFINEMENT — v0.6.6
 * ========================================================================= */

@media (max-width: 1024px) {
  body.single-estate_property .elementor-24137 .elementor-element-36f62199 {
    gap: 2.25rem !important;
    padding-block: 2rem !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-5e17dd5a {
    gap: 2rem !important;
    padding-block: 1.5rem !important;
  }
}

@media (max-width: 991px) {
  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .property_header_gallery_wrapper {
    position: relative;
    display: block !important;
    height: clamp(26.25rem, 60vw, 32rem) !important;
    min-height: 0 !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .gallery-right-column {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .gallery-left-column {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    display: block !important;
    width: 10.25rem !important;
    max-width: calc(100% - 2rem) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .gallery-left-column .image_gallery:not(.last_gallery_item) {
    display: none !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .gallery-left-column .last_gallery_item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 1rem;
    border: 1px solid rgba(214, 178, 104, 0.7);
    border-radius: 4px;
    background-image: none !important;
    background-color: rgba(22, 53, 40, 0.9) !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .last_gallery_item .img_listings_overlay {
    display: none;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .last_gallery_item .img_listings_mes {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    color: #fff;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  body.single-estate_property .elementor-24137 {
    overflow-x: visible;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .property_header_gallery_wrapper {
    height: clamp(22.5rem, 105vw, 26.875rem) !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-9143adf {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
  }

  body.single-estate_property .elementor-24137 :is(
    .elementor-element-2a92cb2,
    .elementor-element-69cd01c,
    .elementor-element-63f7bbe
  ) {
    height: 100%;
    padding-inline: 0.75rem !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-36f62199 {
    gap: 1.75rem !important;
    padding-block: 1.5rem !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-5e17dd5a {
    gap: 1.5rem !important;
    padding-block: 0 !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1111069 #accordion_prop_details .listing_detail strong {
    flex-basis: 7rem;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1010eff {
    padding-block: 2.5rem !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1010eff .wpestate_estate_property_design_gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    width: 100%;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1010eff .wpestate_property_gallery_item {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 4px;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1010eff .wpestate_property_gallery_item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1010eff .wpestate_property_gallery_item :is(a, img) {
    display: block;
    width: 100%;
    height: 100%;
  }
}

/* =========================================================================
 * INNER PAGES FINAL RESPONSIVE REFINEMENT — v0.6.7
 * Scope: mobile touch targets only; page content and desktop composition stay
 * unchanged.
 * ========================================================================= */

@media (max-width: 767px) {
  body.page-id-24531 .wpresidence_half_map_filter_wrapper .wpestate-multiselect-custom-style.dropdown-toggle,
  body.page-id-24531 .wpresidence_half_map_filter_wrapper .advanced_submit_4,
  body.page-id-24531 #a_filter_order {
    min-height: 44px;
  }

  body.page-id-24531 .pagination.pagination_nojax > li > :is(a, span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

/* =========================================================================
 * HOMEPAGE QUIET-LUXURY RESPONSIVE RHYTHM — v0.6.9
 * Complements the page-18618 component rules without changing content or
 * WPResidence behaviour.
 * ========================================================================= */

@media (max-width: 1024px) {
  body.home .elementor-18618 > .elementor-element.ss-search-panel {
    --ss-search-overlap: 1.5rem;
    margin-top: calc(-1 * var(--ss-search-overlap));
    margin-bottom: 2rem;
  }

  body.home .elementor-18618 > .elementor-element-7fff53c {
    padding: 2.75rem 1.75rem 3rem;
  }

  body.home .elementor-18618 > .elementor-element-5e5fe80 {
    padding: 2.5rem 1.75rem 1.25rem;
  }

  body.home .elementor-18618 > .elementor-element-e5acdd3 {
    padding: 0 1.75rem 3rem;
  }

  body.home .elementor-18618 > .elementor-element-11c0696 {
    padding: 2.5rem 1.75rem 3rem;
  }

  body.home .elementor-18618 > .elementor-element-e11d72a {
    --padding-top: 3.25rem;
    --padding-right: 1.75rem;
    --padding-bottom: 3.5rem;
    --padding-left: 1.75rem;
    gap: 2rem;
    padding: 3.25rem 1.75rem 3.5rem;
  }

  body.home .elementor-18618 > .elementor-element-d1c4dd8 {
    padding: 3.5rem 1.75rem;
  }

  body.home .elementor-18618 > .elementor-element-35a3bba {
    --flex-direction: column;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 2.25rem 1.75rem 2.5rem;
  }

  body.home .elementor-18618 > .elementor-element-35a3bba > :is(
    .elementor-element-a941bf9,
    .elementor-element-dbb7527
  ) {
    --width: 100%;
    width: 100%;
    min-width: 0;
  }

  body.home .elementor-18618 > .elementor-element-35a3bba .elementor-element-fd9c4cf {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  body.home .elementor-18618 > .elementor-element.ss-search-panel {
    --ss-search-overlap: 0.75rem;
    margin-top: calc(-1 * var(--ss-search-overlap));
    margin-bottom: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(20, 61, 46, 0.16);
  }

  body.home .elementor-18618 > .elementor-element.ss-search-panel > .e-con-inner {
    padding: 0.65rem;
  }

  body.home .ss-explore-categories-section {
    margin-top: 1.75rem;
    margin-bottom: 2.5rem;
  }

  body.home .ss-category-card {
    min-height: 68px;
    padding: 0.85rem 0.9rem;
  }

  body.home .elementor-18618 > .elementor-element-7fff53c {
    padding: 2.5rem 1.25rem 2.75rem;
  }

  body.home .elementor-18618 > .elementor-element-5e5fe80 {
    padding: 2.25rem 1.25rem 1rem;
  }

  body.home .elementor-18618 > .elementor-element-e5acdd3 {
    padding: 0 1rem 2.75rem;
  }

  body.home .elementor-18618 > .elementor-element-11c0696 {
    padding: 2.25rem 1rem 2.75rem;
  }

  body.home .elementor-18618 > .elementor-element-e5acdd3 .ss-coverage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home .elementor-18618 > .elementor-element-e5acdd3 .ss-coverage-card,
  body.home .elementor-18618 > .elementor-element-e5acdd3 .places_wrapper_type_2 {
    aspect-ratio: 6 / 5;
  }

  body.home .elementor-18618 > .elementor-element-11c0696 .ss-services-intro {
    margin-bottom: 1.5rem;
  }

  body.home .elementor-18618 > .elementor-element-11c0696 .ss-service-card {
    padding: 1.35rem 1.15rem;
  }

  body.home .elementor-18618 > .elementor-element-e11d72a {
    --flex-direction: column;
    --margin-top: 0px;
    --margin-bottom: 0px;
    --margin-left: 0px;
    --margin-right: 0px;
    --padding-top: 2.75rem;
    --padding-right: 1.25rem;
    --padding-bottom: 3rem;
    --padding-left: 1.25rem;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2.5rem;
    margin: 0;
    padding: 2.75rem 1.25rem 3rem;
  }

  body.home .elementor-18618 > .elementor-element-e11d72a > .e-con.e-child {
    width: 100%;
    gap: 1rem;
  }

  body.home .elementor-18618 > .elementor-element-e11d72a h2.elementor-heading-title {
    font-size: 1.75rem;
  }

  body.home .elementor-18618 > .elementor-element-e11d72a p.elementor-heading-title {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  body.home .elementor-18618 > .elementor-element-d1c4dd8 {
    --min-height: 0px;
    min-height: 0;
    padding: 3rem 1.25rem;
  }

  body.home .elementor-18618 > .elementor-element-d1c4dd8 .elementor-element-e4e2a29 {
    padding: 0.5rem 0 1rem;
  }

  body.home .elementor-18618 > .elementor-element-35a3bba {
    padding: 2.25rem 1.25rem 2.5rem;
  }

  body.home .elementor-18618 > .elementor-element-3a203dc {
    --flex-direction: column;
    flex-direction: column;
  }

  body.home .elementor-18618 > .elementor-element-3a203dc > .e-con.e-child,
  body.home .elementor-18618 > .elementor-element-3a203dc .elementor-widget-wpresidence-call-to-action {
    width: 100%;
  }
}

@media (max-width: 430px) {
  body.home .elementor-18618 > .elementor-element-e11d72a {
    padding-inline: 1rem;
  }

  body.home .elementor-18618 > .elementor-element-d1c4dd8 {
    padding-inline: 1rem;
  }
}

/* =========================================================================
 * MOBILE UX FINALIZATION — v0.6.11
 * Visitors first: compact hero, real WPResidence controls, denser footer.
 * Tablet/desktop rules and editable content remain untouched.
 * Legal links remain Elementor-managed; temporary placeholders are content debt.
 * ========================================================================= */

@media (max-width: 767px) {
  /* Retain the existing 44px phone/menu controls in both header templates. */
  .elementor-31734 .ss-header.e-con,
  .elementor-31735 .e-con.e-parent {
    --min-height: 64px;
    min-height: 64px;
  }

  .elementor-31734 .ss-header .elementor-widget-Site_Logo,
  .elementor-31735 .elementor-widget-Site_Logo {
    max-width: 125px;
  }

  .elementor-31734 .ss-header img.image-logo,
  .elementor-31735 img.image-logo {
    width: 125px;
    max-width: 125px;
    height: auto;
  }

  /* Override the older four-line headline and viewport-filling hero only here. */
  body.home .elementor-18618 > .elementor-element-61504da.ss-hero {
    --min-height: clamp(20rem, 44svh, 24rem);
    min-height: clamp(20rem, 44svh, 24rem);
  }

  body.home .elementor-18618 > .elementor-element-61504da.ss-hero > .e-con-inner {
    --padding-top: 2rem;
    --padding-bottom: 2.25rem;
    --padding-left: 1.25rem;
    --padding-right: 1.25rem;
    align-items: center;
    padding: 2rem 1.25rem 2.25rem;
  }

  body.home .elementor-18618 > .elementor-element-61504da.ss-hero .elementor-element-fa65abf {
    width: 100%;
    max-width: 100%;
  }

  body.home .elementor-18618 > .elementor-element-61504da.ss-hero .elementor-element-f4f13c5 .elementor-heading-title {
    max-width: 100%;
    /* Required against existing important hero typography declarations. */
    font-size: clamp(2rem, 1.55rem + 2vw, 2.375rem) !important;
    line-height: 1.08 !important;
  }

  body.home .elementor-18618 > .elementor-element-61504da.ss-hero .elementor-element-bb6a954 .elementor-button {
    margin-bottom: 0.625rem;
  }

  body.home .elementor-18618 > .elementor-element-61504da.ss-hero .elementor-element-dd179c2 .elementor-button {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  body.home .elementor-18618 > .elementor-element-61504da.ss-hero .elementor-element-29528e1 .elementor-button {
    min-width: 0;
    min-height: 44px;
    margin-top: 1.25rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  /* Size the existing Joinchat button, not a replacement or fake control. */
  .joinchat.joinchat--right,
  .joinchat.joinchat--left {
    --s: 48px;
    --sep: max(12px, env(safe-area-inset-right, 0px));
    --bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .joinchat .joinchat__button {
    right: 0;
    bottom: 0;
  }

  a.backtop {
    width: 44px;
    height: 44px;
  }

  /* Final footer content can scroll clear of the existing floating controls. */
  .elementor-31733 #Footer_V1 {
    gap: 1rem !important;
    padding: 1.5rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-c5328bf {
    gap: 1.25rem !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-7a77919,
  .elementor-31733 #Footer_V1 .elementor-element-0f329cd {
    gap: 0.75rem !important;
  }

  .elementor-31733 #Footer_V1 .elementor-element-4162fe1 img {
    width: min(150px, 60vw);
    height: auto;
  }

  .elementor-31733 #Footer_V1 .elementor-element-b3869e0 {
    gap: 0.75rem !important;
  }

  .elementor-31733 #Footer_V1 :is(.elementor-element-1829a4d, .elementor-element-38363bd) {
    gap: 0.375rem !important;
  }

  .elementor-31733 #Footer_V1 :is(
    .elementor-element-ad2ca06,
    .elementor-element-8f940a5,
    .elementor-element-487377f,
    .elementor-element-59b671d
  ) {
    padding: 0;
  }

  .elementor-31733 #Footer_V1 :is(
    .elementor-element-06f6230,
    .elementor-element-5f56650
  ) .elementor-icon-box-title {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .elementor-31733 #Footer_V1 :is(
    .elementor-element-06f6230,
    .elementor-element-5f56650
  ) .elementor-icon-box-description {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .elementor-31733 #Footer_V1 .elementor-icon-list-text {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .elementor-31733 #Footer_V1 :is(
    .elementor-element-487377f,
    .elementor-element-59b671d
  ) .elementor-icon-list-item {
    margin-block: 0;
    padding-block: 0;
  }

  .elementor-31733 #Footer_V1 .elementor-element-2380a97 {
    gap: 0.375rem !important;
    padding-block: 0;
  }

  .elementor-31733 #Footer_V1 .elementor-element-f90a05f .elementor-heading-title {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  /* Keep the original mobile-only trigger and fadeToggle handler intact. */
  #adv-search-header-mobile {
    width: fit-content;
    max-width: calc(100% - 2rem);
    min-height: 44px;
    margin: 0.5rem 1rem 0;
    padding: 0.625rem 1rem;
    gap: 0.5rem;
    border: 1px solid var(--ss-muted-gold, #d6b268);
    border-radius: 999px;
    background: var(--ss-forest-dark, #163528);
    color: var(--ss-warm-white, #faf8f4);
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgb(22 53 40 / 8%);
  }

  #adv-search-header-mobile > i {
    margin-right: 0;
  }

  /* Six archive controls fit three compact rows, not six tall ones. */
  body.tax-property_category .entry-title.title_prop {
    margin-bottom: 1rem;
    font-size: clamp(1.625rem, 1.15rem + 2vw, 2rem);
    line-height: 1.2;
  }

  body.tax-property_category .listing_filters_head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  body.tax-property_category .listing_filters_head .listing_filter_select {
    width: 100%;
    min-width: 0;
  }

  body.tax-property_category .listing_filters_head .filter_menu_trigger,
  body.page-id-24531 .wpresidence_note_half_search .bootstrap-select > .dropdown-toggle,
  body.page-id-24531 .wpresidence_note_half_search .wpresidence_button {
    min-height: 44px;
    padding-block: 0.625rem;
    line-height: 1.4;
  }

  body.page-id-24531 #google_map_prop_list_sidebar .entry-title.title_prop {
    margin-bottom: 1rem;
  }

  body.tax-property_category .property_listing .tag-wrapper,
  body.page-id-24531 .property_listing .tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem;
    top: 0.75rem;
    padding-inline: 0.75rem;
  }

  body.tax-property_category .property_listing .status-wrapper,
  body.page-id-24531 .property_listing .status-wrapper {
    position: static;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  body.tax-property_category .property_listing .tag-wrapper :is(.featured_div, .action_tag_wrapper, .ribbon-inside),
  body.page-id-24531 .property_listing .tag-wrapper :is(.featured_div, .action_tag_wrapper, .ribbon-inside) {
    position: static;
    float: none;
    max-width: 100%;
    margin: 0;
    padding: 0.25rem 0.375rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    white-space: normal;
  }
}

/* v0.6.12: only the audited standalone Property List form. The global native
 * Half Map setting also controls Search Results, so leave that setting intact.
 * Never target #adv-search-header-mobile, #adv-search-mobile or homepage forms. */
body.page-id-24531 .wpresidence_note_half_search > #adv-search-1 {
  display: none;
}

/* Keep the saved title case instead of the earlier child-theme uppercase rule. */
body.page-id-5707 .elementor-5707 > .e-con.e-parent:first-child .elementor-element-0daa15e.elementor-widget-heading .elementor-heading-title {
  text-transform: none;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  /* Reset the inner Elementor tablet padding responsible for the blank gap. */
  body.page-id-5707 .elementor-5707 .elementor-element-dc3d7eb > .e-con-inner {
    --padding-top: 1.5rem;
    --padding-bottom: 1.5rem;
    padding-block: 1.5rem;
  }

  body.page-id-5707 .elementor-5707 > .elementor-element-dc3d7eb.e-con.e-parent:first-child::before {
    /* The previous Contact-only overlay is itself !important. */
    background-image: linear-gradient(180deg, rgba(10, 31, 24, 0.75), rgba(10, 31, 24, 0.86)) !important;
    opacity: 1;
  }

  body.page-id-5707 .elementor-5707 > .elementor-element-dc3d7eb.e-con.e-parent:first-child :is(.elementor-element-0daa15e, .elementor-element-27e851e).elementor-widget-heading .elementor-heading-title {
    /* Override the earlier Contact-only !important heading colours. */
    color: #faf8f4 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  }

  body.page-id-5707 .elementor-5707 .elementor-element-4e8d9a8 > .e-con-inner {
    --padding-top: 0;
    --padding-bottom: 0;
    padding-block: 0;
  }

  /* Content-driven native Services cards, not fixed-height or clipped cards. */
  .ss-services-grid--elementor .ss-service-card,
  body.home .elementor-18618 > .elementor-element-11c0696 .ss-service-card {
    min-height: 0;
    padding: 1.25rem 1.25rem 1rem;
  }

  .ss-services-grid--elementor .ss-service-card__top {
    gap: 0.75rem;
  }

  .ss-services-grid--elementor .ss-service-card__icon-box {
    width: 44px;
    height: 44px;
  }

  .ss-services-grid--elementor .ss-service-card__desc {
    margin-top: 0.25rem;
  }

  .ss-services-grid--elementor .ss-service-card__cta {
    min-height: 44px;
    margin-top: 0.75rem;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1111069 #accordion_prop_details .listing_detail {
    min-width: 0;
    max-width: 100%;
  }

  body.single-estate_property .elementor-24137 .elementor-element-1111069 #accordion_prop_details .listing_detail > :not(strong) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* v0.6.14: the native details widget resets only the Bootstrap left gutter.
 * Reconcile the actual row, not its readable labels/values or other widgets. */
body.single-estate_property .elementor-24137 .elementor-element-1111069 #accordion_prop_details .panel-body > .row {
  margin-inline: 0;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.single-estate_property .elementor-24137 .elementor-element-1111069 #accordion_prop_details .panel-body > .row > .listing_detail {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

/* v0.6.19: the native Amenities widget has the same asymmetric row gutter.
 * Reconcile its mobile row geometry without clipping or changing desktop. */
@media (max-width: 767px) {
  body.single-estate_property .elementor-24137 .elementor-element-2e064ac7 #accordion_prop_features .panel-body > .row {
    margin-inline: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.single-estate_property .elementor-24137 .elementor-element-2e064ac7 #accordion_prop_features .listing_detail {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Includes the confirmed 768px collision; desktop controls remain native. */
@media (max-width: 991px) {
  a.backtop {
    /* Existing child/theme offsets are themselves important. */
    bottom: var(--ss-float-bottom, calc(20px + env(safe-area-inset-bottom, 0px))) !important;
  }

  .joinchat.ss-floating-managed {
    --bottom: var(--ss-float-bottom);
  }

  :is(.joinchat, a.backtop, a.contact-box, .mobile_agent_area_wrapper).ss-floating-managed {
    transition: opacity 160ms ease;
  }

  :is(a.contact-box, .mobile_agent_area_wrapper).ss-floating-managed {
    bottom: var(--ss-float-bottom, 0px);
  }

  :is(.joinchat, a.backtop, a.contact-box, .mobile_agent_area_wrapper).ss-floating-managed.ss-floating-yield {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  :is(.joinchat, a.backtop, a.contact-box, .mobile_agent_area_wrapper).ss-floating-managed {
    transition: none;
  }
}

@media (max-width: 767px) {
  /* Let Leaflet measure the native card and anchor/autopan its own popup.
   * Query the map's width, not the wider page viewport. */
  :is(.googleMap_shortcode_class, #googleMap).leaflet-container {
    container-type: inline-size;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .leaflet-popup {
    /* Keep the box centred on Leaflet's marker transform even after a resize.
     * Its cached inline left offset can describe the previous measured width. */
    left: 0 !important;
    translate: -50% 0;
    width: min(21.875rem, calc(100cqi - 1.5rem));
    min-width: 0;
    box-sizing: border-box;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .leaflet-popup-content-wrapper {
    min-width: 0;
    box-sizing: border-box;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .leaflet-popup-content {
    /* Override Leaflet's inline measurement; the outer map-aware box owns width. */
    width: auto !important;
    min-width: 0;
    margin: 0;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .leaflet-popup-content .info_details.openstreet_map_price_infobox {
    position: relative;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.25rem 0.625rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.75rem;
    box-sizing: border-box;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .info_details .infobox_wrapper_image {
    grid-row: 1 / 4;
    min-width: 0;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .info_details .infobox_wrapper_image img {
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .info_details :is(.infobox_title, .prop_pricex, .infobox_details) {
    float: none;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .info_details .infobox_title a {
    float: none;
    display: block;
    margin: 0;
    padding: 0 2.25rem 0 0;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .info_details .infobox_details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem 0.25rem;
  }

  /* Use the accessible native Leaflet close button, not two close controls. */
  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .info_details #infocloser {
    display: none;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .leaflet-popup-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #163528;
  }

  :is(.googleMap_shortcode_class, #googleMap).leaflet-container .leaflet-popup-tip {
    /* Native theme makes the Leaflet tip transparent with !important. */
    background: #fff !important;
  }
}

@media (max-width: 991px) {
  /* Required important width/height overrides replace earlier important rules.
   * Remove the parent-theme negative centering margin from the dynamic label. */
  /* The native property action bar is 62px high; keep floating controls above it. */
  @media (min-width: 768px) {
    body.single-estate_property:has(.mobile_agent_area_wrapper.d-block) .joinchat {
      --bottom: var(--ss-float-bottom, calc(5.5rem + env(safe-area-inset-bottom, 0px)));
    }
  }

  body.single-estate_property:has(.mobile_agent_area_wrapper.d-block) a.backtop {
    bottom: var(--ss-float-bottom, calc(5.5rem + env(safe-area-inset-bottom, 0px))) !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .gallery-left-column {
    width: max-content !important;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .gallery-left-column .last_gallery_item {
    height: auto !important;
    padding-block: 0.625rem;
  }

  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .last_gallery_item .img_listings_mes {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    text-overflow: clip;
  }
}

@media (max-width: 430px) {
  /* Separate native floating controls; keep the gallery action above WhatsApp. */
  body.single-estate_property .elementor-24137 .elementor-element-6742de59 .gallery-left-column {
    bottom: 4.75rem;
  }

}
/* v0.6.20: native map panel only; empty datasets do not show a fallback basemap. */
#google_map_prop_list_wrapper #gmap_wrapper.ss-property-map-no-pins {
  /* Replace the native inline/full-viewport height only in the empty state. */
  height: clamp(16rem, 40vh, 24rem) !important;
  min-height: 0;
}
#gmap_wrapper.ss-property-map-no-pins #googleMap {
  visibility: hidden;
  pointer-events: none;
  min-height: 0 !important;
  height: 100% !important;
}
#gmap_wrapper.ss-property-map-no-pins #gmap-control,
#gmap_wrapper.ss-property-map-no-pins #gmapzoomplus,
#gmap_wrapper.ss-property-map-no-pins #gmapzoomminus,
#gmap_wrapper.ss-property-map-no-pins #gmap-noresult {
  display: none;
}
#gmap_wrapper .ss-property-map-empty {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ss-ivory, #f7f4eb);
  color: var(--ss-forest, #173e30);
  text-align: center;
  z-index: 1;
}
#gmap_wrapper .ss-property-map-empty[hidden] { display: none; }
/* Native category archives: full-width grid only, not list view or half-map. */
@media (max-width: 767px) {
  body.tax-property_category .ss-property-category-grid #listing_ajax_container > .listing_wrapper:not(.col-md-12) {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.tax-property_category .ss-property-category-grid #listing_ajax_container > .listing_wrapper:not(.col-md-12) {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  body.tax-property_category .ss-property-category-grid #listing_ajax_container > .listing_wrapper:not(.col-md-12) {
    width: calc(100% / 3);
  }
}

/* Single-property review candidate. Separate from the unapproved v0.6.22
 * archive/header candidates; preserve native editable content and actions. */
body.single-estate_property { --ss-property-card-gutter: 24px; }

body.single-estate_property .panel-group.property-panel:is(#accordion_prop_details, #accordion_prop_features) {
  box-sizing: border-box;
  padding: var(--ss-property-card-gutter);
}
/* The outer card owns the border and gutter. The legacy component rule also
 * borders panel-body; retaining that inner box would paste text to its edge. */
body.single-estate_property .panel-group.property-panel:is(#accordion_prop_details, #accordion_prop_features) > .panel,
body.single-estate_property .panel-group.property-panel:is(#accordion_prop_details, #accordion_prop_features) .panel-body {
  border: 0;
  box-shadow: none;
}
body.single-estate_property .panel-group.property-panel:is(#accordion_prop_details, #accordion_prop_features) .panel-heading,
body.single-estate_property .panel-group.property-panel:is(#accordion_prop_details, #accordion_prop_features) .panel-body {
  padding: 0;
}
body.single-estate_property .panel-group.property-panel#accordion_prop_details .panel-body > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin-inline: 0;
}
/* Values are native text nodes. Block flow keeps them and inline suffixes
 * together, unlike space-between flex items, without adding value markup. */
body.single-estate_property .panel-group.property-panel#accordion_prop_details .panel-body > .row > .listing_detail {
  display: block;
  float: none;
  width: auto;
  min-width: 0;
  max-width: 100%;
  text-align: start;
  overflow-wrap: anywhere;
}
body.single-estate_property .panel-group.property-panel#accordion_prop_details .listing_detail > strong {
  display: block;
  float: none;
  width: auto;
  max-width: 100%;
  padding-bottom: 0.35rem;
  overflow-wrap: anywhere;
}
body.single-estate_property .panel-group.property-panel#accordion_prop_details .listing_detail.rera { grid-column: 1 / -1; }

body.single-estate_property .panel-group.property-panel#accordion_prop_features .panel-body > .listing_detail.row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  width: auto;
  margin-inline: 0;
}
body.single-estate_property .panel-group.property-panel#accordion_prop_features .feature_chapter_name {
  grid-column: 1 / -1;
  width: auto;
  padding: 0;
}
body.single-estate_property .panel-group.property-panel#accordion_prop_features .listing_detail.row > .listing_detail {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  width: auto;
  min-width: 0;
  padding-inline: 0;
  overflow-wrap: anywhere;
}
body.single-estate_property .panel-group.property-panel#accordion_prop_features .listing_detail > i {
  flex: 0 0 auto;
  margin: 0;
  line-height: inherit;
}

/* Remove the two nested card gutters, retaining one outer booking card. */
body.single-estate_property .elementor-widget-property_show_agent_form2_section#contact { padding: var(--ss-property-card-gutter); }
body.single-estate_property .property_page_agent_form_v2_section.elementor_agent_wrapper,
body.single-estate_property .property_page_agent_form_v2_section.elementor_agent_wrapper .wpestate_schedule_tour_wrapper {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .wpestate_property_schedule_dates_wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.5rem;
  width: 100%;
  height: auto;
  min-width: 0;
  padding: 0;
  margin: 0 0 1rem;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .wpestate_property_schedule_dates_wrapper > .slick-list {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .wpestate_property_schedule_dates_wrapper > button.slick-arrow {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: auto;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0.5rem 0.25rem;
  transform: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .wpestate_property_schedule_dates_wrapper > .slick-prev { grid-column: 1; grid-row: 2; }
body.single-estate_property .wpestate_schedule_tour_wrapper .wpestate_property_schedule_dates_wrapper > .slick-next { grid-column: 2; grid-row: 2; }
/* Keep Slick's measured slide width; do not impose a conflicting minimum. */
body.single-estate_property .wpestate_schedule_tour_wrapper .wpestate_property_schedule_singledate_wrapper {
  box-sizing: border-box;
  min-width: 0;
  height: auto;
  padding-block: 0;
  margin-bottom: 0;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .wpestate_property_schedule_singledate_wrapper_display {
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  height: auto;
  min-height: 76px;
  padding: 0.375rem 0.125rem;
}
body.single-estate_property .wpestate_schedule_tour_wrapper :is(button, input, select, textarea, .wpestate_property_schedule_singledate_wrapper):focus-visible {
  outline: 2px solid var(--ss-muted-gold, #d6b268);
  outline-offset: 3px;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .gpr_wrapper {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 0.5rem;
  margin-block: 0.75rem;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .gpr_wrapper > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0.2rem 0 0;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .gpr_wrapper > .wpestate_gdpr_label {
  min-width: 0;
  width: auto;
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .contact_form_flex_input_wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
body.single-estate_property .wpestate_schedule_tour_wrapper .contact_form_flex_input_wrapper > input.form-control {
  width: 100%;
  min-width: 0;
  margin: 0;
}
body.single-estate_property .price_area.elementor-widget-container_price_area {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.25rem 0.35rem;
  text-align: start;
}
body.single-estate_property .price_area.elementor-widget-container_price_area .price_label { margin-inline: 0; }

/* Narrow summary columns must wrap their editable labels at 320px too. */
body.single-estate_property .e-grid > .e-con-boxed:has(.elementor-widget-Text_with_Property_Details) .elementor-widget-text-editor {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1199px) {
  body.single-estate_property { --ss-property-card-gutter: 20px; }
  body.single-estate_property .panel-group.property-panel#accordion_prop_features .panel-body > .listing_detail.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.single-estate_property { --ss-property-card-gutter: 16px; }
  body.single-estate_property .panel-group.property-panel#accordion_prop_details .panel-body > .row,
  body.single-estate_property .panel-group.property-panel#accordion_prop_features .panel-body > .listing_detail.row { grid-template-columns: minmax(0, 1fr); }
}

/* Approved official-launch contact presentation; native Elementor content remains editable. */
.elementor.elementor-31734 .elementor-element.elementor-element-7a4bcad4,
.elementor.elementor-31735 .elementor-element.elementor-element-1c5bceb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: repeat(2, auto);
  gap: 2px 16px;
  align-items: center;
  min-width: 0;
}
:is(.elementor-31734, .elementor-31735) .elementor-widget-wpresidence_navigation_menu {
  grid-column: 1;
  grid-row: 1 / 3;
  min-width: 0;
}
:is(.elementor-31734, .elementor-31735) .elementor-widget-Site_Phone {
  grid-column: 2;
  width: auto;
  min-width: 0;
  justify-self: end;
}
:is(.elementor-31734, .elementor-31735) .elementor-widget-Site_Phone a {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
:is(.elementor-31734, .elementor-31735) .elementor-widget-Site_Phone svg {
  width: 18px;
  height: 18px;
}

a.contact-box.ss-site-contact-launcher {
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  right: max(12px, env(safe-area-inset-right, 0px));
  left: auto;
  top: auto;
  margin: 0;
  bottom: var(--ss-float-bottom, calc(20px + env(safe-area-inset-bottom, 0px)));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1040;
}
a.contact-box.ss-site-contact-launcher.ss-floating-yield {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Bootstrap's .hidden is important; the native scroll handler must not dismiss an open dialog. */
.contactformwrapper.ss-contact-entry-open {
  display: block !important;
  position: fixed;
  box-sizing: border-box;
  width: min(390px, calc(100% - 24px));
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  right: max(12px, env(safe-area-inset-right, 0px));
  left: auto;
  top: auto;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1050;
}
.contactformwrapper.ss-contact-entry-open #footer-contact-form {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 24px;
}
.contactformwrapper.ss-contact-entry-open h4 { padding-right: 28px; }
.contactformwrapper .contact_close_button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.contactformwrapper.ss-contact-entry-open :is(input.form-control, textarea.form-control, #btn-cont-submit) {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 44px;
}
.contactformwrapper.ss-contact-entry-open .gpr_wrapper {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.contactformwrapper.ss-contact-entry-open .wpestate_gdpr_label {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.contactformwrapper :focus-visible,
a.contact-box.ss-site-contact-launcher:focus-visible {
  outline: 2px solid var(--ss-gold, #c9ad66);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  /* Native body-level launchers share fixed viewport corners, not content slots. */
  a.contact-box.ss-site-contact-launcher {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
  }
  .joinchat.joinchat--left {
    position: fixed;
    --bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .elementor.elementor-31734 .elementor-element.elementor-element-7a4bcad4,
  .elementor.elementor-31735 .elementor-element.elementor-element-1c5bceb {
    grid-template-columns: 44px max-content;
    gap: 0 8px;
    width: auto;
    flex: 0 0 auto;
    margin-inline: 0;
    padding: 0;
  }
  :is(.elementor-31734, .elementor-31735) .elementor-widget-Site_Phone .header_phone {
    width: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
  }
  :is(.elementor-31734, .elementor-31735) .elementor-widget-Site_Phone .header_phone a {
    display: inline-flex;
    min-height: 28px;
    font-size: 12px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 24px;
  }
  :is(.elementor-31734, .elementor-31735) .elementor-widget-Site_Phone svg {
    width: 14px;
    height: 14px;
  }
  .contactformwrapper.ss-contact-entry-open #footer-contact-form { padding: 20px; }
}
@media (max-width: 430px) {
  :is(.elementor-31734, .elementor-31735) .elementor-widget-Site_Logo img.image-logo {
    width: clamp(80px, 28vw, 120px);
    max-width: clamp(80px, 28vw, 120px);
    height: auto;
  }
}
