/* Professional card & table styles + filters, pagination, gallery */
.ghrk-listing{ display:block; }
.ghrk-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.ghrk-card{
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display:flex;
    flex-direction:column;
    box-shadow: 0 1px 3px rgba(16,24,40,.06);
}
.ghrk-card__body{ padding: 16px; }

.ghrk-card__title{ margin:0; font-size:20px; line-height:1.3; }
.ghrk-submeta{ color:#6b7280; font-size:13px; margin-top:4px; }
.ghrk-price{ font-weight:700; font-size:16px; }

.ghrk-headline{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }

.ghrk-actions{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.ghrk-btn{ transition: transform .06s ease; }
.ghrk-btn:hover{ transform: translateY(-1px); }
.ghrk-btn.ghrk-btn--small{ padding:6px 10px !important; font-size:13px; }

.ghrk-table{
    width:100%;
    border-collapse: separate;
    border-spacing:0;
    overflow:hidden;
    border:1px solid #e6eaf0;
    border-radius: 12px;
    background:#fff;
    margin: 8px 0 6px;
    font-size:14px;
}
.ghrk-table th, .ghrk-table td{
    padding:10px 12px;
    text-align:left;
}
.ghrk-table thead th{
    background:#f3f5f8;
    font-weight:600;
    border-bottom:1px solid #e6eaf0;
}
.ghrk-table--spec th{
    width:180px;
    color:#475467;
    background:#f8fafc;
    border-right:1px solid #e6eaf0;
}
.ghrk-table--pro td, .ghrk-table--pro th{
    border-bottom:1px solid #eef2f7;
}
.ghrk-table--pro tr:last-child td{ border-bottom:none; }

.ghrk-td-actions{ text-align:right; }

/* Filters */
.ghrk-filters{
    display:block; background:#ffffff; border:1px solid #e6eaf0; border-radius:12px; padding:12px; margin-bottom:16px;
}
.ghrk-f-row{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:12px; align-items:end; }
.ghrk-f-item label{ display:block; font-size:12px; color:#475467; margin-bottom:6px; }
.ghrk-f-item input, .ghrk-f-item select { width:100%; padding:8px 10px; border:1px solid #d4dae3; border-radius:8px; }
.ghrk-f-actions{ display:flex; gap:10px; align-items:end; }
.ghrk-btn--filter{ background:#111827; color:#fff; }
.ghrk-btn--reset{ background:#f3f4f6; color:#111827; }

/* Pagination */
.ghrk-pagination{ margin-top:16px; display:flex; justify-content:center; }
.ghrk-pagination ul{ list-style:none; display:flex; gap:6px; padding:0; margin:0; }
.ghrk-pagination li a, .ghrk-pagination li span{
    display:inline-block; min-width:34px; text-align:center; padding:6px 10px; border:1px solid #e6eaf0; border-radius:8px; text-decoration:none;
}
.ghrk-pagination li a:hover{ background:#f3f5f8; }
.ghrk-pagination li.active span{ background:#111827; color:#fff; border-color:#111827; }
.ghrk-pagination li.disabled span{ opacity:.5; }

/* Gallery */
.ghrk-gallery{ display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:10px; margin-bottom:16px; }
.ghrk-gallery img{ width:100%; height:auto; border-radius:10px; border:1px solid #e6eaf0; display:block; }

/* Admin pricing table */
.ghrk-pricing-table th, .ghrk-pricing-table td{ padding:6px 8px; }

/* Admin gallery list */
.ghrk-gallery-list{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; padding:0; }
.ghrk-gallery-list li{ position:relative; }
.ghrk-gallery-list img{ width:80px; height:80px; object-fit:cover; border:1px solid #e6eaf0; border-radius:6px; }
.ghrk-gallery-remove{ position:absolute; top:-6px; right:-4px; font-size:18px; color:#e11d48; }


/* Centered actions row */
.ghrk-actions--row{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:12px; }
.ghrk-actions--row.ghrk-center{ justify-items:center; }
.ghrk-actions--row.ghrk-center .ghrk-btn--grow{ width:100%; max-width:220px; }

/* Hide date on single gh_vehicle */
.single-gh_vehicle .entry-meta .posted-on, .single-gh_vehicle time.entry-date { display:none !important; }


/* GHRK Lightbox */
.ghrk-lightbox-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:99999;padding:2rem}
.ghrk-lightbox-backdrop.active{display:flex}
.ghrk-lightbox img{max-width:90vw;max-height:85vh;display:block}
.ghrk-lightbox .ghrk-lightbox-close{position:absolute;top:1rem;right:1rem;font-size:28px;cursor:pointer}
.ghrk-lightbox .ghrk-lightbox-prev,.ghrk-lightbox .ghrk-lightbox-next{position:absolute;top:50%;transform:translateY(-50%);font-size:26px;cursor:pointer;padding:1rem}
.ghrk-lightbox .ghrk-lightbox-prev{left:1rem}
.ghrk-lightbox .ghrk-lightbox-next{right:1rem}


/* Filter & Reset buttons uniform sizing */
.ghrk-filters .button, .ghrk-filters button, .ghrk-filters input[type=submit]{
  padding: .55rem 1rem; border-radius: .5rem; line-height:1.2; font-weight:600;
}
.ghrk-filters .ghrk-btn-filter, .ghrk-filters .ghrk-btn-reset{ min-width: 120px; text-align:center; }


/* Admin gallery wrap */
.ghrk-gallery-wrap{display:flex;flex-wrap:wrap;gap:8px;margin:.5rem 0}
.ghrk-gallery-wrap .ghrk-thumb{position:relative;width:80px;height:80px;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.ghrk-gallery-wrap .ghrk-thumb img{max-width:100%;max-height:100%;display:block}
.ghrk-gallery-wrap .ghrk-thumb .ghrk-remove{position:absolute;top:2px;right:6px;color:#e11d48;font-weight:bold}


/* --- GHRK Frontend Gallery tidy grid (no crop) --- */
.ghrk-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;align-items:stretch}
.ghrk-gallery a{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:6px;overflow:hidden}
.ghrk-gallery a img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}

\n
/* Equalize Filter/Reset button sizes */
.ghrk-filters .ghrk-btn-filter,
.ghrk-filters .ghrk-btn-reset{
  padding:.55rem 1rem;
  min-width:120px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:.5rem;
  line-height:1.2;
  box-sizing:border-box;
}
\n\n
/* Hide author/writer under title on single gh_vehicle */
.single-gh_vehicle .byline,
.single-gh_vehicle .post-author,
.single-gh_vehicle .entry-meta .byline,
.single-gh_vehicle .entry-meta .author,
.single-gh_vehicle .posted-by,
.single-gh_vehicle .author-name{ display:none !important; }
\n