/* =====================================================
   Hide theme page-header on classifieds pages
   (page IDs 1610 /classifieds/, 1614 /place-ad/, 1706 /my-ads/)
   ===================================================== */
.page-id-1610 .bb-page-header,
.page-id-1610 .entry-header,
.page-id-1610 .page-header,
.page-id-1610 .bb-title,
.page-id-1610 .bb-cover-list-wrap,
.page-id-1614 .bb-page-header,
.page-id-1614 .entry-header,
.page-id-1614 .page-header,
.page-id-1614 .bb-title,
.page-id-1614 .bb-cover-list-wrap,
.page-id-1706 .bb-page-header,
.page-id-1706 .entry-header,
.page-id-1706 .page-header,
.page-id-1706 .bb-title,
.page-id-1706 .bb-cover-list-wrap,
.single-wam_classified .bb-page-header,
.single-wam_classified .entry-header,
.single-wam_classified .page-header,
.single-wam_classified .bb-title,
.post-type-archive-wam_classified .bb-page-header,
.post-type-archive-wam_classified .entry-header,
.post-type-archive-wam_classified .page-header,
.tax-classified_category .bb-page-header,
.tax-classified_category .entry-header,
.tax-classified_location .bb-page-header,
.tax-classified_location .entry-header,
.tax-classified_type .bb-page-header,
.tax-classified_type .entry-header { display:none !important; }

/* Pull content up where theme adds padding under hidden header */
.page-id-1610 .entry-content,
.page-id-1614 .entry-content,
.page-id-1706 .entry-content,
.single-wam_classified .entry-content,
.post-type-archive-wam_classified .entry-content { padding-top:0 !important; margin-top:0 !important; }

/* =====================================================
   WAM Classifieds — UI (matched to signup page palette)
   Palette:
     Maroon (page bg)   #6b0f1a
     Maroon-dark (ink)  #4b0c0c
     Cream/paper        #f5e9cc
     Gold (borders)     #c8a84b
     Gold accent (txt)  #e8c96a
     Body brown         #3a2a0a
     Crimson (cta)      #7d1020
   ===================================================== */

/* Page wrapper — maroon fill, no viewport breakout (works inside any container) */
.wamc-page-wrapper{
    background:#6b0f1a;
    padding:3rem 1.5rem 4rem;
    box-sizing:border-box;
    width:100%;
    font-family:Georgia,'Times New Roman',serif;
    color:#3a2a0a;
    margin:0;
}
/* Stretch container/grid wrappers on classifieds pages so the maroon fills naturally */
html body.page-id-1610 #content,
html body.page-id-1614 #content,
html body.page-id-1706 #content,
html body.single-wam_classified #content,
html body.post-type-archive-wam_classified #content,
html body.tax-classified_category #content,
html body.tax-classified_location #content,
html body.tax-classified_type #content {
    padding:0 !important;
    margin:0 !important;
    background:#6b0f1a;
}
/* Sticky-header clearance — sticky-header body class triggers 76px top reserved space.
   Our reset killed it, so explicitly re-apply on the wrapper. */
html body.sticky-header.page-id-1610 .wamc-page-wrapper,
html body.sticky-header.page-id-1614 .wamc-page-wrapper,
html body.sticky-header.page-id-1706 .wamc-page-wrapper,
html body.sticky-header.single-wam_classified .wamc-page-wrapper,
html body.sticky-header.post-type-archive-wam_classified .wamc-page-wrapper,
html body.sticky-header.tax-classified_category .wamc-page-wrapper,
html body.sticky-header.tax-classified_location .wamc-page-wrapper,
html body.sticky-header.tax-classified_type .wamc-page-wrapper {
    padding-top: calc(var(--bb-header-height, 76px) + 3rem) !important;
}
html body.page-id-1610 #content > .container,
html body.page-id-1614 #content > .container,
html body.page-id-1706 #content > .container,
html body.single-wam_classified #content > .container,
html body.post-type-archive-wam_classified #content > .container,
html body.tax-classified_category #content > .container,
html body.tax-classified_location #content > .container,
html body.tax-classified_type #content > .container {
    max-width:none !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
}
html body.page-id-1610 .bb-grid.site-content-grid,
html body.page-id-1614 .bb-grid.site-content-grid,
html body.page-id-1706 .bb-grid.site-content-grid,
html body.single-wam_classified .bb-grid.site-content-grid,
html body.post-type-archive-wam_classified .bb-grid.site-content-grid,
html body.tax-classified_category .bb-grid.site-content-grid,
html body.tax-classified_location .bb-grid.site-content-grid,
html body.tax-classified_type .bb-grid.site-content-grid {
    display:block !important;
    grid-template-columns:none !important;
    padding:0 !important;
    margin:0 !important;
    max-width:none !important;
}
html body.page-id-1610 #primary,
html body.page-id-1614 #primary,
html body.page-id-1706 #primary,
html body.single-wam_classified #primary,
html body.post-type-archive-wam_classified #primary,
html body.tax-classified_category #primary,
html body.tax-classified_location #primary,
html body.tax-classified_type #primary {
    width:100% !important;
    max-width:none !important;
    flex:none !important;
    padding:0 !important;
    margin:0 !important;
}
/* Hide buddypanel/sidebar on these pages */
html body.page-id-1610 #buddypanel,
html body.page-id-1614 #buddypanel,
html body.page-id-1706 #buddypanel,
html body.single-wam_classified #buddypanel,
html body.post-type-archive-wam_classified #buddypanel,
html body.tax-classified_category #buddypanel,
html body.tax-classified_location #buddypanel,
html body.tax-classified_type #buddypanel,
html body.page-id-1610 .bb-grid-cell.secondary,
html body.page-id-1614 .bb-grid-cell.secondary,
html body.page-id-1706 .bb-grid-cell.secondary,
html body.single-wam_classified .bb-grid-cell.secondary,
html body.post-type-archive-wam_classified .bb-grid-cell.secondary,
html body.tax-classified_category .bb-grid-cell.secondary,
html body.tax-classified_location .bb-grid-cell.secondary,
html body.tax-classified_type .bb-grid-cell.secondary {
    display:none !important;
}

/* Page header */
.wamc-page-header{text-align:center;margin-bottom:1.75rem}
.wamc-page-title{
    font-size:2rem;
    font-weight:700;
    color:#fff;
    line-height:1.3;
    margin:0 0 .4rem;
    font-family:Georgia,'Times New Roman',serif;
    letter-spacing:.01em;
}
.wamc-page-tagline{
    font-size:1.15rem;
    color:#e8c96a;
    font-style:italic;
    margin:0;
    font-family:Georgia,'Times New Roman',serif;
}

/* Card container — cream w/ gold border */
.wamc-card-container{
    max-width:1020px;
    margin:0 auto;
    background:#f5e9cc;
    border:4px solid #c8a84b;
    border-radius:4px;
    padding:2rem 2.5rem;
    box-shadow:0 4px 24px rgba(0,0,0,.35);
}

/* Header inside card */
.wamc-archive-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:1.5rem;
    gap:1rem;
    flex-wrap:wrap;
    padding-bottom:.6rem;
    border-bottom:2px solid #c8a84b;
}
.wamc-archive-head h1,.wamc-archive-head h2{
    margin:0;
    font-size:1.75rem;
    color:#4b0c0c;
    font-family:Georgia,'Times New Roman',serif;
}

/* Filters bar */
.wamc-filters{
    display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;
    padding:.85rem 1rem;
    background:rgba(255,255,255,.6);
    border:1px solid #c8a84b;
    border-radius:3px;
    margin-bottom:1.5rem;
}
.wamc-filters input[type=search],
.wamc-filters select{
    padding:.55rem .75rem;
    border:1px solid #c8a84b;
    border-radius:3px;
    background:#fff;
    font-size:.95rem;
    min-width:140px;
    font-family:inherit;
    color:#3a2a0a;
}
.wamc-filters input[type=search]{min-width:200px;flex:1}
.wamc-btn-post{margin-left:auto}

/* Grid */
.wamc-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:1rem;
}
.wamc-grid-featured{margin:1rem 0}

/* Card */
.wamc-card{
    display:flex;flex-direction:column;
    border:2px solid #c8a84b;
    border-radius:4px;
    background:#fffaf0;
    overflow:hidden;
    transition:transform .15s ease,box-shadow .15s ease;
}
.wamc-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px -8px rgba(75,12,12,.4)}
.wamc-card-thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:#ede0bf}
.wamc-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.wamc-card-body{padding:1rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.wamc-card-title{margin:0;font-size:1.1rem;line-height:1.3;font-family:Georgia,'Times New Roman',serif}
.wamc-card-title a{color:#4b0c0c;text-decoration:none}
.wamc-card-title a:hover{color:#7d1020}
.wamc-card-chips{display:flex;gap:.35rem;flex-wrap:wrap}
.wamc-card-excerpt{font-size:.9rem;color:#5a4d33;margin:.25rem 0 0;flex:1;line-height:1.5}
.wamc-card-foot{
    display:flex;justify-content:space-between;align-items:center;
    padding-top:.5rem;margin-top:auto;
    border-top:1px solid #e3d4a8;font-size:.85rem;
}
.wamc-card-meta{color:#7a6a40;font-style:italic}

/* Chips */
.wamc-chip{
    display:inline-block;
    padding:.2rem .65rem;
    border-radius:999px;
    font-size:.72rem;
    font-weight:700;
    background:#c8a84b;
    color:#4b0c0c;
    letter-spacing:.04em;
    text-transform:uppercase;
    font-family:Georgia,serif;
}
.wamc-chip-cat{background:#7d1020;color:#f5e9cc}
.wamc-chip-type{background:#4b0c0c;color:#e8c96a}
.wamc-chip-loc{background:#c8a84b;color:#4b0c0c}

/* Price */
.wamc-price{font-weight:700;color:#7d1020;font-size:1.05rem;font-family:Georgia,serif}

/* Single ad */
.wamc-breadcrumb{margin-bottom:1rem}
.wamc-breadcrumb a{color:#e8c96a;text-decoration:none;font-size:.95rem;font-style:italic}
.wamc-single-thumb{margin:1rem 0}
.wamc-single-thumb img{width:100%;height:auto;border-radius:4px;border:2px solid #c8a84b}
.wamc-single-meta{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin:1rem 0}
.wamc-single-author{
    padding:.85rem 1rem;
    background:rgba(200,168,75,.15);
    border-left:3px solid #c8a84b;
    border-radius:3px;
    margin:1rem 0;
    font-size:.95rem;
    color:#4b0c0c;
}
.wamc-single-contact{
    margin:1.5rem 0;
    padding:1.25rem;
    background:#fffaf0;
    border:2px solid #c8a84b;
    border-radius:4px;
    text-align:center;
}
.wamc-expires{color:#7d1020;font-size:.85rem;font-style:italic}

/* Buttons */
.wamc-btn{
    display:inline-block;
    padding:.6rem 1.25rem;
    border-radius:3px;
    background:#f5e9cc;
    color:#4b0c0c;
    border:2px solid #c8a84b;
    text-decoration:none;
    font-weight:700;
    font-size:.9rem;
    font-family:Georgia,serif;
    cursor:pointer;
    transition:all .15s ease;
}
.wamc-btn:hover{background:#c8a84b;color:#4b0c0c;border-color:#4b0c0c}
.wamc-btn-primary{background:#7d1020;color:#f5e9cc;border-color:#4b0c0c}
.wamc-btn-primary:hover{background:#4b0c0c;color:#e8c96a;border-color:#c8a84b}

/* Form */
.wamc-form{
    background:transparent;
    padding:0;
    border:none;
    color:#3a2a0a;
}
.wamc-form .form-row{margin-bottom:1rem}
.wamc-form label{
    display:block;
    font-weight:700;
    margin-bottom:.4rem;
    font-size:.95rem;
    color:#4b0c0c;
    font-family:Georgia,serif;
}
.wamc-form input[type=text],
.wamc-form input[type=number],
.wamc-form input[type=search],
.wamc-form select,
.wamc-form textarea{
    width:100%;
    padding:.65rem .85rem;
    border:1px solid #c8a84b;
    border-radius:3px;
    font-size:.95rem;
    background:#fff;
    box-sizing:border-box;
    font-family:Georgia,'Times New Roman',serif;
    color:#3a2a0a;
}
.wamc-form input:focus,.wamc-form select:focus,.wamc-form textarea:focus{
    outline:none;
    border-color:#7d1020;
    box-shadow:0 0 0 3px rgba(125,16,32,.15);
}
.wamc-form textarea{min-height:140px;resize:vertical}
.wamc-form button[type=submit]{
    padding:.75rem 1.75rem;
    background:#7d1020;
    color:#f5e9cc;
    border:2px solid #4b0c0c;
    border-radius:3px;
    font-weight:700;
    font-family:Georgia,serif;
    cursor:pointer;
    font-size:1rem;
    letter-spacing:.02em;
}
.wamc-form button[type=submit]:hover{background:#4b0c0c;color:#e8c96a}
.wamc-form button[type=submit]:disabled{opacity:.6;cursor:not-allowed}
.wamc-form-feedback{display:none;margin-top:1rem}

/* Section title (used in submit + my-ads if needed) */
.wamc-section-title{
    font-size:1.05rem;
    font-weight:700;
    margin:1.75rem 0 .75rem;
    padding-bottom:.3rem;
    border-bottom:2px solid #c8a84b;
    color:#4b0c0c;
    font-family:Georgia,serif;
}

/* Tier badge (legacy) */
.wamc-tier-badge{
    display:inline-block;
    padding:.35rem .85rem;
    background:#c8a84b;
    color:#4b0c0c;
    border-radius:3px;
    font-size:.85rem;
    font-weight:700;
    margin-bottom:1rem;
    font-family:Georgia,serif;
}

/* Tier info panel — improved version */
.wamc-tier-panel{
    display:flex;
    align-items:center;
    gap:1rem;
    padding:1rem 1.25rem;
    margin:0 0 1.75rem;
    background:linear-gradient(135deg,#fffaf0 0%,#f5e9cc 100%);
    border:2px solid #c8a84b;
    border-left:6px solid #7d1020;
    border-radius:4px;
    font-family:Georgia,serif;
}
.wamc-tier-panel-icon{
    flex:0 0 auto;
    width:42px;height:42px;
    background:#7d1020;
    color:#e8c96a;
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:1.4rem;
    font-weight:700;
}
.wamc-tier-panel-body{flex:1;min-width:0}
.wamc-tier-panel-title{
    font-size:1.05rem;
    font-weight:700;
    color:#4b0c0c;
    margin-bottom:.2rem;
    line-height:1.2;
}
.wamc-tier-panel-meta{
    font-size:.88rem;
    color:#5a4d33;
    line-height:1.5;
}
.wamc-tier-panel-meta strong{color:#7d1020}
.wamc-sep{color:#c8a84b;margin:0 .35rem}

/* Section title with number */
.wamc-section-num{
    display:inline-flex;
    align-items:center;justify-content:center;
    width:26px;height:26px;
    background:#7d1020;
    color:#e8c96a;
    border-radius:50%;
    font-size:.85rem;
    font-weight:700;
    margin-right:.6rem;
    font-family:Georgia,serif;
    vertical-align:middle;
}

/* Required asterisk */
.wamc-req{color:#7d1020;font-weight:700}

/* Helper text under fields */
.wamc-help{
    font-size:.82rem;
    color:#7a6a40;
    margin-top:.35rem;
    font-style:italic;
    font-family:Georgia,serif;
    line-height:1.45;
}

/* 2-column grid for compact sections (cat/type/loc/price) */
.wamc-row-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1rem;
}
.wamc-row-grid .form-row{margin-bottom:0}
@media (max-width:640px){
    .wamc-row-grid{grid-template-columns:1fr}
}

/* Checkbox label — dignified styling */
.wamc-checkbox-label{
    display:flex !important;
    align-items:flex-start;
    gap:.75rem;
    font-weight:400 !important;
    font-size:.92rem !important;
    padding:.9rem 1rem;
    background:rgba(200,168,75,.12);
    border:1px solid #c8a84b;
    border-radius:3px;
    line-height:1.55;
    color:#3a2a0a;
    cursor:pointer;
}
.wamc-checkbox-label input[type=checkbox]{
    flex:0 0 auto;
    width:18px;height:18px;
    margin-top:2px;
    accent-color:#7d1020;
    cursor:pointer;
}
.wamc-checkbox-label span{flex:1}
.wamc-checkbox-label strong{color:#4b0c0c}

/* Captcha row */
.wamc-captcha-row{
    margin:1.5rem 0 1rem;
    display:flex;
    justify-content:center;
}

/* ===== Stat row (top of browse/my-ads) ===== */
.wamc-stat-row{
    display:flex;
    align-items:center;
    gap:1.5rem;
    padding:1.1rem 1.25rem;
    margin:0 0 1.5rem;
    background:rgba(255,255,255,.55);
    border:1px solid #c8a84b;
    border-radius:3px;
    flex-wrap:wrap;
}
.wamc-stat{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.1;
    font-family:Georgia,serif;
}
.wamc-stat-num{
    font-size:1.5rem;
    font-weight:700;
    color:#4b0c0c;
}
.wamc-stat-lbl{
    font-size:.78rem;
    color:#7a6a40;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-top:.15rem;
}
.wamc-stat-cta{
    margin-left:auto;
    display:flex;gap:.5rem;flex-wrap:wrap;
}
@media (max-width:640px){
    .wamc-stat-row{gap:1rem}
    .wamc-stat-cta{margin-left:0;width:100%}
    .wamc-stat-cta .wamc-btn{flex:1;text-align:center}
}

/* ===== Active filter chips ===== */
.wamc-active-filters{
    display:flex;
    align-items:center;
    gap:.5rem;
    flex-wrap:wrap;
    padding:.6rem .85rem;
    background:#fffaf0;
    border:1px dashed #c8a84b;
    border-radius:3px;
    margin:0 0 1rem;
    font-family:Georgia,serif;
}
.wamc-active-label{
    font-size:.85rem;
    color:#7a6a40;
    font-style:italic;
    margin-right:.25rem;
}
.wamc-chip-active{
    background:#4b0c0c !important;
    color:#e8c96a !important;
    font-size:.78rem !important;
}

/* ===== Empty state ===== */
.wamc-empty{
    text-align:center;
    padding:3rem 1.5rem;
    background:rgba(255,255,255,.4);
    border:2px dashed #c8a84b;
    border-radius:4px;
    font-family:Georgia,serif;
    color:#4b0c0c;
}
.wamc-empty-icon{
    font-size:3rem;
    color:#c8a84b;
    margin-bottom:.75rem;
    line-height:1;
}
.wamc-empty-title{
    font-size:1.35rem;
    margin:0 0 .5rem;
    color:#4b0c0c;
}
.wamc-empty-body{
    font-size:1rem;
    color:#5a4d33;
    margin:0 0 1.25rem;
    line-height:1.55;
}

/* ===== Status pills (my-ads) ===== */
.wamc-status{
    display:inline-block;
    padding:.25rem .65rem;
    border-radius:999px;
    font-size:.78rem;
    font-weight:700;
    font-family:Georgia,serif;
    letter-spacing:.02em;
}
.wamc-status-live    { background:#e7f4e4; color:#1f6f24; }
.wamc-status-pending { background:#fdf0d6; color:#a06b1f; }
.wamc-status-draft   { background:#f0e9d6; color:#7a6a40; }

/* ===== Ad title link in table ===== */
.wamc-ad-title-link{
    font-weight:700;
    font-size:1rem;
    color:#4b0c0c !important;
    display:block;
    line-height:1.3;
}
.wamc-ad-title-link:hover{color:#7d1020 !important}
.wamc-row-cat{
    font-size:.78rem;
    color:#7a6a40;
    margin-top:.2rem;
    font-style:italic;
}

/* Notice */
.wamc-notice{
    padding:.95rem 1.2rem;
    border-radius:3px;
    margin:1rem 0;
    font-size:.95rem;
    font-family:Georgia,serif;
    border:2px solid transparent;
}
.wamc-notice.error{background:#fdecea;color:#7d1020;border-color:#c08c8c}
.wamc-notice.success{background:#e7f4e4;color:#1f6f24;border-color:#a8c4a4}
.wamc-notice:not(.error):not(.success){background:#fffaf0;color:#4b0c0c;border-color:#c8a84b}

/* Pagination */
.wamc-pagination{display:flex;gap:.4rem;justify-content:center;margin:2rem 0;flex-wrap:wrap}
.wamc-pagination a,.wamc-pagination span{
    padding:.5rem .9rem;
    border:2px solid #c8a84b;
    border-radius:3px;
    text-decoration:none;
    color:#4b0c0c;
    background:#fffaf0;
    font-size:.9rem;
    font-family:Georgia,serif;
    font-weight:700;
}
.wamc-pagination a:hover{background:#c8a84b}
.wamc-pagination .current{background:#7d1020;color:#f5e9cc;border-color:#4b0c0c}

/* My Ads table */
.wamc-table{
    width:100%;
    border-collapse:collapse;
    margin-top:1rem;
    background:#fffaf0;
    border:1px solid #c8a84b;
    font-family:Georgia,serif;
}
.wamc-table thead tr{background:#4b0c0c;color:#f5e9cc}
.wamc-table thead th{padding:.75rem .85rem;text-align:left;font-weight:700;border-bottom:2px solid #c8a84b}
.wamc-table tbody td{padding:.7rem .85rem;border-bottom:1px solid #e3d4a8;color:#3a2a0a;vertical-align:middle}
.wamc-table tbody tr:hover{background:rgba(200,168,75,.1)}
.wamc-table a{color:#7d1020;text-decoration:none;font-weight:700}
.wamc-table a:hover{text-decoration:underline}

.wamc-edit-row td{background:#f5e9cc !important;border-top:2px solid #c8a84b}

/* Responsive */
@media (max-width:640px){
    .wamc-page-wrapper{padding:2rem 1rem 3rem}
    .wamc-page-title{font-size:1.5rem}
    .wamc-card-container{padding:1.25rem 1rem}
    .wamc-filters{flex-direction:column;align-items:stretch}
    .wamc-filters input[type=search],.wamc-filters select{min-width:0;width:100%}
    .wamc-btn-post{margin-left:0;width:100%;text-align:center}
    .wamc-archive-head{flex-direction:column;align-items:flex-start}
    .wamc-table{font-size:.85rem}
    .wamc-table thead{display:none}
    .wamc-table tbody td{display:block;border-bottom:none;padding:.35rem .5rem}
    .wamc-table tbody tr{display:block;border-bottom:2px solid #c8a84b;margin-bottom:1rem;padding:.5rem}
}
