/**
 * Epic Job Board Filter Widget V2
 * Styles from ejb-filter-widget-v2.html — scoped to .ejb-v2
 */
.ejb-v2 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Search Hero — brighter palette */
.ejb-v2.search-hero {
  position: relative;
  background: linear-gradient(135deg, #0d6e6e 0%, #1a9a9a 45%, #2ab5a8 100%);
  padding: 40px 48px 36px;
  overflow: visible;
  z-index: 100;
}

.ejb-v2 .hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg-palms.png');
  background-size: cover;
  background-position: -837px center;
  opacity: 0;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.5s ease-out;
}
.ejb-v2 .hero-bg-image.loaded {
  opacity: 0.2;
}


.ejb-v2.search-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.04) 50%, transparent);
  pointer-events: none;
  z-index: 1;
}

.ejb-v2.search-hero .hero-bottom-shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.04) 50%, transparent);
  pointer-events: none;
  z-index: 1;
}

.ejb-v2 .hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 230, 220, 0.15) 0%, transparent 70%);
  pointer-events: none;
  overflow: hidden;
}

.ejb-v2 .glow-1 { top: -200px; right: -100px; }
.ejb-v2 .glow-2 { bottom: -250px; left: -100px; opacity: 0.5; }

.ejb-v2 .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1170px;
  margin: 0 auto;
}

.ejb-v2 .hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ejb-v2 .hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
  padding-left: 28px;
  visibility: hidden;
}
.ejb-v2 .hero-title.chars-ready {
  visibility: visible;
}

.ejb-v2 .hero-title em { font-style: italic; color: #7eeede; }

/* Character drop-in animation */
.ejb-v2 .hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-18px);
  animation: ejb-v2-charDrop 0.4s ease-out forwards;
}
.ejb-v2 .hero-title .char-word {
  display: inline-block;
  white-space: nowrap;
}
.ejb-v2 .hero-title .char-space {
  display: inline;
  width: 0.3em;
}
@keyframes ejb-v2-charDrop {
  0% { opacity: 0; transform: translateY(-18px); }
  60% { opacity: 1; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* hero-text-main: hidden by default, revealed by slide-in or drop animation */
.ejb-v2 .hero-text-main {
  display: inline-block;
  opacity: 0;
}
.ejb-v2 .hero-title[data-animation="drop"] .hero-text-main,
.ejb-v2 .hero-title[data-animation="none"] .hero-text-main {
  opacity: 1;
}
.ejb-v2 .hero-text-main.slide-in {
  animation: ejb-v2-slideIn 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
@keyframes ejb-v2-slideIn {
  0%   { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* "here." accent — pop-in with glow */
.ejb-v2 .hero-title em .char {
  animation-name: ejb-v2-charPop;
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes ejb-v2-charPop {
  0% { opacity: 0; transform: scale(0.3) translateY(-12px); }
  50% { opacity: 1; transform: scale(1.15) translateY(0); text-shadow: 0 0 20px rgba(126, 238, 222, 0.7); }
  100% { opacity: 1; transform: scale(1) translateY(0); text-shadow: 0 0 0 transparent; }
}

/* Search card */
.ejb-v2 .search-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px 50px 50px 16px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.ejb-v2 .search-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px 50px 50px 12px;
  border: 1.5px solid #e0e0e0;
  overflow: visible;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.ejb-v2 .search-row:focus-within {
  border-color: #a0dede;
  box-shadow: 0 0 0 3px rgba(94, 200, 200, 0.1);
}

.ejb-v2 .sf {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 22px;
  cursor: pointer;
  border-right: 1.5px solid #eee;
  position: relative;
  transition: background 0.2s;
  position: relative;
}

.ejb-v2 .sf:nth-last-of-type(1) { border-right: none; }
.ejb-v2 .sf:nth-last-of-type(2) { border-right: none; }
.ejb-v2 .sf:hover { background: #edf8f8; }
.ejb-v2 .sf:last-of-type { border-right: none; }
.ejb-v2 .sf.active { background: #edf8f8; z-index: 9999; }
.ejb-v2 #sf-loc-v2 { z-index: 9999; }

.ejb-v2 .sf-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.ejb-v2 .sf-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #1a9a9a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ejb-v2 .sf-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ejb-v2 .sf-val.empty { color: #222; }

.ejb-v2 .sf-val-input { display: flex; align-items: center; width: 100%; }

.ejb-v2 .loc-search {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #222;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 0;
}

.ejb-v2 .loc-search::placeholder { color: #222; }

.ejb-v2 .sf-val-input .chev,
.ejb-v2 .sf-val .chev {
  width: 26px;
  height: 26px;
  stroke: #666;
  fill: none;
  stroke-width: 2.5;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.ejb-v2 .sf-val-input .chev.flipped,
.ejb-v2 .sf.active .chev { transform: rotate(180deg); stroke: #0d6e6e; }

/* Multi-select checkbox in dropdown */
.ejb-v2 .dd-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #1a3a4a;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ejb-v2 .dd-i.selected .dd-check {
  background: #1a3a4a;
  border-color: #1a3a4a;
}

.ejb-v2 .dd-i.selected .dd-check::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.ejb-v2 .dd-i.selected { color: #0d6e6e; font-weight: 600; }

/* Location panel */
.ejb-v2 .dd-loc-panel {
  padding: 0;
  left: -1px;
  right: -1px;
  min-width: 0;
  max-width: none;
  width: auto;
}


.ejb-v2 .dd-scroll {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ejb-v2 .dd-scroll::-webkit-scrollbar { width: 5px; }
.ejb-v2 .dd-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.ejb-v2 .dd-scroll::-webkit-scrollbar-thumb:hover { background: #999; }

.ejb-v2 .dd-state-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.12s;
}

.ejb-v2 .dd-state-item:hover { background: #f8f8f8; }
.ejb-v2 .dd-state-name { font-size: 14px; font-weight: 600; color: #222; }

.ejb-v2 .dd-check-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #31727F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  background: #fff;
}

.ejb-v2 .dd-check-box.checked {
  background: #31727F;
  border-color: #31727F;
}

.ejb-v2 .dd-check-box.checked::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.ejb-v2 .dd-cities {
  max-height: 0;
  overflow: hidden;
  background: #f5f5f5;
  border-left: 3px solid #e0e0e0;
  transition: max-height 0.3s ease;
}

.ejb-v2 .dd-cities.open { max-height: 500px; overflow-y: auto; }
.ejb-v2 .dd-cities::-webkit-scrollbar { width: 4px; }
.ejb-v2 .dd-cities::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.ejb-v2 .dd-city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 24px;
  cursor: pointer;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.12s;
}

.ejb-v2 .dd-city-item:last-child { border-bottom: none; }
.ejb-v2 .dd-city-item:hover { background: #edf8f8; }
.ejb-v2 .dd-city-name { font-size: 13px; font-weight: 500; color: #333; }

.ejb-v2 .dd-no-locations {
  padding: 24px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #888;
}

/* Specialty search input (mirrors .loc-search) */
.ejb-v2 .spec-search {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #222;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 0;
}
.ejb-v2 .spec-search::placeholder { color: #222; }

/* Specialty: when has selections and NOT focused, hide input but keep chevron */
.ejb-v2 #sf-adv-v2.has-specs:not(.spec-focused) .sf-val-input {
  position: absolute;
  right: 22px;
  top: 34px;
  width: auto;
}
.ejb-v2 #sf-adv-v2.has-specs:not(.spec-focused) .sf-val-input .spec-search { display: none; }
.ejb-v2 #sf-adv-v2.has-specs:not(.spec-focused) .spec-tags { margin-top: 10px; padding-right: 30px; cursor: pointer; }

/* Specialty: when focused, show input and tags below it */
.ejb-v2 #sf-adv-v2.spec-focused .sf-val-input { display: flex; }
.ejb-v2 #sf-adv-v2.spec-focused .spec-tags { margin-top: 8px; }

/* Specialty tags */
.ejb-v2 .spec-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 8px;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}

/* Category label on specialty items — hidden by default, shown during search */
.ejb-v2 .dd-i-cat {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  white-space: nowrap;
  margin-right: auto;
  margin-left: 8px;
}
.ejb-v2 .dd.spec-searching .dd-i-cat { display: inline; }

.ejb-v2 .spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #edf8f8;
  border: 1px solid #a0dede;
  color: #0d6e6e;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  animation: ejb-v2-tagIn 0.15s ease-out;
}

.ejb-v2 .spec-tag-x {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(13, 110, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 10px;
  line-height: 1;
  color: #0d6e6e;
}

.ejb-v2 .spec-tag-x:hover { background: rgba(13, 110, 110, 0.3); }

.ejb-v2 .tag-hidden {
  display: none !important;
}

.ejb-v2 .tags-expanded {
  flex-wrap: wrap !important;
  overflow: visible !important;
}

.ejb-v2 .more-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 110, 110, 0.15);
  border: 1px dashed #a0dede;
  color: #0d6e6e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s;
}
.ejb-v2 .more-tag:hover {
  background: rgba(13, 110, 110, 0.25);
}

/* Location: when has selections and NOT focused, hide input but keep chevron visible */
.ejb-v2 #sf-loc-v2.has-locs:not(.loc-focused) .sf-val-input {
  position: absolute;
  right: 22px;
  top: 34px;
  width: auto;
}
.ejb-v2 #sf-loc-v2.has-locs:not(.loc-focused) .sf-val-input .loc-search { display: none; }
.ejb-v2 #sf-loc-v2.has-locs:not(.loc-focused) .loc-tags { margin-top: 10px; padding-right: 30px; cursor: pointer; }

/* Location: when focused, show input and tags below it */
.ejb-v2 #sf-loc-v2.loc-focused .sf-val-input { display: flex; }
.ejb-v2 #sf-loc-v2.loc-focused .loc-tags { margin-top: 8px; }

/* Location tags */
.ejb-v2 .loc-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 8px;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}

.ejb-v2 .loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #edf8f8;
  border: 1px solid #a0dede;
  color: #0d6e6e;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  animation: ejb-v2-tagIn 0.15s ease-out;
}
@keyframes ejb-v2-tagIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.ejb-v2 .loc-tag-x {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(13, 110, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 10px;
  line-height: 1;
  color: #0d6e6e;
}

.ejb-v2 .loc-tag-x:hover { background: rgba(13, 110, 110, 0.3); }

/* CTA button */
.ejb-v2 .go-cell {
  display: flex;
  align-items: center;
  padding: 7px;
}

.ejb-v2 .go-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #007481;
  color: #fff;
  border: none;
  padding: 18px 18px 18px 32px;
  border-radius: 10px 45px 45px 10px;
  min-width: 200px;
  height: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 116, 129, 0.35);
}

.ejb-v2 .go-btn:hover {
  background: #006370;
  box-shadow: 0 8px 24px rgba(0, 116, 129, 0.45);
}

.ejb-v2 .go-btn .btn-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #005a65;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.ejb-v2 .go-btn:hover .btn-arrow { background: #004a55; transform: translateX(5px); }
.ejb-v2 .go-btn .btn-arrow svg { width: 15px; height: 15px; }

.ejb-v2 .go-btn .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: block;
  animation: ejb-v2-spin 0.6s linear infinite;
}
@keyframes ejb-v2-spin {
  to { transform: rotate(360deg); }
}

/* Dropdown panels */
.ejb-v2 .dd {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  right: -1px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  padding: 4px;
  z-index: 9999;
}

.ejb-v2 .dd::-webkit-scrollbar { width: 5px; }
.ejb-v2 .dd::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.ejb-v2 .dd::-webkit-scrollbar-thumb:hover { background: #999; }

.ejb-v2 .dd-loc-panel { max-height: none; overflow: visible; }

.ejb-v2 .dd-no-specialties {
  padding: 24px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #888;
}

.ejb-v2 .dd.open { display: block; animation: ejb-v2-ddIn 0.15s ease-out; }
@keyframes ejb-v2-ddIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.ejb-v2 .dd-i {
  padding: 12px 14px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #eee;
}

.ejb-v2 .dd-i:hover { background: #edf8f8; color: #0d6e6e; }
.ejb-v2 .dd-i span { font-size: 15px; flex-shrink: 0; }
.ejb-v2 .dd-i .dd-arrow { font-size: 24px; font-weight: 300; line-height: 1; color: #999; }

.ejb-v2 .dd-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}
.ejb-v2 + .dd-mask.on,
#ddMask-v2.on { display: block; }

/* Bottom section */
.ejb-v2 .bottom-section {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
}

.ejb-v2 .adv-tog {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
  flex-shrink: 0;
}

.ejb-v2 .adv-tog:hover { color: rgba(255, 255, 255, 0.95); }
.ejb-v2 .adv-tog svg { width: 12px; height: 12px; transition: transform 0.3s; }
.ejb-v2 .adv-tog.open svg { transform: rotate(180deg); }

.ejb-v2 .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 28px 5px 0;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: ejb-v2-badgeFadeUp 0.6s ease-out 3s forwards;
}
@keyframes ejb-v2-badgeFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.ejb-v2 .badge-dot {
  width: 6px;
  height: 6px;
  background: #7eeede;
  border-radius: 50%;
  animation: ejb-v2-pulse 2s ease-in-out infinite;
}
@keyframes ejb-v2-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ejb-v2 .hero-badge span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ejb-v2 .adv-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
  width: 100%;
  flex-basis: 100%;
}

.ejb-v2 .adv-panel.show { max-height: 300px; opacity: 1; margin-top: 12px; overflow: visible; }

.ejb-v2 .adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.ejb-v2 .adv-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.ejb-v2 .adv-chip:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.3); }
.ejb-v2 .ac-label { font-size: 8.5px; font-weight: 700; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.ejb-v2 .ac-val { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.85); display: flex; align-items: center; }
.ejb-v2 .ac-val svg { width: 10px; height: 10px; stroke: rgba(255, 255, 255, 0.4); fill: none; stroke-width: 2; margin-left: auto; }
.ejb-v2 .ac-val.open svg { transform: rotate(180deg); }

/* Advanced chip — inline options dropdown */
.ejb-v2 .adv-chip { position: relative; }
.ejb-v2 .ac-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 4px;
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
}
.ejb-v2 .ac-options::-webkit-scrollbar { width: 4px; }
.ejb-v2 .ac-options::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.ejb-v2 .ac-opt {
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.ejb-v2 .ac-opt:hover { background: #edf8f8; color: #0d6e6e; }
.ejb-v2 .ac-opt.selected { background: #edf8f8; color: #0d6e6e; font-weight: 600; }

.ejb-v2 .adv-reset { text-align: right; margin-top: 5px; }
.ejb-v2 .adv-reset a { font-size: 10.5px; color: rgba(255, 255, 255, 0.3); text-decoration: none; transition: color 0.2s; }
.ejb-v2 .adv-reset a:hover { color: rgba(255, 255, 255, 0.6); }

/* When advanced filters toggle is absent, give trending row more breathing room */
.ejb-v2 .bottom-section > .trending-row:first-child {
  padding-top: 14px;
}

/* Trending cities */
.ejb-v2 .trending-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-end;
  margin-top: 2px;
}
.ejb-v2 .tr-pills-wrap {
  display: contents;
}
.ejb-v2 .tr-pills {
  display: contents;
}
.ejb-v2 .tr-fade { display: none; }

.ejb-v2 .tr-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 2px;
}

.ejb-v2 .tc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px 5px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.ejb-v2 .tc:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
}

.ejb-v2 .tc-count {
  font-size: 10px;
  font-weight: 700;
  color: #7eeede;
  opacity: 0.9;
}

/* Wave bottom edge */
.ejb-v2-wave { line-height: 0; }
.ejb-v2-wave svg { display: block; width: 100%; height: auto; }

/* No results pill */
.ejb-v2-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 30px);
  margin: 15px 15px;
  padding: 28px 36px;
  background: #f0fafa;
  border: 1.5px solid #c4eded;
  border-radius: 20px;
  text-align: center;
  animation: ejb-v2-tagIn 0.2s ease-out;
  box-sizing: border-box;
}

.ejb-v2-no-results strong {
  font-size: 16px;
  font-weight: 700;
  color: #0d6e6e;
}

.ejb-v2-no-results span {
  font-size: 13.5px;
  color: #555;
  line-height: 1.5;
}

.ejb-v2-no-results-form {
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
}

/* Hide mobile-only line break on desktop */
.mobile-br { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .mobile-br { display: block; }

  .ejb-v2.search-hero { padding: 28px 16px 24px; }
  .ejb-v2 .hero-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ejb-v2 .hero-title { padding-left: 0; }
  .ejb-v2 .search-card { border-radius: 16px; }
  .ejb-v2 .search-row { flex-direction: column; border-radius: 12px; }
  .ejb-v2 .sf { border-right: none; border-bottom: 1.5px solid #eee; padding-right: 22px !important; }
  .ejb-v2 .sf:last-of-type { border-bottom: none; }

  /* When specialty is active, push location below it in stacking order */
  .ejb-v2 .sf.active { z-index: 99999; }
  .ejb-v2 #sf-loc-v2 { z-index: auto; }
  .ejb-v2 #sf-loc-v2.active { z-index: 99999; }

  /* Dropdowns: absolute within parent .sf, matching its width */
  .ejb-v2 .dd {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: auto;
    max-height: 50vh;
    z-index: 99999;
  }

  .ejb-v2 .go-cell { padding: 5px 6px; display: flex; justify-content: center; }
  .ejb-v2 .go-btn { width: 100%; justify-content: center; border-radius: 8px; }
  .ejb-v2 .bottom-section { padding: 0 8px; }
  .ejb-v2 .adv-grid { grid-template-columns: repeat(2, 1fr); }

  /* Trending: label stays put, pills scroll with fade overlays */
  .ejb-v2 .trending-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 8px 0;
    overflow: visible;
  }
  .ejb-v2 .tr-label {
    flex-shrink: 0;
    padding-right: 8px;
  }
  .ejb-v2 .tr-pills-wrap {
    display: flex;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
  }
  .ejb-v2 .tr-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .ejb-v2 .tr-pills::-webkit-scrollbar { display: none; }
  .ejb-v2 .tr-fade {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.25s;
  }
  .ejb-v2 .tr-fade-right {
    right: 0;
    background: linear-gradient(to right, transparent, #58AFA6);
  }
  .ejb-v2 .tr-fade-left {
    left: 0;
    background: linear-gradient(to left, transparent, #58AFA6);
    opacity: 0;
  }
  .ejb-v2 .tr-fade-left.visible { opacity: 1; }

  /* Hide palm background and assignments badge on mobile */
  .ejb-v2 .hero-bg-image { display: none; }
  .ejb-v2 .hero-badge { display: none; }

  .ejb-pagination .ejb-page-buttons { flex-wrap: wrap; }
}

/* ── Pagination ── */
.ejb-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 0 12px;
}

.ejb-page-info {
  font-size: 14px;
  color: #666;
}

.ejb-page-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ejb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ejb-page-btn:hover {
  background: #007481;
  color: #fff;
  border-color: #007481;
}

.ejb-page-btn.active {
  background: #007481;
  color: #fff;
  border-color: #007481;
  font-weight: 600;
  cursor: default;
}

.ejb-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 38px;
  font-size: 16px;
  color: #999;
  letter-spacing: 1px;
}

#job-listings {
  padding: 0;
}

/* Sort By — outer wrapper with label + dropdown */
.sort-by-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sort-by-label {
  display: none;
}

/* Sort By chip — teal outline pill style */
#ats-job-filter-sort-by-container.sort-chip {
  background: transparent;
  border: 1.5px solid #007481;
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  transition: all 0.2s;
}
#ats-job-filter-sort-by-container.sort-chip:hover {
  background: rgba(0, 116, 129, 0.06);
  border-color: #005c66;
}

.sort-chip-val {
  display: flex;
  align-items: center;
  width: 100%;
}

.sort-chip select,
.sort-chip select#ats-job-filter-sort-by-pay-rate {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #007481;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  height: auto;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007481' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
  padding-right: 22px;
  border-radius: 0;
  box-shadow: none;
}
.sort-chip select:focus,
.sort-chip select#ats-job-filter-sort-by-pay-rate:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.sort-chip select option {
  color: #333;
  background: #fff;
}

/* Add "ejb-allow-overflow" to any WPBakery row wrapping the widget */
.vc_row.ejb-allow-overflow[data-vc-full-width],
.ejb-allow-overflow,
.ejb-allow-overflow > .vc_column-inner,
.ejb-allow-overflow > .wpb_wrapper,
.ejb-allow-overflow.vc_row .vc_column_container,
.ejb-allow-overflow.vc_row .vc_column_container > .vc_column-inner,
.ejb-allow-overflow.vc_row .vc_column_container > .vc_column-inner > .wpb_wrapper {
  overflow: visible !important;
  z-index: 100;
  position: relative;
}
