/* =========================================
   LISTING PAGE (CLEAN + FIXED)
   ========================================= */

/* Title */
.lmv-page-title{
    text-align:center;
    margin-bottom:20px;
    font-size:2rem;
    font-weight:700;
}

/* Toggle Button */
.lmv-search-toggle{
    background:#007BFF;
    color:#fff;
    padding:12px 24px;
    border:none;
    border-radius:25px;
    font-weight:600;
    cursor:pointer;
}

/* Filter Card */
.lmv-filter-card{
    padding:30px;
    border-radius:12px;
    background:#fff;
    border:1px solid #eee;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

/* FIX BOOTSTRAP ROW ISSUE */
.lmv-filter-card .row{
    margin:0 !important;
}

/* Columns spacing */
.lmv-filter-card .col-md-6{
    padding:10px;
}

/* Inputs */
.lmv-filter-card .form-control{
    width:100%;
    padding:12px 14px;
    border-radius:8px;
}

/* Button */
.lmv-filter-submit{
    margin-top:10px;
    padding:12px 30px;
    border-radius:25px;
    border:none;
    background:#007BFF;
    color:#fff;
    font-weight:600;
    transition:.3s;
}

.lmv-filter-submit:hover{
    background:#0056b3;
}

/* Filter spacing */
#listingFilterFormContainer{
    margin:20px 0;
}

/* Grid */
.lmv-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
}

/* Card */
.lmv-card{
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    transition:.25s;
}

.lmv-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

/* Image */
.lmv-card__img{
    width:100%;
    height:200px;
    object-fit:cover;
}

/* Body */
.lmv-card__body{
    padding:20px;
}

/* Title */
.lmv-card__name{
    font-size:1.2rem;
    font-weight:600;
    margin-bottom:10px;
}

/* Meta */
.lmv-card__meta div{
    margin-bottom:6px;
    font-size:.9rem;
}

/* Button */
.lmv-card__btn{
    margin-top:15px;
    display:inline-block;
    background:#007BFF;
    color:#fff;
    padding:10px 18px;
    border-radius:6px;
    text-decoration:none;
}

.lmv-card__btn:hover{
    background:#0056b3;
}

/* Empty state */
.lmv-empty{
    text-align:center;
    padding:40px;
    color:#777;
}

/* Responsive */
@media (max-width:768px){

    .lmv-filter-card{
        padding:20px;
    }

    .lmv-card__body{
        padding:18px;
    }

}



/* ===== FINAL FORM FIX ===== */

.lmv-form{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.lmv-form > div{
    flex:1 1 48%;
}

/* Full width on mobile */
@media(max-width:768px){
    .lmv-form > div{
        flex:1 1 100%;
    }
}

/* Inputs */
.lmv-form input,
.lmv-form select{
    width:100%;
    padding:12px 14px;
    border-radius:8px;
}

/* Button row */
.lmv-form .col-12{
    flex:1 1 100%;
    text-align:center;
}


/* ===== SHOW PAGE BUTTON FIX ===== */

.lmv-show__back{
    display:inline-block;
    padding:12px 24px;
    background:#007BFF;
    color:#fff;
    border-radius:25px;
    text-decoration:none;
    margin-top:15px;
}

.lmv-show__back:hover{
    background:#0056b3;
}

/* Force center properly */
.text-center .lmv-show__back{
    display:inline-block;
}


/* ===== NEW LIST FORM (nlf) ===== */

.nlf {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Override Bootstrap columns */
.nlf .col-md-6,
.nlf .col-12 {
    padding: 0 !important;
}

/* Two column layout */
.nlf .col-md-6 {
    flex: 1 1 calc(50% - 10px);
}

/* Full width */
.nlf .col-12 {
    flex: 1 1 100%;
    text-align: center;
}

/* Inputs */
.nlf input,
.nlf select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
}

/* Button */
.nlf button {
    padding: 12px 25px;
}