/* ============================================
   Manila Polyclinic - Floating Action Buttons
   Sticky Booking & Contact Buttons
   ============================================ */

/* Floating Action Buttons Container */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Floating Button Base Style */
.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn svg,
.floating-btn img {
    width: 28px;
    height: 28px;
}

/* WhatsApp Button */
.floating-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.floating-btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

/* Phone Button */
.floating-btn-phone {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.floating-btn-phone:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #063341 100%);
}

/* Messenger Button */
.floating-btn-messenger {
    background: linear-gradient(135deg, #0084FF 0%, #0066CC 100%);
    color: white;
}

.floating-btn-messenger:hover {
    background: linear-gradient(135deg, #0066CC 0%, #004099 100%);
}

/* Booking Button - Vertical on Side */
.floating-btn-booking {
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    color: white;
    width: auto;
    height: auto;
    padding: 16px 12px;
    border-radius: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.floating-btn-booking:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #CC4D22 100%);
    padding-right: 16px;
}

/* Top Right Contact Buttons */
.top-contact-buttons {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 10px;
}

.top-contact-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-contact-btn:hover {
    transform: scale(1.1);
}

.top-contact-btn svg {
    width: 22px;
    height: 22px;
}

.top-contact-btn-whatsapp {
    background: #25D366;
    color: white;
}

.top-contact-btn-phone {
    background: var(--color-primary);
    color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .floating-actions {
        right: 15px;
        bottom: 15px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn-booking {
        padding: 12px 10px;
        font-size: 12px;
    }

    .top-contact-buttons {
        top: 75px;
        right: 15px;
    }

    .top-contact-btn {
        width: 40px;
        height: 40px;
    }
}

/* Hide floating buttons when header is in view (optional) */
.floating-actions.hidden-on-top {
    opacity: 0;
    pointer-events: none;
}

/* Pulse animation for booking button */
@keyframes pulse-booking {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.7);
    }
}

.floating-btn-booking {
    animation: pulse-booking 2s infinite;
}

.floating-btn-booking:hover {
    animation: none;
}
