*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg-page:#120C08;
  --bg-app:#201713;
  --bg-card-player:linear-gradient(
    135deg,
    hsla(26, 11%, 12%, 0.92) 0%,
    hsla(20, 53%, 10%, 0.95) 50%,
    hsla(19, 80%, 8%, 0.98) 100%
  );
  --bg-card:#2E221B;
  --bg-chip:#3A2E25;
  --text:#F5EFE6;
  --muted:#C4B5A5;
  --line:#4A3628;
  --accent:#FF5F1F;
  --accent-gold:#D79A47;
  --green:#78D739;
  --progress-track:#4A3628;
  --shadow:0 8px 24px rgba(0,0,0,.35)
}

html[data-theme="brown"]{
  --bg-page:#120C08;
  --bg-app:#201713;
  --bg-card-player:linear-gradient(
    135deg,
    hsla(26, 11%, 12%, 0.698) 0%,
    hsla(20, 53%, 10%, 0.612) 50%,
    hsla(18, 80%, 8%, 0.605) 100%
  );
  --bg-card:#2E221B;
  --bg-chip:#3A2E25;
  --text:#F5EFE6;
  --muted:#C4B5A5;
  --line:#4A3628;
  --accent:#FF5F1F;
  --accent-gold:#D79A47;
  --green:#78D739;
  --progress-track:#4A3628;
  --shadow:0 8px 24px rgba(0,0,0,.35)
}

html[data-theme="light"]{
  --bg-page:#EDE8E0;
  --bg-app:#FFFBF5;
  /* Ελαφρώς πιο φωτεινό ασημί-μεταλλικό για να δένει με το light theme */
  --bg-card-player:linear-gradient(
    135deg,
    hsla(213, 6%, 64%, 0.844) 0%,
    hsla(208, 5%, 52%, 0.746) 50%,
    hsla(212, 6%, 42%, 0.779) 100%
  );
  --bg-card:#ffffff;
  --bg-chip:#F7F3ED;
  --text:#1C1917;
  --muted:#78716C;
  --line:#E7E0D6;
  --accent:#E4572E;
  --accent-gold:#D79A47;
  --green:#16A34A;
  --progress-track:#F1EDE6;
  --shadow:0 8px 24px rgba(28,25,23,.08)
}

html{scroll-behavior:smooth}
body{font-family:'Plus Jakarta Sans',system-ui,sans-serif;background:var(--bg-page);color:var(--text);min-height:100vh;padding-bottom:env(safe-area-inset-bottom);transition:background .25s,color .25s}
a{color:var(--accent);text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0}
.app{max-width:480px;margin:0 auto;background:var(--bg-app);min-height:100vh;padding:14px 14px 18px;transition:background .25s}

/* HEADER */
.header{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 14px;gap:8px}
.brand{display:flex;gap:11px;align-items:center;min-width:0}
.brand-mark{width:44px;height:44px;flex:0 0 44px;border-radius:13px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;font-size:22px}
.brand h1{font-size:19px;letter-spacing:.12em;line-height:1}
.brand p{font-size:11.5px;color:var(--muted);margin-top:3px}
.header-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.theme-btn{background:var(--bg-card);border:1px solid var(--line);color:var(--text);padding:8px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.lang-pill{background:var(--bg-card);border:1px solid var(--line);color:var(--text);padding:7px 10px;border-radius:999px;font-size:12px;font-weight:700}
.icon-btn{width:40px;height:40px;border-radius:999px;background:var(--bg-card);border:1px solid var(--line);display:grid;place-items:center;font-size:20px;color:var(--text)}

/* STATUS */
.status-bar{display:flex;align-items:center;gap:10px;background:var(--bg-card);border:1px solid var(--line);border-radius:16px;padding:10px 12px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:7px 10px;border-radius:999px;white-space:nowrap;background:var(--bg-chip);color:var(--muted)}
.pill .dot{width:8px;height:8px;border-radius:50%;background:#94A3B8}
.gps-off{color:var(--muted)}
.gps-searching{background:#4A3A1A!important;color:#FFE9A8!important}.gps-searching .dot{background:#EAB308;animation:pulse 1s infinite}
.gps-on{background:#0F3A35!important;color:#A7F3D0!important}.gps-on .dot{background:#34D399}
html[data-theme="light"] .gps-searching{background:#FEF9C3!important;color:#854D0E!important}
html[data-theme="light"] .gps-on{background:#CCFBF1!important;color:#0F766E!important}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.progress-wrap{flex:1;min-width:0}
.progress-top{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.progress-top strong{color:var(--text)}
.mini-progress{height:6px;background:var(--progress-track);border-radius:999px;margin-top:6px;overflow:hidden}
.mini-progress div{height:100%;background:var(--accent);width:0%;transition:width .4s}
.text-btn{background:none;color:var(--accent);font-weight:700;font-size:12px;white-space:nowrap}

/* MAP */
.map-card{position:relative;margin-top:12px;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:#ddd}
#map{height:300px;width:100%;z-index:1}
.map-card.map-full{position:fixed!important;inset:0;z-index:100;border-radius:0}
.map-card.map-full #map{height:100vh!important}
.map-overlay-top{position:absolute;top:10px;left:10px;right:10px;display:flex;justify-content:space-between;z-index:500;pointer-events:none}
.map-label{background:rgba(0,0,0,.68);color:#fff;font-size:11px;font-weight:700;padding:7px 10px;border-radius:999px}
.map-btn{pointer-events:auto;background:#fff;border:1px solid #E7E0D6;padding:8px 11px;border-radius:999px;font-size:12px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.12);color:#1C1917}
.map-btn.recenter{position:absolute;bottom:38px;left:10px;z-index:500}
.map-legend{position:absolute;bottom:10px;right:10px;z-index:500;background:rgba(255,255,255,.95);color:#1C1917;border-radius:999px;padding:6px 10px;display:flex;gap:10px;font-size:11px;font-weight:600}
.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:4px;vertical-align:middle;position:relative}
.legend-dot.you{background:#2563EB;z-index:10}
.legend-dot.point{background:var(--accent);z-index:1}
.legend-dot.done{background:var(--green);z-index:1}
.legend-dot.warn{background:var(--accent-gold);z-index:1}

/* PLAYER - STICKY & METALLIC EFFECT */
.player-card{
  position:sticky;
  top:10px;
  z-index:40;
  background:var(--bg-card-player);
  border:1px solid hsla(0, 0%, 100%, 0.35);
  border-radius:20px;
  padding:16px;
  margin-top:12px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* Προσαρμογή κειμένων & στοιχείων ΜΟΝΟ μέσα στο metallic player-card */
.player-card .sticky-badge{
  font-size:10px;
  letter-spacing:.12em;
  font-weight:800;
  color:#FFE4D6;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
  margin-bottom:10px;
}
.player-top{display:flex;gap:12px;align-items:flex-start}
.player-card .player-num{
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:16px;
  background:rgba(0, 0, 0, 0.28);
  border:1px solid rgba(255, 255, 255, 0.2);
  color:#FFFFFF;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:800;
}
.player-card .player-num.playing{background:var(--accent);color:#fff;border-color:transparent}
.player-info{flex:1;min-width:0}
.player-card .eyebrow{
  font-size:10px;
  letter-spacing:.14em;
  font-weight:800;
  color:#FFD4C2;
  text-shadow:0 1px 2px rgba(0,0,0,.4);
}
.player-card .player-info h2{
  font-size:17px;
  line-height:1.25;
  margin-top:3px;
  color:#FFFFFF;
  text-shadow:0 1px 3px rgba(0,0,0,.35);
}
.player-card .player-info p{
  font-size:12.5px;
  color:rgba(255, 255, 255, 0.88);
  line-height:1.5;
  margin-top:4px;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.player-card .play-btn{
  width:56px;
  height:56px;
  flex:0 0 56px;
  border-radius:50%;
  background:#FFFFFF;
  color:#1C1917;
  font-size:20px;
  display:grid;
  place-items:center;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.play-btn:active{transform:scale(.96)}

.wave{display:flex;gap:4px;align-items:end;height:22px;margin:14px 2px 4px;opacity:.45}
.wave.playing{opacity:1}
.player-card .wave span{flex:1;background:var(--accent);border-radius:4px;height:6px}
.wave.playing span{animation:wave .9s ease-in-out infinite alternate}
.wave.playing span:nth-child(2n){animation-delay:.15s}.wave.playing span:nth-child(3n){animation-delay:.3s}
@keyframes wave{from{height:5px}to{height:22px}}

.player-card .progress-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  font-weight:600;
  color:rgba(255, 255, 255, 0.9);
  margin-top:6px;
}
.progress-track{flex:1;height:28px;display:flex;align-items:center;position:relative;cursor:pointer}
.player-card .progress-track::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:8px;
  background:rgba(0, 0, 0, 0.3);
  border-radius:999px;
}
.progress-fill{position:absolute;left:0;height:8px;background:var(--accent);border-radius:999px;width:0%;z-index:1}
.progress-thumb{position:absolute;left:0;width:18px;height:18px;background:#FFF7ED;border:3px solid var(--accent);border-radius:50%;z-index:2;transform:translateX(-50%);box-shadow:0 2px 8px rgba(0,0,0,.25)}

.player-controls{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.player-card .small-btn{
  background:rgba(0, 0, 0, 0.25);
  border:1px solid rgba(255, 255, 255, 0.25);
  padding:10px 13px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  color:#FFFFFF;
  min-height:44px;
}
.player-card .small-btn:hover{background:rgba(0, 0, 0, 0.38)}
.vol-wrap{display:flex;align-items:center;gap:6px;margin-left:auto}
.vol-wrap input{width:90px;accent-color:var(--accent)}

.player-card .audio-status{
  margin-top:12px;
  font-size:11.5px;
  line-height:1.6;
  background:rgba(0, 0, 0, 0.28);
  border:1px solid rgba(255, 255, 255, 0.18);
  border-radius:12px;
  padding:10px 12px;
  color:rgba(255, 255, 255, 0.92);
}
.player-card .audio-status.error{background:#7F1D1D!important;color:#FECACA!important;border-color:#EF4444!important}
.player-card .test-btn{background:none;color:#FFD4C2;font-weight:700;font-size:12px;margin-top:8px;text-decoration:underline}

/* STATIONS */
.stations{margin-top:18px}
.stations-head h3{font-size:18px;color:var(--text)}
.stations-head p{font-size:12.5px;color:var(--muted);margin-top:2px}
.stations-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.station-card{display:flex;gap:12px;background:var(--bg-card);border:1px solid var(--line);border-radius:18px;padding:13px;text-align:left;width:100%;align-items:flex-start;cursor:pointer;color:var(--text)}
.station-card.active{border-color:var(--accent);box-shadow:0 0 0 2px rgba(255,95,31,.35)}
.station-card.visited{border-color:var(--green)}
.station-num{width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--bg-chip);display:grid;place-items:center;font-weight:800;font-size:16px}
.station-card.active .station-num{background:var(--accent);color:#fff}
.station-card.visited .station-num{background:var(--green);color:#fff}
html[data-theme="brown"] .station-card.visited .station-num{color:#120C08}
.station-card.warn .station-num{background:#4A3A1A!important;color:#FDE68A!important}
.station-body{flex:1;min-width:0}
.station-body h4{font-size:15px;line-height:1.3}
.station-body p{font-size:12.5px;color:var(--muted);line-height:1.45;margin-top:3px}
.tag{font-size:11px;font-weight:700;padding:5px 8px;border-radius:999px;background:var(--bg-chip);color:var(--muted)}
.tag.playing{background:var(--bg-chip);color:var(--accent)}.tag.done{background:var(--bg-chip);color:var(--green)}.tag.warn{background:#4A3A1A!important;color:#FDE68A!important}
.station-play{width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:16px}
.bottom-bar{position:sticky;bottom:0;margin:16px -14px -14px;padding:14px;background:var(--bg-app);border-top:1px solid var(--line);z-index:45}
.cta{width:100%;min-height:56px;border-radius:16px;background:var(--green);color:#fff;font-size:16px;font-weight:800;box-shadow:0 10px 22px rgba(0,0,0,.2)}
html[data-theme="brown"] .cta{color:#120C08}
.cta.stop{background:#DC2626!important;color:#fff!important}
.hint{text-align:center;font-size:11.5px;color:var(--muted);margin-top:9px;line-height:1.5}
.footer{text-align:center;font-size:11px;color:var(--muted);padding:14px 0 4px;line-height:1.6}
.footer a{font-weight:700}
.footer-note{font-size:10.5px;opacity:.8}

/* MAP MARKERS & USER POSITION Z-INDEX FIX */
.leaflet-div-icon{background:transparent;border:0}
.marker-pin{width:34px;height:34px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;border:2.5px solid #fff;box-shadow:0 6px 14px rgba(0,0,0,.28);position:relative;z-index:10}
.marker-pin span{transform:rotate(45deg)}
.marker-pin.done{background:var(--green)}.marker-pin.active{background:#1C1917;width:40px;height:40px;font-size:15px}.marker-pin.warn{background:var(--accent-gold)}.marker-pin.start{background:#0F766E}.marker-pin.end{background:#7C3AED}

/* Εξασφαλίζει ότι η μπλε κουκκίδα θέσης (και το container της στο Leaflet) είναι ΠΑΝΤΑ πάνω από όλα τα points */
.leaflet-marker-icon:has(.user-dot),
.user-dot{
  z-index:9999 !important;
}
.user-dot{
  position:relative;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#2563EB;
  border:3px solid #fff;
  box-shadow:0 0 0 6px rgba(37,99,235,.22),0 4px 10px rgba(0,0,0,.3);
}