.bg-buddy {background: #594a41;}
.sub-buddy {color: #fff; font-size: 150%; line-height: 1.3em;}
.bg-detial {background: #f6ebe7;}

.hover-zoom {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.hover-zoom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
}

/* Custom Swipe Modal */
#customSwipeModal {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0);
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    box-sizing: border-box;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#customSwipeModal.active {
    background-color: rgba(15, 23, 42, 0.95);
}
#customSwipeModal .modal-content-wrapper {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.9);
    touch-action: none;
}
#customSwipeModal.active .modal-content-wrapper {
    opacity: 1;
    transform: scale(1);
}
#customSwipeModal img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
    margin: auto;
    pointer-events: none;
}
#customSwipeModal .close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 10px;
    z-index: 10;
}

/* Contact box on Computer */
.custom-contact-container {
    margin: 15px 0 20px 0; 
    padding: 15px; 
    background: #ffffff; 
    border: 2px solid #1e3a8a; 
    border-radius: 12px; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.custom-contact-container .line-btn {
    display: flex; 
    align-items: center; 
    gap: 10px;
    text-decoration: none;
}
.custom-contact-container .phone-btn {
    display: flex; 
    align-items: center;
    text-decoration: none;
}

/* Contact box on Mobile */
@media (max-width: 767px) {
    .custom-contact-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 10px !important;
        background: #1e3a8a !important; 
        border: none !important;
        border-top: 3px solid #3b82f6 !important; 
        border-radius: 0 !important;
        z-index: 99999 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2) !important;
    }

    .custom-contact-container .line-btn {
        background: #06c755 !important; 
        padding: 8px 10px !important;
        border-radius: 50px !important;
        justify-content: center !important;
        color: #ffffff !important;
        font-weight: bold !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        text-decoration: none !important;
        height: 48px !important;
        box-sizing: border-box !important;
    }
    
    .custom-contact-container .line-btn * {
        pointer-events: none !important; 
    }
    
    .custom-contact-container .line-img-box {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .custom-contact-container .line-btn img {
        width: 20px !important;
        height: 20px !important;
        border-radius: 4px !important;
        display: block !important;
    }

    .custom-contact-container .line-text-sub {
        display: none !important; 
    }
    
    .custom-contact-container .line-text-main {
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .mobile-phone-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .phone-btn {
        background: #3b82f6 !important; 
        padding: 6px 10px !important;
        border-radius: 50px !important;
        justify-content: center !important;
        align-items: center !important;
        color: #ffffff !important;
        font-weight: bold !important;
        font-size: 13px !important;
        text-decoration: none !important;
        display: flex !important;
        height: 48px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .phone-btn-icon-box {
        background-color: #6a74a3 !important; 
        padding: 4px !important; 
        border-radius: 4px !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        width: 20px !important; 
        height: 20px !important; 
        flex-shrink: 0 !important;
    }

    .phone-btn svg {
        fill: #ffffff !important;
        width: 14px !important;
        height: 14px !important;
    }

    .phone-text-label {
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .desktop-phone-layout {
        display: none !important;
    }
    
    body {
        padding-bottom: 110px !important;
    }
}

@media (min-width: 768px) {
    .mobile-phone-col {
        display: none !important;
    }
}