/* Jobs Page - Map */
.mgj-map-wrap { margin-bottom: 32px; }
#mgj-map { width: 100%; height: 450px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
@media (max-width: 768px) {
    #mgj-map { height: 300px; }
}

/* Jobs Page - Card Grid */
.mgj-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 640px) {
    .mgj-jobs-grid { grid-template-columns: 1fr; }
}

.mgj-job-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.mgj-job-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.mgj-job-card a, .mgj-job-card a:hover, .mgj-job-card a:visited,
.ast-single-post .entry-content .mgj-job-card a { text-decoration: none; color: inherit; display: block; }
.mgj-job-card-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mgj-job-card-body { padding: 16px; }
.mgj-job-card-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: #1d2327; }
.mgj-job-card-address { margin: 0 0 8px; color: #646970; font-size: 14px; }
.mgj-job-card-excerpt { margin: 0; color: #50575e; font-size: 14px; line-height: 1.5; }
.mgj-job-card-link { display: inline-block; margin-top: 12px; color: #2271b1; font-size: 14px; font-weight: 500; }

/* Jobs Page - Load More Sentinel */
.mgj-load-more-sentinel { display: flex; justify-content: center; padding: 32px 0; }
.mgj-spinner { display: none; width: 32px; height: 32px; border: 3px solid #e2e4e7; border-top-color: #2271b1; border-radius: 50%; animation: mgj-spin 0.7s linear infinite; }
.mgj-load-more-sentinel.loading .mgj-spinner { display: block; }
@keyframes mgj-spin { to { transform: rotate(360deg); } }

/* Single Job - Photo Gallery */
.mgj-gallery { margin: 32px 0; }
.mgj-gallery h2 { font-size: 22px; margin-bottom: 16px; }
.mgj-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
@media (max-width: 640px) {
    .mgj-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.mgj-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; transition: opacity 0.2s; }
.mgj-gallery-item img:hover { opacity: 0.85; }

/* Single Job - Lightbox */
.mgj-lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 999999; align-items: center; justify-content: center; flex-direction: column; }
.mgj-lightbox.active { display: flex; }
.mgj-lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; text-align: center; }
.mgj-lightbox-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; line-height: 1; padding: 4px 8px; z-index: 2; }
.mgj-lightbox-close:hover { color: #ccc; }
.mgj-lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.mgj-lightbox-caption { color: #ccc; margin-top: 12px; font-size: 14px; text-align: center; }

.mgj-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 28px; cursor: pointer; padding: 12px 16px; border-radius: 4px; line-height: 1; }
.mgj-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.mgj-lightbox-prev { left: -60px; }
.mgj-lightbox-next { right: -60px; }

@media (max-width: 768px) {
    .mgj-lightbox-prev { left: 8px; }
    .mgj-lightbox-next { right: 8px; }
    .mgj-lightbox-nav { padding: 8px 12px; font-size: 22px; }
}

/* Single Job - Linked Reviews */
.mgj-reviews-section { margin: 32px 0; padding-top: 24px; border-top: 1px solid #e2e4e7; }
.mgj-reviews-section h2 { font-size: 22px; margin-bottom: 16px; }

/* Single Job - CTA */
.mgj-cta { margin: 40px 0; padding: 32px; background: linear-gradient(135deg, #1e3a5f, #2c5282); color: #fff; border-radius: 8px; text-align: center; }
.mgj-cta h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.mgj-cta p { margin: 0 0 16px; opacity: 0.9; font-size: 16px; }
.mgj-cta a { display: inline-block; background: #fff; color: #1e3a5f; padding: 12px 32px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.2s; }
.mgj-cta a:hover { transform: scale(1.05); }

/* Review project link in review cards */
.mgr-review-project { margin-top: 8px; }
.mgr-review-project a { color: #2271b1; font-size: 13px; text-decoration: none; }
.mgr-review-project a:hover { text-decoration: underline; }
