/* ======================================================
   Barking Justice Media: Living Story Collection Grid
   Scope: .swr-collection-grid
   ====================================================== */

/* === WRAPPER TARGET === */
.swr-collection-grid {
  margin-top: 12px;
  margin-bottom: 24px;
}

/* === FILTER STYLING === */
.swr-collection-grid .cvp-live-filter {
  display: inline-block;
  vertical-align: top;
  width: 285px;
  margin-right: 16px;
  margin-bottom: 12px;
}

.swr-collection-grid .cvp-live-filter label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
  color: #222;
}

.swr-collection-grid .cvp-live-filter select {
  width: 100% !important;
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.swr-collection-grid-searchbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 285px;
  min-width: 220px;
  box-sizing: border-box;
  vertical-align: middle;
}

.swr-collection-grid-searchbar label {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  margin: 0 8px 0 0;
  white-space: nowrap;
  line-height: 1;
  align-self: center;
}

.swr-collection-grid-searchbar input {
  font-size: 15px !important;
  font-family: inherit !important;
  font-weight: 400;
  line-height: 1.5 !important;
  height: 42px !important;
  padding: 10px 14px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  background-color: #fff !important;
  vertical-align: middle !important;
  display: inline-block !important;
  transform: translateY(2px); /* THE FINAL NUKE */
}


.swr-collection-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}



/* === CARD WRAPPER === */
.swr-collection-grid .pt-cv-content-item {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-top: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.swr-collection-grid .pt-cv-content-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* === STAR BADGE === */
.swr-collection-grid .story-star {
  width: 80px;
  height: 80px;
  margin: -44px auto 8px auto;
  z-index: 2;
  display: block;
  position: relative;
}

.swr-collection-grid .story-star img {
  display: block;
  width: 100%;
  height: auto;
}

/* Maintain spacing on cards without badge */
.swr-collection-grid .story-star.placeholder {
  visibility: hidden;
  height: 80px;
  margin-bottom: 8px;
}

/* === CONTRIBUTOR METADATA === */
.swr-collection-grid .story-meta-wrapper {
  width: 100%;
  padding-left: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  box-sizing: border-box;
}

.swr-collection-grid .story-meta,
.swr-collection-grid .story-location {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
  display: block;
}
