/**
 * WPResidence single-property Share dropdown: aligned icon + label rows.
 * The theme positions the native :after icons absolutely.  Reset them to
 * flex items so they cannot fall onto the next row (notably WhatsApp).
 * Scoped to the single-property header's .prop_social only.
 */
.prop_social .share_unit {
    width: 156px !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
}

.prop_social .share_unit a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    float: none !important;
    position: relative;
    width: 100% !important;
    height: auto !important;
    min-height: 24px;
    margin: 0 !important;
    padding: 4px 0 !important;
    box-sizing: border-box;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 18px !important;
    text-align: left !important;
    vertical-align: baseline !important;
    white-space: nowrap;
}

/* WPResidence places these font icons in :after.  Flex order moves them
 * in front of the text while keeping all icons on the proper row. */
.prop_social .share_unit a.social_facebook::after,
.prop_social .share_unit a.social_tweet::after,
.prop_social .share_unit a.social_pinterest::after,
.prop_social .share_unit a.social_whatsup::after,
.prop_social .share_unit a.social_email::after {
    position: static !important;
    display: block !important;
    order: -1;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 16px !important;
    text-align: center;
    vertical-align: baseline !important;
    transform: none !important;
}

/* The envelope glyph uses the solid Font Awesome weight. */
.prop_social .share_unit a.social_email::after {
    font-weight: 900;
}

/* New entries: SVG masks instead of font-dependent glyphs. */
.prop_social .share_unit a.mcwrps-viber::after,
.prop_social .share_unit a.mcwrps-copy::after {
    content: none !important;
    display: none !important;
}

.prop_social .share_unit a.mcwrps-viber::before,
.prop_social .share_unit a.mcwrps-copy::before {
    content: "";
    display: block;
    order: -1;
    position: static !important;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 15px 15px;
    mask-size: 15px 15px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.prop_social .share_unit a.mcwrps-viber::before {
    -webkit-mask-image: url('icons/viber.svg');
    mask-image: url('icons/viber.svg');
}

.prop_social .share_unit a.mcwrps-copy::before {
    -webkit-mask-image: url('icons/copy.svg');
    mask-image: url('icons/copy.svg');
}
