/* =========================================================
   BEYOND REAL ESTATE
   SOCIAL POST OPTIONS
========================================================= */

.social-post-options {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    visibility: hidden;
    pointer-events: none;
}


/* =========================================================
   OPEN
========================================================= */

.social-post-options.open {
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   OVERLAY
========================================================= */

.social-post-options-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    transition:
        opacity 0.25s ease;
}


.social-post-options.open
.social-post-options-overlay {
    opacity: 1;
}


/* =========================================================
   BOTTOM SHEET
========================================================= */

.social-post-options-sheet {
    position: relative;

    width: 100%;
    max-width: 600px;

    background: #ffffff;

    border-radius:
        22px 22px 0 0;

    padding:
        10px 18px
        calc(18px + env(safe-area-inset-bottom));

    box-shadow:
        0 -10px 40px
        rgba(0, 0, 0, 0.18);

    transform:
        translateY(100%);

    transition:
        transform 0.3s
        cubic-bezier(.22, 1, .36, 1);

    z-index: 2;
}


.social-post-options.open
.social-post-options-sheet {
    transform: translateY(0);
}


/* =========================================================
   HANDLE
========================================================= */

.social-post-options-handle {
    width: 42px;
    height: 5px;

    border-radius: 20px;

    background: #d1d5db;

    margin: 3px auto 14px;
}


/* =========================================================
   HEADER
========================================================= */

.social-post-options-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        4px 2px 12px;
}


.social-post-options-header h3 {
    margin: 0;

    font-size: 20px;
    font-weight: 700;

    color: #18252a;
}


.social-post-options-close {
    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 50%;

    background: #f3f4f6;

    color: #374151;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 16px;
}


/* =========================================================
   OPTIONS
========================================================= */

.social-post-options-list {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.social-post-option {
    width: 100%;

    min-height: 52px;

    padding:
        13px 10px;

    border: 0;

    border-radius: 12px;

    background: transparent;

    display: flex;

    align-items: center;

    gap: 14px;

    text-align: left;

    font-size: 16px;
    font-weight: 500;

    color: #18252a;

    cursor: pointer;

    transition:
        background 0.15s ease;
}


.social-post-option:hover,
.social-post-option:active {
    background: #f5f7f7;
}


.social-post-option i {
    width: 24px;

    text-align: center;

    font-size: 18px;

    color: #285f4b;
}


/* =========================================================
   DANGER
========================================================= */

.social-post-option.danger {
    color: #dc2626;
}


.social-post-option.danger i {
    color: #dc2626;
}


/* =========================================================
   CANCEL
========================================================= */

.social-post-options-cancel {
    width: 100%;

    min-height: 52px;

    margin-top: 10px;

    border: 0;

    border-radius: 14px;

    background: #f3f4f6;

    color: #374151;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 768px) {

    .social-post-options {
        align-items: center;
    }


    .social-post-options-sheet {

        width: 420px;

        border-radius: 20px;

        padding:
            16px 20px
            20px;

        transform:
            translateY(30px);

        opacity: 0;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }


    .social-post-options.open
    .social-post-options-sheet {

        transform:
            translateY(0);

        opacity: 1;
    }

}
