
  @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

  /* ONE PROFESSIONAL TYPEFACE ON THIS PAGE (client, 2026-11-20). The page
     mixed four: Outfit (search and filters), Nunito (the request section),
     Lexend (card titles, wide and heavy) and Inter, which the cards asked for
     but nothing loaded, so phones drew their system font. Inter is loaded
     above and wins everywhere below the site header, including the cards the
     sort / filter AJAX swaps in. The header and footer keep the site-wide
     look; icon fonts and SVG are left alone. */
  body :not(#header-main, #header-main *, #footer, #footer *, i, .fa, .fas, .far, .fab,
            [class^="fa-"], [class*=" fa-"], svg, svg *) {
      font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  }

  :root {
      --bg-color:          #061121;
      --surface-color:     rgba(6,17,33,0.70);
      --surface-secondary: rgba(14,30,55,0.85);
      --border-color:      rgba(235,216,176,0.18);
      --primary-text:      #eaf1f7;
      --secondary-text:    #cbd5e1;
      --accent-color:      #ebd8b0;
      --gold-primary:      #ebd8b0;
      --gold-hover:        #dfc89d;
      --gold-active:       #c5ad83;
      
      --housbe-card-bg:    rgba(6, 17, 33, 0.70) !important;
      --housbe-border:     rgba(235, 216, 176, 0.18) !important;
      --housbe-text:       #eaf1f7 !important;
      --muted:             #cbd5e1 !important;
  }

  html,
  body {
    max-width: 100%;
    /* `clip` (not `hidden`) avoids creating a vertical scroll container,
       which otherwise produces a double scrollbar on mobile. */
    overflow-x: clip;
  }

  body {
    background-color: #061121 !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(43,93,153,0.15) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(235,216,176,0.10) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
    color: #eaf1f7 !important;
    font-family: 'Outfit', sans-serif !important;
    position: relative;
  }

  /* ── Galaxy Background Layer ─────────────────────────── */
  #page-galaxy-bg {
      position: fixed;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
      background-image:
          radial-gradient(circle, rgba(255,255,255,0.30)  1px,   transparent 1px),
          radial-gradient(circle, rgba(255,255,255,0.18)  1.5px, transparent 1.5px),
          radial-gradient(circle, rgba(235,216,176,0.18)  1px,   transparent 1px) !important;
      background-size: 84px 84px, 126px 126px, 105px 105px;
      animation: pageGalaxyFloat 120s infinite linear;
      opacity: 0.35;
  }
  @keyframes pageGalaxyFloat {
      0%   { transform: translateY(0)     rotate(0deg);   }
      50%  { transform: translateY(-30px) rotate(180deg); }
      100% { transform: translateY(0)     rotate(360deg); }
  }

  /* Card rotating stars & shimmer */
  .card-stars {
      position: absolute !important;
      top: -50% !important;
      left: -50% !important;
      width: 200% !important;
      height: 200% !important;
      background-image: 
          radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
          radial-gradient(circle, rgba(255, 255, 255, 0.20) 1.5px, transparent 1.5px),
          radial-gradient(circle, rgba(235, 216, 176, 0.20) 1px, transparent 1px) !important;
      background-size: 70px 70px, 105px 105px, 84px 84px !important;
      animation: galaxyRotate 80s infinite linear !important;
      pointer-events: none !important;
      z-index: 1 !important;
      opacity: 0.55 !important;
  }

  .card-shimmer {
      position: absolute !important;
      top: -50% !important;
      left: -50% !important;
      width: 200% !important;
      height: 200% !important;
      background: linear-gradient(
          to right,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.12) 50%,
          rgba(255, 255, 255, 0) 100%
        ) !important;
      transform: rotate(45deg);
      animation: luxuryCardShimmer 6s infinite linear !important;
      pointer-events: none !important;
      z-index: 2 !important;
  }

  @keyframes galaxyRotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }

  @keyframes luxuryCardShimmer {
      0% { transform: rotate(45deg) translateY(120%); }
      50% { transform: rotate(45deg) translateY(-120%); }
      100% { transform: rotate(45deg) translateY(-120%); }
  }
  
  /* Premium Glowing Style (Gold & Sapphire Theme) */
  .premium-hover-card {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(ellipse at top left, rgba(235, 216, 176, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(43, 93, 153, 0.14) 0%, transparent 55%),
        linear-gradient(160deg, rgba(14, 30, 55, 0.88) 0%, rgba(6, 17, 33, 0.80) 100%) !important;
    border: 1px solid rgba(235, 216, 176, 0.25) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 20px !important;
    box-shadow: 
        3px 5px 0 rgba(195, 145, 35, 0.45),
        4px 7px 8px rgba(0, 0, 0, 0.55),
        0 12px 24px rgba(0, 0, 0, 0.45),
        0 5px 10px rgba(0, 0, 0, 0.32),
        0 20px 40px rgba(0, 0, 0, 0.22),
        0 0 28px rgba(235, 216, 176, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 18px rgba(235, 216, 176, 0.18) !important;
    margin-bottom: 30px !important;
    z-index: 1 !important;
  }

  .premium-hover-card::after {
    content: '' !important;
    position: absolute !important;
    top: 6px !important; 
    left: 6px !important; 
    right: 6px !important; 
    bottom: 6px !important;
    border: 1px solid rgba(235, 216, 176, 0.13) !important;
    border-radius: 14px !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  .premium-hover-card:hover {
    box-shadow: 
        4px 7px 0 rgba(215, 165, 45, 0.58),
        5px 9px 12px rgba(0, 0, 0, 0.65),
        0 18px 36px rgba(0, 0, 0, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.42),
        0 28px 50px rgba(0, 0, 0, 0.28),
        0 0 36px rgba(235, 216, 176, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 0 26px rgba(235, 216, 176, 0.26) !important;
    transform: translateY(-8px) scale(1.02) !important;
    border-top-color: rgba(235, 216, 176, 0.92) !important;
    border-left-color: rgba(235, 216, 176, 0.72) !important;
    border-right-color: rgba(235, 216, 176, 0.22) !important;
    border-bottom-color: rgba(235, 216, 176, 0.10) !important;
  }

  .mouse-light {
    position: absolute !important;
    width: 600px !important;
    height: 600px !important;
    background: radial-gradient(circle, rgba(235, 216, 176, 0.15) 0%, rgba(235, 216, 176, 0) 70%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
  }

  .premium-hover-card:hover .mouse-light {
    opacity: 1 !important;
  }

  .leads-btn-premium {
    background: linear-gradient(135deg, #ebd8b0 0%, #dfc89d 100%) !important;
    color: #061121 !important;
    border: 1px solid rgba(235, 216, 176, 0.4) !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(235, 216, 176, 0.2) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .leads-btn-premium:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(235, 216, 176, 0.35) !important;
    background: linear-gradient(135deg, #f7e6c4 0%, #e0cda7 100%) !important;
  }

  /* ── Back Button ─────────────────────────────────────── */
  .btn-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(6,17,33,0.6) !important;
      color: #ebd8b0 !important;
      border: 1px solid rgba(235,216,176,0.4) !important;
      padding: 0 16px;
      height: 36px;
      border-radius: 30px !important;
      text-decoration: none !important;
      font-weight: 600 !important;
      font-size: 12.5px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
      transition: all 0.3s ease !important;
      position: relative;
      overflow: hidden;
      width: fit-content !important;
      cursor: pointer;
      z-index: 3;
  }
  .btn-back::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 50%; height: 100%;
      background: linear-gradient(to right,
          rgba(255,255,255,0)   0%,
          rgba(255,255,255,0.4) 50%,
          rgba(255,255,255,0)   100%);
      transform: skewX(-20deg);
      animation: back-shimmer 2.5s infinite;
  }
  @keyframes back-shimmer {
      0%   { left: -100%; }
      100% { left: 200%;  }
  }
  .btn-back:hover {
      background: rgba(235,216,176,0.12) !important;
      border-color: rgba(235,216,176,0.8) !important;
      color: #ebd8b0 !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(235,216,176,0.2) !important;
  }
  .btn-back i { font-size: 12px; color: #ebd8b0 !important; }

  /* "Property Listings" heading — styled like the Back button pill */
  #see-result h4 {
      display: inline-flex !important;
      align-items: center;
      background: rgba(6,17,33,0.6) !important;
      color: #ebd8b0 !important;
      -webkit-text-fill-color: #ebd8b0 !important;
      border: 1px solid rgba(235,216,176,0.4) !important;
      padding: 10px 22px !important;
      border-radius: 30px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
      width: fit-content !important;
  }

  /* ── Breadcrumb pills (match the Back button) ────────── */
  ul.breadcrumb {
      display: flex !important;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      list-style: none;
      margin: 0;
      padding: 0;
  }
  ul.breadcrumb > li {
      display: inline-flex;
      align-items: center;
  }
  /* Separator chevron between pills */
  ul.breadcrumb > li > i.fa-angle-right {
      color: rgba(235,216,176,0.55) !important;
      font-size: 12px !important;
  }
  .bc-link {
      display: inline-flex !important;
      align-items: center;
      gap: 7px;
      background: rgba(6,17,33,0.6) !important;
      color: #ebd8b0 !important;
      border: 1px solid rgba(235,216,176,0.4) !important;
      padding: 0 16px;
      height: 36px;
      border-radius: 30px !important;
      text-decoration: none !important;
      font-weight: 600 !important;
      font-size: 12.5px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
      transition: all 0.3s ease !important;
      position: relative;
      overflow: hidden;
      width: fit-content !important;
      cursor: pointer;
      z-index: 3;
  }
  .bc-link::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 50%; height: 100%;
      background: linear-gradient(to right,
          rgba(255,255,255,0)   0%,
          rgba(255,255,255,0.4) 50%,
          rgba(255,255,255,0)   100%);
      transform: skewX(-20deg);
      animation: back-shimmer 2.5s infinite;
  }
  .bc-link:hover {
      background: rgba(235,216,176,0.12) !important;
      border-color: rgba(235,216,176,0.8) !important;
      color: #ebd8b0 !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(235,216,176,0.2) !important;
  }
  .bc-link i { font-size: 12px; color: #ebd8b0 !important; }

  /* Current page pill — filled gold to mark "you are here" */
  .bc-link.is-current {
      background: linear-gradient(135deg, #ebd8b0 0%, #dfc89d 100%) !important;
      color: #061121 !important;
      border-color: rgba(235,216,176,0.7) !important;
      box-shadow: 0 4px 15px rgba(235,216,176,0.35) !important;
      cursor: default;
  }
  .bc-link.is-current:hover {
      transform: none;
      color: #061121 !important;
  }
  .bc-link.is-current i { color: #061121 !important; }

  /* ── Compact breadcrumb on mobile ───────────────────── */
  @media (max-width: 575px) {
      ul.breadcrumb { gap: 6px; row-gap: 6px; max-width: 100%; align-items: center; }
      ul.breadcrumb > li { margin: 0 !important; }
      ul.breadcrumb > li > i.fa-angle-right,
      ul.breadcrumb > i.fa-angle-right { display: none !important; }
      .bc-link {
          padding: 0 10px !important;
          height: 28px !important;
          font-size: 10px !important;
          letter-spacing: 0.2px !important;
          text-transform: none !important;
          gap: 4px !important;
          border-radius: 20px !important;
      }
      .bc-link i { font-size: 10px !important; }
      .bc-link.is-current { box-shadow: 0 2px 8px rgba(235,216,176,0.25) !important; }
      .breadcrumb .btn-back {
          height: 28px !important;
          padding: 0 10px !important;
          font-size: 10px !important;
          letter-spacing: 0.2px !important;
          text-transform: none !important;
          border-radius: 20px !important;
      }
      .breadcrumb .btn-back i { font-size: 10px !important; }
  }

  /* Premium Tiffany Assistant Button Style */
  .tiffany-btn-premium {
    background: linear-gradient(135deg, #ebd8b0 0%, #dfc89d 100%) !important;
    color: #061121 !important;
    border: 1px solid rgba(235, 216, 176, 0.4) !important;
    border-radius: 30px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(235, 216, 176, 0.25) !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tiffany-btn-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(235, 216, 176, 0.4) !important;
    color: #061121 !important;
  }

  @media(max-width: 640px) {
    .tiffany-btn-premium {
      padding: 8px 16px !important;
      font-size: 11px !important;
      letter-spacing: 0.5px !important;
    }
  }

  /* Premium Selects and Inputs Styling Overrides */
  .nice-select,
  .nice-select.multi-select,
  .dropdown-btn,
  .input-effect {
    background-color: rgba(6, 17, 33, 0.8) !important;
    color: #FFF !important;
    border: 1px solid rgba(235, 216, 176, 0.25) !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
  }
  .nice-select:hover,
  .nice-select:focus,
  .nice-select.multi-select:hover,
  .dropdown-btn:hover,
  .input-effect:hover,
  .input-effect:focus {
    border-color: #ebd8b0 !important;
    box-shadow: 0 0 15px rgba(235, 216, 176, 0.3) !important;
    background-color: rgba(14, 30, 55, 0.9) !important;
  }
  .nice-select .list,
  .nice-select.multi-select .list,
  .dropdown-list {
    background: rgba(14, 30, 55, 0.95) !important;
    border: 1px solid rgba(235, 216, 176, 0.25) !important;
    border-radius: 12px !important;
  }
  .nice-select .option:hover,
  .nice-select.multi-select li:hover,
  .dropdown-list label:hover {
    background: rgba(235, 216, 176, 0.12) !important;
    color: #ebd8b0 !important;
  }
  
  .wg-filter .wd-search-form {
    background: linear-gradient(165deg, rgba(14, 30, 55, 0.95) 0%, rgba(6, 17, 33, 0.98) 100%) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(235, 216, 176, 0.25) !important;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(235, 216, 176, 0.15) !important;
    border-radius: 20px !important;
  }

  .property-card2 {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(ellipse at top left, rgba(235, 216, 176, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(43, 93, 153, 0.14) 0%, transparent 55%),
        linear-gradient(160deg, rgba(14, 30, 55, 0.88) 0%, rgba(6, 17, 33, 0.80) 100%) !important;
    border-top: 1px solid rgba(235, 216, 176, 0.72) !important;
    border-left: 1px solid rgba(235, 216, 176, 0.50) !important;
    border-right: 1px solid rgba(235, 216, 176, 0.12) !important;
    border-bottom: 1px solid rgba(235, 216, 176, 0.06) !important;
    border-radius: 20px !important;
    box-shadow: 
        3px 5px 0 rgba(195, 145, 35, 0.45),
        4px 7px 8px rgba(0, 0, 0, 0.55),
        0 12px 24px rgba(0, 0, 0, 0.45),
        0 5px 10px rgba(0, 0, 0, 0.32),
        0 20px 40px rgba(0, 0, 0, 0.22),
        0 0 28px rgba(235, 216, 176, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 18px rgba(235, 216, 176, 0.18) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: #fff;
    z-index: 1 !important;
    isolation: isolate !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .property-card2::after {
    content: '' !important;
    position: absolute !important;
    top: 6px !important; 
    left: 6px !important; 
    right: 6px !important; 
    bottom: 6px !important;
    border: 1px solid rgba(235, 216, 176, 0.13) !important;
    border-radius: 14px !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  .property-card2:hover {
    transform: translateY(-8px) scale(1.02) !important;
    background:
        radial-gradient(ellipse at top left, rgba(235, 216, 176, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(43, 93, 153, 0.18) 0%, transparent 55%),
        linear-gradient(160deg, rgba(16, 34, 62, 0.92) 0%, rgba(6, 17, 33, 0.86) 100%) !important;
    border-top-color: rgba(235, 216, 176, 0.92) !important;
    border-left-color: rgba(235, 216, 176, 0.72) !important;
    border-right-color: rgba(235, 216, 176, 0.22) !important;
    border-bottom-color: rgba(235, 216, 176, 0.10) !important;
    box-shadow:
        4px 7px 0 rgba(215, 165, 45, 0.58),
        5px 9px 12px rgba(0, 0, 0, 0.65),
        0 18px 36px rgba(0, 0, 0, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.42),
        0 28px 50px rgba(0, 0, 0, 0.28),
        0 0 36px rgba(235, 216, 176, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 0 26px rgba(235, 216, 176, 0.26) !important;
  }

  /* Range Sliders Premium Skin */
  .slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #dfc89d 0%, #ebd8b0 100%) !important;
    border-radius: 4px;
  }
  .slider-thumb, .slider-thumb2 {
    border-color: #ebd8b0 !important;
    background: #061121 !important;
  }
  .slider-track {
    background: rgba(235, 216, 176, 0.15) !important;
  }
  .slider-label.active, .label.active {
    background: #ebd8b0 !important;
    color: #061121 !important;
  }


  .property-card {
    display: none;
    width: 95%;
    max-width: 920px;
    margin: 0 auto;
    background:
        radial-gradient(ellipse at top left, rgba(235, 216, 176, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(43, 93, 153, 0.16) 0%, transparent 55%),
        linear-gradient(160deg, rgba(14, 30, 55, 0.98) 0%, rgba(6, 17, 33, 0.99) 100%);
    border: 1px solid rgba(235, 216, 176, 0.28);
    border-radius: 22px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(235, 216, 176, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    max-height: 92vh;
    z-index: 9999;
    color: #eaf1f7;
    scrollbar-width: thin;
    scrollbar-color: rgba(235, 216, 176, 0.5) transparent;
  }

  #quickViewModel::-webkit-scrollbar { width: 8px; }
  #quickViewModel::-webkit-scrollbar-track { background: transparent; }
  #quickViewModel::-webkit-scrollbar-thumb {
    background: rgba(235, 216, 176, 0.4);
    border-radius: 8px;
  }
  #quickViewModel::-webkit-scrollbar-thumb:hover { background: rgba(235, 216, 176, 0.6); }

  .image-gallery {
    position: relative;
    height: 400px;
    background: #f0f0f0;
  }

  .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .thumbnails {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    border: 3px solid white;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.2s;
  }

  .thumbnail:hover {
    transform: scale(1.05);
  }

  .thumbnail.active {
    border-color: #4CAF50;
  }

  .property-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #FF0000 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
  }

  .property-status2 {
    position: absolute;
    top: 20px;
    left: 145px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
  }

  .image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.2s;
  }

  .image-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
  }

  .prev {
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #FF0000 100%);
    color: #FFF;
  }

  .next {
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #FF0000 100%);
    color: #FFF;
  }

  .property-details {
    padding: 25px;
  }

  .price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .price {
    font-size: 25px;
    font-weight: 500;
    color: #fff;
  }

  .action-buttons {
    display: flex;
    gap: 10px;
  }

  .btn-outline {
    background: transparent;
    border: 1px solid #ddd;
  }

  .btn-outline:hover {
    background: #f5f5f5;
  }

  .btn i {
    margin-right: 5px;
  }

  .property-title {
    font-size: 22px;
    margin-bottom: 5px;
    color: #fff;
  }

  .property-address {
    color: #7f8c8d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
  }

  .property-address i {
    margin-right: 5px;
    color: #95a5a6;
  }

  .property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px 10px;
  }

  .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
  }

  .feature-label {
    font-size: 14px;
    color: #aaa;
  }

  .property-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .agent-section {
    display: flex;
    align-items: center;
    background: #1F2C2D;
    padding: 15px;
    border-radius: 8px;
  }

  .agent-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
  }

  .agent-info {
    flex: 1;
  }

  .agent-name {
    font-weight: 600;
    color: #fff !important;
  }

  .agent-name a {
    font-weight: 600;
    color: #fff !important;
  }

  .agent-contact {
    color: #f2f2f2;
    font-size: 14px;
  }

  .contact-agent {
    margin-left: 10px;
  }

  /* Responsive styles */
  @media (max-width: 768px) {
    .image-gallery {
      height: 300px;
    }

    .feature {
      width: 30%;
    }

    .property-card {
      width: 95%;
      height: auto;
      max-height: 85vh;
    }

    #close {
      top: 2%;
      right: 5% !important;
      font-size: 35px;
    }
  }

  @media (max-width: 480px) {
    .price-section {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }

    .agent-section {
      flex-direction: column;
      text-align: center;
    }

    .agent-image {
      margin-right: 0;
      margin-bottom: 10px;
    }

    .contact-agent {
      margin-left: 0;
      margin-top: 10px;
    }

    .image-gallery {
      height: 220px;
    }

    .thumbnails {
      bottom: 10px;
      left: 10px;
      flex-wrap: wrap;
    }

    .thumbnail {
      width: 45px;
      height: 45px;
    }

    .property-title {
      font-size: 18px;
    }

    .price {
      font-size: 20px;
    }

    .box-house .content {
      padding: 23px 5px 23px;
    }

    .property-details {
      padding: 15px;
    }

    .amenities-list {
      list-style: none;
      padding: 0;
      margin: 15px 0;
    }

    .amenities-list li {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      font-size: 15px;
      color: #ddd;
    }

    .amenities-list li i {
      color: #4CAF50;
      font-size: 14px;
    }

    .agent-section {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-top: 20px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .agent-image {
      margin-right: 0 !important;
      margin-bottom: 15px !important;
    }

    .agent-info {
      width: 100%;
      flex: none !important;
      display: block !important;
    }

    .agent-info>* {
      text-align: center !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    .contact-agent {
      width: 100% !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      margin-left: 0 !important;
      margin-top: 15px !important;
      padding: 0 !important;
      float: none !important;
    }

    /* Aggressively targeting any button/link/div inside contact-agent */
    .contact-agent>* {
      width: auto !important;
      min-width: 160px;
      max-width: 280px;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: center !important;
      margin: 0 auto !important;
      text-align: center !important;
      padding: 12px 20px !important;
      border-radius: 8px !important;
      float: none !important;
      left: auto !important;
      right: auto !important;
      transform: none !important;
    }

    /* Ensuring text and icons inside are also centered */
    .contact-agent>* * {
      text-align: center !important;
      margin-left: auto !important;
      margin-right: auto !important;
      display: block !important;
    }

    .tf-grid-layout {
      display: flex;
      flex-direction: column;
      gap: 20px;
      width: 100%;
    }

    html,
    body {
      max-width: 100%;
      overflow-x: clip;
    }
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(6, 17, 33, 0.72) 0%, rgba(2, 7, 15, 0.9) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
  }

  #close {
    display: none;
    position: fixed;
    top: 3%;
    right: 13%;
    width: 46px;
    height: 46px;
    text-align: center;
    line-height: 44px;
    font-size: 22px;
    z-index: 11111;
    color: #ebd8b0;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(6, 17, 33, 0.75);
    border: 1px solid rgba(235, 216, 176, 0.45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 18px rgba(235, 216, 176, 0.22);
    transition: all 0.3s ease;
  }

  #close:hover {
    color: #061121;
    background: linear-gradient(135deg, #ebd8b0 0%, #dfc89d 100%);
    border-color: rgba(235, 216, 176, 0.9);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 26px rgba(235, 216, 176, 0.5);
  }

  .location {
    display: block;
    width: 360px;
    /* Set the width to limit how much text is displayed */
    white-space: nowrap;
    /* Prevent text from wrapping */
    overflow: hidden;
    /* Hide overflowed text */
    text-overflow: ellipsis;
    /* Add "..." to the end */
    font-size: 14px;
  }

  /* vip listing */
  .container2 {
    max-width: 1270px;
    margin: 0 auto;
    padding: 30px 0px;
  }

  .slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    background-color: #1F2C2D;
    border-radius: 8px;
  }

  .slider-track {
    display: flex;
    width: 100%;
    animation: scroll 20s linear infinite;
  }

  .slider-container:hover .slider-track {
    animation-play-state: paused;
  }

  /* (property-card2 styled in core layout section) */

  .property-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
  }

  .property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }

  .property-card:hover .property-image {
    transform: scale(1.1);
  }

  .hover-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .property-card2:hover .hover-icons {
    opacity: 1;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
  }

  .icon-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
  }

  .icon-btn.favorite:hover {
    background-color: #ffebee;
  }

  .icon-btn.quickview:hover {
    background-color: #e3f2fd;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .property-price {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
  }

  .property-address {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 10px;
  }

  .property-details {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    font-size: 13px;
  }

  .property-details span {
    display: flex;
    align-items: center;
  }

  /* Quick view overlay */
  .quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .quickview-content {
    background-color: white;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    padding: 20px;
    position: relative;
  }

  .close-quickview {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
  }

  /* vip listing blured */
  .content-blur,
  .card-blur {
    filter: blur(8px);
    pointer-events: none;
  }

  .blurred-card {
    position: relative;
  }

  .property-inner {
    margin-top: -20px;
  }

  .blurred-card .blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    pointer-events: all;
    border-radius: 8px;
    /* match card's rounding if any */
  }

  .blur-overlay2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at center, rgba(6, 17, 33, 0.35) 0%, rgba(6, 17, 33, 0.62) 100%);
    gap: 1.1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    border-radius: 20px;
    z-index: 5;
    /* Sits ABOVE the blurred card — its own content stays sharp */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .blur-overlay2 p {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    color: #ebd8b0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 0, 0, 0.6);
  }

  /* ---- Premium "Unlock FSBO & Foreclosure" panel ---- */
  .fsbo-lock-panel {
    width: 100%;
    max-width: 315px;
    background: linear-gradient(165deg, rgba(14, 25, 45, 0.97) 0%, rgba(8, 15, 29, 0.98) 100%);
    border: 1px solid rgba(235, 216, 176, 0.30);
    border-radius: 22px;
    padding: 20px 16px 15px;
    text-align: center;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(235, 216, 176, 0.10),
        inset 0 1px 0 rgba(235, 216, 176, 0.14);
  }

  .fsbo-lock-iconwrap {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
  }

  .fsbo-lock-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 25%, rgba(235, 216, 176, 0.18), rgba(6, 17, 33, 0.92) 72%);
    border: 1.5px solid rgba(235, 216, 176, 0.75);
    box-shadow: 0 0 18px rgba(235, 216, 176, 0.30), inset 0 0 12px rgba(235, 216, 176, 0.12);
  }

  .fsbo-lock-circle i {
    font-size: 20px;
    color: #ebd8b0;
    text-shadow: 0 0 10px rgba(235, 216, 176, 0.6);
  }

  .fsbo-spark {
    position: absolute;
    color: #ebd8b0;
    text-shadow: 0 0 6px rgba(235, 216, 176, 0.8);
    animation: fsboTwinkle 2.2s ease-in-out infinite;
    pointer-events: none;
    line-height: 1;
  }
  .fsbo-spark.s1 { top: -4px; right: -16px; font-size: 13px; }
  .fsbo-spark.s2 { top: 18px; right: -26px; font-size: 8px; animation-delay: .55s; }
  .fsbo-spark.s3 { bottom: -2px; left: -18px; font-size: 10px; animation-delay: 1.1s; }
  .fsbo-spark.s4 { top: -10px; left: -10px; font-size: 8px; animation-delay: 1.65s; }

  @keyframes fsboTwinkle {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.15); }
  }

  .fsbo-lock-title {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
  }

  .fsbo-lock-title span {
    color: #ebd8b0;
    text-shadow: 0 0 14px rgba(235, 216, 176, 0.35);
  }

  .fsbo-lock-sub {
    margin: 0 0 13px;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65) !important;
    text-shadow: none !important;
  }

  .fsbo-lock-features {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-bottom: 14px;
  }

  .fsbo-lock-feature {
    flex: 1 1 0;
    background: rgba(235, 216, 176, 0.06);
    border: 1px solid rgba(235, 216, 176, 0.18);
    border-radius: 12px;
    padding: 9px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
  }

  .fsbo-lock-feature i {
    font-size: 13px;
    color: #ebd8b0;
  }

  .fsbo-lock-feature span {
    font-size: 9.5px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
  }

  .fsbo-lock-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #ebd8b0 55%, #d4af37 100%);
    color: #0b1120 !important;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 22px rgba(235, 216, 176, 0.30);
    transition: all 0.25s ease;
  }

  .fsbo-lock-btn i {
    color: #0b1120 !important;
    font-size: 12px;
  }

  .fsbo-lock-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: unlock-shimmer 3s infinite;
  }

  .fsbo-lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 30px rgba(235, 216, 176, 0.5);
  }

  .fsbo-lock-foot {
    margin: 10px 0 0;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    text-shadow: none !important;
  }

  .fsbo-lock-foot i {
    color: rgba(235, 216, 176, 0.7);
    margin-right: 4px;
    font-size: 10px;
  }

  /* Dark golden premium "Buy plan / Unlock" button — sits crisply above the card */
  .btn-unlock-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    overflow: hidden;
    color: #ebd8b0 !important;
    background: linear-gradient(135deg, #1a1408 0%, #2e2410 45%, #3d2f12 100%);
    border: 1px solid rgba(235, 216, 176, 0.55);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(235, 216, 176, 0.28),
        inset 0 1px 0 rgba(235, 216, 176, 0.30),
        inset 0 0 14px rgba(235, 216, 176, 0.10);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Golden shimmer sweep */
  .btn-unlock-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
        rgba(235, 216, 176, 0) 0%,
        rgba(235, 216, 176, 0.45) 50%,
        rgba(235, 216, 176, 0) 100%);
    transform: skewX(-20deg);
    animation: unlock-shimmer 3s infinite;
  }
  @keyframes unlock-shimmer {
    0% { left: -120%; }
    60% { left: 200%; }
    100% { left: 200%; }
  }

  .btn-unlock-premium:hover {
    transform: translateY(-2px) scale(1.03);
    color: #f7e6c4 !important;
    border-color: rgba(235, 216, 176, 0.9);
    background: linear-gradient(135deg, #241a0a 0%, #3c2f13 45%, #4d3c17 100%);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.6),
        0 0 32px rgba(235, 216, 176, 0.45),
        inset 0 1px 0 rgba(235, 216, 176, 0.4),
        inset 0 0 18px rgba(235, 216, 176, 0.16);
  }
  .btn-unlock-premium i { color: #ebd8b0 !important; }


  .three-part {
    display: flex;
    gap: 1rem;
  }

  @media(max-width:640px) {



    .vipCard__mainWrapper {
      display: grid !important;
      grid-template-columns: repeat(1, 1fr);
      gap: 10px;
      width: 92% !important;
    }

    .container2 {
      padding: 30px 20px;
    }

    .wg-filter .form-title {
      flex-direction: column;
      padding: 0px 10px !important;
      /* padding: 0px 0px !important; */
    }

    .addressfil,
    .propertyType,
    .modefil {
      width: 100% !important;
    }

    .wg-filter .wd-search-form {
      top: 100% !important;
      margin-top: 20px !important;
    }

    .find-home2 {
      top: 0 !important;
      left: 20% !important;
      width: 215px !important;
    }


    #autocomplete {
      width: 400px;
    }

    #mode {
      width: 100%;
    }

    .three-part {
      display: flex;
      gap: 2rem;
      flex-direction: column;
    }

    #addressFieldWrapper {
      width: 100% !important;
    }
  }

  .find-home2 {
    display: none;
    position: absolute;
    top: 10%;
    /* left: 85%; */
  }

  input::placeholder {
    color: #FFF !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    padding-left: 10px;
  }

  .counter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Arial, sans-serif;
    justify-content: space-evenly;
  }

  .click {
    font-size: 37px;
    color: #FFF;
    cursor: pointer;
  }

  .counter-container {
    width: 100%;
  }

  .counter-container input {
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
    color: #FFF;
    font-size: 20px;
  }

  @media (min-width: 641px) and (max-width: 1023px) {

  }

  @media(max-width:640px) {
    .click {
      font-size: 33px !important;
      background: #4a85cf;
      padding: 8px 12px;
      border-radius: 3px;
    }

    .counter-container input {
      width: 60% !important;
      font-size: 16px !important;
    }

    #reset {
      font-size: 18px;
      line-height: 28px;
      margin: 8px 0px !important;
    }

    .mv {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

    .wg-filter .form-title .wrap-btn {
      justify-content: space-evenly !important;
    }

    .wd-search-form {
      padding: 35px 20px !important;
    }

    .mo1 {
      padding: 0px !important;
    }
  }

  .nice-select>.list .option {
    color: #b1aeae !important;
  }

  .mv {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }



  .priceLable {
    color: white;
    font-size: 16px;
  }





  /* min-max range style */
  .minMaxPriceSele_mainWrapper {
    width: 100%;
    padding: 25px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
  }

  #minMaxPriceSele_mainWrapper2 {
    display: none;
  }

  .sliderTrack {
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: #d4d4d4;
    margin: 15px 0px;
    /* background: linear-gradient(360deg, rgba(102, 126, 234, 1) 0%, rgba(255, 0, 0, 1) 100%); */
    background: linear-gradient(20deg, rgba(102, 126, 234, 1) 0%, rgba(255, 0, 0, 1) 100%);
  }

  .bgSlider2 {
    background: linear-gradient(20deg, rgba(102, 126, 234, 1) 0%, rgba(255, 0, 0, 1) 100%);
  }

  .minMax_stepsWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
  }

  .minMaxPriceSele_mainWrapper {
    width: 100% !important;
  }

  .minMaxPriceSele_mainWrapper .sliderTrackAndLable_Wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .minMaxPriceSele_mainWrapper .sliderTrack {
    width: 100%;
    height: 10px;
    margin: 0px !important;
  }

  .minMaxPriceSele_mainWrapper .minMax_stepsWrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: auto;
  }

  #maxPriceInput,
  #maxPriceInputRent {
    /* writing-mode: vertical-rl; */
    width: 100%;
    height: 24px;
    left: 0%;
    transform: rotate(180deg);
    top: 26%;

  }

  .box-select {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .group-select {
    padding: 30px 0px;
    width: 100%;
  }

  .minMaxPriceSele_mainWrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  }

  .minMaxPriceSele_mainWrapper input[type="range"] {
    position: absolute;
    width: 100%;
    height: 25px;
    appearance: none;
    background: none;
    pointer-events: none;
    top: 53%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .minMaxPriceSele_mainWrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  }

  .landSize_mainWrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;

  }

  .landSize_mainWrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  }

  .landSize_mainWrapper input[type="range"] {
    position: absolute;
    width: 98%;
    height: 25px;
    appearance: none;
    background: none;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .landSize_mainWrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  }

  .sliderTrackAndLable_Wrapper {
    display: flex;
    flex-direction: column;
  }

  .wd-search-form {
    display: flex !important;
    gap: 10px;
  }

  /* price range slider */
  @media(max-width:640px) {
    .wd-search-form {
      flex-direction: column;
      padding: 30px 10px !important;
    }

    .minMaxPriceSele_mainWrapper {
      width: 100% !important;
    }

    .minMaxPriceSele_mainWrapper .sliderTrackAndLable_Wrapper {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .minMaxPriceSele_mainWrapper .sliderTrack {
      width: 100%;
      height: 10px;
      margin: 0px !important;
      background: linear-gradient(20deg, rgba(102, 126, 234, 1) 0%, rgba(255, 0, 0, 1) 100%);
    }

    .minMaxPriceSele_mainWrapper .minMax_stepsWrapper {
      flex-direction: row;
      gap: 0px;
      height: auto;
    }

    .minMaxPriceSele_mainWrapper .minMax_stepsWrapper p {
      font-size: 11px;
      writing-mode: sideways-rl;
      line-height: -30px;
      transform: rotate(309deg);
    }

    #maxPriceInput,
    #maxPriceInputRent {
      writing-mode: horizontal-tb;
      width: 100%;
      height: 24px;
      left: .5%;
      transform: none;
      top: 33%;
    }
  }

  /* price range slider */
  .tiffany-search {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 30px 0;
  }

  @media(max-width:640px) {
    .maxPriceInputSlider {
      transform: rotate(180deg) !important;
    }
  }

  .wg-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .wg-filter .wd-search-form {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #1F2C2D;
    border-radius: 10px;
    z-index: 100;
    display: none;
    /* max-width: 1260px; */
    max-width: 1380px;
    width: 100%;
  }

  .wg-filter .wd-search-form.show {
    display: flex !important;
    flex-direction: column;
  }

  .wg-filter .widget-content-inner {
    position: relative;
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
  }

  .wg-filter .form-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ── Desktop: compact, evenly aligned filter row ──────────
     Replaces the old `space-around` spread (which left large,
     uneven gaps between controls) with a tight, left-packed bar.
     The address field grows to absorb the slack and every control
     shares a single 52px height for clean vertical alignment. */
  @media (min-width: 769px) {
    .wg-filter .form-title {
      justify-content: flex-start !important;
      gap: 12px !important;
      row-gap: 12px !important;
      /* 1320px + 20px side padding = same content column as the
         .tf-container that holds "Property Listings" and the cards,
         so the address field, heading and grid all share one left edge */
      padding: 0 20px !important;
      max-width: 1320px !important;
      margin: 0 auto !important;
    }

    /* Breadcrumb → search bar in one short step (the theme leaves 50px) */
    .flat-title {
      margin-bottom: 20px !important;
    }

    /* Address field flexes to fill the row */
    .wg-filter .form-title #addressFieldWrapper {
      flex: 1 1 260px !important;
      width: auto !important;
      min-width: 220px !important;
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
    }
    .wg-filter .form-title #addressFieldWrapper .addressfil {
      width: 100% !important;
      height: 52px !important;
      padding: 0 22px !important;
      box-sizing: border-box !important;
    }

    /* Fixed-width selects/dropdowns: don't grow, share one height,
       trimmed a touch narrower so the whole bar reads as compact */
    .wg-filter .form-title .propertyType,
    .wg-filter .form-title .modefil {
      flex: 0 0 auto !important;
      height: 52px !important;
    }
    .wg-filter .form-title .propertyType[style*="152"] { width: 140px !important; }
    /* Widened from 220/210 for the mode-carrying labels: at Lexend 15px the
       longest defaults measure 225px ("Property Type to Rent-to-Own") and
       257px ("Property Sub Type to Rent-to-Own"), against 32px of horizontal
       padding. At the old widths both ellipsised, and the pills are
       `text-overflow: ellipsis`, so the breakage would have been silent.
       .form-title is flex-wrap:wrap, so below ~1000px a pill drops to the next
       row rather than overflowing the bar. */
    /* Connected Property Type + Sub Type Pill Pair: stays together and never splits */
    .wg-filter .form-title .hb-type-pill-group {
      display: inline-flex !important;
      align-items: center !important;
      flex-wrap: nowrap !important;
      flex: 0 0 auto !important;
      height: 52px !important;
      border-radius: 30px !important;
      background: rgba(6, 17, 33, 0.85) !important;
      border: 1.5px solid rgba(235, 216, 176, 0.45) !important;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(235, 216, 176, 0.1) !important;
      position: relative !important;
      box-sizing: border-box !important;
      padding: 0 !important;
      transition: all 0.25s ease !important;
    }

    .wg-filter .form-title .hb-type-pill-group:focus-within {
      border-color: rgba(235, 216, 176, 0.85) !important;
      box-shadow: 0 0 16px rgba(235, 216, 176, 0.25) !important;
    }

    .wg-filter .form-title .hb-type-pill-group .hb-pill-half {
      position: relative !important;
      height: 100% !important;
      display: flex !important;
      align-items: center !important;
    }

    .wg-filter .form-title .hb-type-pill-group .hb-pill-left {
      width: 250px !important;
    }

    .wg-filter .form-title .hb-type-pill-group .hb-pill-right {
      width: 265px !important;
    }

    .wg-filter .form-title .hb-type-pill-group .dropdown-btn {
      width: 100% !important;
      height: 52px !important;
      background: transparent !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      color: #eaf1f7 !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      padding: 0 16px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      cursor: pointer !important;
      gap: 6px !important;
    }

    .wg-filter .form-title .hb-type-pill-group .hb-pill-left .dropdown-btn {
      border-radius: 28px 0 0 28px !important;
    }

    .wg-filter .form-title .hb-type-pill-group .hb-pill-right .dropdown-btn {
      border-radius: 0 28px 28px 0 !important;
    }

    .wg-filter .form-title .hb-type-pill-group .dropdown-btn:hover {
      background: rgba(235, 216, 176, 0.08) !important;
    }

    .wg-filter .form-title .hb-type-divider {
      width: 1px !important;
      height: 28px !important;
      background: rgba(235, 216, 176, 0.3) !important;
      flex: 0 0 1px !important;
    }

    .wg-filter .form-title .hb-type-pill-group .dropdown-list {
      top: calc(100% + 8px) !important;
      min-width: 260px !important;
    }

    /* Vertically center the text in every control at the shared 52px */
    .wg-filter .form-title #mode {
      height: 52px !important;
      padding: 0 16px !important;
    }
    .wg-filter .form-title .dropdown-btn {
      height: 52px !important;
      padding: 0 16px !important;
      display: flex !important;
      align-items: center !important;
    }

    /* Button group sits flush at the row's end, same 52px height. When the
       bar wraps (below ~1220px) margin-left:auto keeps it on the right edge
       instead of stranding it at the left of its own line; on one line the
       address field has already taken the slack, so it changes nothing. */
    .wg-filter .form-title .wrap-btn {
      flex: 0 0 auto !important;
      gap: 10px !important;
      flex-wrap: nowrap !important;
      margin-left: auto !important;
    }
    .wg-filter .form-title .wrap-btn .btn-filter {
      height: 52px !important;
      width: 52px !important;
    }
    .wg-filter .form-title .wrap-btn .find-home {
      height: 52px !important;
      padding: 0 26px !important;
    }

    /* "Reset Filters" + "Search with Tiffany" read as one centred pair
       tucked under the bar, instead of two lone buttons on two rows */
    .tiffany-search {
      gap: 12px;
      padding: 14px 20px 0 !important;
      max-width: 1320px;
      margin: 0 auto;
    }
    .tiffany-search #reset,
    .tiffany-search .tiffany-btn-premium {
      height: 46px !important;
      padding: 0 26px !important;
      margin: 0 !important;
      font-size: 12px !important;
      gap: 8px;
    }
    /* Reset is the secondary action: dark glass + gold edge, like Back and
       Sort by, so the gold Tiffany CTA stays the one that stands out */
    .tiffany-search #reset.premium-button-style {
      background: rgba(6, 17, 33, 0.6) !important;
      color: #ebd8b0 !important;
      border: 1px solid rgba(235, 216, 176, 0.4) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    }
    .tiffany-search #reset.premium-button-style i {
      color: #ebd8b0 !important;
    }
    .tiffany-search #reset.premium-button-style:hover {
      background: rgba(235, 216, 176, 0.12) !important;
      border-color: rgba(235, 216, 176, 0.8) !important;
      color: #ebd8b0 !important;
      box-shadow: 0 6px 20px rgba(235, 216, 176, 0.2) !important;
    }

    /* Results header: "Property Listings" and "Sort by" share ONE height
       (46px) and one top line. The h4's Bootstrap mt-5 used to push it
       15px below Sort by. */
    .section-property-layout {
      padding-top: 22px !important;
    }
    #see-result {
      margin-bottom: 18px !important;
    }
    #see-result h4 {
      height: 46px !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }
    #see-result h4.mt-5 {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }
    #see-result .nice-select.list-sort {
      height: 46px !important;
    }

    /* Cards share the bar's left and right edges instead of sitting 20px
       inside them. Scoped past the unconditional #sortresult padding rule. */
    .tab-content #sortresult {
      padding: 4px 0 20px !important;
    }

    /* The address/select/dropdown pills carry a heavy gray *inset* (neumorphic)
       shadow that puffs them up so they LOOK taller than the flat gold buttons,
       even though all are 52px. Replace it with a clean dark-glass edge so the
       whole bar reads as one uniform height. */
    .wg-filter .form-title .input-effect {
      border: 1px solid rgba(235, 216, 176, 0.32) !important;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30) !important;
      background-color: rgba(6, 17, 33, 0.80) !important;
    }
    .wg-filter .form-title .input-effect:hover,
    .wg-filter .form-title .input-effect:focus {
      border: 1px solid rgba(235, 216, 176, 0.65) !important;
      background:
        rgba(14, 30, 55, 0.90) !important;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36), 0 0 14px rgba(235, 216, 176, 0.18) !important;
    }
  }

  @media(max-width:640px) {
    .box-house .content .location {
      white-space: normal !important;
    }
  }









  #customValInput_Buy {
    display: none;
    width: 90px;
    padding: 6px 12px;
    background: #333742;
    border-radius: 10px;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
  }

  .showSeletedValue_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .showSeletedValue_wrapper input {
    /* width:90px; */
    padding: 8px 12px;
    background: rgba(6, 17, 33, 0.72);
    border: 1px solid rgba(235, 216, 176, 0.18);
    border-radius: 10px;
    outline: none;
    color: #eaf1f7;
    font-size: 14px;
  }
  .showSeletedValue_wrapper input::placeholder {
    color: #cbd5e1;
  }

  @media(max-width:640px) {
    .minMax_stepsWrapper {
      display: none !important;
    }

    .sliderTrackAndLable_Wrapper .sliderTrack {
      display: none !important;
    }

    .sliderTrackAndLable_Wrapper input[type="range"] {
      display: none !important;
    }

    .showSeletedValue_wrapper {
      flex-direction: column;
      gap: 20px
    }

    .showSeletedValue_wrapper input,
    .showSeletedValue_wrapper div {
      width: 98%;
      margin: 0 auto;
    }

    .showSeletedValue_wrapper input {

      margin: 10px auto;
    }
  }

  .slider-container {
    position: relative;
    width: 100%;
    /* padding: 60px 0 40px; */
  }

  .slider-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
  }

  .slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(20deg,
        rgba(102, 126, 234, 1) 0%,
        rgba(255, 0, 0, 1) 100%);
    /* background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); */
    border-radius: 4px;
  }


  .slider-thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    top: 27%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.1s;
    z-index: 10;
  }

  .slider-thumb2 {
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    top: 28%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.1s;
    z-index: 10;
  }

  .slider-thumb:active {
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .slider-thumb.min {
    border-color: #667eea;
  }

  .slider-thumb.max {
    border-color: #764ba2;
  }

  .slider-labels {
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .slider-label {
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    padding: 4px 8px;
    background: transparent;
    border-radius: 5px;
    transition: all 0.2s;
  }

  .slider-label:hover {
    color: #667eea;
    font-weight: bold;
  }

  .slider-label.active {
    background: #DC3545;
    color: #fff !important;
    font-weight: bold;
  }

  .label {
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    background: transparent;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all 0.2s;
  }

  .label.active {
    background: #DC3545;
    color: #fff !important;
    font-weight: bold;
  }


  .value-box {
    text-align: center;
    flex: 1;
  }

  .value-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .value-amount {
    font-size: 24px;
    font-weight: bold;
    color: #333;
  }

  .value-box.min .value-amount {
    color: #667eea;
  }

  .value-box.max .value-amount {
    color: #764ba2;
  }

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

    h1 {
      font-size: 22px;
    }

    .label {
      font-size: 9px;
    }

    .value-amount {
      font-size: 20px;
    }
  }

  @media(max-width:640px) {
    .slider-container {
      display: none !important;
    }

    .showSeletedValue_wrapper input {
      padding: 14px 12px !important;
      font-size: 18px;
    }
  }

  .filter-value {
    font-size: 20px !important;
    color: #eaf1f7 !important;
  }
  .filter-value::placeholder {
    color: #cbd5e1 !important;
  }

  .wd-search-form .group-select {
    margin-bottom: 0px !important;
  }

  /* multi select checkbox dropdown */
  .nice-select.multi-select {
    background-color: rgba(6, 17, 33, 0.72);
    border: 1px solid rgba(235, 216, 176, 0.18);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    padding: 14px 14px;
    min-height: 50px;
    display: flex;
    align-items: center;
  }

  .nice-select.multi-select .list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(14, 30, 55, 0.98);
    border: 1px solid rgba(235, 216, 176, 0.2);
    margin-top: 5px;
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
  }

  .nice-select.multi-select.open .list {
    display: block;
  }

  .nice-select.multi-select li {
    padding: 8px 12px;
  }

  .nice-select.multi-select li:hover {
    background: #3f4451;
  }

  .nice-select.multi-select label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* multi select checkbox dropdown */

  /* multi select property dropdown feature */
  .dropdown-box {
    position: relative;
    width: 100%;
    z-index: 1;
    /* create stacking context */
  }

  .dropdown-btn {
    width: 100%;
    height: 30px;
    border-radius: 15px;
    background: #333742;
    color: #fff;
    border: none;
    text-align: left;
    padding: 0 15px;
    cursor: pointer;
  }

  /* ===== Dropdown list ===== */
  .dropdown-list {
    position: absolute;
    width: 100%;
    max-height: 240px;
    overflow-x: hidden;
    background: #333742;
    border-radius: 12px;
    display: none;
    padding: 4px;
    z-index: 10;
    /* controlled z-index */
    top: 56px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.05);
  }

  .dropdown-list label {
    display: block;
    padding: 6px;
    cursor: pointer;
    font-size: 13px;
  }

  .dropdown-box.active .dropdown-list {
    display: block;
  }

  /* ================= MOBILE FIX ================= */
  @media (max-width: 640px) {

    /* Keep the list anchored to its own button. `position: static` here
       made the open list spill out of its fixed-height (55px) wrapper and
       paint over the Find Homes row with no z-index control. */
    .dropdown-box {
      position: relative;
    }

    /* Open dropdown floats above the rest of the filter bar and the
       content below it, like a native select. */
    .dropdown-box.active {
      z-index: 1002;
    }

    .dropdown-list {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      width: 100%;
      max-height: 260px;
      overflow-y: auto;
      margin-top: 0;
      z-index: 1002;
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    }

    .dropdown-btn,
    .input-effect,
    .nice-select {
      min-height: 55px !important;
      padding: 15px 20px !important;
      font-size: 16px !important;
      line-height: 1.5 !important;
    }
  }

  .input-effect {
    background-color: #404246;
    color: #FFF;
    font-size: 15px;
    font-weight: 400 !important;
    border: 2px solid transparent !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 6px 6px 12px rgb(204 183 183 / 71%), inset -6px -6px 12px rgb(103 106 109 / 42%);
  }

  .input-effect:hover,
  .input-effect:focus {
    border: 2px solid transparent;
    background:
      linear-gradient(#404246, #404246) padding-box,
      linear-gradient(135deg, #667eea 0%, #ff0000 100%) border-box !important;
    outline: none;
  }

  .child-item {
    position: relative;
    align-items: center;
    gap: 8px;
  }

  .parent-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .color-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    right: 5px;
  }

  .force-width {
    width: 300px !important;
  }

  /* multi select property dropdown feature */

  #addressFieldWrapper {
    width: 25%;
  }

  #parentList label:hover {
    box-shadow: inset 0px -5px 24px -3px #1E90FF;
    border-radius: 8px;
  }

  #childList label:hover {
    box-shadow: inset 0px -5px 24px -3px #1E90FF;
    border-radius: 8px;
  }


  /* new property card design style start */
  :root {
    --bg: #0a1a1f;
    --card: #122a30;
    --card-soft: #17363d;
    --primary: #2f8cff;
    --accent: #ff4d5a;
    --muted: #9fb3ba;
    --text: #e9f1f3;
    --chip: rgba(255, 255, 255, 0.12);
  }

  /* (body and property-card2 styled in core layout section) */

  /* Image */
  .card-image2 {
    position: relative;
    height: 210px;
  }

  .card-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
  }

  .image-overlay2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .55) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all .6s ease-in-out;
  }

  .property-card2:hover .image-overlay2 {
    opacity: 1;
  }


  /* Badges */
  .badges2 {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .badge2 {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 300;
    border-radius: 999px;
    background: var(--chip);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .badge2.primary {
    background: linear-gradient(135deg, #4aa3ff, var(--primary));
  }

  .badge2.danger {
    background: linear-gradient(135deg, #ff6b75, var(--accent));
  }

  /* Content */
  .card-body2 {
    padding: 18px 18px 20px;
  }

  .meta2 {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
  }

  .title2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: white !important;
  }

  /* ---------- PROVENANCE STRIP ----------
     An imported row has no photographs of its own. What the card shows is a
     Google Street View frame of the address, downloaded at publish and parked
     in propertyFile/ alongside genuine listing images — which is exactly why
     it has to say so on its face. Two separate claims, deliberately: what the
     picture IS, and what the listing IS NOT. */
  .hb-prov {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 6px 0 2px;
  }
  .hb-prov-off {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffd7da;
  }
  .hb-prov-off i { font-size: 10px; color: #ff8a94; flex: none; }
  /* The image credit, not a caption on the listing: it describes the
     photograph, so it stays visually subordinate to the claim above it. */
  .hb-prov-img {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    color: rgba(255, 255, 255, .62);
  }

  .badge2.offmarket {
    background: rgba(255, 77, 90, .18);
    border: 1px solid rgba(255, 77, 90, .55);
    color: #ffd7da;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
  }
  /* Two lines, not one clipped/overflowing one — "Buying/Rental Opportunity
     Off-Market Property" is too long for a single-line pill at any width
     that still fits beside the icon row. */
  .badge2.offmarket-2l {
    display: inline-block;
    line-height: 1.35;
    text-align: left;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .location2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
  }

  .features2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }

  .feature2 {
    background: rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
  }

  .feature2 strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 2px;
  }

  /* Footer */
  .card-footer2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .price2-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .price2 {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
  }

  .price2 .price2-period {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #8A9FB8 !important;
    letter-spacing: normal !important;
  }

  /* RentCast valuations, not asking prices: the label above the number says
     what kind of figure this is, the line below says where it came from. */
  .price2-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    color: rgba(235, 216, 176, 0.75);
  }

  .hb-price-disclaimer {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, .55);
    max-width: 260px;
  }

  /* PRICE MOVEMENT. Sits between the figure it qualifies and the provenance
     line that qualifies both, and is absent entirely on a listing that has
     never been re-priced -- see hb_price_change() in inc/property_views.php.

     DOWN IS GREEN AND UP IS GOLD, read from the buyer's side of the table:
     this feed is browsed by people looking to buy, and a cut is the good news.
     Colour is never the only carrier -- the arrow and the words "reduced" /
     "increased" say the same thing to anyone who cannot separate the two. */
  .hb-pricemove {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    margin-bottom: 2px;
  }

  .hb-pricemove-fig {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .2px;
    font-variant-numeric: tabular-nums;
  }

  .hb-pricemove-arrow {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
  }

  .hb-pricemove-pct {
    font-size: 13px;
    font-weight: 700;
    opacity: .95;
  }

  .hb-pricemove.is-down .hb-pricemove-fig { color: #22C55E !important; }
  .hb-pricemove.is-up   .hb-pricemove-fig { color: #F5A623 !important; }

  .hb-pricemove-when {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .1px;
    color: #8A9FB8;
  }

  .btn2 {
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    font-weight: 300;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #4aa3ff, var(--primary));
    box-shadow: 0 10px 25px rgba(47, 140, 255, .35);
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .btn2:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(47, 140, 255, .5);
  }

  @media (max-width: 640px) {
    .property-card2 {
      width: 100% !important;
      margin: 0 auto !important;
    }

    /* Image gets more visual weight on mobile */
    .card-image2 {
      height: 250px !important;
    }

    /* Compact body so the photo dominates */
    .card-body2 {
      padding: 10px 12px 12px !important;
    }
    .badges2 {
      margin-bottom: 6px !important;
    }
    .meta2 {
      font-size: 11px !important;
      margin-bottom: 5px !important;
    }
    .title2 {
      font-size: 16px !important;
      margin-bottom: 4px !important;
    }
    .location2 {
      font-size: 13px !important;
      margin-bottom: 10px !important;
    }
    .features2 {
      display: flex !important;
      flex-direction: row !important;
      gap: 6px !important;
      margin-bottom: 10px !important;
    }
    .feature2 {
      flex: 1 !important;
      padding: 7px 4px !important;
    }
    .card-footer2 {
      padding-top: 10px !important;
    }
    /* The footer is the tightest part of a phone-width card and the price
       itself has to keep its weight, so the badge gives up a point rather
       than pushing the View Details button onto its own line. */
    .hb-pricemove-fig {
      font-size: 13.5px !important;
    }
    .hb-pricemove-pct {
      font-size: 12px !important;
    }
    .hb-pricemove-when {
      font-size: 10.5px !important;
    }

    #sortresult {
      padding: 20px 0px 20px 0px !important;
    }

    .tf-grid-layout {
      gap: 15px;
      grid-template-columns: 1fr !important;
    }
  }

  /* Viewport-entry peek — image scales up 4% the first time it scrolls into view */
  .card-image2 img {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .card-image2.img-peek img {
    transform: scale(1.04);
  }

  .btn-icon {
    background: rgba(6, 17, 33, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(235, 216, 176, 0.35);
    border-radius: 50%;
    height: 38px;
    width: 38px;
    min-width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .btn-icon:hover,
  .btn-icon:active {
    background: rgba(235, 216, 176, 0.18);
    border-color: rgba(235, 216, 176, 0.8);
    transform: scale(1.1);
  }

  /* Gold icon color — overrides .gradient-text blue */
  .btn-icon i {
    font-size: 14px;
    color: #ebd8b0 !important;
  }

  /* Mobile: overlay always visible, pinned to bottom-right */
  @media (max-width: 768px) {
    .image-overlay2 {
      opacity: 1 !important;
      background: linear-gradient(
        to top,
        rgba(6, 17, 33, 0.70) 0%,
        rgba(6, 17, 33, 0.20) 45%,
        transparent 70%
      ) !important;
      align-items: flex-end !important;
      justify-content: flex-end !important;
      padding: 0 10px 10px 0 !important;
    }

    .list-btn {
      gap: 8px !important;
    }

    .btn-icon {
      height: 36px !important;
      width: 36px !important;
      min-width: 36px !important;
    }

    .btn-icon i {
      font-size: 13px !important;
    }
  }

  /* ===== Full-bleed image overlay card (image as full-card background) ===== */
  .property-card2.card-overlay {
    padding: 0 !important;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    /* THE CARD NO LONGER CLIPS ITS OWN CHILDREN.
       The four action icons sit 10px from the top of the card and their tooltip
       is drawn above them, which put it 14 of its 25 pixels outside the card —
       where .property-card2's overflow:hidden sliced it in half, leaving the
       grey stub you see on hover and none of the word.
       The clip is not what makes the card look right: the rounded corners come
       from border-radius, which already clips the background, and the photograph
       is clipped by .card-image2's own border-radius + overflow:hidden. So the
       only thing this was containing was the tooltip.
       isolation:isolate above keeps each card its own stacking context, and a
       card paints after the one before it in the grid, so a tooltip that reaches
       up into the previous card still lands on top of it. */
    overflow: visible !important;
  }

  /* Hide the dashed inner frame so the photo reads as one clean image */
  .property-card2.card-overlay::after {
    display: none !important;
  }

  /* Photo fills the entire card from top to bottom */
  .card-overlay .card-image2 {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }
  .card-overlay .card-image2 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
  }

  /* Keep the photo clear — only a light vignette up top for the chips,
     and a solid dark+blue background over the bottom ~30% behind the text */
  .card-overlay .card-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 20px;
    pointer-events: none;
    background:
      /* subtle dark navy glow rising from the bottom */
      linear-gradient(
        to bottom,
        rgba(18, 42, 78, 0.00) 55%,
        rgba(18, 42, 78, 0.20) 80%,
        rgba(22, 50, 92, 0.36) 100%
      ),
      /* dark readability fade (top vignette + bottom panel),
         with a slight uniform tint across the whole photo */
      linear-gradient(
        to bottom,
        rgba(6, 17, 33, 0.46) 0%,
        rgba(6, 17, 33, 0.26) 12%,
        rgba(6, 17, 33, 0.24) 28%,
        rgba(6, 17, 33, 0.24) 60%,
        rgba(6, 17, 33, 0.64) 72%,
        rgba(6, 17, 33, 0.97) 100%
      );
  }

  /* Content layer floats above the photo + gradient */
  .card-overlay .card-overlay-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px;
  }

  /* Top chips over the upper part of the image */
  .card-overlay .overlay-top .badges2 {
    width: 100%;
    margin-bottom: 0;
    align-items: flex-start;
  }
  .card-overlay .badges2-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .card-overlay .badges2-right {
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }

  /* Like / view / compare / favourite icons float over the photo, centered above the info */
  .card-overlay .overlay-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding: 6px 0 14px;
  }
  .card-overlay .overlay-actions .list-btn {
    display: flex;
    gap: 10px;
  }

  /* No background box — layered shadows give a soft dark halo so text stays
     readable on any photo without a visible border/panel */
  .card-overlay .overlay-bottom .meta2 {
    color: #e2ebf2;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.70),
      0 0 14px rgba(0, 0, 0, 0.55);
  }
  .card-overlay .overlay-bottom .title2 {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.95),
      0 2px 10px rgba(0, 0, 0, 0.80),
      0 0 18px rgba(0, 0, 0, 0.60);
  }
  .card-overlay .overlay-bottom .location2 {
    color: #dbe6ee;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.70),
      0 0 14px rgba(0, 0, 0, 0.55);
  }

  /* Feature boxes: dark glass so numbers stay readable on bright or dark photos */
  .card-overlay .features2 .feature2 {
    background: rgba(6, 17, 33, 0.55);
    border: 1px solid rgba(235, 216, 176, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .card-overlay .card-footer2 {
    border-top: 1px solid rgba(235, 216, 176, 0.20);
  }
  .card-overlay .price2 {
    color: #ffffff;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.95),
      0 2px 10px rgba(0, 0, 0, 0.80),
      0 0 18px rgba(0, 0, 0, 0.60);
  }
  .card-overlay .price2-label,
  .card-overlay .hb-price-disclaimer {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  }
  /* Over a photograph the badge needs the same lift the price gets, or a pale
     green figure lands on a pale roof and disappears. */
  .card-overlay .hb-pricemove-fig,
  .card-overlay .hb-pricemove-when {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.70);
  }

  /* WAS: "keep the photo dominant and full-bleed on mobile too" — it forced the
     card back to a 540px photo with the text over it, which is the layout the
     redesign below replaces. Left in place it would have fought that block on
     every phone and won or lost purely on source order, which is not a thing to
     leave to chance. The redesign carries its own narrow-screen rules. */

  /* ═══════════════════════════════════════════════════════════════════════
     REDESIGN — bigger photo, information underneath.

     Everything below overrides the full-bleed rules above rather than replacing
     them, so the two can be compared and the old look restored by deleting this
     block. Nothing here touches the eight view tiles (.hbv): those keep their
     own icons and behaviour exactly as they were.
     ═══════════════════════════════════════════════════════════════════════ */

  .property-card2.card-overlay {
    /* Was 520px to hold a full-bleed photo behind a column of text. The card is
       now sized by what is in it. */
    min-height: 0;
  }

  /* THE PHOTOGRAPH — a band across the top, not the whole card. Still absolute
     so the badges and the action icons can be pinned onto it without moving any
     markup into the image container. */
  .card-overlay .card-image2 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 252px !important;
    border-radius: 20px 20px 0 0 !important;
  }

  /* Only over the photo now, and much lighter: no copy sits on it any more, so
     the gradient is there to keep the badges legible and nothing else. */
  .card-overlay .card-overlay-gradient {
    top: 0;
    height: 252px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(to bottom,
        rgba(4, 11, 22, 0.62) 0%,
        rgba(4, 11, 22, 0.10) 34%,
        rgba(4, 11, 22, 0.00) 55%,
        rgba(4, 11, 22, 0.55) 100%) !important;
  }

  /* THE TEXT COLUMN CLEARS THE PHOTO WITH PADDING, NOT MARGIN.
     .card-overlay-content carries position:relative for its z-index, which makes
     it the containing block for every absolutely-positioned thing inside it —
     the badges, the action icons, the view count. Pushing it down with a margin
     therefore pushed THEM down too: they anchored to the top of the text column
     and landed on the tile strip instead of on the photograph.
     Padding keeps the box starting at the card's top edge, so top:12px is
     twelve pixels from the top of the photo, which is where it reads. */
  .card-overlay .card-overlay-content {
    padding: 252px 15px 15px !important;
    margin-top: 0;
  }

  /* ── pinned onto the photograph ─────────────────────────────────────── */

  .card-overlay .overlay-top {
    position: absolute;
    top: 12px;
    left: 13px;
    right: 13px;
    z-index: 6;
  }

  /* The view count leaves the top row and sits where a photo counter would, so
     the top-right corner belongs to the actions alone. */
  .card-overlay .overlay-top .badges2 {
    align-items: flex-start;
  }

  /* ...and the badges have to be TOLD that, because .overlay-actions is pinned
     over them rather than laid out beside them: it is a separate absolutely
     positioned sibling, so nothing about the badge row's own layout knows it
     is there.

     Left uncapped, .badges2-left takes the full inset width and the long
     provenance pill ("Buying Opportunity / Off-Market Property") runs straight
     underneath the four action icons. It only shows at narrow card widths —
     the grid is three columns, so a 1000px window gives a 311px card of which
     the icons take 170px — which is why it survives on a wide desktop and
     appears the moment the window is smaller or the badge text is longer.

     170px of icons (4 x 38px + 3 x 6px gaps) plus the 13px inset and a little
     air. Badges wrap inside what is left rather than sliding under. */
  .card-overlay .overlay-top .badges2-left {
    max-width: calc(100% - 186px);
  }
  .card-overlay .overlay-top .badges2-right {
    position: absolute;
    top: 196px;          /* 252 photo − 12 inset − chip height */
    left: 0;
  }

  .card-overlay .overlay-actions {
    position: absolute;
    top: 10px;
    right: 13px;
    left: auto;
    z-index: 6;
    margin: 0;
  }
  .card-overlay .overlay-actions .list-btn {
    gap: 6px !important;
  }
  /* Their tooltips open DOWNWARDS. The icons sit at the very top of the
     photo, and the site's .hover-tooltip opens upwards, which put "Compare"
     and the rest over the origin band above the photo. */
  .card-overlay .overlay-actions .hover-tooltip .tooltip {
    top: calc(100% + 8px);
    bottom: auto;
  }
  .card-overlay .overlay-actions .hover-tooltip .tooltip::before {
    top: -4px;
  }

  /* ── the column underneath, in the order the design asks for ────────── */

  .card-overlay .overlay-bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* DOM order is: trace, publisher, title, location, features, tiles, footer —
     identical in all four renderers. The design wants the tiles first and the
     two provenance lines last, under the price. */
  .card-overlay .overlay-bottom > .hbv          { order: 1; }
  .card-overlay .overlay-bottom > .title2       { order: 2; }
  .card-overlay .overlay-bottom > .location2    { order: 3; }
  .card-overlay .overlay-bottom > .features2    { order: 4; }
  .card-overlay .overlay-bottom > .card-footer2 { order: 5; }
  /* Publisher above trace: nth-child counts the raw DOM, where trace is first. */
  .card-overlay .overlay-bottom > .meta2:nth-child(2) { order: 6; }
  .card-overlay .overlay-bottom > .meta2:nth-child(1) { order: 7; }

  .card-overlay .overlay-bottom > .hbv { margin: 12px 0 12px; }

  .card-overlay .overlay-bottom .title2 {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin: 0 0 5px !important;
    text-shadow: none !important;
  }

  .card-overlay .overlay-bottom .location2 {
    font-size: 12.5px !important;
    color: rgba(255, 255, 255, 0.62) !important;
    margin: 0 0 11px !important;
    text-shadow: none !important;
  }

  /* The stat row reads as figures on a card now, not chips over a photograph. */
  .card-overlay .overlay-bottom .features2 {
    /* Flex, not a fixed three-column grid: the row now carries two, three or
       four stats depending on what the listing actually knows, and every one
       of them has to come out the same width. */
    display: flex !important;
    gap: 7px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .card-overlay .overlay-bottom .feature2 {
    flex: 1 1 0;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 4px !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(235, 216, 176, 0.14);
    font-size: 10.5px !important;
    color: rgba(255, 255, 255, 0.58) !important;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
  }
  .card-overlay .overlay-bottom .feature2 strong {
    display: block;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 0;
  }

  .card-overlay .overlay-bottom .card-footer2 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(235, 216, 176, 0.14) !important;
  }
  .card-overlay .overlay-bottom .price2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
  }
  /* The redesigned card puts its text on the card's own ground, so the lift
     above is not merely unnecessary here, it muddies the figure. */
  .card-overlay .overlay-bottom .hb-pricemove-fig,
  .card-overlay .overlay-bottom .hb-pricemove-when {
    text-shadow: none !important;
  }

  /* The two provenance lines: quiet, and last. */
  .card-overlay .overlay-bottom .meta2 {
    font-size: 10.5px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.42) !important;
    margin: 0 !important;
    text-shadow: none !important;
  }
  .card-overlay .overlay-bottom > .meta2:nth-child(2) { margin-top: 12px !important; }

  /* The tile strip is on the card's own ground now, not floating over a
     photograph, so it no longer needs a plate of its own. */
  .card-overlay .overlay-bottom .hbv-card {
    background: transparent;
    border: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  @media (max-width: 991px) {
    .card-overlay .card-image2,
    .card-overlay .card-overlay-gradient { height: 232px !important; }
    .card-overlay .card-overlay-content  { padding-top: 232px !important; }
    .card-overlay .overlay-top .badges2-right { top: 176px; }
  }

  /* new property card design style end */

  /* ── Filter (sliders) button — golden on all screens ─── */
  .wg-filter .form-title .btn-filter {
    background: linear-gradient(135deg, #ebd8b0 0%, #c9a96e 100%) !important;
    border: 1px solid rgba(235, 216, 176, 0.55) !important;
    border-radius: 16px !important;
    box-shadow:
      0 4px 18px rgba(235, 216, 176, 0.22),
      3px 4px 0 rgba(195, 145, 35, 0.32) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.25s ease !important;
    /* dark icon color on the gold button so the sliders icon stays visible */
    color: #061121 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .wg-filter .form-title .btn-filter .icons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
  }
  .wg-filter .form-title .btn-filter:hover {
    background: linear-gradient(135deg, #f3e4c2 0%, #d4b87a 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow:
      0 6px 22px rgba(235, 216, 176, 0.36),
      3px 5px 0 rgba(195, 145, 35, 0.44) !important;
    color: #061121 !important;
  }
  /* SVG inherits the button color via currentColor — keep an explicit dark fallback */
  .wg-filter .form-title .btn-filter svg path {
    stroke: currentColor !important;
  }

  /* ── Golden button shared base ───────────────────────── */
  .find-home.premium-button-blue,
  #reset.premium-button-style {
    background: linear-gradient(135deg, #ebd8b0 0%, #c9a96e 100%) !important;
    color: #061121 !important;
    border: 1px solid rgba(235, 216, 176, 0.45) !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    box-shadow:
      0 4px 20px rgba(235, 216, 176, 0.28),
      3px 4px 0 rgba(195, 145, 35, 0.36) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
  }
  .find-home.premium-button-blue i,
  #reset.premium-button-style i {
    color: #061121 !important;
  }
  .find-home.premium-button-blue:hover,
  #reset.premium-button-style:hover {
    background: linear-gradient(135deg, #f3e4c2 0%, #d4b87a 100%) !important;
    color: #061121 !important;
    transform: translateY(-2px) !important;
    box-shadow:
      0 6px 24px rgba(235, 216, 176, 0.42),
      3px 5px 0 rgba(195, 145, 35, 0.48) !important;
  }

  .tf-grid-layout {
    gap: 24px !important;
  }

  #sortresult {
    padding: 20px !important;
  }

  /* EQUAL COLUMNS, WHATEVER IS IN THEM.
     The grid is repeat(3, 1fr), and a 1fr track never shrinks below the
     min-content of what sits in it. The off-market card has none to speak of;
     the Housbe card has ~400px, mostly its Property Passport row (a nowrap
     line beside the Example button). So wherever a third of the row is
     narrower than that — about 1200-1290px wide, or any browser zoomed out —
     the Housbe card's column widened and squeezed the other two (401 / 355 /
     355 at 1200px), and on a phone the single column overflowed the screen.
     min-width: 0 takes the cards out of track sizing; the row inside already
     shrinks and ellipsizes, it simply never got the chance. Unscoped by width
     on purpose: the phone's 1fr column has the same problem. */
  #sortresult > * {
    min-width: 0;
  }

  /* Fix dropdown option visibility */
  select option {
    background-color: #061121;
    color: #FFF;
  }
  
  /* Aggressive mobile spacing fixes for top area */
  @media (max-width: 768px) {
    .flat-title {
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }
    .flat-title .col-lg-12 {
      margin-top: 10px !important; /* Overrides inline 30px */
      margin-bottom: 0 !important;
    }
    .main-content {
      padding-top: 5px !important;
    }
    .wg-filter .form-title {
      padding: 10px 20px !important; /* Reduces inline padding and overall gap */
      flex-direction: column;
      gap: 10px !important;
    }
    #addressFieldWrapper {
      width: 100% !important;
      margin-top: 0 !important;
    }
    .wd-search-form {
      padding: 15px 10px !important; /* Overrides padding: 30px 10px */
    }
    .tiffany-search {
      height: auto !important;
      padding: 20px 0 10px 0 !important; /* Replaces the 20vh height causing massive gaps */
    }
    .section-property-layout {
      padding-top: 10px !important;
    }
    #see-result h4.mt-5 {
      margin-top: 5px !important; /* Overrides bootstrap mt-5 */
      margin-bottom: 5px !important;
    }
  }

  /* ── Mobile premium styling ─────────────────────────────── */
  @media (max-width: 768px) {

    /* Filter (hamburger) button — dark glass + gold border */
    .wg-filter .form-title .btn-filter {
      background: rgba(6, 17, 33, 0.82) !important;
      border: 1.5px solid rgba(235, 216, 176, 0.55) !important;
      border-radius: 16px !important;
      box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(235, 216, 176, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      /* gold icon on the dark-glass mobile button */
      color: #ebd8b0 !important;
      padding: 12px 14px !important;
      transition: all 0.25s ease !important;
    }

    .wg-filter .form-title .btn-filter:active {
      background: rgba(235, 216, 176, 0.12) !important;
      border-color: rgba(235, 216, 176, 0.9) !important;
      transform: scale(0.96);
      color: #ebd8b0 !important;
    }

    /* Gold strokes on the filter SVG icon (inherits currentColor) */
    .wg-filter .form-title .btn-filter svg path {
      stroke: currentColor !important;
    }

    /* FIND HOMES button — gold gradient on mobile */
    .premium-button-blue {
      background: linear-gradient(135deg, #ebd8b0 0%, #c9a96e 100%) !important;
      color: #061121 !important;
      box-shadow:
        0 4px 20px rgba(235, 216, 176, 0.30),
        3px 4px 0 rgba(195, 145, 35, 0.38) !important;
    }

    .premium-button-blue i,
    .premium-button-blue .icon-MagnifyingGlass {
      color: #061121 !important;
    }

    /* Sort dropdown — gold text */
    .nice-select.list-sort {
      background: rgba(6, 17, 33, 0.82) !important;
      border: 1.5px solid rgba(235, 216, 176, 0.40) !important;
      border-radius: 30px !important;
    }

    .nice-select.list-sort .current,
    .nice-select.list-sort .current i {
      color: #ebd8b0 !important;
    }

    /* "Property Listings" heading — gold gradient text */
    #see-result h4 {
      background: linear-gradient(90deg, #ebd8b0 0%, #f7d86a 50%, #dfc89d 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: 700;
    }
  }

  /* ════════════════════════════════════════════════════════════
     Filters modal — premium responsive refinement
     (placed last so it wins the cascade)
     ════════════════════════════════════════════════════════════ */

  /* Premium glass panel for the whole filter modal */
  .wg-filter .wd-search-form {
    background: linear-gradient(165deg, rgba(14, 30, 55, 0.97) 0%, rgba(6, 17, 33, 0.99) 100%) !important;
    border: 1px solid rgba(235, 216, 176, 0.25) !important;
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.6),
      0 0 28px rgba(235, 216, 176, 0.12) !important;
    border-radius: 20px !important;
    padding: 22px 20px 70px !important;
    gap: 14px !important;
  }

  /* Selects/counters inside the modal share the dark-gold glass pill look,
     with a consistent compact height */
  .wd-search-form .box-select > .nice-select {
    background: rgba(6, 17, 33, 0.72) !important;
    border: 1px solid rgba(235, 216, 176, 0.18) !important;
    border-radius: 12px !important;
    width: 100%;
    min-height: 48px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .wd-search-form .box-select > .nice-select:hover {
    border-color: rgba(235, 216, 176, 0.5) !important;
    box-shadow: 0 0 12px rgba(235, 216, 176, 0.16) !important;
  }
  .wd-search-form .box-select > .nice-select > select {
    height: 46px !important;
    line-height: 46px !important;
  }

  /* Make the option groups a clean responsive grid */
  .wd-search-form .group-select {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px !important;
    padding: 4px 0 !important;
  }
  .wd-search-form .three-part {
    gap: 12px !important;
  }

  /* Tighten the price-range block spacing */
  .wd-search-form .minMaxPriceSele_mainWrapper {
    padding: 6px 0 !important;
  }
  .wd-search-form .showSeletedValue_wrapper input {
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  /* ── Counter (+/-) — premium dark-gold circular buttons ── */
  .counter-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    min-height: 46px !important;
  }
  .counter-container .click {
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    user-select: none !important;
    color: #061121 !important;
    background: linear-gradient(135deg, #ebd8b0 0%, #c9a96e 100%) !important;
    border: 1px solid rgba(235, 216, 176, 0.6) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(235, 216, 176, 0.22) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    /* override old mobile blue box */
    padding: 0 !important;
  }
  .counter-container .click:hover {
    transform: scale(1.1) !important;
    background: linear-gradient(135deg, #f3e4c2 0%, #d4b87a 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 18px rgba(235, 216, 176, 0.35) !important;
  }
  .counter-container .click:active {
    transform: scale(0.94) !important;
  }
  .counter-container input {
    width: 100% !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 15px !important;
    /* hide number spinners — the +/- buttons control it */
    -moz-appearance: textfield;
  }
  .counter-container input::-webkit-outer-spin-button,
  .counter-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  .counter-container input::placeholder {
    color: #cbd5e1 !important;
    font-size: 13px !important;
  }

  /* Mobile: single clean column, compact tap targets */
  @media (max-width: 640px) {
    .wg-filter .wd-search-form {
      padding: 16px 12px 24px !important;
      gap: 10px !important;
      width: calc(100% - 24px) !important;
      max-width: calc(100% - 24px) !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
    }
    .wd-search-form .group-select {
      grid-template-columns: 1fr !important;
      gap: 10px !important;
      padding: 2px 0 !important;
    }
    .wd-search-form .three-part {
      flex-direction: column !important;
      gap: 10px !important;
    }
    .wd-search-form .box-select > .nice-select {
      min-height: 50px !important;
    }
    .wd-search-form .priceLable {
      margin-bottom: 4px !important;
    }
    /* keep the premium circular +/- on mobile too (overrides old blue box) */
    .counter-container {
      min-height: 48px !important;
    }
    .counter-container .click {
      width: 34px !important;
      height: 34px !important;
      font-size: 20px !important;
      background: linear-gradient(135deg, #ebd8b0 0%, #c9a96e 100%) !important;
      border-radius: 50% !important;
      padding: 0 !important;
    }
    .counter-container input {
      width: 100% !important;
      font-size: 15px !important;
    }
  }

  /* ════════════════════════════════════════════════════════════
     Find Homes button — force GOLDEN over the blue base in styles.css
     (.premium-button-blue sets #1E90FF !important; this beats it on
      specificity AND source order)
     ════════════════════════════════════════════════════════════ */
  button.premium-button-style.premium-button-blue.find-home,
  button.find-home.premium-button-blue {
    background: linear-gradient(135deg, #ebd8b0 0%, #c9a96e 100%) !important;
    color: #061121 !important;
    border: 1px solid rgba(235, 216, 176, 0.55) !important;
    border-radius: 50px !important;
    box-shadow:
      0 4px 20px rgba(235, 216, 176, 0.3),
      3px 4px 0 rgba(195, 145, 35, 0.36) !important;
  }
  button.premium-button-style.premium-button-blue.find-home:hover,
  button.find-home.premium-button-blue:hover {
    background: linear-gradient(135deg, #f3e4c2 0%, #d4b87a 100%) !important;
    color: #061121 !important;
    transform: translateY(-2px) !important;
    box-shadow:
      0 6px 24px rgba(235, 216, 176, 0.45),
      3px 5px 0 rgba(195, 145, 35, 0.48) !important;
  }
  /* Dark, visible magnifying-glass icon on the gold button */
  button.premium-button-style.premium-button-blue.find-home i,
  button.find-home.premium-button-blue i,
  button.find-home.premium-button-blue .fa-magnifying-glass,
  button.find-home.premium-button-blue svg path,
  button.find-home.premium-button-blue svg circle {
    color: #061121 !important;
    stroke: #061121 !important;
    opacity: 1 !important;
  }

  /* Keep the Find Homes button inside its row and centered */
  .wg-filter .form-title .wrap-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .wg-filter .form-title .wrap-btn .find-home {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: nowrap;
  }

  @media (max-width: 640px) {
    .wg-filter .form-title .wrap-btn {
      width: 100% !important;
      justify-content: center !important;
      gap: 12px !important;
    }
    .wg-filter .form-title .wrap-btn .find-home {
      flex: 1 1 auto !important;
      width: auto !important;
      justify-content: center !important;
      padding: 14px 22px !important;
    }
    .wg-filter .form-title .wrap-btn .btn-filter {
      flex: 0 0 auto !important;
    }
  }

  /* ── Find Homes (modal) button — stop it overflowing on mobile ──
     The base rules set position:absolute; left:20%; width:215px which
     pushes it off the right edge. Make it a normal, contained block. */
  .wd-search-form .box-select .find-home2 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 8px auto 0 !important;
  }
  .wd-search-form .box-select:has(.find-home2) {
    width: 100% !important;
    justify-content: center !important;
  }

  @media (max-width: 640px) {
    .wd-search-form .box-select .find-home2 {
      position: static !important;
      left: auto !important;
      top: auto !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 4px 0 0 !important;
      padding: 15px 18px !important;
      box-sizing: border-box !important;
    }
  }

  /* ════════════════════════════════════════════════════════════
     Mobile filter panel — stacked full-width pill layout
     (matches the mobile design mock; last block so it wins the cascade)
     ════════════════════════════════════════════════════════════ */
  .mobile-filter-actions {
    display: none;
  }

  @media (max-width: 768px) {

    /* The desktop Reset Filters button is redundant on mobile — the FILTERS /
       RESET pills replace it. #reset stays in the DOM (display:none) because
       the mobile Reset pill triggers it programmatically via .click() */
    .tiffany-search #reset {
      display: none !important;
    }

    /* ── Top row: FILTERS + RESET FILTERS side by side ── */
    .mobile-filter-actions {
      display: flex !important;
      width: 100%;
      gap: 12px;
    }

    .mob-pill-btn {
      flex: 1 1 0;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 9px;
      height: 44px !important;
      padding: 0 14px !important;
      background: rgba(6, 17, 33, 0.82) !important;
      border: 1.5px solid rgba(235, 216, 176, 0.55) !important;
      border-radius: 30px !important;
      color: #ebd8b0 !important;
      font-size: 12px !important;
      line-height: 1 !important;
      font-weight: 700 !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 14px rgba(235, 216, 176, 0.10);
      transition: all 0.25s ease;
    }

    .mob-pill-btn svg {
      width: 16px !important;
      height: 16px !important;
    }

    .mob-pill-btn svg {
      flex: 0 0 auto;
    }

    .mob-pill-btn:active {
      background: rgba(235, 216, 176, 0.12) !important;
      border-color: rgba(235, 216, 176, 0.9) !important;
      transform: scale(0.97);
    }

    /* ── One clean column: every control full-width, same height,
          evenly spaced. Compact rhythm so the first property card
          peeks above the fold and invites scrolling ── */
    .wg-filter .form-title {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 13px !important;
      row-gap: 13px !important;
      padding: 4px 16px 0 !important;
    }

    .wg-filter .form-title #addressFieldWrapper,
    .wg-filter .form-title .propertyType,
    .wg-filter .form-title .modefil,
    .wg-filter .form-title .hb-type-pill-group {
      width: 100% !important;
      min-width: 0 !important;
      height: 54px !important;
      margin: 0 !important;
      position: relative !important;
    }

    .wg-filter .form-title .hb-type-pill-group {
      display: flex !important;
      flex-wrap: nowrap !important;
    }

    .wg-filter .form-title .hb-type-pill-group .hb-pill-half {
      flex: 1 1 50% !important;
      width: 50% !important;
      min-width: 0 !important;
      position: relative !important;
    }

    .wg-filter .form-title .hb-type-pill-group .dropdown-btn {
      font-size: 12px !important;
      padding: 0 8px !important;
      height: 54px !important;
      text-align: center !important;
      justify-content: center !important;
    }

    .wg-filter .form-title .hb-type-pill-group .dropdown-list {
      min-width: 220px !important;
      width: 100% !important;
    }

    .wg-filter .form-title #addressFieldWrapper {
      padding: 0 !important;
      border: 0 !important;
    }

    .wg-filter .form-title .addressfil {
      width: 100% !important;
      height: 54px !important;
      padding: 0 20px 0 48px !important;
      box-sizing: border-box !important;
      border-radius: 30px !important;
    }

    .wg-filter .form-title #mode {
      height: 54px !important;
      padding: 0 44px 0 48px !important;
      box-sizing: border-box !important;
      border-radius: 30px !important;
    }

    .wg-filter .form-title .dropdown-box {
      height: 100% !important;
    }

    .wg-filter .form-title .dropdown-btn {
      width: 100% !important;
      height: 54px !important;
      padding: 0 44px 0 48px !important;
      display: flex !important;
      align-items: center !important;
      border-radius: 30px !important;
      text-align: left !important;
      font-size: 14px !important;
      box-sizing: border-box !important;
    }

    /* Leading icons on each pill (pin / house / building / list) */
    .wg-filter .form-title #addressFieldWrapper::before,
    .wg-filter .form-title .propertyType::before,
    .wg-filter .form-title .modefil::before {
      content: '';
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 17px;
      height: 17px;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      pointer-events: none;
      z-index: 3;
      opacity: 0.9;
    }

    /* Address — location pin */
    .wg-filter .form-title #addressFieldWrapper::before {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ebd8b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    }

    /* Buy / Rent — house */
    .wg-filter .form-title .propertyType[style*="152"]::before {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ebd8b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
    }

    /* Property type — building */
    .wg-filter .form-title .propertyType[style*="270"]::before {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ebd8b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='1'/%3E%3Cline x1='8' y1='7' x2='10' y2='7'/%3E%3Cline x1='14' y1='7' x2='16' y2='7'/%3E%3Cline x1='8' y1='11' x2='10' y2='11'/%3E%3Cline x1='14' y1='11' x2='16' y2='11'/%3E%3Cpath d='M10 22v-5h4v5'/%3E%3C/svg%3E");
    }

    /* Sub property type — list */
    .wg-filter .form-title .modefil::before {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ebd8b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
    }

    /* Dropdown pill text: single line with ellipsis so long selection
       summaries ("3 sub-property type(s) selected") stay inside the pill */
    .wg-filter .form-title .dropdown-btn {
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      display: block !important;
      line-height: 54px !important;
    }

    /* JS appends its own fa-angle-down inside the button — hide it,
       the pill already draws one consistent gold chevron via ::after */
    .wg-filter .form-title .dropdown-btn .fa-angle-down {
      display: none !important;
    }

    /* ── Open dropdown panel: solid, above everything ──
       Each .dropdown-box is its own z-index:1 stacking context, so an
       open parent list painted UNDER the sub-property pill below it.
       Lift the active box above all sibling pills. */
    .wg-filter .form-title .dropdown-box.active {
      z-index: 2000 !important;
    }

    .wg-filter .form-title .dropdown-list {
      position: absolute !important;
      top: calc(100% + 8px) !important;
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      max-height: 280px !important;
      overflow-y: auto !important;
      z-index: 2000 !important;
      /* solid panel — kills the translucent input-effect background and
         its light inset shadow that let the pills behind bleed through */
      background: #0b1a30 !important;
      border: 1px solid rgba(235, 216, 176, 0.4) !important;
      border-radius: 16px !important;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7) !important;
      padding: 8px !important;
    }

    .wg-filter .form-title .dropdown-list label {
      color: #eaf1f7 !important;
      padding: 11px 10px !important;
      font-size: 14px !important;
      border-radius: 10px !important;
    }

    /* Gold chevron on the right of every dropdown pill */
    .wg-filter .form-title .propertyType::after,
    .wg-filter .form-title .modefil::after {
      content: '';
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ebd8b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
      pointer-events: none;
      z-index: 3;
      opacity: 0.9;
    }

    /* ── FIND HOMES: single full-width gold pill; the old square
          hamburger button is replaced by the FILTERS pill above ── */
    .wg-filter .form-title .wrap-btn {
      width: 100% !important;
      margin: 2px 0 0 !important;
      gap: 0 !important;
    }

    .wg-filter .form-title .wrap-btn .btn-filter {
      display: none !important;
    }

    .wg-filter .form-title .wrap-btn .find-home {
      flex: 1 1 100% !important;
      width: 100% !important;
      height: 54px !important;
      justify-content: center !important;
      padding: 0 22px !important;
      border-radius: 30px !important;
      font-weight: 700 !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
    }

    /* ── SEARCH WITH TIFFANY ASSISTANT: full-width outlined pill ── */
    .tiffany-search {
      padding: 15px 16px 6px !important;
    }

    .tiffany-search .tiffany-btn-premium {
      width: 100% !important;
      margin: 0 !important;
      height: 52px !important;
      padding: 0 16px !important;
      background: rgba(6, 17, 33, 0.82) !important;
      color: #ebd8b0 !important;
      border: 1.5px solid rgba(235, 216, 176, 0.55) !important;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 14px rgba(235, 216, 176, 0.10) !important;
      font-size: 12px !important;
      letter-spacing: 1px !important;
    }

    /* ── Results header: PROPERTY LISTINGS + SORT BY share one row ── */
    #see-result {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 10px !important;
      padding: 0 4px !important;
    }

    #see-result h4 {
      order: 1;
      flex: 1 1 0 !important;
      width: auto !important;
      min-width: 0 !important;
      margin: 0 !important;
      height: 48px !important;
      justify-content: center !important;
      padding: 0 12px !important;
      font-size: 12px !important;
      letter-spacing: 0.5px !important;
      text-transform: uppercase !important;
      white-space: nowrap;
    }

    #see-result .right {
      order: 2;
      flex: 1 1 0 !important;
      min-width: 0 !important;
      display: flex !important;
    }

    #see-result .right .nice-select.list-sort {
      width: 100% !important;
      height: 48px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 12px !important;
    }

    #see-result .right .nice-select.list-sort .current {
      font-size: 12px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      text-transform: uppercase !important;
      white-space: nowrap;
    }

    #see-result #sorttext {
      order: 3;
      width: 100% !important;
      margin: 0 !important;
      font-size: 13px !important;
      text-align: center !important;
    }

    /* ── Keep the listings high enough that the first card still
          peeks above the fold, with a touch of breathing room ── */
    .section-property-layout {
      padding-top: 4px !important;
    }

    #sortresult {
      padding: 14px 16px 20px !important;
    }
  }

  /* ── "Property Listings" pill is now a quick listing-type menu ── */
  #see-result {
    position: relative;
  }

  #see-result h4#listingsMenuBtn {
    cursor: pointer;
    user-select: none;
  }

  #see-result h4#listingsMenuBtn:hover {
    border-color: rgba(235, 216, 176, 0.8) !important;
    box-shadow: 0 6px 20px rgba(235, 216, 176, 0.2) !important;
  }

  /* Backdrop overlay for listings modal */
  .listings-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .listings-menu-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .listings-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 380px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    background:
      radial-gradient(ellipse at top left, rgba(235, 216, 176, 0.06) 0%, transparent 55%),
      radial-gradient(ellipse at bottom right, rgba(43, 93, 153, 0.08) 0%, transparent 55%),
      linear-gradient(165deg, rgba(18, 22, 32, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
    border: 1px solid rgba(235, 216, 176, 0.22);
    border-radius: 20px;
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.7),
      0 0 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 10px 10px 14px;
    z-index: 2999;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .listings-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }

  /* Each menu row */
  .listings-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    color: #c8d0dc;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 14px;
    margin-bottom: 4px;
    position: relative;
  }
  .listings-menu-item:last-child {
    margin-bottom: 0;
  }

  .listings-menu-item:hover {
    background: rgba(235, 216, 176, 0.06);
    border-color: rgba(235, 216, 176, 0.12);
    color: #eaf1f7;
  }

  .listings-menu-item.is-active {
    background: rgba(180, 142, 255, 0.06);
    border-color: rgba(180, 142, 255, 0.18);
    color: #eaf1f7;
  }

  /* Number badge */
  .lm-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(180, 142, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #b48eff;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  .listings-menu-item.is-active .lm-number {
    border-color: #b48eff;
    background: rgba(180, 142, 255, 0.12);
    box-shadow: 0 0 10px rgba(180, 142, 255, 0.2);
  }

  /* Icon */
  .lm-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #8892a4;
    font-size: 17px;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  .listings-menu-item.is-active .lm-icon {
    color: #ebd8b0;
    background: rgba(235, 216, 176, 0.10);
  }

  /* Text block */
  .lm-text {
    flex: 1;
    min-width: 0;
  }
  .lm-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #eaf1f7;
    letter-spacing: 0.2px;
    line-height: 1.3;
  }
  .lm-desc {
    font-size: 13px;
    font-weight: 400;
    color: #6b7a8d;
    letter-spacing: 0.1px;
    margin-top: 2px;
  }

  /* Checkmark */
  .lm-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    font-size: 16px;
    transition: all 0.2s ease;
  }
  .listings-menu-item.is-active .lm-check {
    color: #b48eff;
  }
  /* Set on the icon itself: a theme icon rule was painting every tick white,
     so all rows looked selected at once. Only the active row shows one. */
  .listings-menu .lm-check i {
    color: transparent !important;
  }
  .listings-menu .listings-menu-item.is-active .lm-check i {
    color: #b48eff !important;
  }

  /* Responsive */
  @media (max-width: 480px) {
    .listings-menu-item {
      padding: 11px 10px;
      gap: 10px;
    }
    .lm-number {
      width: 28px;
      height: 28px;
      font-size: 11px;
    }
    .lm-icon {
      width: 34px;
      height: 34px;
      font-size: 15px;
    }
    .lm-title {
      font-size: 14px;
    }
    .lm-desc {
      font-size: 12px;
    }
  }

  /* ── Done button pinned at the bottom of the property-type dropdowns ── */
  .dropdown-done-wrap {
    position: sticky;
    bottom: -4px;
    margin: 6px -4px -4px;
    padding: 10px 12px 12px;
    background: linear-gradient(180deg, rgba(11, 26, 48, 0) 0%, #0b1a30 35%);
  }

  .dropdown-done-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border: 1px solid rgba(235, 216, 176, 0.55);
    border-radius: 24px;
    background: linear-gradient(135deg, #ebd8b0 0%, #c9a96e 100%);
    color: #061121;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
  }

  .dropdown-done-btn:hover,
  .dropdown-done-btn:active {
    background: linear-gradient(135deg, #f3e4c2 0%, #d4b87a 100%);
    transform: translateY(-1px);
  }

  /* ═══════════════════════════════════════════════════════════
     SORT BY — Premium Modal Panel
     ═══════════════════════════════════════════════════════════ */

  /* Trigger button */
  .sort-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 17, 33, 0.82);
    color: #ebd8b0;
    border: 1.5px solid rgba(235, 216, 176, 0.45);
    border-radius: 30px;
    padding: 0 20px;
    height: 46px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
  }
  .sort-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right,
      rgba(255,255,255,0)   0%,
      rgba(255,255,255,0.3) 50%,
      rgba(255,255,255,0)   100%);
    transform: skewX(-20deg);
    animation: back-shimmer 2.5s infinite;
  }
  .sort-trigger-btn:hover {
    background: rgba(235, 216, 176, 0.12);
    border-color: rgba(235, 216, 176, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235,216,176,0.2);
  }
  .sort-trigger-btn i {
    font-size: 14px;
    color: #ebd8b0;
  }

  /* Overlay backdrop */
  .sort-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .sort-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Modal panel */
  .sort-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 9999;
    width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    background:
      radial-gradient(ellipse at top left, rgba(235, 216, 176, 0.06) 0%, transparent 55%),
      radial-gradient(ellipse at bottom right, rgba(43, 93, 153, 0.08) 0%, transparent 55%),
      linear-gradient(165deg, rgba(18, 22, 32, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
    border: 1px solid rgba(235, 216, 176, 0.18);
    border-radius: 20px;
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.7),
      0 0 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', sans-serif;
  }
  .sort-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }

  /* Modal header */
  .sort-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(235, 216, 176, 0.10);
  }
  .sort-modal-header .sort-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #eaf1f7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }
  .sort-modal-header .sort-modal-title i {
    color: #ebd8b0;
    font-size: 16px;
  }
  .sort-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #8892a4;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .sort-modal-close:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
  }

  /* Section groups */
  .sort-section {
    padding: 16px 22px 12px;
  }
  .sort-section + .sort-section {
    border-top: 1px solid rgba(235, 216, 176, 0.08);
  }
  .sort-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #b48eff;
    margin-bottom: 12px;
  }
  .sort-section-label i {
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 142, 255, 0.12);
    border-radius: 8px;
    color: #b48eff;
  }

  /* Radio option rows */
  .sort-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .sort-option-row:hover {
    background: rgba(235, 216, 176, 0.06);
    border-color: rgba(235, 216, 176, 0.12);
  }
  .sort-option-row.selected {
    background: rgba(180, 142, 255, 0.08);
    border-color: rgba(180, 142, 255, 0.20);
  }
  .sort-option-row .sort-opt-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sort-option-row .sort-opt-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #8892a4;
    font-size: 12px;
  }
  .sort-option-row.selected .sort-opt-icon {
    color: #b48eff;
    background: rgba(180, 142, 255, 0.12);
  }
  .sort-option-row .sort-opt-text {
    font-size: 14px;
    font-weight: 500;
    color: #c8d0dc;
    letter-spacing: 0.2px;
  }
  .sort-option-row.selected .sort-opt-text {
    color: #eaf1f7;
  }

  /* Custom radio circle */
  .sort-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .sort-option-row.selected .sort-radio {
    border-color: #b48eff;
    box-shadow: 0 0 10px rgba(180, 142, 255, 0.3);
  }
  .sort-option-row.selected .sort-radio::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b48eff;
    box-shadow: 0 0 6px rgba(180, 142, 255, 0.5);
  }

  /* Reset button */
  .sort-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 44px);
    margin: 6px 22px 20px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    color: #8892a4;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .sort-reset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #c8d0dc;
  }
  .sort-reset-btn i {
    font-size: 13px;
  }

  /* Mobile adjustments for sort modal */
  @media (max-width: 480px) {
    .sort-modal {
      width: calc(100% - 32px);
      max-width: 320px;
    }
    .sort-trigger-btn {
      height: 42px;
      padding: 0 14px;
      font-size: 11px;
    }
  }

