/* ===================== ClearWay Jobs marketplace ===================== */

.mkt-view { min-height: 60vh; }
.mkt-narrow { max-width: 640px; }
.mkt-section { padding: 56px 0; }
.mkt-cta-section { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .mkt-cta-section { grid-template-columns: 1fr; } }

/* header tweaks specific to the minimal marketplace nav */
.mkt-login-btn { padding: 10px 16px; min-height: 0; font-size: 13.5px; }

/* hero */
.mkt-hero {
  position: relative;
  padding: 70px 0 54px;
  background:
    radial-gradient(ellipse 90% 60% at 30% -10%, rgba(179,0,0,.16), transparent 60%),
    linear-gradient(180deg, #0a0a0a, #0d0d0d);
  border-bottom: 1px solid var(--line);
}
.mkt-hero h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(34px,6vw,58px); line-height: 1.05; margin: 14px 0 16px; }
.mkt-hero h1 .l2 { display: block; color: var(--red); }
.mkt-hero p { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 26px; }
.mkt-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.mkt-emergency-btn { border-color: #ff6b6b; color: #ffb0ac; }
.mkt-emergency-btn:hover { background: rgba(255,107,107,.08); }

.mkt-launch-banner {
  margin-top: 30px; padding: 14px 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
}
.mkt-launch-banner b { color: var(--red); font-size: 14px; }
.mkt-launch-banner span { color: var(--muted); font-size: 12.5px; }

/* how it works steps */
.mkt-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 760px) { .mkt-steps { grid-template-columns: 1fr 1fr; } }
.mkt-step { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.mkt-step .n { font-family: var(--disp); font-weight: 800; font-size: 26px; color: var(--red); display: block; margin-bottom: 6px; }
.mkt-step b { display: block; font-size: 15px; margin-bottom: 4px; }
.mkt-step span { color: var(--muted); font-size: 13px; }

/* pricing cards */
.mkt-cta-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.mkt-cta-card h2 { font-family: var(--disp); font-weight: 800; font-size: 34px; margin: 8px 0 0; }
.mkt-cta-card h2 span { font-size: 15px; color: var(--muted); font-weight: 500; }
.mkt-trial { color: var(--red); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.6px; margin: 4px 0 12px; }
.mkt-cta-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

.mkt-footer { border-top: 1px solid var(--line); padding: 26px 0 100px; }
.mkt-foot-tag { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.mkt-foot-tag b { color: var(--red); }
.mkt-foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.mkt-foot-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.mkt-foot-links a:hover { color: var(--txt); }

/* shared panel header for sub-pages */
.mkt-panel-head { padding: 34px 0 6px; }
.mkt-panel-head h2 { font-family: var(--disp); font-weight: 800; font-size: 28px; margin: 6px 0 4px; }
.mkt-back { background: none; border: none; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 6px 0 14px; }
.mkt-back:hover { color: var(--txt); }

.mkt-card { margin-bottom: 60px; }

/* type selector on booking form */
.mkt-type-grid { grid-template-columns: 1fr 1fr; }
.mkt-type-opt { padding: 20px 14px; font-size: 15px; }

/* job live / offers */
.mkt-live-banner {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35);
  color: #4ade80; font-weight: 700; font-size: 13px; letter-spacing: 0.4px;
  padding: 10px 16px; border-radius: 30px; margin-bottom: 20px;
}
.mkt-live-banner .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: mktPulse 1.6s infinite; }
.mkt-live-emergency { background: rgba(179,0,0,.12); border-color: rgba(179,0,0,.4); color: #ff8080; }
.mkt-live-emergency .dot { background: #ff4444; }
@keyframes mktPulse { 50% { opacity: .3; } }

.mkt-offers-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 16px; flex-wrap: wrap; }
.mkt-offers-head h2 { font-family: var(--disp); font-weight: 800; font-size: 22px; }
.mkt-countdown { background: var(--panel); border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--red); }

.mkt-offers-list { display: grid; gap: 12px; margin-bottom: 50px; }
.mkt-offer-card {
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
}
@media (max-width: 560px) { .mkt-offer-card { grid-template-columns: 1fr; text-align: left; } }
.mkt-offer-price { font-family: var(--disp); font-weight: 800; font-size: 30px; color: var(--red); }
.mkt-offer-info b { display: block; font-size: 15px; }
.mkt-offer-info .stars { color: #ffb547; font-size: 13px; margin: 4px 0 2px; }
.mkt-offer-info .jobs-count { color: var(--muted2); font-size: 12.5px; }
.mkt-offer-msg { color: var(--muted); font-size: 13px; margin-top: 8px; font-style: italic; }
.mkt-offer-actions { display: flex; flex-direction: column; gap: 8px; }
.mkt-offer-actions .btn { white-space: nowrap; padding: 10px 18px; font-size: 13.5px; min-height: 0; }
.mkt-empty { text-align: center; color: var(--muted2); padding: 40px 20px; font-size: 14px; }

/* transporter board */
.mkt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 22px; overflow-x: auto; padding-bottom: 2px; }
.mkt-tab {
  background: var(--panel); border: 1.5px solid var(--line); color: var(--muted);
  font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 30px; cursor: pointer; white-space: nowrap;
}
.mkt-tab.on { border-color: var(--red); background: rgba(179,0,0,.1); color: var(--txt); }
.mkt-job-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; margin-bottom: 60px; }
.mkt-job-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; }
.mkt-job-card.emergency { border-color: rgba(179,0,0,.5); background: rgba(179,0,0,.05); }
.mkt-job-id { font-size: 11px; color: var(--muted2); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 6px; }
.mkt-job-card b.veh { font-size: 16px; display: block; margin-bottom: 8px; }
.mkt-job-route { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.mkt-job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.mkt-job-tag { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 11.5px; color: var(--muted); }
.mkt-job-tag.emg { border-color: rgba(179,0,0,.5); color: #ff8080; }
.mkt-job-deadline { font-size: 12px; color: var(--red); font-weight: 700; margin-bottom: 12px; }

/* drawer system (offer / login) */
.drawer-bg {
  position: fixed; inset: 0; background: rgba(5,5,8,.7); backdrop-filter: blur(4px);
  z-index: 90; opacity: 0; pointer-events: none; transition: .25s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px,100%);
  background: var(--panel); z-index: 95; border-left: 1px solid var(--line);
  padding: 28px 26px; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.3,1); overflow: auto;
}
body.drawer-open #offerDrawer, body.login-open #loginDrawer { transform: none; }
body.drawer-open #offerDrawerBg, body.login-open #loginDrawerBg { opacity: 1; pointer-events: auto; }
.drawer h3 { font-family: var(--disp); font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.drawer .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.drawer label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted2); margin: 14px 0 7px; }
.drawer input, .drawer textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--line2); border-radius: 12px;
  color: var(--txt); font-family: var(--body); font-size: 15px; padding: 13px 15px; min-height: 50px;
}
.drawer input:focus, .drawer textarea:focus { outline: none; border-color: var(--red); }
.drawer textarea { min-height: 84px; resize: vertical; }
.drawer .x {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 18px; cursor: pointer;
}
.drawer .send { margin-top: 18px; width: 100%; }
.drawer .note { color: var(--muted2); font-size: 12px; margin-top: 12px; }

/* toast */
.mkt-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #141414; border: 1px solid var(--line); color: var(--txt);
  padding: 13px 22px; border-radius: 30px; font-size: 13.5px; font-weight: 600;
  z-index: 200; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.mkt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mkt-toast b { color: var(--red); }
