// Inline icons — minimal stroke set, no decorative SVG
function Icon({ name, size = 16, color = "currentColor" }) {
  const s = { width: size, height: size, fill: "none", stroke: color, strokeWidth: 1.6, strokeLinecap: "round", strokeLinejoin: "round" };
  switch (name) {
    case "bed": return <svg viewBox="0 0 24 24" {...s}><path d="M3 18V8m18 10v-5a3 3 0 0 0-3-3H3"/><circle cx="7" cy="13" r="2"/><path d="M3 18h18"/></svg>;
    case "fuel": return <svg viewBox="0 0 24 24" {...s}><path d="M4 22V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v18M3 22h13"/><path d="M15 8h2a2 2 0 0 1 2 2v6a1 1 0 0 0 2 0v-7l-3-3"/></svg>;
    case "license": return <svg viewBox="0 0 24 24" {...s}><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="9" cy="12" r="2.5"/><path d="M14 10h4M14 14h4"/></svg>;
    case "year": return <svg viewBox="0 0 24 24" {...s}><rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 9h18M8 3v4M16 3v4"/></svg>;
    case "arrow": return <svg viewBox="0 0 24 24" {...s}><path d="M5 12h14M13 6l6 6-6 6"/></svg>;
    case "arrowUR": return <svg viewBox="0 0 24 24" {...s}><path d="M7 17 17 7M9 7h8v8"/></svg>;
    case "close": return <svg viewBox="0 0 24 24" {...s}><path d="M6 6l12 12M18 6L6 18"/></svg>;
    case "plus": return <svg viewBox="0 0 24 24" {...s}><path d="M12 5v14M5 12h14"/></svg>;
    case "chevL": return <svg viewBox="0 0 24 24" {...s}><path d="M15 6l-6 6 6 6"/></svg>;
    case "chevR": return <svg viewBox="0 0 24 24" {...s}><path d="M9 6l6 6-6 6"/></svg>;
    case "chevD": return <svg viewBox="0 0 24 24" {...s}><path d="M6 9l6 6 6-6"/></svg>;
    case "phone": return <svg viewBox="0 0 24 24" {...s}><path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z"/></svg>;
    case "mail": return <svg viewBox="0 0 24 24" {...s}><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 7l9 6 9-6"/></svg>;
    case "pin": return <svg viewBox="0 0 24 24" {...s}><path d="M12 22s7-6.5 7-12a7 7 0 1 0-14 0c0 5.5 7 12 7 12z"/><circle cx="12" cy="10" r="2.5"/></svg>;
    case "check": return <svg viewBox="0 0 24 24" {...s}><path d="M5 12l5 5L20 7"/></svg>;
    case "fb": return <svg viewBox="0 0 24 24" {...s}><path d="M15 8h-2a1 1 0 0 0-1 1v3m0 0h3m-3 0v9m0-9H9"/></svg>;
    case "ig": return <svg viewBox="0 0 24 24" {...s}><rect x="3" y="3" width="18" height="18" rx="5"/><circle cx="12" cy="12" r="4"/><circle cx="17.5" cy="6.5" r="1" fill={color}/></svg>;
    case "yt": return <svg viewBox="0 0 24 24" {...s}><rect x="3" y="6" width="18" height="12" rx="3"/><path d="M10 9l5 3-5 3z" fill={color}/></svg>;
    case "tool": return <svg viewBox="0 0 24 24" {...s}><path d="M14 7a4 4 0 0 1 5 5l-2-1-2 2 1 2a4 4 0 0 1-5-5L8 14l-4 4 2 2 4-4 4-4z"/></svg>;
    case "key": return <svg viewBox="0 0 24 24" {...s}><circle cx="8" cy="15" r="4"/><path d="M11 13l9-9M17 7l3 3M14 10l3 3"/></svg>;
    case "compass": return <svg viewBox="0 0 24 24" {...s}><circle cx="12" cy="12" r="9"/><path d="M15 9l-2 6-6 2 2-6 6-2z"/></svg>;
  }
  return null;
}

window.Icon = Icon;
