/* ========================
   BUTTONS
======================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--forest);
    color: var(--white);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
    background: var(--forest-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--forest);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 500;
    border: 1.5px solid var(--forest);
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
    background: var(--forest);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--forest);
    padding: 0.65rem 1.4rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1.5px solid var(--sand);
    transition: border-color var(--transition);
}
.btn-outline:hover { border-color: var(--forest); }

.btn-danger {
    border-color: #D9534F;
    color: #D9534F;
}
.btn-danger:hover {
    background-color: #D9534F;
    color: white;
    border-color: #D9534F;
}

.btn-light {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--forest);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition);
}
.btn-light:hover { background: var(--bg-sand); transform: translateY(-2px); }

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: background var(--transition), transform var(--transition);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-badge {
    display: block;
    background: var(--forest);
    color: var(--white);
    text-align: center;
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1.75rem;
    transition: background var(--transition), transform var(--transition);
}
.btn-badge:hover { background: var(--forest-mid); transform: translateY(-2px); }

.btn-primary.is-saved {
    background-color: var(--leaf);
    border-color: var(--leaf);
    cursor: default;
}



/* ================================================
/* --- Digital Presence Toggle Buttons --- */
.social-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid #D1D5DB;
    background: white;
    color: #4B5563;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.social-toggle-btn.active {
    background-color: var(--plum, #5B4F5D);
    color: white;
    border-color: var(--plum, #5B4F5D);
}


/* ==========================================================================
   FAVOURITE BUTTON & CARD CLICK INTERCEPTOR OVERRIDES
   ========================================================================== */
.favourite-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(108, 83, 109, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.favourite-btn svg,
.favourite-btn svg * {
    pointer-events: none !important;
}

/* Ensure underlying card links never sit above the heart button */
.card-link,
.card-image-link,
.card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    outline: none !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   FLOATING BACK-TO-TOP BUTTON (FAB)
   ========================================================================== */
.floating-back-to-top {
    position: fixed;
    bottom: 2.25rem;
    right: 2.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251, 251, 249, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(108, 83, 109, 0.18);
    box-shadow: 0 8px 24px -4px rgba(45, 62, 51, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    color: var(--forest, #6C536D);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease,
                color 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
    outline: none;
}

.floating-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-back-to-top:hover {
    background: var(--forest, #6C536D);
    color: #ffffff;
    border-color: var(--forest, #6C536D);
    box-shadow: 0 14px 32px -4px rgba(108, 83, 109, 0.28), 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px) scale(1.05);
}

.floating-back-to-top:active {
    transform: translateY(-1px) scale(0.96);
    box-shadow: 0 6px 16px -2px rgba(108, 83, 109, 0.2);
}

.floating-back-to-top svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .floating-back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   HEART / BOOKMARK MICRO-INTERACTIONS
   ========================================================================== */
@keyframes bookmarkPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.35) rotate(-6deg); }
    70% { transform: scale(0.92) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.favourite-btn.saved svg,
.favourite-btn.active svg,
.save-btn.saved svg {
    animation: bookmarkPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   MOBILE STICKY CONVERSION BAR (<768px)
   ========================================================================== */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(253, 252, 248, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(108, 83, 109, 0.15);
        padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(45, 62, 51, 0.08);
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        transform: translateY(0);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-sticky-cta-info {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-width: 0;
    }

    .mobile-sticky-cta-title {
        font-family: 'DM Serif Display', serif;
        font-size: 1.05rem;
        color: var(--forest, #6C536D);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .mobile-sticky-cta-sub {
        font-size: 0.8rem;
        color: var(--text-muted, #6B7280);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-sticky-cta-btn {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--forest, #6C536D);
        color: #FFFFFF !important;
        font-weight: 600;
        font-size: 0.88rem;
        padding: 0.75rem 1.4rem;
        border-radius: var(--radius-pill, 999px);
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(108, 83, 109, 0.25);
        white-space: nowrap;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .mobile-sticky-cta-btn:hover,
    .mobile-sticky-cta-btn:active {
        background: var(--forest-mid, #5D465F);
        transform: scale(0.98);
    }
}


