/* ==========================================================================
   Floating Share Widget — Bottom-right corner
   Shared across wishlist, traveller stories, etc.
   ========================================================================== */

/* Share modal — generic (da-share-modal), used by wishlist and traveller stories */
.da-share-modal.da-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.da-share-modal.da-modal[hidden] {
    display: none;
}

.da-share-modal .da-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.da-share-modal .da-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 32px 24px;
}

.da-share-modal .da-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
}

.da-share-modal .da-modal-close:hover {
    color: #333;
}

.da-share-modal .da-modal-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

.da-share-modal__icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 24px;
}

.share-icon-button {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.share-icon-button:hover {
    transform: translateY(-2px);
}

.share-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease;
}

.share-icon-button:hover .share-icon-circle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-icon-circle-linkedin {
    background-color: #0a66c2;
    color: #fff;
}

.share-icon-circle-email {
    background-color: #666;
    color: #fff;
}

.share-icon-circle-facebook {
    background-color: #1877f2;
    color: #fff;
}

.share-icon-circle-whatsapp {
    background-color: #25d366;
    color: #fff;
}

.share-icon-circle-link {
    background-color: #e5e5e5;
    color: #333;
}

.share-icon-circle svg {
    width: 24px;
    height: 24px;
}

.share-icon-label {
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3a;
}

/* Floating widget buttons — match existing scroll_top_top_btn (50px, bottom/right 15px) */
.da-floating-widget {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Hide default back-to-top when our widget is present */
body:has(.da-floating-widget) .scroll_top_top_btn {
    display: none !important;
}

.da-floating-widget__btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    color: #333;
}

.da-floating-widget__btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.da-floating-widget__btn:active {
    transform: scale(0.98);
}

.da-floating-widget__btn:focus-visible {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

/* Notification fallback (when wishlist not loaded) */
.notification-container.notification-bottom-center {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 24px);
}

.notification-container .notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-container .notification.notification-show {
    opacity: 1;
    transform: translateY(0);
}

.notification-container .notification.notification-hide {
    opacity: 0;
    transform: translateY(-20px);
}

@media (max-width: 600px) {
    .da-floating-widget {
        bottom: 15px;
        right: 15px;
    }

    .da-floating-widget__btn {
        width: 50px;
        height: 50px;
    }

    .da-share-modal .da-modal-content {
        padding: 24px 20px;
    }

    .da-share-modal__icons {
        gap: 24px;
    }
}