:root {
  --bg: #07111f;
  --panel: #0d1b2a;
  --panel-2: #10263f;
  --accent: #ffcb47;
  --text: #edf4ff;
  --muted: #a6b7cc;
  --danger: #d85252;
  --success: #22b455;
  --overlay: rgba(7, 17, 31, 0.84);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}
body { padding: 18px; }
body.display-body { padding: 0; }
.shell { display: grid; gap: 18px; }
.control-shell { grid-template-columns: 340px 1fr; }
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.control-panel { padding: 22px; display: grid; gap: 18px; align-content: start; }
.status-pill {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: rgba(45,191,115,.12); color: #8ce2b6; font-weight: 700; font-size: .95rem;
}
.status-pill.offline { background: rgba(224,87,87,.12); color: #ffb3b3; }
.button-stack { display: grid; gap: 12px; }
.small-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button {
  border: 0; border-radius: 18px; padding: 16px 18px; font-size: 1.2rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
button.primary { background: var(--accent); color: #162235; }
button.large-green {
  background: linear-gradient(180deg, #2fd36e, #21b254);
  color: #fff;
  min-height: 110px;
  font-size: 2rem;
}
button.secondary { background: #20334b; color: var(--text); }
button.danger { background: var(--danger); color: white; }
button.half { min-height: 56px; font-size: 1.05rem; }
.map-panel { position: relative; padding: 0; overflow: hidden; min-height: calc(100vh - 36px); }
.control-map-panel { min-height: calc(100vh - 36px); }
.full-display-map {
  border-radius: 0;
  border: 0;
  min-height: 100vh;
  height: 100vh;
}
#map-stage {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 36px);
  position: relative;
}
.map-overlay {
  position: absolute; z-index: 1000; background: var(--overlay); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 14px 18px; backdrop-filter: blur(8px);
}
.left-top { top: 22px; left: 22px; }
.right-top { top: 22px; right: 22px; text-align: right; }
.title-overlay h1, .title-overlay h2 { margin: 0; }
.big-number { font-size: 3rem; font-weight: 800; }
.big-number.compact { font-size: 2rem; line-height: 1.05; }
.small-label { color: var(--muted); font-size: .9rem; }
.note { color: var(--muted); line-height: 1.4; }
.overlay-card {
  position: absolute; right: 22px; bottom: 22px; z-index: 1000; width: min(380px, calc(100% - 44px));
  padding: 16px; background: rgba(7,17,31,.9); border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  backdrop-filter: blur(8px); transition: opacity .25s ease, transform .25s ease;
}
.overlay-card.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.photo-card img { width: 100%; display: block; border-radius: 12px; margin: 8px 0 12px; background: #fff; }
.hotspot-item {
  padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.leaflet-container {
  width: 100%;
  height: 100%;
  background: #dbe6f1;
  outline: none;
}
.station-label {
  background: rgba(255,255,255,.92); border: 1px solid rgba(16,38,63,.15); border-radius: 999px;
  padding: 3px 8px; font-weight: 800; color: #10263f; font-size: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.icon-marker img { display: block; width: 120px; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
.bear-marker img { width: 60px; height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
@media (max-width: 980px) {
  .control-shell { grid-template-columns: 1fr; }
  .control-map-panel { min-height: 540px; }
  .map-overlay { max-width: calc(100% - 44px); }
  .overlay-card { width: calc(100% - 44px); }
}

.display-body .icon-marker img {
  width: 150px;
  height: auto;
}

.control-body .icon-marker img,
body:not(.display-body) .icon-marker img {
  width: 20px;
  height: auto;
}

/* Responsive SVG map renderer */
#map-stage {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 36px);
  position: relative;
  background: #dbe6f1;
  overflow: hidden;
}

.full-display-map {
  border-radius: 0;
  border: 0;
  min-height: 100vh;
  height: 100vh;
}

.svg-map-shell {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.svg-map-stage {
  width: 100%;
  height: 100%;
  display: block;
  background: #dbe6f1;
}

.route-base-path {
  fill: none;
  stroke: rgba(255,255,255,.96);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-progress-path {
  fill: none;
  stroke: #0079c2;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-hotspot-icon {
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.25));
}

.svg-hotspot-dot {
  fill: #0079c2;
  stroke: #ffffff;
  stroke-width: 3;
}

.svg-hotspot-dot.reached {
  fill: #22b455;
}

.svg-bear {
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.22));
}

@media (max-width: 1100px) {
  .control-shell { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding: 12px; }
  .control-panel { padding: 16px; }
  .map-overlay { padding: 12px 14px; border-radius: 14px; }
}


.athens-footer { position: fixed; left: 0; right: 0; bottom: 0; height: 150px; max-height: 150px; background: linear-gradient(180deg, rgba(6,18,36,0.82), rgba(6,18,36,0.96)); border-top: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px); z-index: 35; display: flex; flex-direction: column; justify-content: center; padding: 14px 24px 18px; box-sizing: border-box; }
.display-body { padding-bottom: 150px; box-sizing: border-box; }
.athens-scale { position: relative; width: 100%; height: 78px; }
.athens-line-base, .athens-line-progress { position: absolute; left: 0; top: 52px; height: 6px; border-radius: 999px; }
.athens-line-base { right: 0; background: rgba(255,255,255,0.18); }
.athens-line-progress { width: 0; background: #22b455; box-shadow: 0 0 18px rgba(34,180,85,0.45); transition: width 0.35s ease; }
.athens-stop { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.athens-stop.start { transform: translateX(0); }
.athens-stop.end { transform: translateX(-100%); }
.athens-city { font-size: 0.95rem; font-weight: 700; color: #ffffff; margin-bottom: 16px; white-space: nowrap; }
.athens-dot { width: 18px; height: 18px; border-radius: 50%; background: #ffffff; border: 4px solid #0079c2; margin: 0 auto; box-sizing: border-box; }
.athens-runner { position: absolute; top: 40px; width: 24px; height: 24px; background: #22b455; border: 3px solid #ffffff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transform: translateX(-50%); transition: left 0.35s ease; left: 0%; }
.athens-meta { display: flex; justify-content: space-between; gap: 18px; color: rgba(255,255,255,0.92); margin-top: 10px; font-size: 0.95rem; }
@media (max-width: 1100px) { .athens-city { font-size: 0.78rem; } .athens-footer { padding-left: 14px; padding-right: 14px; } .athens-meta { font-size: 0.82rem; flex-direction: column; gap: 6px; } }
