.property-share-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.property-share-header-row .box-name {
    flex: 1 1 240px;
    min-width: 0;
}

.property-share-trigger-wrap {
    flex: 0 0 auto;
}

.btn-property-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-property-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(56, 118, 29, 0.18);
}

.property-share-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.property-share-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.property-share-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.property-share-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.property-share-modal.is-active .property-share-dialog {
    transform: translateY(0) scale(1);
}

.property-share-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.property-share-close:hover {
    transform: rotate(90deg);
    background: #f3f4f6;
}

.property-share-header {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.property-share-preview {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.property-share-preview-image {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
    flex: 0 0 auto;
    border: 1px solid #e5e7eb;
}

.property-share-preview-content {
    min-width: 0;
    padding-right: 2rem;
}

.property-share-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #111827;
}

.property-share-price {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #38761d;
}

.property-share-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.property-share-description {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #4b5563;
}

.property-share-body {
    padding: 1rem 1.25rem 1.25rem;
}

.property-share-subtitle {
    margin: 0 0 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
}

.property-share-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.property-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 96px;
    padding: 0.85rem 0.5rem;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.property-share-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--share-accent) 35%, #e8edf3);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    background: #fafbfc;
    color: #111827;
}

.property-share-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--share-accent) 12%, white);
    color: var(--share-accent);
    font-size: 1.25rem;
}

.property-share-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.property-share-instagram-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}

body.property-share-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .property-share-modal {
        align-items: center;
    }

    .property-share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .property-share-modal {
        padding: 0;
        align-items: flex-end;
    }

    .property-share-dialog {
        width: 100%;
        max-height: 92vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .property-share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .property-share-item {
        min-height: 88px;
        border-radius: 14px;
    }

    .btn-property-share span {
        display: none;
    }

    .btn-property-share {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 999px;
    }
}

@media (max-width: 380px) {
    .property-share-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
