/* Interactive Image Overlay Styles */
.interactive-image-container {
  position: relative;
  overflow: hidden;
}

.interactive-image-container img {
  transition: transform 0.3s ease;
}

/* Left and Right overlay zones - true 50/50 split */
.interactive-overlay-left,
.interactive-overlay-right {
  position: absolute;
  top: 0;
  width: 50%; /* Exact 50% - no gap */
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 2;
}

.interactive-overlay-left {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 0.3) 95%, transparent 100%);
}

.interactive-overlay-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 0.3) 95%, transparent 100%);
}

.interactive-overlay-left:hover,
.interactive-overlay-right:hover {
  opacity: 1;
  pointer-events: auto;
}

.interactive-overlay-left:hover ~ img,
.interactive-overlay-right:hover ~ img {
  transform: scale(1.05);
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-width: 90%;
}

.interactive-overlay-left:hover .overlay-content,
.interactive-overlay-right:hover .overlay-content {
  transform: translateY(0);
}

.overlay-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Apartment specifications styling */
.apartment-specs {
  text-align: left;
  margin: 20px 0;
  padding: 0 10px;
}

.apartment-specs p {
  margin: 8px 0;
  font-size: 1rem;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.apartment-specs strong {
  color: #fff;
  font-weight: 600;
}

.overlay-btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.overlay-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Persistent hover hint */
.hover-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  animation: hintFadeIn 1s ease-in-out;
  animation-delay: 1s;
  animation-fill-mode: forwards;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Show/hide appropriate text based on device */
.hover-hint-mobile {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .hover-hint-desktop {
    display: none;
  }
  .hover-hint-mobile {
    display: inline;
  }
}

@keyframes hintFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0);
  }
}

/* Hide hint when hovering over overlays */
.interactive-overlay-left:hover ~ .hover-hint,
.interactive-overlay-right:hover ~ .hover-hint {
  opacity: 0;
}

/* Cursor follow bubble indicator */
.hover-indicator {
  position: fixed;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.hover-indicator.visible {
  opacity: 1;
}

.hover-indicator::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
}

/* Add subtle glow effect on hover */
.interactive-overlay-left:hover,
.interactive-overlay-right:hover {
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.1);
}

/* Add building outline effect */
.interactive-overlay-left::before,
.interactive-overlay-right::before {
  content: '';
  position: absolute;
  top: 5%;
  bottom: 5%;
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.interactive-overlay-left::before {
  right: 0;
}

.interactive-overlay-right::before {
  left: 0;
}

.interactive-overlay-left:hover::before,
.interactive-overlay-right:hover::before {
  opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .overlay-title {
    font-size: 1.6rem;
  }
  
  .apartment-specs p {
    font-size: 0.9rem;
    margin: 5px 0;
  }
  
  .overlay-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .interactive-overlay-left,
  .interactive-overlay-right {
    background: rgba(0, 0, 0, 0.85);
  }
  
  .overlay-content {
    padding: 15px;
  }
  
  /* Hide the separator line on mobile */
  .interactive-image-container::after {
    display: none;
  }
}

/* Touch device support */
@media (hover: none) {
  .interactive-overlay-left,
  .interactive-overlay-right {
    opacity: 0;
  }
  
  .overlay-content {
    transform: translateY(0);
  }
  
  .interactive-image-container img {
    transform: scale(1);
  }
}