/* WhatsApp Chat Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-chat-button {
    position: relative;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-chat-button i {
    font-size: 30px;
    color: white;
}

.chat-text {
    position: absolute;
    right: 70px;
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    white-space: nowrap;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-chat-button:hover .chat-text {
    opacity: 1;
    transform: translateX(0);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    animation: bounce 1s infinite;
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-chat-box.active {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    font-size: 20px;
}

.chat-info h4 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.online-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-status i {
    font-size: 8px;
    animation: blink 2s infinite;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    padding: 20px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    background: #E5DDD5;
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
}

.message-bubble {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent white transparent transparent;
}

.message-bubble p {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.message-bubble p:last-of-type {
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    color: #999;
    display: block;
    text-align: right;
}

.chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.whatsapp-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-send-btn i {
    font-size: 18px;
}

/* Map Container Styles */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .whatsapp-chat-box {
        width: calc(100vw - 30px);
        bottom: 75px;
        right: 50%;
        transform: translateX(50%) scale(0);
        transform-origin: bottom center;
    }
    
    .whatsapp-chat-box.active {
        transform: translateX(50%) scale(1);
    }
    
    .chat-text {
        display: none;
    }
    
    .whatsapp-chat-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-chat-button i {
        font-size: 26px;
    }
}
