/* Baseball Hub UK marketplace pages: matched to the final Events/Add Club shell */
.marketplace-shell-match .topbar,
.marketplace-shell-match .add-club-wrap,
.marketplace-shell-match .market-page-wrap,
.marketplace-shell-match .market-list-shell,
.marketplace-shell-match .market-card,
.marketplace-shell-match .marketplace-submit-form{
    box-sizing:border-box;
}

.marketplace-shell-match .market-page-wrap{
    width:100%;
}

.marketplace-shell-match .market-page-hero{
    margin-bottom:18px;
}

.marketplace-shell-match .market-page-hero h1 span{
    color:#d8232a;
}

.market-top-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.market-add-icon{
    background:#0f172a;
    color:#fff;
}

.market-filter-row{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:2px 0 18px;
    margin:0;
    -webkit-overflow-scrolling:touch;
}

.market-filter-row::-webkit-scrollbar{
    display:none;
}

.market-filter{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    text-decoration:none;
    border:1px solid rgba(15,23,42,.09);
    background:#fff;
    color:#0f172a;
    border-radius:999px;
    padding:10px 14px;
    font-weight:850;
    font-size:13px;
    box-shadow:0 8px 20px rgba(15,23,42,.04);
}

.market-filter.active{
    background:#0f172a;
    color:#fff;
    border-color:#0f172a;
}

.market-list-shell{
    padding:18px;
}

.market-list-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    align-items:stretch;
}

.market-card{
    min-width:0;
    display:grid;
    grid-template-rows:auto 1fr;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.market-photo{
    width:100%;
    aspect-ratio:16/10;
    background:linear-gradient(135deg,#f8fafc,#e2e8f0);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.market-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.market-photo-empty{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#94a3b8;
    font-size:38px;
}

.market-body{
    min-width:0;
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:11px;
}

.market-card-topline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-width:0;
}

.market-type-pill,
.market-expiry,
.market-info-row span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    border-radius:999px;
    padding:8px 11px;
    font-size:12px;
    font-weight:850;
    line-height:1;
}

.market-type-pill{
    background:#fff1f2;
    color:#be123c;
    border:1px solid #fecdd3;
    white-space:nowrap;
}

.market-expiry{
    flex:0 0 auto;
    background:#f8fafc;
    color:#64748b;
    border:1px solid rgba(15,23,42,.07);
    white-space:nowrap;
}

.market-body h2{
    margin:0;
    color:#d8232a;
    font-size:22px;
    line-height:1.15;
    letter-spacing:-.035em;
}

.market-price{
    margin-top:-2px;
    color:#0f172a;
    font-size:25px;
    line-height:1;
    letter-spacing:-.035em;
    font-weight:950;
}

.market-info-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.market-info-row span{
    background:#f8fafc;
    color:#334155;
    border:1px solid rgba(15,23,42,.07);
}

.market-info-row i,
.market-expiry i{
    color:#d8232a;
}

.market-description{
    margin:0;
    color:#475569;
    line-height:1.58;
    font-size:14.5px;
    font-weight:500;
}

.market-actions{
    display:flex;
    gap:9px;
    flex-wrap:wrap;
    align-items:center;
    margin-top:auto;
    padding-top:4px;
}

.market-main-link,
.market-secondary-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border-radius:999px;
    text-decoration:none;
    font-weight:850;
    line-height:1;
}

.market-main-link{
    background:#0f172a;
    color:#fff;
    padding:11px 14px;
    font-size:13px;
}

.market-secondary-link{
    color:#0f172a;
    background:#f1f5f9;
    border:1px solid rgba(15,23,42,.06);
    padding:10px 12px;
    font-size:13px;
}

.market-empty-card,
.market-message-card{
    margin-top:0;
}

.marketplace-submit-form{
    width:100%;
    margin:0;
    display:grid;
    gap:20px;
    overflow:hidden;
}

.market-form-section{
    padding:0;
    margin:0;
}

.market-form-section + .market-form-section{
    border-top:1px solid rgba(15,23,42,0.08);
    padding-top:20px;
}

.market-form-section h2{
    margin:0 0 14px;
    font-size:20px;
    line-height:1.2;
    letter-spacing:-.02em;
    color:#0f172a;
}

.public-form-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.public-form-field{
    min-width:0;
}

.public-form-field.full{
    grid-column:1 / -1;
}

.public-form-field label{
    display:block;
    margin:0 0 7px;
    color:#334155;
    font-size:13px;
    font-weight:650;
}

.public-form-field input,
.public-form-field select,
.public-form-field textarea{
    width:100%;
    max-width:100%;
    border:1px solid rgba(15,23,42,.12);
    border-radius:16px;
    background:#f8fafc;
    color:#0f172a;
    font:inherit;
    font-size:15px;
    font-weight:500;
    padding:13px 14px;
    outline:none;
    box-shadow:none;
}

.public-form-field input:focus,
.public-form-field select:focus,
.public-form-field textarea:focus{
    border-color:rgba(216,35,42,.45);
    background:#fff;
    box-shadow:0 0 0 4px rgba(216,35,42,.08);
}

.public-form-field textarea{
    min-height:132px;
    resize:vertical;
    line-height:1.55;
}

.public-form-field input[type="file"]{
    padding:11px 12px;
    background:#fff;
}

.field-hint{
    font-weight:550;
    color:#64748b;
    font-size:12px;
    margin-left:4px;
}

.big-submit{
    margin-top:0;
    width:auto;
    min-width:190px;
    padding:14px 20px;
}

.honeypot{
    position:absolute!important;
    left:-9999px!important;
    opacity:0!important;
}

@media(max-width:700px){
    .market-top-actions{
        gap:8px;
    }

    .market-filter-row{
        padding-bottom:14px;
    }

    .market-list-shell{
        padding:14px;
    }

    .market-list-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .market-card{
        border-radius:22px;
    }

    .market-body{
        padding:15px;
        gap:10px;
    }

    .market-card-topline{
        align-items:flex-start;
        flex-wrap:wrap;
        gap:8px;
    }

    .market-body h2{
        font-size:20px;
    }

    .market-price{
        font-size:23px;
    }

    .market-info-row span{
        width:100%;
        justify-content:flex-start;
        white-space:normal;
    }

    .market-actions{
        gap:8px;
    }

    .market-main-link,
    .market-secondary-link{
        font-size:12.5px;
        padding:10px 11px;
    }

    .marketplace-submit-form{
        padding:16px;
        border-radius:24px;
        gap:18px;
    }

    .public-form-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .big-submit{
        width:100%;
    }
}
