/* ==================================================
   📍 近くの募集
   メインフィードの上に重ねる
================================================== */

.nearby-recruits {

    position: fixed;

    left: 0;
    right: 0;

    bottom: 85px;

    z-index: 50;

    width: 100%;

    pointer-events: none;
}


/* タイトル */

.nearby-recruits h2 {

    margin: 0 0 8px;

    padding-left: 16px;

    font-size: 16px;

    color: #fff;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.8);

}


/* ==================================================
   横スクロール
================================================== */

#nearbyRecruitList {

    display: flex;

    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 4px 16px 10px;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    pointer-events: auto;
}

#nearbyRecruitList::-webkit-scrollbar {
    display: none;
}


/* ==================================================
   募集カード
================================================== */

.nearby-recruit-card {

    flex: 0 0 205px;

    display: block;

    padding: 12px 14px;

    border-radius: 14px;

    text-decoration: none;

    color: #fff;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.25);

    scroll-snap-align: start;
}


/* タイトル */

.nearby-recruit-title {

    font-size: 15px;

    font-weight: 700;

    line-height: 1.4;

    margin-bottom: 6px;

    overflow: hidden;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;
}


/* 場所 */

.nearby-recruit-place {

    font-size: 13px;

    opacity: 0.9;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    margin-bottom: 5px;
}


/* 距離 */

.nearby-recruit-distance {

    display: inline-block;

    font-size: 12px;

    font-weight: 700;

    padding: 3px 8px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.18);
}

/* ==================================================
   👤 近くの募集 ユーザー
================================================== */

.nearby-recruit-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.nearby-recruit-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.5);
}

.nearby-recruit-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nearby-recruit-username {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-recruit-gender {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(255,255,255,.8);
}


/* 募集タイトル */

.nearby-recruit-title {
    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}