/* Container for Floating Buttons */
.fixed-floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    /* Stack builds upwards from bottom */
    gap: 15px;
    /* Consistent spacing */
    z-index: 1000;
    align-items: center;
    /* PERFECT Center Alignment */
    pointer-events: none;
    /* Allow clicks to pass through empty space */
}

/* Unified Button Styling - ALL BUTTONS ARE IDENTICAL IN SIZE */
.float-btn {
    width: 52px;
    /* Fixed Uniform Size */
    height: 52px;
    /* Fixed Uniform Size */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Clean, modern shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth pro transition */
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    position: relative;
    font-size: 22px;
    /* Consistent Icon Size */
    border: none;
    margin: 0;
    padding: 0;
}

/* Hover Effects - Subtle Lift */
.float-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Branding Colors */
.float-whatsapp {
    background-color: #25d366;
    /* Official WhatsApp Green */
}

.float-call {
    background-color: #060d90;
    /* Brand Deep Blue */
}

.float-location {
    background-color: #ef4444;
    /* Red */
}

.back-to-top {
    background-color: #060d90;
    /* Brand Deep Blue */
    font-size: 18px;
    /* Slightly smaller icon for the arrow looks cleaner */
}

/* Back to Top Logic */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* Start slightly down */
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.visible:hover {
    transform: translateY(-4px);
    /* Maintain hover effect when visible */
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .fixed-floating-buttons {
        bottom: 20px;
        right: 16px;
        /* Safe mobile margin */
        gap: 12px;
        /* Tighter gap */
    }

    .float-btn {
        width: 46px;
        /* Smaller but still touch-friendly */
        height: 46px;
        font-size: 20px;
    }
}

/* Premium Floating Labels (Tooltips) */
.float-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    /* Position to the left */
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    /* Start slightly off-position */

    /* Glassmorphism Style */
    background: rgba(15, 23, 42, 0.85);
    /* Dark Slate with opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    color: white;
    padding: 8px 16px;
    /* Generous padding */
    border-radius: 9999px;
    /* Pill shape */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Elastic ease */
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Show Label on Hover */
.float-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    /* Slide into place */
    right: 64px;
    /* Slight movement adjustment */
}