/* Floor Indicator Widget */
.kionera-floor-indicator-widget {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

/* Background Image */
.kionera-floor-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* Floor Quadrants Overlay for Click Navigation */
.kionera-floor-quadrants {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
}

.kionera-floor-quadrant {
  position: absolute;
  left: 0;
  width: 100%;
  cursor: pointer;
  /* background: rgba(255, 255, 255, 0); */
  transition: background-color 0.3s ease;
  /* border: 1px solid rgba(139, 115, 85, 0); */
  transition: all 0.3s ease;
}

.kionera-floor-quadrant:hover {
  /* background: rgba(139, 115, 85, 0.1);
  border-color: rgba(139, 115, 85, 0.3); */
}

.kionera-floor-quadrant:active {
  /* background: rgba(139, 115, 85, 0.2); */
}

/* .kionera-floor-quadrant.clicked {
  background: rgba(139, 115, 85, 0.3);
  transform: scale(0.98);
} */

.kionera-floor-background img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floor Highlight Areas - Dynamic positioning like mobile indicator */
.kionera-floor-highlight {
  position: absolute;
  background: #bebebe !important;
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  pointer-events: none;
  border-radius: 8px;
  /* Default size and position - will be overridden by JavaScript */
  width: 90%; /* 76px */
  height: 135px; /* 100px */
  left: 4%; /* 12% */
}

.kionera-floor-highlight.moving {
  transition: top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Dynamic floor highlight - position controlled by JavaScript */

/* Floor Indicator Mobile Element */
.kionera-floor-indicator-mobile {
    position: absolute;
    right: 0px;
    top: 50px;
    width: 115px;
    height: 24px;
    background-image: url('../assets/images/arrow.png') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    /* background: rgba(200, 200, 200, 0.9); */
    /* border-radius: 20px; */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.8s 
    cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* border: 1px solid rgba(255, 255, 255, 0.5); */
}

/* .kionera-floor-indicator-mobile::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 14px solid #dadad9;
    position: relative;
    left: -30px;
} */

.kionera-floor-text-mobile {
  text-align: center;
  color: #8b7355;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kionera-floor-text-mobile .floor-number {
  font-size: 14px;
  font-weight: 100;
}

.kionera-floor-text-mobile .floor-label {
  font-size: 12px;
  opacity: 0.9;
}

/* Navigation Arrows */
.kionera-floor-navigation {
  display: none;
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
}

.kionera-floor-arrow {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 115, 85, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #8b7355;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kionera-floor-arrow:hover {
  background: rgba(139, 115, 85, 0.9);
  border-color: #8b7355;
  color: white;
  transform: scale(1.1);
}

.kionera-floor-arrow:active {
  transform: scale(0.95);
}

.kionera-floor-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(200, 200, 200, 0.5);
}

.kionera-floor-arrow.disabled:hover {
  transform: none;
  background: rgba(200, 200, 200, 0.5);
  color: #8b7355;
}

/* Animation for smooth transitions */
.kionera-floor-indicator-mobile.moving {
  transition: top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive Design */

@media (min-width: 769px){
  .kionera-floor-text-mobile{
    justify-content: space-between;
    width: 80%;
    position: relative;
    left: 5px;
  }

  .floor-label{
    font-family: 'Presicav New';
    font-weight: 100;
    letter-spacing: 3px;
  }
}

@media (max-width: 768px) {
  .kionera-floor-indicator-widget {
    min-height: 400px;
  }
  
  .kionera-floor-indicator-mobile {
    right: 15px;
    width: 70px !important;
    height: 25px !important;
  }
  
  .kionera-floor-text-mobile .floor-number {
    font-size: 18px;
  }
  
  .kionera-floor-text-mobile .floor-label {
    font-size: 9px;
  }
  
  .kionera-floor-navigation {
    left: 15px;
    gap: 10px;
  }
  
  .kionera-floor-arrow {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  /* Ensure floor highlights are visible on mobile */
  .kionera-floor-highlight {
    border-radius: 2px;
  }
}

@media (max-width: 480px) {

  .kionera-floor-background {
    transform: scale(0.95);
    top: -6px;
    left: -30px;
  }
    
  /* .kionera-floor-highlight{
      max-height: 50px !important;
      width: 73% !important;
      left: 5% !important;
  } */

  .kionera-floor-background img {
    object-fit: initial;
  }

  .kionera-floor-indicator-widget {
    max-height: 250px !important;
    min-height: 250px !important;
  }
  
  .kionera-floor-indicator-mobile {
    right: 10px !important;
    width: 70px !important;
    height: 25px !important;
  }
  
  .kionera-floor-text-mobile .floor-number {
    font-size: 11px;
    font-weight: lighter;
  }
  
  .kionera-floor-text-mobile .floor-label {
    font-size: 8px;
  }
  
  .kionera-floor-navigation {
    left: 10px;
  }
  
  .kionera-floor-arrow {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

/* Hover effects for better UX */
.kionera-floor-indicator-widget:hover .kionera-floor-navigation {
  opacity: 1;
}

.kionera-floor-navigation {
  opacity: 0.7;
  transition: opacity 0.3s ease;

  top: 93%;
  transform: translateY(-50%);
  flex-direction: row;
}


/* Loading state */
.kionera-floor-indicator-widget.loading .kionera-floor-indicator-mobile {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}