/* ═══════════════════════════════════════════
   UreTech Bubble Map — CSS
   ═══════════════════════════════════════════ */

/* ── Header floats above the Bubble Map, doesn't push it down ── */
body:has(.ure-bubblemap) [data-elementor-type="header"],
body:has(.ure-bubblemap) .elementor-location-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  pointer-events: auto;
}
body.admin-bar:has(.ure-bubblemap) [data-elementor-type="header"],
body.admin-bar:has(.ure-bubblemap) .elementor-location-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar:has(.ure-bubblemap) [data-elementor-type="header"],
  body.admin-bar:has(.ure-bubblemap) .elementor-location-header {
    top: 46px !important;
  }
}

/* Elementor flex container fix */
.elementor-widget-uretech_bubblemap {
  width: 100% !important;
  flex-shrink: 0 !important;
}
.elementor-widget-uretech_bubblemap > .elementor-widget-container {
  width: 100% !important;
}

.ure-bubblemap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
}

/* Grid */
.ure-bm-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Orbs canvas */
.ure-bm-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* Inner container */
.ure-bm-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  perspective: 1200px;
}

/* Trail & orbit SVGs */
.ure-bm-trail,
.ure-bm-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Bubbles container */
.ure-bm-bubbles {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Individual bubble */
.ure-bm-bubble {
  position: absolute;
  will-change: transform, left, top, opacity;
  transition: opacity .4s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.ure-bm-bubble[data-interactive="true"] {
  pointer-events: auto;
  cursor: pointer;
}
.ure-bm-bubble__glass {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transform-style: preserve-3d;
  transition: border-color .3s, box-shadow .4s;
}
.ure-bm-bubble__highlight {
  position: absolute;
  top: 10%; left: 18%;
  width: 40%; height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 55%, transparent 72%);
  transform: rotate(-25deg);
  pointer-events: none;
}
.ure-bm-bubble__glint {
  position: absolute;
  top: 15%; left: 52%;
  width: 14%; height: 9%;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  filter: blur(2px);
  pointer-events: none;
}
.ure-bm-bubble__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity .3s;
}
.ure-bm-bubble__label[data-visible="true"] {
  opacity: 1;
}
.ure-bm-bubble__label-icon {
  color: rgba(255,255,255,.95);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
  line-height: 1;
}
.ure-bm-bubble__label-text {
  color: rgba(255,255,255,.95);
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  line-height: 1.15;
  padding: 0 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Mini bubbles */
.ure-bm-minis {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}
.ure-bm-mini {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: ureBmPop var(--dur) ease-out var(--delay) forwards;
}

/* ═══ HERO ═══ */
.ure-bm-hero {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 480px;
  width: 90%;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: all 1.2s cubic-bezier(.16,1,.3,1) .3s;
}
.ure-bm-hero[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Breadcrumb */
.ure-bm-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.ure-bm-breadcrumb a {
  color: rgba(250,250,250,.4);
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}
.ure-bm-breadcrumb a:hover { color: rgba(250,250,250,.7); }
.ure-bm-bc-active { font-weight: 600; font-size: 11px; letter-spacing: .04em; }
.ure-bm-bc-sep {
  width: 8px; height: 8px;
  fill: none; stroke: rgba(250,250,250,.25);
  stroke-width: 2.5; stroke-linecap: round;
}

/* Chip */
.ure-bm-chip {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 18px;
}

/* Title */
.ure-bm-title {
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  font-size: clamp(28px, 3.8vw, 44px);
}
.ure-bm-title em {
  font-style: italic;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Description */
.ure-bm-desc {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 26px;
}

/* CTA button */
.ure-bm-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: all .3s;
}
.ure-bm-cta svg { width: 15px; height: 15px; }
.ure-bm-cta:hover { transform: translateY(-2px) scale(1.03); }

/* Replay */
.ure-bm-replay {
  position: absolute;
  bottom: 70px; right: 24px;
  z-index: 20;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .05em;
  opacity: 0;
  transition: all .3s;
  display: none;
}
.ure-bm-replay[data-visible="true"] { display: block; opacity: .6; }
.ure-bm-replay:hover { opacity: 1 !important; }

/* Scroll indicator */
.ure-bm-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 1.5s;
}
.ure-bm-scroll[data-visible="true"] { opacity: .5; }
.ure-bm-scroll span {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.ure-bm-scroll svg {
  width: 16px; height: 16px;
  animation: ureBmBounce 2s ease-in-out infinite;
}

/* ═══ DESKTOP TOOLTIP (appended to body, position:absolute = page-relative) ═══ */
.ure-bm-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999999;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
}
.ure-bm-tip {
  position: absolute;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.ure-bm-tip[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}
.ure-bm-tip__inner {
  position: relative;
  border-radius: 20px;
  padding: 22px 20px 18px;
  background: rgba(12,10,28,.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.ure-bm-tip__tail {
  position: absolute;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.ure-bm-tip__tail--left { left: -10px; border-right: 12px solid rgba(12,10,28,.92); }
.ure-bm-tip__tail--right { right: -10px; border-left: 12px solid rgba(12,10,28,.92); }
.ure-bm-tip__tail--bottom {
  bottom: -10px; left: 50%; margin-left: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid rgba(12,10,28,.92);
  border-bottom: none;
}
.ure-bm-tip__header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ure-bm-tip__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ure-bm-tip__name { font-size: 15px; font-weight: 800; }
.ure-bm-tip__desc { font-size: 12px; line-height: 1.55; margin: 0 0 14px; color: rgba(250,250,250,.55); }
.ure-bm-tip__divider { height: 1px; margin: 0 0 12px; }
.ure-bm-tip__links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ure-bm-tip__link {
  display: flex; align-items: center; gap: 8px;
  color: rgba(250,250,250,.75);
  font-size: 12px; font-weight: 500;
  text-decoration: none;
  padding: 4px 6px; border-radius: 8px;
  transition: all .2s;
  opacity: 0;
}
.ure-bm-tip[data-visible="true"] .ure-bm-tip__link { opacity: 1; }
.ure-bm-tip__link:hover { color: #FAFAFA; }
.ure-bm-tip__cta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: all .25s;
  opacity: 0;
}
.ure-bm-tip[data-visible="true"] .ure-bm-tip__cta { opacity: 1; }
.ure-bm-tip__cta:hover { transform: translateY(-1px); }

/* ═══ MOBILE BOTTOM SHEET ═══ */
.ure-bm-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999998;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.ure-bm-sheet-overlay[data-visible="true"] { opacity: 1; pointer-events: auto; }

.ure-bm-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999999;
  transform: translateY(105%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ure-bm-sheet[data-visible="true"] {
  transform: translateY(0);
  pointer-events: auto;
}
.ure-bm-sheet__inner {
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 28px;
  background: rgba(12,10,28,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.ure-bm-sheet__handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  margin: 0 auto 16px;
  cursor: pointer;
}
.ure-bm-sheet__header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ure-bm-sheet__icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ure-bm-sheet__name { font-size: 16px; font-weight: 800; }
.ure-bm-sheet__desc { font-size: 13px; line-height: 1.6; margin: 0 0 14px; color: rgba(250,250,250,.55); }
.ure-bm-sheet__divider { height: 1px; margin: 0 0 12px; }
.ure-bm-sheet__links { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.ure-bm-sheet__link {
  display: flex; align-items: center; gap: 10px;
  color: rgba(250,250,250,.75);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  padding: 6px 8px; border-radius: 10px;
}
.ure-bm-sheet__cta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
}

/* ═══ MOBILE OVERRIDES ═══ */
@media (max-width: 639px) {
  .ure-bm-inner { max-width: 100% !important; }
  .ure-bm-hero {
    max-width: 320px;
    width: calc(100% - 48px);
    transition: none;
  }
  .ure-bm-breadcrumb { margin-bottom: 6px; }
  .ure-bm-breadcrumb a,
  .ure-bm-bc-active { font-size: 10px; }
  .ure-bm-chip { padding: 4px 12px; font-size: 8.5px; margin-bottom: 6px; }
  .ure-bm-title { font-size: clamp(18px, 5.5vw, 24px); margin-bottom: 5px; }
  .ure-bm-desc { font-size: 11px; line-height: 1.45; margin-bottom: 8px; }
  .ure-bm-cta { padding: 9px 20px; font-size: 11.5px; gap: 6px; }
  .ure-bm-cta svg { width: 13px; height: 13px; }
  .ure-bm-replay { bottom: 12px; right: 12px; padding: 5px 12px; font-size: 9px; }
  .ure-bm-scroll { display: none; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .ure-bm-hero { max-width: 400px; }
  .ure-bm-title { font-size: clamp(24px, 4vw, 36px); }
}

/* ═══ KEYFRAMES ═══ */
@keyframes ureBmBounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(4px); opacity: .3; }
}
@keyframes ureBmDash { to { stroke-dashoffset: -200; } }
@keyframes ureBmFadeIn { from { opacity: 0; } to { opacity: .2; } }
@keyframes ureBmPop {
  0%   { opacity: 0; transform: scale(0) translateY(0); }
  30%  { opacity: .8; transform: scale(1.2) translateY(-3px); }
  60%  { opacity: .6; transform: scale(.9) translateY(-8px); }
  100% { opacity: 0; transform: scale(.5) translateY(-20px); }
}

