/**
 * Floating Property Icons for Tour Virtual & Before/After
 * Positioned in independent container ABOVE gallery to avoid lightbox
 */

/* Container for floating icons - independent from gallery */
.property-floating-icons {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto -60px auto; /* Negative margin to overlap with gallery below */
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: flex-end; /* Align to right */
    align-items: flex-start;
    gap: 12px;
    pointer-events: none; /* Container transparent to clicks */
}

/* Enable clicks only on icons */
.property-floating-icons .property-floating-icon {
    pointer-events: all;
}

/* Individual icon button */
.property-floating-icon {
    pointer-events: all !important; /* Enable clicks */
}

/* Ensure the property-gallery has position relative */
.property-gallery {
    position: relative;
}

/* Individual icon button */
.property-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(231, 76, 60, 0.1);
    z-index: 9999 !important; /* Above lightbox trigger */
}

.property-floating-icon:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 30px rgba(231, 76, 60, 0.4);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(231, 76, 60, 0.3);
}

.property-floating-icon:active {
    transform: scale(1.05) translateY(0);
}

/* Icon content */
.property-floating-icon-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* SVG Icons */
.property-floating-icon svg {
    width: 28px;
    height: 28px;
    fill: #e74c3c;
    transition: all 0.3s ease;
}

.property-floating-icon:hover svg {
    fill: #c0392b;
    transform: scale(1.1);
}

/* Label text (shows on hover) */
.property-floating-icon-label {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.property-floating-icon-label:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent rgba(44, 62, 80, 0.95);
}

.property-floating-icon:hover .property-floating-icon-label {
    opacity: 1;
    right: 72px;
}

/* Badge/Counter (optional, for future use) */
.property-floating-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-floating-icons {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .property-floating-icon {
        width: 48px;
        height: 48px;
    }

    .property-floating-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Hide label on mobile, just show icons */
    .property-floating-icon-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .property-floating-icons {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .property-floating-icon {
        width: 42px;
        height: 42px;
    }

    .property-floating-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Animation entrance */
@keyframes floatIconFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.property-floating-icon {
    animation: floatIconFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.property-floating-icon:nth-child(1) {
    animation-delay: 0.1s;
}

.property-floating-icon:nth-child(2) {
    animation-delay: 0.2s;
}

/* Ensure proper positioning relative to gallery */
.property-single-layout .property-gallery-wrapper {
    position: relative;
}

/* Alternative: if gallery doesn't have wrapper */
.property-single-layout .property-detail-gallery,
.property-single-layout .single-property-image,
.property-single-layout .property-tabs-gallery {
    position: relative;
}
