.listing-social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/*.listing-social-share-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
}*/

.listing-card__share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.listing-card__share-btn svg{
    left: -1px;
    position: relative;
}

/* Оверлей попапа шеринга — z-index выше основных модалок (например, 99999) */
.share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.share-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Контейнер модалки */
.share-popup-container {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.share-popup-overlay.is-active .share-popup-container {
    transform: translateY(0);
}

/* Кнопка закрытия */
.share-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.share-popup-close:hover {
    color: #000;
}

.share-popup-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Сетка социальных сетей */
.share-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.share-socials a {
    display: flex;
    width: auto;
}
/*.share-socials .share-social-btn{
    display: block;
    height: auto;
    width: auto;
}*/

.share-social-btn {
    /*display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    /*font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.1s ease;*/
}
/*.share-social-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.share-social-btn:active {
    transform: scale(0.98);
}*/

.share-social-btn--telegram { 
    background-color: #24A1DE; 
}
.share-social-btn--telegram svg{
    width: 40px;
}
.share-social-btn--facebook { 
    background-color: #1877F2; 
}
.share-social-btn--facebook svg{
    width: 35px;
}
.share-social-btn--twitter { 
    background-color: #000000; 
}
.share-social-btn--twitter svg{
    width: 30px;
}
.share-social-btn--threads { 
    background-color: #000000; 
}
.share-social-btn--threads svg{
    width: 40px;
}

/* Инпут и кнопка копирования */
.share-copy-box {
    display: flex;
    gap: 8px;
    background: #f4f4f5;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
}

.share-copy-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    outline: none;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 8px 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.share-copy-btn:hover {
    background: #333;
}

.share-copy-btn.is-copied {
    background: darkcyan;
}