/* Job Board (WP-migrated) */

body.als-page-job-board {
  --als-primary: #F2C11C;
  --als-secondary: #FFF6DA;
  --als-dark: #2c3e50;
  --als-deep: #101c3a;
  --als-soft-bg: #f4f6fb;
  --als-light: #f8f9fa;
  --als-white: #ffffff;
  --als-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --als-shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
  --als-radius: 16px;
  --als-radius-sm: 12px;
  --als-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --als-site-header: 78px;

  background: #f5f7fb;
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}

/* Logged applicant topbar layout on /empleos */
.als-page-job-board .als-applicant-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
}

.als-page-job-board .als-applicant-topbar .als-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 18px;
  padding-right: 18px;
}

.als-page-job-board .als-applicant-topbar__inner {
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  gap: 16px;
  min-height: 78px;
}

.als-page-job-board .als-applicant-topbar__actions {
  justify-self: end;
}

.als-page-job-board .als-applicant-dashboard .als-job-board-wp {
  padding-top: 90px;
}

body.als-page-job-board.no-scroll {
  overflow: hidden;
}

.als-page-job-board .als-main {
  padding: 0;
}

.als-page-job-board .als-applicant-dashboard {
  background: #f5f7fb;
  padding-bottom: 0;
}

.als-job-board-wp {
  min-height: calc(100vh - var(--als-site-header));
  width: 100%;
  max-width: min(100%, 1680px);
  margin: 0 auto;
  padding: 18px 22px;
  box-sizing: border-box;
}

/* ========== Loader ========== */

#pageLoader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}

#pageLoader.hidden {
  opacity: 0;
  pointer-events: none;
}

.als-job-board-wp__loader {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
}

.als-job-board-wp__spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(242, 193, 28, 0.25);
  border-top-color: var(--als-primary);
  animation: alsJobSpin 1s linear infinite;
}

@keyframes alsJobSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Split Layout ========== */

.split-container {
  display: grid;
  grid-template-columns: minmax(0, 37%) minmax(0, 63%);
  min-height: calc(100vh - var(--als-site-header) - 130px);
  gap: 16px;
}

.map-panel,
.jobs-panel {
  min-width: 0;
}

.split-container.map-collapsed {
  grid-template-columns: 0% 100%;
}

.split-container.map-collapsed .map-panel {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ========== Map Panel ========== */

.map-panel {
  background: #cfe8f8;
  padding: 0;
  border: 1px solid #dfe7f3;
  border-radius: 18px;
  position: sticky;
  top: var(--als-site-header);
  height: calc(100vh - var(--als-site-header) - 26px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: opacity 0.25s ease;
}

.als-page-job-board .als-applicant-dashboard .map-panel {
  top: 88px;
  height: calc(100vh - 114px);
}

.map-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 12;
  pointer-events: none;
}

.map-header-text {
  min-width: 200px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
}

.map-kicker {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 900;
  color: #ea580c;
}

.map-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.map-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.province-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  color: var(--als-dark);
  pointer-events: auto;
}

.province-indicator i { color: var(--als-primary); }

.province-indicator.active {
  background: var(--als-primary);
  border-color: var(--als-primary);
}

.province-indicator.active i { color: var(--als-dark); }

.province-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.btn-reset-filters {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: #64748b;
  pointer-events: auto;
}

.btn-reset-filters:hover {
  border-color: var(--als-primary);
  background: rgba(242, 193, 28, 0.10);
  color: var(--als-dark);
}

.map-container {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #bfe4fb 0%, #79c3eb 52%, #2b96d1 78%, #0077be 100%);
  display: grid;
  place-items: center;
  padding: 8px;
}

.dominican-map {
  width: 100%;
  height: auto;
  max-height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.dominican-map.visible {
  opacity: 1;
}

.mapsvg-region {
  fill: #fffdf6;
  stroke: #1f4f85;
  stroke-width: 2px;
  transition: all 0.35s var(--als-ease);
  cursor: pointer;
}

.mapsvg-region:hover {
  fill: #f7d86c !important;
  stroke: #7d5b00;
  filter: drop-shadow(0 4px 10px rgba(125, 91, 0, 0.26));
}

.mapsvg-region.selected {
  fill: #f2c11c !important;
  stroke: #6b4f00;
  stroke-width: 3px;
  filter: drop-shadow(0 0 10px rgba(242, 193, 28, 0.44));
}

.mapsvg-region.heat-0 { fill: #fff7dc; }
.mapsvg-region.heat-1 { fill: #f9e6a6; }
.mapsvg-region.heat-2 { fill: #f2c11c; }
.mapsvg-region.heat-3 { fill: #df9d12; }
.mapsvg-region.heat-4 { fill: #002d62; }
.mapsvg-region.heat-5 { fill: #ce1126; }

.mapsvg-region.heat-4,
.mapsvg-region.heat-5 {
  stroke: #ffffff;
}

.map-nearby-banner {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(71, 85, 105, 0.20);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.map-nearby-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.map-nearby-clear {
  background: #fff;
  border: 1px solid rgba(71, 85, 105, 0.35);
  color: #334155;
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.map-nearby-clear:hover {
  border-color: #334155;
  background: #f8fafc;
}

.province-label-text {
  font-size: 10px;
  fill: #000;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  opacity: 0.9;
}

.map-tooltip {
  position: absolute;
  background: var(--als-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 40;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--als-dark);
}

.tooltip-count { color: var(--als-primary); font-weight: 800; }

.hotspot-container,
.province-badge-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #e74c3c;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  animation: alsHotspotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.45);
}

.hotspot::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 999px;
}

@keyframes alsHotspotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.45); }
  50% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

.province-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--als-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
}

.province-badge.visible { opacity: 1; }
.province-badge.has-many { background: var(--als-primary); color: var(--als-dark); }

/* ========== Jobs Panel ========== */

.jobs-panel {
  background: #f7f9fd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dfe6f1;
}

.jobs-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #ebeff5;
}

.jobs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jobs-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.jobs-count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.jobs-count strong { color: var(--als-primary); }

.btn-toggle-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #d8dfeb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--als-dark);
  cursor: pointer;
  white-space: nowrap;
}

.btn-toggle-map:hover {
  border-color: var(--als-primary);
  background: rgba(242, 193, 28, 0.06);
}

.btn-toggle-map.map-hidden {
  background: var(--als-primary);
  border-color: var(--als-primary);
}

.header-search {
  max-width: 100%;
  margin: 0;
}

.search-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
  margin: 0 0 6px 4px;
}

.quick-search {
  position: relative;
}

.quick-search input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d8deeb;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.98);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus {
  outline: none;
  border-color: #9aa8c3;
  box-shadow: 0 10px 24px rgba(16, 28, 58, 0.10);
  background: #fff;
}

.filters-bar {
  padding: 12px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dbe4f1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--als-primary);
  background: rgba(242, 193, 28, 0.06);
}

.filter-chip.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.registration-banner {
  display: none;
  margin: 12px 22px;
  padding: 16px;
  border-radius: var(--als-radius);
  background: linear-gradient(135deg, #FFF6DA 0%, #F2C11C 100%);
  border: 2px solid var(--als-primary);
}

.registration-banner.visible { display: block; }

.registration-banner h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: var(--als-dark);
}

.registration-banner p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.btn-register-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--als-dark);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.btn-register-banner:hover { filter: brightness(1.05); }

.jobs-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 20px;
}

.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid #ebeff5;
  background: #f7f9fd;
}

.jobs-pagination[hidden] {
  display: none;
}

.jobs-pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.jobs-pagination__btn:hover {
  border-color: #9aa8c3;
  background: #f8fafc;
}

.jobs-pagination__btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.jobs-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.job-card-compact {
  background: #ffffff;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.25s var(--als-ease), box-shadow 0.25s var(--als-ease), border-color 0.25s var(--als-ease);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

.job-card-compact:hover {
  border-color: #c9d4e3;
  box-shadow: 0 8px 20px rgba(16, 28, 58, 0.08);
  transform: translateY(-1px);
}

.job-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(94deg, #FFF6DA 0%, #F2C11C 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--als-dark);
  flex: none;
  overflow: hidden;
  position: relative;
}

.job-logo .job-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.job-logo.has-image .job-logo-fallback {
  opacity: 0;
}

.job-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-logo.als-brand {
  background: transparent;
  border: 1px solid rgba(11, 18, 32, 0.10);
}

.job-logo.als-brand img {
  object-fit: contain;
  padding: 4px;
}

.job-info { flex: 1; min-width: 0; }

.job-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-new { background: #dcfce7; color: #166534; }
.badge-hot { background: #fee2e2; color: #991b1b; }
.badge-match { background: #dbeafe; color: #1e40af; }
.badge-remote { background: #f3e8ff; color: #6b21a8; }
.badge-presencial { background: #fff7df; color: #9a6b00; }
.badge-hibrido { background: #e0f2fe; color: #0c4a6e; }
.badge-applied { background: #22c55e; color: #fff; }

.job-title-compact {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-company-compact {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
}

.job-meta-compact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
}

.job-meta-compact span + span::before {
  content: "•";
  margin-right: 8px;
  color: #94a3b8;
}

.job-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  min-width: 128px;
}

.job-salary-compact {
  font-size: 17px;
  font-weight: 900;
  color: #ea580c;
  white-space: nowrap;
}

.job-salary-compact.is-negotiable {
  font-size: 13px;
  font-weight: 600;
  color: #5b6475;
}

.modal-info-item.is-negotiable strong {
  font-weight: 600;
  color: #5b6475;
}

.btn-apply-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #e6b21b;
  border-radius: 999px;
  background: #fff;
  color: #223047;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.btn-apply-card:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-register-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6b21b;
  color: var(--als-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.btn-register-card:hover { background: #fff8df; }

.card-tooltip {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 46px 18px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(242, 193, 28, 0.20);
  border-top-color: var(--als-primary);
  border-radius: 999px;
  animation: alsJobSpin 1s linear infinite;
  margin: 0 auto 12px;
}

/* ========== Modal ========== */

.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  max-height: min(86dvh, 900px);
  overflow: auto;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 18px 22px 16px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}

.modal-company-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.modal-company-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(94deg, #FFF6DA 0%, #F2C11C 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--als-dark);
  overflow: hidden;
  position: relative;
}

.modal-company-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-company-logo.has-image .modal-company-logo-fallback {
  opacity: 0;
}

.modal-company-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-company-logo.als-brand {
  background: transparent;
  border: 1px solid rgba(11, 18, 32, 0.10);
}

.modal-company-logo.als-brand img {
  object-fit: contain;
  padding: 6px;
}

.modal-company-name { font-size: 14px; font-weight: 900; color: #6b7280; }

.modal-job-title {
  margin: 12px 0 8px;
  font-size: 26px;
  font-weight: 900;
  color: var(--als-dark);
}

.modal-location { color: #6b7280; font-weight: 700; }

.modal-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modal-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242, 193, 28, 0.18);
  border: 1px solid rgba(34, 27, 0, 0.10);
  font-size: 12px;
  font-weight: 900;
}

.modal-tag.remote {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.18);
}

.modal-body { padding: 18px 22px; }

.modal-section { margin-bottom: 18px; }

.modal-section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--als-dark);
}

.modal-section-content { color: #374151; font-weight: 600; line-height: 1.6; }

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-info-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111827;
}

.modal-benefits {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-weight: 650;
}

.modal-actions {
  padding: 16px 22px 18px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-btn-apply {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--als-primary);
  color: var(--als-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.modal-btn-close {
  border-radius: 999px;
  padding: 12px 18px;
  background: #0b1220;
  color: #fff;
  font: inherit;
  font-weight: 850;
  border: none;
  cursor: pointer;
}

/* ========== Responsive ========== */

@media (min-width: 1600px) {
  .als-job-board-wp { max-width: min(97vw, 1780px); }
  .split-container { grid-template-columns: minmax(0, 35%) minmax(0, 65%); }
  .jobs-list { padding: 16px 24px 26px; }
}

@media (max-width: 1024px) {
  .split-container { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: auto; }
  .map-panel { position: relative; top: auto; height: 360px; border-right: 1px solid #dfe7f3; border-bottom: 1px solid #dfe7f3; }
  .jobs-title { font-size: 24px; }
}

@media (max-width: 768px) {
  .als-page-job-board .als-applicant-topbar .als-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .als-page-job-board .als-applicant-topbar__inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    min-height: 70px;
  }

  .als-page-job-board .als-applicant-dashboard .als-job-board-wp {
    padding-top: 78px;
  }

  .als-page-job-board .als-applicant-dashboard .map-panel {
    top: auto;
    height: 300px;
  }

  .als-job-board-wp { padding: 8px; }
  .split-container { gap: 10px; }
  .map-panel { height: 300px; border-radius: 14px; }
  .map-header { display: none; }
  .map-header-text { display: none; }
  .province-indicator { display: none; }
  .btn-reset-filters { display: none !important; }
  .map-title { font-size: 16px; }
  .map-subtitle { font-size: 11px; }
  .map-container { padding: 8px; }
  .map-wrapper { border-radius: 12px; padding: 6px; }
  .map-nearby-banner { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; }
  .map-nearby-content { font-size: 12px; }
  .map-nearby-clear { font-size: 11px; padding: 7px 10px; }
  .dominican-map { width: 100%; max-height: none; }
  .province-label-text { display: none; }
  .jobs-header { padding: 16px; }
  .filters-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .jobs-list { padding: 12px 16px 18px; }
  .jobs-pagination { padding: 10px 12px 14px; justify-content: flex-start; overflow-x: auto; }
  .jobs-header-row { flex-direction: column; align-items: flex-start; }
  .btn-toggle-map { width: 100%; justify-content: center; }
  /* Cuando el mapa está colapsado en mobile, volver a 1 columna */
  .split-container.map-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .split-container.map-collapsed .map-panel { display: none; }

  /* jobs-list: en mobile no depender de flex:1 (padre sin altura definida = altura 0) */
  .jobs-panel { overflow: visible; }
  .jobs-list {
    flex: none;
    overflow-y: visible;
    height: auto;
  }
  .modal-info-grid { grid-template-columns: 1fr; }
  .job-card-compact { grid-template-columns: 1fr; gap: 10px; }
  .job-info { width: 100%; }
  .job-logo { width: 48px; height: 48px; }
  .job-card-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
  .jobs-title { font-size: 22px; }
  .job-title-compact { font-size: 16px; }
  .job-company-compact { font-size: 12px; }
}
