/* MHPMart Classifieds Stylesheet */
.mhpmart-classifieds-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.mhpmart-search-bar {
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.mhpmart-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mhpmart-search-form input[type="text"] {
    flex: 2;
    min-width: 240px;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.mhpmart-search-form select {
    flex: 1;
    min-width: 180px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
}

.mhpmart-btn-search {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mhpmart-btn-search:hover {
    background: #0284c7;
}

/* Grid Layout */
.mhpmart-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, min-width(260px), 1fr);
    gap: 20px;
}

.mhpmart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.mhpmart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.mhpmart-card.is-featured {
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.mhpmart-card-thumb {
    position: relative;
    height: 190px;
    background: #f1f5f9;
}

.mhpmart-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mhpmart-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.badge-featured {
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-urgent {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
}

.mhpmart-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mhpmart-card-title {
    font-size: 16px;
    margin: 0 0 8px;
    line-height: 1.4;
}

.mhpmart-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.mhpmart-card-title a:hover {
    color: #0ea5e9;
}

.mhpmart-card-meta {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
}

.mhpmart-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin-top: auto;
}

/* Post Ad Form & Single Ad */
.mhpmart-post-ad-container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mhpmart-btn-submit {
    background: #059669;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.mhpmart-btn-submit:hover {
    background: #047857;
}
