/* نقشه معادن جهان: نقشه تمام‌صفحه و یک کشوی کنار آن. رنگ‌ها و شعاع‌ها در :root هستند. */
/* فونت ری (Ray) */
@font-face { font-family: 'Ray'; src: url(../fonts/ray-300.woff2) format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(../fonts/ray-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(../fonts/ray-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(../fonts/ray-700.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(../fonts/ray-800.woff2) format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ray'; src: url(../fonts/ray-900.woff2) format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --ink: #eef1f7;               /* متن روی شیشه‌ی تیره */
  --ember: #ff7a4d;             /* رنگ برند: درخشش و کنش اصلی */
  --ember-dark: #ff926c;
  --ember-soft: rgba(255,122,77,.16);
  --glass: rgba(15,20,30,.66);
  --glass-solid: #121823;
  --well: rgba(255,255,255,.07);
  --well-2: rgba(255,255,255,.12);
  --muted: #9aa5b8;
  --line: rgba(255,255,255,.09);
  --danger: #ff8a7a;
  --ok: #6ee7a5;      --ok-soft: rgba(52,211,153,.16);
  --warn: #ffc76b;    --warn-soft: rgba(251,191,36,.15);
  --info: #7cc0ff;    --info-soft: rgba(96,165,250,.16);
  --off: #aab3c2;     --off-soft: rgba(255,255,255,.09);
  --shadow: 0 20px 60px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  --rim: inset 0 0 0 1px rgba(255,255,255,.10), inset 0 1px 0 rgba(255,255,255,.14);
  --r-lg: 22px; --r-md: 14px; --r-sm: 11px;
  --sheet-w: 396px;
  --font: 'Ray', Tahoma, system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Ray', Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: #0e1620; color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
a { color: var(--ember-dark); }
::selection { background: var(--ember); color: #1a0e08; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- قاب اصلی: نقشه تمام‌صفحه، کشو روی آن ---------- */
.page { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.main { position: absolute; inset: 0; }
.map-wrap { position: absolute; inset: 0; direction: ltr; }
#map { height: 100%; width: 100%; background: #0e1620; font-family: var(--font); }
#map.picking { cursor: crosshair; }
.panel { position: absolute; top: 14px; bottom: 14px; right: 14px; width: var(--sheet-w); z-index: 1100; color-scheme: dark; background: radial-gradient(520px 260px at 92% -8%, rgba(255,122,77,.20), transparent 70%), radial-gradient(420px 300px at 0% 105%, rgba(70,130,255,.12), transparent 70%), var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); border-radius: var(--r-lg); box-shadow: var(--shadow), var(--rim); animation: sheet-in .7s cubic-bezier(.2,.8,.2,1) both; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.page.wide { --sheet-w: 450px; }
.page.collapsed .panel { transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s, visibility 0s .35s; }
.open-tab { position: absolute; top: 14px; right: 14px; z-index: 1100; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ink); font-weight: 600; cursor: pointer; box-shadow: var(--shadow), var(--rim); }
.open-tab:hover { background: rgba(30,38,54,.8); }

/* ---------- سربرگ کشو ---------- */
.brand { padding: 20px 20px 14px; flex: none; }
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand h1 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.3; }
.spark { width: 11px; height: 11px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft), 0 0 18px 2px var(--ember); flex: none; }
.row.tight { gap: 6px; flex-wrap: nowrap; }
.brand-meta { margin: 2px 0 14px; color: var(--muted); font-size: 14px; display: flex; align-items: baseline; gap: 7px; }
.brand-meta .big { font-size: 34px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.brand-meta .big:empty { display: none; }
.strata { display: flex; gap: 3px; height: 8px; }
.strata:empty { display: none; }
.layer { flex: 1 1 0; min-width: 6px; border: 0; padding: 0; cursor: pointer; border-radius: 4px; transition: opacity .15s, transform .15s, box-shadow .15s; }
.layer:hover { transform: scaleY(1.6); }
.strata.intro .layer { transform-origin: right center; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.strata.intro .layer:nth-child(2) { animation-delay: .08s } .strata.intro .layer:nth-child(3) { animation-delay: .16s } .strata.intro .layer:nth-child(4) { animation-delay: .24s } .strata.intro .layer:nth-child(5) { animation-delay: .32s } .strata.intro .layer:nth-child(n+6) { animation-delay: .4s }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }
@keyframes sheet-in { from { transform: translateX(26px); opacity: 0; } }
.layer[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.layer.dim { opacity: .28; }

/* ---------- دکمه‌ها ---------- */
.btn { background: var(--well); border: 0; border-radius: var(--r-sm); padding: 7px 14px; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--ink); line-height: 1.6; transition: background .12s; }
.btn:hover { background: var(--well-2); }
.btn.primary { background: linear-gradient(180deg, #ff8a5f, #ff6a3a); color: #1d0d06; font-weight: 700; box-shadow: 0 6px 18px rgba(255,106,58,.35); }
.btn.primary:hover { background: linear-gradient(180deg, #ff9a73, #ff7a4d); }
.btn.quiet { background: var(--well); padding: 5px 13px; font-size: 13.5px; border-radius: 999px; }
.btn.quiet.icon { padding: 5px 8px; min-width: 0; }
.btn.danger { color: var(--danger); background: rgba(255,120,100,.12); }
.btn.armed { background: #e5543f; color: #fff; }
.btn.small { padding: 3px 11px; font-size: 13.5px; }
.btn.icon { padding: 7px 10px; min-width: 38px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ember-dark); cursor: pointer; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.sec-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.sec-head::after { content: ''; flex: 0 0 28px; height: 3px; border-radius: 2px; background: var(--ember); }
.sec-head.small { font-size: 14px; }

/* ---------- زبانه‌ها (مدیر) ---------- */
.tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; }
.tab { background: none; border: 0; padding: 9px 10px; color: var(--muted); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ember); font-weight: 700; }
.tab-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.tab-body.browse { overflow: hidden; padding: 4px 20px 0; gap: 10px; }

/* ---------- فرم‌ها ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .lbl { font-size: 13.5px; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="search"], input[type="password"], input:not([type]), select, textarea {
  background: var(--well); border: 1px solid transparent; border-radius: var(--r-sm); padding: 8px 12px; width: 100%; min-width: 0; transition: background .12s, border-color .12s; }
input:focus, select:focus, textarea:focus { border-color: var(--ember); background: rgba(255,255,255,.10); outline: none; box-shadow: 0 0 0 3px var(--ember-soft); }
select option { background: var(--glass-solid); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #707c91; }
textarea { resize: vertical; min-height: 72px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.msg { margin: 0; font-size: 14px; min-height: 1.2em; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.sec-title { margin: 0; font-size: 15px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: auto; accent-color: var(--ember); }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---------- جست‌وجو، مرتب‌سازی، فیلتر ---------- */
#q { padding: 10px 16px; border-radius: 999px; box-shadow: var(--rim); }
.sortrow { display: flex; gap: 8px; align-items: center; }
.sortrow label { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.sortrow select { flex: 1; }
.filters { border-radius: var(--r-md); background: var(--well); }
.filters > summary { list-style: none; cursor: pointer; padding: 8px 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; user-select: none; }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: '›'; margin-inline-start: auto; transform: rotate(-90deg); color: var(--muted); font-size: 18px; line-height: 1; transition: transform .15s; }
.filters[open] > summary::after { transform: rotate(90deg); }
.fsum { color: var(--muted); font-weight: 400; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filters[open] .fsum { display: none; }
.badge { background: var(--ember); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; font-weight: 500; line-height: 1.6; }
.filters-body { padding: 2px 12px 12px; max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.fname { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-bottom: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--well); border-radius: 999px; padding: 1px 11px; font-size: 13.5px; cursor: pointer; line-height: 1.8; }
.chip:hover { background: var(--well-2); }
.chip[aria-pressed="true"] { background: var(--ember-soft); color: var(--ember-dark); box-shadow: inset 0 0 0 1px var(--ember); }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: var(--ember-dark); opacity: .8; }
.chip.zero { opacity: .45; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range input { direction: ltr; text-align: center; }

.listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0 0; flex: none; }
.listhead .cnt { color: var(--muted); font-size: 13.5px; }
.list { list-style: none; margin: 0 -20px; padding: 0 12px 12px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1px; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; width: 100%; text-align: start; background: none; border: 0; border-radius: var(--r-md); padding: 8px 8px; cursor: pointer; }
.item:hover { background: var(--well); }
.sym { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; direction: ltr; font: 800 14px/1 var(--font); letter-spacing: -.01em; color: color-mix(in srgb, var(--c) 45%, #fff); background: linear-gradient(145deg, color-mix(in srgb, var(--c) 34%, transparent), color-mix(in srgb, var(--c) 12%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 6px 16px -6px var(--c); transition: transform .18s; }
.sym.lg { width: 46px; height: 46px; border-radius: 15px; font-size: 16px; }
.item:hover .sym { transform: scale(1.07) rotate(-3deg); }
.item .t { font-weight: 600; overflow-wrap: anywhere; line-height: 1.5; }
.item .m { color: var(--muted); font-size: 13.5px; }
.val { color: var(--ink); font-size: 14.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.val.none { color: #5f6b80; font-weight: 400; }
.empty { color: var(--muted); padding: 26px 4px; text-align: center; }
.pill { display: inline-block; border-radius: 999px; padding: 0 9px; font-size: 13px; line-height: 1.7; white-space: nowrap; }
.s-ok { background: var(--ok-soft); color: var(--ok); }
.s-warn { background: var(--warn-soft); color: var(--warn); }
.s-info { background: var(--info-soft); color: var(--info); }
.s-off { background: var(--off-soft); color: var(--off); }
.s-none { background: var(--well); color: var(--muted); }
.panel-foot { padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; flex: none; }
.panel-foot a { color: var(--muted); }
.panel-foot a:hover { color: var(--ember-dark); }

/* ---------- اکسل و جدول‌ها ---------- */
.drop { border: 1.5px dashed rgba(255,255,255,.2); border-radius: var(--r-md); padding: 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--ember); background: var(--ember-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop:focus-within { outline: 2px solid var(--ember); outline-offset: 2px; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
table.cols { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.cols th, table.cols td { text-align: start; padding: 5px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cols tr:last-child td { border-bottom: 0; }
table.cols th { background: var(--well); font-weight: 700; }
table.cols code, code.k { font-family: var(--mono); direction: ltr; unicode-bidi: embed; font-size: 13px; }
.result { background: var(--well); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.result ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 13.5px; }
.newcols { display: flex; flex-direction: column; gap: 6px; background: var(--well); border-radius: var(--r-sm); padding: 8px 10px; }
.newcol { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.newcol select { width: auto; padding: 3px 8px; }
.newcol .nm { overflow-wrap: anywhere; }

/* ---------- مدیریت فیلدها ---------- */
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.flist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.flist li:last-child { border-bottom: 0; }
.flist .fl-t { font-weight: 600; overflow-wrap: anywhere; }
.flist .fl-m { color: var(--muted); font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag { background: var(--well); border-radius: 999px; padding: 0 8px; font-size: 12.5px; }
.fl-actions { display: flex; gap: 4px; }
.card { border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- ورود ---------- */
.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 70% 10%, #1d2b3d, #0b1119); color-scheme: dark; z-index: 2000; }
.gate-card { width: min(380px, 100%); background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow), var(--rim); }
.gate-card h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.4; }
.gate-card p { margin: 0; color: var(--muted); }

/* ---------- نقشه ---------- */
.toast { position: absolute; left: calc((100% - var(--sheet-w) - 28px) / 2); bottom: 34px; transform: translateX(-50%); z-index: 900; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ink); padding: 10px 18px; border-radius: 999px; max-width: min(480px, calc(100% - var(--sheet-w) - 60px)); text-align: center; font-size: 14px; box-shadow: var(--shadow), var(--rim); direction: rtl; }
.page.collapsed .toast { left: 50%; max-width: calc(100% - 32px); }
.leaflet-top.leaflet-left { top: 8px; left: 8px; }
.leaflet-bar { border: 0 !important; border-radius: 999px !important; box-shadow: var(--shadow), var(--rim) !important; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.leaflet-bar a, .leaflet-bar a:hover { background-color: transparent; color: var(--ink); border-bottom-color: var(--line); width: 38px; height: 38px; line-height: 38px; }
.leaflet-bar a:hover { background-color: var(--well-2); }
.leaflet-bar a.leaflet-disabled { color: #667085; background-color: transparent; }
.leaflet-bar a:first-child, .leaflet-bar a:last-child { border-radius: 0; }
.leaflet-control-attribution { background: rgba(10,14,22,.6) !important; color: #aab3c2 !important; border-radius: 0 10px 0 0; font-size: 11.5px; }
.leaflet-control-attribution a { color: #dbe2ee !important; }

/* پاپ‌آپ: شیشه‌ی تیره، عرض ثابت، فقط بدنه اسکرول می‌شود */
.leaflet-popup-content-wrapper { background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow), var(--rim); padding: 0; }
.leaflet-popup-tip { background: var(--glass-solid); box-shadow: none; }
.leaflet-popup-content { margin: 0 !important; line-height: 1.6; width: 306px !important; max-width: calc(100vw - 48px); }
.leaflet-container a.leaflet-popup-close-button { left: 10px; right: auto; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--well); color: var(--muted); font: 18px/27px var(--font); text-align: center; padding: 0; }
.leaflet-container a.leaflet-popup-close-button:hover { background: var(--well-2); color: var(--ink); }
.pp { direction: rtl; text-align: right; display: flex; flex-direction: column; max-height: min(60vh, 440px); font-family: var(--font); font-size: 14px; color: var(--ink); }
.pp-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 0 46px; }
.pp-head h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.pp-tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px 0; }
.pp-tag { background: var(--well); border-radius: 999px; padding: 0 11px; font-size: 13px; line-height: 1.8; }
.pp-tag.cat { background: var(--ember-soft); color: var(--ember-dark); box-shadow: inset 0 0 0 1px rgba(255,122,77,.45); }
.pp-body { padding: 14px 18px 4px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--well); border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--rim); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-size: 21px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; color: #fff; }
.stat span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.pp dl { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 12px; align-items: baseline; }
.pp dt { color: var(--muted); font-size: 13.5px; }
.pp dd { margin: 0; overflow-wrap: anywhere; word-break: break-word; }
.pp-desc { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; color: #c3cad8; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 12px 18px 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.coord { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; display: inline-block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-actions { display: flex; gap: 6px; }

/* راهنمای نام معدن هنگام رفتن روی نقطه، و حلقهٔ تپنده‌ی معدن باز */
.leaflet-tooltip.tt { background: var(--glass-solid); color: var(--ink); border: 0; border-radius: 999px; padding: 4px 12px; font: 600 13.5px var(--font); box-shadow: var(--shadow), var(--rim); }
.leaflet-tooltip-top.tt::before { border-top-color: var(--glass-solid); }
.pulse { pointer-events: none; }
.pulse i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); opacity: .0; animation: ping 1.8s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: .65; } 100% { transform: scale(3.6); opacity: 0; } }

/* ---------- موبایل و تبلت: نقشه بالا، کشو زیر آن ---------- */
@media (max-width: 900px) {
  .page, .page.wide { --sheet-w: 100%; height: auto; min-height: 100vh; overflow: visible; display: flex; flex-direction: column; }
  .main { position: static; display: flex; flex-direction: column; flex: 1; }
  .map-wrap { order: -1; position: relative; inset: auto; height: 54vh; min-height: 320px; flex: none; }
  .panel { position: relative; inset: auto; width: auto; margin: -26px 0 0; border-radius: 26px 26px 0 0; background: rgba(15,20,30,.92); overflow: visible; z-index: 1100; flex: 1; }
  #btn-collapse, .open-tab { display: none !important; }
  .brand { padding: 16px 16px 12px; }
  .brand h1 { font-size: 27px; }
  .tab-body, .tab-body.browse { overflow: visible; padding-inline: 16px; }
  .list { overflow: visible; flex: none; margin-inline: -16px; }
  .filters-body { max-height: 45vh; }
  .toast { left: 50%; max-width: calc(100% - 32px); }
  .panel-foot { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pulse i { animation: none; opacity: .3; } * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
