/* نقشه: انتخاب موقعیت در فرم، نقشه‌ی کوچک آگهی و صفحه‌ی «نقشه‌ی آگهی‌ها». رنگ دسته‌ها همان رنگ آیکن آگهی‌هاست. */
.leaflet-container { font-family: inherit; direction: ltr; background: #e8ecf4; }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 10px 30px rgb(10 20 50 / 28%); }
.leaflet-popup-content { margin: 12px 14px; direction: rtl; font-family: inherit; }
.leaflet-control-attribution { font-size: 10px; }
.g-dental { --mk: #19b5a5; } .g-medical { --mk: #ff6f59; } .g-admin { --mk: #6a7bff; } .g-market { --mk: #f0b429; } .g-all { --mk: var(--primary, #16306f); }

/* نشانگرها */
.dj-mk i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--mk); border: 3px solid #fff; box-shadow: 0 2px 7px rgb(0 0 0 / 38%); transition: transform 140ms; }
.dj-mk:hover i, .dj-mk:focus i { transform: scale(1.25); }
.dj-mk.is-urgent i { box-shadow: 0 0 0 5px rgb(255 111 89 / 38%), 0 2px 7px rgb(0 0 0 / 38%); }
.dj-mk.is-city i { opacity: .78; border-style: dashed; border-color: rgb(255 255 255 / 90%); }
.dj-cl { background: transparent !important; }
.dj-cl b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary, #16306f); color: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px rgb(0 0 0 / 35%); font: 800 .95rem/1 var(--font-body); }
.dj-pin i { display: block; width: 30px; height: 30px; margin: 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ff6f59; border: 3px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 40%); position: relative; }
.dj-pin i::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }

/* انتخاب موقعیت در فرم */
.loc-pick { margin-block: 14px; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-box); background: var(--surface); }
.loc-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .loc-head > div { flex: 1; min-width: 200px; } .loc-head p { margin: 2px 0 0; }
.loc-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--turq-soft); color: var(--turq-ink); } .loc-ic .ic { width: 24px; height: 24px; }
.loc-status { margin: 8px 0 0; color: var(--muted); font-weight: 700; } .loc-status.is-set { color: var(--turq-ink); }
.loc-body { margin-top: 12px; display: grid; gap: 10px; }
.loc-map { height: 320px; border-radius: 14px; overflow: hidden; background: #e8ecf4; display: grid; place-items: center; color: var(--muted); }
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* نقشه‌ی کوچک صفحه‌ی آگهی */
.job-map h2 { display: flex; gap: 8px; align-items: center; font-size: 1.02rem; margin: 0 0 10px; }
.jm-map { height: 220px; border-radius: 14px; overflow: hidden; background: #e8ecf4; cursor: pointer; }
.jm-actions { display: grid; gap: 8px; margin-top: 10px; } .jm-actions .btn { width: 100%; justify-content: center; }

/* صفحه‌ی نقشه */
.has-map .site-footer { display: none; } .has-map main { padding: 0; }
.mp { position: relative; height: calc(100dvh - 64px); min-height: 520px; overflow: hidden; }
@media (max-width: 899px) { .mp { height: calc(100dvh - 64px - 88px); } }
.mp-map { position: absolute; inset: 0; z-index: 1; }
.mp-top { position: absolute; z-index: 600; top: 10px; inset-inline: 10px; display: grid; gap: 8px; max-width: 680px; pointer-events: none; } .mp-top > * { pointer-events: auto; }
.mp-search { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; padding-inline-start: 14px; border-radius: 99px; background: var(--surface); box-shadow: 0 6px 22px rgb(10 20 50 / 22%); border: 1px solid var(--line); }
.mp-search > .ic { color: var(--muted); width: 20px; height: 20px; }
.mp-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 44px; font-size: 1rem; }
.mp-me { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-ink, #fff); display: grid; place-items: center; cursor: pointer; } .mp-me .ic { width: 22px; height: 22px; } .mp-me.is-busy { opacity: .6; animation: mpspin 1s linear infinite; }
@keyframes mpspin { to { transform: rotate(360deg); } }
.mp-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; } .mp-chips::-webkit-scrollbar { display: none; }
.mp-chip { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 3px 10px rgb(10 20 50 / 14%); font: 800 .88rem var(--font-body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.mp-chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink, #fff); } .mp-chip .ic { width: 16px; height: 16px; }
.mp-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--mk); border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 18%); }
.mp-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px rgb(10 20 50 / 22%); border: 1px solid var(--line); }
.mp-more label { display: grid; gap: 4px; font-size: .8rem; font-weight: 800; color: var(--muted); } .mp-more select { min-height: 40px; }
.mp-sheet { position: absolute; z-index: 650; inset-inline: 0; bottom: 0; max-height: 64%; display: grid; grid-template-rows: auto auto 1fr; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 34px rgb(10 20 50 / 26%); transform: translateY(calc(100% - 132px)); transition: transform 280ms var(--ease-spring, ease); }
.mp-sheet.is-open { transform: none; }
.mp-grab { border: 0; background: transparent; padding: 10px 0 4px; cursor: pointer; } .mp-grab span { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto; }
.mp-sheet header { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 8px; } .mp-list-link { font-weight: 800; font-size: .88rem; }
.mp-list { overflow-y: auto; padding: 4px 12px 16px; display: grid; gap: 8px; align-content: start; }
.mp-card { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: start; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.mp-card:hover { border-color: var(--mk); } .mp-card .mp-dot { margin-top: 7px; width: 14px; height: 14px; flex: none; }
.mp-card-b { display: grid; gap: 2px; min-width: 0; } .mp-card-b b { font-size: .98rem; line-height: 1.5; } .mp-card-b small { color: var(--muted); }
.mp-card-m { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; } .mp-card-m em { font-style: normal; font-size: .78rem; font-weight: 800; padding: 1px 10px; border-radius: 99px; background: var(--sunken); }
.mp-hot { background: #ffe3de !important; color: #b3361f; } .mp-pay { background: #d5f6e6 !important; color: #0b5d3a; } .mp-km { background: #e3ecff !important; color: #24449a; }
.mp-note { position: absolute; z-index: 560; inset-inline: 12px; bottom: 148px; margin: 0; padding: 6px 14px; border-radius: 99px; background: rgb(16 26 51 / 86%); color: #fff; font-size: .82rem; text-align: center; pointer-events: none; }
.mp-empty { padding: 20px 6px; text-align: center; }
.mp-pop { display: grid; gap: 4px; min-width: 200px; } .mp-pop-t { font-weight: 800; line-height: 1.6; } .mp-pop-o, .mp-pop-c { color: var(--muted); font-size: .88rem; } .mp-pop-p { font-weight: 800; color: #0b5d3a; } .mp-pop-n { font-size: .8rem; color: #8a5a00; background: #fff5da; padding: 2px 8px; border-radius: 8px; }
.mp-pop-a { display: flex; gap: 6px; margin-top: 6px; } .mp-pop-a .btn { min-height: 38px; padding: 4px 12px; font-size: .86rem; }
@media (min-width: 900px) {
  .mp-sheet { inset-block: 10px; inset-inline: auto; inset-inline-start: 10px; width: 380px; max-height: none; border-radius: 22px; transform: none; }
  .mp-grab { display: none; } .mp-sheet header { padding-top: 14px; }
  .mp-top { inset-inline-start: 404px; }
  .mp-note { inset-inline-start: 404px; bottom: 16px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-container { background: #1a2238; } }

@media (min-width: 900px) { .mp-note { inset-inline-end: 70px; } .mp-chips { flex-wrap: wrap; overflow: visible; } }
