/* ============================================================
   RealHomes Facebook Share – Estilos del botón y vista previa
   ============================================================ */

.rhfs-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    clear: both;
}

/* ── Botón ── */
.rhfs-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background-color: #1877F2;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: none;
    transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(24,119,242,.35);
}
.rhfs-share-btn:hover,
.rhfs-share-btn:focus {
    background-color: #166FE5;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(24,119,242,.45);
    outline: none;
}
.rhfs-share-btn:active      { transform: scale(.97); background-color: #1565D8; }
.rhfs-share-btn.rhfs--loading { background-color: #5ba3f5; pointer-events: none; cursor: wait; }

.rhfs-icon { width: 20px; height: 20px; fill: #ffffff; flex-shrink: 0; }

/* ── Vista previa tipo Facebook ── */
.rhfs-preview {
    display: flex;
    flex-direction: row;
    border: 1px solid #dddfe2;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f2f5;
    max-width: 500px;
}
.rhfs-preview__image {
    position: relative;
    width: 158px;
    min-width: 158px;
    overflow: hidden;
    background: #dddfe2;
}
.rhfs-preview__image img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    display: block;
}
.rhfs-preview__count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
}
.rhfs-preview__text {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.rhfs-preview__domain {
    font-size: 11px;
    color: #606770;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rhfs-preview__title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rhfs-preview__price {
    font-size: 14px;
    font-weight: 700;
    color: #1877F2;
    margin: 0;
}
.rhfs-preview__desc {
    font-size: 12px;
    color: #606770;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .rhfs-preview { flex-direction: column; max-width: 100%; }
    .rhfs-preview__image { width: 100%; min-width: unset; max-height: 200px; }
    .rhfs-preview__image img { min-height: 160px; }
    .rhfs-share-btn { width: 100%; justify-content: center; }
}
