.mmjsw-widget{
  --mmjsw-blue:#1263f1;
  --mmjsw-dark:#0f172a;
  --mmjsw-muted:#64748b;
  --mmjsw-line:#e2e8f0;
  --mmjsw-soft:#f8fafc;
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  color:var(--mmjsw-dark);
}

.mmjsw-widget *{box-sizing:border-box}

.mmjsw-title{
  margin:0 0 18px;
  font-size:28px;
  line-height:1.2;
  font-weight:900;
}

.mmjsw-hot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:18px 20px;
  border:1px solid #fed7aa;
  border-radius:18px;
  background:#fff7ed;
  box-shadow:0 12px 30px rgba(251,146,60,.12);
}

.mmjsw-hot-line-1{
  font-size:20px;
  line-height:1.25;
  font-weight:900;
  color:#9a3412;
}

.mmjsw-hot-line-2{
  margin-top:4px;
  font-size:18px;
  font-weight:900;
  color:#0f172a;
}

.mmjsw-hot-btn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:12px;
  background:#16a34a;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900;
  white-space:nowrap;
}

.mmjsw-filters{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:12px;
  margin-bottom:16px;
}

.mmjsw-field label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:var(--mmjsw-muted);
  margin-bottom:6px;
}

.mmjsw-field input,
.mmjsw-field select{
  width:100%;
  min-height:48px;
  border:1px solid var(--mmjsw-line);
  border-radius:12px;
  padding:0 14px;
  background:#fff;
  color:var(--mmjsw-dark);
  font-size:15px;
  font-weight:700;
}

.mmjsw-count{
  margin:10px 0 14px;
  font-weight:900;
}

.mmjsw-map-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);
  gap:16px;
  align-items:start;
}

.mmjsw-map{
  width:100%;
  min-height:320px;
  border:1px solid var(--mmjsw-line);
  border-radius:18px;
  overflow:hidden;
  background:#eef2f7;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
}

.mmjsw-list{
  display:grid;
  gap:12px;
  max-height:460px;
  overflow:auto;
  padding-right:4px;
}

.mmjsw-card{
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid var(--mmjsw-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
  cursor:pointer;
  transition:.15s ease;
}

.mmjsw-card:hover,
.mmjsw-card.active{
  border-color:#93c5fd;
  box-shadow:0 12px 28px rgba(37,99,235,.14);
}

.mmjsw-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.mmjsw-card h3{
  margin:0;
  font-size:20px;
  line-height:1.25;
  font-weight:900;
}

.mmjsw-urgent{
  margin:0 0 4px;
  color:#ef4444;
  font-weight:900;
}

.mmjsw-card-location{
  color:#334155;
  font-weight:700;
}

.mmjsw-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--mmjsw-muted);
  font-size:14px;
}

.mmjsw-meta span{
  background:var(--mmjsw-soft);
  border:1px solid var(--mmjsw-line);
  border-radius:999px;
  padding:6px 10px;
}

.mmjsw-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  min-height:42px;
  padding:0 16px;
  border-radius:10px;
  background:var(--mmjsw-blue);
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900;
}

.mmjsw-empty{
  padding:18px;
  border:1px dashed var(--mmjsw-line);
  border-radius:14px;
  color:var(--mmjsw-muted);
}

.mmjsw-marker{
  width:38px!important;
  height:38px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:4px solid #fff;
  background:#1263f1;
  color:#fff;
  font-size:20px;
  box-shadow:0 6px 18px rgba(15,23,42,.24);
}

.mmjsw-marker.is-urgent{
  background:#ef4444;
}

.mmjsw-detail{
  margin-top:18px;
}

.mmjsw-detail-card{
  padding:22px;
  border:1px solid var(--mmjsw-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 36px rgba(15,23,42,.07);
}

.mmjsw-detail-label{
  margin-bottom:6px;
  color:#ef4444;
  font-size:13px;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.02em;
}

.mmjsw-detail-card h3{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.2;
  font-weight:900;
}

.mmjsw-detail-location{
  margin:0 0 10px;
  font-size:17px;
  color:#334155;
}

.mmjsw-detail-salary{
  margin:0 0 14px;
  font-size:26px;
  line-height:1.15;
  font-weight:900;
}

.mmjsw-detail-card ul{
  margin:0 0 16px 0;
  padding:0;
  list-style:none;
}

.mmjsw-detail-card li{
  margin:0 0 8px;
  color:#334155;
  font-weight:700;
}

@media(max-width:900px){
  .mmjsw-map-layout{
    grid-template-columns:1fr;
  }

  .mmjsw-list{
    max-height:none;
  }
}

@media(max-width:760px){
  .mmjsw-filters{
    grid-template-columns:1fr;
  }

  .mmjsw-card h3{
    font-size:18px;
  }

  .mmjsw-hot{
    display:block;
  }

  .mmjsw-hot-btn{
    width:100%;
    margin-top:12px;
  }

  .mmjsw-detail-card h3,
  .mmjsw-detail-salary{
    font-size:22px;
  }
}

/* V3: compact toggle filters and map-only layout */
.mmjsw-filters {
  display: none !important;
}

.mmjsw-toggle-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--mmjsw-line);
  border-bottom: 1px solid var(--mmjsw-line);
}

.mmjsw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 22px;
  border-right: 1px solid var(--mmjsw-line);
  cursor: pointer;
  user-select: none;
}

.mmjsw-toggle:first-child {
  padding-left: 0;
}

.mmjsw-toggle:last-child {
  border-right: 0;
}

.mmjsw-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mmjsw-toggle span {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #94a3b8;
  transition: .18s ease;
  flex: 0 0 auto;
}

.mmjsw-toggle span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.25);
  transition: .18s ease;
}

.mmjsw-toggle input:checked + span {
  background: var(--mmjsw-blue);
}

.mmjsw-toggle input:checked + span::after {
  transform: translateX(20px);
}

.mmjsw-toggle b {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--mmjsw-dark);
  white-space: nowrap;
}

.mmjsw-map-layout {
  display: block;
}

.mmjsw-map {
  width: 100%;
}

.mmjsw-list {
  display: none !important;
}

@media (max-width: 760px) {
  .mmjsw-toggle-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 0;
  }

  .mmjsw-toggle {
    padding: 0 12px;
  }

  .mmjsw-toggle:nth-child(2n) {
    border-right: 0;
  }

  .mmjsw-toggle b {
    font-size: 13px;
  }
}


/* Intro title above hot vacancy and map */
.mmjsw-intro-title {
  margin: 0 0 16px;
  color: var(--mmjsw-dark);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

@media (max-width: 760px) {
  .mmjsw-intro-title {
    font-size: 22px;
  }
}
