/* YellowPin job listing — grid & list browse pages */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

.yp-job-listing-page {
  --yp-jl-bg: #f7f9fd;
  --yp-jl-surface: #ffffff;
  --yp-jl-primary: #fabc57;
  --yp-jl-primary-container: #f8c04d;
  --yp-jl-on-primary-container: #6e4f00;
  --yp-jl-text: #1c2136;
  --yp-jl-muted: #64748b;
  --yp-jl-variant: #4f4535;
  --yp-jl-border: #e6e8ec;
  --yp-jl-outline: #d3c5af;
  --yp-jl-accent: #fff7e6;
  --yp-jl-success: #22c55e;
  --yp-jl-dark: #181c1f;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--yp-jl-bg);
  color: var(--yp-jl-dark);
}

.yp-job-listing-page h1,
.yp-job-listing-page h2,
.yp-job-listing-page h3,
.yp-job-listing-page .yp-jl-font-display {
  font-family: "Montserrat", system-ui, sans-serif;
}

.yp-jl-main {
  /*background: linear-gradient(135deg, #ffffff 0%, #fff9e6 50%, #ffffff 100%);*/
}

/* Hero */
.yp-jl-hero {
  /*max-width: 1280px;*/
  margin: 0 auto;
  padding: 32px 16px;
    text-align: center;
    background: linear-gradient(135deg, #ffd451 0%, #ffeaa6 50%, #ffdf81 100%);
}

@media (min-width: 768px) {
  .yp-jl-hero {
    padding: 32px 40px;
  }
}

.yp-jl-hero-badge {
  display: inline-block;
  background: #fabc57;
  color: #181c1f;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.yp-jl-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--yp-jl-text);
  line-height: 1.15;
  margin: 0 0 16px;
  /*max-width: 48rem;*/
}

@media (min-width: 768px) {
  .yp-jl-hero-title {
    font-size: 48px;
    line-height: 1.1;
  }
}

.yp-jl-hero-copy {
  font-size: 18px;
  line-height: 1.55;
  color: #000;
  margin: 0 0 24px;
  /*max-width: 42rem;*/
}

.yp-jl-search-form {
  max-width: 56rem;
  margin:0 auto;
}

.yp-jl-search-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--yp-jl-surface);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--yp-jl-outline);
  box-shadow: 0 1px 3px rgba(28, 33, 54, 0.06);
}

@media (min-width: 576px) {
  .yp-jl-search-bar {
    flex-direction: row;
    align-items: center;
  }
}

.yp-jl-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 0;
}

.yp-jl-search-field i {
  color: #fabc57;
  font-size: 18px;
}

.yp-jl-search-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  box-shadow: none;
}

.yp-jl-search-field input:focus {
  outline: none;
  box-shadow: none;
}

.yp-jl-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fabc57 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.yp-jl-search-btn i,
.yp-jl-search-btn * {
  color: #000000 !important;
}

.yp-jl-search-btn:hover {
  background: #f4b136 !important;
  color: #000000 !important;
}

/* Board layout */
.yp-jl-board {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

@media (min-width: 768px) {
  .yp-jl-board {
    padding: 0 40px 56px;
  }
}

.yp-jl-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .yp-jl-board-grid {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  }
}

.yp-jl-alert-wrap {
  margin-bottom: 24px;
}

/* Filters */
.yp-jl-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.yp-jl-filters-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--yp-jl-dark);
  margin: 0;
}

.yp-jl-filters-head p {
  font-size: 14px;
  color: var(--yp-jl-muted);
  margin: 4px 0 0;
}

.yp-jl-clear-filters {
  background: none;
  border: none;
  color: var(--yp-jl-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.yp-jl-clear-filters:hover {
  text-decoration: underline;
}

.yp-jl-filter-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yp-jl-filter-panel {
  background: var(--yp-jl-surface);
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(28, 33, 54, 0.06);
  overflow: hidden;
}

.yp-jl-filter-panel.is-active {
  background: var(--yp-jl-accent);
  border-color: rgba(250, 188, 87, 0.28);
}

.yp-jl-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.yp-jl-filter-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yp-jl-dark);
}

.yp-jl-filter-panel.is-active .yp-jl-filter-toggle-left {
  color: var(--yp-jl-primary);
  font-weight: 700;
}

.yp-jl-filter-toggle-left i {
  color: var(--yp-jl-primary);
  width: 20px;
  text-align: center;
}

.yp-jl-filter-chevron {
  color: var(--yp-jl-outline);
  transition: transform 0.2s ease;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-chevron {
  transform: rotate(180deg);
}

.yp-jl-filter-body {
  display: none;
  padding: 0 16px 16px;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-body {
  display: block;
}

.yp-jl-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yp-jl-filter-list li {
  margin-bottom: 8px;
}

.yp-jl-filter-list li:last-child {
  margin-bottom: 0;
}

.yp-jl-filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--yp-jl-dark);
  cursor: pointer;
  margin: 0;
  text-transform: capitalize;
}

.yp-jl-filter-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--yp-jl-primary);
}

.yp-jl-filter-list span.count {
  margin-left: auto;
  font-size: 12px;
  color: var(--yp-jl-muted);
}

/* Results header */
.yp-jl-results-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 576px) {
  .yp-jl-results-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.yp-jl-results-head h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--yp-jl-text);
  margin: 0;
}

.yp-jl-results-count {
  font-size: 14px;
  color: var(--yp-jl-muted);
  margin: 4px 0 0;
}

.yp-jl-results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.yp-jl-view-toggle {
  display: flex;
  background: #eceef2;
  border-radius: 12px;
  padding: 4px;
}

.yp-jl-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--yp-jl-variant);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: default;
}

.yp-jl-view-btn.is-active {
  background: var(--yp-jl-dark);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.yp-jl-view-btn:not(.is-active):hover {
  color: var(--yp-jl-dark);
}

.yp-jl-sort select {
  border: 1px solid var(--yp-jl-outline);
  border-radius: 12px;
  padding: 8px 36px 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background: var(--yp-jl-surface);
  color: var(--yp-jl-dark);
  min-width: 160px;
}

.yp-jl-sort select:focus {
  border-color: var(--yp-jl-primary-container);
  box-shadow: 0 0 0 2px rgba(248, 192, 77, 0.35);
  outline: none;
}

/* Job cards grid */
.yp-jl-jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .yp-jl-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.yp-jl-jobs-grid--list {
  grid-template-columns: 1fr;
}

.yp-jl-job-card {
  background: var(--yp-jl-surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.yp-jl-job-card:hover {
  border-color: var(--yp-jl-primary-container);
  text-decoration: none;
  color: inherit;
}

.yp-jl-job-card--list {
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}

@media (max-width: 575px) {
  .yp-jl-job-card--list {
    flex-direction: column;
  }
}

.yp-jl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.yp-jl-card-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #eef0f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.yp-jl-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.yp-jl-card-body {
  flex: 1;
  min-width: 0;
}

.yp-jl-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--yp-jl-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.yp-jl-job-card:hover .yp-jl-card-body h3 {
  color: var(--yp-jl-primary);
}

.yp-jl-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.yp-jl-card-company {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin: 0;
}

.yp-jl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.yp-jl-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
}

.yp-jl-tag--primary {
  /*background: var(--yp-jl-accent);*/
  /*color: var(--yp-jl-primary);*/
    background: #eceef2;
    color: var(--yp-jl-variant);
    
}

.yp-jl-tag--muted {
  background: #eceef2;
  color: var(--yp-jl-variant);
}

.yp-jl-tag--urgent {
  background: var(--yp-jl-success);
  color: #fff;
}

.yp-jl-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #eceef2;
  margin-top: auto;
}

.yp-jl-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--yp-jl-muted);
  min-width: 0;
}

.yp-jl-card-meta i {
  flex-shrink: 0;
  font-size: 16px;
}

.yp-jl-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yp-jl-card-time {
  font-size: 12px;
  color: var(--yp-jl-muted);
  flex-shrink: 0;
}

.yp-jl-loading,
.yp-jl-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--yp-jl-muted);
  font-size: 16px;
}

.yp-jl-card-summary {
  font-size: 14px;
  color: var(--yp-jl-muted);
  line-height: 1.45;
  margin: 8px 0 0;
}

.yp-jl-job-card--list .yp-jl-card-foot {
  border-top: none;
  padding-top: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-top: 0;
  min-width: 120px;
  flex-shrink: 0;
}

.yp-jl-job-card--list .yp-jl-card-tags {
  margin-top: 8px;
}

.yp-jl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.yp-jl-pagination > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.yp-jl-page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--yp-jl-outline);
  background: var(--yp-jl-surface);
  color: var(--yp-jl-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.yp-jl-page-btn:hover:not(.is-disabled):not(.is-active) {
  background: #eceef2;
}

.yp-jl-page-btn.is-active {
  background: var(--yp-jl-primary);
  color: #fff;
  border-color: var(--yp-jl-primary);
}

.yp-jl-page-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.yp-jl-page-ellipsis {
  padding: 0 4px;
  color: var(--yp-jl-muted);
}


/* Filter search and scroll enhancements */
.yp-jl-filter-search-box {
  position: relative;
  margin-bottom: 10px;
}

.yp-jl-filter-search-box input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.15s, background-color 0.15s;
}

.yp-jl-filter-search-box input:focus {
  background: #ffffff;
  border-color: #fabc57;
  box-shadow: 0 0 0 2px rgba(250, 188, 87, 0.2);
}

.yp-jl-filter-search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.yp-jl-filter-scroll-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.yp-jl-filter-scroll-list::-webkit-scrollbar {
  width: 5px;
}

.yp-jl-filter-scroll-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.yp-jl-filter-scroll-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.yp-jl-filter-scroll-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.yp-jl-filter-no-results {
  font-size: 12px;
  color: #94a3b8;
  padding: 8px 0;
  font-style: italic;
  text-align: center;
}

/* === YP_COMMON_FILTERS_START === */
/* ==========================================================================
   YellowPin Custom UI Select Component & Unified Filters
   ========================================================================== */
.yp-ui-select {
  position: relative;
  display: inline-block;
  user-select: none;
  font-family: inherit;
  vertical-align: middle;
}

.yp-ui-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 165px;
  height: 42px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #d8dfe8;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
}

.yp-ui-select-trigger:hover {
  border-color: #fabc57;
  background: #fffdfa;
}

.yp-ui-select.is-open .yp-ui-select-trigger {
  border-color: #fabc57;
  box-shadow: 0 0 0 3px rgba(250, 188, 87, 0.22);
  background: #ffffff;
}

.yp-ui-select-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yp-ui-select-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.yp-ui-select.is-open .yp-ui-select-arrow {
  transform: rotate(180deg);
  color: #fabc57;
}

.yp-ui-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  padding: 6px;
  z-index: 1060;
  display: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.yp-ui-select.align-right .yp-ui-select-menu {
  left: auto;
  right: 0;
}

.yp-ui-select.is-open .yp-ui-select-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.yp-ui-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.yp-ui-select-option:hover {
  background: #fff8eb;
  color: #8f6010;
}

.yp-ui-select-option.is-selected {
  background: #fff3de;
  color: #8f6010;
  font-weight: 600;
}

.yp-ui-select-check {
  font-size: 11px;
  color: #fabc57;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.yp-ui-select-option.is-selected .yp-ui-select-check {
  opacity: 1;
}

/* Candidate Listing integration */
.yp-cl-side-field .yp-ui-select {
  width: 100%;
}
.yp-cl-side-field .yp-ui-select-trigger {
  width: 100%;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  height: 42px;
}
.yp-cl-side-field .yp-ui-select-trigger:hover {
  background: transparent;
}

/* ==========================================================================
   YellowPin Refined & Unified Filter Design System
   ========================================================================== */
.yp-jl-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.yp-jl-filters-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.yp-jl-filters-head p {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0;
}

.yp-jl-clear-filters {
  font-size: 13px;
  font-weight: 600;
  color: #d97706;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.yp-jl-clear-filters:hover {
  color: #b45309;
  text-decoration: underline;
}

.yp-jl-filter-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yp-jl-filter-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.yp-jl-filter-panel:hover {
  border-color: #fabc57;
  box-shadow: 0 4px 14px rgba(250, 188, 87, 0.1);
}

.yp-jl-filter-panel.is-active {
  background: #fffdfa;
  border-color: rgba(250, 188, 87, 0.5);
  box-shadow: 0 2px 8px rgba(250, 188, 87, 0.12);
}

.yp-jl-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.15s ease;
}

.yp-jl-filter-toggle:hover {
  background: #fafbfc;
}

.yp-jl-filter-panel.is-active .yp-jl-filter-toggle:hover {
  background: #fff9ee;
}

.yp-jl-filter-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.yp-jl-filter-panel.is-active .yp-jl-filter-toggle-left {
  color: #8f6010;
  font-weight: 700;
}

.yp-jl-filter-toggle-left i {
  color: #fabc57;
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.yp-jl-filter-chevron {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-chevron {
  transform: rotate(180deg);
  color: #fabc57;
}

.yp-jl-filter-body {
  display: none;
  padding: 4px 14px 14px 14px;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-body {
  display: block;
}

.yp-jl-filter-search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.yp-jl-filter-search:focus {
  border-color: #fabc57;
  box-shadow: 0 0 0 2px rgba(250, 188, 87, 0.2);
}

.yp-jl-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.yp-jl-filter-list::-webkit-scrollbar {
  width: 5px;
}

.yp-jl-filter-list::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.yp-jl-filter-list::-webkit-scrollbar-thumb {
  background: #fabc57;
  border-radius: 4px;
}

.yp-jl-filter-list li {
  margin-bottom: 3px;
}

.yp-jl-filter-list li:last-child {
  margin-bottom: 0;
}

.yp-jl-filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.yp-jl-filter-list label:hover {
  background: #f8fafc;
  color: #0f172a;
}

.yp-jl-filter-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #fabc57;
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* Polished Count Pill Badge */
.yp-jl-filter-list span.count,
.yp-jl-filter-list .count {
  margin-left: auto;
  min-width: 22px;
  text-align: center;
  background: #f1f5f9;
  color: #475569;
  border-radius: 9999px;
  padding: 2px 7.5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  transition: all 0.15s ease;
}

.yp-jl-filter-list label:hover span.count,
.yp-jl-filter-list label:hover .count {
  background: #e2e8f0;
  color: #1e293b;
}

.yp-jl-filter-list input[type="checkbox"]:checked ~ span.count,
.yp-jl-filter-list input[type="checkbox"]:checked ~ .count {
  background: #fff3de;
  color: #8f6010;
}

.yp-jl-filter-list label:has(input[type="checkbox"]:checked) {
  color: #0f172a;
  font-weight: 600;
}

.yp-jl-filter-no-results {
  font-size: 13px;
  color: #94a3b8;
  padding: 10px 8px;
  text-align: center;
  font-style: italic;
}

/* === YP_COMMON_FILTERS_END === */

select[data-yp-ui-ready="1"] { display: none !important; }


/* ==========================================================================
   Sticky Filter Sidebar & Smooth Scroll Boundary
   ========================================================================== */
@media (min-width: 992px) {
  /* Parent containers: allow sticky items to slide and not stretch */
  .yp-jl-board-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .yp-cl-layout {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .yp-eg-layout {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .yp-events-page .row,
  .yp-courses-page .row,
  .yp-eg-page .row {
    align-items: flex-start !important;
  }

  /* Sticky Sidebars */
  .yp-jl-sidebar,
  .yp-events-sidebar,
  .yp-courses-sidebar,
  .yp-cl-sidebar,
  .yp-eg-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    align-self: flex-start !important;
    z-index: 20;
    transition: top 0.12s ease-out;
    will-change: top;
  }
}
