@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
*{margin:0;padding:0;box-sizing:border-box}
:root{--bg-page:#120C08;--bg-app:#201713;--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:#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;--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:'Play',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:700;font-size:20px}
.brand h1{font-size:18px;letter-spacing:0;line-height:1.15;font-weight:700;text-transform:none}
.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}
.legend-dot.you{background:#2563EB}.legend-dot.point{background:var(--accent)}.legend-dot.done{background:var(--green)}
/* PLAYER - STICKY FIX */
.player-card{position:sticky;top:10px;z-index:40;background:var(--bg-card);border:1px solid var(--line);border-radius:20px;padding:16px;margin-top:12px;box-shadow:var(--shadow);backdrop-filter:blur(10px)}
.sticky-badge{font-size:11px;letter-spacing:.02em;font-weight:700;text-transform:none;color:var(--accent);margin-bottom:10px}
.player-top{display:flex;gap:12px;align-items:flex-start}
.player-num{width:52px;height:52px;flex:0 0 52px;border-radius:16px;background:var(--bg-chip);color:var(--accent);display:grid;place-items:center;font-size:20px;font-weight:800}
.player-num.playing{background:var(--accent);color:#fff}
.player-info{flex:1;min-width:0}
.eyebrow{font-size:11px;letter-spacing:.02em;font-weight:700;text-transform:none;color:var(--accent)}
.player-info h2{font-size:16px;font-weight:700;line-height:1.25;margin-top:3px;color:var(--text)}
.player-info p{font-size:12.5px;color:var(--muted);line-height:1.5;margin-top:4px}
.play-btn{width:56px;height:56px;flex:0 0 56px;border-radius:50%;background:var(--text);color:var(--bg-app);font-size:20px;display:grid;place-items:center}
.play-btn:active{transform:scale(.96)}
.wave{display:flex;gap:4px;align-items:end;height:22px;margin:14px 2px 4px;opacity:.35}
.wave.playing{opacity:1}
.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}}
.progress-row{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600;color:var(--muted);margin-top:6px}
.progress-track{flex:1;height:28px;display:flex;align-items:center;position:relative;cursor:pointer}
.progress-track::before{content:"";position:absolute;left:0;right:0;height:8px;background:var(--progress-track);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,.15)}
.player-controls{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.small-btn{background:var(--bg-chip);border:1px solid var(--line);padding:10px 13px;border-radius:999px;font-size:13px;font-weight:700;color:var(--text);min-height:44px}
.vol-wrap{display:flex;align-items:center;gap:6px;margin-left:auto}
.vol-wrap input{width:90px;accent-color:var(--accent)}
.audio-status{margin-top:12px;font-size:11.5px;line-height:1.6;background:var(--bg-app);border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--muted)}
.audio-status.error{background:#3A1A1A!important;color:#FECACA!important}
html[data-theme="light"] .audio-status.error{background:#FEF2F2!important;color:#991B1B!important}
.test-btn{background:none;color:var(--accent);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}
.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)}
.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}
.user-dot{width:20px;height:20px;border-radius:50%;background:#2563EB;border:3px solid #fff;box-shadow:0 0 0 6px rgba(37,99,235,.18),0 4px 10px rgba(0,0,0,.25)}

/* SIMPLE PLAYER extras */
.photo-card{position:relative;width:100%;max-width:100%;min-width:0;margin-top:12px;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:#1A130E;aspect-ratio:4/3;min-height:0;transition:aspect-ratio .25s}
.photo-card.captions-off{aspect-ratio:16/10}
.photo-card img{width:100%;max-width:100%;height:100%;object-fit:cover;display:block}
.photo-overlay{position:absolute;left:0;right:0;bottom:0;padding:14px 12px 12px;background:linear-gradient(to top,rgba(0,0,0,.88) 0%,rgba(0,0,0,.62) 55%,transparent 100%);color:#fff;display:flex;flex-direction:column}
.photo-badge{display:inline-block;background:var(--accent);color:#fff;font-size:11px;font-weight:700;letter-spacing:0;text-transform:none;padding:6px 10px;border-radius:999px;margin-bottom:8px}
.photo-overlay h2{font-size:17px;font-weight:700;line-height:1.25;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.photo-overlay p{font-size:12.5px;opacity:.9;margin-top:4px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.captions-toggle-top{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.68);color:#fff;border:1px solid rgba(255,255,255,.25);padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700;z-index:2}
.captions-toggle-top.is-off{opacity:.75;background:rgba(0,0,0,.55)}
/* CAPTIONS IN PHOTO OVERLAY — δεν υπάρχουν πια captions-head / captions-toggle στο player-card */
.photo-overlay #captions-container{width:100%;min-height:56px;max-height:96px;margin:10px 0 0;padding:10px 12px;display:flex;align-items:center;justify-content:center;text-align:center;background:rgba(0,0,0,.62);border:1px solid rgba(255,255,255,.22);border-radius:12px;backdrop-filter:blur(4px);transition:opacity .2s;overflow:hidden}
.photo-overlay #captions-container.caption-hidden{opacity:.45}
.photo-overlay #caption-text{font-size:14px;line-height:1.4;font-weight:400;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.text-hint{font-size:11px;color:var(--muted);white-space:nowrap;font-weight:700}
.station-card{padding:14px}
.station-thumb{width:64px;height:64px;flex:0 0 64px;border-radius:12px;object-fit:cover;background:var(--bg-chip);border:1px solid var(--line)}
.player-controls .small-btn{min-height:52px;font-size:14px}
.play-btn{width:64px;height:64px;flex:0 0 64px;font-size:22px}
.cta{min-height:56px;font-size:16px;font-weight:700;letter-spacing:0;text-transform:none}
@media(max-width:420px){#caption-text{font-size:13.5px;line-height:1.38}.photo-overlay #captions-container{min-height:52px;max-height:84px;padding:8px 10px}.photo-overlay h2{font-size:16px}.station-thumb{width:56px;height:56px;flex-basis:56px}}

/* FIX: <400px — photo-card + player-card + station-card + header + status + bottom-bar */
@media screen and (max-width:400px){
  .app{padding:10px 10px 16px}
  /* HEADER — μικρότερα logo / κουμπιά για να χωράνε */
  .header{padding:4px 0 10px;gap:6px}
  .brand{gap:8px}
  .brand-mark{width:36px;height:36px;flex:0 0 36px;border-radius:10px;font-size:17px}
  .brand h1{font-size:16px}
  .brand p{font-size:10.5px}
  .header-actions{gap:6px}
  .theme-btn{padding:6px 8px;font-size:11px}
  .lang-pill{padding:6px 8px;font-size:11px}
  .icon-btn{width:36px;height:36px;font-size:18px}
  /* STATUS — wrap + κρύβουμε το “Χωρίς GPS” που έσπρωχνε το progress */
  .status-bar{flex-wrap:wrap;gap:8px;padding:8px 10px}
  .pill{font-size:11px;padding:6px 8px}
  .text-hint{display:none}
  /* PHOTO-CARD — το παλιό fix παραμένει */
  .photo-card{aspect-ratio:4/3;min-height:0;border-radius:16px}
  .photo-card.captions-off{aspect-ratio:16/11}
  .photo-overlay{padding:12px 10px 10px}
  .photo-overlay #captions-container{min-height:52px;max-height:84px;padding:8px 10px;margin-top:8px}
  .photo-overlay #caption-text{font-size:13.5px}
  .photo-overlay h2{font-size:15px;line-height:1.25}
  .photo-overlay p{font-size:12px}
  .photo-badge{font-size:10.5px;padding:5px 9px}
  .captions-toggle-top{top:8px;right:8px;padding:6px 10px;font-size:11px}
  /* PLAYER-CARD — μικρότερα num / play, controls σε 2 σειρές χωρίς overflow */
  .player-card{padding:12px;border-radius:16px;top:8px}
  .player-top{gap:8px}
  .player-num{width:44px;height:44px;flex:0 0 44px;border-radius:12px;font-size:17px}
  .player-info h2{font-size:15px}
  .player-info p{font-size:12px;line-height:1.45}
  .play-btn{width:52px;height:52px;flex:0 0 52px;font-size:19px}
  .player-controls{gap:6px}
  .player-controls .small-btn{flex:1 1 0;min-width:0;min-height:48px;font-size:13px;padding:10px 8px;white-space:nowrap}
  .vol-wrap{flex:1 1 100%;margin-left:0;justify-content:space-between}
  .vol-wrap input{flex:1;min-width:0;width:auto;max-width:180px}
  .progress-row{gap:8px}
  /* STATION-CARD — μικρότερο padding / thumb / play */
  .station-card{padding:10px;gap:8px;border-radius:14px}
  .station-thumb{width:48px;height:48px;flex:0 0 48px}
  .station-play{width:40px;height:40px;flex:0 0 40px;font-size:14px}
  .station-body h4{font-size:14px}
  .station-body p{font-size:12px}
  .tag{font-size:10.5px;padding:4px 7px}
  /* BOTTOM-BAR — πρέπει να ταιριάζει με το νέο .app padding 10px, όχι 14px */
  .bottom-bar{margin:14px -10px -10px;padding:12px 10px}
  .cta{min-height:52px;font-size:15px}
}
@media screen and (max-width:340px){
  .photo-card{aspect-ratio:4/3;border-radius:14px}
  .photo-card.captions-off{aspect-ratio:16/11}
  .photo-overlay{padding:10px 10px 10px}
  .photo-overlay #captions-container{min-height:48px;max-height:76px}
  .photo-overlay #caption-text{font-size:13px}
  .photo-overlay h2{font-size:14px}
  .brand p{display:none}
  .player-num{width:40px;height:40px;flex:0 0 40px;font-size:16px}
  .play-btn{width:48px;height:48px;flex:0 0 48px;font-size:18px}
  .player-controls .small-btn{font-size:12px}
  .station-thumb{width:44px;height:44px;flex:0 0 44px}
  .station-play{width:36px;height:36px;flex:0 0 36px;font-size:13px}
}
