/* Aion 2 Market Italia — interactive map (mappa.html). Tokens, fonts and header come from base.css.
   Map data, icons and tiles: MetaBot.GG, reused with their permission (keep the followed credit link). */
html, body { height: 100%; }
body { font-size: 14px; line-height: 1.45; }
.app { flex: 1; height: 0; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
#map { height: 100%; background: #05070b; }
aside#panel { border-right: 1px solid var(--line); background: var(--card); overflow: auto; padding: 12px; }
.handle { display: none; }
.regions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.regions .grp { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.regions .grp b { width: 100%; font-size: 12px; color: var(--dim); font-weight: 700; }
.regions button, .gtypes button, .mini { font: inherit; font-size: 13px; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.regions button[aria-pressed="true"], .gtypes button[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.regions button:disabled { opacity: .45; cursor: default; }
.mini { font-size: 12px; padding: 2px 9px; color: var(--dim); }
#q { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; }
.hits { list-style: none; margin: 4px 0 0; padding: 4px; background: var(--field); border: 1px solid var(--line); border-radius: 9px; max-height: 240px; overflow: auto; }
.hits button { all: unset; display: flex; justify-content: space-between; gap: 8px; width: 100%; box-sizing: border-box; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.hits button:hover, .hits button:focus-visible { background: var(--card); }
.hits small { color: var(--dim); }
.lh { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; font-weight: 700; }
.layers { list-style: none; margin: 0; padding: 0; }
.layers label { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.layers label:hover { background: var(--field); }
.layers input { accent-color: var(--accent); margin: 0; }
.layers .ic { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.layers .ic img { width: 22px; height: 22px; object-fit: contain; }
.layers .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .5); }
.layers .n { margin-left: auto; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.gtypes { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0 30px; }
.gtypes button { font-size: 12px; padding: 2px 9px; }
.credit { margin: 16px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
/* markers and popups */
[hidden] { display: none !important; }
.pin { background: none; border: 0; }
.pin img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); transform: scale(var(--s, 1)); transition: transform .15s; display: block; }
.zl { color: #fff; font-weight: 700; font-size: 12px; text-shadow: 0 0 3px #000, 0 0 3px #000; white-space: nowrap; pointer-events: none; text-align: center; }
.zl.v { font-size: 11px; font-weight: 600; color: #ffe6a8; }
.zl small { display: block; font-weight: 500; font-size: 10.5px; opacity: .85; }
.leaflet-container { font: 13px/1.4 var(--font); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.leaflet-popup-content { margin: 12px 14px; min-width: 190px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--dim); }
.pp h3 { margin: 0 0 2px; font-size: 15px; }
.pp .sub { color: var(--dim); font-size: 12.5px; margin-bottom: 6px; }
.pp p { margin: 6px 0 0; }
.pp ul { list-style: none; margin: 6px 0 0; padding: 0; }
.pp li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.pp li img { width: 26px; height: 26px; border-radius: 5px; background: var(--field); }
.pp li .pr { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp li a { text-decoration: none; }
.g-Common { color: var(--text); } .g-Rare { color: #5fd08f; } .g-Legend { color: #5b9dff; } .g-Unique { color: #f0c43f; } .g-Epic { color: #ff8a3d; }
.leaflet-control-attribution { background: rgba(10, 14, 22, .75) !important; color: #aab4c8; }
.leaflet-control-attribution a { color: #9fc0ff; }
.leaflet-bar a { background: var(--card); color: var(--text); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--field); }
@media (max-width: 760px) {
  .app { display: block; position: relative; }
  #map { position: absolute; inset: 0; }
  aside#panel { position: absolute; z-index: 1100; left: 8px; right: 8px; bottom: 8px; max-height: 70%; border: 1px solid var(--line); border-radius: 14px;
    padding: 0; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); overflow: hidden; display: flex; flex-direction: column; }
  .handle { all: unset; display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-weight: 700; cursor: pointer; }
  .handle .chev { transition: transform .15s; color: var(--dim); }
  aside.open .handle .chev { transform: rotate(180deg); }
  aside .body { display: none; overflow: auto; padding: 0 12px 12px; }
  aside.open .body { display: block; }
  .leaflet-bottom.leaflet-right { bottom: 56px; }
}

/* accessibility pass: filled buttons use a darker accent so white text keeps 4.5:1 contrast */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.zl small { font-size: 11.5px; } .zl.v { font-size: 12px; }
.credit a { display: inline-block; padding: 3px 0; }
.mini { min-height: 28px; }
body.mapwrap { height: 100vh; height: 100dvh; overflow: hidden; }
.mapwrap .bar { position: relative; }
