/* ── Legacy carousel (GD listing pages) ───────────────────── */

.sfhr-social-carousel {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
}

.sfhr-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sfhr-carousel-track::-webkit-scrollbar {
    display: none;
}

.sfhr-carousel-slide {
    flex: 0 0 320px;
    min-height: 200px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfhr-carousel-slide iframe {
    max-width: 100%;
    border: none;
}

.sfhr-carousel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: #0073aa;
    word-break: break-all;
    text-decoration: none;
}

.sfhr-carousel-link:hover {
    text-decoration: underline;
}

.sfhr-carousel-prev,
.sfhr-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sfhr-carousel-prev:hover,
.sfhr-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sfhr-carousel-prev { left: 8px; }
.sfhr-carousel-next { right: 8px; }


/* ── Social feed cards (neighborhood pages) ───────────────── */

.sfhr-social-feed {
    position: relative;
    margin: 0 0 10px;
    cursor: grab;
}

/* Gradient fade hints at edges */
.sfhr-social-feed::before,
.sfhr-social-feed::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.sfhr-social-feed::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.sfhr-social-feed::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}
/* Show right fade when track is scrollable (default) */
.sfhr-social-feed:not(.sfhr-feed-at-end)::after {
    opacity: 1;
}
/* Show left fade once scrolled */
.sfhr-social-feed.sfhr-feed-scrolled::before {
    opacity: 1;
}

.sfhr-social-feed-track {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 2px 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sfhr-social-feed-track::-webkit-scrollbar {
    display: none;
}

.sfhr-sf-card {
    flex: 0 0 172px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.sfhr-sf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* Media area — fixed 100px height */
.sfhr-sf-media {
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 6px;
}

.sfhr-sf-media--no-thumb {
    align-items: center;
    justify-content: center;
}

/* Platform badge */
.sfhr-sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Slight dark overlay behind badge when on thumbnails */
.sfhr-sf-media:not(.sfhr-sf-media--no-thumb) .sfhr-sf-badge {
    background-color: rgba(0, 0, 0, 0.55) !important;
}

/* Body area */
.sfhr-sf-body {
    padding: 8px 10px 10px;
}

.sfhr-sf-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sfhr-sf-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 600px) {
    .sfhr-sf-card {
        flex: 0 0 152px;
    }
}

@media (max-width: 400px) {
    .sfhr-carousel-slide {
        flex: 0 0 280px;
        min-height: 180px;
    }
    .sfhr-sf-card {
        flex: 0 0 140px;
    }
    .sfhr-sf-media {
        height: 85px;
    }
}
