import { CheckCheck } from 'lucide-react';
import { JSX } from 'react';

// ─── Custom SVG Icon Components ───────────────────────────────────────────────

const AccessibilityMobilityIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M26.51,25.36c-.38-.14-.82.07-.96.46-1.08,3.09-4.01,5.17-7.29,5.17-4.26,0-7.73-3.47-7.73-7.73,0-2.77,1.49-5.34,3.9-6.72.24-.13.32-.34.35-.45.05-.19.02-.39-.08-.57-.16-.28-.44-.38-.65-.38-.13,0-.25.03-.37.1-2.87,1.64-4.65,4.71-4.65,8.01,0,5.09,4.14,9.23,9.23,9.23,3.91,0,7.41-2.48,8.71-6.17.07-.19.06-.39-.03-.57-.09-.18-.24-.32-.42-.38Z"/>
    <path d="M33.1,28.67l-2.82-8.48c-.1-.31-.39-.51-.71-.51h-7.94l-1.38-4.16h6.5c.41,0,.75-.34.75-.75s-.34-.75-.75-.75h-7l-.77-2.31c-.13-.38-.57-.59-.95-.47-.39.13-.6.55-.47.95l2.82,8.48c.1.31.39.51.71.51h7.94l2.65,7.96c.12.36.44.52.71.52.08,0,.16-.01.24-.04.39-.13.6-.55.47-.94Z"/>
    <path d="M16.85,9.13c.89,0,1.62-.73,1.62-1.62s-.73-1.62-1.62-1.62-1.62.73-1.62,1.62.73,1.62,1.62,1.62Z"/>
  </svg>
);

const BathroomToiletriesIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M34.47,21.06h-.54v-11.26c-.02-3.14-2.49-5.72-5.63-5.86-3.14-.14-5.84,2.2-6.14,5.32h-1.1c-.89,0-1.61.72-1.61,1.61v1.07c0,.3.24.54.54.54h6.43c.3,0,.54-.24.54-.54v-1.07c0-.89-.72-1.61-1.61-1.61h-.49c.29-1.64,1.78-2.79,3.44-2.65,1.66.14,2.94,1.52,2.95,3.19v11.26h-12.87c0-.89-.72-1.61-1.61-1.61h-5.36c-.89,0-1.61.72-1.61,1.61h-4.29c-.89,0-1.6.72-1.61,1.61,0,.89.72,1.61,1.61,1.61h.12l.83,3.3c.7,2.84,3.11,4.93,6.03,5.24v1.65c0,.89.72,1.61,1.61,1.61s1.61-.72,1.61-1.61v-1.61h8.58v1.61c0,.89.72,1.61,1.61,1.61s1.61-.72,1.61-1.61v-1.65c2.91-.3,5.32-2.4,6.03-5.24l.83-3.3h.12c.89,0,1.6-.72,1.61-1.61,0-.89-.72-1.61-1.61-1.61ZM25.36,10.34c.3,0,.54.24.54.54v.54h-5.36v-.54c0-.3.24-.54.54-.54h4.29ZM28.04,5.51c-2.16,0-3.98,1.61-4.25,3.75h-.54c.29-2.54,2.51-4.41,5.06-4.27,2.55.14,4.55,2.25,4.56,4.8v11.26h-.54v-11.26c0-2.37-1.92-4.29-4.29-4.29ZM10.89,21.06c0-.3.24-.54.54-.54h5.36c.3,0,.54.24.54.54v3.75h-6.43v-3.75ZM10.35,25.88h7.51v1.07h-7.51v-1.07ZM17.32,28.03v.54c0,.3-.24.54-.54.54h-5.36c-.3,0-.54-.24-.54-.54v-.54h6.43ZM5.53,23.2c-.3,0-.54-.24-.54-.54,0-.14.06-.28.16-.38.1-.1.23-.16.37-.15h4.29v1.07h-4.29ZM14.64,34.46c0,.3-.24.54-.54.54s-.54-.24-.54-.54v-1.61h1.07v1.61ZM26.43,34.46c0,.3-.24.54-.54.54s-.54-.24-.54-.54v-1.61h1.07v1.61ZM32.49,27.31c-.65,2.63-3.01,4.47-5.72,4.47h-13.54c-2.71,0-5.07-1.84-5.72-4.47l-.76-3.04h3.07v.69c-.33.19-.54.54-.54.92v1.07c0,.38.21.73.54.92v.69c0,.89.72,1.61,1.61,1.61h5.36c.89,0,1.61-.72,1.61-1.61v-.69c.33-.19.54-.54.54-.92v-1.07c0-.38-.21-.73-.54-.92v-.69h14.86l-.76,3.04ZM34.85,23.05c-.1.1-.23.16-.38.15h-16.08v-1.07h16.08c.3,0,.54.24.54.54,0,.14-.06.28-.16.38h0Z"/>
    <path d="M22.68,13.55h1.07v1.07h-1.07v-1.07Z"/>
    <path d="M22.68,15.7h1.07v1.07h-1.07v-1.07Z"/>
    <path d="M24.82,13.55h1.07v1.07h-1.07v-1.07Z"/>
    <path d="M24.82,15.7h1.07v1.07h-1.07v-1.07Z"/>
    <path d="M20.54,13.55h1.07v1.07h-1.07v-1.07Z"/>
    <path d="M20.54,15.7h1.07v1.07h-1.07v-1.07Z"/>
  </svg>
);

const BedroomBeddingIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M37.55,26.95h-.58v-4.68c0-1.29-1.05-2.34-2.34-2.34v-9.94c0-1.29-1.05-2.34-2.34-2.34H7.72c-1.29,0-2.34,1.05-2.34,2.34v9.94c-1.29,0-2.34,1.05-2.34,2.34v4.68h-.58c-.32,0-.58.26-.58.58v2.34c0,.32.26.58.58.58h.58v2.34c0,.32.26.58.58.58h1.75c.28,0,.52-.2.57-.47l.49-2.45h27.12l.49,2.45c.05.27.29.47.57.47h1.75c.32,0,.58-.26.58-.58v-2.34h.58c.32,0,.58-.26.58-.58v-2.34c0-.32-.26-.58-.58-.58ZM6.55,9.99c0-.65.52-1.17,1.17-1.17h24.57c.65,0,1.17.52,1.17,1.17v9.94h-1.17v-2.34c0-1.29-1.05-2.34-2.34-2.34h-7.02c-1.29,0-2.34,1.05-2.34,2.34v2.34h-1.17v-2.34c0-1.29-1.05-2.34-2.34-2.34h-7.02c-1.29,0-2.34,1.05-2.34,2.34v2.34h-1.17v-9.94ZM31.11,17.59v2.34h-9.36v-2.34c0-.65.52-1.17,1.17-1.17h7.02c.65,0,1.17.52,1.17,1.17ZM18.25,17.59v2.34h-9.36v-2.34c0-.65.52-1.17,1.17-1.17h7.02c.65,0,1.17.52,1.17,1.17ZM4.21,22.27c0-.65.52-1.17,1.17-1.17h29.25c.65,0,1.17.52,1.17,1.17v4.68H4.21v-4.68ZM4.9,32.22h-.69v-1.75h1.04l-.35,1.75ZM35.79,32.22h-.69l-.35-1.75h1.04v1.75ZM36.96,29.29H3.04v-1.17h33.93v1.17Z"/>
  </svg>
);

const BusinessCenterIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M23.19,33.8v-10.08h-2.81s-.11.29-.11.29c-.21.6-.65,1.04-1.23,1.25l-.45.16.19.44c.11.26.17.53.17.81,0,1.13-.92,2.05-2.05,2.05h-1.29v4.3h1.67v.76h-4.1v-.76h1.67v-4.3h-1.29c-1.13,0-2.05-.92-2.05-2.05,0-.28.06-.55.17-.81l.19-.44-.45-.16c-.58-.21-1.03-.66-1.23-1.24l-.11-.3h-2.87v10.08h-.76v-14.18h4.07l.82-6.55c.13-1.02,1-1.8,2.04-1.8h3.73c.18,0,.35.02.52.07l.57.15v-5.29h15.85v10.89h-5.82s.38.68.38.68c.24.43.37.92.37,1.42v.49h5.07s0,14.12,0,14.12h-10.84ZM23.95,33.04h9.31v-4.31h-9.31v4.31ZM23.95,23.78v4.19h9.31v-4.2h-9.31ZM13.55,25.39c-.71,0-1.29.58-1.29,1.29s.58,1.29,1.29,1.29h3.34c.71,0,1.29-.58,1.29-1.29s-.58-1.29-1.29-1.29h-3.34ZM13.36,12.03c-.65,0-1.2.49-1.28,1.13l-1.25,10.02c-.05.37.07.74.31,1.01.24.28.6.44.97.44h6.24c.37,0,.72-.16.97-.44.24-.28.36-.65.31-1.01l-1.25-10.02c-.08-.64-.63-1.13-1.28-1.13h-3.73ZM20.04,20.44l.33,2.52h12.91v-2.53h-13.23ZM7.2,22.96h2.89l.32-2.58h-3.21v2.58ZM25.71,17.07c-.95.17-1.72,1.1-1.76,2.13l-.02.47h4.27s0-.46,0-.46c-.02-1.14-.67-1.95-1.74-2.14h-.02s-.04,0-.04,0h-.65s-.04,0-.04,0ZM19.94,19.62h3.25s0-.45,0-.45c0-.51.13-1.01.38-1.44l.39-.68-4.34-.02.32,2.59ZM18.94,7.02v5.42l.04.08c.07.17.12.35.14.54l.4,3.16h13.74V7.02h-14.32Z"/>
  </svg>
);

const CheckInFrontDeskIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M14.47,12.12c-1.59,0-2.88-1.29-2.88-2.88s1.29-2.88,2.88-2.88,2.88,1.29,2.88,2.88-1.29,2.88-2.88,2.88ZM14.47,7.41c-1.01,0-1.83.82-1.83,1.83s.82,1.83,1.83,1.83,1.83-.82,1.83-1.83-.82-1.83-1.83-1.83Z"/>
    <path d="M6.6,33.63v-13.09s3.06,0,3.06,0v-4.27c0-1.97,1.6-3.56,3.56-3.56h2.5c1.97,0,3.56,1.6,3.56,3.56v4.27h4.23v-4.36h8.45v4.36h1.9v13.09H6.6ZM7.64,32.59h25.18v-7.74H7.64v7.74ZM7.64,23.81h25.18v-2.22H7.64v2.22ZM24.56,20.54h6.36v-3.31h-6.36v3.31ZM13.22,13.75c-1.39,0-2.52,1.13-2.52,2.52v4.27h7.54v-4.27c0-1.39-1.13-2.52-2.52-2.52h-.73v3.44h-1.04v-3.44h-.73Z"/>
  </svg>
);

const DiningVenueBarsIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M20.23,11.11c-1.17,0-2.12-.95-2.12-2.12s.95-2.12,2.12-2.12,2.12.95,2.12,2.12-.95,2.12-2.12,2.12ZM20.23,7.72c-.7,0-1.27.57-1.27,1.27s.57,1.27,1.27,1.27,1.27-.57,1.27-1.27-.57-1.27-1.27-1.27Z"/>
    <path d="M31.25,22.12H9.22c-.24,0-.43-.19-.43-.43,0-6.31,5.13-11.44,11.44-11.44s11.44,5.13,11.44,11.44c0,.24-.19.43-.43.43ZM9.65,21.27h21.16c-.22-5.64-4.88-10.16-10.58-10.16s-10.36,4.52-10.58,10.16Z"/>
    <path d="M32.94,22.12H7.52c-.24,0-.43-.19-.43-.43s.19-.43.43-.43h25.42c.24,0,.43.19.43.43s-.19.43-.43.43Z"/>
    <path d="M10.91,33.13c-.11,0-.22-.04-.3-.12l-3.39-3.39c-.08-.08-.12-.19-.12-.3s.04-.22.12-.3l3.27-3.27c.04-1.18.52-2.28,1.36-3.12.88-.88,2.05-1.37,3.3-1.37h2.54c.56,0,1.1.23,1.5.62s.62.93.62,1.5c0,.46-.15.91-.42,1.27h1.54l2.8-2.24c.93-.74,2.09-1.15,3.28-1.15.68,0,1.3.43,1.52,1.08.23.65.02,1.37-.51,1.79l-5.83,4.66c-.06.05-.14.08-.22.09l-7.48.83-3.28,3.28c-.08.08-.19.12-.3.12ZM8.13,29.32l2.79,2.79,3.09-3.09c.07-.07.16-.11.25-.12l7.5-.83,5.73-4.58c.25-.2.35-.54.24-.85-.11-.3-.4-.51-.72-.51-1,0-1.97.34-2.75.96l-2.91,2.33c-.08.06-.17.09-.27.09h-5.93c-.24,0-.43-.19-.43-.43s.19-.43.43-.43h2.54c.33,0,.66-.14.9-.37.24-.24.37-.56.37-.9s-.13-.66-.37-.9c-.24-.24-.56-.37-.9-.37h-2.54c-1.02,0-1.97.4-2.69,1.12-.72.72-1.12,1.68-1.12,2.69,0,.11-.04.22-.12.3l-3.09,3.09Z"/>
  </svg>
);

const FamilyKidsBabyIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M20.17,13.39l.07.04.07-.04c2.6-1.6,3.86-3.06,3.83-4.44,0-1.35-1.09-2.44-2.44-2.44-.46,0-.91.13-1.3.37l-.16.1-.16-.1c-.39-.24-.84-.37-1.3-.37-1.35,0-2.44,1.1-2.44,2.44,0,1.4,1.25,2.85,3.83,4.43ZM20.4,12.13l-.17.11-.17-.11c-1.81-1.2-2.72-2.27-2.72-3.17,0-.79.64-1.44,1.42-1.44h.04c.57,0,.98.39,1.34.8l.09.11.1-.11c.35-.4.77-.81,1.3-.81.02,0,.05,0,.08,0,.78,0,1.42.65,1.42,1.44,0,.91-.92,1.98-2.72,3.17Z"/>
    <path d="M29.54,22.53l-.47-.21.41-.31c1.14-.87,1.8-2.19,1.8-3.63,0-2.51-2.05-4.56-4.56-4.56s-4.56,2.05-4.56,4.56c0,1.43.66,2.75,1.8,3.63l.41.31-.47.21c-.27.12-.54.26-.79.41l-.2.12-.17-.15c-.69-.63-1.58-.97-2.52-.97-.5,0-.98.1-1.43.29l-.18.07-.14-.13c-.57-.52-1.21-.95-1.91-1.26l-.47-.21.41-.31c1.14-.87,1.8-2.19,1.8-3.63,0-2.51-2.05-4.56-4.56-4.56s-4.56,2.05-4.56,4.56c0,1.43.66,2.76,1.8,3.63l.41.31-.47.21c-2.54,1.12-4.17,3.63-4.17,6.4v6.18h26.97v-4.56c0-2.76-1.64-5.28-4.17-6.4ZM23.52,23.86l.24-.14c.9-.51,1.92-.79,2.96-.79,3.3,0,5.99,2.69,5.99,5.99v3.55h-7.94l-.04-.25c-.22-1.3-.99-2.44-2.12-3.13l-.37-.23.34-.27c.89-.72,1.4-1.78,1.4-2.92,0-.54-.12-1.07-.34-1.57l-.12-.25ZM16.79,32.1c.4-1.57,1.82-2.67,3.44-2.67s3.04,1.1,3.44,2.67l.1.38h-7.08l.1-.38ZM20.23,28.42c-1.51,0-2.74-1.23-2.74-2.74s1.23-2.74,2.74-2.74,2.74,1.23,2.74,2.74-1.23,2.74-2.74,2.74ZM17.53,23.09c-.67.7-1.04,1.62-1.04,2.59,0,1.14.51,2.2,1.4,2.92l.34.27-.37.23c-1.13.69-1.9,1.83-2.12,3.13l-.04.25h-7.94v-5.18c0-3.3,2.69-5.99,5.99-5.99,1.36,0,2.7.47,3.76,1.33l.26.21-.23.24ZM30.28,18.38c0,1.96-1.59,3.55-3.55,3.55s-3.55-1.59-3.55-3.55,1.59-3.55,3.55-3.55,3.55,1.59,3.55,3.55ZM13.74,20.31c-1.96,0-3.55-1.59-3.55-3.55s1.59-3.55,3.55-3.55,3.55,1.59,3.55,3.55-1.59,3.55-3.55,3.55Z"/>
  </svg>
);

const FitnessSportsIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M32.87,30.2c1.08-.77,1.79-2.03,1.79-3.46,0-1.93-1.31-3.6-3.16-4.05l-.99-.28v-8.79h1.63c.28,0,.5-.22.5-.5s-.22-.5-.5-.5h-6.09c-.53,0-1.01-.24-1.32-.67-.31-.43-.4-.96-.24-1.46l1.36-4.26c.08-.26-.06-.54-.33-.63-.26-.08-.54.06-.63.32l-1.36,4.26c-.26.81-.12,1.67.38,2.36.5.69,1.27,1.08,2.12,1.08v7.52l-11.63-3.28c-.35-.11-.72-.17-1.09-.22v-2.5h3.12c.28,0,.5-.22.5-.5,0-2.19-1.78-3.97-3.97-3.97h-1.9c-1.3,0-2.37,1.06-2.37,2.37v1.6c0,.28.22.5.5.5h3.12v2.45c-3.61.09-6.52,3.05-6.52,6.68,0,2.41,1.28,4.51,3.19,5.69h-.25c-1.62,0-2.94,1.32-2.94,2.94v1.03c0,.28.22.5.5.5h27.86c.28,0,.5-.22.5-.5v-1.03c0-1.21-.74-2.26-1.79-2.7ZM9.71,13.03c0-.75.61-1.37,1.37-1.37h1.9c1.47,0,2.69,1.07,2.93,2.47h-6.19v-1.1ZM27.04,13.62h2.47v8.5l-2.47-.7v-7.81ZM6.8,24.27c0-3.14,2.55-5.69,5.69-5.69.56,0,1.11.08,1.64.24l17.11,4.83c1.42.35,2.42,1.62,2.42,3.08,0,1.78-1.42,3.23-3.17,3.23H12.49c-3.14,0-5.69-2.55-5.69-5.69ZM33.66,33.43H6.8v-.53c0-1.07.87-1.94,1.94-1.94h22.98c1.07,0,1.94.87,1.94,1.94v.53Z"/>
    <path d="M17.98,23.77h-2.31c-.24-1.54-1.57-2.72-3.17-2.72-1.78,0-3.23,1.45-3.23,3.22s1.45,3.23,3.23,3.23c1.61,0,2.93-1.19,3.17-2.73h2.31c.28,0,.5-.22.5-.5s-.22-.5-.5-.5ZM12.49,26.5c-1.23,0-2.23-1-2.23-2.23s1-2.22,2.23-2.22,2.22,1,2.22,2.22-1,2.23-2.22,2.23Z"/>
  </svg>
);

const FoodDrinksIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M35.48,27.29h-3.61c1.31-.95,2.17-2.48,2.17-4.22v-2.44c0-.28-.22-.5-.5-.5h-.91v-.07c0-1.85-1.5-3.35-3.35-3.35-.22,0-.45.02-.67.07-.63-.84-1.63-1.35-2.69-1.35s-2.06.51-2.69,1.35c-.22-.04-.44-.07-.67-.07-1.85,0-3.35,1.5-3.35,3.35v.07h-.91c-.28,0-.5.22-.5.5v2.44c0,1.74.86,3.27,2.17,4.22h-3.11v-14.7c0-.28-.22-.5-.5-.5h-4.53v-1.97c0-.71.58-1.29,1.29-1.29h1.31c.28,0,.5-.22.5-.5s-.22-.5-.5-.5h-1.31c-1.26,0-2.29,1.03-2.29,2.29v1.97h-4.53c-.28,0-.5.22-.5.5v14.7h-1.43c-.28,0-.5.22-.5.5v.7c0,2.02,1.64,3.66,3.66,3.66h24.75c2.02,0,3.66-1.64,3.66-3.66v-.7c0-.28-.22-.5-.5-.5ZM20.23,20.07c0-1.3,1.05-2.35,2.35-2.35.25,0,.49.04.73.12.23.07.47-.02.59-.22.42-.73,1.2-1.18,2.04-1.18s1.62.45,2.04,1.18c.12.21.36.3.59.23.24-.08.48-.12.73-.12,1.3,0,2.35,1.05,2.35,2.35v.07h-11.41v-.07ZM18.83,23.07v-1.94h14.22v1.94c0,2.33-1.89,4.22-4.22,4.22h-5.78c-2.33,0-4.22-1.89-4.22-4.22ZM6.84,17.61h9.06v5.81H6.84v-5.81ZM15.9,13.1v3.51H6.84v-3.51h9.06ZM6.84,24.42h9.06v2.87H6.84v-2.87ZM34.98,28.5c0,1.47-1.2,2.66-2.66,2.66H7.57c-1.47,0-2.66-1.2-2.66-2.66v-.2h30.08v.2Z"/>
  </svg>
);

const FurnitureRoomLayoutIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M31.59,33.76c-.33,0-.59-.27-.59-.59v-1.52h-8.3v1.52c0,.33-.27.59-.59.59s-.59-.27-.59-.59v-1.52h-1.51c-.33,0-.59-.27-.59-.59v-2.57H7.43v4.68c0,.33-.27.59-.59.59s-.59-.27-.59-.59V14.8h-1.05c-.33,0-.59-.27-.59-.59v-6.78h-.46c-.33,0-.59-.27-.59-.59s.27-.59.59-.59h31.73c.33,0,.59.27.59.59s-.27.59-.59.59h-.46v6.78c0,.33-.27.59-.59.59h-1.05v16.26c0,.33-.27.59-.59.59h-.99v1.52c0,.33-.27.59-.59.59ZM20.59,30.47h11.98v-7.24h-11.98v7.24ZM7.43,27.31h11.98v-12.51H7.43v12.51ZM20.59,22.04h11.98v-7.24h-11.98v7.24ZM20.59,13.62h13.63v-6.19h-13.63v6.19ZM5.78,13.62h13.63v-6.19H5.78v6.19Z"/>
    <path d="M25.79,19.01c-.33,0-.59-.27-.59-.59s.27-.59.59-.59h1.58c.33,0,.59.27.59.59s-.27.59-.59.59h-1.58Z"/>
    <path d="M25.79,27.44c-.33,0-.59-.27-.59-.59s.27-.59.59-.59h1.58c.33,0,.59.27.59.59s-.27.59-.59.59h-1.58Z"/>
    <circle cx="15.79" cy="10.52" r=".59"/>
    <path d="M24.21,11.11c-.33,0-.59-.27-.59-.59s.27-.59.59-.59.59.27.59.59-.27.59-.59.59Z"/>
  </svg>
);

const HealthHygieneIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M20.23,20.36c-2.93,0-5.32-2.38-5.32-5.32,0-1.8,1.89-4.77,5.32-8.38,3.43,3.61,5.32,6.58,5.32,8.38,0,2.93-2.38,5.32-5.32,5.32ZM19.97,8.27c-.42.47-4.14,4.65-4.14,6.78,0,2.43,1.98,4.41,4.41,4.41s4.41-1.98,4.41-4.41c0-2.13-3.72-6.31-4.14-6.78l-.26-.29-.26.29Z"/>
    <polygon points="19.78 17.12 19.78 15.5 18.16 15.5 18.16 14.59 19.78 14.59 19.78 12.97 20.69 12.97 20.69 14.59 22.31 14.59 22.31 15.5 20.69 15.5 20.69 17.12 19.78 17.12"/>
    <path d="M21.4,33.33v-7.1l5.32-6.66c.41-.4.95-.62,1.52-.62.27,0,.53.05.78.14l.48.19v-7.48c0-1.14.93-2.07,2.08-2.07s2.07.93,2.07,2.07v12.79l-3.24,5.17v3.56h-9.01ZM28.24,19.86c-.32,0-.62.12-.86.33l-.02.02-5.05,6.34v5.87h7.2v-2.92l3.24-5.17v-12.53c0-.64-.52-1.17-1.17-1.17s-1.17.52-1.17,1.17v8.92h0v.36c.01.57-.19,1.11-.58,1.52l-.02.02-2.57,3.73-.75-.51,2.67-3.85c.22-.24.35-.54.35-.87s-.13-.66-.37-.89-.56-.37-.89-.37Z"/>
    <path d="M10.05,33.33v-3.56l-3.24-5.17v-12.79c0-1.14.93-2.07,2.07-2.07s2.07.93,2.07,2.07v7.48s.49-.19.49-.19c.25-.1.51-.14.78-.14.57,0,1.11.22,1.52.62l5.32,6.66v7.1h-9.01ZM10.96,32.42h7.2v-5.87l-5.05-6.34-.02-.02c-.23-.22-.54-.33-.86-.33-.34,0-.66.13-.89.37s-.37.56-.37.89.12.63.35.87l2.67,3.85-.75.51-2.57-3.73-.02-.02c-.39-.41-.6-.95-.59-1.52v-.36s0,0,0,0v-8.92c0-.64-.52-1.17-1.17-1.17s-1.17.52-1.17,1.17v12.53l3.24,5.17v2.92Z"/>
  </svg>
);

const HearingVisionAccessibilityIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M34.98,26.23s-.88-1.13-2.24-2.23c-.81-.65-1.63-1.17-2.45-1.54-1.04-.47-2.07-.72-3.07-.72s-2.03.24-3.07.72c-.16.07-.33.18-.49.27l-2.89-2.89c1.16-1.55,1.81-3.45,1.81-5.41,0-3.72-3.03-6.75-6.75-6.75-1.98,0-3.76.86-5,2.23l-1.62-1.62c-.2-.2-.51-.2-.71,0s-.2.51,0,.71l1.7,1.7c-.71,1.07-1.13,2.36-1.13,3.74v10.09c0,2.34,1.91,4.25,4.25,4.25s4.25-1.91,4.25-4.25c0-.97.41-1.91,1.13-2.57l.95-.87c.17-.15.32-.31.47-.48l2.64,2.64c-.36.23-.71.48-1.06.76-1.37,1.1-2.21,2.19-2.24,2.23l-.22.28.22.28s.88,1.13,2.24,2.23c.81.65,1.63,1.17,2.45,1.54,1.04.47,2.07.72,3.07.72s1.94-.23,2.94-.66l2.56,2.56c.1.1.23.15.35.15s.26-.05.35-.15c.2-.2.2-.51,0-.71l-2.34-2.34c.55-.32,1.11-.67,1.66-1.11,1.37-1.1,2.21-2.19,2.24-2.23l.22-.28-.22-.29ZM15.83,8.67c3.17,0,5.75,2.58,5.75,5.75,0,1.7-.54,3.34-1.52,4.7l-1.44-1.44c.61-.27,1.04-.89,1.04-1.6,0-.97-.79-1.75-1.75-1.75-.71,0-1.32.43-1.6,1.04l-1.32-1.32c.05-.08.08-.16.08-.26,0-.28-.22-.5-.5-.5-.11,0-.21.02-.31.03l-.93-.93c.07-.08.13-.17.2-.25.62-.63,1.43-.98,2.29-.98h0c1.24,0,2.36.69,2.91,1.81.12.25.42.35.67.23.25-.12.35-.42.22-.67-.72-1.46-2.18-2.36-3.81-2.36h0c-1.13,0-2.2.45-3.01,1.27-.07.08-.13.16-.2.25l-1.09-1.09c1.05-1.18,2.59-1.93,4.29-1.93ZM17.16,16.09c0-.41.34-.75.75-.75s.75.34.75.75-.34.75-.75.75c-.06,0-.12-.02-.17-.03l-.54-.54c-.01-.06-.03-.11-.03-.17ZM12.81,13.28l.38.38c-.2.11-.39.24-.56.38.03-.26.09-.52.19-.76ZM18.98,20.34l-.95.87c-.92.85-1.45,2.05-1.45,3.3,0,1.79-1.46,3.25-3.25,3.25s-3.25-1.46-3.25-3.25v-10.09c0-1.1.32-2.13.86-3.01l1.12,1.12c-.3.6-.48,1.25-.48,1.93v2.72c0,.82.66,1.48,1.48,1.48s1.48.66,1.48,1.48c0,.45-.2.86-.54,1.15l-1.77,1.45c-.21.17-.25.49-.07.7.1.12.24.18.39.18.11,0,.22-.04.32-.11l1.77-1.45c.58-.47.91-1.17.91-1.92,0-1.37-1.11-2.48-2.48-2.48-.26,0-.48-.22-.48-.48v-.9c0-.88.57-1.62,1.36-1.89l2.38,2.38c.18.4.5.73.9.9l2.2,2.2c-.14.15-.28.3-.44.45ZM27.22,30.35c-1.97,0-3.76-1.11-4.92-2.04-.88-.71-1.54-1.42-1.87-1.8.46-.53,1.55-1.7,3-2.61l.93.93c-.29.49-.47,1.06-.47,1.67,0,1.83,1.49,3.32,3.32,3.32.61,0,1.18-.18,1.67-.47l.55.55c-.7.27-1.45.44-2.22.44ZM27.71,26.77l-.75-.75c.08-.04.16-.07.26-.07.31,0,.56.25.56.56,0,.09-.03.18-.07.26ZM29.01,28.07l-.63-.63c.2-.26.33-.58.33-.93,0-.83-.67-1.5-1.5-1.5-.35,0-.67.13-.93.33l-.63-.63c.42-.36.96-.59,1.56-.59,1.32,0,2.39,1.07,2.39,2.39,0,.6-.23,1.14-.59,1.56ZM25.75,26.23c-.02.09-.03.19-.03.29,0,.83.67,1.5,1.5,1.5.1,0,.2-.01.29-.03l.7.7c-.3.14-.63.22-.99.22-1.32,0-2.39-1.07-2.39-2.39,0-.35.08-.69.22-.99l.7.7ZM30.41,29.47l-.73-.73c.53-.59.87-1.36.87-2.22,0-1.83-1.49-3.32-3.32-3.32-.86,0-1.63.33-2.22.87l-.66-.66c.88-.43,1.86-.73,2.88-.73,1.97,0,3.76,1.11,4.92,2.04.88.71,1.54,1.42,1.87,1.8-.52.6-1.85,2.02-3.6,2.95Z"/>
  </svg>
);

const HousekeepingLaundryIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M31.62,14.25h-.46l-1.49-3.77c-.08-.21-.28-.35-.51-.35h-12.25v-3.53c0-.3-.25-.55-.55-.55h-3.3c-.3,0-.55.25-.55.55v14.65h-.33c-.3,0-.55.25-.55.55v2.75h-1.6c-.3,0-.55.25-.55.55v3.21l-1.62,4.92c-.06.17-.03.35.08.49.1.14.27.23.44.23h21.18c.29,0,.53-.23.55-.51l1.19-18.08h.32c.3,0,.55-.25.55-.55s-.25-.55-.55-.55ZM15.82,7.15v14.1h-2.2V7.15h2.2ZM10.58,27.85v-2.2h8.26v2.2h-8.26ZM20.25,18.14v-2.79h4.21v2.79h-4.21ZM16.91,14.25v-3.03h11.88l1.19,3.03h-13.07ZM19,28.94l1.29,3.91h-11.14l1.29-3.91h8.57ZM21.44,32.85l-1.5-4.54v-3.21c0-.3-.25-.55-.55-.55h-1.6v-2.75c0-.3-.25-.55-.55-.55h-.33v-5.9h2.24v3.34c0,.3.25.55.55.55h5.31c.3,0,.55-.25.55-.55v-3.34h4.64l-1.15,17.5h-7.61ZM12.73,24.55v-2.2h3.97v2.2h-3.97Z"/>
  </svg>
);

const InRoomTechEntertainmentIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M15.57,34.02c-.25,0-.45-.2-.45-.45s.2-.45.45-.45h4.27v-2.64h-11.35c-1.22,0-2.22-1-2.22-2.22v-15.93c0-1.22,1-2.22,2.22-2.22h10.71l-3.36-3.36c-.09-.09-.13-.2-.13-.32s.05-.23.13-.32c.09-.09.2-.13.32-.13s.23.05.32.13l3.81,3.81,3.81-3.81c.09-.09.2-.13.32-.13s.23.05.32.13c.18.18.18.46,0,.64l-3.36,3.36h10.71c1.22,0,2.22,1,2.22,2.22v15.93c0,1.22-1,2.22-2.22,2.22h-11.35v2.64h4.27c.25,0,.45.2.45.45s-.2.45-.45.45h-9.44ZM7.17,28.26c0,.73.59,1.32,1.32,1.32h23.6c.73,0,1.32-.59,1.32-1.32v-1.32H7.17v1.32ZM8.49,11.01c-.73,0-1.32.59-1.32,1.32v13.71h26.23v-13.71c0-.73-.59-1.32-1.32-1.32H8.49Z"/>
  </svg>
);

const InternetConnectivityIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M20.29,32.59c1.45,0,2.63-1.18,2.63-2.63s-1.18-2.63-2.63-2.63-2.63,1.18-2.63,2.63,1.18,2.63,2.63,2.63Z"/>
    <path d="M20.29,7.41c-6.15,0-11.88,2.78-15.71,7.62-.15.18-.21.41-.18.65s.14.44.33.59c.16.12.34.19.54.19.27,0,.52-.12.69-.33,3.5-4.42,8.72-6.95,14.34-6.95s10.84,2.53,14.34,6.95c.17.21.42.33.69.33.2,0,.39-.07.54-.19.38-.3.44-.85.14-1.23-3.83-4.84-9.56-7.62-15.71-7.62Z"/>
    <path d="M24.09,24.44c.17.21.42.33.69.33.2,0,.39-.07.54-.19.38-.3.44-.85.14-1.23-1.26-1.59-3.14-2.5-5.17-2.5s-3.91.91-5.17,2.5c-.3.38-.24.93.14,1.23.16.12.34.19.54.19.27,0,.52-.12.69-.33.92-1.17,2.31-1.84,3.8-1.84s2.87.67,3.8,1.84Z"/>
    <path d="M20.29,15.88c3.55,0,6.85,1.6,9.06,4.39.17.21.42.33.69.33.2,0,.39-.07.54-.19.18-.15.3-.35.33-.59.03-.23-.04-.46-.18-.65-2.55-3.22-6.35-5.06-10.44-5.06s-7.89,1.84-10.44,5.06c-.15.18-.21.41-.18.65s.14.44.33.59c.16.12.34.19.54.19.27,0,.52-.12.69-.33,2.21-2.79,5.52-4.39,9.07-4.39Z"/>
  </svg>
);

const KitchenPantryIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M25.73,33.6c-1.18,0-2.13-.96-2.13-2.13v-7.37c0-1.18.96-2.13,2.13-2.13h.32v-3.1h-3.01c-1.11,0-2.05-.87-2.13-1.98l-.59-8.19c-.04-.59.16-1.17.57-1.61.4-.43.97-.68,1.56-.68h8.19c.59,0,1.16.25,1.56.68.4.43.61,1.02.57,1.61l-.59,8.19c-.08,1.11-1.01,1.98-2.13,1.98h-3.01v3.1h.32c1.18,0,2.13.96,2.13,2.13v7.37c0,1.18-.96,2.13-2.13,2.13h-1.64ZM25.73,22.95c-.63,0-1.14.51-1.14,1.14v7.37c0,.63.51,1.14,1.14,1.14h1.64c.63,0,1.14-.51,1.14-1.14v-7.37c0-.63-.51-1.14-1.14-1.14h-1.64ZM22.46,7.39c-.32,0-.62.13-.84.36-.22.23-.33.54-.3.86l.59,8.19c.04.59.54,1.06,1.14,1.06h7.02c.6,0,1.1-.47,1.14-1.06l.59-8.19c.02-.32-.08-.62-.3-.86-.22-.23-.52-.36-.84-.36h-8.19Z"/>
    <rect x="27.69" y="9.67" width=".99" height="5.91"/>
    <rect x="24.42" y="9.67" width=".99" height="5.91"/>
    <path d="M11.69,33.6c-1.18,0-2.13-.96-2.13-2.13v-7.37c0-1.18.96-2.13,2.13-2.13h.32v-3.13l-.25-.06c-1.17-.28-2.26-1.19-3.15-2.65-.95-1.54-1.51-3.46-1.51-5.13s.56-2.87,1.65-3.64c.91-.64,2.14-.95,3.76-.95s2.86.31,3.76.95c1.09.77,1.65,2,1.65,3.64s-.57,3.59-1.51,5.13c-.89,1.45-1.98,2.37-3.15,2.65l-.25.06v3.13h.32c1.18,0,2.13.96,2.13,2.13v7.37c0,1.18-.96,2.13-2.13,2.13h-1.64ZM11.69,22.95c-.63,0-1.14.51-1.14,1.14v7.37c0,.63.51,1.14,1.14,1.14h1.64c.63,0,1.14-.51,1.14-1.14v-7.37c0-.63-.51-1.14-1.14-1.14h-1.64ZM12.5,7.39c-.3,0-.51.19-.7.58-.29.61-.43,1.62-.43,3.02s.14,2.96.38,4.29c.13.75.29,1.38.46,1.86l.3.86.3-.86c.17-.48.33-1.11.46-1.86.24-1.34.38-2.94.38-4.29s-.15-2.42-.43-3.02c-.18-.39-.4-.57-.69-.58h-.03ZM10.29,7.69c-1.97.64-2.2,2.19-2.2,3.3,0,2.09,1,4.57,2.38,5.91l.81.79-.27-1.1c-.05-.2-.1-.4-.14-.62-.31-1.5-.49-3.36-.49-4.97,0-1.23.11-2.18.32-2.9l.18-.59-.59.19ZM14.32,8.09c.22.72.32,1.67.32,2.9,0,1.62-.18,3.48-.49,4.97-.05.22-.09.43-.14.63l-.27,1.09.81-.78c1.38-1.33,2.38-3.82,2.38-5.91,0-1.11-.23-2.66-2.2-3.3l-.59-.19.18.59Z"/>
  </svg>
);

const LeisureRecreationIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M22.67,18.46h-4.88c-1.61,0-2.92-1.31-2.92-2.92v-1.21c0-.28.22-.5.5-.5h9.72c.28,0,.5.22.5.5v1.21c0,1.61-1.31,2.92-2.92,2.92ZM15.87,14.83v.71c0,1.06.86,1.92,1.92,1.92h4.88c1.06,0,1.92-.86,1.92-1.92v-.71h-8.72Z"/>
    <path d="M32.4,18.46h-4.88c-1.61,0-2.92-1.31-2.92-2.92v-1.21c0-.28.22-.5.5-.5h7.7l-12.8-6.75c-.24-.13-.34-.43-.21-.68.13-.25.43-.34.68-.21l14.58,7.69s.07.04.1.07h0c.02.01.03.03.05.05h0c.08.09.12.2.13.33h0v1.21c0,1.61-1.31,2.92-2.92,2.92ZM25.6,14.83v.71c0,1.06.86,1.92,1.92,1.92h4.88c1.06,0,1.92-.86,1.92-1.92v-.71h-8.72Z"/>
    <path d="M12.95,18.46h-4.88c-1.61,0-2.92-1.31-2.92-2.92v-1.21h0c0-.13.05-.25.13-.33h0s.03-.03.05-.05c0,0,0,0,0,0h0s.06-.05.1-.07l14.58-7.69.47.88-12.8,6.75h7.71c.28,0,.5.22.5.5v1.21c0,1.61-1.31,2.92-2.92,2.92ZM6.15,14.83v.71c0,1.06.86,1.92,1.92,1.92h4.88c1.06,0,1.92-.86,1.92-1.92v-.71H6.15Z"/>
    <path d="M25.1,14.83c-.17,0-.33-.08-.42-.23l-4.86-7.69c-.15-.23-.08-.54.16-.69.23-.15.54-.08.69.16l4.86,7.69c.15.23.08.54-.16.69-.08.05-.18.08-.27.08Z"/>
    <path d="M15.37,14.83c-.09,0-.18-.02-.27-.08-.23-.15-.3-.46-.16-.69l4.86-7.69c.15-.23.46-.3.69-.16.23.15.3.46.16.69l-4.86,7.69c-.1.15-.26.23-.42.23Z"/>
    <path d="M20.23,7.14c-.28,0-.5-.22-.5-.5v-2.14c0-.28.22-.5.5-.5s.5.22.5.5v2.14c0,.28-.22.5-.5.5Z"/>
    <path d="M20.23,28.19c-.28,0-.5-.22-.5-.5v-9.72c0-.28.22-.5.5-.5s.5.22.5.5v9.72c0,.28-.22.5-.5.5Z"/>
    <path d="M34.82,31.82H12.69c-.13,0-.26-.05-.35-.15l-6.66-6.66c-.2-.2-.2-.51,0-.71l1.28-1.28c.9-.9,2.37-.9,3.27,0l4.16,4.16h18.61c1.28,0,2.32,1.04,2.32,2.32v1.82c0,.28-.22.5-.5.5ZM12.89,30.82h21.43v-1.32c0-.73-.59-1.32-1.32-1.32H14.19c-.13,0-.26-.05-.35-.15l-4.31-4.31c-.51-.51-1.35-.51-1.86,0l-.93.93,6.16,6.16Z"/>
    <path d="M12.69,36c-.28,0-.5-.22-.5-.5v-4.18c0-.28.22-.5.5-.5s.5.22.5.5v4.18c0,.28-.22.5-.5.5Z"/>
    <path d="M33,36c-.28,0-.5-.22-.5-.5v-4.18c0-.28.22-.5.5-.5s.5.22.5.5v4.18c0,.28-.22.5-.5.5Z"/>
    <line x1="6.04" y1="33.9" x2="33.85" y2="33.9" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="none"/>
  </svg>
);

const MedicalEmergencyIcon = ({ className }: { className?: string }) => (
  <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="currentColor">
    <path d="M29.63,10.06h-1.07v-1.56h-1.09v1.56h-2.03v-3.11h-10.43v3.11h-2.03v-1.56h-1.09v1.56h-1.06c-2.02,0-3.66,1.64-3.66,3.66v15.67c0,2.02,1.64,3.66,3.66,3.66h18.79c2.02,0,3.66-1.64,3.66-3.66v-15.67c0-2.02-1.64-3.66-3.66-3.66ZM24.36,8.04v2.03h-8.25v-2.03h8.25ZM32.2,13.72v15.67c0,1.42-1.15,2.57-2.57,2.57H10.84c-1.42,0-2.57-1.15-2.57-2.57v-15.67c0-1.42,1.15-2.57,2.57-2.57h18.79c1.42,0,2.57,1.15,2.57,2.57Z"/>
    <path d="M22.8,14.73h-5.14v4.26h-4.26v5.14h4.26v4.26h5.14v-4.26h4.25v-5.14h-4.25v-4.26ZM21.71,23.04v4.25h-2.96v-4.25h-4.26v-2.96h4.26v-4.26h2.96v4.26h4.26v2.96h-4.26Z"/>
  </svg>
);

// ─── Types ─────────────────────────────────────────────────────────────────────

type AmenityGroupConfig = {
  group: string;
  keywords: string[];
  icon: (className?: string) => JSX.Element;
};

// ─── Amenity Groups ────────────────────────────────────────────────────────────

const AMENITY_GROUPS: AmenityGroupConfig[] = [
  {
    group: 'Bathroom & Toiletries',
    keywords: ['bath', 'shower', 'toilet', 'bidet', 'robe', 'slipper', 'wash', 'toiletries', 'soap', 'shampoo', 'towel'],
    icon: (className) => <BathroomToiletriesIcon className={className} />,
  },
  {
    group: 'Bedroom & Bedding',
    keywords: ['bed', 'bedding', 'pillow', 'mattress', 'linen', 'duvet', 'cotton', 'futon', 'blanket', 'sheet'],
    icon: (className) => <BedroomBeddingIcon className={className} />,
  },
  {
    group: 'Internet & Connectivity',
    keywords: ['wifi', 'wireless', 'internet', 'broadband', 'ethernet', 'modem', 'web', 'connectivity', 'network'],
    icon: (className) => <InternetConnectivityIcon className={className} />,
  },
  {
    group: 'In-Room Technology & Entertainment',
    keywords: ['tv', 'television', 'movie', 'dvd', 'blu', 'radio', 'game', 'streaming', 'media', 'entertainment', 'cable', 'screen'],
    icon: (className) => <InRoomTechEntertainmentIcon className={className} />,
  },
  {
    group: 'Dining Venues & Bars',
    keywords: ['restaurant', 'bar', 'lounge', 'bistro', 'cafe', 'buffet', 'dining hall', 'rooftop bar', 'pub'],
    icon: (className) => <DiningVenueBarsIcon className={className} />,
  },
  {
    group: 'Food, Drinks & Meal Inclusions',
    keywords: ['breakfast', 'lunch', 'dinner', 'coffee', 'tea', 'meal', 'snack', 'food', 'drink', 'beverage', 'minibar', 'all-inclusive'],
    icon: (className) => <FoodDrinksIcon className={className} />,
  },
  {
    group: 'Business Center & Office',
    keywords: ['desk', 'printer', 'scanner', 'office', 'conference', 'meeting', 'business', 'fax', 'workspace', 'coworking'],
    icon: (className) => <BusinessCenterIcon className={className} />,
  },
  {
    group: 'Fitness & Sports',
    keywords: ['gym', 'fitness', 'sport', 'tennis', 'golf', 'cycling', 'jogging', 'running', 'weights', 'treadmill'],
    icon: (className) => <FitnessSportsIcon className={className} />,
  },
  {
    group: 'Leisure, Recreation & Activities',
    keywords: ['pool', 'spa', 'sauna', 'jacuzzi', 'hot tub', 'recreation', 'activities', 'leisure', 'game room', 'billiards', 'bowling', 'cinema'],
    icon: (className) => <LeisureRecreationIcon className={className} />,
  },
  {
    group: 'Housekeeping & Laundry',
    keywords: ['housekeeping', 'laundry', 'clean', 'turn down', 'ironing', 'dry cleaning', 'linen service'],
    icon: (className) => <HousekeepingLaundryIcon className={className} />,
  },
  {
    group: 'Check-in, Check-out & Front Desk',
    keywords: ['check-in', 'check-out', 'front desk', 'reception', 'concierge', 'porter', 'butler', 'bell', 'valet'],
    icon: (className) => <CheckInFrontDeskIcon className={className} />,
  },
  {
    group: 'Kitchen, Pantry & Appliances',
    keywords: ['kitchen', 'kitchenette', 'pantry', 'refrigerator', 'fridge', 'microwave', 'oven', 'stove', 'dishwasher', 'kettle', 'toaster', 'coffee maker'],
    icon: (className) => <KitchenPantryIcon className={className} />,
  },
  {
    group: 'Furniture & Room Layout',
    keywords: ['sofa', 'couch', 'chair', 'table', 'wardrobe', 'closet', 'balcony', 'terrace', 'living room', 'lounge area', 'furniture'],
    icon: (className) => <FurnitureRoomLayoutIcon className={className} />,
  },
  {
    group: 'Health, Hygiene & Sanitization',
    keywords: ['sanitizer', 'hygiene', 'disinfect', 'clean protocol', 'health', 'mask', 'gloves', 'temperature check'],
    icon: (className) => <HealthHygieneIcon className={className} />,
  },
  {
    group: 'Medical & Emergency Support',
    keywords: ['medical', 'emergency', 'first aid', 'doctor', 'nurse', 'ambulance', 'hospital', 'defibrillator', 'cpr', 'pharmacy'],
    icon: (className) => <MedicalEmergencyIcon className={className} />,
  },
  {
    group: 'Family, Kids & Baby',
    keywords: ['family', 'kids', 'children', 'baby', 'cot', 'crib', 'playroom', 'babysitting', 'child', 'highchair'],
    icon: (className) => <FamilyKidsBabyIcon className={className} />,
  },
  {
    group: 'Accessibility & Mobility',
    keywords: ['wheelchair', 'accessible', 'mobility', 'ramp', 'elevator', 'lift', 'disabled', 'handicap', 'accessibility'],
    icon: (className) => <AccessibilityMobilityIcon className={className} />,
  },
  {
    group: 'Hearing & Vision Accessibility',
    keywords: ['hearing', 'vision', 'blind', 'deaf', 'braille', 'visual alert', 'hearing loop', 'sign language', 'accessibility aid'],
    icon: (className) => <HearingVisionAccessibilityIcon className={className} />,
  },
  {
    group: 'Parking & Transportation',
    keywords: ['parking', 'shuttle', 'transport', 'car', 'airport', 'bike', 'vehicle', 'taxi', 'transfer'],
    icon: (className) => (
      <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
        <rect x="1" y="3" width="15" height="13" rx="2"/><path d="M16 8h4l3 3v5h-7V8z"/><circle cx="5.5" cy="18.5" r="2.5"/><circle cx="18.5" cy="18.5" r="2.5"/>
      </svg>
    ),
  },
  {
    group: 'Safety & Security',
    keywords: ['safe', 'security', 'fire', 'alarm', 'detector', 'cctv', 'surveillance', 'emergency exit', 'lock', 'keycard'],
    icon: (className) => (
      <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
        <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
      </svg>
    ),
  },
  {
    group: 'Power & Devices',
    keywords: ['electrical', 'voltage', 'adapter', 'outlet', 'charging', 'phone', 'laptop', 'usb', 'plug'],
    icon: (className) => (
      <svg className={className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
        <rect x="2" y="7" width="20" height="14" rx="2" ry="2"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>
      </svg>
    ),
  },
];

const DEFAULT_GROUP = {
  group: 'Miscellaneous / Other',
  icon: (className?: string) => <CheckCheck className={className} />,
};

// ─── Helpers ───────────────────────────────────────────────────────────────────

const normalizeAmenity = (amenity: string): string =>
  amenity.toLowerCase().replace(/[_-]+/g, ' ');

export const getAmenityIconGroup = (amenity: string): string => {
  const normalized = normalizeAmenity(amenity);
  return (
    AMENITY_GROUPS.find(({ keywords }) =>
      keywords.some((kw) => normalized.includes(kw))
    )?.group ?? DEFAULT_GROUP.group
  );
};

export const renderAmenityIcon = (amenity: string, className = 'iconSize-20') => {
  const normalized = normalizeAmenity(amenity);
  const matched = AMENITY_GROUPS.find(({ keywords }) =>
    keywords.some((kw) => normalized.includes(kw))
  );
  return matched ? matched.icon(className) : DEFAULT_GROUP.icon(className);
};