/* SOURCE: maal-global-section-headings.css */
/* =========================================================
   Maal Home - Global unified section headings
   Matches the Projects section heading style across public site sections.
   ========================================================= */
:root {
  --maal-heading-font: "Cairo", sans-serif;
  --maal-heading-title: #ffffff;
  --maal-heading-title-light: #18324b;
  --maal-heading-desc: rgba(234, 245, 255, .90);
  --maal-heading-desc-light: #607186;
  --maal-heading-line: #5a9ed8;
  --maal-heading-line-2: #2f7fc6;
}

/* Shared wrapper for every section title block */
.heading,
.home-section-heading,
.project-heading,
.section-header,
.section-title,
.service .heading,
.project .heading,
.blog-area .heading,
.team .heading,
.testimonial .heading,
.partner .heading,
.feature .heading,
.pricing .heading,
.corona-case .heading,
.countrywise .heading,
.newsletter-text {
  position: relative !important;
  z-index: 2 !important;
  width: min(820px, 100%) !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: clamp(34px, 5vw, 56px) !important;
  padding: 0 14px !important;
  text-align: center !important;
  font-family: var(--maal-heading-font) !important;
}

/* Main section title */
.heading h2,
.home-section-heading h2,
.project-heading h2,
.section-header h2,
.section-title h2,
.service .heading h2,
.project .heading h2,
.blog-area .heading h2,
.team .heading h2,
.testimonial .heading h2,
.partner .heading h2,
.feature .heading h2,
.pricing .heading h2,
.corona-case .heading h2,
.countrywise .heading h2,
.newsletter-text h2,
.page-banner .text h1 {
  position: relative !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 12px 22px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--maal-heading-font) !important;
  font-size: clamp(30px, 4vw, 54px) !important;
  line-height: 1.22 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: var(--maal-heading-title-light) !important;
  text-align: center !important;
  text-wrap: balance;
}

/* Remove older decorative blobs so every heading keeps the clean Projects look. */
.heading h2::before,
.home-section-heading h2::before,
.project-heading h2::before,
.section-header h2::before,
.section-title h2::before,
.service .heading h2::before,
.project .heading h2::before,
.blog-area .heading h2::before,
.team .heading h2::before,
.testimonial .heading h2::before,
.partner .heading h2::before,
.feature .heading h2::before,
.pricing .heading h2::before,
.corona-case .heading h2::before,
.countrywise .heading h2::before,
.newsletter-text h2::before,
.page-banner .text h1::before {
  content: none !important;
  display: none !important;
}

/* Blue underline exactly under the title */
.heading h2::after,
.home-section-heading h2::after,
.project-heading h2::after,
.section-header h2::after,
.section-title h2::after,
.service .heading h2::after,
.project .heading h2::after,
.blog-area .heading h2::after,
.team .heading h2::after,
.testimonial .heading h2::after,
.partner .heading h2::after,
.feature .heading h2::after,
.pricing .heading h2::after,
.corona-case .heading h2::after,
.countrywise .heading h2::after,
.newsletter-text h2::after,
.page-banner .text h1::after {
  content: "" !important;
  position: absolute !important;
  right: 50% !important;
  bottom: 0 !important;
  width: 116px !important;
  max-width: 70% !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(270deg, var(--maal-heading-line) 0%, var(--maal-heading-line-2) 100%) !important;
  box-shadow: 0 8px 18px rgba(90, 158, 216, .18) !important;
  transform: translateX(50%) !important;
  pointer-events: none !important;
}

/* Section description/subtitle */
.heading h3,
.home-section-heading h3,
.project-heading h3,
.section-header h3,
.section-header p,
.section-title h3,
.section-title p,
.service .heading h3,
.project .heading h3,
.blog-area .heading h3,
.team .heading h3,
.testimonial .heading h3,
.partner .heading h3,
.feature .heading h3,
.pricing .heading h3,
.corona-case .heading h3,
.countrywise .heading h3,
.newsletter-text p {
  display: block !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: 18px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--maal-heading-font) !important;
  font-size: clamp(15px, 1.7vw, 21px) !important;
  line-height: 1.8 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--maal-heading-desc-light) !important;
  text-align: center !important;
}

/* Dark/blue sections: keep the white Projects screenshot style. */
.project.project-parallax-jeddah .heading h2,
.project.project-parallax-jeddah .project-heading h2,
.project.project-parallax-jeddah.project-fixed-bg-section .heading h2,
.project.project-parallax-jeddah.project-fixed-bg-section .project-heading h2,
.newsletter-text h2,
.page-banner .text h1 {
  color: var(--maal-heading-title) !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .42) !important;
}

.project.project-parallax-jeddah .heading h3,
.project.project-parallax-jeddah .project-heading h3,
.project.project-parallax-jeddah.project-fixed-bg-section .heading h3,
.project.project-parallax-jeddah.project-fixed-bg-section .project-heading h3,
.newsletter-text p {
  color: var(--maal-heading-desc) !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .34) !important;
}

/* Make the Projects heading card keep the same centered title/description rhythm. */
.project.project-parallax-jeddah .project-heading,
.project.project-parallax-jeddah.project-fixed-bg-section .project-heading {
  margin-bottom: clamp(34px, 5vw, 56px) !important;
}

/* Page banners do not have descriptions, but their titles now share the same font/size/underline. */
.page-banner .text {
  text-align: center !important;
  font-family: var(--maal-heading-font) !important;
}

@media (max-width: 767.98px) {
  .heading,
  .home-section-heading,
  .project-heading,
  .section-header,
  .section-title,
  .service .heading,
  .project .heading,
  .blog-area .heading,
  .team .heading,
  .testimonial .heading,
  .partner .heading,
  .feature .heading,
  .pricing .heading,
  .corona-case .heading,
  .countrywise .heading,
  .newsletter-text {
    margin-bottom: 32px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .heading h2,
  .home-section-heading h2,
  .project-heading h2,
  .section-header h2,
  .section-title h2,
  .service .heading h2,
  .project .heading h2,
  .blog-area .heading h2,
  .team .heading h2,
  .testimonial .heading h2,
  .partner .heading h2,
  .feature .heading h2,
  .pricing .heading h2,
  .corona-case .heading h2,
  .countrywise .heading h2,
  .newsletter-text h2,
  .page-banner .text h1 {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.24 !important;
    padding-bottom: 18px !important;
  }

  .heading h2::after,
  .home-section-heading h2::after,
  .project-heading h2::after,
  .section-header h2::after,
  .section-title h2::after,
  .service .heading h2::after,
  .project .heading h2::after,
  .blog-area .heading h2::after,
  .team .heading h2::after,
  .testimonial .heading h2::after,
  .partner .heading h2::after,
  .feature .heading h2::after,
  .pricing .heading h2::after,
  .corona-case .heading h2::after,
  .countrywise .heading h2::after,
  .newsletter-text h2::after,
  .page-banner .text h1::after {
    width: 90px !important;
    height: 4px !important;
  }

  .heading h3,
  .home-section-heading h3,
  .project-heading h3,
  .section-header h3,
  .section-header p,
  .section-title h3,
  .section-title p,
  .service .heading h3,
  .project .heading h3,
  .blog-area .heading h3,
  .team .heading h3,
  .testimonial .heading h3,
  .partner .heading h3,
  .feature .heading h3,
  .pricing .heading h3,
  .corona-case .heading h3,
  .countrywise .heading h3,
  .newsletter-text p {
    width: min(94%, 760px) !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
    line-height: 1.85 !important;
    margin-top: 14px !important;
  }
}

/* =========================================================
   USER UPDATE - Force unified Projects-style heading on Why Us
   The Why Us section has its own highly-specific CSS, so this
   override is intentionally more specific and loaded last.
   ========================================================= */
.why-us-final-section .heading.home-section-heading.why-us-final-heading,
.why-us-final-section .home-section-heading.why-us-final-heading,
.why-us-final-section .why-us-final-heading{
  position: relative !important;
  z-index: 4 !important;
  width: min(820px, 100%) !important;
  max-width: 820px !important;
  margin: 0 auto clamp(34px, 5vw, 56px) !important;
  padding: 0 14px !important;
  text-align: center !important;
  font-family: var(--maal-heading-font) !important;
}

.why-us-final-section .heading.home-section-heading.why-us-final-heading h2,
.why-us-final-section .home-section-heading.why-us-final-heading h2,
.why-us-final-section .why-us-final-heading h2{
  position: relative !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 12px 22px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--maal-heading-font) !important;
  font-size: clamp(30px, 4vw, 54px) !important;
  line-height: 1.22 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: var(--maal-heading-title-light) !important;
  text-align: center !important;
  text-wrap: balance;
  text-shadow: none !important;
}

.why-us-final-section .heading.home-section-heading.why-us-final-heading h2::before,
.why-us-final-section .home-section-heading.why-us-final-heading h2::before,
.why-us-final-section .why-us-final-heading h2::before{
  content: none !important;
  display: none !important;
}

.why-us-final-section .heading.home-section-heading.why-us-final-heading h2::after,
.why-us-final-section .home-section-heading.why-us-final-heading h2::after,
.why-us-final-section .why-us-final-heading h2::after{
  content: "" !important;
  position: absolute !important;
  right: 50% !important;
  bottom: 0 !important;
  width: 116px !important;
  max-width: 70% !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(270deg, var(--maal-heading-line) 0%, var(--maal-heading-line-2) 100%) !important;
  box-shadow: 0 8px 18px rgba(90, 158, 216, .18) !important;
  transform: translateX(50%) !important;
  pointer-events: none !important;
}

.why-us-final-section .heading.home-section-heading.why-us-final-heading h3,
.why-us-final-section .home-section-heading.why-us-final-heading h3,
.why-us-final-section .why-us-final-heading h3{
  display: block !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: 18px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--maal-heading-font) !important;
  font-size: clamp(15px, 1.7vw, 21px) !important;
  line-height: 1.8 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--maal-heading-desc-light) !important;
  text-align: center !important;
  text-shadow: none !important;
}

@media (max-width: 767.98px) {
  .why-us-final-section .heading.home-section-heading.why-us-final-heading,
  .why-us-final-section .home-section-heading.why-us-final-heading,
  .why-us-final-section .why-us-final-heading{
    margin-bottom: 32px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .why-us-final-section .heading.home-section-heading.why-us-final-heading h2,
  .why-us-final-section .home-section-heading.why-us-final-heading h2,
  .why-us-final-section .why-us-final-heading h2{
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.24 !important;
    padding-bottom: 18px !important;
  }

  .why-us-final-section .heading.home-section-heading.why-us-final-heading h2::after,
  .why-us-final-section .home-section-heading.why-us-final-heading h2::after,
  .why-us-final-section .why-us-final-heading h2::after{
    width: 90px !important;
    height: 4px !important;
  }

  .why-us-final-section .heading.home-section-heading.why-us-final-heading h3,
  .why-us-final-section .home-section-heading.why-us-final-heading h3,
  .why-us-final-section .why-us-final-heading h3{
    width: min(94%, 760px) !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
    line-height: 1.85 !important;
    margin-top: 14px !important;
  }
}

/* SOURCE: mal-contact-widget.css */
:root {
    --mal-contact-navy: #0c2a36;
    --mal-contact-green: #20d86a;
    --mal-contact-teal: #10859b;
    --mal-contact-size: 64px;
    --mal-contact-radius: 20px;
    --mal-contact-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Make the actual header number clickable without changing its current design. */
.top .top-contact .mal-header-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit !important;
    text-decoration: none !important;
}

.top .top-contact .mal-header-phone-link span,
.top .top-contact .mal-header-phone-link i {
    margin: 0 !important;
}

.mal-contact-widget,
.mal-contact-widget *,
.mal-contact-widget *::before,
.mal-contact-widget *::after {
    box-sizing: border-box;
}

.mal-contact-widget {
    position: fixed;
    right: 0;
    top: 50%;
    width: var(--mal-contact-size);
    transform: translateY(-50%);
    z-index: 9998;
    direction: rtl;
    filter: drop-shadow(0 18px 28px rgba(11, 34, 45, .18));
    margin: 0;
    padding: 0;
    line-height: 1;
}

.mal-contact-widget__stack,
.mal-contact-widget__actions {
    display: block;
    width: var(--mal-contact-size);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.mal-contact-widget__row {
    position: relative;
    display: block;
    width: var(--mal-contact-size);
    height: var(--mal-contact-size);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.mal-contact-widget__toggle,
.mal-contact-widget__action {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: var(--mal-contact-size);
    height: var(--mal-contact-size);
    border: 0;
    outline: 0;
    color: #fff;
    text-decoration: none !important;
}

.mal-contact-widget__toggle {
    display: grid;
    place-items: center;
    background: var(--mal-contact-navy);
    border-radius: var(--mal-contact-radius) 0 0 0;
    cursor: pointer;
    z-index: 10;
    transition: transform .25s ease, box-shadow .25s ease, border-radius .35s var(--mal-contact-ease);
}

.mal-contact-widget__toggle:hover,
.mal-contact-widget__toggle:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(12, 42, 54, .25);
}

.mal-contact-widget__toggle svg {
    width: 25px;
    height: 25px;
    transition: transform .38s var(--mal-contact-ease);
}

.mal-contact-widget__action {
    display: block;
    overflow: visible;
}

.mal-contact-widget__action--whatsapp {
    background: var(--mal-contact-green);
}

.mal-contact-widget__action--phone {
    background: var(--mal-contact-teal);
    border-radius: 0;
}

.mal-contact-widget__icon {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--mal-contact-size);
    height: var(--mal-contact-size);
    display: grid;
    place-items: center;
    color: #fff;
    z-index: 3;
    pointer-events: none;
    background: inherit;
}

.mal-contact-widget__icon svg {
    display: block;
    width: 27px;
    height: 27px;
    transition: transform .28s ease;
}

.mal-contact-widget__label {
    position: absolute;
    top: 0;
    right: calc(var(--mal-contact-size) - 2px);
    height: var(--mal-contact-size);
    min-width: 118px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(24px) scaleX(.86);
    transform-origin: right center;
    pointer-events: none;
    z-index: 2;
    transition: opacity .22s ease, transform .42s var(--mal-contact-ease), box-shadow .3s ease;
}

.mal-contact-widget__action--whatsapp .mal-contact-widget__label {
    background: var(--mal-contact-green);
}

.mal-contact-widget__action--phone .mal-contact-widget__label {
    background: var(--mal-contact-teal);
    border-radius: 0 0 0 var(--mal-contact-radius);
}

/* Keep a single rounded outer corner. The old radius on the 64px phone tile
   created a transparent wedge below the label when it expanded on hover. */
.mal-contact-widget__action--phone .mal-contact-widget__icon {
    background: var(--mal-contact-teal);
    border-radius: 0 0 0 var(--mal-contact-radius);
    transition: border-radius .2s ease;
}

.mal-contact-widget__action--phone:hover .mal-contact-widget__icon,
.mal-contact-widget__action--phone:focus-visible .mal-contact-widget__icon {
    border-radius: 0;
}

.mal-contact-widget__action:hover .mal-contact-widget__label,
.mal-contact-widget__action:focus-visible .mal-contact-widget__label {
    opacity: 1;
    transform: translateX(0) scaleX(1);
    box-shadow: -14px 14px 28px rgba(10, 35, 47, .18);
}

.mal-contact-widget__action:hover .mal-contact-widget__icon svg,
.mal-contact-widget__action:focus-visible .mal-contact-widget__icon svg {
    transform: scale(1.06);
}

.mal-contact-widget__action-row {
    transition: height .35s var(--mal-contact-ease), opacity .22s ease .08s;
}

.mal-contact-widget.is-hidden .mal-contact-widget__actions {
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.mal-contact-widget.is-hidden .mal-contact-widget__action-row {
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: height .35s var(--mal-contact-ease), opacity .16s ease;
}

.mal-contact-widget.is-hidden .mal-contact-widget__toggle {
    border-radius: var(--mal-contact-radius) 0 0 var(--mal-contact-radius);
}

.mal-contact-widget.is-hidden .mal-contact-widget__toggle svg {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    :root {
        --mal-contact-size: 60px;
    }

    body {
        padding-bottom: calc(var(--mal-contact-size) + env(safe-area-inset-bottom, 0px));
    }

    .mal-contact-widget {
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        transform: none;
        filter: drop-shadow(0 -10px 24px rgba(11, 34, 45, .15));
    }

    .mal-contact-widget__stack,
    .mal-contact-widget__actions {
        width: 100%;
    }

    .mal-contact-widget__toggle-row {
        display: none;
    }

    .mal-contact-widget__actions,
    .mal-contact-widget.is-hidden .mal-contact-widget__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        direction: rtl;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    .mal-contact-widget__action-row,
    .mal-contact-widget.is-hidden .mal-contact-widget__action-row {
        width: 100%;
        height: var(--mal-contact-size);
        min-width: 0;
        overflow: hidden;
        opacity: 1;
        pointer-events: auto;
    }

    .mal-contact-widget__action {
        position: relative;
        width: 100%;
        height: var(--mal-contact-size);
        border-radius: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        overflow: hidden;
        transition: filter .22s ease;
    }

    .mal-contact-widget__action:hover,
    .mal-contact-widget__action:focus-visible {
        filter: brightness(.96);
    }

    .mal-contact-widget__icon {
        position: static;
        width: 27px;
        min-width: 27px;
        height: 27px;
    }

    .mal-contact-widget__icon svg {
        width: 23px;
        height: 23px;
    }

    .mal-contact-widget__label {
        position: static;
        min-width: 0;
        height: auto;
        padding: 0;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        opacity: 1;
        transform: none;
        font-size: 16px;
        line-height: 1;
        order: -1;
    }

    .mal-contact-widget,
    .mal-contact-widget__stack,
    .mal-contact-widget__actions,
    .mal-contact-widget__row,
    .mal-contact-widget__action {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .mal-contact-widget__action--phone .mal-contact-widget__icon,
    .mal-contact-widget__action--phone:hover .mal-contact-widget__icon,
    .mal-contact-widget__action--phone:focus-visible .mal-contact-widget__icon {
        background: transparent;
        border-radius: 0;
    }

    .floating-profile-download {
        bottom: calc(var(--mal-contact-size) + 12px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .scroll-top {
        bottom: calc(var(--mal-contact-size) + 15px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mal-contact-widget *,
    .mal-contact-widget *::before,
    .mal-contact-widget *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* SOURCE: apartment-models-section.css */
.mh-models-scope{width:100%;position:relative;isolation:isolate;display:block;overflow:hidden}
    .mh-models-scope {
      --navy: #020817;
      --navy-2: #00133f;
      --navy-3: #061a3b;
      --blue: #168ed0;
      --blue-dark: #0860a8;
      --sky: #7ee3ff;
      --white: #ffffff;
      --text: #eef8ff;
      --muted: rgba(238, 248, 255, 0.72);
      --line: rgba(126, 227, 255, 0.18);
      --panel: rgba(255, 255, 255, 0.045);
      --poster-ratio: 1017 / 1546;
      --card-w: clamp(112px, 12vw, 230px);
    }

    .mh-models-scope, .mh-models-scope * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    .mh-models-scope {
      scroll-behavior: smooth;
      background: var(--navy);
    }

    .mh-models-scope {
      min-width: 320px;
      min-height: 100vh;
      overflow-x: hidden;
      color: var(--text);
      background: var(--navy);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    }

    .mh-models-scope button,
    .mh-models-scope a {
      font: inherit;
    }

    .mh-models-scope button {
      border: 0;
    }

    .mh-models-scope img {
      display: block;
      max-width: 100%;
    }

    .mh-models-scope .app-view[hidden] {
      display: none !important;
    }

    /* =========================
       صفحة النماذج الرئيسية
       ========================= */
    .mh-models-scope .apartment-models-section {
      position: relative;
      width: 100%;
      min-height: 100vh;
      overflow: hidden;
      display: grid;
      place-items: center;
      isolation: isolate;
      perspective: 1600px;
      user-select: none;
      background:
        radial-gradient(circle at 50% 42%, rgba(22, 142, 208, 0.14), transparent 37%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy) 100%);
    }

    .mh-models-scope .apartment-models-section::before,
    .mh-models-scope .apartment-models-section::after {
      content: "";
      position: absolute;
      z-index: -1;
      width: 340px;
      height: 340px;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.16;
      pointer-events: none;
    }

    .mh-models-scope .apartment-models-section::before {
      top: -160px;
      right: -80px;
      background: var(--blue);
    }

    .mh-models-scope .apartment-models-section::after {
      bottom: -190px;
      left: -100px;
      background: var(--sky);
    }

    .mh-models-scope .hero-header {
      position: absolute;
      top: clamp(15px, 2.6vh, 27px);
      left: 50%;
      z-index: 20;
      width: min(980px, calc(100vw - 24px));
      transform: translateX(-50%);
      display: grid;
      gap: 10px;
      pointer-events: none;
    }

    .mh-models-scope .hero-title-row {
      display: flex;
      align-items: center;
      gap: clamp(10px, 2vw, 24px);
    }

    .mh-models-scope .hero-line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(126, 227, 255, 0.55), transparent);
    }

    .mh-models-scope .hero-title {
      padding: 10px 25px;
      border: 1px solid rgba(126, 227, 255, 0.22);
      border-radius: 17px;
      color: var(--white);
      background: rgba(0, 24, 80, 0.72);
      box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), inset 0 0 16px rgba(126, 227, 255, 0.04);
      backdrop-filter: blur(12px);
      font-size: clamp(17px, 1.6vw, 27px);
      font-weight: 950;
      white-space: nowrap;
    }

    .mh-models-scope .branch-tabs-shell {
      display: flex;
      justify-content: center;
      pointer-events: auto;
    }

    .mh-models-scope .branch-tabs {
      max-width: calc(100vw - 22px);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 6px;
      overflow-x: auto;
      border: 1px solid rgba(126, 227, 255, 0.15);
      border-radius: 999px;
      background: rgba(1, 15, 43, 0.72);
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(14px);
      scrollbar-width: none;
    }

    .mh-models-scope .branch-tabs::-webkit-scrollbar {
      display: none;
    }

    .mh-models-scope .branch-tab {
      min-width: max-content;
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 7px 14px;
      border: 1px solid transparent;
      border-radius: 999px;
      color: rgba(238, 248, 255, 0.72);
      background: transparent;
      cursor: pointer;
      font-size: clamp(11px, 0.83vw, 13px);
      font-weight: 900;
      transition: 220ms ease;
    }

    .mh-models-scope .branch-tab:hover {
      color: var(--white);
      background: rgba(126, 227, 255, 0.08);
    }

    .mh-models-scope .branch-tab.is-active {
      color: #031528;
      border-color: rgba(255, 255, 255, 0.5);
      background: linear-gradient(135deg, var(--sky), #43b9ed);
      box-shadow: 0 9px 18px rgba(22, 142, 208, 0.26);
    }

    .mh-models-scope .branch-count {
      min-width: 20px;
      height: 20px;
      display: grid;
      place-items: center;
      padding-inline: 5px;
      border-radius: 999px;
      color: inherit;
      background: rgba(255, 255, 255, 0.2);
      font-size: 10px;
      font-weight: 950;
    }

    .mh-models-scope .carousel-stage {
      position: relative;
      width: 100%;
      min-height: 100vh;
    }

    .mh-models-scope .carousel {
      position: relative;
      width: 100%;
      min-height: 100vh;
      cursor: grab;
      touch-action: pan-y;
      transform-style: preserve-3d;
    }

    .mh-models-scope .carousel.is-dragging {
      cursor: grabbing;
    }

    .mh-models-scope .carousel.is-dragging .slide,
    .mh-models-scope .carousel.is-dragging .slide img {
      transition: none !important;
    }

    .mh-models-scope .slide {
      position: absolute;
      top: 52%;
      left: 50%;
      width: var(--card-w);
      aspect-ratio: var(--slide-ratio, var(--poster-ratio));
      overflow: hidden;
      border: 1px solid rgba(126, 227, 255, 0.22);
      border-radius: 13px;
      background: #041228;
      box-shadow: 0 30px 55px rgba(0, 0, 0, 0.78), 0 0 14px rgba(22, 142, 208, 0.16);
      transform-style: preserve-3d;
      will-change: transform, opacity, filter;
      transition:
        transform 850ms cubic-bezier(0.18, 0.75, 0.18, 1),
        opacity 850ms ease,
        filter 850ms ease,
        box-shadow 850ms ease,
        border-color 850ms ease;
    }

    .mh-models-scope .slide.is-active {
      border-color: rgba(126, 227, 255, 0.82);
      box-shadow:
        0 38px 68px rgba(0, 0, 0, 0.82),
        0 0 0 1px rgba(126, 227, 255, 0.24),
        0 0 30px rgba(22, 142, 208, 0.24);
    }

    .mh-models-scope .slide::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%, rgba(0, 8, 23, 0.72) 100%);
      pointer-events: none;
    }

    .mh-models-scope .slide img,
    .mh-models-scope .main-preview img,
    .mh-models-scope .thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      pointer-events: none;
    }

    /* صور تجريبية حقيقية: ملء بطاقات النماذج والصور المصغرة بدون فراغات */
    .mh-models-scope .slide img,
    .mh-models-scope .thumb img {
      object-fit: cover;
    }

    .mh-models-scope .branch-badge {
      position: absolute;
      top: 7px;
      right: 7px;
      z-index: 3;
      min-height: 25px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 8px;
      border: 1px solid rgba(126, 227, 255, 0.2);
      border-radius: 999px;
      color: var(--white);
      background: rgba(0, 18, 52, 0.79);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
      backdrop-filter: blur(10px);
      font-size: clamp(8px, 0.65vw, 10px);
      font-weight: 900;
      line-height: 1;
    }

    .mh-models-scope .branch-badge::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--sky);
      box-shadow: 0 0 8px rgba(126, 227, 255, 0.75);
    }

    .mh-models-scope .slide-content {
      position: absolute;
      right: 7px;
      bottom: 8px;
      left: 7px;
      z-index: 2;
      display: grid;
      gap: 7px;
    }

    .mh-models-scope .apartment-name {
      min-height: 32px;
      display: grid;
      place-items: center;
      padding: 7px 9px;
      border-radius: 12px;
      color: var(--white);
      background: rgba(0, 18, 52, 0.82);
      backdrop-filter: blur(10px);
      font-size: clamp(10px, 0.8vw, 13px);
      font-weight: 950;
      line-height: 1.25;
      text-align: center;
    }

    .mh-models-scope .more-btn {
      min-height: 32px;
      border-radius: 999px;
      color: var(--white);
      background: linear-gradient(135deg, var(--sky), var(--blue));
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
      cursor: pointer;
      font-size: clamp(9px, 0.72vw, 12px);
      font-weight: 950;
      transition: transform 220ms ease, filter 220ms ease;
    }

    .mh-models-scope .more-btn:hover {
      transform: translateY(-2px);
      filter: brightness(1.08);
    }

    .mh-models-scope .branch-summary {
      position: absolute;
      right: 50%;
      bottom: clamp(54px, 7vh, 76px);
      z-index: 15;
      width: min(620px, calc(100vw - 28px));
      transform: translateX(50%);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: rgba(238, 248, 255, 0.74);
      font-size: clamp(11px, 0.82vw, 13px);
      font-weight: 800;
      text-align: center;
      pointer-events: none;
    }

    .mh-models-scope .branch-summary strong {
      color: var(--white);
      font-weight: 950;
    }

    .mh-models-scope .swipe-hint {
      position: absolute;
      left: 50%;
      bottom: clamp(14px, 2.3vh, 24px);
      z-index: 15;
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      transform: translateX(-50%);
      border: 1px solid rgba(126, 227, 255, 0.18);
      border-radius: 999px;
      color: rgba(238, 248, 255, 0.78);
      background: rgba(0, 24, 80, 0.58);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
      backdrop-filter: blur(12px);
      font-size: clamp(11px, 0.85vw, 13px);
      font-weight: 850;
      white-space: nowrap;
      pointer-events: none;
    }

    .mh-models-scope .swipe-hint-icon {
      width: 22px;
      height: 22px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      color: #04111e;
      background: linear-gradient(135deg, var(--sky), var(--white));
      font-size: 15px;
      animation: swipeNudge 1.8s ease-in-out infinite;
    }

    @keyframes swipeNudge {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(-4px); }
    }

    /* =========================
       صفحة التفاصيل الكاملة
       ========================= */
    .mh-models-scope .details-page {
      min-height: 100vh;
      padding: clamp(18px, 3vw, 38px);
      background:
        radial-gradient(circle at 82% 10%, rgba(22, 142, 208, 0.17), transparent 30%),
        radial-gradient(circle at 12% 92%, rgba(126, 227, 255, 0.08), transparent 32%),
        linear-gradient(145deg, #031027, var(--navy) 58%, #00143b);
    }

    .mh-models-scope .details-container {
      width: min(1180px, 100%);
      margin-inline: auto;
    }

    .mh-models-scope .details-topbar {
      position: sticky;
      top: 12px;
      z-index: 30;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: clamp(18px, 2.5vw, 30px);
      padding: 10px;
      border: 1px solid rgba(126, 227, 255, 0.13);
      border-radius: 21px;
      background: rgba(2, 15, 39, 0.82);
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
      backdrop-filter: blur(16px);
    }

    .mh-models-scope .back-btn {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 10px 17px;
      border: 1px solid rgba(126, 227, 255, 0.24);
      border-radius: 14px;
      color: var(--white);
      background: rgba(255, 255, 255, 0.055);
      cursor: pointer;
      font-weight: 950;
      transition: 220ms ease;
    }

    .mh-models-scope .back-btn:hover {
      transform: translateX(3px);
      background: rgba(126, 227, 255, 0.11);
    }

    .mh-models-scope .back-icon {
      font-size: 19px;
      line-height: 1;
    }

    .mh-models-scope .topbar-branch {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 15px;
      border-radius: 14px;
      color: var(--white);
      background: linear-gradient(135deg, rgba(22, 142, 208, 0.26), rgba(126, 227, 255, 0.08));
      font-size: 13px;
      font-weight: 900;
    }

    .mh-models-scope .topbar-branch::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--sky);
      box-shadow: 0 0 10px rgba(126, 227, 255, 0.75);
    }

    .mh-models-scope .details-grid {
      display: grid;
      grid-template-columns: minmax(420px, 54%) minmax(320px, 1fr);
      grid-template-areas:
        "visual info"
        "actions info";
      gap: clamp(20px, 2.8vw, 42px);
      align-items: start;
    }

    .mh-models-scope .details-visual {
      grid-area: visual;
      display: grid;
      gap: 16px;
    }

    .mh-models-scope .details-info {
      grid-area: info;
      display: grid;
      align-content: start;
      gap: clamp(16px, 2vw, 24px);
    }

    .mh-models-scope .details-actions {
      grid-area: actions;
    }

    .mh-models-scope .details-panel {
      border: 1px solid rgba(126, 227, 255, 0.15);
      background: rgba(255, 255, 255, 0.043);
      box-shadow: inset 0 0 22px rgba(126, 227, 255, 0.025), 0 22px 46px rgba(0, 0, 0, 0.16);
    }

    .mh-models-scope .details-image-card {
      width: 100%;
      padding: clamp(10px, 1.35vw, 15px);
      border-radius: 30px;
    }

    .mh-models-scope .main-preview {
      position: relative;
      width: 100%;
      height: min(67vh, 690px);
      max-height: min(67vh, 690px);
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 24px;
      background: #06162d;
    }

    .mh-models-scope .main-preview::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background-image: var(--main-bg-image);
      background-position: center;
      background-size: cover;
      filter: blur(30px) saturate(1.12) brightness(0.78);
      transform: scale(1.18);
      opacity: 0.68;
      transition: opacity 260ms ease, background-image 260ms ease;
    }

    .mh-models-scope .main-preview::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: radial-gradient(circle at 50% 48%, transparent 35%, rgba(1, 8, 23, 0.18) 100%);
      pointer-events: none;
    }

    .mh-models-scope .main-preview img {
      position: relative;
      z-index: 2;
      object-fit: contain;
      transition: opacity 320ms ease, transform 420ms cubic-bezier(0.18, 0.75, 0.18, 1), filter 320ms ease;
    }

    .mh-models-scope .main-preview.is-switching img {
      opacity: 0;
      transform: scale(0.96) translateY(8px);
      filter: blur(8px);
    }

    .mh-models-scope .main-image-label {
      position: absolute;
      right: 16px;
      bottom: 17px;
      left: 16px;
      z-index: 3;
      min-height: 38px;
      display: grid;
      place-items: center;
      padding: 9px 16px;
      border: 1px solid rgba(126, 227, 255, 0.22);
      border-radius: 999px;
      color: var(--white);
      background: rgba(0, 18, 52, 0.78);
      box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(12px);
      font-size: clamp(12px, 0.95vw, 14px);
      font-weight: 950;
      text-align: center;
    }

    .mh-models-scope .details-title-card {
      display: grid;
      gap: 15px;
      padding: clamp(19px, 2.2vw, 29px);
      border-radius: 27px;
    }

    .mh-models-scope .details-branch-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--sky);
      font-size: 13px;
      font-weight: 950;
    }

    .mh-models-scope .details-branch-line::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(126, 227, 255, 0.35), transparent);
    }

    .mh-models-scope .details-title {
      color: var(--white);
      font-size: clamp(29px, 3vw, 45px);
      font-weight: 950;
      line-height: 1.12;
      letter-spacing: -0.03em;
      text-wrap: balance;
    }

    .mh-models-scope .details-desc {
      color: var(--muted);
      font-size: clamp(14px, 1vw, 16px);
      line-height: 1.95;
    }

    .mh-models-scope .unit-meta {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .mh-models-scope .meta-item {
      min-height: 58px;
      display: grid;
      gap: 4px;
      padding: 12px 14px;
      border: 1px solid rgba(126, 227, 255, 0.11);
      border-radius: 17px;
      background: rgba(0, 18, 52, 0.45);
    }

    .mh-models-scope .meta-label {
      color: rgba(238, 248, 255, 0.52);
      font-size: 11px;
      font-weight: 800;
    }

    .mh-models-scope .meta-value {
      color: var(--white);
      font-size: 14px;
      font-weight: 950;
    }

    .mh-models-scope .gallery-shell {
      padding: clamp(14px, 1.55vw, 20px);
      border-radius: 26px;
    }

    .mh-models-scope .gallery-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .mh-models-scope .gallery-title {
      color: var(--white);
      font-size: 15px;
      font-weight: 950;
    }

    .mh-models-scope .gallery-hint {
      color: rgba(238, 248, 255, 0.52);
      font-size: 12px;
      font-weight: 800;
    }

    .mh-models-scope .gallery-row {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: clamp(8px, 1vw, 12px);
    }

    .mh-models-scope .thumb {
      position: relative;
      aspect-ratio: var(--thumb-ratio, var(--poster-ratio));
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.13);
      border-radius: 17px;
      background: #07182e;
      cursor: pointer;
      opacity: 0.72;
      transition: 220ms ease;
    }

    .mh-models-scope .thumb:hover,
    .mh-models-scope .thumb.is-selected {
      transform: translateY(-3px);
      border-color: rgba(126, 227, 255, 0.82);
      opacity: 1;
      box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
    }

    .mh-models-scope .thumb-label {
      position: absolute;
      right: 5px;
      bottom: 5px;
      left: 5px;
      z-index: 2;
      min-height: 23px;
      display: grid;
      place-items: center;
      padding: 4px 5px;
      border: 1px solid rgba(126, 227, 255, 0.13);
      border-radius: 9px;
      color: var(--white);
      background: rgba(0, 18, 52, 0.78);
      backdrop-filter: blur(8px);
      font-size: clamp(8px, 0.67vw, 10px);
      font-weight: 900;
      line-height: 1.15;
      text-align: center;
    }

    .mh-models-scope .details-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 13px;
      padding: 14px;
      border-radius: 26px;
    }

    .mh-models-scope .cta {
      position: relative;
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 17px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 20px;
      color: var(--white);
      text-decoration: none;
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
      transition: transform 240ms ease, box-shadow 240ms ease;
    }

    .mh-models-scope .cta::before {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
      pointer-events: none;
    }

    .mh-models-scope .cta > * {
      position: relative;
      z-index: 1;
    }

    .mh-models-scope .cta:hover {
      transform: translateY(-4px);
      box-shadow: 0 22px 36px rgba(0, 0, 0, 0.28);
    }

    .mh-models-scope .cta-primary {
      background: linear-gradient(135deg, #48b7ff, var(--blue) 58%, var(--blue-dark));
    }

    .mh-models-scope .cta-whatsapp {
      background: linear-gradient(135deg, #1fcf72, #0d9a52 58%, #087243);
    }

    .mh-models-scope .cta-main {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 13px;
    }

    .mh-models-scope .cta-icon {
      flex: 0 0 48px;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.16);
    }

    .mh-models-scope .cta svg {
      width: 22px;
      height: 22px;
      fill: currentColor;
    }

    .mh-models-scope .cta-title {
      font-size: clamp(14px, 1vw, 16px);
      font-weight: 950;
      white-space: nowrap;
    }

    .mh-models-scope .cta-arrow {
      flex: 0 0 auto;
      width: 31px;
      height: 31px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.16);
      font-weight: 900;
    }

    @media (max-width: 980px) {
      .mh-models-scope .details-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
          "info"
          "visual"
          "actions";
        width: min(720px, 100%);
        margin-inline: auto;
      }

      .mh-models-scope .main-preview {
        height: min(62vh, 630px);
      }

      .mh-models-scope .gallery-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }

    @media (max-width: 760px) {
      .mh-models-scope {
        --card-w: clamp(96px, 30vw, 146px);
      }

      .mh-models-scope .hero-header {
        top: 12px;
        gap: 7px;
      }

      .mh-models-scope .hero-title {
        padding: 9px 17px;
        font-size: 15px;
      }

      .mh-models-scope .branch-tabs {
        justify-content: flex-start;
        padding: 5px;
      }

      .mh-models-scope .branch-tab {
        min-height: 31px;
        padding: 6px 11px;
        font-size: 10px;
      }

      .mh-models-scope .slide {
        top: 51.5%;
      }

      .mh-models-scope .branch-summary {
        bottom: 53px;
        font-size: 10px;
      }

      .mh-models-scope .swipe-hint {
        bottom: 12px;
        min-height: 31px;
        padding: 6px 12px;
        font-size: 10px;
      }

      .mh-models-scope .details-page {
        padding: 10px;
      }

      .mh-models-scope .details-topbar {
        top: 7px;
        margin-bottom: 14px;
        padding: 7px;
        border-radius: 17px;
      }

      .mh-models-scope .back-btn,
      .mh-models-scope .topbar-branch {
        min-height: 39px;
        padding: 8px 12px;
        border-radius: 12px;
        font-size: 12px;
      }

      .mh-models-scope .details-grid {
        gap: 14px;
      }

      .mh-models-scope .details-title-card {
        gap: 11px;
        padding: 16px;
        border-radius: 21px;
      }

      .mh-models-scope .details-title {
        font-size: clamp(26px, 8vw, 36px);
      }

      .mh-models-scope .details-desc {
        font-size: 13px;
        line-height: 1.85;
      }

      .mh-models-scope .details-image-card {
        padding: 8px;
        border-radius: 21px;
      }

      .mh-models-scope .main-preview {
        height: auto;
        max-height: 52vh;
        aspect-ratio: var(--main-ratio, var(--poster-ratio));
        border-radius: 18px;
      }

      .mh-models-scope .main-preview::before {
        opacity: 0.48;
        filter: blur(24px) saturate(1.08) brightness(0.72);
      }

      .mh-models-scope .main-image-label {
        right: 9px;
        bottom: 9px;
        left: 9px;
        min-height: 32px;
        padding: 7px 10px;
        font-size: 11px;
      }

      .mh-models-scope .gallery-shell {
        padding: 11px;
        border-radius: 20px;
      }

      .mh-models-scope .gallery-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 10px;
      }

      .mh-models-scope .gallery-row {
        grid-template-columns: repeat(5, minmax(70px, 1fr));
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
      }

      .mh-models-scope .thumb {
        border-radius: 13px;
      }

      .mh-models-scope .details-actions {
        grid-template-columns: 1fr;
        padding: 11px;
        gap: 9px;
        border-radius: 20px;
      }

      .mh-models-scope .cta {
        min-height: 62px;
        padding: 10px 12px;
        border-radius: 17px;
      }

      .mh-models-scope .cta-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
      }
    }

    @media (max-width: 430px) {
      .mh-models-scope .hero-line {
        display: none;
      }

      .mh-models-scope .hero-title-row {
        justify-content: center;
      }

      .mh-models-scope .branch-tabs-shell {
        justify-content: stretch;
      }

      .mh-models-scope .branch-tabs {
        width: 100%;
      }

      .mh-models-scope .branch-summary {
        width: calc(100vw - 20px);
      }

      .mh-models-scope .unit-meta {
        grid-template-columns: 1fr;
      }

      .mh-models-scope .topbar-branch {
        max-width: 52vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .mh-models-scope, .mh-models-scope *,
      .mh-models-scope *::before,
      .mh-models-scope *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
  
    /* =====================================================
       Responsive refinement - mobile overlays and all pages
       ===================================================== */
    .mh-models-scope,
    .mh-models-scope {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow-x: clip;
    }

    .mh-models-scope,
    .mh-models-scope .app-shell,
    .mh-models-scope .app-view,
    .mh-models-scope .apartment-models-section,
    .mh-models-scope .details-page,
    .mh-models-scope .details-container,
    .mh-models-scope .details-grid,
    .mh-models-scope .details-visual,
    .mh-models-scope .details-info,
    .mh-models-scope .details-panel {
      min-width: 0;
      max-width: 100%;
    }

    .mh-models-scope img,
    .mh-models-scope svg {
      max-width: 100%;
    }

    .mh-models-scope .apartment-models-section,
    .mh-models-scope .carousel-stage,
    .mh-models-scope .carousel {
      min-height: 100vh;
      min-height: 100svh;
    }

    .mh-models-scope .details-page {
      width: 100%;
      overflow-x: clip;
    }

    .mh-models-scope .details-topbar,
    .mh-models-scope .details-grid,
    .mh-models-scope .details-title-card,
    .mh-models-scope .details-actions,
    .mh-models-scope .gallery-shell,
    .mh-models-scope .unit-meta {
      width: 100%;
    }

    .mh-models-scope .details-title,
    .mh-models-scope .details-desc,
    .mh-models-scope .meta-value,
    .mh-models-scope .gallery-title,
    .mh-models-scope .gallery-hint,
    .mh-models-scope .cta-title {
      overflow-wrap: anywhere;
    }

    @media (max-width: 760px) {
      /* النصوص فوق صور النماذج أصغر وأنظف في الجوال */
      .mh-models-scope .branch-badge {
        top: 5px;
        right: 5px;
        min-height: 19px;
        gap: 3px;
        padding: 3px 6px;
        border-radius: 999px;
        font-size: 7px;
        line-height: 1;
      }

      .mh-models-scope .branch-badge::before {
        width: 4px;
        height: 4px;
      }

      .mh-models-scope .slide-content {
        right: 5px;
        bottom: 5px;
        left: 5px;
        gap: 4px;
      }

      .mh-models-scope .apartment-name {
        min-height: 24px;
        padding: 4px 5px;
        border-radius: 8px;
        font-size: 8.5px;
        line-height: 1.15;
      }

      .mh-models-scope .more-btn {
        min-height: 25px;
        padding-inline: 5px;
        font-size: 8px;
        line-height: 1;
      }

      .mh-models-scope .hero-header {
        width: calc(100% - 16px);
      }

      .mh-models-scope .hero-title {
        max-width: calc(100vw - 28px);
        padding: 8px 14px;
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
      }

      .mh-models-scope .branch-tabs-shell,
      .mh-models-scope .branch-tabs {
        width: 100%;
        max-width: 100%;
      }

      .mh-models-scope .branch-tabs {
        justify-content: flex-start;
        scroll-snap-type: x proximity;
        overscroll-behavior-inline: contain;
      }

      .mh-models-scope .branch-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
      }

      .mh-models-scope .details-page {
        padding: 8px;
      }

      .mh-models-scope .details-topbar {
        top: 6px;
        gap: 7px;
      }

      .mh-models-scope .back-btn,
      .mh-models-scope .topbar-branch {
        min-width: 0;
        max-width: calc(50% - 4px);
        padding: 8px 10px;
        font-size: 11px;
      }

      .mh-models-scope .back-btn {
        flex: 0 1 auto;
      }

      .mh-models-scope .topbar-branch {
        flex: 0 1 auto;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      .mh-models-scope .details-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
      }

      .mh-models-scope .details-title-card {
        padding: 14px;
      }

      .mh-models-scope .details-branch-line {
        gap: 8px;
        font-size: 11px;
      }

      .mh-models-scope .details-title {
        font-size: clamp(23px, 7vw, 32px);
        line-height: 1.18;
      }

      .mh-models-scope .details-desc {
        font-size: 12px;
        line-height: 1.75;
      }

      .mh-models-scope .unit-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
      }

      .mh-models-scope .meta-item {
        min-height: 52px;
        padding: 10px;
        border-radius: 14px;
      }

      .mh-models-scope .meta-label {
        font-size: 9px;
      }

      .mh-models-scope .meta-value {
        font-size: 11px;
        line-height: 1.35;
      }

      .mh-models-scope .main-preview {
        width: 100%;
        max-width: 100%;
        max-height: min(54svh, 560px);
      }

      .mh-models-scope .main-image-label {
        right: 7px;
        bottom: 7px;
        left: 7px;
        min-height: 27px;
        padding: 5px 8px;
        font-size: 9px;
      }

      .mh-models-scope .gallery-title {
        font-size: 13px;
      }

      .mh-models-scope .gallery-hint {
        font-size: 10px;
      }

      .mh-models-scope .gallery-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        overflow: visible;
        padding-bottom: 0;
      }

      .mh-models-scope .thumb {
        min-width: 0;
      }

      .mh-models-scope .thumb-label {
        right: 4px;
        bottom: 4px;
        left: 4px;
        min-height: 19px;
        padding: 3px 4px;
        border-radius: 7px;
        font-size: 7px;
      }

      .mh-models-scope .details-actions {
        width: 100%;
      }

      .mh-models-scope .cta {
        width: 100%;
        min-width: 0;
      }

      .mh-models-scope .cta-main {
        min-width: 0;
      }

      .mh-models-scope .cta-title {
        font-size: 13px;
      }
    }

    @media (max-width: 430px) {
      .mh-models-scope {
        --card-w: clamp(92px, 29vw, 122px);
      }

      .mh-models-scope .hero-header {
        top: 9px;
        gap: 5px;
      }

      .mh-models-scope .hero-title {
        padding: 7px 12px;
        border-radius: 13px;
        font-size: 12px;
      }

      .mh-models-scope .branch-tabs {
        gap: 4px;
        padding: 4px;
      }

      .mh-models-scope .branch-tab {
        min-height: 28px;
        gap: 4px;
        padding: 5px 9px;
        font-size: 9px;
      }

      .mh-models-scope .branch-count {
        min-width: 17px;
        height: 17px;
        padding-inline: 4px;
        font-size: 8px;
      }

      .mh-models-scope .branch-badge {
        max-width: calc(100% - 10px);
        min-height: 17px;
        padding: 3px 5px;
        font-size: 6.5px;
      }

      .mh-models-scope .slide-content {
        gap: 3px;
      }

      .mh-models-scope .apartment-name {
        min-height: 22px;
        padding: 3px 4px;
        font-size: 7.5px;
      }

      .mh-models-scope .more-btn {
        min-height: 23px;
        font-size: 7px;
      }

      .mh-models-scope .branch-summary {
        bottom: 49px;
        padding-inline: 6px;
        font-size: 9px;
        line-height: 1.35;
      }

      .mh-models-scope .swipe-hint {
        min-height: 28px;
        padding: 5px 9px;
        font-size: 9px;
      }

      .mh-models-scope .details-page {
        padding: 6px;
      }

      .mh-models-scope .details-topbar {
        padding: 6px;
        border-radius: 14px;
      }

      .mh-models-scope .back-btn,
      .mh-models-scope .topbar-branch {
        min-height: 36px;
        max-width: calc(50% - 3px);
        padding: 7px 8px;
        border-radius: 10px;
        font-size: 10px;
      }

      .mh-models-scope .back-icon {
        font-size: 15px;
      }

      .mh-models-scope .details-title-card,
      .mh-models-scope .details-image-card,
      .mh-models-scope .gallery-shell,
      .mh-models-scope .details-actions {
        border-radius: 17px;
      }

      .mh-models-scope .details-title-card {
        padding: 12px;
      }

      .mh-models-scope .details-title {
        font-size: clamp(21px, 7.5vw, 29px);
      }

      .mh-models-scope .unit-meta {
        grid-template-columns: 1fr;
      }

      .mh-models-scope .meta-item {
        min-height: 48px;
      }

      .mh-models-scope .main-preview {
        max-height: min(50svh, 470px);
        border-radius: 15px;
      }

      .mh-models-scope .gallery-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
      }

      .mh-models-scope .cta {
        min-height: 57px;
        padding: 9px 10px;
        border-radius: 15px;
      }

      .mh-models-scope .cta-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
      }

      .mh-models-scope .cta svg {
        width: 19px;
        height: 19px;
      }

      .mh-models-scope .cta-title {
        font-size: 12px;
      }

      .mh-models-scope .cta-arrow {
        width: 27px;
        height: 27px;
        font-size: 13px;
      }
    }

    @media (max-width: 340px) {
      .mh-models-scope {
        --card-w: clamp(86px, 28vw, 102px);
      }

      .mh-models-scope .hero-title {
        font-size: 11px;
      }

      .mh-models-scope .branch-tab {
        padding-inline: 7px;
        font-size: 8.5px;
      }

      .mh-models-scope .apartment-name {
        font-size: 7px;
      }

      .mh-models-scope .more-btn {
        font-size: 6.5px;
      }

      .mh-models-scope .back-btn,
      .mh-models-scope .topbar-branch {
        font-size: 9px;
      }
    }

    @media (max-height: 600px) and (orientation: landscape) {
      .mh-models-scope .hero-header {
        top: 7px;
        gap: 4px;
      }

      .mh-models-scope .hero-title {
        padding-block: 6px;
        font-size: 12px;
      }

      .mh-models-scope .branch-tab {
        min-height: 27px;
        padding-block: 4px;
      }

      .mh-models-scope .slide {
        top: 55%;
      }

      .mh-models-scope .branch-summary {
        bottom: 42px;
      }

      .mh-models-scope .swipe-hint {
        bottom: 7px;
      }

      .mh-models-scope .main-preview {
        max-height: 72svh;
      }
    }

  
    /* =========================
       ألوان أزرار هوية مال هوم
       مستخرجة من درجات الشعار: كحلي + أزرق ملكي
       ========================= */
    .mh-models-scope {
      --brand-navy: #022055;
      --brand-navy-deep: #01183f;
      --brand-blue: #0c6fbe;
      --brand-blue-2: #176fba;
      --brand-blue-soft: #2b87cc;
    }

    .mh-models-scope .branch-tab {
      border-color: rgba(43, 135, 204, 0.08);
    }

    .mh-models-scope .branch-tab:hover {
      color: var(--white);
      border-color: rgba(43, 135, 204, 0.34);
      background: rgba(12, 111, 190, 0.14);
    }

    .mh-models-scope .branch-tab.is-active {
      color: var(--white);
      border-color: rgba(80, 157, 216, 0.64);
      background: linear-gradient(135deg, var(--brand-blue) 0%, #07528f 52%, var(--brand-navy) 100%);
      box-shadow: 0 9px 20px rgba(1, 24, 63, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .mh-models-scope .branch-tab.is-active .branch-count {
      color: var(--white);
      background: rgba(255, 255, 255, 0.17);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .mh-models-scope .more-btn {
      color: var(--white);
      border: 1px solid rgba(80, 157, 216, 0.52);
      background: linear-gradient(135deg, var(--brand-blue-2) 0%, #075a9d 52%, var(--brand-navy) 100%);
      box-shadow: 0 10px 20px rgba(1, 24, 63, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .mh-models-scope .more-btn:hover {
      filter: none;
      background: linear-gradient(135deg, #2184cf 0%, var(--brand-blue) 54%, #032d68 100%);
      box-shadow: 0 14px 24px rgba(1, 24, 63, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .mh-models-scope .back-btn {
      border-color: rgba(43, 135, 204, 0.38);
      background: linear-gradient(135deg, rgba(12, 111, 190, 0.28), rgba(2, 32, 85, 0.82));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .mh-models-scope .back-btn:hover {
      background: linear-gradient(135deg, rgba(23, 111, 186, 0.46), rgba(2, 32, 85, 0.96));
    }

    .mh-models-scope .topbar-branch {
      border: 1px solid rgba(43, 135, 204, 0.3);
      background: linear-gradient(135deg, rgba(12, 111, 190, 0.32), rgba(2, 32, 85, 0.72));
    }

    .mh-models-scope .topbar-branch::before,
    .mh-models-scope .branch-badge::before {
      background: var(--brand-blue-soft);
      box-shadow: 0 0 10px rgba(43, 135, 204, 0.65);
    }

    .mh-models-scope .swipe-hint-icon {
      color: var(--white);
      background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-navy));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .mh-models-scope .cta-primary {
      background: linear-gradient(135deg, var(--brand-blue-2) 0%, #075b9f 52%, var(--brand-navy) 100%);
      border-color: rgba(80, 157, 216, 0.46);
    }

    .mh-models-scope .cta-whatsapp {
      background: linear-gradient(135deg, #0a5f9f 0%, #06477e 52%, var(--brand-navy) 100%);
      border-color: rgba(80, 157, 216, 0.4);
    }

    .mh-models-scope .cta-whatsapp .cta-icon {
      background: rgba(16, 160, 86, 0.92);
      border-color: rgba(107, 225, 165, 0.42);
      box-shadow: 0 8px 18px rgba(7, 87, 47, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .mh-models-scope .cta:hover {
      box-shadow: 0 22px 38px rgba(1, 24, 63, 0.42);
    }

  

    /* إصلاح المسافة بين تفاصيل الوحدة وأزرار التواصل في الشاشات الكبيرة */
    @media (min-width: 981px) {
      .mh-models-scope .details-grid {
        grid-template-areas: "visual info";
        row-gap: 0;
      }

      .mh-models-scope .details-info {
        grid-area: info;
        display: grid;
        align-content: start;
        gap: 10px;
      }

      .mh-models-scope .details-actions {
        grid-area: auto;
        margin-top: 0;
      }
    }

    @media (max-width: 980px) {
      .mh-models-scope .details-info {
        display: contents;
      }

      .mh-models-scope .details-title-card {
        grid-area: info;
      }

      .mh-models-scope .details-actions {
        grid-area: actions;
      }
    }

/* إضافات النسخة المرتبطة بقاعدة البيانات */
.mh-models-scope .details-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.mh-models-scope .feature-chip{padding:11px 13px;border:1px solid rgba(126,227,255,.16);border-radius:13px;background:rgba(126,227,255,.055);color:rgba(238,248,255,.88);font-size:13px;font-weight:800}.mh-models-scope .details-actions .cta{text-decoration:none}.mh-models-scope .admin-floating-link{position:fixed;left:14px;bottom:14px;z-index:1000;padding:8px 11px;border:1px solid rgba(126,227,255,.18);border-radius:10px;background:rgba(1,15,43,.72);color:rgba(238,248,255,.55);text-decoration:none;font-size:11px;backdrop-filter:blur(10px)}
@media(max-width:640px){.mh-models-scope .details-features{grid-template-columns:1fr}.mh-models-scope .admin-floating-link{display:none}}

.mh-models-scope .back-btn{text-decoration:none}


/* ==================================================
   Mal Home custom update - apartment models spacing
   ================================================== */
.mh-models-scope {
  min-height: auto !important;
}
.mh-models-scope .apartment-models-section {
  min-height: clamp(600px, 76svh, 820px) !important;
  min-height: clamp(600px, 76vh, 820px) !important;
}
.mh-models-scope .carousel-stage,
.mh-models-scope .carousel {
  min-height: clamp(600px, 76svh, 820px) !important;
  min-height: clamp(600px, 76vh, 820px) !important;
}
.mh-models-scope .hero-header {
  top: clamp(12px, 2.2vh, 22px);
}
.mh-models-scope .slide {
  top: 50.5%;
}
.mh-models-scope .branch-summary {
  bottom: clamp(40px, 5.3vh, 58px);
}
.mh-models-scope .swipe-hint {
  bottom: clamp(8px, 1.5vh, 16px);
}

@media (max-width: 991.98px) {
  .mh-models-scope .apartment-models-section,
  .mh-models-scope .carousel-stage,
  .mh-models-scope .carousel {
    min-height: 620px !important;
  }
  .mh-models-scope .branch-summary {
    bottom: 34px;
  }
}

@media (max-width: 767.98px) {
  .mh-models-scope .apartment-models-section,
  .mh-models-scope .carousel-stage,
  .mh-models-scope .carousel {
    min-height: 560px !important;
  }
  .mh-models-scope .hero-header {
    top: 10px;
  }
  .mh-models-scope .slide {
    top: 49.5%;
  }
  .mh-models-scope .branch-summary {
    bottom: 28px;
    width: min(520px, calc(100vw - 26px));
  }
  .mh-models-scope .swipe-hint {
    bottom: 8px;
  }
}

@media (max-width: 575.98px) {
  .mh-models-scope .apartment-models-section,
  .mh-models-scope .carousel-stage,
  .mh-models-scope .carousel {
    min-height: 520px !important;
  }
  .mh-models-scope .hero-header {
    width: min(100%, calc(100vw - 18px));
  }
  .mh-models-scope .hero-title {
    padding: 8px 18px;
  }
  .mh-models-scope .slide {
    top: 48.5%;
  }
  .mh-models-scope .branch-summary {
    bottom: 22px;
    font-size: 11px;
  }
  .mh-models-scope .swipe-hint {
    bottom: 6px;
    padding: 7px 12px;
  }
}


/* ===== 2026-07-18: apartment filters order and summary cleanup ===== */
.mh-models-scope .branch-tabs {
  direction: rtl !important;
}
.mh-models-scope .branch-tab {
  direction: rtl !important;
  flex-direction: row !important;
}
.mh-models-scope .branch-summary {
  display: none !important;
}

/* 2026-10-09 - Compact mobile section instead of fixed 520px blank space */
@media (max-width: 767.98px) {
  .mh-models-scope .apartment-models-section,
  .mh-models-scope .carousel-stage,
  .mh-models-scope .carousel {
    min-height: clamp(340px, 65svh, 440px) !important;
    height: clamp(340px, 65svh, 440px);
  }
  .mh-models-scope .slide { top: 48% !important; }
  .mh-models-scope .branch-summary { bottom: 47px !important; }
  .mh-models-scope .swipe-hint { bottom: 9px !important; }
}
@media (max-width: 575.98px) {
  .mh-models-scope .apartment-models-section,
  .mh-models-scope .carousel-stage,
  .mh-models-scope .carousel {
    min-height: clamp(315px, 60svh, 405px) !important;
    height: clamp(315px, 60svh, 405px);
  }
  .mh-models-scope .slide { top: 47% !important; }
  .mh-models-scope .branch-summary { bottom: 44px !important; }
}


/* ===== 2026-10-09 follow-up fixes: tighter mobile height + remove side blur + force horizontal thumbs ===== */
.mh-models-scope .main-preview::before,
.mh-models-scope .main-preview::after {
  content: none !important;
  display: none !important;
}

.mh-models-scope .main-preview {
  background: #06162d !important;
}

@media (max-width: 767.98px) {
  .mh-models-scope .apartment-models-section,
  .mh-models-scope .carousel-stage,
  .mh-models-scope .carousel {
    min-height: clamp(280px, 52svh, 360px) !important;
    height: clamp(280px, 52svh, 360px) !important;
  }

  .mh-models-scope .hero-header {
    top: 8px !important;
  }

  .mh-models-scope .slide {
    top: 45% !important;
  }

  .mh-models-scope .swipe-hint {
    bottom: 7px !important;
  }
}

@media (max-width: 575.98px) {
  .mh-models-scope .apartment-models-section,
  .mh-models-scope .carousel-stage,
  .mh-models-scope .carousel {
    min-height: clamp(260px, 48svh, 330px) !important;
    height: clamp(260px, 48svh, 330px) !important;
  }

  .mh-models-scope .slide {
    top: 43.5% !important;
  }

  .mh-models-scope .branch-summary {
    bottom: 34px !important;
  }
}

/* Keep details gallery as one horizontal row on mobile */
@media (max-width: 767.98px) {
  .mh-models-scope .gallery-row {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(120px, 36vw) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .mh-models-scope .thumb {
    min-width: 120px !important;
    scroll-snap-align: start;
  }
}

@media (max-width: 575.98px) {
  .mh-models-scope .gallery-row {
    grid-auto-columns: minmax(110px, 42vw) !important;
    gap: 7px !important;
  }

  .mh-models-scope .thumb {
    min-width: 110px !important;
  }
}

/* 2026-10-09 v4: preserve adequate space for model cards and swipe instruction */
@media (max-width: 767.98px) {
 .mh-models-scope .apartment-models-section,
 .mh-models-scope .carousel-stage,
 .mh-models-scope .carousel {
   min-height: 400px !important;
   height: 400px !important;
 }
 .mh-models-scope .slide {top: 49% !important;}
 .mh-models-scope .swipe-hint {bottom: 12px !important;}
}
@media (max-width: 575.98px) {
 .mh-models-scope .apartment-models-section,
 .mh-models-scope .carousel-stage,
 .mh-models-scope .carousel {
   min-height: 390px !important;
   height: 390px !important;
 }
 .mh-models-scope .slide {top: 50% !important;}
 .mh-models-scope .swipe-hint {bottom: 11px !important;}
}

/* SOURCE: maal-home-stability-fixes.css */
/* =========================================================
   Maal Home homepage stability fixes - 2026-07-14
   Header loading, one-slide containment, compact projects heading,
   and matching Why Us / Services typography.
   ========================================================= */


/* =========================================================
   Single root scrollbar + Maal Home navy scrollbar
   Keeps one stable scrollbar from the first paint and prevents
   the temporary html/body double-scrollbar during page startup.
   ========================================================= */
:root {
  --mh-scrollbar-navy: #022056;
  --mh-scrollbar-track: #edf2f7;
}

html {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  scrollbar-gutter: stable !important;
  scrollbar-width: thin;
  scrollbar-color: var(--mh-scrollbar-navy) var(--mh-scrollbar-track);
}

body:not(.mobile-menu-open):not(.swal2-shown) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--mh-scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 44px;
  background: var(--mh-scrollbar-navy);
  border: 2px solid var(--mh-scrollbar-track);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #0b3470;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: var(--mh-scrollbar-track);
}

/* Preserve the existing page-lock behavior for the mobile drawer and dialogs. */
html.mobile-menu-open,
body.mobile-menu-open,
body.swal2-shown:not(.swal2-toast-shown) {
  overflow: hidden !important;
}

/* The header must never be animated by AOS or the generic site reveal system. */
html body .top,
html body .navbar-area,
html body .desktop-navbar,
html body .mobile-header,
html body.site-motion-ready .top,
html body.site-motion-ready .navbar-area,
html body.site-motion-ready .desktop-navbar,
html body.site-motion-ready .mobile-header,
html body .top[data-aos],
html body .navbar-area[data-aos],
html body .mobile-header[data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition-property: background-color, box-shadow, border-color !important;
}

/* Above-the-fold navigation stays painted while its logo/font finishes loading. */
html body #stickymenu.desktop-navbar,
html body #stickymenu.desktop-navbar .main-nav,
html body #stickymenu.desktop-navbar .navbar {
  background: #ffffff !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Before Owl is ready, show exactly the first slide and reserve the correct space. */
.slider .slide-carousel:not(.owl-loaded) {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}

.slider .slide-carousel:not(.owl-loaded) > .slider-item {
  display: none !important;
}

.slider .slide-carousel:not(.owl-loaded) > .slider-item:first-child {
  display: block !important;
}

/* Strict one-slide viewport: prevents any edge of the next slide from leaking in. */
.slider,
.slider .slide-carousel,
.slider .slide-carousel .owl-stage-outer {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  contain: layout paint !important;
}

.slider .slide-carousel .owl-stage {
  display: flex !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  will-change: transform !important;
}

.slider .slide-carousel .owl-item {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.slider .slide-carousel .owl-item > .slider-item,
.slider .slide-carousel .owl-item .slider-mobile-media,
.slider .slide-carousel .owl-item .slider-mobile-media img {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Inactive cloned items may exist for looping, but must never show at the viewport edge. */
.slider .slide-carousel.owl-loaded .owl-item:not(.active) {
  opacity: 0 !important;
  pointer-events: none !important;
}

.slider .slide-carousel.owl-loaded .owl-item.active {
  opacity: 1 !important;
}

/* Match Why Us card typography exactly to the Services cards. */
.why-us-final-section .about-card h3 {
  font-size: 1.1rem !important;
  line-height: 1.55 !important;
  margin-bottom: 6px !important;
}

.why-us-final-section .about-card p {
  font-size: .9rem !important;
  line-height: 1.65 !important;
}

/* Compact the blue Projects heading card without losing hierarchy. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-heading {
  width: min(640px, calc(100% - 32px)) !important;
  max-width: 640px !important;
  margin: 0 auto clamp(18px, 2vw, 26px) !important;
  padding: clamp(10px, 1.2vw, 15px) clamp(16px, 2vw, 24px) !important;
  border-radius: 18px !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-heading h2 {
  font-size: clamp(30px, 3.2vw, 46px) !important;
  line-height: 1.2 !important;
  padding-bottom: 14px !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-heading h2::after {
  width: 92px !important;
  height: 4px !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-heading h3 {
  width: min(590px, 100%) !important;
  margin-top: 10px !important;
  font-size: clamp(14px, 1.35vw, 18px) !important;
  line-height: 1.7 !important;
}

@media (max-width: 767.98px) {
  .why-us-final-section .about-card h3 {
    font-size: 1rem !important;
  }

  .why-us-final-section .about-card p {
    font-size: .85rem !important;
  }

  .project.project-parallax-jeddah.project-fixed-bg-section .project-heading {
    width: calc(100% - 20px) !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    margin-bottom: 18px !important;
  }

  .project.project-parallax-jeddah.project-fixed-bg-section .project-heading h2 {
    font-size: clamp(26px, 8vw, 36px) !important;
    padding-bottom: 12px !important;
  }

  .project.project-parallax-jeddah.project-fixed-bg-section .project-heading h2::after {
    width: 76px !important;
    height: 3px !important;
  }

  .project.project-parallax-jeddah.project-fixed-bg-section .project-heading h3 {
    width: 94% !important;
    margin-top: 8px !important;
    font-size: clamp(13px, 3.8vw, 16px) !important;
    line-height: 1.65 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider .slide-carousel .owl-stage,
  .slider .slide-carousel .owl-item {
    transition: none !important;
  }
}

/* =========================================================
   Homepage slider smooth cross-fade - 2026-07-14
   Uses stacked slides instead of horizontal Owl stage movement.
   This removes the visible jump at the loop boundary and prevents
   any portion of the next image from entering the viewport.
   ========================================================= */
.slider .slide-carousel.mh-fade-slider {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
  contain: layout paint !important;
  background: #ffffff !important;
}

.slider .slide-carousel.mh-fade-slider > .slider-item {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: opacity !important;
  transition:
    opacity 1050ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 1050ms !important;
}

.slider .slide-carousel.mh-fade-slider > .slider-item.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
  transition:
    opacity 1050ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 0s !important;
}

.slider .slide-carousel.mh-fade-slider > .slider-item .slider-mobile-media,
.slider .slide-carousel.mh-fade-slider > .slider-item .slider-mobile-media img {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: translate3d(0, 0, 0) !important;
}

.slider .slide-carousel.mh-fade-slider .mh-fade-dots {
  z-index: 20 !important;
}

@media (prefers-reduced-motion: reduce) {
  .slider .slide-carousel.mh-fade-slider > .slider-item,
  .slider .slide-carousel.mh-fade-slider > .slider-item.is-active {
    transition: none !important;
  }
}

