/* =========================================================
   PROHIRE HUB — Professional hiring marketplace
   Namespace: .prohire-*
   ========================================================= */

/* Overlay + containers */
.prohire-modal,
.prohire-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(11, 26, 46, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.prohire-modal[hidden],
.prohire-booking-modal[hidden] { display: none; }

.prohire-container {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(11, 26, 46, 0.7);
}

/* Header */
.prohire-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(120deg, #0b1a2e, #132b4a);
  color: #fff;
  flex-shrink: 0;
}
.prohire-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}
.prohire-header-title i { color: #6ea8ff; font-size: 1.3rem; }
.prohire-badge {
  background: #1e6bff;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Banner */
.prohire-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(120deg, #eff6ff, #f8fafc);
  border-bottom: 1px solid #e9edf2;
  flex-shrink: 0;
}
.prohire-banner-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e0ecff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prohire-banner-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0b1a2e;
}
.prohire-banner-text p {
  font-size: 0.82rem;
  color: #5e6f88;
  line-height: 1.5;
}

/* Controls */
.prohire-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e9edf2;
  align-items: center;
  flex-shrink: 0;
}
.prohire-search-box {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}
.prohire-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8fa0b8;
  font-size: 0.85rem;
  pointer-events: none;
}
.prohire-search-box input {
  width: 100%;
  border: 1.5px solid #e0e8f2;
  border-radius: 40px;
  padding: 10px 16px 10px 38px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #0b1a2e;
}
.prohire-search-box input:focus { border-color: #1e6bff; }

.prohire-select {
  border: 1.5px solid #e0e8f2;
  border-radius: 40px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  color: #0b1a2e;
  background: #fff;
  cursor: pointer;
  outline: none;
  min-width: 130px;
}
.prohire-select:focus { border-color: #1e6bff; }

.prohire-loc-btn {
  background: #e3f5e9;
  border: 1.5px solid #b8e6cb;
  color: #0e7b3e;
  padding: 10px 16px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}
.prohire-loc-btn:hover { background: #d0efdb; }
.prohire-loc-btn.loading { background: #f2f7ff; color: #1e6bff; border-color: #b8d0ff; pointer-events: none; }
.prohire-loc-btn.detected { background: #1e6bff; border-color: #1e6bff; color: #fff; }
.prohire-loc-btn.detected i { color: #fff; }

.prohire-currency {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1e6bff;
  background: #e9f0ff;
  border: 1.5px solid #c7dbff;
  padding: 6px 12px;
  border-radius: 40px;
  white-space: nowrap;
  line-height: 1;
}

.prohire-count {
  font-size: 0.82rem;
  color: #5e6f88;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}
.prohire-count strong { color: #1e6bff; }

/* Category chips */
.prohire-cat-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #e9edf2;
  scrollbar-width: thin;
  flex-shrink: 0;
}
.prohire-cat-bar::-webkit-scrollbar { height: 4px; }
.prohire-cat-bar::-webkit-scrollbar-thumb { background: #c7dbff; border-radius: 4px; }
.prohire-cat-chip {
  background: #f2f7ff;
  border: 1px solid transparent;
  color: #1e2b3c;
  padding: 7px 14px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.prohire-cat-chip:hover { background: #e6f0ff; color: #1e6bff; }
.prohire-cat-chip.active { background: #1e6bff; color: #fff; border-color: #1e6bff; }

/* Content — the scrollable region.
   The vehicles section now lives INSIDE this element. */
.prohire-content {
  padding: 20px 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 220px;
  scroll-behavior: smooth;
  background: #fff;
}

/* Pros grid */
.prohire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.prohire-card {
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.prohire-card:hover {
  border-color: #b8d0ff;
  box-shadow: 0 14px 26px -14px rgba(30, 107, 255, 0.28);
  transform: translateY(-3px);
}

.prohire-card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.prohire-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e9f0ff;
  color: #1e6bff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.prohire-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #0b1a2e;
  line-height: 1.3;
}
.prohire-card-spec {
  font-size: 0.74rem;
  color: #5e6f88;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}
.prohire-card-spec i { color: #1e6bff; font-size: 0.68rem; flex-shrink: 0; }

.prohire-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #2b3a4e;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.prohire-card-rating i { color: #f5b342; font-size: 0.76rem; }
.prohire-card-rating .reviews { color: #7c8ba0; margin-left: 3px; }
.prohire-dist {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  color: #0e7b3e;
  background: #e3f5e9;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.prohire-quals {
  border-top: 1px dashed #eef2f8;
  padding-top: 10px;
  margin-bottom: 12px;
}
.prohire-quals-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0e7b3e;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.prohire-qual-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.prohire-qual {
  font-size: 0.62rem;
  font-weight: 600;
  background: #e3f5e9;
  color: #0e7b3e;
  border: 1px solid #b8e6cb;
  padding: 2px 7px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.5;
}
.prohire-qual i { font-size: 0.55rem; }
.prohire-qual-more { background: #f2f7ff; color: #5e6f88; border-color: #e0e8f2; }

.prohire-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  gap: 8px;
}
.prohire-price { font-weight: 700; font-size: 0.98rem; color: #0b1a2e; }
.prohire-price small { font-size: 0.68rem; font-weight: 400; color: #7c8ba0; }

.prohire-hire-btn {
  background: #1e6bff;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.prohire-hire-btn:hover { background: #0f56e0; transform: scale(1.03); }

.prohire-empty {
  text-align: center;
  padding: 48px 20px;
  color: #7c8ba0;
}
.prohire-empty i { font-size: 2.5rem; color: #d4e2ff; margin-bottom: 12px; display: block; }
.prohire-empty p { font-size: 0.9rem; }

/* ===== VEHICLES FOR HIRE — now an in-flow block inside .prohire-content ===== */
.prohire-vehicles-section {
  margin-top: 28px;
  padding: 20px 0 4px;
  border-top: 1px dashed #e9edf2;
  scroll-margin-top: 8px;
}
.prohire-vehicles-header { margin-bottom: 14px; }
.prohire-vehicles-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1a2e;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prohire-vehicles-header p { font-size: 0.8rem; color: #5e6f88; }

.prohire-occasion-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.prohire-occasion-chip {
  background: #fff;
  border: 1.5px solid #e0e8f2;
  color: #1e2b3c;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}
.prohire-occasion-chip:hover { border-color: #1e6bff; color: #1e6bff; }
.prohire-occasion-chip.active { background: #1e6bff; border-color: #1e6bff; color: #fff; }

.prohire-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.prohire-vehicle-card {
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.prohire-vehicle-card:hover {
  border-color: #b8d0ff;
  box-shadow: 0 14px 26px -14px rgba(30, 107, 255, 0.28);
  transform: translateY(-3px);
}
.prohire-vehicle-hero {
  height: 80px;
  background: linear-gradient(135deg, #1e6bff, #6ea8ff);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.prohire-vehicle-cap {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1a2e;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.prohire-vehicle-cap i { color: #1e6bff; font-size: 0.6rem; }

.prohire-vehicle-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prohire-vehicle-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b1a2e;
  margin-bottom: 3px;
  line-height: 1.3;
}
.prohire-vehicle-loc {
  font-size: 0.7rem;
  color: #5e6f88;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.prohire-vehicle-loc i { color: #1e6bff; font-size: 0.62rem; }

.prohire-vehicle-occs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.prohire-occ-badge {
  background: #e9f0ff;
  color: #1e6bff;
  border: 1px solid #c7dbff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 14px;
}
.prohire-vehicle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #eef2f8;
  gap: 6px;
}
.prohire-vehicle-price { font-weight: 700; font-size: 0.9rem; color: #0b1a2e; }
.prohire-vehicle-price small { font-size: 0.65rem; font-weight: 400; color: #7c8ba0; }

/* Footer */
.prohire-footer {
  padding: 12px 24px;
  background: #f8fafc;
  border-top: 1px solid #e9edf2;
  font-size: 0.75rem;
  color: #5e6f88;
  text-align: center;
  flex-shrink: 0;
}
.prohire-footer i { color: #1e6bff; }

/* Booking modal */
.prohire-booking-container {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(11, 26, 46, 0.7);
}
.prohire-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: linear-gradient(120deg, #0b1a2e, #132b4a);
  color: #fff;
}
.prohire-booking-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
}
.prohire-booking-title i { color: #6ea8ff; font-size: 1.1rem; }

.prohire-booking-body { padding: 20px 22px; }
.prohire-booking-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #eef2f8;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #5e6f88;
  margin-bottom: 14px;
}
.prohire-booking-rate strong { color: #0b1a2e; font-size: 0.95rem; }

.prohire-booking-quals {
  background: #f8fbff;
  border: 1px solid #e6f0ff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: none;
}
.prohire-booking-quals.show { display: block; }
.prohire-booking-quals-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0e7b3e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.prohire-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #3e4c5f;
  margin-bottom: 6px;
  margin-top: 12px;
}
.prohire-select-full,
.prohire-booking-body textarea {
  width: 100%;
  border: 1.5px solid #e0e8f2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  color: #0b1a2e;
  background: #fff;
}
.prohire-select-full:focus,
.prohire-booking-body textarea:focus { border-color: #1e6bff; }

.prohire-booking-status {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  margin-top: 12px;
  background: #e3f5e9;
  color: #0e7b3e;
  font-weight: 500;
}
.prohire-booking-status.error { background: #fee2e2; color: #b91c1c; }

.prohire-booking-actions {
  padding: 14px 22px;
  border-top: 1px solid #eef2f8;
  display: flex;
  gap: 10px;
  background: #fff;
}
.prohire-btn {
  flex: 1;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  border: none;
  transition: all 0.2s;
}
.prohire-btn-primary { background: #1e6bff; color: #fff; }
.prohire-btn-primary:hover { background: #0f56e0; }
.prohire-btn-ghost {
  background: #f2f7ff;
  color: #1e2b3c;
  border: 1.5px solid #e0e8f2;
}
.prohire-btn-ghost:hover { border-color: #1e6bff; color: #1e6bff; }

/* Highlight flash when jumping to Vehicles for Hire */
.prohire-vehicles-flash {
  animation: prohire-flash 1.4s ease;
}
@keyframes prohire-flash {
  0%   { background-color: #dbeafe; }
  50%  { background-color: #eff6ff; }
  100% { background-color: transparent; }
}

/* Responsive */
@media (max-width: 768px) {
  .prohire-modal,
  .prohire-booking-modal { padding: 0; }
  .prohire-container {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    max-width: 100vw;
  }
  .prohire-controls { flex-direction: column; align-items: stretch; }
  .prohire-search-box { min-width: 100%; }
  .prohire-select { min-width: 100%; }
  .prohire-loc-btn { width: 100%; justify-content: center; }
  .prohire-count { margin-left: 0; text-align: center; }
  .prohire-banner { flex-direction: column; text-align: center; }
  .prohire-vehicles-header h3 { justify-content: center; }
  .prohire-content { padding: 16px; }
  .prohire-grid,
  .prohire-vehicles-grid {
    grid-template-columns: 1fr;
  }
}