/* =============================
   Floating Buttons Container
============================= */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;

    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.floating-container.hide {
    transform: translateY(140px);
    opacity: 0;
    pointer-events: none;
}

/* =============================
   Floating Buttons
============================= */
.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Scale slightly on hover */
.floating-btn:hover {
    transform: scale(1.1);
}

/* =============================
   Button Icons
============================= */
.floating-btn svg {
    width: 55%;
    height: 55%;
    display: block;
}

/* WhatsApp button color */
.whatsapp-btn {
    background: #25D366;
    color: #fff;
}

/* Call button color */
.call-btn {
    background: #007BFF;
    color: #fff;
}

/* =============================
   Tooltip (Desktop Only)
============================= */
.floating-btn .tooltip {
    position: absolute;
    top: 50%;
    right: 110%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Tooltip arrow */
.floating-btn .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent rgba(0,0,0,0.75) transparent transparent;
}

/* Show tooltip on hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .floating-btn:hover .tooltip {
        opacity: 1;
        transform: translateY(-50%) translateX(5px);
    }
}

/* =============================
   Responsive Adjustments
============================= */
@media (max-width: 768px) {
    .floating-container {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn svg {
        width: 60%;
        height: 60%;
    }

    .floating-btn .tooltip {
        display: none; /* hide tooltip on mobile */
    }
}

@media (max-width: 480px) {
    .floating-container {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .floating-btn svg {
        width: 65%;
        height: 65%;
    }
}
