/* PDL MODERN HOTSPOT SYSTEM */
/* This file controls the visual appearance of custom hotspots */

/* 1. Base Hotspot Container - The div created by Pannellum */
/* We want to reset it to be a transparent anchor point */
.pnlm-hotspot-base.pdl-modern-hotspot {
  background: transparent !important; /* No default icon */
  border: none !important;
  width: 0 !important;   /* Collapse geometry */
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  
  /* CRITICAL: Allow our custom children to overflow this 0x0 container */
  overflow: visible !important; 
  
  /* Ensure it sits on top */
  z-index: 1000 !important;
}

/* 2. Tooltip Wrapper - Our custom container inserted into the base */
.pdl-hotspot-wrapper {
  /* Absolute positioning relative to the 0x0 base anchor */
  position: absolute;
  top: 0;
  left: 0;
  
  /* Layout: Column, bottom-up (Leader line below, Header above?) 
     Actually, visually: Header is top, Line is bottom, Anchor is at bottom of Line.
     So we want the BOTTOM of the wrapper to be at (0,0).
  */
  display: flex !important;
  flex-direction: column-reverse !important; /* REVERT: Build from bottom up (Leader then Header) */
  align-items: center !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
  
  /* Shift the entire wrapper so its bottom-center touches the anchor point */
  transform: translate(-50%, -100%) !important; 
  
  /* Make sure it's clickable and visible */
  pointer-events: auto !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
  
  /* Debug borders - uncomment to see bounding box */
  /* border: 1px dotted rgba(255,255,255,0.5); */
}

/* 3. Header - The text box */
.pdl-modern-hotspot-header {
  background: #ffffff !important;
  color: #ff0000 !important;
  padding: 8px 16px !important;
  border: 1.5px solid #ff0000 !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif, Arial;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.2s ease;
}

/* 4. Leader Line - The vertical stick */
.pdl-modern-hotspot-leader {
  display: block !important;
  width: 1.5px !important;
  height: 60px !important;
  background: #ff0000 !important;
  z-index: 8;
  margin: 0 !important;
  transition: all 0.2s ease;
}

/* 5. Hover Effects */
.pdl-hotspot-wrapper:hover .pdl-modern-hotspot-header {
  background: #ff0000 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.pdl-hotspot-wrapper:hover .pdl-modern-hotspot-leader {
  height: 70px !important; /* Grow slightly on hover */
  opacity: 1;
}
