/* =========================
   HOME - UKŁAD NAGŁÓWKA
   ========================= */
body.view-home .home-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom: 10px;
}

body.view-home h1{
    margin:0;
    font-size: 22px;
    line-height: 1.15;
}

body.view-home .home-sub{
    margin-top: 6px;
    color:#94A1B2;
    font-size: 13px;
    font-weight: 600;
}

/* =========================
   FILTRY (CHIPS)
   ========================= */
body.view-home .home-filters{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
}

body.view-home .chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height: 34px;
    padding: 0 12px;
    border-radius: 999px;

    background:#fff;
    border: 1px solid rgba(148,161,178,.35);

    color:#0b1220;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;

    text-decoration:none;
    user-select:none;
    -webkit-tap-highlight-color: transparent;

    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

body.view-home .chip:active{
    transform: scale(.98);
}

body.view-home .chip.active{
    background:#1952B0;
    border-color:#1952B0;
    color:#fff;
}

/* =========================
   SPOTY - LISTA + KARTA
   (to Ci naprawi te wielkie obrazki/avatary)
   ========================= */
body.view-home .spots-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top: 10px;
}

body.view-home .spot-card{
    display:block;
    background:#fff;
    border-radius: 16px;
    padding: 14px;
    text-decoration:none;
    color:inherit;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    -webkit-tap-highlight-color: transparent;
    overflow:hidden; /* ważne: nic nie wyleje z karty */
}

body.view-home .spot-card:active{
    transform: scale(.99);
}

body.view-home .spot-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

body.view-home .spot-title{
    font-weight: 900;
    font-size: 16px;
    line-height: 1.2;
    color:#0b1220;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    min-width:0;
    flex: 1 1 auto;
}

body.view-home .spot-when{
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 13px;
    color:#1952B0;
    white-space:nowrap;
}

body.view-home .spot-meta{
    margin-top: 8px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

body.view-home .spot-city{
    max-width: 72%;
    font-size: 13px;
    font-weight: 700;
    color:#94A1B2;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

body.view-home .spot-members{
    font-size: 13px;
    font-weight: 900;
    color:#0b1220;
    white-space:nowrap;
}

body.view-home .spot-owner{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148,161,178,.25);

    display:flex;
    align-items:center;
    gap:10px;
}

body.view-home .spot-owner-avatar{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    overflow:hidden;
    background:#F3F5F7;
    border: 1px solid rgba(148,161,178,.25);
    flex: 0 0 auto;
}

body.view-home .spot-owner-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* placeholder jak nie ma avatara */
body.view-home .spot-owner-placeholder{
    width:100%;
    height:100%;
    background: linear-gradient(135deg, #e9eef5, #f7f9fc);
}

body.view-home .spot-owner-text{
    font-size: 13px;
    font-weight: 700;
    color:#0b1220;
}

/* Bezpiecznik: żadne img w kartach nie rośnie do kosmosu */
body.view-home .spot-card img{
    max-width: 100%;
    height: auto;
}

/* =========================
   MOTOCYKLIŚCI (HOME)
   ========================= */
body.view-home .people-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap:12px;
    margin-top: 12px;
    margin-bottom: 18px;
}

body.view-home .person-card{
    display:block;
    background:#fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    padding: 14px;
    color: inherit;
    text-decoration:none;
    -webkit-tap-highlight-color: transparent;
    overflow:hidden;
}

body.view-home .person-card:active{
    transform: scale(.99);
}

body.view-home .person-top{
    display:flex;
    align-items:center;
    gap:12px;
}

body.view-home .person-avatar{
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow:hidden;
    background:#F3F5F7;
    border: 1px solid rgba(148,161,178,.25);
    flex: 0 0 auto;
}

body.view-home .person-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

body.view-home .person-avatar-placeholder{
    width:100%;
    height:100%;
    background: linear-gradient(135deg, #e9eef5, #f7f9fc);
}

body.view-home .person-info{
    min-width:0;
    flex: 1 1 auto;
}

body.view-home .person-name{
    font-weight: 900;
    font-size: 15px;
    line-height: 1.2;
    color:#0b1220;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

body.view-home .person-city{
    margin-top: 4px;
    color:#94A1B2;
    font-weight: 700;
    font-size: 13px;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (min-width: 520px){
    body.view-home .people-grid{
        grid-template-columns: 1fr 1fr;
    }
}
