.job-map-page .job-map-boxed {
  padding-bottom: 0;
}

.job-map-page #footer,
.job-map-page .footer {
  display: none;
}

.job-map-toolbar {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.job-map-toolbar__inner {
  max-width: 100%;
  padding: 12px 20px;
}

.job-map-toolbar__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.job-map-toolbar__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-map-filter-panel {
  flex: 1 1 320px;
  min-width: 0;
}

@media (min-width: 992px) {
  .job-map-toolbar__bar {
    flex-wrap: nowrap;
  }

  .job-map-filter-panel {
    flex: 0 1 auto;
    margin-left: auto;
  }

  .job-map-filter-row {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
}

.job-map-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.job-map-filter-toggle.is-active {
  border-color: #14a077;
  color: #14a077;
  background: rgba(20, 160, 119, 0.08);
}

.job-map-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.job-map-filter-field {
  min-width: 120px;
}

.job-map-filter-field--keyword {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
}

.job-map-filter-field input,
.job-map-filter-field select,
.job-map-filter-field .recruit-picker-trigger {
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  box-sizing: border-box;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  color: #0f172a;
}

.job-map-filter-field input[type="text"] {
  padding-top: 0;
  padding-bottom: 0;
}

.job-map-filter-field .recruit-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 34px 0 12px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.job-map-filter-field select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.job-map-filter-field .recruit-picker-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  pointer-events: none;
}

.job-map-filter-field .recruit-picker-trigger.is-selected {
  color: #0f172a;
}

.job-map-filter-field--select {
  min-width: 110px;
  max-width: 150px;
}

.job-map-filter-select {
  position: relative;
}

.job-map-filter-select__trigger {
  width: 100%;
}

.job-map-filter-select__trigger .recruit-picker-trigger__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-map-filter-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  width: max-content;
  max-width: min(280px, 90vw);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.job-map-filter-select__menu[hidden] {
  display: none !important;
}

.job-map-filter-select__option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.job-map-filter-select__option:hover,
.job-map-filter-select__option.is-selected {
  background: rgba(20, 160, 119, 0.08);
}

.job-map-filter-select__native {
  display: none !important;
}

.job-map-filter-field input[type="text"]:focus,
.job-map-filter-field .recruit-picker-trigger:focus {
  outline: none;
  border-color: #94a3b8;
}

.job-map-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.job-map-filter-reset {
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-weight: 600;
}

.job-map-filter-reset:hover {
  border-color: #94a3b8;
  color: #334155;
}

.job-map-filter-submit {
  height: 42px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #14a077;
  color: #fff;
  font-weight: 700;
}

.job-map-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - 132px);
  min-height: 560px;
  position: relative;
}

.job-map-panel--list {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.job-map-list-head {
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.job-map-list-head strong {
  display: block;
  font-size: 16px;
}

.job-map-list-sub {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.job-map-list {
  overflow: auto;
  padding: 12px;
  flex: 1;
}

.job-map-list-empty {
  padding: 48px 20px;
  text-align: center;
  color: #64748b;
}

.job-map-list-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 16px;
}

.job-map-list-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.job-map-panel--map {
  position: relative;
  min-height: 0;
}

.job-map-canvas {
  width: 100%;
  height: 100%;
}

.job-map-map-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-map-locate-btn,
.job-map-zoom-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  color: #14a077;
  line-height: 1;
  cursor: pointer;
}

.job-map-locate-btn i {
  display: block;
  width: 25px;
  height: 25px;
  font-size: 25px;
  line-height: 25px;
  text-align: center;
}

.job-map-zoom-btn i {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.job-map-loading-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 211;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  background: none;
  pointer-events: none;
}

.job-map-loading-overlay[hidden] {
  display: none !important;
}

.job-map-loading__card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}

.job-map-loading__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(20, 160, 119, 0.2);
  border-top-color: #14a077;
  border-radius: 50%;
  flex-shrink: 0;
  animation: job-map-loading-spin 0.7s linear infinite;
}

@keyframes job-map-loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.job-map-grid-cluster {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 160, 119, 0.92);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(15, 120, 90, 0.35);
  cursor: pointer;
}

.job-map-grid-cluster:hover {
  background: rgba(15, 120, 90, 0.98);
}

.job-map-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-map-card.is-active {
  border-color: #14a077;
  box-shadow: 0 8px 24px rgba(20, 160, 119, 0.14);
}

.job-map-card__hit {
  display: block;
  width: 100%;
  padding: 14px 16px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.job-map-card__company {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 13px;
}

.job-map-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: #0f172a;
}

.job-map-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 400;
}

.job-map-card__meta li {
  margin-bottom: 4px;
}

.job-map-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.job-map-card__tags span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.job-map-card.is-active .job-map-card__actions {
  border-top: 1px solid rgba(20, 160, 119, 0.12);
  margin-top: 2px;
  padding-top: 12px;
}

.job-map-card__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px 14px;
}

.job-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.job-map-btn__icon {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.job-map-btn--ghost {
  border: 1px solid #dbe3ee;
  color: #334155;
  background: #fff;
}

.job-map-btn--primary {
  background: #14a077;
  color: #fff;
  border: 1px solid #14a077;
}

.job-map-page a.job-map-btn--primary:hover,
.job-map-page a.job-map-btn--primary:focus {
  background: #0f8a66;
  border-color: #0f8a66;
  color: #fff;
}

.job-map-page a.job-map-btn--ghost:hover,
.job-map-page a.job-map-btn--ghost:focus {
  border-color: #14a077;
  color: #14a077;
  background: #fff;
}

.job-map-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.job-map-badge--api {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.job-map-badge--scrap {
  background: rgba(244, 63, 94, 0.12);
  color: #e11d48;
}

.job-map-sheet {
  display: none;
}

@media (max-width: 991px) {
  .job-map-toolbar__inner {
    padding: 10px 14px;
  }

  .job-map-toolbar__bar {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .job-map-toolbar__title {
    font-size: 18px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .job-map-filter-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .job-map-toolbar:has(.job-map-filter-panel.is-open) {
    z-index: 300;
  }

  .job-map-filter-panel {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 2px;
  }

  .job-map-filter-panel.is-open {
    display: block;
  }

  .job-map-toolbar__bar:has(.job-map-filter-panel.is-open) {
    flex-wrap: wrap;
  }

  .job-map-filter-field--keyword {
    flex: 1 1 100%;
    max-width: none;
  }

  .job-map-filter-field {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .job-map-filter-actions {
    flex: 1 1 100%;
    width: 100%;
  }

  .job-map-filter-reset,
  .job-map-filter-submit {
    flex: 1 1 0;
    width: auto;
  }

  .job-map-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 118px);
  }

  .job-map-panel--list {
    display: none;
  }

  .job-map-sheet {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    transform: translateY(110%);
    transition: transform 0.25s ease;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.18);
    max-height: 52vh;
    overflow: auto;
  }

  .job-map-sheet.is-open {
    transform: translateY(0);
  }

  .job-map-sheet__handle {
    width: 44px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
  }

  .job-map-sheet__body {
    padding: 8px 12px 18px;
  }

  .job-map-sheet .job-map-card__actions {
    justify-content: center;
    padding-bottom: 16px;
  }

  .job-map-sheet .job-map-btn {
    min-width: 120px;
  }
}
