/* ============================================
   Heine Propane — Jobs Pages Stylesheet
   Shared by jobs/index.html and jobs/job.html
   ============================================ */

/* ── Listing page: filter bar ── */
.jobs-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--gray-mid);
  padding: .85rem 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}
.jobs-filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.jobs-filter-inner select {
  appearance: none;
  background: var(--gray-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6477' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  color: var(--dark);
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem 2rem .45rem .75rem;
  transition: border-color .2s;
}
.jobs-filter-inner select:focus { border-color: var(--red); outline: none; }
.jobs-count {
  margin-left: auto;
  font-size: .82rem;
  color: var(--gray-text);
}

/* ── Listing page: card grid ── */
.jobs-section { padding: 2.5rem 0 4rem; }
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.job-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  transform: translateY(-3px);
}
.job-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eaed;
  position: relative;
}
.job-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.job-card:hover .job-card-thumb img { transform: scale(1.04); }
.job-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: #bfc4cc;
}
.job-svc-badge {
  position: absolute;
  top: 10px; left: 10px;
  border-radius: 20px;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px;
  text-transform: uppercase;
}
.job-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.job-card-location {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.job-card-location svg {
  width: 13px; height: 13px;
  fill: var(--red);
  flex-shrink: 0;
}
.job-card-date {
  font-size: .8rem;
  color: var(--gray-text);
}

/* ── Listing page: empty / loading states ── */
.jobs-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: var(--gray-text);
}
.jobs-state-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ── Single job page: hero ── */
.job-hero {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  color: #fff;
  padding: calc(70px + 3rem) 0 2.5rem;
}
.job-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.job-hero-back {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.job-hero-back:hover { color: rgba(255,255,255,.9); }
.job-hero-sep { color: rgba(255,255,255,.25); font-size: .75rem; }
.job-svc-badge-hero {
  display: inline-block;
  border-radius: 20px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 14px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.job-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.job-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
}

/* ── Single job page: content layout ── */
.job-content { padding: 3rem 0 4rem; }
.job-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* ── Single job page: gallery ── */
.job-gallery { margin-bottom: 2.5rem; }
.job-gallery-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-text);
  margin-bottom: 12px;
}
.job-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.job-gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: var(--gray-mid);
}
.job-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.job-gallery-item:hover img { transform: scale(1.05); }
.job-gallery-empty {
  background: var(--gray-bg);
  border-radius: 6px;
  color: var(--gray-text);
  font-size: .9rem;
  padding: 3rem;
  text-align: center;
}

/* ── Single job page: technician notes ── */
.job-notes {
  background: var(--gray-bg);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
}
.job-notes-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: .65rem;
}
.job-notes-text {
  font-size: .95rem;
  color: var(--gray-text);
  line-height: 1.75;
  white-space: pre-line;
}

/* ── Single job page: sidebar details card ── */
.job-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.job-detail-card-header {
  background: var(--dark);
  color: var(--white);
  padding: 1rem 1.25rem;
}
.job-detail-card-header h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}
.job-detail-list {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.job-detail-row { }
.job-detail-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-text);
  margin-bottom: 2px;
}
.job-detail-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
}
.job-detail-divider {
  border: none;
  border-top: 1px solid var(--gray-mid);
  margin: 0 -1.25rem;
}
.job-detail-cta {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-detail-cta .btn {
  text-align: center;
  width: 100%;
}

/* ── Single job page: CTA band ── */
.job-cta-band {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.job-cta-band .section-label { color: var(--red); }
.job-cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.job-cta-band p {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.job-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Single job page: not-found state ── */
.job-error-screen {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.job-error-inner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem; color: var(--dark); }
.job-error-inner p  { color: var(--gray-text); margin-bottom: 2rem; }

/* ── Single job page: lightbox ── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
#lb-overlay.open { display: flex; }
#lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}
#lb-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
#lb-close:hover { color: #fff; }
#lb-prev, #lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 4px;
  line-height: 1;
  transition: background .2s;
}
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,.2); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }

/* ── Responsive ── */
/* ── Public jobs map ── */
.jobs-map-section {
  background: #f5f5f5;
  border-bottom: 1px solid var(--gray-mid);
  padding: 0;
}
.jobs-map-wrap {
  position: relative;
}
#jobs-map {
  width: 100%;
  height: 360px;
}
.jobs-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
}
.jobs-map-toggle-btn {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: background .2s, color .2s;
}
.jobs-map-toggle-btn:hover { background: #C8232B; color: #fff; border-color: #C8232B; }

@media (max-width: 860px) {
  .job-layout { grid-template-columns: 1fr; }
  .job-detail-card { position: static; }
}
@media (max-width: 560px) {
  #jobs-map { height: 240px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .jobs-count { width: 100%; margin-left: 0; }
  .job-gallery-grid { grid-template-columns: 1fr 1fr; }
}
