/* ════════════════════════════════════════════════════════════
   pages/projects.css — Filterable projects map + clickable list + timeline
   ════════════════════════════════════════════════════════════ */

/* Toolbar */
.proj-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;align-items:center}
.proj-search{flex:1;min-width:200px;position:relative}
.proj-search input{width:100%;font-family:inherit;font-size:14px;color:var(--text);background:var(--card);border:1.5px solid var(--border);border-radius:8px;padding:11px 14px 11px 38px;outline:none;transition:all .15s}
.proj-search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}
.proj-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;stroke:var(--text-light);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.proj-select{font-family:inherit;font-size:14px;color:var(--text);background:var(--card);border:1.5px solid var(--border);border-radius:8px;padding:11px 36px 11px 14px;outline:none;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:15px}
.proj-select:focus{border-color:var(--accent)}

/* Map + list grid */
.proj-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:20px;align-items:stretch}
.proj-panel{background:var(--card);border:1.5px solid var(--card-border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.proj-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--border)}
.proj-panel-head strong{font-size:14px}
.proj-badge{font-size:11.5px;font-weight:600;color:var(--accent);background:var(--accent-light);padding:5px 11px;border-radius:20px;white-space:nowrap}
.proj-map{height:540px;width:100%;background:#0a1a2f}
.proj-map .leaflet-container{height:100%;width:100%;font-family:inherit}
.proj-foot{padding:11px 18px;border-top:1px solid var(--border);font-size:12.5px;color:var(--text-light)}

/* Clickable list */
.proj-list{max-height:540px;overflow-y:auto;padding:8px}
.proj-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font-family:inherit;background:none;border:none;border-radius:9px;padding:12px 12px;cursor:pointer;transition:background .15s}
.proj-item:hover{background:var(--bg-alt)}
.proj-item-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.proj-item-body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.proj-item-name{font-size:13.5px;font-weight:600;color:var(--text);line-height:1.35}
.proj-item-loc{font-size:12px;color:var(--text-muted)}
.proj-item-year{font-size:12px;font-weight:700;color:var(--text-light);flex-shrink:0}
.proj-empty{padding:30px 16px;text-align:center;color:var(--text-muted);font-size:13.5px}

/* Category legend */
.proj-legend{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-top:24px}
.proj-legend-item{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--text-muted);font-weight:500}
.proj-legend-dot{width:11px;height:11px;border-radius:50%}

/* ─── TIMELINE ───────────────────────────────────────────── */
.timeline-filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:40px}
.tl-filter{font-size:13px;font-weight:600;color:var(--text-muted);background:var(--card);border:1.5px solid var(--card-border);border-radius:20px;padding:8px 18px;cursor:pointer;font-family:inherit;transition:all .15s}
.tl-filter:hover{border-color:var(--accent);color:var(--accent)}
.tl-filter.active{background:var(--accent);border-color:var(--accent);color:#fff}

.timeline-spine{position:relative;max-width:760px;margin:0 auto;padding-left:36px}
.timeline-spine::before{content:'';position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:linear-gradient(var(--accent),var(--accent2))}
.tl-item{position:relative;margin-bottom:22px}
.tl-dot{position:absolute;left:-36px;top:6px;width:16px;height:16px;border-radius:50%;border:3px solid var(--bg);box-shadow:0 0 0 2px var(--border)}
.tl-card{background:var(--card);border:1.5px solid var(--card-border);border-radius:12px;padding:20px 22px;transition:all .2s}
.tl-card:hover{border-color:var(--accent);box-shadow:var(--shadow-lg)}
.tl-card-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.tl-year{font-size:13px;font-weight:800;color:var(--text)}
.tl-cat{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.tl-card h3{font-size:16px;font-weight:700;line-height:1.4;margin-bottom:8px}
.tl-card p{font-size:13.5px;color:var(--text-muted);line-height:1.65;margin-bottom:10px}
.tl-loc{font-size:12.5px;color:var(--text-light);display:flex;align-items:center;gap:6px}

@media(max-width:860px){
  .proj-grid{grid-template-columns:1fr}
  .proj-map{height:380px}
  .proj-list{max-height:320px}
}
