/* ==========================================================================
   ASA GROUP — 3D SPATIAL ARCHITECTURE LAYER (asa-3d.css)
   Loaded at the end of <body> so it overrides legacy transform:none !important
   rules on .asa-project-logo-card, .asa-mrk-splash, and all sections.
   ========================================================================== */

:root {
  --asa-3d-perspective: 1200px;
  --asa-3d-sheen: rgba(255, 255, 255, 0.18);
  --asa-3d-edge: rgba(255, 255, 255, 0.28);
  --asa-3d-shadow: rgba(0, 0, 0, 0.62);
  --asa-3d-glow: rgba(242, 240, 235, 0.09);
  --asa-3d-stage-bg: rgba(8, 8, 8, 0.5);
}

html[data-asa-theme="light"],
:root[data-asa-theme="light"] {
  --asa-3d-sheen: rgba(255, 255, 255, 0.55);
  --asa-3d-edge: rgba(23, 23, 23, 0.26);
  --asa-3d-shadow: rgba(20, 18, 15, 0.22);
  --asa-3d-glow: rgba(23, 23, 23, 0.05);
  --asa-3d-stage-bg: rgba(255, 255, 255, 0.85);
}

html,
body,
#root {
  overflow-x: hidden;
  overflow-x: clip;
}

/* Fullscreen 3D Architectural Canvas Backdrop */
#asa-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.96;
  transition: opacity 0.45s ease;
}

html[data-asa-3d="subtle"] #asa-3d-canvas {
  opacity: 0.42;
}

#root {
  position: relative;
  z-index: 1;
}

/* Let the 3D Canvas shine through Splash & Portal opaque backgrounds */
html body .asa-mrk-splash {
  background-color: var(--asa-3d-stage-bg) !important;
  perspective: 1400px !important;
}

html body section[class*="bg-[#000000]"],
html body section[class*="bg-[#ffffff]"] {
  background-color: var(--asa-3d-stage-bg) !important;
}

/* --------------------------------------------------------------------------
   3D SPLASH SCREEN ("ASA GROUP" / "گروه آسا") — DRAMATIC 3D ENTRANCE & DEPTH
   -------------------------------------------------------------------------- */
@keyframes asaSplashTitle3DIn {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: perspective(900px) translate3d(0, 70px, -520px) rotateX(48deg) rotateY(-16deg) scale(0.72);
    letter-spacing: 0.56em;
  }
  60% {
    opacity: 1;
    filter: blur(0px);
    transform: perspective(900px) translate3d(0, -8px, 65px) rotateX(-5deg) rotateY(4deg) scale(1.04);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: perspective(900px) translate3d(0, 0, 82px) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

@keyframes asaSplashFrame3DIn {
  0% {
    opacity: 0;
    transform: perspective(1000px) translate3d(0, 45px, -300px) rotateX(28deg) rotateY(-12deg) scale(0.84);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 0, 0px) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

@keyframes asaSplashOrbit3D {
  0%, 100% {
    transform: perspective(1000px) rotateX(calc(var(--asa-rx, 0deg) + 4deg)) rotateY(calc(var(--asa-ry, 0deg) - 5deg)) translate3d(0, 0px, 0px);
  }
  50% {
    transform: perspective(1000px) rotateX(calc(var(--asa-rx, 0deg) - 4deg)) rotateY(calc(var(--asa-ry, 0deg) + 5deg)) translate3d(0, -8px, 18px);
  }
}

@keyframes asaSplashSub3DIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, -110px) rotateX(25deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 44px) rotateX(0deg);
  }
}

html body .asa-mrk-splash {
  background: transparent !important;
  perspective: 1000px !important;
}

html body .asa-mrk-splash .asa-splash-3d-stage {
  --asa-rx: 0deg;
  --asa-ry: 0deg;
  transform-style: preserve-3d !important;
  position: relative;
  padding: clamp(2.4rem, 6vw, 4.8rem) clamp(2rem, 6vw, 5.5rem);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35) 75%);
  box-shadow:
    0 42px 100px -15px rgba(0, 0, 0, 0.78),
    inset 0 0 40px rgba(255, 255, 255, 0.04);
  animation:
    asaSplashFrame3DIn 1.15s cubic-bezier(0.16, 1, 0.3, 1) both,
    asaSplashOrbit3D 8s ease-in-out 1.2s infinite;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

html[data-asa-theme="light"] body .asa-mrk-splash .asa-splash-3d-stage {
  border-color: rgba(23, 23, 23, 0.32);
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.85) 75%);
  box-shadow: 0 36px 90px -15px rgba(20, 18, 15, 0.25);
}

/* Deep 3D Backplate Plane behind the Splash Stage */
html body .asa-mrk-splash .asa-splash-3d-stage::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transform: translate3d(0, 0, -48px);
}

html[data-asa-theme="light"] body .asa-mrk-splash .asa-splash-3d-stage::before {
  border-color: rgba(23, 23, 23, 0.16);
}

/* Foreground 3D Architectural Frame Plane */
html body .asa-mrk-splash .asa-splash-3d-stage::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transform: translate3d(0, 0, 32px);
}

html[data-asa-theme="light"] body .asa-mrk-splash .asa-splash-3d-stage::after {
  border-color: rgba(23, 23, 23, 0.14);
}

/* 3D Extruded ASA GROUP Typography */
html body .asa-mrk-splash .asa-splash-3d-stage h1 {
  transform-style: preserve-3d !important;
  animation: asaSplashTitle3DIn 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both !important;
  text-shadow:
    0 1px 0 rgba(180, 180, 180, 0.35),
    0 2px 0 rgba(150, 150, 150, 0.28),
    0 3px 0 rgba(120, 120, 120, 0.22),
    0 4px 0 rgba(90, 90, 90, 0.18),
    0 5px 0 rgba(60, 60, 60, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.72);
}

html[data-asa-theme="light"] body .asa-mrk-splash .asa-splash-3d-stage h1 {
  text-shadow:
    0 1px 0 rgba(23, 23, 23, 0.22),
    0 2px 0 rgba(23, 23, 23, 0.16),
    0 3px 0 rgba(23, 23, 23, 0.12),
    0 4px 0 rgba(23, 23, 23, 0.08),
    0 16px 36px rgba(20, 18, 15, 0.25);
}

html body .asa-mrk-splash .asa-splash-3d-stage > span {
  display: inline-block;
  animation: asaSplashSub3DIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* 3D Perspective Containers across all grids & sections */
.asa-project-logo-grid,
.asa-catalog-grid,
.asa-dept-cards-grid,
.asa-dept-projects-strip,
.asa-home-hero-section,
.asa-dept-hero,
.asa-project-detail-page,
.asa-investment-detail-page,
.asa-style-detail-page {
  perspective: var(--asa-3d-perspective) !important;
}

/* 3D Boot Screen Frame */
#asa-boot-screen {
  perspective: 1400px;
}

#asa-boot-screen .asa-boot-frame {
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  box-shadow: 0 32px 80px var(--asa-3d-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: asaSplashFrame3DIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#asa-boot-screen .asa-boot-title {
  transform: translateZ(34px);
  text-shadow: 0 12px 32px var(--asa-3d-shadow);
  animation: asaSplashTitle3DIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#asa-boot-screen .asa-boot-kicker,
#asa-boot-screen .asa-boot-sub,
#asa-boot-screen .asa-boot-enter {
  transform: translateZ(18px);
}

/* Header subtle 3D spatial elevation */
.asa-site-header {
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transform-style: preserve-3d;
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.asa-site-nav button,
.asa-site-nav a {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .asa-site-nav button:hover,
  .asa-site-nav a:hover {
    transform: translate3d(0, -2px, 12px);
  }
}

/* Interactive 3D Tilt Surface (high specificity to override index.html transform:none !important) */
html body .asa-3d-tilt,
html body .asa-project-logo-grid .asa-project-logo-card.asa-3d-tilt {
  --asa-rx: 0deg;
  --asa-ry: 0deg;
  --asa-tz: 0px;
  --asa-sc: 1;
  --asa-px: 0px;
  --asa-py: 0px;
  --asa-mx: 50%;
  --asa-my: 50%;
  --asa-sheen-op: 0;
  transform-style: preserve-3d !important;
  transform: perspective(var(--asa-3d-perspective)) rotateX(var(--asa-rx)) rotateY(var(--asa-ry)) translateZ(var(--asa-tz)) scale(var(--asa-sc)) !important;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease !important;
  will-change: transform;
  position: relative;
}

html body .asa-3d-tilt.is-tilting,
html body .asa-3d-tilt.is-gyro-active,
html body .asa-3d-tilt.is-mobile-3d-live,
html body .asa-project-logo-grid .asa-project-logo-card.asa-3d-tilt:hover,
html body .asa-project-logo-grid .asa-project-logo-card.asa-3d-tilt.is-tilting,
html body .asa-project-logo-grid .asa-project-logo-card.asa-3d-tilt.is-gyro-active,
html body .asa-project-logo-grid .asa-project-logo-card.asa-3d-tilt.is-mobile-3d-live {
  transition: none !important;
  transition: transform 0.08s linear, box-shadow 0.25s ease, border-color 0.25s ease !important;
  box-shadow: 0 30px 68px -12px var(--asa-3d-shadow), 0 0 0 1px var(--asa-3d-edge) !important;
}

html body .asa-3d-tilt.is-tilting,
html body .asa-project-logo-grid .asa-project-logo-card.asa-3d-tilt.is-tilting {
  z-index: 25 !important;
}

html body .asa-3d-tilt.is-touch-active {
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease !important;
  box-shadow: 0 22px 48px -10px var(--asa-3d-shadow), 0 0 0 1px var(--asa-3d-edge) !important;
}

/* Subtle architectural specular sheen */
html body .asa-3d-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--asa-sheen-op);
  background: radial-gradient(
    540px circle at var(--asa-mx) var(--asa-my),
    var(--asa-3d-sheen),
    transparent 62%
  );
  transition: opacity 0.3s ease;
  z-index: 18;
}

/* 3D Z-Axis Depth Layers inside Department Cards */
.asa-dept-card,
.asa-dept-project-card,
.asa-home-hero-frame,
.asa-dept-hero-media-wrap,
.asa-portal-selected-project {
  transform-style: preserve-3d;
}

.asa-dept-card .asa-dept-card-logo-box {
  transform: translateZ(26px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.asa-dept-card:hover .asa-dept-card-logo-box {
  transform: translateZ(42px) scale(1.03);
}

.asa-dept-card .asa-dept-card-title {
  transform: translateZ(22px);
}

.asa-dept-card .asa-dept-card-subtitle,
.asa-dept-card .asa-dept-card-kicker {
  transform: translateZ(16px);
}

.asa-dept-card .asa-dept-card-action {
  transform: translateZ(24px);
}

.asa-dept-card .asa-dept-card-bracket-tr,
.asa-dept-card .asa-dept-card-bracket-bl {
  transform: translateZ(30px);
}

/* Projects Section & Cards: Override legacy img transform:scale(1.04) !important */
html body .asa-project-logo-card .asa-project-photo,
html body .asa-3d-tilt .asa-3d-media-parallax,
html body .asa-project-logo-card:hover .asa-project-photo,
html body .asa-project-logo-card:hover img.asa-project-photo {
  transform: scale(1.1) translate3d(var(--asa-px), var(--asa-py), 0px) !important;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease !important;
}

/* Floating caption & logo inside project cards */
html body .asa-project-logo-card > div:last-child,
html body .asa-project-logo-card .asa-project-logo-box,
html body .asa-project-logo-card .asa-project-caption,
html body .asa-project-logo-card .asa-project-card-caption {
  transform: translateZ(26px) !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

html body .asa-project-logo-card:hover > div:last-child,
html body .asa-project-logo-card:hover .asa-project-logo-box {
  transform: translateZ(42px) !important;
}

/* Project Detail / Investment Detail / Style Detail Thumbnails */
.asa-3d-thumb {
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease !important;
}

.asa-3d-thumb:hover,
.asa-3d-thumb:active {
  transform: perspective(800px) translate3d(0, -4px, 16px) rotateX(4deg) !important;
  box-shadow: 0 16px 32px -8px var(--asa-3d-shadow);
}

/* Portal Menu Items 3D Lift */
.asa-portal-menu-item {
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.asa-portal-menu-item:hover,
.asa-portal-menu-item:active {
  transform: perspective(1000px) translate3d(0, -3px, 18px) rotateX(1.8deg);
}

.asa-portal-menu-item .asa-portal-menu-num {
  transform: translateZ(18px);
}

.asa-portal-menu-item .asa-portal-menu-title {
  transform: translateZ(24px);
}

.asa-portal-menu-item .asa-portal-menu-arrow {
  transform: translateZ(20px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.asa-portal-menu-item:hover .asa-portal-menu-arrow {
  transform: translateZ(34px) translateX(4px);
}

html[dir="rtl"] .asa-portal-menu-item:hover .asa-portal-menu-arrow {
  transform: translateZ(34px) translateX(-4px);
}

/* Hero & Detail Media Frames */
.asa-home-hero-frame,
.asa-dept-hero-media-wrap,
.asa-3d-media-frame {
  box-shadow: 0 30px 70px -15px var(--asa-3d-shadow);
}

/* Scroll-Driven 3D Entrance */
@keyframes asaCard3DEnter {
  0% {
    opacity: 0;
    transform: perspective(1100px) translate3d(0, 34px, -70px) rotateX(9deg);
  }
  100% {
    opacity: 1;
    transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0deg);
  }
}

.asa-3d-reveal-pending {
  opacity: 0 !important;
  transform: perspective(1100px) translate3d(0, 34px, -70px) rotateX(9deg) !important;
}

.asa-3d-reveal-in {
  opacity: 1;
  animation: asaCard3DEnter 0.72s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

/* Minimal 3D & Gyro Controls mounted inside Footer Bottom Settings (.asa-footer-links) */
#asa-3d-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.asa-3d-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.asa-3d-pill:hover,
.asa-3d-pill.is-active {
  opacity: 1;
}

.asa-3d-pill .asa-3d-cube-dot {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  transition: transform 0.35s ease, background-color 0.25s ease;
}

html[data-asa-3d="immersive"] #asa-3d-toggle .asa-3d-cube-dot,
.asa-3d-pill.is-active .asa-3d-cube-dot {
  background-color: currentColor;
  transform: rotate(225deg);
}

/* Complete 3D OFF mode */
html[data-asa-3d="off"] #asa-3d-canvas {
  display: none !important;
}

html[data-asa-3d="off"] .asa-3d-tilt,
html[data-asa-3d="off"] .asa-splash-3d-stage,
html[data-asa-3d="off"] .asa-project-logo-card,
html[data-asa-3d="off"] .asa-3d-thumb,
html[data-asa-3d="off"] .asa-portal-menu-item {
  --asa-rx: 0deg !important;
  --asa-ry: 0deg !important;
  --asa-tz: 0px !important;
  --asa-sc: 1 !important;
  --asa-px: 0px !important;
  --asa-py: 0px !important;
  --asa-sheen-op: 0 !important;
  transform: none !important;
  animation: none !important;
}

/* Tablet Optimization (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --asa-3d-perspective: 1050px;
  }
  .asa-dept-card .asa-dept-card-logo-box {
    transform: translateZ(18px);
  }
  html body .asa-project-logo-card > div:last-child,
  html body .asa-project-logo-card .asa-project-logo-box {
    transform: translateZ(16px) !important;
  }
}

/* Mobile Optimization (< 768px) */
@media (max-width: 767px) {
  :root {
    --asa-3d-perspective: 900px;
  }
  #asa-3d-canvas {
    opacity: 0.85;
  }
  #asa-boot-screen .asa-boot-frame {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 18px 44px var(--asa-3d-shadow);
  }
  html body .asa-3d-tilt.is-tilting,
  html body .asa-3d-tilt.is-touch-active,
  html body .asa-3d-tilt.is-gyro-active {
    box-shadow: 0 18px 40px -10px var(--asa-3d-shadow), 0 0 0 1px var(--asa-3d-edge) !important;
  }
  .asa-dept-card .asa-dept-card-logo-box {
    transform: translateZ(14px);
  }
  .asa-dept-card .asa-dept-card-title,
  .asa-dept-card .asa-dept-card-action {
    transform: translateZ(12px);
  }
  html body .asa-project-logo-card > div:last-child,
  html body .asa-project-logo-card .asa-project-logo-box {
    transform: translateZ(14px) !important;
  }

}

/* Subtle mode reduces tilt angles */
html[data-asa-3d="subtle"] .asa-3d-tilt,
html[data-asa-3d="subtle"] .asa-splash-3d-stage {
  --asa-rx: 0deg !important;
  --asa-ry: 0deg !important;
  --asa-tz: 0px !important;
  --asa-sc: 1 !important;
  --asa-px: 0px !important;
  --asa-py: 0px !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .asa-3d-tilt,
  .asa-3d-reveal-pending,
  .asa-3d-reveal-in,
  .asa-portal-menu-item,
  .asa-3d-thumb,
  .asa-mrk-splash .asa-splash-3d-stage,
  .asa-mrk-splash h1,
  .asa-mrk-splash .asa-splash-3d-stage > span {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
  #asa-3d-canvas {
    display: none !important;
  }
}


/* Bulletproof Department & Project Logo Theme Lock */
html[data-asa-theme="light"] body .asa-dept-card .asa-dept-card-logo-img,
html[data-asa-theme="light"] body .asa-dept-card:hover .asa-dept-card-logo-img,
html[data-asa-theme="light"] body .asa-dept-card.is-tilting .asa-dept-card-logo-img,
html[data-asa-theme="light"] body .asa-dept-card.is-gyro-active .asa-dept-card-logo-img,
html[data-asa-theme="light"] body .asa-dept-title-logo img,
html[data-asa-theme="light"] body .asa-adaptive-logo,
html[data-asa-theme="light"] body .asa-logo-image,
html[data-asa-theme="light"] body .asa-project-logo-adaptive,
html[data-asa-theme="light"] body img[src*="dept-logos"],
html[data-asa-theme="light"] body img[src*="project-logos"],
html[data-asa-theme="light"] body img[src*="uploads/logos"] {
  filter: brightness(0) !important;
  -webkit-filter: brightness(0) !important;
}

html[data-asa-theme="dark"] body .asa-dept-card .asa-dept-card-logo-img,
html[data-asa-theme="dark"] body .asa-dept-card:hover .asa-dept-card-logo-img,
html[data-asa-theme="dark"] body .asa-dept-card.is-tilting .asa-dept-card-logo-img,
html[data-asa-theme="dark"] body .asa-dept-card.is-gyro-active .asa-dept-card-logo-img,
html[data-asa-theme="dark"] body .asa-dept-title-logo img,
html[data-asa-theme="dark"] body .asa-adaptive-logo,
html[data-asa-theme="dark"] body .asa-logo-image,
html[data-asa-theme="dark"] body .asa-project-logo-adaptive,
html[data-asa-theme="dark"] body img[src*="dept-logos"],
html[data-asa-theme="dark"] body img[src*="project-logos"],
html[data-asa-theme="dark"] body img[src*="uploads/logos"] {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
}

/* Mobile & Tablet Live 3D Splash Stage (bypasses CSS keyframe var() caching) */
html body .asa-mrk-splash .asa-splash-3d-stage.is-mobile-3d-live {
  animation: asaSplashFrame3DIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 1 !important;
  transform: perspective(950px) rotateX(var(--asa-rx, 0deg)) rotateY(var(--asa-ry, 0deg)) translateZ(var(--asa-tz, 14px)) !important;
  transition: none !important;
}

html[data-asa-theme="light"] body .asa-dept-card:hover .asa-dept-card-logo-box img,
html[data-asa-theme="light"] body .asa-dept-card-logo-img:hover,
html.light body .asa-dept-card:hover .asa-dept-card-logo-img,
html.light body .asa-dept-card .asa-dept-card-logo-img {
  filter: brightness(0) !important;
  -webkit-filter: brightness(0) !important;
}


/* Project Detail: Full-Color Photos, 3D BIM Viewer & Monochrome Google Map */
html body img.asa-color-image,
html body .asa-project-detail-color-img {
  filter: none !important;
  -webkit-filter: none !important;
}

.asa-bim-viewer-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #2e2e32 0%, #151517 100%);
  touch-action: none;
  user-select: none;
}

html[data-asa-theme="light"] .asa-bim-viewer-box {
  background: radial-gradient(circle at 50% 45%, #f5f5f3 0%, #dcdcd8 100%);
  border-color: rgba(23, 23, 23, 0.22);
}

.asa-bim-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.asa-bim-canvas:active {
  cursor: grabbing;
}

.asa-bw-map-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  overflow: hidden;
  background: #111111;
}

html[data-asa-theme="light"] .asa-bw-map-box {
  background: #ffffff;
  border-color: rgba(23, 23, 23, 0.22);
}

.asa-bw-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(100%) invert(92%) contrast(1.12) brightness(0.95);
  -webkit-filter: grayscale(100%) invert(92%) contrast(1.12) brightness(0.95);
  transition: filter 0.35s ease;
}

html[data-asa-theme="light"] .asa-bw-map-iframe {
  filter: grayscale(100%) contrast(1.18) brightness(0.98);
  -webkit-filter: grayscale(100%) contrast(1.18) brightness(0.98);
}

.asa-bw-map-box:hover .asa-bw-map-iframe {
  filter: grayscale(100%) invert(92%) contrast(1.18) brightness(1);
}

html[data-asa-theme="light"] .asa-bw-map-box:hover .asa-bw-map-iframe {
  filter: grayscale(100%) contrast(1.24) brightness(1);
}

/* Mobile BIM & Map Adjustments */
@media (max-width: 767px) {
  .asa-bim-viewer-box {
    aspect-ratio: 4 / 3;
    min-height: 230px;
    max-height: 340px;
  }
  .asa-bw-map-box {
    aspect-ratio: 4 / 3;
    min-height: 230px;
    max-height: 340px;
  }
}

/* Faithful architectural rendering for uploaded 3D GLB/GLTF models */
.asa-bim-model-viewer {
  width: 100%;
  height: 100%;
  display: block;
  filter: none !important;
  -webkit-filter: none !important;
  --poster-color: transparent;
}
/* Theme-adaptive look for external 3D iframe embeds */
.asa-bim-iframe-viewer {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(100%) invert(88%) contrast(1.18) brightness(1.05);
  -webkit-filter: grayscale(100%) invert(88%) contrast(1.18) brightness(1.05);
  transition: filter 0.35s ease;
}
html[data-asa-theme="light"] .asa-bim-iframe-viewer {
  filter: grayscale(100%) contrast(1.12) brightness(1.04);
  -webkit-filter: grayscale(100%) contrast(1.12) brightness(1.04);
}


.asa-bim-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.asa-bim-model-viewer {
  position: relative;
  z-index: 1;
}


.asa-ar-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(15, 15, 15, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
.asa-ar-btn:hover {
  background: #ffffff;
  color: #000000;
}
html[data-asa-theme="light"] .asa-ar-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.28);
}
html[data-asa-theme="light"] .asa-ar-btn:hover {
  background: #111111;
  color: #ffffff;
}


.asa-xr-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.asa-xr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.asa-xr-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
html[data-asa-theme="light"] .asa-xr-btn {
  border-color: rgba(17, 17, 17, 0.24);
  background: rgba(17, 17, 17, 0.03);
}
html[data-asa-theme="light"] .asa-xr-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}
.asa-xr-badge {
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border: 1px solid currentColor;
}
.asa-bim-viewer-box.is-vr-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: none !important;
  z-index: 99999 !important;
  border: none !important;
}
.asa-vr-exit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}


.asa-vr-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(3, 38px);
  gap: 5px;
  padding: 8px;
  background: rgba(12, 12, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.asa-vr-pad-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.asa-vr-pad-btn:active,
.asa-vr-pad-btn:hover {
  background: #ffffff;
  color: #000000;
}
.asa-vr-hint {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 25;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.asa-ar-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10, 10, 10, 0.86);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  backdrop-filter: blur(6px);
  max-width: 92vw;
  text-align: center;
}
.asa-ar-lock-btn {
  padding: 5px 10px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.asa-ar-lock-btn.is-locked {
  background: #ffffff;
  color: #000000;
}


.asa-vr-stereo-btn {
  position: absolute;
  top: 16px;
  right: 120px;
  z-index: 25;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.asa-vr-stereo-btn.is-active {
  background: #ffffff;
  color: #000000;
}
.asa-vr-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 22;
}
.asa-vr-stereo-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 2;
}
.asa-vr-eye {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.asa-vr-eye:last-child {
  border-right: none;
}

.asa-bim-viewer-box.is-vr-active model-viewer {
  pointer-events: none !important;
}
.asa-vr-joystick {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 26;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.asa-vr-joystick-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: transform 0.04s linear;
}
.asa-vr-glass-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 92vw;
  padding: 6px 10px;
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.asa-vr-glass-btn {
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.18s ease;
}
.asa-vr-glass-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}
.asa-vr-glass-btn.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
}
.asa-vr-stereo-wrap.is-glass-cardboard .asa-vr-eye::after,
.asa-vr-stereo-wrap.is-glass-quest .asa-vr-eye::after,
.asa-vr-stereo-wrap.is-glass-vision .asa-vr-eye::after,
.asa-vr-stereo-wrap.is-glass-daydream .asa-vr-eye::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.asa-vr-stereo-wrap.is-glass-cardboard .asa-vr-eye::after {
  box-shadow: inset 0 0 65px 28px rgba(0, 0, 0, 0.92);
  border-radius: 28px;
}
.asa-vr-stereo-wrap.is-glass-quest .asa-vr-eye::after {
  box-shadow: inset 0 0 48px 16px rgba(0, 0, 0, 0.75);
  border-radius: 18%;
}
.asa-vr-stereo-wrap.is-glass-vision .asa-vr-eye::after {
  box-shadow: inset 0 0 38px 10px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  border-radius: 22%;
}
.asa-vr-stereo-wrap.is-glass-daydream .asa-vr-eye::after {
  box-shadow: inset 0 0 75px 38px rgba(0, 0, 0, 0.95);
  border-radius: 50%;
}
@media (max-width: 640px) {
  .asa-vr-joystick { width: 92px; height: 92px; bottom: 16px; left: 14px; }
  .asa-vr-joystick-knob { width: 36px; height: 36px; }
  .asa-vr-controls { bottom: 16px; right: 14px; }
  .asa-vr-glass-bar { bottom: 120px; }
}

.asa-vt-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  background: rgba(10, 10, 10, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.asa-vt-hotspot:hover {
  background: #ffffff;
  color: #000000;
  transform: translate(-50%, -50%) scale(1.08);
}
.asa-vt-hotspot-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.asa-vt-hotspot:hover .asa-vt-hotspot-dot {
  background: #000000;
  color: #ffffff;
}
.asa-vt-minimap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 16;
  width: 190px;
  max-width: 42%;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px;
  backdrop-filter: blur(8px);
}
.asa-vt-plan-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.asa-vt-plan-pin:hover {
  transform: translate(-50%, -50%) scale(1.18);
}
.asa-vt-plan-pin.is-active {
  background: #10b981;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35);
}
@media (max-width: 640px) {
  .asa-vt-minimap { width: 135px; }
}

.asa-bim-viewer-box.is-interior-walk {
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.asa-bim-viewer-box.is-interior-walk model-viewer {
  pointer-events: none !important;
}
.asa-vt-box.is-vr-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  aspect-ratio: auto !important;
  z-index: 99999 !important;
  border: none !important;
}
@media (max-width: 640px) {
  .asa-vr-hint {
    max-width: calc(100vw - 120px);
    font-size: 9px;
    padding: 5px 8px;
  }
  .asa-vr-exit-btn {
    top: 12px;
    right: 12px;
    padding: 7px 12px;
    font-size: 10px;
  }
  .asa-bim-viewer-box:not(.is-vr-active) .asa-vr-joystick {
    width: 82px;
    height: 82px;
    bottom: 10px;
    left: 10px;
  }
  .asa-bim-viewer-box:not(.is-vr-active) .asa-vr-joystick-knob {
    width: 32px;
    height: 32px;
  }
  .asa-bim-viewer-box:not(.is-vr-active) .asa-vr-controls {
    bottom: 10px;
    right: 10px;
    padding: 5px;
    gap: 3px;
    grid-template-columns: repeat(3, 30px);
  }
  .asa-bim-viewer-box:not(.is-vr-active) .asa-vr-pad-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}


/* Live Camera AR + Surface Detection + Photo Capture */
.asa-bim-viewer-box.is-live-ar {
  background: #000000 !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.asa-ar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.asa-ar-mv-stage {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: opacity 0.25s ease;
  transform-origin: center center;
}
.asa-ar-reticle-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
}
.asa-ar-reticle-plane {
  width: 210px;
  height: 210px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(to right, rgba(255,255,255,0.14) 1px, transparent 1px) 0 0 / 35px 35px,
    linear-gradient(to bottom, rgba(255,255,255,0.14) 1px, transparent 1px) 0 0 / 35px 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  animation: asaReticlePulse 1.8s ease-in-out infinite;
}
.asa-ar-reticle-wrap.is-ready .asa-ar-reticle-plane {
  border: 2px solid #10b981;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.4);
}
.asa-ar-reticle-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.asa-ar-reticle-wrap.is-ready .asa-ar-reticle-ring {
  border-color: #10b981;
}
.asa-ar-reticle-cross {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
}
.asa-ar-reticle-wrap.is-ready .asa-ar-reticle-cross {
  background: #10b981;
}
@keyframes asaReticlePulse {
  0%, 100% { transform: scale(0.96); opacity: 0.85; }
  50% { transform: scale(1.03); opacity: 1; }
}
.asa-ar-place-btn {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.asa-ar-reticle-wrap.is-ready .asa-ar-place-btn {
  background: #10b981;
  color: #000000;
  border-color: #10b981;
  font-weight: 700;
}
.asa-ar-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.asa-ar-surface-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(10, 10, 10, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.asa-ar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}
.asa-ar-dot.is-ready,
.asa-ar-dot.is-placed {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.asa-ar-hud-btn {
  padding: 7px 12px;
  background: rgba(10, 10, 10, 0.84);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.asa-ar-hud-btn.is-exit {
  background: rgba(255, 255, 255, 0.94);
  color: #000000;
  font-weight: 700;
}
.asa-ar-hud-bottom {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.asa-ar-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.asa-ar-tool-btn {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.asa-ar-tool-btn.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.asa-ar-shutter-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease;
  backdrop-filter: blur(4px);
}
.asa-ar-shutter-btn:active {
  transform: scale(0.92);
}
.asa-ar-shutter-inner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
}
.asa-ar-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 60;
  pointer-events: none;
  opacity: 0.85;
}
.asa-ar-photo-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
.asa-ar-photo-card {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow: hidden;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px;
}
.asa-ar-photo-img {
  width: 100%;
  min-height: 0;
  flex: 0 1 auto;
  max-height: min(60dvh, 500px);
  object-fit: contain;
  background: #000000;
}
.asa-ar-photo-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.asa-ar-photo-btn {
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.asa-ar-photo-btn.is-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}


/* Matterport-style 360 Virtual Tour Upgrades */
.asa-vt-loader {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(8, 8, 8, 0.72);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.12em;
  pointer-events: none;
}
.asa-vt-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  animation: asaVtSpin 0.8s linear infinite;
}
@keyframes asaVtSpin {
  to { transform: rotate(360deg); }
}
.asa-vt-step-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 38px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.58);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.asa-vt-step-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #000000;
}
.asa-vt-step-btn.is-prev { left: 12px; }
.asa-vt-step-btn.is-next { right: 12px; }

.asa-vt-hotspot.is-matterport {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 11;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.asa-vt-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.45);
  transform: perspective(180px) rotateX(48deg);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.asa-vt-hotspot.is-matterport:hover .asa-vt-ring {
  transform: perspective(180px) rotateX(40deg) scale(1.18);
  background: rgba(16, 185, 129, 0.38);
  border-color: #10b981;
  box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.28);
}
.asa-vt-ring-label {
  padding: 3px 8px;
  background: rgba(10, 10, 10, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 10px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.asa-vt-radar-cone {
  position: absolute;
  width: 38px;
  height: 38px;
  pointer-events: none;
  background: conic-gradient(from -32deg, rgba(16, 185, 129, 0.45) 0deg 64deg, transparent 64deg 360deg);
  border-radius: 50%;
  transform-origin: center center;
}
.asa-vt-room-bar {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 2px 4px;
  scrollbar-width: none;
}
.asa-vt-room-bar::-webkit-scrollbar { display: none; }
.asa-vt-room-pill {
  flex-shrink: 0;
  padding: 5px 11px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 10, 0.78);
  color: #ffffff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.2s ease;
}
.asa-vt-room-pill.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
}
@media (max-width: 640px) {
  .asa-vt-minimap { top: auto !important; bottom: 54px !important; right: 10px !important; width: 110px !important; height: auto !important; max-height: 115px !important; overflow: hidden !important; } .asa-vt-minimap img { max-height: 100px !important; width: 100% !important; object-fit: contain !important; }
  .asa-vt-step-btn { width: 32px; height: 44px; font-size: 20px; }
}


.asa-vt-cms-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed rgba(16, 185, 129, 0.9);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
  z-index: 8;
}
.asa-vt-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
}
.asa-vt-room-thumb {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}


/* Hotspot Edge Indicators & Quick-Locate Chips */
.asa-vt-hs-finder {
  position: absolute;
  top: 42px;
  left: 12px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 140px);
}
.asa-vt-hs-chip {
  padding: 4px 9px;
  background: rgba(10, 10, 10, 0.78);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.55);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.18s ease;
}
.asa-vt-hs-chip:hover {
  background: #10b981;
  color: #000000;
}
.asa-vt-edge-ind {
  position: absolute;
  transform: translateY(-50%);
  z-index: 13;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(10, 10, 10, 0.85);
  color: #ffffff;
  border: 1.5px solid #10b981;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.asa-vt-edge-arrow {
  color: #10b981;
  font-size: 11px;
}


/* Call of Duty style VR FPS tactical reticle & touch smoothness */
.asa-bim-viewer-box.is-vr-active {
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.asa-vr-crosshair.is-cod {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: none !important;
  border-radius: 0 !important;
}
.asa-cod-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}
.asa-cod-t, .asa-cod-b, .asa-cod-l, .asa-cod-r {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 3px rgba(0,0,0,0.7);
}
.asa-cod-t { top: 0; left: 50%; width: 1.5px; height: 6px; transform: translateX(-50%); }
.asa-cod-b { bottom: 0; left: 50%; width: 1.5px; height: 6px; transform: translateX(-50%); }
.asa-cod-l { left: 0; top: 50%; height: 1.5px; width: 6px; transform: translateY(-50%); }
.asa-cod-r { right: 0; top: 50%; height: 1.5px; width: 6px; transform: translateY(-50%); }

.asa-vt-box {
  min-height: 300px;
  aspect-ratio: 16 / 10;
}


/* Mobile-optimized AR HUD & button proportions */
.asa-ar-hud-top {
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
}
.asa-ar-hud-bottom {
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
}
.asa-ar-tools-row {
  border-radius: 14px;
  gap: 6px;
  padding: 7px 10px;
}
.asa-ar-tool-btn, .asa-ar-hud-btn, .asa-ar-lock-btn {
  border-radius: 8px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.asa-ar-overlay {
  top: max(14px, env(safe-area-inset-top));
  border-radius: 14px;
  padding: 10px 12px;
}
@media (max-width: 640px) {
  .asa-ar-hud-top {
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .asa-ar-surface-pill {
    min-width: 0;
    flex: 1 1 auto;
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .asa-ar-hud-btn {
    padding: 6px 11px;
    font-size: 10px;
    min-height: 36px;
    flex-shrink: 0;
  }
  .asa-ar-hud-bottom {
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 10px;
    right: 10px;
    gap: 10px;
  }
  .asa-ar-tools-row {
    width: 100%;
    max-width: 400px;
    gap: 6px;
    padding: 8px;
  }
  .asa-ar-tool-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 36px;
    flex: 1 1 auto;
  }
  .asa-ar-shutter-btn {
    width: 60px;
    height: 60px;
  }
  .asa-ar-shutter-inner {
    width: 46px;
    height: 46px;
  }
  .asa-ar-overlay {
    width: calc(100vw - 20px);
    max-width: 96vw;
    padding: 9px 10px;
    font-size: 10px;
    gap: 7px;
  }
  .asa-ar-lock-btn {
    padding: 6px 10px;
    font-size: 10px;
    min-height: 34px;
  }
  .asa-ar-reticle-plane {
    width: 168px;
    height: 168px;
  }
  .asa-ar-place-btn {
    padding: 10px 18px;
    font-size: 11px;
    border-radius: 10px;
  }
}


/* Desktop-only custom cursor inside 360 Virtual Tour Fullscreen */
.asa-vt-fs-cursor {
  display: none !important;
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .asa-vt-fs-cursor {
    display: block !important;
  }
}


/* VR HDRI Sky Mode Switcher */
.asa-vr-sky-bar {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 46;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}
.asa-vr-sky-btn {
  padding: 5px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.asa-vr-sky-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.asa-vr-sky-btn.is-active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

/* Prevent scroll jump inside RTL CMS container during React updates */
.asa-cms-content, .asa-cms-content * { overflow-anchor: none !important; }
