/* Artenkarte – ergänzt hotspot.css (Seitenrahmen, Panel, Legende) */
.sm-panel { width: min(360px, calc(100vw - 24px)); max-height: calc(100% - 24px); overflow: auto; }
.sm-intro { margin: 0 0 .75rem; font-size: .9rem; color: var(--ink-soft, #5a655f); }
.sm-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.sm-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .35rem .2rem .7rem; border-radius: 999px; background: var(--forest, #14291f); color: #fff; font-size: .85rem; font-weight: 600; }
.sm-chip button { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 1.35rem; height: 1.35rem; border-radius: 50%; line-height: 1; cursor: pointer; padding: 0; }
.sm-chip button:hover { background: rgba(255,255,255,.35); }
.sm-combo { position: relative; }
.sm-input { width: 100%; padding: .5rem .7rem; border: 1px solid var(--line-strong, rgba(27,36,31,.22)); border-radius: 10px; background: #fff; font: inherit; }
.sm-input:focus { outline: 2px solid var(--moss, #3d6b54); outline-offset: 1px; }
.sm-list { position: absolute; z-index: 1200; left: 0; right: 0; margin: 3px 0 0; padding: .25rem; list-style: none; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--line-strong, rgba(27,36,31,.22)); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.sm-list[hidden] { display: none; }
.sm-list li { padding: .4rem .6rem; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: .75rem; }
.sm-list li small { color: var(--ink-soft, #5a655f); font-style: italic; }
.sm-list li:hover, .sm-list li.is-active { background: var(--paper-2, #efeadf); }
.sm-popular { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.sm-popular button { border: 1px solid var(--line-strong, rgba(27,36,31,.22)); background: #fff; border-radius: 999px; padding: .15rem .65rem; font-size: .82rem; cursor: pointer; }
.sm-popular button:hover { border-color: var(--moss, #3d6b54); color: var(--moss, #3d6b54); }
.sm-range { width: 100%; accent-color: var(--moss, #3d6b54); }
.sm-top ol { margin: .35rem 0 0; padding-left: 1.3rem; display: grid; gap: .2rem; font-size: .9rem; }
.sm-top li { cursor: pointer; }
.sm-top li:hover { color: var(--moss, #3d6b54); }
.sm-top li b { float: right; font-variant-numeric: tabular-nums; }
.sm-coverage { font-size: .8rem; color: var(--ink-soft, #5a655f); margin: .6rem 0 .25rem; }
.sm-note { font-size: .78rem; color: var(--ink-soft, #5a655f); margin: 0 0 .6rem; }
.sm-share { width: 100%; justify-content: center; }
.sm-legend__bar { height: .6rem; border-radius: 99px; background: linear-gradient(90deg, #fffabe, #fde06e 20%, #a6d96a 45%, #2ca25f 70%, #005a32); margin: .3rem 0 .15rem; }
.sm-legend__title { font-size: .85rem; }
#sm-legend-layers { margin-top: .4rem; }
.sm-empty { position: absolute; z-index: 900; left: 50%; bottom: 2.5rem; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: .8rem 1.1rem; border-radius: 12px; background: rgba(20,41,31,.92); color: #fff; text-align: center; }
.sm-pop { min-width: 230px; }
.sm-pop h4 { margin: 0 0 .1rem; font-size: 1rem; font-family: var(--font-body, inherit); font-weight: 700; }
.sm-pop__score { font-size: 1.7rem; font-weight: 800; color: var(--forest, #14291f); line-height: 1.1; }
.sm-pop__rows { display: grid; gap: .25rem; margin: .5rem 0; font-size: .85rem; }
.sm-pop__row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.sm-pop__row i { grid-column: 1 / -1; display: block; height: .4rem; border-radius: 99px; background: var(--paper-2, #efeadf); overflow: hidden; }
.sm-pop__row i b { display: block; height: 100%; background: var(--moss, #3d6b54); }
.sm-pop dl { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .7rem; font-size: .82rem; margin: .4rem 0; }
.sm-pop dt { color: var(--ink-soft, #5a655f); }
.sm-pop dd { margin: 0; }
.sm-pop a.sm-pop__link { display: inline-block; margin-top: .25rem; font-weight: 600; }
body.page-species-map .hs-panel__body { padding-bottom: .9rem; }

.sm-legend { left: auto; right: 12px; bottom: 96px; }
@media (max-width: 640px) { .sm-legend { bottom: 92px; } }

.sm-details { margin: .35rem 0; border: 1px solid var(--line, rgba(27,36,31,.12)); border-radius: 10px; padding: .3rem .6rem; background: #fff; }
.sm-details summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .2rem 0; }
.sm-check { display: flex; align-items: center; gap: .5rem; padding: .18rem 0; font-size: .88rem; cursor: pointer; }
.sm-swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.15); margin-right: .35rem; }
.sm-check .sm-swatch { margin-right: 0; }
.sm-swatch--ph { background: linear-gradient(90deg, rgb(200,40,40), rgb(240,210,70), rgb(120,190,120), rgb(60,90,200)); }
.sm-swatch--elev { background: linear-gradient(90deg, rgb(120,170,90), rgb(225,215,130), rgb(170,130,80), rgb(250,250,250)); }
.sm-hint { display: block; color: var(--ink-soft, #5a655f); font-size: .78rem; margin: .3rem 0 .1rem; }
.sm-opacity { margin-top: .6rem; display: block; }
.sm-layers .hs-switch { margin: .25rem 0; }

.sm-list__head { cursor: default !important; padding: .3rem .6rem .15rem !important; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft, #5a655f); }
.sm-list__head:hover { background: transparent !important; }
