@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

.yp-employer-grid-page {
  --yp-eg-primary: #ffc864;
  --yp-eg-primary-dark: #d89f3f;
  --yp-eg-bg: #f7f9fd;
  --yp-eg-surface: #ffffff;
  --yp-eg-text: #1c2136;
  --yp-eg-muted: #64748b;
  --yp-eg-border: #e6e8ec;
  background: var(--yp-eg-bg);
  color: var(--yp-eg-text);
  font-family: "Inter", system-ui, sans-serif;
}

.yp-eg-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  text-align:center;
}

@media (min-width: 768px) {
  .yp-eg-container {
    padding: 0 40px;
  }
}

.yp-eg-hero {
 background: linear-gradient(135deg, #ffd451 0%, #ffeaa6 50%, #ffdf81 100%);
  border-bottom: 1px solid var(--yp-eg-border);
  padding: 52px 0 34px;
}
.yp-eg-view-toggle{
 display: flex;
    background: #eceef2;
    border-radius: 12px;
    padding: 4px;   
}
.yp-eg-view-toggle .view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #4f4535;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: default;
}
.yp-eg-view-toggle .view-btn.active {
    background: #181c1f;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.yp-eg-hero-content .yp-eg-kicker {
      display: inline-block;
    background: #fff7e6;
    color: #FF9800;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.yp-eg-hero-content h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 14px;
}

.yp-eg-hero-content p {
  color: var(--yp-eg-muted);
  /*max-width: 760px;*/
  margin: 0 0 22px;
  font-size: 18px;
}

.yp-eg-search-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 10px;
  background: var(--yp-eg-surface);
  border: 1px solid #d8dce2;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.08);
  max-width:896px;
  margin:0 auto;
}

.yp-eg-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}

.yp-eg-search-field i {
  color: #95a3bb;
}

.yp-eg-search-field input,
.yp-eg-search-field select {
  width: 100%;
  border: none;
  background: transparent;
  height: 48px;
  outline: none;
}

.yp-eg-search-btn {
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  background: var(--yp-eg-primary);
  color: #4c3504;
  font-weight: 700;
  min-height: 48px;
}

.yp-eg-search-btn:hover {
  background: var(--yp-eg-primary-dark);
  color: #fff;
}

.yp-eg-main {
  padding: 32px 0 52px;
}

.yp-eg-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.yp-eg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yp-eg-filter-card {
  background: var(--yp-eg-surface);
  border: 1px solid var(--yp-eg-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);
}

.yp-eg-filter-card h4 {
  margin: 0 0 10px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
}

.yp-eg-side-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8dce2;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}

.yp-eg-side-field i {
  color: #ffc864;
}

.yp-eg-side-field input,
.yp-eg-side-field select {
  width: 100%;
  border: none;
  background: transparent;
  height: 42px;
  outline: none;
}

.yp-eg-side-field--suggest {
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}

.yp-eg-side-field--suggest > i {
  margin-top: 12px;
}

.yp-eg-suggest-wrap {
  position: relative;
  width: 100%;
}

.yp-eg-suggest-box {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
}

.yp-eg-suggest-box .list-group-item {
  cursor: pointer;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 13px;
  text-align: left;
  padding: 10px 12px;
}

.yp-eg-suggest-box .list-group-item:last-child {
  border-bottom: none;
}

.yp-eg-apply-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 10px;
  height: 42px;
  background: var(--yp-eg-primary);
  color: #4c3504;
  font-weight: 700;
}

.yp-eg-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.yp-eg-results-head h2 {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 24px;
}

.yp-eg-results-head p {
  margin: 4px 0 0;
  color: var(--yp-eg-muted);
  text-align:left;
  font-size:14px;
}

.yp-eg-loading,
.yp-eg-empty {
  text-align: center;
  color: var(--yp-eg-muted);
  padding: 38px 12px;
}

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

/* Cards rendered by yellowpin-employer-grid.js */
.employer-card {
  background: var(--yp-eg-surface);
  border: 1px solid var(--yp-eg-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.employer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 188, 87, 0.55);
  box-shadow: 0 12px 30px rgba(28, 33, 54, 0.1);
}

.employer-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  /*margin-bottom: 16px;*/
  flex-direction: column;
    align-items: flex-start;
}

.employer-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f2f4f8;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.employer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.employer-info {
  flex: 1;
  text-align:left;
}

.employer-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff7e6;
    color: #FF9800;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 7px;
  display:none;
}

.employer-badge.verified {
  background: rgba(34, 197, 94, 0.12);
  color: #12944a;
}

.employer-info h4 {
  margin: 0 0 4px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.4em;
}

.employer-info h4 a {
  color: var(--yp-eg-text);
  text-decoration: none;
}

.employer-info h4 a:hover {
  color: #ffc864;
}

.employer-info p {
  margin: 0;
  color: var(--yp-eg-muted);
  font-size: 15px;
}

.employer-meta {
  border-top: 1px solid #eef1f5;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #000;
  font-size: 15px;
}

.employer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.employer-meta i {
  color: #fabc57;
}

@media (max-width: 992px) {
  .yp-eg-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .yp-eg-hero-content h1 {
    font-size: 34px;
  }

  .yp-eg-search-panel {
    grid-template-columns: 1fr;
  }
}
