/* =========================
   Job Listing Card Styles
   ========================= */
.job-listing h2 {
  font-size: 1.3rem;
}

/* Container = flex rows */
.job-listings-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Two columns by default */
.job-listing {
  flex: 1 1 calc(50% - 20px);
  box-sizing: border-box;
}

/* Mobile: single column */
@media (max-width: 480px) {
  .job-listing {
    flex: 1 1 100%!important;
    min-width: 0; /* ensure it can shrink on small screens */
  }
}


/* =========================
   Apply Now Button (Global)
   ========================= */
.apply-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #EC393E;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: transform 0.02s ease-in, background-color 0.15s ease-in-out;
}

.apply-link:hover,
.apply-link:focus {
  background-color: #c9252a;
  color: #fff;
  text-decoration: none;
}

.apply-link:active {
  transform: translateY(1px);
}

#all-region-map .leaflet-popup-content .apply-link {
  color: #fff !important;
}

/* =========================
   Map Container + Popup
   ========================= */

/* Force smaller height for mobile */
@media (max-width: 480px) {
  #all-region-map {
    height: 320px !important;
  }
  #all-region-map .leaflet-popup {
    margin-bottom: -40px;
  }
.leaflet-popup-tip {
    display:none!important;
  }
}

#all-region-map {
  position: relative;
  z-index: 98;
}

#all-region-map .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

#all-region-map .leaflet-popup-tip {
  background: #fff;
}

#all-region-map .leaflet-popup-content {
  max-width: 340px;
  font-size: 16px;
  line-height: 1.45;
  margin: 14px 18px;
  text-align: left;
}

#all-region-map .leaflet-popup-content b {
  display: block;
  font-size: 1.1rem;
}

#all-region-map .leaflet-popup-content img.emoji {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* Centered Apply Now button in Map Popup */
#all-region-map .leaflet-popup-content .apply-link {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
}

/* Popup Close Button */
#all-region-map .leaflet-popup-close-button {
  font-size: 24px;
  color: #EC393E;
  width: 28px;
  height: 28px;
  line-height: 28px;
}

#all-region-map .leaflet-popup-close-button:hover {
  color: #d73035;
}

/* =========================
   Responsive (Mobile)
   ========================= */
@media (max-width: 768px) {
  #all-region-map .leaflet-popup-content {
    max-width: 300px;
    font-size: 15px;
  }
}
