/**
 * HelenLai.sg - Consolidated Stylesheet
 * COMPILED AUTOMATICALLY from public/patches/styles/*.css
 * Token Optimization: Always edit targeted files in public/patches/styles/ instead of this compiled stylesheet!
 */

/* ============================================================================
 * STYLE MODULE: 01-viewer-and-sticky-bar.css
 * ============================================================================ */
/* Fullscreen image viewer: guarantee image fits viewport perfectly above thumbnails */
      div[role="dialog"][aria-label="Full screen image viewer"],
      div[role="dialog"][aria-label="全屏图片浏览器"] {
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
      }
      div[role="dialog"][aria-label="Full screen image viewer"] img[title*="zoom"],
      div[role="dialog"][aria-label="Full screen image viewer"] .shadow-2xl,
      div[role="dialog"][aria-label="全屏图片浏览器"] img[title*="缩放"],
      div[role="dialog"][aria-label="全屏图片浏览器"] .shadow-2xl {
        max-height: calc(100dvh - 175px) !important;
        max-width: min(100%, calc(100vw - 32px)) !important;
        object-fit: contain !important;
      }
      @media (min-width: 640px) {
        div[role="dialog"][aria-label="Full screen image viewer"] img[title*="zoom"],
        div[role="dialog"][aria-label="Full screen image viewer"] .shadow-2xl,
        div[role="dialog"][aria-label="全屏图片浏览器"] img[title*="缩放"],
        div[role="dialog"][aria-label="全屏图片浏览器"] .shadow-2xl {
          max-height: calc(100dvh - 190px) !important;
          max-width: min(100%, calc(100vw - 120px)) !important;
        }
      }
      /* Ensure root containers do not establish scrolling contexts that disable sticky elements */
      html, body, #root, #app-scroll-container {
        overflow-x: clip !important;
      }
      /* Ensure project gallery thumbnails do not show numeric order overlay */
      button.w-24.h-16 span.absolute.bottom-1.right-1,
      button[class*="w-24"][class*="h-16"] span.absolute.bottom-1.right-1 {
        display: none !important;
      }
      /* Fluid touch panning for horizontal card carousels */
      .category-slider-viewport {
        touch-action: pan-y !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-touch-callout: none !important;
      }
      .category-slider-track {
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-touch-callout: none !important;
      }
      .category-slider-item img {
        -webkit-user-drag: none !important;
        user-select: none !important;
        pointer-events: none !important;
      }
      /* Prevent card image vibration on hover via hardware acceleration and subpixel stability */
      [id^="project-card-"],
      [id^="project-card-"] > div {
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
      }
      [id^="project-card-"] img {
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        transform-style: preserve-3d;
      }
      /* Unified single frosted glass backdrop element */
      #unified-glass-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 46px !important;
        z-index: 45 !important;
        pointer-events: none !important;
        opacity: 0;
        background: rgba(246, 244, 238, 0.4) !important;
        background-color: rgba(246, 244, 238, 0.4) !important;
        -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
        backdrop-filter: blur(24px) saturate(190%) !important;
        border-bottom: 1px solid rgba(197, 166, 102, 0.5) !important;
        box-shadow: none !important;
        transition: opacity 0.15s ease !important;
      }
      #unified-glass-backdrop.is-active {
        opacity: 1 !important;
      }

      /* Top navigation header: background #f6f4ee matching page, golden line matching SINGAPORE NEW LAUNCH COLLECTION button (#c5a666/50) */
      #site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        height: 46px !important;
        background: #f6f4ee !important;
        background-color: #f6f4ee !important;
        border-bottom: 1px solid rgba(197, 166, 102, 0.5) !important;
        box-shadow: none !important;
        transition: background-color 0.15s ease, border-bottom-color 0.1s ease !important;
        pointer-events: none !important;
      }
      #site-header > * {
        pointer-events: auto !important;
      }
      #site-header.is-scrolled {
        background: transparent !important;
        background-color: transparent !important;
        border-bottom: none !important;
        border-bottom-width: 0 !important;
        border-bottom-color: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
      }
      /* When sticky bar touches top menu: seamless unified single frosted glass */
      #site-header.bar-touching {
        height: 46px !important;
        border-bottom: none !important;
        border-bottom-width: 0 !important;
        border-bottom-color: transparent !important;
        background: transparent !important;
        background-color: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
      }

      /* Sticky projects counter & sorting bar: background #f6f4ee identical to page background, NO borders or white line */
      #project-count-sort-bar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 46px !important;
        z-index: 50 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        outline: none !important;
        background: #f6f4ee !important;
        background-color: #f6f4ee !important;
        box-shadow: none !important;
        transition: background-color 0.15s ease !important;
      }
      /* When docked with top menu: transparent to reveal the single continuous frosted glass piece */
      #project-count-sort-bar.is-docked {
        z-index: 50 !important;
        top: 46px !important;
        background: transparent !important;
        background-color: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
      }
      /* Category Title ("Condo 71") + BOOK NOW / UPCOMING pill tabs:
         ALWAYS locked inline side-by-side on both mobile and desktop (never wrap separately) */
      #project-count-sort-bar div:has(> div[role="tablist"]),
      #project-count-sort-bar > div > div:first-child {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 0 !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
      }
      #project-count-sort-bar h3,
      #project-count-sort-bar div:has(> div[role="tablist"]) > h3,
      #project-count-sort-bar > div > div:first-child > h3,
      #project-count-sort-bar .category-title-text,
      #project-count-sort-bar .category-count-badge {
        display: none !important;
      }
      #project-count-sort-bar div[role="tablist"] {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin-left: 0 !important;
      }

      /* Responsive layout for sticky project counter & sorting bar:
         On mobile (< 768px):
           Row 1: Category Title ("Condo 71") inline with BOOK NOW / UPCOMING pill tabs at the top.
           Row 2: Map button on the left and "Most Viewed" sort dropdown on the right below.
         On desktop (>= 768px): Everything sits inline on one elegant row. */
      @media (max-width: 767px) {
        #project-count-sort-bar > div {
          display: flex !important;
          flex-direction: column !important;
          align-items: stretch !important;
          gap: 7px !important;
          padding-top: 7px !important;
          padding-bottom: 7px !important;
          width: 100% !important;
        }
        /* Row 1: Category Title ("Condo 71") + BOOK NOW / UPCOMING Pills Inline */
        #project-count-sort-bar > div > div:first-child {
          display: flex !important;
          align-items: center !important;
          gap: 10px !important;
          width: 100% !important;
          max-width: 100% !important;
          white-space: nowrap !important;
          flex-wrap: nowrap !important;
          overflow-x: auto !important;
          -webkit-overflow-scrolling: touch !important;
          margin: 0 !important;
          padding: 0 !important;
        }
        #project-count-sort-bar > div > div:first-child::-webkit-scrollbar {
          display: none !important;
          width: 0 !important;
          height: 0 !important;
        }
        #project-count-sort-bar div[role="tablist"]::-webkit-scrollbar {
          display: none !important;
          width: 0 !important;
          height: 0 !important;
        }
        /* Row 2: Map button on the left and Most Viewed sort dropdown on the right */
        #project-count-sort-bar #bar-actions-cluster {
          display: flex !important;
          align-items: center !important;
          justify-content: space-between !important;
          width: 100% !important;
          margin: 0 !important;
          padding: 0 !important;
          gap: 8px !important;
        }
        #project-count-sort-bar #sort-auto-dropdown {
          margin-left: auto !important;
          padding: 0 !important;
        }
        #sort-dropdown-trigger {
          font-size: 12.5px !important;
          font-weight: 500 !important;
          height: 36px !important;
          min-height: 36px !important;
          max-height: 36px !important;
          box-sizing: border-box !important;
          display: inline-flex !important;
          align-items: center !important;
          justify-content: center !important;
          padding: 0 4px !important;
          touch-action: manipulation !important;
        }
        #project-map-btn {
          font-size: 12px !important;
          height: 36px !important;
          min-height: 36px !important;
          max-height: 36px !important;
          box-sizing: border-box !important;
          display: inline-flex !important;
          align-items: center !important;
          justify-content: center !important;
          padding: 0 14px !important;
          gap: 6px !important;
          flex-shrink: 0 !important;
          touch-action: manipulation !important;
        }
      }
      /* Category / Region title & count in sticky bar replaced by ALL pill inside tablist */
      #project-count-sort-bar h3 {
        display: none !important;
      }
      /* Distance between category name and count (2 letter spaces = 8px) */
      #project-count-sort-bar h3 > span,
      #project-count-sort-bar h3 span.flex {
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 8px !important;
      }
      #project-count-sort-bar h3 > span > span:first-child {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #171717 !important;
        line-height: 1 !important;
        vertical-align: baseline !important;
      }
      /* Project count (69, 38) standardized to 12px for all, aligned on exact horizontal line */
      #project-count-sort-bar h3 > span > span:last-child {
        font-size: 12px !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        color: #525252 !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        vertical-align: baseline !important;
      }
      /* Pill tabs inside sticky bar: perfectly baseline-aligned words and numbers */
      #project-count-sort-bar div[role="tablist"] {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        border: 1px solid rgba(197, 166, 102, 0.55) !important;
        background-color: #faf8f4 !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        position: relative !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"] {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        font-weight: 600 !important;
        font-size: 11px !important;
        line-height: 1 !important;
        gap: 8px !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 9999px !important;
        padding: 0 14px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
        transition: background-color 0.18s ease, color 0.18s ease !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"] span,
      #project-count-sort-bar div[role="tablist"] button[role="tab"] span:first-child,
      #project-count-sort-bar div[role="tablist"] button[role="tab"] span:last-child {
        white-space: nowrap !important;
        vertical-align: middle !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="true"] {
        background-color: #8c6b2d !important;
        background: #8c6b2d !important;
        color: #ffffff !important;
        border-radius: 9999px !important;
        margin: -1px !important;
        border: 1px solid #8c6b2d !important;
        box-shadow: 0 1px 3px rgba(140, 107, 45, 0.22) !important;
        outline: none !important;
        position: relative !important;
        z-index: 2 !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"] span:first-child {
        line-height: 1 !important;
        vertical-align: baseline !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="true"] span:first-child {
        background-color: transparent !important;
        background: transparent !important;
        color: #ffffff !important;
      }
      /* NO background for 54 and 15 - standardized to 11px */
      #project-count-sort-bar div[role="tablist"] button[role="tab"] span:last-child,
      #project-count-sort-bar div[role="tablist"] button[role="tab"] span.font-mono {
        background-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        vertical-align: baseline !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="true"] span:last-child,
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="true"] span.font-mono {
        color: #ffffff !important;
        background-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"] {
        background-color: transparent !important;
        background: transparent !important;
        color: #404040 !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"] span:first-child {
        color: #404040 !important;
        background-color: transparent !important;
        background: transparent !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"]:hover {
        background-color: #f4efe4 !important;
        background: #f4efe4 !important;
        color: #8c6b2d !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"]:hover span {
        color: #8c6b2d !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"] span:last-child,
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"] span.font-mono {
        background-color: transparent !important;
        background: transparent !important;
        color: #525252 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
      }
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"]:hover span:last-child,
      #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="false"]:hover span.font-mono {
        color: #8c6b2d !important;
        background-color: transparent !important;
        background: transparent !important;
      }
      /* Remove inner rectangular border and boxed styling around sort dropdown */
      #project-count-sort-bar > div:last-child,
      #project-count-sort-bar div:has(#content-sort-select),
      #sort-auto-dropdown {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
      }
      /* Remove any browser focus outlines / blue borders on dropdown trigger */
      #sort-dropdown-trigger,
      #sort-dropdown-trigger:focus,
      #sort-dropdown-trigger:focus-visible,
      #sort-dropdown-trigger:active,
      .sort-auto-dropdown button,
      .sort-auto-dropdown button:focus,
      .sort-auto-dropdown button:focus-visible {
        color: #171717 !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-size: 12.5px !important;
        font-weight: 500 !important;
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        min-height: 35px !important;
        cursor: pointer !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
      }
      #sort-dropdown-trigger svg,
      .sort-auto-dropdown button svg {
        width: 13.5px !important;
        height: 13.5px !important;
        flex-shrink: 0 !important;
      }
      /* Auto drop-down behavior and auto-closing on selection */
      .sort-auto-dropdown {
        position: relative;
      }
      .sort-dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        transform: translateY(-4px) !important;
        transition: opacity 0.16s ease, transform 0.16s ease !important;
        pointer-events: none !important;
      }
      /* Open on .is-open or on hover WHEN NOT explicitly closed (.is-closed) */
      .sort-auto-dropdown.is-open:not(.is-closed) .sort-dropdown-menu,
      .sort-auto-dropdown:not(.is-closed):hover .sort-dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
      }
      /* Guaranteed closed when item is selected */
      .sort-auto-dropdown.is-closed .sort-dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
      }
      .sort-auto-dropdown.is-open:not(.is-closed) .sort-chevron,
      .sort-auto-dropdown:not(.is-closed):hover .sort-chevron {
        transform: rotate(180deg);
      }
      .sort-auto-dropdown.is-closed .sort-chevron {
        transform: rotate(0deg) !important;
      }

      /* Sort Dropdown Menu: Original warm background matching site theme */
      .sort-dropdown-menu {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
      }
      .sort-dropdown-menu > div,
      #sort-auto-dropdown .sort-dropdown-menu > div {
        background: #faf8f4 !important;
        background-color: #faf8f4 !important;
        opacity: 1 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border: 1px solid rgba(197, 166, 102, 0.35) !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
        overflow: hidden !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
      }



/* ============================================================================
 * STYLE MODULE: 02-dropdowns-and-menus.css
 * ============================================================================ */
      /* Dropdown & Popup Menus: Header menus (Region, New Launch, Guides, Quick Nav) */
      @media (min-width: 768px) {
        #site-header nav,
        #site-header nav > div,
        #site-header div:has(> #nav-item-property-quicknav-btn) {
          height: 46px !important;
          display: flex !important;
          align-items: center !important;
        }
        /* Make nav buttons fill the full 46px header height so cursor remains inside without gaps */
        #site-header nav > div > button,
        #nav-item-projects-dropdown-btn,
        #nav-item-region-dropdown-btn,
        #nav-item-info-dropdown-btn {
          height: 46px !important;
          display: inline-flex !important;
          align-items: center !important;
          padding-top: 0 !important;
          padding-bottom: 0 !important;
        }
      }
      @media (max-width: 767px) {
        #site-header nav {
          display: none !important;
        }
      }

      /* Seamless hover bridge: connects trigger button to dropdown menu across any diagonal/vertical movement */
      #site-header nav > div > div[class*="absolute"]::before,
      #site-header div[class*="animate-in"]::before,
      #site-header [role="menu"]::before {
        content: "" !important;
        position: absolute !important;
        top: -16px !important;
        left: -55px !important;
        right: -35px !important;
        height: 20px !important;
        background: transparent !important;
        pointer-events: auto !important;
        z-index: 10 !important;
      }

      #site-header .animate-in,
      #site-header [role="menu"],
      #site-header .absolute,
      #site-header div[class*="absolute"],
      #site-header div[class*="animate-in"],
      div:has(> #nav-item-property-quicknav-btn) > div,
      #nav-item-property-quicknav-btn + div {
        top: 46px !important;
        margin-top: 0 !important;
        z-index: 100005 !important;
        pointer-events: auto !important;
        background: #faf8f4 !important;
        background-color: #faf8f4 !important;
        opacity: 1 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border: 1px solid rgba(197, 166, 102, 0.35) !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
        overflow: hidden !important;
        animation: none !important;
        transform: none !important;
      }

      /* NEW LAUNCH dropdown menu: shifted left such that 'C' of Condominium is below 'N' of NEW */
      #site-header #nav-item-projects-dropdown-btn + div,
      #site-header #nav-item-projects-dropdown-btn ~ div,
      #site-header div:has(> #nav-item-projects-dropdown-btn) > div[class*="absolute"],
      #site-header div:has(> #nav-item-projects-dropdown-btn) > div.animate-in {
        left: -39px !important;
        right: auto !important;
      }

      /* NEW LAUNCH (EN): intrinsic width + locked 27px gap between longest label ('t' in Development) and count ('2' in 24) */
      html:not([lang^="zh"]) #site-header #nav-item-projects-dropdown-btn + div,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-projects-dropdown-btn) > div[class*="absolute"],
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-projects-dropdown-btn) > div.animate-in {
        width: max-content !important;
        min-width: 0 !important;
        max-width: calc(100vw - 2rem) !important;
      }

      html:not([lang^="zh"]) #site-header #nav-item-projects-dropdown-btn + div button,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-projects-dropdown-btn) > div button,
      html:not([lang^="zh"]) #site-header #nav-item-projects-dropdown-btn + div span,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-projects-dropdown-btn) > div span {
        white-space: nowrap !important;
      }

      html:not([lang^="zh"]) #site-header #nav-item-projects-dropdown-btn + div button > span:last-child,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-projects-dropdown-btn) > div button > span:last-child {
        margin-left: 27px !important;
        flex-shrink: 0 !important;
      }

      /* REGION dropdown menu: shifted left such that 'C' of Core is below 'R' of Region */
      #site-header #nav-item-region-dropdown-btn + div,
      #site-header #nav-item-region-dropdown-btn ~ div,
      #site-header div:has(> #nav-item-region-dropdown-btn) > div[class*="absolute"],
      #site-header div:has(> #nav-item-region-dropdown-btn) > div.animate-in {
        left: -39px !important;
        right: auto !important;
      }

      /* REGION (EN): intrinsic width + locked 31px gap between longest label ('n' in Region / Region (OCR)) and count ('3' in 38) */
      html:not([lang^="zh"]) #site-header #nav-item-region-dropdown-btn + div,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-region-dropdown-btn) > div[class*="absolute"],
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-region-dropdown-btn) > div.animate-in {
        width: max-content !important;
        min-width: 0 !important;
        max-width: calc(100vw - 2rem) !important;
      }

      html:not([lang^="zh"]) #site-header #nav-item-region-dropdown-btn + div button,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-region-dropdown-btn) > div button,
      html:not([lang^="zh"]) #site-header #nav-item-region-dropdown-btn + div span,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-region-dropdown-btn) > div span {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      html:not([lang^="zh"]) #site-header #nav-item-region-dropdown-btn + div button > span:last-child,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-region-dropdown-btn) > div button > span:last-child {
        margin-left: 31px !important;
        flex-shrink: 0 !important;
      }

      /* GUIDES dropdown menu: shifted left such that 'P' of Purchase Timeline is below 'G' of GUIDES */
      #site-header #nav-item-info-dropdown-btn + div,
      #site-header #nav-item-info-dropdown-btn ~ div,
      #site-header div:has(> #nav-item-info-dropdown-btn) > div[class*="absolute"],
      #site-header div:has(> #nav-item-info-dropdown-btn) > div.animate-in {
        left: -39px !important;
        right: auto !important;
      }

      /* GUIDES (EN): intrinsic width + locked 40px right gap between longest label ('r' in Calculator) and inner right border */
      html:not([lang^="zh"]) #site-header #nav-item-info-dropdown-btn + div,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-info-dropdown-btn) > div[class*="absolute"],
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-info-dropdown-btn) > div.animate-in {
        width: max-content !important;
        min-width: 0 !important;
        max-width: calc(100vw - 2rem) !important;
      }

      html:not([lang^="zh"]) #site-header #nav-item-info-dropdown-btn + div button,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-info-dropdown-btn) > div button {
        padding-right: 40px !important;
        white-space: nowrap !important;
      }

      html:not([lang^="zh"]) #site-header #nav-item-info-dropdown-btn + div span,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-info-dropdown-btn) > div span {
        white-space: nowrap !important;
      }

      /* QUICK NAV dropdown menu (EN, both project detail & non-project 'Top'): intrinsic width + uniform 34px right gap */
      html:not([lang^="zh"]) #site-header #nav-item-property-quicknav-btn + div,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-property-quicknav-btn) > div[class*="absolute"],
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-property-quicknav-btn) > div.animate-in {
        width: max-content !important;
        min-width: 0 !important;
        max-width: calc(100vw - 2rem) !important;
      }

      html:not([lang^="zh"]) #site-header #nav-item-property-quicknav-btn + div button,
      html:not([lang^="zh"]) #site-header div:has(> #nav-item-property-quicknav-btn) > div button {
        padding-right: 34px !important;
        white-space: nowrap !important;
      }

      /* Filter Popovers & Scrollable Dropdowns (District, Developer, Bedrooms, PSF, etc.) */
      .luxury-dropdown-scrollbar,
      div.luxury-dropdown-scrollbar,
      div[style*="zIndex: 100005"],
      div[style*="z-index: 100005"],
      div[style*="z-index:100005"],
      div[style*="zIndex:100005"] {
        z-index: 100005 !important;
        pointer-events: auto !important;
        background: #faf8f4 !important;
        background-color: #faf8f4 !important;
        opacity: 1 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border: 1px solid rgba(197, 166, 102, 0.35) !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior-y: contain !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
      }

      .luxury-dropdown-scrollbar::-webkit-scrollbar {
        width: 6px !important;
        display: block !important;
      }
      .luxury-dropdown-scrollbar::-webkit-scrollbar-track {
        background: rgba(26, 26, 26, 0.05) !important;
        border-radius: 9999px !important;
      }
      .luxury-dropdown-scrollbar::-webkit-scrollbar-thumb {
        background: #8c6b2d !important;
        border-radius: 9999px !important;
      }
      .luxury-dropdown-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #705420 !important;
      }
      .luxury-dropdown-scrollbar {
        scrollbar-width: thin !important;
        scrollbar-color: #8c6b2d rgba(26, 26, 26, 0.05) !important;
      }

      /* Dropdown Menu Item Styling with Crisp Hover */
      .sort-dropdown-menu button,
      #site-header .animate-in a,
      #site-header [role="menu"] a,
      #site-header .absolute a,
      #site-header .animate-in button,
      #site-header [role="menu"] button,
      #site-header .absolute button,
      div:has(> #nav-item-property-quicknav-btn) > div button,
      #nav-item-property-quicknav-btn + div button {
        background: transparent !important;
        background-color: transparent !important;
        color: #262626 !important;
        font-weight: 500 !important;
        opacity: 1 !important;
        transition: background-color 0.15s ease, color 0.15s ease !important;
        outline: none !important;
      }
      .sort-dropdown-menu button:hover,
      #site-header .animate-in a:hover,
      #site-header [role="menu"] a:hover,
      #site-header .absolute a:hover,
      #site-header .animate-in button:hover,
      #site-header [role="menu"] button:hover,
      #site-header .absolute button:hover,
      div:has(> #nav-item-property-quicknav-btn) > div button:hover,
      #nav-item-property-quicknav-btn + div button:hover {
        background: #f4efe4 !important;
        background-color: #f4efe4 !important;
        color: #8c6b2d !important;
      }
      .sort-dropdown-menu button:hover svg,
      #site-header .animate-in a:hover svg,
      #site-header [role="menu"] a:hover svg,
      #site-header .absolute a:hover svg,
      #site-header .animate-in button:hover svg,
      #site-header [role="menu"] button:hover svg,
      #site-header .absolute button:hover svg,
      div:has(> #nav-item-property-quicknav-btn) > div button:hover svg,
      #nav-item-property-quicknav-btn + div button:hover svg {
        color: #8c6b2d !important;
        stroke: #8c6b2d !important;
      }
      .sort-dropdown-menu button:has(svg),
      .sort-dropdown-menu button.font-semibold {
        background: #f4efe4 !important;
        background-color: #f4efe4 !important;
        color: #8c6b2d !important;
        font-weight: 600 !important;
      }
      .sort-dropdown-menu button:has(svg) svg,
      .sort-dropdown-menu button.font-semibold svg {
        color: #8c6b2d !important;
        stroke: #8c6b2d !important;
      }
      #content-sort-select {
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        font-weight: 500 !important;
        color: #171717 !important;
      }
      /* Remove sticky project count and sort bar area on home (main) page */
      #app-scroll-container:has([class*="group/slider-container"]) #project-count-sort-bar,
      #app-scroll-container:has([class*="group/slider-container"]) #sort-auto-dropdown,
      #app-scroll-container:has([class*="group/slider-container"]) #content-sort-select {
        display: none !important;
      }

      /* Home Page Category Horizontal Sliders & Flush First-Card Alignment */
      .-mx-4 {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
      }
      @media (min-width: 640px) {
        .sm\:-mx-6 {
          margin-left: -1.5rem !important;
          margin-right: -1.5rem !important;
        }
      }
      @media (min-width: 1024px) {
        .lg\:-mx-10 {
          margin-left: -2.5rem !important;
          margin-right: -2.5rem !important;
        }
      }

      .no-scrollbar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
      }
      .no-scrollbar {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
      }

      /* Ensure scroll-snap start edge matches container padding */
      .snap-x {
        scroll-padding-left: 1rem !important;
      }
      @media (min-width: 640px) {
        .snap-x {
          scroll-padding-left: 1.5rem !important;
        }
      }
      @media (min-width: 1024px) {
        .snap-x {
          scroll-padding-left: 2.5rem !important;
        }
      }

      .snap-x > div > [id^="project-card-"] {
        height: 100% !important;
        min-height: 100% !important;
      }

      /* Home page category title links - clean text, NOT bold, baseline-aligned at 13.5px with uppercase pills */
      h3[data-cat-id],
      h3[data-cat-id] button,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3 button {
        cursor: pointer !important;
        text-decoration: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        color: #171717 !important;
        font-weight: 500 !important;
        font-size: 13.5px !important;
        line-height: 1 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 8px !important;
        transform: translateY(-0.5px) !important;
      }
      /* Distance between category name and count (e.g. m and 69 equivalent to G and 54) */
      h3[data-cat-id] button,
      div:has(> div[role="tablist"]) > h3 button {
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 8px !important;
      }
      .category-title-text {
        display: inline-block !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        vertical-align: baseline !important;
      }
      /* Project count (69 and remaining 5) set to 12px on home page */
      .category-count-badge {
        display: inline-block !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        line-height: 1 !important;
        color: #525252 !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        vertical-align: baseline !important;
      }
      h3[data-cat-id] .category-title-text,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3 .category-title-text {
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 13.5px !important;
      }
      h3[data-cat-id] .category-count-badge,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3 .category-count-badge {
        font-size: 12px !important;
        font-weight: 500 !important;
        color: #525252 !important;
        line-height: 1 !important;
      }
      h3[data-cat-id]:hover,
      h3[data-cat-id] button:hover,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3:hover,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3 button:hover,
      h3[data-cat-id]:hover .category-title-text,
      h3[data-cat-id] button:hover .category-title-text,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3:hover .category-title-text,
      div:not(#project-count-sort-bar):has(> div[role="tablist"]) > h3 button:hover .category-title-text {
        color: #8c6b2d !important;
        text-decoration: none !important;
      }
      h3[data-cat-id] svg,
      div:has(> div[role="tablist"]) > h3 svg {
        display: none !important;
      }



/* ============================================================================
 * STYLE MODULE: 03-home-sliders-and-cards.css
 * ============================================================================ */
      /* Project Card Titles (e.g. Amberwood At Holland): Correct Plus Jakarta Sans font */
      [id^="project-card-"] h3,
      [id*="project-card"] h3 {
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 1.125rem !important; /* 18px on mobile */
        line-height: 1.25 !important;
        font-weight: 700 !important;
        color: #8c6b2d !important;
      }
      @media (min-width: 640px) {
        [id^="project-card-"] h3,
        [id*="project-card"] h3 {
          font-size: 1.375rem !important; /* 22px on desktop, laptop & tablet */
        }
      }

      /* Home Page Category Launch Status Pills (BOOK NOW / UPCOMING) */
      div[role="tablist"] {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        border: 1px solid rgba(197, 166, 102, 0.55) !important;
        background-color: #faf8f4 !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        position: relative !important;
      }
      div[role="tablist"] button[role="tab"] {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-transform: uppercase !important;
        letter-spacing: 0.035em !important;
        font-weight: 600 !important;
        font-size: 11px !important;
        line-height: 1 !important;
        gap: 7px !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 9999px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
        transition: background-color 0.18s ease, color 0.18s ease !important;
      }
      div[role="tablist"] button[role="tab"]:last-child {
        padding-left: 11px !important;
        padding-right: 13px !important;
      }
      div[role="tablist"] button[role="tab"]:not(:last-child) {
        padding-left: 12px !important;
        padding-right: 12px !important;
      }
      div[role="tablist"] button[role="tab"] span,
      div[role="tablist"] button[role="tab"] span:first-child,
      div[role="tablist"] button[role="tab"] span:last-child {
        white-space: nowrap !important;
        vertical-align: middle !important;
      }
      /* Category title inside overarching pill (Home page only): sits on transparent background with NO distinct background color */
      div[role="tablist"] h3 {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        background-color: transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        height: 36px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
        gap: 7px !important;
      }
      div[role="tablist"] h3 button,
      div[role="tablist"] .home-category-title-pill,
      div[role="tablist"] button:not([role="tab"]) {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 9999px !important;
        padding: 0 10px 0 13px !important;
        margin: 0 !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transform: none !important;
        gap: 7px !important;
      }
      div[role="tablist"] h3:hover,
      div[role="tablist"] h3 button:hover,
      div[role="tablist"] .home-category-title-pill:hover,
      div[role="tablist"] button:not([role="tab"]):hover {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
      }
      div[role="tablist"] .category-title-text,
      div[role="tablist"] h3 .category-title-text,
      div[role="tablist"] h3 button .category-title-text,
      div[role="tablist"] .home-category-title-pill .category-title-text,
      div[role="tablist"] h3,
      div[role="tablist"] h3 button,
      div[role="tablist"] .home-category-title-pill {
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #171717 !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        cursor: pointer !important;
        transition: color 0.18s ease !important;
      }
      /* Scoped hover only on devices with pointer/mouse: mouseover word Condo turns gold (#8c6b2d), exactly like mouseover UPCOMING */
      @media (hover: hover) and (pointer: fine) {
        div[role="tablist"] h3:hover .category-title-text,
        div[role="tablist"] h3 button:hover .category-title-text,
        div[role="tablist"] .home-category-title-pill:hover .category-title-text,
        div[role="tablist"] button:hover .category-title-text,
        div[role="tablist"] .category-title-text:hover {
          color: #8c6b2d !important;
        }
      }
      /* On mobile and touch screens, always keep category title text dark #171717 */
      @media (hover: none), (pointer: coarse) {
        div[role="tablist"] .category-title-text,
        div[role="tablist"] h3 .category-title-text,
        div[role="tablist"] h3 button .category-title-text,
        div[role="tablist"] .home-category-title-pill .category-title-text,
        div[role="tablist"] h3:focus .category-title-text,
        div[role="tablist"] h3:active .category-title-text,
        div[role="tablist"] .home-category-title-pill:focus .category-title-text,
        div[role="tablist"] .home-category-title-pill:active .category-title-text {
          color: #171717 !important;
        }
      }
      div[role="tablist"] h3 .category-count-badge,
      div[role="tablist"] h3 button .category-count-badge,
      div[role="tablist"] .home-category-title-pill .category-count-badge {
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        color: #525252 !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
      }



      div[role="tablist"] button[role="tab"][aria-selected="false"] {
        background-color: transparent !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        color: #404040 !important;
      }
      /* Restrict background colors to active states: inactive tabs stay transparent on hover, only text color changes */
      div[role="tablist"] button[role="tab"][aria-selected="false"]:hover {
        background-color: transparent !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        color: #8c6b2d !important;
      }
      div[role="tablist"] button[role="tab"][aria-selected="false"]:hover span:first-child {
        color: #8c6b2d !important;
      }
      div[role="tablist"] button[role="tab"][aria-selected="false"] span:last-child,
      div[role="tablist"] button[role="tab"][aria-selected="false"]:hover span:last-child {
        background-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
      }
      div[role="tablist"] button[role="tab"][aria-selected="false"]:hover span:last-child {
        color: #8c6b2d !important;
      }
      div[role="tablist"] button[role="tab"][aria-selected="true"] {
        background-color: #8c6b2d !important;
        background: #8c6b2d !important;
        color: #ffffff !important;
        border-radius: 9999px !important;
        margin: -1px 0 !important;
        border: 1px solid #8c6b2d !important;
        box-shadow: 0 1px 3px rgba(140, 107, 45, 0.22) !important;
        outline: none !important;
        position: relative !important;
        z-index: 2 !important;
      }
      div[role="tablist"] button[role="tab"][aria-selected="true"] span:first-child {
        background-color: transparent !important;
        background: transparent !important;
        color: #ffffff !important;
      }
      /* NO background for 54 and 15 - standardized to 11px */
      div[role="tablist"] button[role="tab"] span:last-child,
      div[role="tablist"] button[role="tab"] span.font-mono,
      div[role="tablist"] button[role="tab"][aria-selected="true"] span:last-child,
      div[role="tablist"] button[role="tab"][aria-selected="true"] span.font-mono,
      div[role="tablist"] button[role="tab"][aria-selected="false"] span:last-child,
      div[role="tablist"] button[role="tab"][aria-selected="false"] span.font-mono {
        background-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
      }
      div[role="tablist"] button[role="tab"][aria-selected="true"] span:last-child,
      div[role="tablist"] button[role="tab"][aria-selected="true"] span.font-mono {
        color: #ffffff !important;
      }

      /* Home Page Category Horizontal Slider: Equal card sizes and smooth sliding */
      .category-slider-viewport {
        overflow: hidden !important;
        width: 100% !important;
        position: relative !important;
      }
      .category-slider-track {
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 20px !important;
        will-change: transform !important;
      }
      /* Desktop & Fullscreen Notebook (>= 1200px): 4 full cards (100% flush, 0 partial card) */
      .category-slider-item {
        flex: 0 0 calc((100% - 60px) / 4) !important;
        width: calc((100% - 60px) / 4) !important;
        min-width: calc((100% - 60px) / 4) !important;
        max-width: calc((100% - 60px) / 4) !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
      }
      /* Shrunk Desktop / Notebook Window (900px - 1199px): 3 full cards */
      @media (min-width: 900px) and (max-width: 1199px) {
        .category-slider-item {
          flex: 0 0 calc((100% - 40px) / 3) !important;
          width: calc((100% - 40px) / 3) !important;
          min-width: calc((100% - 40px) / 3) !important;
          max-width: calc((100% - 40px) / 3) !important;
        }
      }
      /* Tablet Screens / Narrow Window (640px - 899px): 2 spacious full cards */
      @media (min-width: 640px) and (max-width: 899px) {
        .category-slider-item {
          flex: 0 0 calc((100% - 20px) / 2) !important;
          width: calc((100% - 20px) / 2) !important;
          min-width: calc((100% - 20px) / 2) !important;
          max-width: calc((100% - 20px) / 2) !important;
        }
      }
      /* Mobile Phones (< 640px): 1 full card per view */
      @media (max-width: 639px) {
        .category-slider-item {
          flex: 0 0 100% !important;
          width: 100% !important;
          min-width: 100% !important;
          max-width: 100% !important;
        }
      }

      /* Responsive scaling for project card grids: 4 cards -> 3 cards -> 2 cards */
      @media (min-width: 1200px) {
        .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
          grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        }
      }
      @media (min-width: 900px) and (max-width: 1199px) {
        .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
          grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        }
      }
      @media (min-width: 640px) and (max-width: 899px) {
        .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
      }
      @media (max-width: 639px) {
        .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
          grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        }
      }
      /* Ensure every card in the row stretches to the exact same full height */
      .category-slider-item > div,
      .category-slider-item [id^="project-card-"] {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        flex: 1 1 100% !important;
      }
      /* Main Card Title and Address: address sits immediately below project name with NO empty line */
      .category-slider-item h3,
      .category-slider-item [id^="project-card-"] h3,
      [id^="project-card-"] h3,
      [id*="project-card"] h3 {
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: block !important;
      }
      .category-slider-item [id^="project-card-"] div:has(> h3),
      [id^="project-card-"] div:has(> h3) {
        margin-bottom: 2px !important;
      }
      .category-slider-item [id^="project-card-"] div:has(> h3) + p,
      [id^="project-card-"] div:has(> h3) + p,
      .category-slider-item [id^="project-card-"] h3 + p,
      [id^="project-card-"] h3 + p {
        margin-top: 0 !important;
        padding-top: 0 !important;
      }

      /* Category Slider Navigation Arrow Buttons: Left on Left, Right on Right, NO DISAPPEARING ON HOVER */
      .category-nav-btn-left,
      .category-nav-btn-right {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 40 !important;
        width: 2.6rem !important;
        height: 2.6rem !important;
        border-radius: 9999px !important;
        background-color: #ffffff !important;
        color: #1f2937 !important;
        border: 1px solid rgba(197, 166, 102, 0.6) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        opacity: 0.95 !important;
        pointer-events: auto !important;
        transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease !important;
      }
      .category-nav-btn-left {
        left: 0.75rem !important;
        right: auto !important;
      }
      .category-nav-btn-right {
        right: 0.75rem !important;
        left: auto !important;
      }
      .category-nav-btn-left svg,
      .category-nav-btn-right svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
        stroke: #1f2937 !important;
        stroke-width: 2.2 !important;
        fill: none !important;
        transition: stroke 0.2s ease !important;
      }
      /* Mouseover left and right buttons: warm parchment background colour consistent with the design UI (matching Launching Soon 15 hover #f4efe4) and gold icon (#8c6b2d) */
      .category-nav-btn-left:hover,
      .category-nav-btn-right:hover {
        background-color: #f4efe4 !important;
        background: #f4efe4 !important;
        border-color: rgba(197, 166, 102, 0.9) !important;
        transform: translateY(-50%) scale(1.08) !important;
        opacity: 1 !important;
      }
      .category-nav-btn-left:hover svg,
      .category-nav-btn-right:hover svg {
        stroke: #8c6b2d !important;
      }
      .category-nav-btn-left:active,
      .category-nav-btn-right:active {
        background-color: #efe9dc !important;
        background: #efe9dc !important;
        transform: translateY(-50%) scale(0.96) !important;
      }
      /* Always show carousel navigation arrow buttons (< >) on desktop, laptop, tablet and mobile */
      .category-nav-btn-left,
      .category-nav-btn-right,
      button.category-nav-btn-left,
      button.category-nav-btn-right {
        display: flex !important;
        visibility: visible !important;
        opacity: 0.95 !important;
        pointer-events: auto !important;
      }
      @media (max-width: 768px) {
        .category-nav-btn-left,
        .category-nav-btn-right,
        button.category-nav-btn-left,
        button.category-nav-btn-right {
          width: 2.25rem !important;
          height: 2.25rem !important;
          display: flex !important;
          visibility: visible !important;
          opacity: 0.95 !important;
          pointer-events: auto !important;
        }
        .category-nav-btn-left,
        button.category-nav-btn-left {
          left: 0.35rem !important;
        }
        .category-nav-btn-right,
        button.category-nav-btn-right {
          right: 0.35rem !important;
        }
        .category-nav-btn-left svg,
        .category-nav-btn-right svg,
        button.category-nav-btn-left svg,
        button.category-nav-btn-right svg {
          width: 1.1rem !important;
          height: 1.1rem !important;
        }
      }
      /* Project Detail Section Headers: Strict Left Aligned Layout (matches Plans) */
      #section-details h2,
      #section-details h3,
      #section-unit-types-pricing h2,
      #section-unit-types-pricing h3,
      #section-overview h2,
      #section-overview h3,
      #section-highlights h2,
      #section-highlights h3,
      #section-map h2,
      #section-map h3,
      #section-floorplans h2,
      #section-floorplans h3,
      #section-floorplans .pt-2,
      #section-developer .border-b > div.flex,
      #section-developer .border-b > div,
      #section-faq .border-b > div.flex,
      #section-faq .border-b > div,
      #section-contact h2,
      #section-contact h3 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important; /* 8px - matches default items-center gap-2 */
        width: 100% !important;
      }

      /* Ensure Developer & FAQ heading text sits directly next to icon with zero pushing */
      #section-developer .border-b > div.flex h2,
      #section-developer .border-b > div.flex h3,
      #section-developer .border-b > div h2,
      #section-developer .border-b > div h3,
      #section-faq .border-b > div.flex h2,
      #section-faq .border-b > div.flex h3,
      #section-faq .border-b > div h2,
      #section-faq .border-b > div h3 {
        margin: 0 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        display: inline-block !important;
      }

      /* Request More Info Button: Completely removed and hidden across all 131 project pages */
      .amberwood-request-info-btn,
      .project-request-info-btn,
      #btn-download-thomson-reserve-floorplans {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
      }



/* ============================================================================
 * STYLE MODULE: 04-map-modal-and-controls.css
 * ============================================================================ */
      /* ============================================================================
         Map Button & Modal View Window (Option 1: Rounded Rectangular Pill)
         ============================================================================ */
      #bar-actions-cluster {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
      }

      #project-map-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6.5px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        box-sizing: border-box !important;
        padding: 0 14px !important;
        border-radius: 9999px !important;
        background-color: #faf8f4 !important;
        background: #faf8f4 !important;
        border: 1px solid rgba(197, 166, 102, 0.55) !important;
        color: #171717 !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        outline: none !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
      }

      #project-map-btn svg {
        color: #8c6b2d !important;
        stroke: #8c6b2d !important;
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
        transition: color 0.18s ease, transform 0.18s ease !important;
      }

      /* Hover colour matching screenshot: background #f4efe4, text and icon #8c6b2d */
      #project-map-btn:hover {
        background-color: #f4efe4 !important;
        background: #f4efe4 !important;
        color: #8c6b2d !important;
        border-color: rgba(197, 166, 102, 0.75) !important;
        box-shadow: 0 1px 3px rgba(197, 166, 102, 0.18) !important;
        transform: translateY(-0.5px) !important;
      }

      #project-map-btn:hover svg {
        color: #8c6b2d !important;
        stroke: #8c6b2d !important;
      }

      #project-map-btn:active {
        transform: translateY(0) !important;
        background-color: #ede5d5 !important;
        background: #ede5d5 !important;
      }

      /* Map Modal Controls (Recenter Diamond) & Top Bar Inline Layout */
      #map-top-bar-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 12px !important;
      }
      @media (min-width: 640px) {
        #map-top-bar-container {
          padding-left: 20px !important;
          padding-right: 20px !important;
          gap: 16px !important;
        }
      }

      /* Ergonomic Spacing between the 3 Top Pills:
         - Mobile (< 640px): 10px gap prevents accidental fat-finger miss-taps between category dropdown & recenter diamond
         - Tablet (>= 640px): 12px gap provides luxurious visual breathing room
         - Desktop (>= 1024px): 14px gap
      */
      #map-top-pills-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
      }
      @media (min-width: 640px) {
        #map-top-pills-row {
          gap: 12px !important;
        }
      }
      @media (min-width: 1024px) {
        #map-top-pills-row {
          gap: 14px !important;
        }
      }

      /* Unified Pill Button Height & Ergonomics (38px touch target) */
      #map-provider-trigger,
      #map-category-trigger {
        height: 38px !important;
        min-height: 38px !important;
        padding-left: 13px !important;
        padding-right: 13px !important;
        border-radius: 9999px !important;
        transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
      }
      @media (min-width: 640px) {
        #map-provider-trigger,
        #map-category-trigger {
          padding-left: 14px !important;
          padding-right: 14px !important;
        }
      }

      /* Recenter & Zoom Controls (Rhombus only on Mobile/Tablet; [+ | ◇ | -] on Desktop/Notebook) */
      #map-zoom-recenter-pill {
        display: inline-flex !important;
        align-items: center !important;
        background-color: #ffffff !important;
        border: 1px solid rgba(197, 166, 102, 0.5) !important;
        border-radius: 9999px !important;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
        height: 38px !important;
        min-height: 38px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
      }
      #map-zoom-recenter-pill:hover {
        border-color: rgba(197, 166, 102, 0.75) !important;
      }

      /* Default: Mobile / Touch Devices (Smartphones & Tablets): Standalone circular rhombus (◇) */
      #map-zoom-recenter-pill {
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        justify-content: center !important;
      }
      #gmap-zoom-in,
      #gmap-zoom-out,
      .map-pill-divider {
        display: none !important;
      }
      #map-recenter-sg-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #8c6b2d !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
      }
      #map-recenter-sg-btn:hover {
        background-color: #faf8f4 !important;
      }
      #map-recenter-sg-btn:active {
        background-color: #ede5d5 !important;
      }
      #map-recenter-sg-btn svg {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2.2 !important;
        color: #8c6b2d !important;
      }

      /* Desktop / Notebook / Tablet Mode:
         Applies to:
         1. Tablet & Desktop/Notebook viewports (>= 640px)
      */
      @media (min-width: 640px) {
        #map-zoom-recenter-pill {
          width: auto !important;
          padding: 0 !important;
        }
        #gmap-zoom-in,
        #gmap-zoom-out {
          display: inline-flex !important;
          align-items: center !important;
          justify-content: center !important;
          width: 31px !important;
          height: 38px !important;
          border: none !important;
          background: transparent !important;
          cursor: pointer !important;
          color: #8c6b2d !important;
          padding: 0 !important;
          transition: background-color 0.15s ease, color 0.15s ease !important;
        }
        #gmap-zoom-in:hover,
        #gmap-zoom-out:hover {
          background-color: #faf8f4 !important;
          color: #705420 !important;
        }
        #gmap-zoom-in:active,
        #gmap-zoom-out:active {
          background-color: #ede5d5 !important;
        }
        #gmap-zoom-in svg,
        #gmap-zoom-out svg {
          width: 14px !important;
          height: 14px !important;
          stroke-width: 2.4 !important;
        }
        .map-pill-divider {
          display: block !important;
          width: 1px !important;
          height: 18px !important;
          background-color: rgba(197, 166, 102, 0.35) !important;
          flex-shrink: 0 !important;
        }
        #map-recenter-sg-btn {
          display: inline-flex !important;
          align-items: center !important;
          justify-content: center !important;
          width: 34px !important;
          height: 38px !important;
          border: none !important;
          background: transparent !important;
          cursor: pointer !important;
          color: #8c6b2d !important;
          padding: 0 !important;
          transition: background-color 0.15s ease, color 0.15s ease !important;
        }
        #map-recenter-sg-btn:hover {
          background-color: #faf8f4 !important;
          color: #705420 !important;
        }
        #map-recenter-sg-btn:active {
          background-color: #ede5d5 !important;
        }
        #map-recenter-sg-btn svg {
          width: 18px !important;
          height: 18px !important;
          stroke-width: 2.2 !important;
          color: #8c6b2d !important;
        }
      }


      /* Map Modal Window (Full viewport) */
      #map-page-backdrop {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
      }
      #map-page-backdrop.is-open {
        opacity: 1 !important;
        visibility: visible !important;
      }

      #map-page-card {
        width: 100% !important;
        height: 100% !important;
      }

      .map-dropdown-menu {
        display: none;
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity 0.15s ease, transform 0.15s ease;
      }
      .map-modal-dropdown.is-open .map-dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
      }
      .map-modal-dropdown.is-open .map-chevron {
        transform: rotate(180deg) !important;
      }

      /* Interactive Pin on Map with Project Name */
      .custom-interactive-project-pin {
        background: transparent !important;
        border: none !important;
      }
      .map-interactive-pin-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateY(-50%);
        cursor: pointer;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.1s ease;
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
      }
      .map-interactive-pin-container:hover {
        transform: translateY(-50%) scale(1.08);
        z-index: 9999 !important;
      }
      .map-pin-badge {
        background-color: rgba(255, 255, 255, 0.96) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1.5px solid #c5a666 !important;
        border-radius: 9999px !important;
        padding: 2.5px 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
        transition: all 0.2s ease !important;
      }
      .map-interactive-pin-container:hover .map-pin-badge {
        background-color: #171717 !important;
        background: #171717 !important;
        border-color: #c5a666 !important;
      }
      .map-interactive-pin-container:hover .map-pin-title {
        color: #f7f4ec !important;
      }
      .map-interactive-pin-container.is-active .map-pin-badge {
        background-color: #171717 !important;
        background: #171717 !important;
        border-color: #c5a666 !important;
        box-shadow: 0 0 0 2px rgba(197, 166, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
      }
      .map-interactive-pin-container.is-active .map-pin-title {
        color: #c5a666 !important;
      }
      .map-pin-pointer {
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #c5a666;
      }
      /* Map Modal Page Backdrop & Layout */
      #map-page-backdrop {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 99999 !important;
        background-color: #f6f4ee !important;
        display: none !important;
        overflow: hidden !important;
      }
      #map-page-backdrop.is-open {
        display: flex !important;
        flex-direction: column !important;
      }
      #map-page-card {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        overflow: hidden !important;
        background-color: #f6f4ee !important;
      }

      /* Google Map Viewport Section - Full Height Viewport (No listings below) */
      #map-viewport-section {
        width: 100% !important;
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: auto !important;
        position: relative !important;
        overflow: hidden !important;
        background-color: #e5e3df !important;
        border-bottom: none !important;
      }
      #map-leaflet-container {
        width: 100% !important;
        height: 100% !important;
        background-color: #f2efe9 !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
      }

      /* Dropdowns */
      .map-modal-dropdown {
        position: relative !important;
        z-index: 100 !important;
      }
      .map-modal-dropdown .map-dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        transform: translateY(-4px) !important;
        transition: opacity 0.15s ease, transform 0.15s ease !important;
        pointer-events: none !important;
        z-index: 1000 !important;
      }
      .map-modal-dropdown.is-open .map-dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
      }
      .map-modal-dropdown.is-open .map-chevron {
        transform: rotate(180deg) !important;
      }
      /* Seamless hover bridge: connects trigger button to dropdown menu across the mt-1.5 gap */
      .map-modal-dropdown .map-dropdown-menu::before {
        content: "" !important;
        position: absolute !important;
        top: -14px !important;
        left: 0 !important;
        right: 0 !important;
        height: 18px !important;
        background: transparent !important;
        pointer-events: auto !important;
        z-index: 10 !important;
      }

      /* Map View Provider Dropdown Menu - compact optimized width matching trigger */
      #map-provider-menu {
        width: max-content !important;
        min-width: 100% !important;
        max-width: 110px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
      }
      #map-provider-menu button {
        white-space: nowrap !important;
        width: 100% !important;
      }

      /* Map View Category Dropdown Menu - sleek compact width */
      #map-category-menu {
        width: max-content !important;
        min-width: 100% !important;
        max-width: 210px !important;
        box-sizing: border-box !important;
      }

      /* 2nd Pill (Category & Project Count) in Map Page header matching screenshot styling */
      #map-category-trigger {
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
      }
      #map-category-label {
        display: inline-flex !important;
        align-items: baseline !important;
      }
      #map-category-label .map-category-pill-title {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #171717 !important;
        line-height: 1 !important;
        vertical-align: baseline !important;
      }
      #map-category-label .map-category-pill-count {
        font-size: 12px !important;
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        color: #525252 !important;
        margin-left: 6px !important;
        vertical-align: baseline !important;
      }
      @media (max-width: 640px) {
        #map-category-label .map-category-pill-title {
          font-size: 12.5px !important;
        }
        #map-category-label .map-category-pill-count {
          font-size: 11px !important;
          margin-left: 5px !important;
        }
      }

      /* Standard Google Maps Location Pin Marker */
      .gmap-interactive-pin-wrapper {
        background: transparent !important;
        border: none !important;
        pointer-events: none !important;
      }
      .gmap-marker-pin {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
      }
      .gmap-pin-label {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 3px #fff, 0 0 6px #fff !important;
        max-width: 140px !important;
        line-height: 1.15 !important;
        margin-bottom: 2px !important;
        letter-spacing: -0.01em !important;
        pointer-events: auto !important;
        transition: color 0.15s ease, font-weight 0.15s ease !important;
        text-align: center !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
      }
      .gmap-standard-pin {
        width: 27px !important;
        height: 37px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)) !important;
        transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease !important;
      }
      .gmap-pin-svg {
        width: 27px !important;
        height: 37px !important;
        display: block !important;
      }
      .gmap-marker-pin:hover .gmap-standard-pin,
      .gmap-marker-pin.is-active .gmap-standard-pin {
        transform: scale(1.15) translateY(-2px) !important;
        filter: drop-shadow(0 4px 8px rgba(179, 20, 18, 0.45)) !important;
      }
      .gmap-marker-pin:hover .gmap-pin-label,
      .gmap-marker-pin.is-active .gmap-pin-label {
        color: #0f172a !important;
        font-weight: 800 !important;
        max-width: 220px !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
        z-index: 50 !important;
      }



/* ============================================================================
 * STYLE MODULE: 05-map-popups-and-streetview.css
 * ============================================================================ */
      /* Google Maps Custom Luxury InfoWindow Popup Card - 50% Proportionate to Home Card */
      .gmap-custom-popup {
        margin-bottom: 0 !important;
        pointer-events: auto !important;
        transition: none !important;
      }
      .gmap-custom-popup.popup-flipped-down .leaflet-popup-tip-container {
        top: 42px !important;
        bottom: auto !important;
      }
      .gmap-custom-popup.popup-flipped-down .leaflet-popup-tip {
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08) !important;
      }
      .gmap-custom-popup .leaflet-popup-content-wrapper {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.22), 0 4px 10px -2px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        border-width: 0 !important;
        outline: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: auto !important;
      }
      .gmap-custom-popup .leaflet-popup-content {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
        overflow: hidden !important;
        border-radius: 12px !important;
      }
      .gmap-custom-popup .leaflet-popup-tip-container {
        width: 20px !important;
        height: 10px !important;
        pointer-events: none !important;
        z-index: 10 !important;
      }
      .gmap-custom-popup .leaflet-popup-tip {
        background: #ffffff !important;
        background-color: #ffffff !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16) !important;
        width: 10px !important;
        height: 10px !important;
        padding: 1px !important;
        margin: -5px auto 0 !important;
        border: none !important;
      }
      .gmap-custom-popup a.leaflet-popup-close-button {
        display: none !important;
      }
      .gmap-popup-card {
        width: 220px !important;
        max-width: 220px !important;
        min-width: 220px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid rgba(197, 166, 102, 0.35) !important;
        outline: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        cursor: pointer !important;
      }
      /* Main & Pop-up Card Title and Address: address sits immediately below project name with NO empty line */
      .gmap-popup-card {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
      }
      /* Main page main card style: prominent project title, larger content, shifted 2px left to 10px */
      .gmap-popup-card .gmap-popup-body,
      .gmap-popup-card > div:last-child {
        padding: 13px 10px 16px 10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 13px !important;
        padding-bottom: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
      }
      .gmap-popup-card h3 {
        font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        color: #8c6b2d !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: block !important;
        line-height: 1.25 !important;
        letter-spacing: -0.01em !important;
      }
      .gmap-popup-card div:has(> h3) {
        margin-bottom: 3.5px !important;
      }
      /* Right-pointed arrow in map pop-up card: like the main card, display arrow on mouseover / hover of the pop-up card */
      .gmap-popup-card .gmap-popup-arrow,
      .gmap-popup-card div:has(> h3) svg {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        color: #8c6b2d !important;
        opacity: 0 !important;
        transform: translateX(-4px) !important;
        transition: opacity 0.2s ease, transform 0.2s ease !important;
        pointer-events: none;
      }
      .gmap-popup-card:hover .gmap-popup-arrow,
      .gmap-popup-card:hover div:has(> h3) svg,
      .gmap-popup-card.is-hovered .gmap-popup-arrow,
      .gmap-popup-card.is-hovered div:has(> h3) svg {
        opacity: 1 !important;
        transform: translateX(0) !important;
      }
      .gmap-popup-card:hover h3,
      .gmap-popup-card.is-hovered h3 {
        color: #6e511b !important;
      }
      /* Address sits immediately below project name (Same as in home page main card) */
      .gmap-custom-popup .leaflet-popup-content p,
      .gmap-popup-card p,
      .gmap-popup-card .gmap-popup-address,
      .gmap-popup-card div:has(> h3) + p,
      .gmap-popup-card h3 + p {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        color: #666666 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 9px !important;
        padding-top: 0 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-overflow: clip !important;
        display: block !important;
      }
      /* 5 Metadata rows styling: larger gold icons and bigger readable wordings matching main card */
      .gmap-popup-card .gmap-popup-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
        margin-top: 2px !important;
      }
      .gmap-popup-card .gmap-popup-meta > div {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
      }
      .gmap-popup-card .gmap-popup-meta svg {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        min-height: 15px !important;
        flex-shrink: 0 !important;
        margin-top: 1.5px !important;
        color: #b8860b !important;
      }
      .gmap-popup-card .gmap-popup-meta span {
        font-size: 12px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
        color: #2b2b2b !important;
      }
      /* If text in pop-up overshoots, bring to next line without truncation */
      .gmap-popup-card h3,
      .gmap-popup-card p,
      .gmap-popup-card span {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-overflow: clip !important;
      }
      /* Map Modal & Search Page Close Button: Slightly bigger gold X with matching thickness and sizing */
      #map-close-btn,
      #search-close-btn {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 4px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        color: #8c6b2d !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: manipulation !important;
      }
      #map-close-btn svg,
      #search-close-btn svg {
        color: #8c6b2d !important;
        stroke: #8c6b2d !important;
        stroke-width: 1.6 !important;
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        min-height: 25px !important;
      }
      #map-close-btn:hover,
      #search-close-btn:hover {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
      }
      #map-close-btn:hover svg,
      #search-close-btn:hover svg {
        color: #705420 !important;
        stroke: #705420 !important;
      }

      /* Home Page Card Format in pop-up (aspect-16/10 cover) - Reduced 50% */
      .gmap-popup-card .gmap-card-cover,
      .gmap-card-cover {
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
        height: 128px !important;
        max-height: 128px !important;
        min-height: 128px !important;
        overflow: hidden !important;
        position: relative !important;
        background-color: #1a1a1a !important;
      }
      .gmap-popup-card .gmap-card-cover img,
      .gmap-card-cover img,
      .gmap-popup-card img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 16 / 10 !important;
        object-fit: cover !important;
        display: block !important;
      }

      /* Hide any legacy listings below map defensively */
      #map-listings-wrapper,
      #map-projects-list,
      .map-listing-strip {
        display: none !important;
      }

      /* Floating Google Map Controls */
      #gmap-floating-search {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
      }
      #gmap-floating-search input:focus {
        outline: none !important;
      }
      #gmap-layers-control:hover #gmap-layers-preview {
        transform: scale(1.08) !important;
      }
      #gmap-layers-preview {
        transition: transform 0.25s ease !important;
      }

      @media (max-width: 640px) {
        #map-viewport-section {
          width: 100% !important;
          flex: 1 1 0% !important;
          min-height: 0 !important;
          height: auto !important;
        }
        .gmap-custom-popup .leaflet-popup-content {
          width: 224px !important;
          max-width: min(224px, calc(100vw - 36px)) !important;
        }
        .gmap-popup-card {
          width: 224px !important;
          max-width: min(224px, calc(100vw - 36px)) !important;
        }
        .gmap-popup-card .gmap-popup-body,
        .gmap-popup-card > div:last-child {
          padding: 13px 10px 16px 10px !important;
          padding-left: 10px !important;
          padding-right: 10px !important;
          box-sizing: border-box !important;
        }
      }

      /* Clean Google Map / Leaflet container & UI */
      .leaflet-container {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
      }
      .leaflet-bar {
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
      }
      .leaflet-bar a {
        background-color: #ffffff !important;
        color: #3c4043 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        transition: background-color 0.15s ease, color 0.15s ease !important;
      }
      .leaflet-bar a:hover {
        background-color: #f1f3f4 !important;
        color: #1a73e8 !important;
      }
      .leaflet-bar a:last-child {
        border-bottom: none !important;
      }

      /* Map Modal Viewport Scrollbar & Bounce Prevention */
      #map-page-backdrop,
      #map-page-card,
      #map-viewport-section,
      #map-leaflet-container,
      #streetview-modal-backdrop,
      #streetview-modal-container,
      .leaflet-pane,
      .leaflet-map-pane,
      .leaflet-container {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        overscroll-behavior: none !important;
        overscroll-behavior-x: none !important;
        overscroll-behavior-y: none !important;
        -webkit-overflow-scrolling: auto !important;
        touch-action: pan-x pan-y pinch-zoom !important;
      }
      #map-page-backdrop::-webkit-scrollbar,
      #map-page-card::-webkit-scrollbar,
      #map-viewport-section::-webkit-scrollbar,
      #map-leaflet-container::-webkit-scrollbar,
      #streetview-modal-backdrop::-webkit-scrollbar,
      #streetview-modal-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
      }
      body.has-map-modal-open {
        overflow: hidden !important;
        overscroll-behavior: none !important;
      }

      /* Google Street View Modal & Viewer Styles */
      #streetview-modal-backdrop {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 100005 !important;
        background-color: #1a1a1a !important;
        display: none !important;
        flex-direction: column !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
      }
      #streetview-modal-backdrop.is-open {
        display: flex !important;
      }
      #streetview-modal-container {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
      }
      #streetview-panorama-viewport {
        width: 100% !important;
        height: 100% !important;
        flex: 1 1 0% !important;
        position: relative !important;
        background-color: #202124 !important;
      }
      .streetview-pegman-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: #fef7e0 !important;
        color: #b06000 !important;
        border: 1px solid rgba(234, 134, 0, 0.3) !important;
        border-radius: 9999px !important;
        padding: 3px 10px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
      }

      /* =========================================================================
         Search Page - Expand to the fullest just like the Map page
         ========================================================================= */
      #search-page-backdrop {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 99999 !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: #f6f4ee !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
      }

      #search-page-card {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        overflow: hidden !important;
        background-color: #f6f4ee !important;
        transform: none !important;
      }

      /* =========================================================================
         Temporarily Remove "BLOG" Menu Item from Navigation
         (To restore when ready, remove or comment out this rule)
         ========================================================================= */
      #nav-item-blog-btn,
      button#nav-item-blog-btn,
      [id="nav-item-blog-btn"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        position: absolute !important;
      }

      /* Hide 360° Street View Button Across All Projects */
      #project-detail-streetview-btn,
      button#project-detail-streetview-btn,
      [id="project-detail-streetview-btn"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
      }

      /* Ensure Singapore Land logo width matches UOL logo across developer profiles */
      #section-developer img[src*="singaporeland"],
      #section-developer img[alt*="Singapore Land"],
      img[src*="singaporeland"] {
        width: 140px !important;
        max-width: 140px !important;
        max-height: none !important;
        height: auto !important;
      }

      @media (min-width: 640px) {
        #section-developer img[src*="singaporeland"],
        #section-developer img[alt*="Singapore Land"],
        img[src*="singaporeland"] {
          width: 155px !important;
          max-width: 155px !important;
          max-height: none !important;
        }
      }

      @media (min-width: 768px) {
        #section-developer img[src*="singaporeland"],
        #section-developer img[alt*="Singapore Land"],
        img[src*="singaporeland"] {
          width: 170px !important;
          max-width: 170px !important;
          max-height: none !important;
        }
      }

      /* Project Detail Map Section: Match Site Plan Layout and Dimensions */
      #section-map .border-b > p,
      #section-map p.text-neutral-600 {
        display: none !important;
      }

      #section-map .flex.items-center.justify-between:has(.font-mono.font-bold.uppercase),
      #section-map div:has(> .flex.items-center > .font-mono.font-bold.uppercase) {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        padding-bottom: 0 !important;
      }

      #section-map .aspect-16\/10,
      #section-map [class*="aspect-16/10"],
      #section-map div:has(> iframe),
      #section-map .relative:has(iframe) {
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 1rem !important;
      }



/* ============================================================================
 * STYLE MODULE: 06-project-detail-and-header-icons.css
 * ============================================================================ */
      /* ==========================================================================
         PHASE 1: LANDED LAUNCH - TIMESTAMPS & PRICING TABLE STYLES
         ========================================================================== */
      .landed-page-freshness-timestamp,
      #landed-timestamp-1-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        padding-left: 0 !important;
        font-size: 0.8125rem !important;
        color: #737373 !important; /* light grey text */
        font-weight: 400 !important;
      }
      .landed-page-freshness-timestamp time,
      #landed-timestamp-1-wrapper time {
        color: #737373 !important; /* light grey text */
        font-weight: 400 !important;
        letter-spacing: normal !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        text-align: left !important;
      }

      /* 6th Pointer: Indicative Price & PSF below 2 to 5 Bedrooms */
      .project-card-price-pointer {
        display: flex !important;
        align-items: flex-start !important;
        gap: 0.625rem !important; /* 10px / gap-2.5 matching existing pointers */
        border: none !important;
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
      }
      .project-card-price-pointer svg {
        width: 1rem !important;
        height: 1rem !important;
        color: #b8860b !important;
        flex-shrink: 0 !important;
        margin-top: 0.125rem !important;
      }
      .project-card-price-pointer .project-card-price-text,
      .project-card-price-pointer span {
        font-weight: 500 !important;
        line-height: 1.375 !important;
        color: #404040 !important; /* text-neutral-700 matching existing pointers */
        word-break: break-word !important;
        display: inline !important;
        border: none !important;
      }
      /* Hide legacy detached bottom summary row with top border */
      .landed-card-summary-row,
      .project-card-summary-row {
        display: none !important;
      }

      #section-unit-types-pricing {
        animation: fadeIn 0.25s ease-in-out;
      }
      #section-unit-types-pricing table th {
        font-weight: 600;
        font-size: 0.8125rem;
        color: #8c6b2d;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }
      #section-unit-types-pricing table td {
        font-size: 0.875rem;
        vertical-align: middle;
      }
      #section-unit-types-pricing table tbody tr:hover {
        background-color: #faf8f4;
      }
      .check-balance-units-btn {
        background-color: #8c6b2d;
        color: #ffffff;
        font-weight: 600;
        padding: 0.375rem 0.75rem;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        box-shadow: 0 1px 2px rgba(140, 107, 45, 0.15);
      }
      .check-balance-units-btn:hover {
        background-color: #6e511b;
        box-shadow: 0 2px 6px rgba(140, 107, 45, 0.25);
        transform: translateY(-1px);
      }
      .check-balance-units-btn:active {
        transform: translateY(0);
      }

      /* ==========================================================================
         Project Detail Section Headings & Icons Consistency (Mobile & Desktop)
         Standardized to match the gold standard "Plans" icon:
         - 20px x 20px crisp icon, stroke-width 2, #8c6b2d
         - Never crushed or squashed horizontally (flex-shrink: 0, min-width: 20px)
         - Locked to the first line of text (align-items: flex-start with optical offset)
         ========================================================================== */
      #section-details h2,
      #section-details h3,
      #section-unit-types-pricing h2,
      #section-overview h2,
      #section-overview h3,
      #section-highlights h2,
      #section-highlights h3,
      #section-map h2,
      #section-map h3,
      #section-floorplans h2,
      #section-floorplans h3,
      #section-developer h2,
      #section-developer h3,
      #section-developer .border-b > div,
      #section-developer .border-b > div.flex,
      #section-faq h2,
      #section-faq h3,
      #section-faq .border-b > div,
      #section-faq .border-b > div.flex,
      #section-contact h2,
      #section-contact h3,
      .section-title-left,
      .section-title-group {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.625rem !important; /* 10px */
      }

      #section-developer .border-b > div.flex h2,
      #section-developer .border-b > div.flex h3,
      #section-developer .border-b > div h2,
      #section-developer .border-b > div h3,
      #section-faq .border-b > div.flex h2,
      #section-faq .border-b > div.flex h3,
      #section-faq .border-b > div h2,
      #section-faq .border-b > div h3 {
        margin: 0 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        display: inline-block !important;
        text-align: left !important;
      }

      #section-details h2 svg,
      #section-details h3 svg,
      #section-unit-types-pricing h2 svg,
      #section-overview h2 svg,
      #section-overview h3 svg,
      #section-highlights h2 svg,
      #section-highlights h3 svg,
      #section-map h2 svg,
      #section-map h3 svg,
      #section-floorplans h2 svg,
      #section-floorplans h3 svg,
      #section-developer h2 svg,
      #section-developer h3 svg,
      #section-faq h2 svg,
      #section-faq h3 svg,
      #section-contact h2 svg,
      #section-contact h3 svg,
      .section-title-left svg,
      .section-title-group svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        flex-shrink: 0 !important;
        color: #8c6b2d !important;
        stroke: #8c6b2d !important;
        margin-top: 3px !important; /* Optical vertical centering with the ~28px line-height font's first line */
      }

      #section-details h2 span,
      #section-details h3 span,
      #section-unit-types-pricing h2 span,
      #section-overview h2 span,
      #section-overview h3 span,
      #section-highlights h2 span,
      #section-highlights h3 span,
      #section-map h2 span,
      #section-map h3 span,
      #section-floorplans h2 span,
      #section-floorplans h3 span,
      #section-developer h2 span,
      #section-developer h3 span,
      #section-faq h2 span,
      #section-faq h3 span,
      #section-contact h2 span,
      #section-contact h3 span,
      .section-title-left span,
      .section-title-group span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
      }

      /* All 131 projects: Remove project name above address in Map section, keeping only district rounded square and address */
      #section-map h4,
      #section-map .flex.items-center.gap-2 h4 {
        display: none !important;
      }

      /* Hide original district badge row inside Ov component so only unified header row shows */
      #section-map div.w-full.space-y-2\.5 > div.flex.items-center.justify-between,
      #section-map div.w-full.space-y-2\.5 > div.pb-1 {
        display: none !important;
      }

      /* All 131 projects: Map section header row with title on left and district badge + address on left */
      #section-map #map-header-row-unified,
      #section-map .map-header-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.5rem 1.25rem !important;
        width: 100% !important;
        margin-bottom: 0.75rem !important;
      }

      #section-map #map-header-row-unified h2,
      #section-map #map-header-row-unified h3,
      #section-map .map-header-row h2,
      #section-map .map-header-row h3 {
        margin: 0 !important;
        flex: 0 1 auto !important;
      }

      #section-map #map-address-badge-group,
      #section-map .map-address-badge-group {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
        flex: 0 0 auto !important;
      }

      #section-map #map-address-badge-group p,
      #section-map .map-address-badge-group p {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #8c6b2d !important;
        font-family: 'Space Mono', monospace !important;
        margin: 0 !important;
        line-height: 1.3 !important;
      }

      @media (min-width: 640px) {
        #section-map #map-address-badge-group p,
        #section-map .map-address-badge-group p {
          font-size: 13px !important;
        }
      }

      /* Hide old duplicate address bar inside map component across all 131 projects */
      #section-map .space-y-2\.5 > .flex.items-center.justify-between,
      #section-map div.w-full.space-y-2\.5 > div.flex.items-center.justify-between,
      #section-map div.flex.items-center.justify-between.gap-2\.5.pb-1 {
        display: none !important;
      }

      /* Language Switcher Icon on Right Side of WhatsApp - In harmony with Menu */
      #lang-switcher-pill,
      .lang-switcher-pill {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
      }

      /* Header Action Icons Container Gap - Scoped strictly by breakpoint */
      #site-header nav > div.flex.items-center,
      #site-header nav .desktop-action-icons-group {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
      }

      /* Desktop: Mobile navigation and mobile icons MUST ALWAYS be strictly hidden on >= 768px */
      @media (min-width: 768px) {
        #site-header nav {
          display: flex !important;
        }
        #site-header .md\:hidden,
        #site-header div.md\:hidden,
        #site-header .mobile-action-icons-group {
          display: none !important;
          visibility: hidden !important;
          opacity: 0 !important;
          pointer-events: none !important;
        }
      }

      /* Mobile: Only display mobile elements on < 768px, hide desktop nav */
      @media (max-width: 767px) {
        #site-header nav {
          display: none !important;
        }
        #site-header .md\:hidden,
        #site-header .md\:hidden.flex.items-center,
        #site-header .mobile-action-icons-group {
          display: flex !important;
          align-items: center !important;
          gap: 6px !important;
        }
      }

      /* Unified strict 36x36px footprint for every button in the desktop action icon group */
      #site-header nav #nav-home-icon-btn,
      #site-header nav #nav-search-magnifying-btn,
      #site-header nav #nav-whatsapp-cta-btn,
      #site-header nav #nav-item-property-quicknav-btn,
      #site-header nav div:has(> #nav-item-property-quicknav-btn),
      #site-header nav .nav-lang-toggle-btn,
      #site-header nav #nav-lang-toggle-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        color: #8c6b2d !important;
        cursor: pointer !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        border-radius: 9999px !important;
        transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease !important;
        outline: none !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
      }

      /* Mobile action icons styling: ONLY applied on screens < 768px */
      @media (max-width: 767px) {
        #site-header .md\:hidden #mobile-nav-item-property-quicknav-btn,
        #site-header .md\:hidden div:has(> #mobile-nav-item-property-quicknav-btn),
        #site-header .md\:hidden button.w-9.h-9,
        #site-header .md\:hidden button[aria-label="Toggle navigation"],
        #site-header .md\:hidden button[aria-label="打开导航菜单"],
        #site-header .md\:hidden #nav-mobile-search-magnifying-btn,
        #site-header .md\:hidden a[href*="wa.me"],
        #site-header .md\:hidden #mobile-nav-lang-toggle-btn,
        #site-header .md\:hidden .nav-lang-toggle-btn {
          width: 36px !important;
          height: 36px !important;
          min-width: 36px !important;
          max-width: 36px !important;
          min-height: 36px !important;
          max-height: 36px !important;
          display: inline-flex !important;
          align-items: center !important;
          justify-content: center !important;
          flex-shrink: 0 !important;
          color: #8c6b2d !important;
          cursor: pointer !important;
          text-decoration: none !important;
          background: transparent !important;
          border: none !important;
          padding: 0 !important;
          margin: 0 !important;
          box-sizing: border-box !important;
          border-radius: 9999px !important;
          outline: none !important;
          touch-action: manipulation !important;
          -webkit-tap-highlight-color: transparent !important;
        }
      }

      /* Header Menu Icon Buttons - Mouseover Background like UPCOMING pill */
      #site-header nav #nav-home-icon-btn:hover,
      #site-header nav #nav-search-magnifying-btn:hover,
      #site-header nav #nav-whatsapp-cta-btn:hover,
      #site-header nav #nav-item-property-quicknav-btn:hover,
      #site-header nav #nav-lang-toggle-btn:hover,
      #site-header nav .nav-lang-toggle-btn:hover,
      #site-header #nav-lang-toggle-btn:hover,
      #site-header #mobile-nav-lang-toggle-btn:hover,
      #site-header .nav-lang-toggle-btn:hover,
      #site-header .md\:hidden #mobile-nav-lang-toggle-btn:hover,
      #site-header .md\:hidden .nav-lang-toggle-btn:hover,
      #nav-lang-toggle-btn:hover,
      #mobile-nav-lang-toggle-btn:hover,
      .nav-lang-toggle-btn:hover {
        background-color: #f4efe4 !important;
        background: #f4efe4 !important;
        color: #705420 !important;
        border-radius: 9999px !important;
      }

      #site-header nav #nav-home-icon-btn:active,
      #site-header nav #nav-search-magnifying-btn:active,
      #site-header nav #nav-whatsapp-cta-btn:active,
      #site-header nav #nav-item-property-quicknav-btn:active,
      #site-header nav #nav-lang-toggle-btn:active,
      #site-header nav .nav-lang-toggle-btn:active,
      #site-header #nav-lang-toggle-btn:active,
      #site-header #mobile-nav-lang-toggle-btn:active,
      #site-header .nav-lang-toggle-btn:active,
      #site-header .md\:hidden #mobile-nav-lang-toggle-btn:active,
      #site-header .md\:hidden .nav-lang-toggle-btn:active,
      #nav-lang-toggle-btn:active,
      #mobile-nav-lang-toggle-btn:active,
      .nav-lang-toggle-btn:active {
        background-color: #ede5d5 !important;
        background: #ede5d5 !important;
        transform: scale(0.94) !important;
      }

      @media (max-width: 767px) {
        #site-header .md\:hidden button:hover,
        #site-header .md\:hidden a:hover,
        #site-header .md\:hidden #mobile-nav-lang-toggle-btn:hover,
        #site-header .md\:hidden .nav-lang-toggle-btn:hover,
        #mobile-nav-lang-toggle-btn:hover {
          background-color: #f4efe4 !important;
          background: #f4efe4 !important;
          color: #705420 !important;
          border-radius: 9999px !important;
        }
        #site-header .md\:hidden button:active,
        #site-header .md\:hidden a:active,
        #site-header .md\:hidden #mobile-nav-lang-toggle-btn:active,
        #site-header .md\:hidden .nav-lang-toggle-btn:active,
        #mobile-nav-lang-toggle-btn:active {
          background-color: #ede5d5 !important;
          background: #ede5d5 !important;
          transform: scale(0.94) !important;
        }
      }

      .nav-lang-toggle-btn .lang-toggle-glyph {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #8c6b2d !important;
        box-shadow: none !important;
        transition: color 0.18s ease !important;
        user-select: none !important;
        -webkit-user-select: none !important;
      }

      .nav-lang-toggle-btn .lang-toggle-glyph.is-en {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 13.5px !important;
        font-weight: 400 !important;
        letter-spacing: 0.01em !important;
        line-height: 1 !important;
        color: inherit !important;
      }

      .nav-lang-toggle-btn .lang-toggle-glyph.is-en span {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 13.5px !important;
        font-weight: 400 !important;
        letter-spacing: 0.01em !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
      }

      .nav-lang-toggle-btn .lang-toggle-glyph.is-zh {
        display: block !important;
      }

      .nav-lang-toggle-btn .lang-toggle-glyph .zh-glyph-top {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        color: inherit !important;
      }

      .nav-lang-toggle-btn .lang-toggle-glyph .zh-glyph-bottom {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        color: inherit !important;
      }

      .nav-lang-toggle-btn:hover .lang-toggle-glyph {
        border: none !important;
        outline: none !important;
        border-color: transparent !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #705420 !important;
        box-shadow: none !important;
      }

      /* ==========================================================================
         Related Developments Section (#section-related-projects)
         Standardises both rows to match the first-row 16:10 card height
         ========================================================================== */
      #section-related-projects .related-proj-header {
        padding-bottom: 0.875rem !important;
      }

      #section-related-projects .related-proj-grid {
        display: grid !important;
        grid-auto-rows: 1fr !important;
        align-items: stretch !important;
      }

      #section-related-projects .related-proj-link {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        text-decoration: none !important;
        min-width: 0 !important;
      }

      #section-related-projects .related-proj-thumb {
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
        overflow: hidden !important;
        background-color: #ede8dc !important;
        position: relative !important;
        flex-shrink: 0 !important;
      }

      #section-related-projects .related-proj-thumb img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
      }

      #section-related-projects .related-proj-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        justify-content: space-between !important;
        min-width: 0 !important;
      }

      #section-related-projects .related-proj-meta,
      #section-related-projects .related-proj-title,
      #section-related-projects .related-proj-addr,
      #section-related-projects .related-proj-price {
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
      }

      #section-related-projects .related-proj-link:hover .related-proj-title {
        color: #705420 !important;
      }

      /* ==========================================================================
         Developer Profile Architectural Monogram Crest (Zero-Logo Fallback)
         ========================================================================== */
      #section-developer .hl-dev-monogram-crest {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 84px;
        height: 84px;
        border-radius: 14px;
        background: linear-gradient(145deg, #ffffff 0%, #f6f1e4 100%);
        border: 1px solid rgba(197, 166, 102, 0.45);
        box-shadow: 0 2px 8px rgba(140, 107, 45, 0.08);
        padding: 5px;
        flex-shrink: 0;
        user-select: none;
      }

      #section-developer .hl-dev-crest-inner {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        border: 1px solid rgba(197, 166, 102, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
      }

      #section-developer .hl-dev-crest-mono {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 1.35rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: #8c6b2d;
        line-height: 1;
      }




/* ============================================================================
 * STYLE MODULE: 07-zh-localization.css
 * ============================================================================ */
/* ==========================================================================
   Style 07: Simplified Chinese (/zh) Typography & Layout Refinements
   Scoped cleanly to html[lang^="zh"] — zero effect on English pages.
   ========================================================================== */
html[lang^="zh"] body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  word-break: normal;
  overflow-wrap: break-word;
}

html[lang^="zh"] .font-serif-luxury,
html[lang^="zh"] .serif,
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] h4 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
}

html[lang^="zh"] #site-header nav button,
html[lang^="zh"] #site-header nav a {
  letter-spacing: 0.04em;
}

html[lang^="zh"] [id^="project-card-"] h3,
html[lang^="zh"] #project-map-btn,
html[lang^="zh"] #sort-dropdown-trigger,
html[lang^="zh"] #map-category-trigger,
html[lang^="zh"] #map-category-label .map-category-pill-count,
html[lang^="zh"] .gmap-popup-card,
html[lang^="zh"] .gmap-popup-card h3,
html[lang^="zh"] div[role="tablist"] .category-title-text,
html[lang^="zh"] div[role="tablist"] .category-count-badge,
html[lang^="zh"] div[role="tablist"] button[role="tab"] {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
}

html[lang^="zh"] [id^="project-card-"] h3 {
  line-height: 1.38;
}

/* New Launch dropdown: intrinsic width + clean breathing room matching Region/Guides/QuickNav */
html[lang^="zh"] #site-header #nav-item-projects-dropdown-btn + div,
html[lang^="zh"] #site-header div:has(> #nav-item-projects-dropdown-btn) > div[class*="absolute"],
html[lang^="zh"] #site-header div:has(> #nav-item-projects-dropdown-btn) > div.animate-in {
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 2rem) !important;
}

html[lang^="zh"] #site-header #nav-item-projects-dropdown-btn + div button,
html[lang^="zh"] #site-header div:has(> #nav-item-projects-dropdown-btn) > div button,
html[lang^="zh"] #site-header #nav-item-projects-dropdown-btn + div span,
html[lang^="zh"] #site-header div:has(> #nav-item-projects-dropdown-btn) > div span {
  white-space: nowrap !important;
}

html[lang^="zh"] #site-header #nav-item-projects-dropdown-btn + div button,
html[lang^="zh"] #site-header div:has(> #nav-item-projects-dropdown-btn) > div button {
  padding-right: 36px !important;
}

/* Region dropdown: intrinsic width + locked 28px gap between longest label ('区') and count ('40') */
html[lang^="zh"] #site-header #nav-item-region-dropdown-btn + div,
html[lang^="zh"] #site-header div:has(> #nav-item-region-dropdown-btn) > div[class*="absolute"],
html[lang^="zh"] #site-header div:has(> #nav-item-region-dropdown-btn) > div.animate-in {
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 2rem) !important;
}

html[lang^="zh"] #site-header #nav-item-region-dropdown-btn + div button,
html[lang^="zh"] #site-header div:has(> #nav-item-region-dropdown-btn) > div button,
html[lang^="zh"] #site-header #nav-item-region-dropdown-btn + div span,
html[lang^="zh"] #site-header div:has(> #nav-item-region-dropdown-btn) > div span {
  white-space: nowrap !important;
}

html[lang^="zh"] #site-header #nav-item-region-dropdown-btn + div button > span:last-child,
html[lang^="zh"] #site-header div:has(> #nav-item-region-dropdown-btn) > div button > span:last-child {
  margin-left: 28px !important;
}

/* Guides dropdown: intrinsic width + locked 41px right gap between longest label ('率') and inner right border */
html[lang^="zh"] #site-header #nav-item-info-dropdown-btn + div,
html[lang^="zh"] #site-header div:has(> #nav-item-info-dropdown-btn) > div[class*="absolute"],
html[lang^="zh"] #site-header div:has(> #nav-item-info-dropdown-btn) > div.animate-in {
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 2rem) !important;
}

html[lang^="zh"] #site-header #nav-item-info-dropdown-btn + div button,
html[lang^="zh"] #site-header div:has(> #nav-item-info-dropdown-btn) > div button {
  padding-right: 41px !important;
  white-space: nowrap !important;
}

html[lang^="zh"] #site-header #nav-item-info-dropdown-btn + div span,
html[lang^="zh"] #site-header div:has(> #nav-item-info-dropdown-btn) > div span {
  white-space: nowrap !important;
}

/* Quick Nav dropdown (both non-project '返回顶部'/'部' and project '相关项目'/'目'): intrinsic width + identical locked 41px right gap */
html[lang^="zh"] #site-header #nav-item-property-quicknav-btn + div,
html[lang^="zh"] #site-header div:has(> #nav-item-property-quicknav-btn) > div[class*="absolute"],
html[lang^="zh"] #site-header div:has(> #nav-item-property-quicknav-btn) > div.animate-in {
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 2rem) !important;
}

html[lang^="zh"] #site-header #nav-item-property-quicknav-btn + div button,
html[lang^="zh"] #site-header div:has(> #nav-item-property-quicknav-btn) > div button {
  padding-right: 41px !important;
  white-space: nowrap !important;
}

/* Neutralize cramped negative tracking & Latin uppercase transforms for Chinese copy */
html[lang^="zh"] .tracking-tight,
html[lang^="zh"] .tracking-tighter {
  letter-spacing: 0.01em !important;
}

html[lang^="zh"] #section-unit-types-pricing table th {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

/* Use Chinese sans-serif with tabular-nums instead of Latin monospace across pricing, developer, floorplans, search modal, tabs, map & contact ticker */
html[lang^="zh"] #section-unit-types-pricing table td.font-mono,
html[lang^="zh"] #section-developer span.font-mono,
html[lang^="zh"] #section-floorplans .font-mono,
html[lang^="zh"] #section-map #map-address-badge-group div.font-mono:not(#map-district-badge),
html[lang^="zh"] #map-loading-indicator span.font-mono,
html[lang^="zh"] #map-category-menu .font-mono,
html[lang^="zh"] #search-page-card .font-mono,
html[lang^="zh"] body > .luxury-dropdown-scrollbar,
html[lang^="zh"] body > .luxury-dropdown-scrollbar .font-mono,
html[lang^="zh"] [id^="filter-pill-"].font-mono,
html[lang^="zh"] [id^="range-slider-container-"] .font-mono,
html[lang^="zh"] div[role="tablist"] button[role="tab"] span:last-child,
html[lang^="zh"] div[role="tablist"] button[role="tab"] span.font-mono,
html[lang^="zh"] div[aria-live="polite"] > span {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
  font-variant-numeric: tabular-nums !important;
}

html[lang^="zh"] div[role="tablist"] button[role="tab"],
html[lang^="zh"] #project-count-sort-bar div[role="tablist"] button[role="tab"] {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  box-sizing: border-box !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border: none !important;
}

html[lang^="zh"] div[role="tablist"] button[role="tab"][aria-selected="true"],
html[lang^="zh"] #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="true"] {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: 0 1px 3px rgba(140, 107, 45, 0.22) !important;
}

/* Comfortable line-height for Chinese long-form reading */
html[lang^="zh"] #section-overview p,
html[lang^="zh"] #section-developer p,
html[lang^="zh"] #section-faq p,
html[lang^="zh"] #section-highlights .leading-relaxed {
  line-height: 1.72 !important;
}

/* Spec rows: prevent left Chinese label collision on narrow screens */
html[lang^="zh"] #section-details .space-y-3 > div.flex.justify-between {
  gap: 1rem !important;
  align-items: flex-start !important;
}

html[lang^="zh"] #section-details .space-y-3 > div.flex.justify-between > span:first-child {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

html[lang^="zh"] #section-details .space-y-3 > div.flex.justify-between > span:last-child {
  text-align: right !important;
  word-break: break-word !important;
}

@media (max-width: 420px) {
  html[lang^="zh"] #section-details .space-y-3 > div.flex.justify-between {
    gap: 0.75rem !important;
  }

  html[lang^="zh"] #section-details .space-y-3 > div.flex.justify-between > span:first-child {
    white-space: normal !important;
    max-width: 44% !important;
    line-height: 1.45 !important;
  }
}

/* Mobile (/zh only): Pill ergonomics, horizontal touch swipe & comfortable Chinese reading scale */
@media (max-width: 767px) {
  /* Home page pill wrapper: allow smooth horizontal touch swipe without clipping wide pills */
  html[lang^="zh"] div:has(> div[role="tablist"]):not(#project-count-sort-bar > div > div:first-child) {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  html[lang^="zh"] div:has(> div[role="tablist"]):not(#project-count-sort-bar > div > div:first-child)::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Raise pill height to 41px and font size to 12.5px / 11.5px for thumb comfort & CJK legibility */
  html[lang^="zh"] div[role="tablist"],
  html[lang^="zh"] div[role="tablist"] h3,
  html[lang^="zh"] div[role="tablist"] h3 button,
  html[lang^="zh"] div[role="tablist"] .home-category-title-pill,
  html[lang^="zh"] div[role="tablist"] button:not([role="tab"]),
  html[lang^="zh"] #project-count-sort-bar div[role="tablist"],
  html[lang^="zh"] #project-map-btn {
    height: 41px !important;
    min-height: 41px !important;
    max-height: 41px !important;
  }

  html[lang^="zh"] div[role="tablist"] button[role="tab"],
  html[lang^="zh"] div[role="tablist"] button[role="tab"][aria-selected="true"],
  html[lang^="zh"] #project-count-sort-bar div[role="tablist"] button[role="tab"],
  html[lang^="zh"] #project-count-sort-bar div[role="tablist"] button[role="tab"][aria-selected="true"] {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: none !important;
  }

  html[lang^="zh"] div[role="tablist"] button[role="tab"],
  html[lang^="zh"] #project-count-sort-bar div[role="tablist"] button[role="tab"] {
    font-size: 12.5px !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
    gap: 6px !important;
  }

  html[lang^="zh"] div[role="tablist"] button[role="tab"] span:last-child,
  html[lang^="zh"] div[role="tablist"] button[role="tab"] span.font-mono,
  html[lang^="zh"] #project-count-sort-bar div[role="tablist"] button[role="tab"] span:last-child,
  html[lang^="zh"] #project-count-sort-bar div[role="tablist"] button[role="tab"] span.font-mono {
    font-size: 11.5px !important;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
  }

  html[lang^="zh"] div[role="tablist"] .category-title-text,
  html[lang^="zh"] div[role="tablist"] h3 .category-title-text,
  html[lang^="zh"] div[role="tablist"] h3 button .category-title-text,
  html[lang^="zh"] div[role="tablist"] .home-category-title-pill .category-title-text {
    font-size: 13.5px !important;
    letter-spacing: 0.01em !important;
  }

  html[lang^="zh"] #project-map-btn {
    font-size: 12.5px !important;
    padding: 0 15px !important;
  }

  html[lang^="zh"] #sort-dropdown-trigger {
    font-size: 13px !important;
    height: 41px !important;
    min-height: 41px !important;
    max-height: 41px !important;
  }
}

@media (max-width: 639px) {
  /* Bump 11-12px mobile Chinese body copy to 13.5px with airy 1.7 line-height */
  html[lang^="zh"] #section-overview .text-xs,
  html[lang^="zh"] #section-highlights .text-xs,
  html[lang^="zh"] #section-developer .text-xs,
  html[lang^="zh"] #section-faq .text-xs,
  html[lang^="zh"] #section-contact .text-xs,
  html[lang^="zh"] #section-related-projects p.text-xs,
  html[lang^="zh"] #about-educator-heart-section .text-xs {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
  }

  /* Comfortable tap target & font size for pricing CTA buttons */
  html[lang^="zh"] #section-unit-types-pricing .check-balance-units-btn {
    font-size: 12.5px !important;
    min-height: 36px !important;
    padding: 0.45rem 0.85rem !important;
    white-space: nowrap !important;
  }

  /* Search filter pills & Map modal pills: prevent truncation & improve thumb reach */
  html[lang^="zh"] [id^="filter-pill-"] {
    min-height: 38px !important;
    font-size: 12.5px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html[lang^="zh"] #map-provider-trigger,
  html[lang^="zh"] #map-category-trigger,
  html[lang^="zh"] #map-zoom-recenter-pill,
  html[lang^="zh"] #map-recenter-sg-btn {
    height: 40px !important;
    min-height: 40px !important;
  }

  html[lang^="zh"] #map-category-label {
    max-width: 178px !important;
  }

  html[lang^="zh"] #map-category-label .map-category-pill-title {
    font-size: 12.5px !important;
  }

  html[lang^="zh"] #map-category-label .map-category-pill-count {
    font-size: 11.5px !important;
  }
}

/* Narrow phones (360px–400px): keep Chinese Map Modal top bar uncrowded */
@media (max-width: 400px) {
  html[lang^="zh"] #map-top-bar-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 6px !important;
  }

  html[lang^="zh"] #map-top-pills-row {
    gap: 5px !important;
  }

  html[lang^="zh"] #map-provider-trigger,
  html[lang^="zh"] #map-category-trigger {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  html[lang^="zh"] #map-category-label {
    max-width: 162px !important;
  }

  html[lang^="zh"] #map-category-label .map-category-pill-title {
    font-size: 12px !important;
  }

  html[lang^="zh"] #map-recenter-sg-btn {
    min-width: 34px !important;
    width: 34px !important;
  }

  html[lang^="zh"] #map-zoom-recenter-pill button {
    min-width: 28px !important;
    width: 28px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Prevent squeezing "卫星视图" & longer Chinese category labels inside Map Modal dropdowns */
html[lang^="zh"] #map-provider-menu {
  max-width: 140px !important;
}

html[lang^="zh"] #map-category-menu {
  max-width: min(260px, calc(100vw - 2rem)) !important;
}

/* Map pin labels: comfortable Chinese CJK font & width */
html[lang^="zh"] .gmap-pin-label {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
  max-width: 170px !important;
}

/* Hero Ticker vs Contact Brand Ticker: distinct heights & instant hide on Framer Motion popLayout exiting nodes */
html[lang^="zh"] div[aria-live="polite"].justify-center {
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  overflow: hidden !important;
}

html[lang^="zh"] div[aria-live="polite"].justify-center > div:not([data-motion-pop-id]) {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[lang^="zh"] div[aria-live="polite"]:not(.justify-center) {
  height: 1.25rem !important;
  min-height: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

html[lang^="zh"] div[aria-live="polite"]:not(.justify-center) > span:not([data-motion-pop-id]) {
  line-height: 1.25rem !important;
  letter-spacing: 0.02em !important;
}

html[lang^="zh"] div[aria-live="polite"] [data-motion-pop-id],
html[lang^="zh"] div[aria-live="polite"] > div[style*="position: absolute"],
html[lang^="zh"] div[aria-live="polite"] > span[style*="position: absolute"] {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  transition: none !important;
  pointer-events: none !important;
}

/* Map popup status pill: crisp Chinese sans-serif without uppercase monospace squeeze */
html[lang^="zh"] .gmap-popup-status-badge {
  font-family: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

/* Section H2 bilingual headings: avoid mid-word English syllable breaks on /zh */
html[lang^="zh"] #section-overview h2 span,
html[lang^="zh"] #section-details h2 span,
html[lang^="zh"] #section-unit-types-pricing h2 span,
html[lang^="zh"] #section-highlights h2 span,
html[lang^="zh"] #section-map h2 span,
html[lang^="zh"] #section-floorplans h2 span,
html[lang^="zh"] #section-developer h2 span,
html[lang^="zh"] #section-faq h2 span,
html[lang^="zh"] #section-contact h2 span,
html[lang^="zh"] #section-related-projects h2 span,
html[lang^="zh"] .section-title-left span,
html[lang^="zh"] .section-title-group span {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Related Projects: show up to 2 lines on /zh so long bilingual project names aren't cut off before Chinese title */
html[lang^="zh"] #section-related-projects .related-proj-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  white-space: normal !important;
  line-height: 1.38 !important;
  max-height: 2.76em !important;
}

/* Search Filter dropdown popovers on narrow mobile viewports: prevent overflowing viewport edges */
@media (max-width: 480px) {
  html[lang^="zh"] #search-page-card .luxury-dropdown-scrollbar,
  html[lang^="zh"] body > .luxury-dropdown-scrollbar,
  html[lang^="zh"] #search-page-card [id^="filter-pill-"] + div,
  html[lang^="zh"] #search-page-card div[class*="absolute"] {
    max-width: calc(100vw - 24px) !important;
  }

  html[lang^="zh"] #search-page-card .luxury-dropdown-scrollbar button,
  html[lang^="zh"] #search-page-card .luxury-dropdown-scrollbar span,
  html[lang^="zh"] body > .luxury-dropdown-scrollbar button,
  html[lang^="zh"] body > .luxury-dropdown-scrollbar span {
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.4 !important;
  }
}

/* Progressive Payment Calculator stage pills: wider clamp so Chinese engineering stages stay legible */
html[lang^="zh"] main .max-w-\[120px\] {
  max-width: 158px !important;
}
