/* LeadForge — local job lead exchange */

:root {
  --ink: #1a2228;
  --ink-soft: #4a5560;
  --ink-faint: #6b7884;
  --paper: #f2f5f7;
  --paper-deep: #e4eaee;
  --brand: #0c4a4e;
  --brand-mid: #146a6f;
  --accent: #1a7a72;
  --accent-hover: #14635c;
  --accent-soft: rgba(26, 122, 114, 0.12);
  --line: rgba(26, 34, 40, 0.12);
  --danger: #8b3a3a;
  --success: #1f5c3a;
  --success-bg: #e8f3ec;
  --warn-bg: #f5efe6;
  --warn: #6b5420;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 10px 28px rgba(26, 34, 40, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 720px;
  --max-wide: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(20, 106, 111, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(90, 120, 100, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(180, 160, 120, 0.08), transparent 55%),
    linear-gradient(165deg, #eef3f5 0%, #e8edf0 45%, #e4eae6 100%);
  background-attachment: fixed;
}

/* subtle grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(26, 34, 40, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 34, 40, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

a {
  color: var(--brand-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
}

/* ——— Layout ——— */

.site-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(242, 245, 247, 0.72);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
}

.brand-mark:hover {
  color: var(--brand-mid);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--brand);
  text-decoration: none;
}

.nav-link--btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
}

.nav-link--btn:hover {
  background: var(--accent-soft);
  color: var(--brand);
}

.nav-logout {
  display: inline;
  margin: 0;
}

.btn--nav {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-faint);
  background: rgba(242, 245, 247, 0.55);
}

.site-footer p {
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.site-footer__links {
  margin-top: 0.55rem !important;
}

.site-footer__links a {
  color: var(--ink-faint);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--brand-mid);
  text-decoration: underline;
}

.site-footer__sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.site-footer__year {
  margin-top: 0.45rem !important;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ——— Legal pages ——— */

.legal-page {
  max-width: var(--max);
}

.legal-body h2 {
  margin: 1.5rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
}

.legal-body p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ——— Motion ——— */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade {
  animation: fade-up 0.55s ease both;
}

.anim-fade-delay {
  animation: fade-up 0.55s ease 0.12s both;
}

.anim-fade-delay-2 {
  animation: fade-up 0.55s ease 0.22s both;
}

@media (prefers-reduced-motion: reduce) {
  .anim-fade,
  .anim-fade-delay,
  .anim-fade-delay-2 {
    animation: none;
  }

  .btn,
  .job-row {
    transition: none;
  }
}

/* ——— Flash ——— */

.flashes {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.flash {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.flash--success {
  background: var(--success-bg);
  border-color: rgba(31, 92, 58, 0.25);
  color: var(--success);
}

.flash--error,
.flash--danger {
  background: #f8ecec;
  border-color: rgba(139, 58, 58, 0.25);
  color: var(--danger);
}

.flash--warning {
  background: var(--warn-bg);
  border-color: rgba(107, 84, 32, 0.25);
  color: var(--warn);
}

/* ——— Hero (home) ——— */

.hero {
  text-align: center;
  padding: 2.25rem 0 2.75rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--brand);
}

.hero__lede {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero__area {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-mid);
  letter-spacing: 0.01em;
}

.hero__cta {
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ——— Sections ——— */

.section {
  margin-top: 2.5rem;
}

.section__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section__sub {
  margin: 0 0 1.35rem;
  color: var(--ink-faint);
  font-size: 0.98rem;
}

.page-head {
  margin-bottom: 1.75rem;
}

.page-head__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--brand);
}

.page-head__meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ——— Forms ——— */

.form-panel {
  max-width: var(--max);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(26, 122, 114, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field__hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.field__readonly,
.field input:disabled {
  opacity: 0.75;
  background: var(--paper-deep);
  cursor: not-allowed;
}

.field--check {
  gap: 0;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 122, 114, 0.28);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 122, 114, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
}

.btn--block {
  width: 100%;
}

.form-actions {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-actions--center {
  justify-content: center;
}

@media (max-width: 559px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .btn--block-sm {
    width: 100%;
  }

  .job-row .btn {
    width: 100%;
  }
}

/* ——— Trade filter ——— */

.trade-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
}

.trade-filter__link {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.trade-filter__link:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.trade-filter__link--active {
  color: var(--brand);
  background: var(--accent-soft);
  border-color: transparent;
}

.next-steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.next-steps li {
  margin-bottom: 0.35rem;
}

.next-steps li:last-child {
  margin-bottom: 0;
}

.next-steps strong {
  color: var(--ink);
}

/* ——— Job list (interactive rows = card-like) ——— */

.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 34, 40, 0.1);
}

.job-row__body {
  flex: 1;
  min-width: 0;
}

.job-row__trade {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.job-row__desc {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.job-row__meta {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.empty-state {
  margin: 0;
  padding: 1.75rem 1.25rem;
  color: var(--ink-faint);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state--compact {
  padding: 1.15rem 1rem;
  text-align: left;
}

.empty-state__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.empty-state__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-faint);
  line-height: 1.45;
}

.unlock-note {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.7rem;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(31, 92, 58, 0.18);
  border-radius: var(--radius-sm);
}

/* ——— Job detail ——— */

.detail-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: var(--max);
}

.detail-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
}

.detail-block p {
  margin: 0 0 0.5rem;
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.trade-pill {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--accent-soft);
  border-radius: 999px;
}

.contact-reveal {
  padding: 1.15rem 1.25rem;
  background: var(--success-bg);
  border: 1px solid rgba(31, 92, 58, 0.22);
  border-radius: var(--radius);
}

.contact-reveal dt {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
}

.contact-reveal dd {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.contact-reveal dd:last-child {
  margin-bottom: 0;
}

.contact-masked {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.contact-masked p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.masked-line {
  font-family: ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.unlock-cta {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.unlock-cta p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.bids-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bid-item {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.bid-item__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.bid-item__amount {
  color: var(--accent);
}

.bid-item__msg {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ——— Status pages ——— */

.status-panel {
  max-width: 28rem;
  margin: 2rem auto 0;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.status-panel h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 650;
  color: var(--brand);
}

.status-panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.status-panel--success h1 {
  color: var(--success);
}

.status-panel .contact-reveal {
  text-align: left;
  margin-bottom: 1.25rem;
}

/* ——— Auth & dashboard ——— */

.auth-panel {
  margin: 0 auto;
}

.auth-switch {
  margin: 1.5rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.dashboard {
  max-width: var(--max);
}

.dashboard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.dashboard__email {
  color: var(--ink-soft);
  font-size: 1rem;
}

.dashboard__cta {
  margin: 0 0 0.5rem;
}

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.dash-row__body {
  flex: 1;
  min-width: 0;
}

.dash-row__trade {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.dash-row__amount {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

.dash-row__desc {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 559px) {
  .dash-row .btn {
    width: 100%;
  }
}

/* ——— Status badges / admin / manage ——— */

.status-badge {
  display: inline-block;
  margin: 0 0 0.75rem 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
  color: var(--ink-soft);
  background: rgba(26, 34, 40, 0.08);
}

.status-badge--open {
  color: var(--brand);
  background: var(--accent-soft);
}

.status-badge--claimed {
  color: var(--warn);
  background: var(--warn-bg);
}

.status-badge--closed {
  color: var(--ink-faint);
  background: var(--paper-deep);
}

.page-head .trade-pill + .status-badge {
  margin-left: 0.25rem;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.btn--small {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.admin-jobs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-job {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.admin-job:first-child {
  border-top: none;
  padding-top: 0;
}

.admin-job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-weight: 600;
}

.admin-job__head .status-badge {
  margin: 0;
}

.admin-job__meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.admin-job__desc {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.admin-job__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.bid-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

.bid-contact dt {
  margin: 0;
  font-weight: 700;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bid-contact dd {
  margin: 0;
}

/* ——— Service area map ——— */

.service-area-note {
  margin: -0.5rem 0 1.15rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  color: var(--brand-mid);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.map-page {
  width: 100%;
}

.map-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .map-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(14rem, 1fr);
    align-items: start;
  }
}

.map-panel {
  min-width: 0;
}

.map-frame {
  position: relative;
  min-width: 0;
}

.lf-map {
  width: 100%;
  min-height: 420px;
  height: clamp(420px, 55vh, 640px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
  z-index: 0;
}

.map-legend {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(242, 245, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(26, 34, 40, 0.08);
  pointer-events: none;
}

.map-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: rgba(26, 122, 114, 0.35);
  border: 2px solid var(--brand-mid);
  flex-shrink: 0;
}

.map-status {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
  min-height: 1.25em;
}

.map-sidebar {
  min-width: 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-sidebar__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.map-job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(28rem, 60vh);
  overflow: auto;
}

.map-job-list__empty {
  margin: 0;
  padding: 0.75rem 0.25rem;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.map-job-list__item {
  margin: 0;
}

.map-job-list__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.map-job-list__link:hover {
  background: var(--accent-soft);
  text-decoration: none;
  color: inherit;
}

.map-job-list__trade {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.95rem;
}

.map-job-list__city {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.map-job-list__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.map-popup__trade {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  color: var(--brand);
}

.map-popup__city {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.map-popup__desc {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.map-popup__link {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.leaflet-container {
  font-family: var(--font-body);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Support chat (floating help) —— */
.lf-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  font-family: var(--font-body);
  pointer-events: none;
}

.lf-chat__toggle,
.lf-chat__panel,
.lf-chat__form,
.lf-chat__close,
.lf-chat__send {
  pointer-events: auto;
}

.lf-chat__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(20, 99, 92, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lf-chat__toggle:hover {
  background: var(--accent-hover);
}

.lf-chat__toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.lf-chat--open .lf-chat__toggle {
  transform: scale(0.96);
}

.lf-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  display: flex;
  flex-direction: column;
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: min(28rem, calc(100vh - 6rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.lf-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: var(--brand);
  color: #f4f8f8;
}

.lf-chat__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.lf-chat__close {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.lf-chat__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lf-chat__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, #f7fafb 0%, #fff 40%);
  min-height: 10rem;
}

.lf-chat__msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.lf-chat__msg--bot {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--ink);
}

.lf-chat__msg--user {
  align-self: flex-end;
  background: var(--brand-mid);
  color: #fff;
}

.lf-chat__msg--pending {
  opacity: 0.75;
  font-style: italic;
}

.lf-chat__form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.lf-chat__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
}

.lf-chat__input:focus {
  outline: 2px solid rgba(26, 122, 114, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.lf-chat__send {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.lf-chat__send:hover {
  background: var(--accent-hover);
}

.lf-chat__input:disabled,
.lf-chat__send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .lf-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .lf-chat__panel {
    width: calc(100vw - 1.5rem);
    max-height: min(70vh, 28rem);
  }
}

