/* Sticky Mobile CTA Bar — Contact Us / Call Us
   Shown only on mobile and small screens (<=768px) on property/project detail pages. */

.sticky-cta-spacer {
    display: none;
}

.sticky-cta-bar {
    display: none;
}

.call-confirm-overlay,
.call-confirm-sheet {
    display: none;
}

@media (max-width: 768px) {

    .sticky-cta-spacer {
        display: block;
        height: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .sticky-cta-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid #ebedf2;
        box-shadow: 0 -6px 24px rgba(17, 24, 39, 0.08);
    }

    /* Hide the older floating "Get Details" pill so it doesn't duplicate the bar */
    .slidein-trigger-btn {
        display: none !important;
    }

    .sticky-cta-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 600;
        font-family: inherit;
        letter-spacing: 0.1px;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    }

    .sticky-cta-btn i {
        font-size: 15px;
    }

    .sticky-cta-btn:active {
        transform: scale(0.97);
    }

    .sticky-cta-call {
        background: #ffffff;
        border: 1.5px solid #1563df;
        color: #1563df;
    }

    .sticky-cta-contact {
        background: linear-gradient(135deg, #1563df 0%, #0d47a1 100%);
        border: none;
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(21, 99, 223, 0.32);
    }

    /* Call confirmation bottom sheet */
    .call-confirm-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.5);
        z-index: 1200;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .call-confirm-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .call-confirm-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1201;
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        padding: 12px 24px calc(24px + env(safe-area-inset-bottom, 0px));
        text-align: center;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -8px 30px rgba(17, 24, 39, 0.18);
    }

    .call-confirm-sheet.active {
        transform: translateY(0);
    }

    .call-confirm-handle {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: #e5e7eb;
        margin: 0 auto 18px;
    }

    .call-confirm-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 14px;
        border-radius: 50%;
        background: #e8f0fe;
        color: #1563df;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }

    .call-confirm-title {
        margin: 0 0 4px;
        font-size: 18px;
        font-weight: 700;
        color: #111827;
    }

    .call-confirm-number {
        margin: 0 0 20px;
        font-size: 14px;
        color: #6b7280;
    }

    .call-confirm-yes {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 50px;
        border-radius: 14px;
        background: linear-gradient(135deg, #1563df 0%, #0d47a1 100%);
        color: #ffffff;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 8px 18px rgba(21, 99, 223, 0.32);
        margin-bottom: 10px;
    }

    .call-confirm-yes:active {
        transform: scale(0.98);
    }

    .call-confirm-cancel {
        width: 100%;
        height: 44px;
        border: none;
        background: transparent;
        color: #6b7280;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }
}
