/* GPX QR Tracker — [gpx_poi_explorer] POI-only map + filters + list */

.gpxqr-poi-explorer-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.gpxqr-poi-explorer-root .gpxqr-explorer-loading {
  text-align: center; padding: 40px; color: #888; font-size: 14px;
}

/* ── Filter bar ── */
.gpxqr-poi-explorer-root .gpxqr-explorer-controls {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.gpxqr-poi-explorer-root .gpxqr-list-filters {
  display: flex; gap: 8px; flex-wrap: wrap; width: 100%;
}
.gpxqr-poi-explorer-root .gpxqr-list-select {
  padding: 7px 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 13px; background: #fff; cursor: pointer; color: #333;
}
.gpxqr-poi-search {
  flex: 1; min-width: 160px; cursor: text !important;
}
.gpxqr-poi-explorer-root .gpxqr-list-select:focus { outline: none; border-color: #7c83ff; }

/* ── Top overlay card (върху картата) ── */
.gpxqr-poi-topcard {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(20,20,25,0.92);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  color: #fff;
}
.gpxqr-poi-topcard-nav {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gpxqr-poi-topcard-nav:hover { background: rgba(255,255,255,0.22); }
.gpxqr-poi-topcard-thumb {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.gpxqr-poi-topcard-body {
  flex: 1 1 auto;
  min-width: 0;
}
.gpxqr-poi-topcard-cat {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 600;
}
.gpxqr-poi-topcard-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpxqr-poi-topcard-dist {
  font-size: 20px;
  font-weight: 800;
  color: #ffd43b;
  margin-top: 2px;
}
.gpxqr-poi-topcard-mode {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #bbb;
  margin-left: 8px;
  vertical-align: middle;
}
.gpxqr-tc-wx {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  border-left: 3px solid #33d17a;
  background: rgba(255,255,255,.06);
}
.gpxqr-tc-wx-line { display: block; font-weight: 700; }
.gpxqr-tc-wx-msg  { display: block; opacity: .82; font-weight: 400; }
.gpxqr-tc-wx-loading { opacity: .7; font-style: italic; }
.gpxqr-tc-wx-go      { border-left-color: #33d17a; }
.gpxqr-tc-wx-caution { border-left-color: #f5a623; }
.gpxqr-tc-wx-wait    { border-left-color: #e5484d; }

.gpxqr-poi-topcard-close {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gpxqr-poi-topcard-close:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ── Map ── */
.gpxqr-poi-explorer-root .gpxqr-map-all-root {
  position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 16px;
}

/* ── List controls ── */
.gpxqr-poi-explorer-root .gpxqr-explorer-list-controls {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-bottom: 14px;
}
.gpxqr-poi-explorer-root .gpxqr-list-sort-lbl {
  font-size: 12px; color: #888; font-weight: 500;
}

/* ── POI cards ── */
.gpxqr-poi-card {
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
  border: 2px solid transparent;
}
.gpxqr-poi-card:hover {
  transform: translateY(-2px);
}
.gpxqr-poi-card.selected {
  border-color: #ffd43b;
  box-shadow: 0 4px 16px rgba(255,212,59,0.35);
}
.gpxqr-poi-card .gpxqr-lc-nothumb {
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}

/* ── Бутон "3D" (горен десен ъгъл на картата) ── */
.gpxqr-3d-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 1000;
  width: 36px; height: 36px;
  background: rgba(20,20,25,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gpxqr-3d-btn:hover { background: rgba(124,131,255,0.4); }
