:root {
      --primary: #026999;
      --primary-dark: #005c87;
      --secondary: #0f3a75;
      --background: #f8fafc;
      --card-bg: #ffffff;
      --header-bg: rgba(255, 255, 255, 0.85);
      --text: #334155;
      --text-light: #64748b;
      --heading: #0f172a;
      --border: #e2e8f0;
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
      --shadow-md: 0 8px 24px rgba(15, 58, 117, 0.06);
      --shadow-lg: 0 16px 32px rgba(15, 58, 117, 0.1);
      --font-outfit: 'Google Sans', 'Montserrat', sans-serif;
      --font-firago: 'Google Sans', 'Montserrat', sans-serif;
    }

    body.dark-theme {
      --background: #0f172a;
      --card-bg: #1e293b;
      --header-bg: rgba(30, 41, 59, 0.85);
      --text: #cbd5e1;
      --text-light: #94a3b8;
      --heading: #f8fafc;
      --border: #334155;
      --secondary: #60a5fa;
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
      --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
      --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.4);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      height: 100dvh;
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

    body {
      font-family: var(--font-firago);
      background-color: var(--background);
      color: var(--text);
      display: flex;
      flex-direction: column;
    }

    /* Header */
    header {
      position: fixed;
      top: 12px;
      left: 16px;
      right: 16px;
      height: 68px;
      z-index: 10000;
      background: #ffffff;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 22px;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    body.dark-theme header {
      background: #0f172a;
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Header Desktop Search Box (Starts exactly at the right edge of desktop sidebar at 480px) */
    .header-center-desktop {
      position: absolute;
      left: 480px;
      width: 760px;
      max-width: calc(100vw - 780px);
      top: 12px;
      height: 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: stretch;
      z-index: 10001;
    }

    @media (min-width: 769px) {
      .header-center-desktop #search-box-wrapper {
        width: 100% !important;
        height: 44px !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
        transition: all 0.2s ease !important;
      }
      body.dark-theme .header-center-desktop #search-box-wrapper {
        background: #1e293b !important;
        border-color: #334155 !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
      }
      .header-center-desktop #search-box-wrapper:focus-within {
        background: rgba(255, 255, 255, 0.98) !important;
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
      }
      body.dark-theme .header-center-desktop #search-box-wrapper:focus-within {
        background: rgba(15, 23, 42, 0.98) !important;
        border-color: var(--primary) !important;
      }
      .header-center-desktop #search-input {
        height: 44px !important;
        border-radius: 16px !important;
        font-size: 0.82rem !important;
        padding-right: 260px !important;
        background: transparent !important;
      }
      .btn-label-desktop {
        display: inline-block !important;
        white-space: nowrap !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        margin-left: 3px !important;
      }
      .header-center-desktop #btn-near-me,
      .header-center-desktop #btn-toggle-filters {
        width: auto !important;
        padding: 0 12px !important;
        height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        border-radius: 10px !important;
        background: rgba(37, 99, 235, 0.1) !important;
        color: var(--primary) !important;
      }
      .header-center-desktop #filters-dropdown {
        position: absolute !important;
        top: 50px !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--card-bg) !important;
        border: 1px solid var(--border) !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18) !important;
        padding: 16px 18px !important;
        z-index: 10005 !important;
        display: none;
      }
      .header-center-desktop #filters-dropdown.active {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
      }
      #search-volunteer-flex-row #btn-volunteer-toggle {
        width: 100% !important;
        flex: 1 1 100% !important;
      }
      #mobile-search-target:empty {
        display: none !important;
      }
    }

    @media (max-width: 768px) {
      .header-center-desktop {
        display: none !important;
      }
      .btn-label-desktop {
        display: none !important;
      }
      #search-box-wrapper {
        height: 40px !important;
        min-height: 40px !important;
        border-radius: 14px !important;
      }
      #search-input {
        height: 40px !important;
        padding-right: 74px !important;
        font-size: 0.76rem !important;
      }
      #btn-near-me, #btn-toggle-filters {
        height: 28px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
      }
      #filters-dropdown {
        position: static !important;
        border-radius: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
      }
      #filters-dropdown.active {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 8px !important;
        padding: 10px 12px !important;
        border: 1px solid var(--border) !important;
        background: var(--card-bg) !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
      }
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 800;
      font-size: 1.25rem;
      font-family: var(--font-outfit);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .logo-text {
      display: flex;
      flex-direction: column;
    }

    .logo-title {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--heading);
      letter-spacing: -0.5px;
    }

    .logo-subtitle {
      font-size: 0.75rem;
      color: var(--text-light);
      font-weight: 500;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .btn-back {
      text-decoration: none;
      color: var(--secondary);
      font-size: 0.9rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border-radius: 20px;
      border: 1px solid var(--border);
      background-color: white;
      transition: all 0.2s;
    }

    .btn-back:hover {
      background-color: var(--background);
      border-color: var(--primary);
      transform: translateX(-2px);
    }

    .lang-switcher {
      display: flex;
      gap: 4px;
      background: var(--background);
      padding: 4px;
      border-radius: 20px;
      border: 1px solid var(--border);
    }

    .lang-btn {
      border: none;
      background: transparent;
      padding: 6px 12px;
      font-size: 0.8rem;
      font-weight: 700;
      border-radius: 16px;
      cursor: pointer;
      color: var(--text-light);
      transition: all 0.2s;
    }

    .lang-btn.active {
      background: white;
      color: var(--secondary);
      box-shadow: var(--shadow-sm);
    }

    /* Main Layout */
    .app-container {
      display: flex;
      flex-direction: column;
      flex: 1;
      overflow: hidden;
      position: relative;
      z-index: 2;
      pointer-events: none;
      margin-top: 0 !important;
      height: 100vh !important;
      height: 100dvh !important;
      background: transparent !important;
    }
    .app-container > * {
      pointer-events: auto;
    }

    .main-content-area {
      display: flex;
      flex: 1;
      overflow: hidden;
      position: relative;
      background: transparent !important;
      pointer-events: none;
    }
    .main-content-area > * {
      pointer-events: auto;
    }

    /* Desktop Left Column Container */
    @media (min-width: 769px) {
      .desktop-left-column {
        position: fixed;
        top: 94px;
        left: 16px;
        width: 480px;
        height: calc(100vh - 110px);
        height: calc(100dvh - 110px);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 24px;
        box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      body.dark-theme .desktop-left-column {
        background: rgba(15, 23, 42, 0.82);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
      }

      .desktop-left-column .sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        flex: 1;
        min-height: 0;
        height: auto;
        margin: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .desktop-left-column .sidebar.maps-hidden {
        transform: none !important;
        pointer-events: auto !important;
        display: flex !important;
      }

      .desktop-left-column .search-filter-section {
        padding: 14px 16px 10px 16px;
        margin: 0;
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 1;
        box-shadow: none;
        box-sizing: border-box;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      body.dark-theme .desktop-left-column .search-filter-section {
        border-bottom: none;
      }

      .desktop-left-column .places-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        border-top: 1px solid rgba(226, 232, 240, 0.7);
      }
      body.dark-theme .desktop-left-column .places-list {
        border-top-color: rgba(255, 255, 255, 0.1);
      }
    }

    .main-content-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
    }

    .filter-label {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 2px;
      margin-top: 2px;
    }

    /* Accessibility Feature Filters */
    .features-filter-container {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }
    .features-filter-container::-webkit-scrollbar {
      display: none;
    }
    
    /* Enforce no-bold styling for all menu and filter buttons */
    .search-filter-section,
    .search-filter-section *,
    .btn-near-me,
    .btn-ai-scanner,
    .btn-volunteer-toggle,
    .feature-filter-btn,
    .category-btn {
      font-weight: 500 !important;
    }

    .feature-filter-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background-color: var(--card-bg);
      color: var(--text);
      font-family: inherit;
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .feature-filter-btn:hover {
      border-color: var(--primary);
      background-color: rgba(37, 99, 235, 0.03);
    }

    .feature-filter-btn.active {
      background-color: rgba(37, 99, 235, 0.1);
      border-color: var(--primary);
      color: var(--primary);
    }

    body.dark-theme .feature-filter-btn.active {
      background-color: rgba(37, 99, 235, 0.2);
      color: #38bdf8;
      border-color: var(--primary);
    }

    .search-box-wrapper {
      display: flex;
      gap: 8px;
      width: 100%;
      max-width: 600px;
    }

    .search-box {
      position: relative;
    }

    .search-input {
      width: 100%;
      padding: 14px 16px 14px 44px;
      border: 1.5px solid var(--border);
      border-radius: 16px;
      font-family: inherit;
      font-size: 0.76rem !important;
      color: var(--heading);
      background-color: var(--background);
      transition: all 0.2s;
    }

    .search-input::placeholder {
      font-size: 0.76rem !important;
      font-family: inherit;
      color: var(--text-light);
    }

    .search-input:focus {
      outline: none;
      border-color: var(--primary);
      background-color: white;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

    .search-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-light);
      pointer-events: none;
    }

    .btn-near-me {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 12px 16px;
      border-radius: 16px;
      border: 1.5px solid var(--border);
      background-color: white;
      color: var(--secondary);
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .btn-near-me:hover {
      background-color: var(--background);
      border-color: var(--primary);
    }

    .btn-near-me.active {
      background-color: var(--primary);
      border-color: var(--primary);
      color: white;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }

    /* AI Scanner styles */
    .btn-ai-scanner {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 12px 16px;
      border-radius: 16px;
      border: 1.5px solid rgba(0, 172, 236, 0.3);
      background-color: rgba(0, 172, 236, 0.05);
      color: var(--primary);
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .btn-ai-scanner:hover {
      background-color: rgba(0, 172, 236, 0.1);
      border-color: var(--primary);
    }
    .btn-ai-scanner.active {
      background-color: var(--primary);
      border-color: var(--primary);
      color: white;
      box-shadow: 0 4px 12px rgba(0, 172, 236, 0.3);
    }

    .btn-toggle-filters {
      width: 32px;
      height: 32px;
      padding: 0;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      border: none;
      background-color: rgba(15, 23, 42, 0.05);
      color: var(--text);
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.2s;
      box-sizing: border-box;
      flex-shrink: 0;
    }
    .btn-toggle-filters:hover {
      background-color: var(--border);
    }
    .btn-toggle-filters.active {
      background-color: rgba(37, 99, 235, 0.1);
      color: var(--primary);
    }
    .btn-toggle-filters.filtered {
      background-color: rgba(37, 99, 235, 0.1);
      color: var(--primary);
    }

    #filters-dropdown {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.3s ease-out, opacity 0.25s ease-out, margin 0.25s ease-out, padding 0.25s ease-out;
      margin-top: 0;
      padding-bottom: 0;
    }
    #filters-dropdown.active {
      max-height: 560px;
      overflow-y: auto;
      opacity: 1;
      margin-top: 12px;
      padding-bottom: 8px;
    }

    /* Autocomplete Suggestions */
    #autocomplete-results {
      transition: all 0.2s ease-in-out;
    }

    /* Toast Notifications Container */
    .toast-container {
      position: fixed;
      bottom: 24px;
      left: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 12px;
      pointer-events: none;
      width: calc(100% - 48px);
      max-width: 380px;
    }
    .toast-card {
      pointer-events: auto;
      background-color: var(--card-bg);
      border-left: 5px solid var(--primary);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      transform: translateX(-120%);
      opacity: 0;
      transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
      font-family: var(--font-firago);
      box-sizing: border-box;
      border: 1px solid var(--border);
    }
    .toast-card.active {
      transform: translateX(0);
      opacity: 1;
    }
    .toast-card.success {
      border-left-color: #22c55e;
    }
    .toast-card.info {
      border-left-color: #3b82f6;
    }
    .toast-card.warning {
      border-left-color: #eab308;
    }
    .toast-icon {
      font-size: 1.5rem;
      flex-shrink: 0;
    }
    .toast-content {
      flex: 1;
    }
    .toast-title {
      font-weight: 700;
      font-size: 0.85rem;
      margin-bottom: 2px;
      color: var(--text);
    }
    .toast-desc {
      font-size: 0.78rem;
      color: var(--text-light);
      line-height: 1.3;
    }
    .toast-close {
      cursor: pointer;
      color: var(--text-light);
      background: none;
      border: none;
      font-size: 1.2rem;
      padding: 4px;
      line-height: 1;
      margin-left: 8px;
    }

    /* Prevents mobile browser auto-zoom on focused input elements */
    @media (max-width: 768px) {
      input, select, textarea, .search-input, .ai-chat-input {
        font-size: 16px !important;
      }
      .search-input::placeholder {
        font-size: 0.76rem !important;
      }
    }

    /* AI Scanner Modal Overlay */
    .scanner-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 210000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
    }
    .scanner-modal-overlay.active {
      display: flex !important;
    }
    .scanner-modal-content {
      background-color: white;
      border-radius: 24px;
      padding: 24px;
      width: 100%;
      max-width: 480px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
      border: 1px solid var(--border);
      position: relative;
    }
    body.dark-theme .scanner-modal-content {
      background-color: var(--card-bg);
      color: var(--text);
    }

    /* Desktop Dropdown/Flyout Windows for Cabinet and Chat */
    @media (min-width: 769px) {
      #cabinet-modal.scanner-modal-overlay,
      #chat-modal.scanner-modal-overlay,
      #chat-list-modal.scanner-modal-overlay {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        padding: 0 !important;
      }

      #cabinet-modal .scanner-modal-content {
        pointer-events: auto !important;
        position: fixed !important;
        top: 72px !important;
        right: 16px !important;
        width: 520px !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100vh - 90px) !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.6) !important;
        animation: flyoutSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
      }

      #chat-modal .scanner-modal-content,
      #chat-list-modal .scanner-modal-content {
        pointer-events: auto !important;
        position: fixed !important;
        top: 72px !important;
        right: 16px !important;
        width: 420px !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100vh - 90px) !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.6) !important;
        animation: flyoutSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
      }

      body.dark-theme #cabinet-modal .scanner-modal-content,
      body.dark-theme #chat-modal .scanner-modal-content,
      body.dark-theme #chat-list-modal .scanner-modal-content {
        background: rgba(15, 23, 42, 0.94) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
      }

      @keyframes flyoutSlideDown {
        from {
          opacity: 0;
          transform: translateY(-12px) scale(0.98);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
    }

    @media (max-width: 768px) {
      .scanner-modal-overlay {
        justify-content: center;
        align-items: flex-end;
        padding: 0;
        top: 0;
        bottom: 0;
        height: 100%;
        box-sizing: border-box;
      }
      .scanner-modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 88vh;
        overflow-y: auto;
        padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px)) 16px;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.25);
      }
      #cabinet-modal .scanner-modal-content,
      #chat-modal .scanner-modal-content,
      #chat-list-modal .scanner-modal-content {
        border-radius: 20px 20px 0 0;
        height: 90vh;
        max-height: 90vh;
      }
      #cabinet-modal .scanner-modal-content {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
      }
      #chat-modal .scanner-modal-content {
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
      }
    }
    .scanner-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .scanner-title {
      font-size: 1.25rem;
      font-weight: 700;
      font-family: var(--font-firago);
      color: var(--secondary);
    }
    body.dark-theme .scanner-title {
      color: var(--text);
    }
    .scanner-close {
      background: none;
      border: none;
      font-size: 1.75rem;
      cursor: pointer;
      color: var(--text-light);
    }
    .scanner-close:hover {
      color: var(--text);
    }
    .scanner-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 12px;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      width: 100%;
      margin-top: 12px;
    }
    .scanner-btn-primary {
      background-color: var(--primary);
      color: white;
    }
    .scanner-btn-primary:hover {
      background-color: var(--primary-dark);
    }
    .scanner-btn-secondary {
      background-color: var(--background);
      border: 1px solid var(--border);
      color: var(--secondary);
    }
    body.dark-theme .scanner-btn-secondary {
      background-color: rgba(255, 255, 255, 0.05);
      color: var(--text);
    }
    .scanner-btn-secondary:hover {
      background-color: rgba(0,0,0,0.05);
    }
    .scanner-loading {
      text-align: center;
      padding: 24px;
    }
    .scanner-spinner {
      border: 4px solid rgba(0, 172, 236, 0.1);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border-left-color: var(--primary);
      animation: spin 1s linear infinite;
      margin: 0 auto 12px;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .scanner-result-card {
      background-color: rgba(124, 58, 237, 0.03);
      border: 1px dashed rgba(124, 58, 237, 0.2);
      border-radius: 16px;
      padding: 16px;
      margin-top: 16px;
    }
    .scanner-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 0.85rem;
      margin-bottom: 12px;
    }

    /* Switch styles */
    .switch input:checked + .slider {
      background-color: #22c55e;
    }
    .switch .slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: .3s;
      border-radius: 50%;
    }
    .switch input:checked + .slider:before {
      transform: translateX(20px);
    }
    
    /* Volunteer Request Cards in Sidebar */
    .volunteer-request-card {
      background: white;
      border: 1.5px solid rgba(34, 197, 94, 0.2);
      border-radius: 20px;
      padding: 16px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    body.dark-theme .volunteer-request-card {
      background: var(--card-bg);
      border-color: rgba(34, 197, 94, 0.3);
    }
    .volunteer-request-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.1);
      border-color: #22c55e;
    }
    
    /* Request marker styling */
    .request-marker {
      background: #ef4444;
      color: white;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
      border: 2px solid white;
      animation: heartpulse 1.5s infinite;
    }
    .request-marker.accepted {
      background: #22c55e;
      box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
      animation: greenpulse 1.5s infinite;
    }
    .request-marker.offered {
      background: #eab308;
      box-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
      animation: yellowpulse 1.5s infinite;
    }
    .request-marker.completed {
      background: #94a3b8;
      box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
      animation: none;
    }
    @keyframes heartpulse {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
      70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }
    @keyframes greenpulse {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
      70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    }
    @keyframes yellowpulse {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
      70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
    }

    /* Categories Grid/Wrap */
    .categories-container {
      position: static !important;
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 6px !important;
      max-height: none !important;
      overflow: visible !important;
      background-color: transparent !important;
      z-index: auto !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      margin: 0 !important;
      box-sizing: border-box !important;
    }

    /* Floating card on hover override */
    .categories-container:hover,
    .search-filter-section:hover .categories-container {
      max-height: none !important;
      overflow: visible !important;
      box-shadow: none !important;
      border-color: transparent !important;
      padding: 0 !important;
      margin: 0 !important;
      background: transparent !important;
    }

    body.dark-theme .categories-container {
      background-color: transparent !important;
    }

    body.dark-theme .categories-container:hover,
    body.dark-theme .search-filter-section:hover .categories-container {
      background-color: transparent !important;
      box-shadow: none !important;
    }

    /* Desktop Hover Indicator */
    .categories-indicator-desktop {
      position: absolute;
      bottom: -2px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--text-light);
      cursor: pointer;
      pointer-events: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      opacity: 0.8;
      z-index: 101;
    }

    .categories-indicator-desktop svg {
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      animation: bounceMini 2s infinite;
    }

    /* Rotate and fade chevron on hover */
    .categories-container:hover + .categories-indicator-desktop svg,
    .search-filter-section:hover .categories-container + .categories-indicator-desktop svg {
      transform: rotate(180deg);
    }

    .categories-container:hover + .categories-indicator-desktop,
    .search-filter-section:hover .categories-container + .categories-indicator-desktop {
      opacity: 0;
      transform: translateX(-50%) translateY(4px);
    }

    @keyframes bounceMini {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(3px);
      }
    }

    .category-btn {
      white-space: nowrap;
      padding: 6px 12px;
      border-radius: 20px;
      border: 1px solid var(--border);
      background-color: var(--card-bg);
      font-family: inherit;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      transition: all 0.2s;
    }

    .category-btn:hover {
      border-color: var(--primary);
      background-color: rgba(37, 99, 235, 0.02);
    }

    .category-btn.active {
      background-color: var(--secondary);
      border-color: var(--secondary);
      color: white;
      box-shadow: 0 4px 12px rgba(15, 58, 117, 0.15);
    }

    /* Places List */
    .places-list {
      flex: 1;
      overflow-y: auto;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background-color: transparent !important;
    }

    .places-list::-webkit-scrollbar {
      width: 6px;
    }

    .places-list::-webkit-scrollbar-thumb {
      background-color: var(--border);
      border-radius: 3px;
    }

    .place-card {
      background: rgba(255, 255, 255, 0.68);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(226, 232, 240, 0.8);
      border-radius: 16px;
      padding: 10px 14px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
      display: flex;
      flex-direction: column;
      gap: 6px;
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }

    .place-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: transparent;
      transition: background-color 0.2s;
    }

    .place-card:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 8px 24px rgba(0, 172, 236, 0.12);
      border-color: rgba(0, 172, 236, 0.4);
    }

    .place-card.active {
      background: rgba(0, 172, 236, 0.08);
      border-color: var(--primary);
      box-shadow: 0 8px 24px rgba(0, 172, 236, 0.18);
      transform: translateY(-2px);
    }

    .place-card.active::before {
      background-color: var(--primary);
    }

    .place-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 8px;
    }

    .place-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--heading);
      line-height: 1.3;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .place-tag {
      font-size: 0.64rem;
      font-weight: 700;
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 20px;
      flex-shrink: 0;
    }

    .place-address {
      font-size: 0.75rem;
      color: var(--text-light);
      display: flex;
      align-items: flex-start;
      gap: 4px;
      line-height: 1.3;
    }

    .place-address svg {
      flex-shrink: 0;
      margin-top: 2px;
    }

    .place-features {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 0px;
    }

    .feature-badge {
      display: flex;
      align-items: center;
      gap: 3px;
      font-size: 0.68rem;
      font-weight: 600;
      padding: 2px 6px;
      border-radius: 30px;
      background-color: #f1f5f9;
      color: var(--text);
      border: 1px solid var(--border);
    }

    .feature-badge.accessible {
      background-color: rgba(16, 185, 129, 0.08);
      border-color: rgba(16, 185, 129, 0.15);
      color: #059669;
    }

    /* Rating & Reaction System */
    .place-rating-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 6px;
      padding-top: 6px;
      border-top: 1px dashed var(--border);
    }

    .rating-badge-container {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .rating-stars {
      display: flex;
      color: #e2e8f0; /* Default gray stars */
      font-size: 0.85rem;
    }

    .rating-stars .star.filled {
      color: #eab308; /* Yellow filled stars */
    }

    .rating-score-text {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text);
    }

    .place-reactions {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .btn-reaction {
      border: 1px solid var(--border);
      background-color: var(--card-bg);
      color: var(--text-light);
      border-radius: 6px;
      padding: 3px 6px;
      font-size: 0.7rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      transition: all 0.2s;
      user-select: none;
    }

    .btn-reaction:hover {
      background-color: var(--background);
      color: var(--text);
    }

    .btn-reaction.active-like {
      background-color: rgba(16, 185, 129, 0.08) !important;
      border-color: #10b981 !important;
      color: #10b981 !important;
    }

    .btn-reaction.active-dislike {
      background-color: rgba(239, 68, 68, 0.08) !important;
      border-color: #ef4444 !important;
      color: #ef4444 !important;
    }

    .reaction-count {
      font-weight: 700;
    }

    .place-actions {
      display: flex;
      gap: 6px;
      margin-top: 4px;
      border-top: 1px solid var(--border);
      padding-top: 8px;
      flex-wrap: wrap;
    }

    .btn-action {
      flex: 1;
      padding: 6px 10px;
      font-family: inherit;
      font-size: 0.75rem;
      font-weight: 500;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      text-decoration: none;
      white-space: nowrap;
    }

    .btn-action-icon-only {
      flex: 0 0 36px !important;
      width: 36px !important;
      height: 36px !important;
      padding: 0 !important;
      min-width: 36px !important;
      justify-content: center !important;
      align-items: center !important;
      border-radius: 10px !important;
    }

    .btn-action-companion {
      flex: 1.5 !important;
    }

    .btn-action-primary {
      background-color: var(--primary);
      color: white;
      border: none;
    }

    .btn-action-primary:hover {
      background-color: var(--primary-dark);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }

    .btn-action-secondary {
      background-color: var(--card-bg);
      color: var(--text);
      border: 1.5px solid var(--border);
    }

    .btn-action-secondary:hover {
      border-color: var(--primary);
      color: var(--primary);
      background-color: rgba(37, 99, 235, 0.04);
    }

    /* Map Section - Fullscreen Canvas Backdrop */
    .map-container {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      height: 100dvh !important;
      z-index: 1 !important;
    }

    #map {
      width: 100% !important;
      height: 100% !important;
    }

    /* Custom Map Marker Popup Styling */
    .leaflet-popup-content-wrapper {
      border-radius: 20px;
      padding: 6px;
      box-shadow: var(--shadow-lg);
      border: 1.5px solid var(--border);
    }

    .leaflet-popup-content {
      font-family: var(--font-firago);
      color: var(--text);
      margin: 12px;
      line-height: 1.4;
    }

    /* Custom Mapbox Popup Styling */
    .mapboxgl-popup {
      max-width: 350px !important;
    }
    .mapboxgl-popup-content {
      border-radius: 20px !important;
      padding: 16px 28px 16px 16px !important;
      box-shadow: var(--shadow-lg) !important;
      border: 1.5px solid var(--border) !important;
      background: var(--card-bg) !important;
      font-family: var(--font-firago) !important;
      color: var(--text) !important;
      line-height: 1.4 !important;
      position: relative !important;
    }

    .mapboxgl-popup-close-button {
      background: none !important;
      border: none !important;
      color: var(--text-light) !important;
      font-size: 18px !important;
      right: 8px !important;
      top: 8px !important;
      width: 24px !important;
      height: 24px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      outline: none !important;
      padding: 0 !important;
      border-radius: 50% !important;
      transition: background 0.2s, color 0.2s !important;
    }

    .mapboxgl-popup-close-button:hover {
      background: var(--bg-hover) !important;
      color: var(--text) !important;
    }

    /* Mapbox GL JS Popup tip styling for all anchors using var(--card-bg) */
    .mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
      border-bottom-color: var(--card-bg) !important;
    }
    .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
      border-top-color: var(--card-bg) !important;
    }
    .mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
      border-right-color: var(--card-bg) !important;
    }
    .mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
      border-left-color: var(--card-bg) !important;
    }
    .mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip {
      border-bottom-color: var(--card-bg) !important;
    }
    .mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
      border-bottom-color: var(--card-bg) !important;
    }
    .mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip {
      border-top-color: var(--card-bg) !important;
    }
    .mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
      border-top-color: var(--card-bg) !important;
    }

    /* Custom Leaflet Route Tooltip Styling */
    .leaflet-tooltip.route-tooltip-label-start {
      background-color: var(--card-bg) !important;
      border: 1.5px solid #2563eb !important;
      border-radius: 8px !important;
      color: #1e3a8a !important;
      font-family: var(--font-firago) !important;
      font-weight: 700 !important;
      font-size: 0.72rem !important;
      box-shadow: var(--shadow-sm) !important;
      padding: 4px 8px !important;
    }
    .leaflet-tooltip.route-tooltip-label-dest {
      background-color: var(--card-bg) !important;
      border: 1.5px solid #22c55e !important;
      border-radius: 8px !important;
      color: #166534 !important;
      font-family: var(--font-firago) !important;
      font-weight: 700 !important;
      font-size: 0.72rem !important;
      box-shadow: var(--shadow-sm) !important;
      padding: 4px 8px !important;
    }

    .popup-title {
      font-weight: 700;
      color: var(--heading);
      font-size: 0.95rem;
      margin-bottom: 6px;
      line-height: 1.4;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .popup-address {
      font-size: 0.8rem;
      color: var(--text-light);
      margin-bottom: 8px;
      display: flex;
      align-items: flex-start;
      gap: 6px;
      line-height: 1.4;
    }

    .popup-address svg {
      flex-shrink: 0;
      margin-top: 3px;
    }

    .popup-tag {
      font-size: 0.68rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 20px;
      display: inline-block;
      margin-bottom: 8px;
      text-transform: uppercase;
    }

    .popup-features {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-bottom: 10px;
    }

    .popup-feature-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.68rem;
      font-weight: 600;
      padding: 3px 6px;
      border-radius: 4px;
      background-color: #f1f5f9;
      color: var(--text);
    }

    .popup-feature-badge.accessible {
      background-color: rgba(16, 185, 129, 0.08);
      color: #059669;
    }

    /* Mobile Controls */
    .mobile-view-toggle {
      display: none;
      position: fixed;
      bottom: calc(24px + env(safe-area-inset-bottom, 0px));
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      background-color: var(--primary);
      color: white;
      padding: 12px 24px;
      border-radius: 30px;
      font-weight: 700;
      font-size: 0.85rem;
      border: none;
      box-shadow: 0 8px 24px rgba(0, 172, 236, 0.25);
      cursor: pointer;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }

    .mobile-view-toggle:hover {
      transform: translateX(-50%) translateY(-2px);
      box-shadow: 0 12px 28px rgba(0, 172, 236, 0.35);
    }

    /* No search results */
    .no-results {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-light);
    }

    .no-results svg {
      color: var(--border);
      margin-bottom: 12px;
    }

    /* AI Chatbot styles */
    .ai-chat-bubble {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      box-shadow: 0 8px 32px rgba(0, 172, 236, 0.3);
      cursor: pointer;
      z-index: 9999;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .ai-chat-bubble:hover {
      transform: scale(1.1) rotate(5deg);
      box-shadow: 0 12px 40px rgba(0, 172, 236, 0.45);
    }
    .ai-chat-bubble::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 2px solid var(--primary);
      opacity: 0;
      animation: pulse-ring 2s infinite;
      box-sizing: border-box;
      pointer-events: none;
    }
    .ai-scanner-bubble {
      position: fixed;
      bottom: 96px;
      right: 24px;
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #22c55e, #15803d);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
      cursor: pointer;
      z-index: 9999;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .ai-scanner-bubble:hover {
      transform: scale(1.1) rotate(-5deg);
      box-shadow: 0 12px 40px rgba(34, 197, 94, 0.45);
    }
    .ai-scanner-bubble::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 2px solid #22c55e;
      opacity: 0;
      animation: pulse-ring 2s infinite;
      box-sizing: border-box;
      pointer-events: none;
    }
    @keyframes pulse-ring {
      0% { transform: scale(0.95); opacity: 0.5; }
      100% { transform: scale(1.5); opacity: 0; }
    }
    
    .ai-chat-panel {
      position: fixed;
      bottom: 96px;
      right: 24px;
      width: 380px;
      height: 520px;
      background: var(--card-bg);
      border-radius: 20px;
      box-shadow: 0 12px 48px rgba(15, 23, 42, 0.25);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      z-index: 10010;
      opacity: 0;
      transform: translateY(20px) scale(0.95);
      pointer-events: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .ai-chat-panel.active {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: all;
      z-index: 10020;
    }
    
    .ai-chat-header {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      padding: 16px;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .ai-chat-title-group {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .ai-chat-title-text h4 {
      margin: 0;
      font-size: 1rem;
      font-weight: 700;
      color: white;
      font-family: var(--font-firago);
    }
    .ai-chat-title-text span {
      font-size: 0.72rem;
      opacity: 0.85;
      font-family: var(--font-firago);
    }
    .ai-chat-close {
      background: transparent;
      border: none;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      line-height: 1;
      padding: 4px;
    }
    
    .ai-chat-body {
      flex: 1;
      padding: 16px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background-color: var(--background);
    }
    
    .ai-msg {
      max-width: 85%;
      padding: 12px 16px;
      border-radius: 16px;
      font-size: 0.88rem;
      line-height: 1.4;
      font-family: var(--font-firago);
    }
    .ai-msg-assistant {
      background-color: var(--card-bg);
      color: var(--text);
      align-self: flex-start;
      border-bottom-left-radius: 4px;
      box-shadow: var(--shadow-sm);
    }
    .ai-msg-user {
      background-color: var(--primary);
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
      box-shadow: 0 4px 12px rgba(0, 172, 236, 0.15);
    }
    
    .ai-chat-footer {
      padding: 12px 16px;
      border-top: 1px solid var(--border);
      background: var(--card-bg);
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .ai-chat-input {
      flex: 1;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 8px 16px;
      font-size: 0.88rem;
      outline: none;
      background: var(--background);
      color: var(--text);
      font-family: var(--font-firago);
      transition: all 0.2s;
    }
    .ai-chat-input:focus {
      border-color: var(--primary);
      background: var(--card-bg);
    }
    .ai-chat-send {
      background: var(--primary);
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .ai-chat-send:hover {
      background: var(--primary-dark);
      transform: scale(1.05);
    }
    
    /* Place suggestion card inside chat */
    .ai-suggested-place {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px;
      margin-top: 6px;
      cursor: pointer;
      display: flex;
      gap: 10px;
      align-items: center;
      transition: all 0.2s;
      box-shadow: var(--shadow-sm);
    }
    .ai-suggested-place:hover {
      border-color: var(--primary);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .ai-suggested-thumb {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      background: var(--background);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
    }
    .ai-suggested-info {
      flex: 1;
      min-width: 0;
    }
    .ai-suggested-name {
      font-weight: 700;
      font-size: 0.8rem;
      color: var(--heading);
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-family: var(--font-firago);
    }
    .ai-suggested-desc {
      font-size: 0.72rem;
      color: var(--text-light);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-family: var(--font-firago);
    }
    .ai-chat-loading {
      display: flex;
      gap: 4px;
      padding: 8px 12px;
      background: var(--card-bg);
      border-radius: 12px;
      align-self: flex-start;
      box-shadow: var(--shadow-sm);
    }
    .ai-chat-loading span {
      width: 6px;
      height: 6px;
      background-color: var(--text-light);
      border-radius: 50%;
      display: inline-block;
      animation: bounce 1.4s infinite ease-in-out both;
    }
    .ai-chat-loading span:nth-child(1) { animation-delay: -0.32s; }
    .ai-chat-loading span:nth-child(2) { animation-delay: -0.16s; }
    @keyframes bounce {
      0%, 80%, 100% { transform: scale(0); }
      40% { transform: scale(1.0); }
    }
    
    @media (max-width: 576px) {
      .ai-chat-panel {
        width: calc(100% - 32px);
        height: 450px;
        right: 16px;
        bottom: 80px;
      }
      .ai-chat-bubble {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
      }
      .ai-scanner-bubble {
        bottom: 74px;
        right: 16px;
        width: 50px;
        height: 50px;
      }
    }

    /* Base display style for desktop */
    .mobile-nav-bar {
      display: none;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .sidebar {
        width: 360px;
      }
    }

    @media (max-width: 768px) {
      .desktop-left-column {
        display: contents !important;
      }
      body {
        position: relative;
      }
      header {
        top: 8px !important;
        left: 10px !important;
        right: 10px !important;
        height: 58px !important;
        padding: 0 12px !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08) !important;
      }
      body.dark-theme header {
        background: #0f172a !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4) !important;
      }
      .logo-container img {
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
      }
      .header-actions {
        gap: 6px !important;
      }
      .logo-subtitle {
        display: none;
      }
      #auth-profile-area {
        display: none !important;
      }
      #txt-btn-back,
      .btn-auth-text {
        display: none !important;
      }
      #btn-add-place {
        padding: 4px 10px !important;
        height: 34px !important;
        border-radius: 14px !important;
        font-size: 0.72rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--primary) !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(0, 172, 236, 0.25) !important;
      }
      .btn-add-place-plus {
        display: none !important;
      }
      .btn-add-place-text {
        display: inline-block !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
      }
      .lang-switcher .lang-btn,
      #theme-toggle {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: white !important;
        color: var(--secondary) !important;
        border: 1px solid var(--border) !important;
        box-shadow: var(--shadow-sm) !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        transition: all 0.2s !important;
        margin: 0 !important;
        box-sizing: border-box !important;
      }
      body.dark-theme #btn-add-place,
      body.dark-theme .lang-switcher .lang-btn,
      body.dark-theme #theme-toggle {
        background-color: var(--card-bg) !important;
        color: var(--text) !important;
        border-color: var(--border) !important;
      }
      .search-filter-section {
        position: fixed !important;
        top: 72px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        z-index: 9999 !important;
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border-radius: 18px !important;
        gap: 6px !important;
        height: auto !important;
        box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12) !important;
      }
      body.dark-theme .search-filter-section {
        background: rgba(15, 23, 42, 0.88) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
      }
      .categories-filter-wrapper {
        height: auto !important;
      }
      .search-box-wrapper {
        max-width: 100%;
      }
      .categories-indicator-desktop {
        display: none !important;
      }
      .categories-container {
        position: static !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background-color: transparent !important;
      }
      .categories-container::-webkit-scrollbar {
        display: none;
      }
      .filter-label {
        display: none !important;
      }
      .volunteer-toggle-container {
        display: none !important;
      }
      .features-filter-container {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        padding-bottom: 0 !important;
      }
      .features-filter-container::-webkit-scrollbar {
        display: none !important;
      }
      .btn-near-me,
      .btn-ai-scanner,
      .btn-volunteer-toggle {
        font-size: 0.72rem !important;
        padding: 8px 6px !important;
        white-space: nowrap !important;
      }
      .sidebar {
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1000 !important;
        transition: transform 0.3s ease !important;
        border-right: none !important;
        background: var(--card-bg) !important;
        padding-top: 170px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
      }
      
      .sidebar.maps-hidden {
        transform: translateY(100%) !important;
        pointer-events: none !important;
      }

      .map-container {
        width: 100%;
        height: 100%;
      }

      .mobile-view-toggle {
        display: inline-flex !important;
      }

      .lang-switcher {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
      }
      .lang-switcher .lang-btn {
        background: white !important;
        color: var(--secondary) !important;
        border: 1px solid var(--border) !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: var(--shadow-sm) !important;
      }
      .lang-switcher .lang-code {
        display: none !important;
      }
      .lang-switcher .flag-icon {
        width: 22px !important;
        height: 15px !important;
        margin: 0 !important;
      }
      body.dark-theme .lang-switcher .lang-btn {
        background: var(--card-bg) !important;
        color: var(--text) !important;
        border-color: var(--border) !important;
      }
      .lang-switcher .lang-btn.active {
        display: none !important;
      }

      /* Hide floating bubbles and bottom-toggle on mobile */
      .ai-chat-bubble,
      .ai-scanner-bubble {
        display: none !important;
      }

      .mobile-nav-bar {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        height: 62px;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 26px;
        z-index: 200005;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
        box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }

      body.dark-theme .mobile-nav-bar {
        background: rgba(15, 23, 42, 0.88);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.2);
      }

      .mobile-nav-item {
        background: none;
        border: none;
        padding: 4px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-light);
        cursor: pointer;
        flex: 1;
        transition: transform 0.2s, color 0.2s;
        height: 100%;
        box-sizing: border-box;
        position: relative;
        border-radius: 18px;
      }

      .mobile-nav-item:active {
        transform: scale(0.92);
      }

      .mobile-nav-item.active {
        color: var(--primary);
        font-weight: 700;
      }

      .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 5px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: var(--primary);
      }

      /* Elevated Center FAB */
      .mobile-nav-center-fab {
        overflow: visible;
      }

      .mobile-nav-fab-icon {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -18px;
        box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
        border: 3px solid white;
        transition: transform 0.2s, box-shadow 0.2s;
      }

      body.dark-theme .mobile-nav-fab-icon {
        border-color: #0f172a;
        box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
      }

      .mobile-nav-center-fab:active .mobile-nav-fab-icon {
        transform: scale(0.9);
      }

      .mobile-nav-icon {
        font-size: 1.25rem;
        margin-bottom: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 22px;
        transition: transform 0.2s;
      }

      .mobile-nav-label {
        font-size: 0.68rem;
        font-weight: 600;
        font-family: var(--font-firago);
        line-height: 1;
        letter-spacing: -0.2px;
      }

      /* Adjust sidebar & map layout heights for floating bottom nav */
      .app-container {
        margin-top: 62px !important;
        height: calc(100vh - 62px - 52px) !important;
        height: calc(100dvh - 62px - 52px) !important;
      }
      .sidebar {
        height: 100% !important;
        bottom: 0 !important;
        box-sizing: border-box !important;
      }
      .places-list {
        flex: 1 0 auto !important;
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
      }

    }



    /* Theme Toggle */
    .theme-toggle-btn {
      background: none;
      border: 1.5px solid var(--border);
      border-radius: 12px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-light);
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .theme-toggle-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      background-color: rgba(37, 99, 235, 0.04);
    }

    body.dark-theme .moon-icon {
      display: none !important;
    }

    body.dark-theme .sun-icon {
      display: block !important;
      color: #f59e0b;
    }

    /* Dark theme overrides for contrast */
    body.dark-theme .lang-btn.active {
      color: var(--primary);
    }

    body.dark-theme .category-btn.active {
      background-color: var(--primary);
      border-color: var(--primary);
      color: #0f172a;
    }

    body.dark-theme .place-card.active {
      background-color: rgba(37, 99, 235, 0.08);
    }

    body.dark-theme .sidebar {
      background-color: var(--card-bg);
      box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    body.dark-theme .search-filter-section {
      background: rgba(15, 23, 42, 0.82);
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    body.dark-theme .places-list {
      background-color: transparent !important;
    }

    body.dark-theme .place-card {
      background: rgba(30, 41, 59, 0.65);
      border-color: rgba(255, 255, 255, 0.08);
    }
    body.dark-theme .place-card:hover {
      background: rgba(30, 41, 59, 0.92);
      border-color: rgba(0, 172, 236, 0.4);
    }

    body.dark-theme #site-description-accordion {
      background-color: rgba(255, 255, 255, 0.02) !important;
      border-color: var(--border) !important;
    }

    body.dark-theme .btn-near-me,
    body.dark-theme .btn-back {
      background-color: var(--card-bg);
      color: var(--text);
    }

    body.dark-theme .btn-ai-scanner {
      background-color: rgba(139, 92, 246, 0.1);
      color: #a78bfa;
      border-color: rgba(139, 92, 246, 0.4);
    }
    body.dark-theme .btn-ai-scanner:hover {
      background-color: rgba(139, 92, 246, 0.2);
    }

    body.dark-theme .btn-toggle-filters {
      background-color: var(--card-bg);
      border-color: var(--border);
      color: var(--text);
    }
    body.dark-theme .btn-toggle-filters:hover {
      background-color: var(--background);
    }
    body.dark-theme .btn-toggle-filters.active,
    body.dark-theme .btn-toggle-filters.filtered {
      background-color: rgba(37, 99, 235, 0.15);
      border-color: var(--primary);
      color: #60a5fa;
    }

    body.dark-theme .btn-near-me:hover,
    body.dark-theme .btn-back:hover {
      background-color: var(--background);
    }

    body.dark-theme .search-input:focus {
      background-color: var(--card-bg);
      color: var(--heading);
    }

    /* Mapbox & Leaflet Dark mode overrides */
    body.dark-theme .leaflet-popup-content-wrapper,
    body.dark-theme .leaflet-popup-tip,
    body.dark-theme .mapboxgl-popup-content {
      background-color: var(--card-bg) !important;
      color: var(--text) !important;
      border-color: var(--border) !important;
    }
    body.dark-theme .mapboxgl-popup-tip {
      border-top-color: var(--card-bg) !important;
      border-bottom-color: var(--card-bg) !important;
    }
    
    body.dark-theme .leaflet-popup-content {
      color: var(--text) !important;
    }

    body.dark-theme .leaflet-bar a,
    body.dark-theme .mapboxgl-ctrl-group {
      background-color: var(--card-bg) !important;
      color: var(--text) !important;
      border-bottom: 1px solid var(--border) !important;
    }
    body.dark-theme .leaflet-bar a:hover,
    body.dark-theme .mapboxgl-ctrl-group button:hover {
      background-color: var(--background) !important;
    }
    body.dark-theme .mapboxgl-ctrl-icon {
      filter: invert(1) !important;
    }

    /* Hide Mapbox logo, attribution, and zoom (+/-) navigation controls on all viewports (Mobile & Desktop) */
    .mapboxgl-ctrl-logo,
    .mapboxgl-ctrl-attrib,
    .mapboxgl-ctrl-attrib-inner,
    .mapboxgl-ctrl-bottom-left,
    .mapboxgl-ctrl-bottom-right,
    .mapboxgl-ctrl-top-right,
    .mapboxgl-ctrl-group,
    .leaflet-control-zoom,
    .leaflet-control-attribution {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    /* Modal styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(4px);
      z-index: 200000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-content {
      background-color: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 20px;
      width: 90%;
      max-width: 500px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      transform: translateY(20px);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      padding: 24px;
      position: relative;
    }

    .modal-overlay.active .modal-content {
      transform: translateY(0);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 12px;
    }

    .modal-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--heading);
    }

    .modal-close-btn {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--text-light);
      line-height: 1;
    }

    .form-group {
      margin-bottom: 14px;
    }

    .form-group label {
      display: block;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
    }

    .form-control {
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1.5px solid var(--border);
      background-color: var(--card-bg);
      color: var(--text);
      font-family: inherit;
      font-size: 0.85rem;
      box-sizing: border-box;
      transition: border-color 0.2s;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary);
    }

    .checkbox-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 6px;
    }

    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.8rem !important;
      font-weight: 500 !important;
      cursor: pointer;
      color: var(--text);
    }

    .checkbox-label input {
      width: 16px;
      height: 16px;
      cursor: pointer;
    }

    .form-actions {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      border-top: 1px solid var(--border);
      padding-top: 16px;
    }

    /* Verified badge style */
    .verified-badge {
      background-color: rgba(34, 197, 94, 0.1);
      color: #16a34a;
      border: 1px solid rgba(34, 197, 94, 0.2);
      padding: 2px 6px;
      border-radius: 12px;
      font-size: 0.66rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      margin-top: 2px;
      align-self: flex-start;
    }

    body.dark-theme .verified-badge {
      background-color: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border-color: rgba(34, 197, 94, 0.3);
    }

    /* GPU-accelerated Mapbox GL / Leaflet Dark Mode filter */
    body.dark-theme .mapboxgl-canvas,
    body.dark-theme .mapboxgl-map,
    body.dark-theme .leaflet-tile {
      filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%) !important;
    }

    /* Marker Cluster Custom Styling to match Brand Primary (#00acec) */
    .marker-cluster-small {
      background-color: rgba(0, 172, 236, 0.2) !important;
    }
    .marker-cluster-small div {
      background-color: rgba(0, 172, 236, 0.6) !important;
      color: #fff !important;
      font-family: var(--font-firago);
      font-weight: bold;
    }
    .marker-cluster-medium {
      background-color: rgba(0, 150, 206, 0.2) !important;
    }
    .marker-cluster-medium div {
      background-color: rgba(0, 150, 206, 0.6) !important;
      color: #fff !important;
      font-family: var(--font-firago);
      font-weight: bold;
    }
    .marker-cluster-large {
      background-color: rgba(15, 58, 117, 0.2) !important;
    }
    .marker-cluster-large div {
      background-color: rgba(15, 58, 117, 0.6) !important;
      color: #fff !important;
      font-family: var(--font-firago);
      font-weight: bold;
    }
    .marker-cluster div {
      width: 30px;
      height: 30px;
      margin-left: 5px;
      margin-top: 5px;
      text-align: center;
      border-radius: 15px;
      font-size: 12px;
    }
    .marker-cluster span {
      line-height: 30px;
    }

    /* Accessibility Review Modal Options */
    .review-option-label {
      cursor: pointer;
      display: block;
    }
    .review-option-label input:checked + .review-option-btn {
      background-color: var(--primary) !important;
      color: #ffffff !important;
      border-color: var(--primary) !important;
    }
    .review-option-btn {
      padding: 10px 4px;
      font-size: 0.72rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s ease;
      background-color: var(--card-bg);
      color: var(--text);
      font-family: var(--font-firago);
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .review-option-btn:hover {
      border-color: var(--primary);
      background-color: rgba(0, 172, 236, 0.05);
    }
    body.dark-theme .review-option-btn {
      border-color: #334155;
    }

    /* Responsive Site Description visibility */
    .desktop-only-desc {
      display: block !important;
    }
    .mobile-only-desc {
      display: none !important;
    }

    @media (max-width: 768px) {
      .desktop-only-desc {
        display: none !important;
      }
      .mobile-only-desc {
        display: block !important;
      }
    }

    body.dark-theme #site-description-box-desktop,
    body.dark-theme #site-description-accordion {
      background-color: rgba(255, 255, 255, 0.02) !important;
      border-color: var(--border) !important;
    }

    /* Bottom Sheet Drag Handle for mobile */
    .bottom-sheet-handle {
      display: none;
    }
    @media (max-width: 768px) {
      .bottom-sheet-handle {
        display: block !important;
      }
    }

    /* Cabinet Badge Role styling */
    .badge-role {
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      font-family: var(--font-firago);
      display: inline-block;
    }
    .badge-role.volunteer {
      background: rgba(34, 197, 94, 0.08);
      color: #22c55e;
      border: 1px solid rgba(34, 197, 94, 0.2);
    }
    .badge-role.requester {
      background: rgba(0, 172, 236, 0.08);
      color: var(--primary);
      border: 1px solid rgba(0, 172, 236, 0.2);
    }

    /* Theme-aware Cabinet Request Status text styles */
    .status-completed-text {
      color: #15803d; /* Dark green in light mode */
    }
    body.dark-theme .status-completed-text {
      color: #4ade80 !important; /* Light green in dark mode */
    }
    
    .status-pending-text {
      color: #b45309; /* Dark amber/orange in light mode */
    }
    body.dark-theme .status-pending-text {
      color: #fbbf24 !important; /* Light amber/yellow in dark mode */
    }

    /* Cabinet Notification Dot styling */
    .notification-dot {
      position: absolute;
      top: -3px;
      right: -3px;
      width: 10px;
      height: 10px;
      background-color: #ef4444;
      border-radius: 50%;
      border: 1.5px solid white;
      display: none;
      animation: pulse-dot 1.5s infinite;
      z-index: 100;
    }
    body.dark-theme .notification-dot {
      border-color: var(--card-bg);
    }
    @keyframes pulse-dot {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
      70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }

    @media (max-width: 768px) {
      .toast-container {
        bottom: 85px !important;
        left: 12px !important;
        width: calc(100% - 24px) !important;
        z-index: 200000 !important;
      }
      /* Beautiful mobile popup styling */
      .mapboxgl-popup {
        max-width: 88vw !important;
        z-index: 10000 !important;
      }
      .mapboxgl-popup-content {
        border-radius: 16px !important;
        padding: 12px 24px 12px 12px !important;
        font-size: 0.8rem !important;
      }
      .mapboxgl-popup-content .popup-title {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        margin-bottom: 2px !important;
      }
      .mapboxgl-popup-content .accessibility-breakdown {
        padding-top: 6px !important;
        margin-top: 6px !important;
        gap: 2px !important;
      }
      .mapboxgl-popup-content .btn-action {
        height: 28px !important;
        font-size: 0.68rem !important;
        padding: 4px 8px !important;
      }
    }

    /* Live Chat Message bubble styling */
    .chat-bubble {
      max-width: 75%;
      padding: 10px 14px;
      border-radius: 16px;
      font-size: 0.88rem;
      line-height: 1.4;
      font-family: var(--font-firago);
      word-wrap: break-word;
    }
    .chat-bubble.sent {
      align-self: flex-end;
      background: var(--primary);
      color: white;
      border-bottom-right-radius: 4px;
    }
    .chat-bubble.received {
      align-self: flex-start;
      background: var(--border);
      color: var(--text);
      border-bottom-left-radius: 4px;
    }
    body.dark-theme .chat-bubble.received {
      background: #334155;
    }
    .chat-message-meta {
      font-size: 0.7rem;
      margin-top: 4px;
      display: block;
      opacity: 0.7;
    }
    .chat-bubble.sent .chat-message-meta {
      text-align: right;
      color: rgba(255, 255, 255, 0.85);
    }
    .chat-bubble.received .chat-message-meta {
      text-align: left;
      color: var(--text-light);
    }

    /* Star rating interactions */
    .star-star {
      font-size: 2.2rem;
      color: #cbd5e1;
      cursor: pointer;
      transition: color 0.15s ease-in-out;
    }
    .star-star.active {
      color: #fbbf24 !important;
    }
    .star-star:hover {
      transform: scale(1.15);
    }

    /* Terms and Conditions custom text styles */
    .terms-section-title {
      font-weight: 700;
      color: var(--heading);
      margin-top: 14px;
      margin-bottom: 6px;
      font-size: 0.95rem;
    }
    .terms-section-desc {
      color: var(--text);
      margin-bottom: 12px;
      font-size: 0.86rem;
      line-height: 1.5;
    }

    /* Active Chats List Modal Styles */
    .chat-list-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--card-bg);
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: var(--font-firago);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
      margin-bottom: 8px;
      position: relative;
      overflow: hidden;
    }
    .chat-list-item:hover {
      background: rgba(0, 172, 236, 0.04);
      border-color: rgba(0, 172, 236, 0.3);
      box-shadow: 0 4px 12px rgba(0, 172, 236, 0.08);
      transform: translateY(-1px);
    }
    .chat-list-avatar {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.25rem;
      font-weight: 700;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0, 172, 236, 0.2);
    }
    .chat-list-details {
      flex: 1;
      min-width: 0;
    }
    .chat-list-name {
      font-weight: 700;
      font-size: 0.94rem;
      color: var(--heading);
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chat-list-subtitle {
      font-size: 0.8rem;
      color: var(--text-light);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .chat-list-time {
      font-size: 0.72rem;
      color: var(--text-light);
      background: var(--background);
      padding: 4px 8px;
      border-radius: 8px;
      border: 1px solid var(--border);
      margin-left: 8px;
      white-space: nowrap;
      flex-shrink: 0;
      font-weight: 500;
    }
    .chat-unread-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: var(--primary);
      margin-left: 10px;
      flex-shrink: 0;
      box-shadow: 0 0 8px var(--primary);
    }
    .chat-list-item.unread {
      background: rgba(0, 172, 236, 0.05) !important;
      border-color: rgba(0, 172, 236, 0.3) !important;
    }
    .chat-list-item.unread .chat-list-name {
      font-weight: 800;
    }
    .chat-list-item.unread .chat-list-subtitle {
      font-weight: 600;
      color: var(--heading);
    }
    
    /* Inline Image Styles inside Chat Bubble */
    .chat-bubble-image {
      max-width: 100%;
      max-height: 200px;
      border-radius: 10px;
      margin-top: 6px;
      cursor: pointer;
      display: block;
      transition: opacity 0.2s;
    }
    .chat-bubble-image:hover {
      opacity: 0.9;
    }

    /* AR Floating Trigger Styles & Pulse Animation */
    @keyframes arPulse {
      0% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 12px rgba(0,172,236,0.25); }
      50% { transform: translateX(-50%) scale(1.08); box-shadow: 0 4px 20px rgba(0,172,236,0.45), 0 0 0 4px rgba(0,172,236,0.1); }
      100% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 12px rgba(0,172,236,0.25); }
    }
    .ar-floating-trigger {
      animation: arPulse 2.5s infinite ease-in-out;
    }
    .ar-floating-trigger:active {
      transform: translateX(-50%) scale(0.9) !important;
    }

    /* UGC Place Form Wizard Styles */
    .wizard-steps-container {
        display: flex;
        justify-content: space-between;
        margin-bottom: 24px;
        position: relative;
        padding: 0 10px;
    }
    .wizard-progress-bar {
        position: absolute;
        top: 14px;
        left: 10px;
        right: 10px;
        height: 3px;
        background: var(--border);
        z-index: 1;
    }
    .wizard-progress-line {
        width: 0%;
        height: 100%;
        background: var(--primary);
        transition: width 0.3s ease;
    }
    .wizard-step-node {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--card-bg);
        border: 2.5px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        font-weight: 700;
        font-size: 0.82rem;
        color: var(--text-light);
        transition: all 0.3s ease;
    }
    .wizard-step-node.active {
        border-color: var(--primary);
        color: var(--primary);
        box-shadow: 0 0 10px rgba(0, 172, 236, 0.2);
    }
    .wizard-step-node.completed {
        border-color: #22c55e;
        background: #22c55e;
        color: white;
    }
    .wizard-slide {
        display: none;
        animation: fadeIn 0.25s ease-out;
    }
    .wizard-slide.active {
        display: block;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Address List Item box */
    .address-item-card {
        background: rgba(15, 23, 42, 0.03);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
        position: relative;
    }
    body.dark-theme .address-item-card {
        background: rgba(0, 0, 0, 0.2);
    }
    .address-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        border-bottom: 1px dashed var(--border);
        padding-bottom: 8px;
    }
    .address-item-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--primary);
    }
    .btn-delete-address {
        background: none;
        border: none;
        color: #ef4444;
        cursor: pointer;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 6px;
        transition: background 0.2s;
    }
    .btn-delete-address:hover {
        background: rgba(239, 68, 68, 0.1);
    }
    .btn-add-address {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        border: 2px dashed var(--border);
        background: transparent;
        color: var(--text);
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .btn-add-address:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(0, 172, 236, 0.02);
    }

    /* Terms box scrollable */
    .terms-box {
        max-height: 200px;
        overflow-y: auto;
        background: rgba(0,0,0,0.02);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 16px;
        font-size: 0.82rem;
        line-height: 1.5;
    }
    body.dark-theme .terms-box {
        background: rgba(0,0,0,0.2);
    }

    /* Invoice Box */
    .invoice-box {
        background: rgba(34, 197, 94, 0.03);
        border: 1.5px solid rgba(34, 197, 94, 0.2);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 16px;
    }
    body.dark-theme .invoice-box {
        background: rgba(34, 197, 94, 0.05);
    }

    /* Scanner Mode Selector Menu and Bottom Sheet */
    #scanner-menu-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 210000;
      background-color: rgba(15, 23, 42, 0);
      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(0px);
      transition: background-color 0.28s ease, backdrop-filter 0.28s ease;
      pointer-events: none;
    }
    #scanner-menu-overlay.active {
      background-color: rgba(15, 23, 42, 0.4);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      pointer-events: auto;
    }

    #scanner-selector-menu {
      position: absolute;
      background: var(--card-bg);
      border: 1.5px solid var(--border);
      border-radius: 24px;
      box-shadow: var(--shadow-lg);
      padding: 16px;
      width: 100%;
      max-width: 340px;
      z-index: 210001;
      font-family: var(--font-firago);
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
      transform: scale(0.92) translateY(-10px);
      opacity: 0;
      box-sizing: border-box;
    }
    #scanner-selector-menu.active {
      transform: scale(1) translateY(0);
      opacity: 1;
    }

    .mobile-sheet-handle {
      display: none;
    }
    .scanner-menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border);
    }
    .scanner-menu-header span {
      font-weight: 800;
      font-size: 0.95rem;
      color: var(--text);
    }
    .scanner-menu-close-btn {
      background: none;
      border: none;
      font-size: 1.4rem;
      color: var(--text-light);
      cursor: pointer;
      padding: 0;
      line-height: 1;
    }
    .scanner-menu-options-wrapper {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .scanner-menu-block {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      width: 100%;
      padding: 12px;
      border: 1.5px solid transparent;
      background: rgba(15, 23, 42, 0.02);
      color: var(--text);
      cursor: pointer;
      text-align: left;
      border-radius: 16px;
      transition: all 0.2s ease;
      font-family: var(--font-firago);
      box-sizing: border-box;
    }
    body.dark-theme .scanner-menu-block {
      background: rgba(255, 255, 255, 0.02);
    }
    .scanner-menu-block:hover {
      background: rgba(37, 99, 235, 0.04);
      border-color: rgba(37, 99, 235, 0.2);
      transform: translateY(-1px);
    }
    .scanner-menu-block:active {
      transform: translateY(0);
    }

    .scanner-menu-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
      box-sizing: border-box;
    }

    .scanner-menu-text {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .scanner-menu-title {
      font-weight: 750;
      font-size: 0.88rem;
      color: var(--text);
    }

    .scanner-menu-desc {
      font-weight: 500;
      font-size: 0.7rem;
      color: var(--text-light);
      line-height: 1.35;
    }

    @media (max-width: 768px) {
      #scanner-selector-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 210001;
        border-radius: 28px 28px 0 0;
        padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
        transform: translateY(100%);
        opacity: 1;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
      }
      
      #scanner-selector-menu.active {
        transform: translateY(0);
      }
      
      .mobile-sheet-handle {
        display: block;
        width: 36px;
        height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: -8px auto 16px auto;
      }
      
      .scanner-menu-header {
        margin-bottom: 16px;
      }
      
      .scanner-menu-block {
        padding: 14px;
        background: var(--background);
        border-color: var(--border);
      }
    }

    /* Voice Input Recording Animation */
    .recording-pulse-dot {
      width: 8px;
      height: 8px;
      background-color: #ef4444;
      border-radius: 50%;
      display: inline-block;
      animation: pulse-recording 1.2s infinite ease-in-out;
    }

    @keyframes pulse-recording {
      0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
      }
      70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
      }
      100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
      }
    }

    #btn-barrier-voice:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--primary);
    }
    body.dark-theme #btn-barrier-voice:hover {
      background: rgba(255, 255, 255, 0.05);
    }

    #btn-barrier-voice.recording {
      background-color: rgba(239, 68, 68, 0.12) !important;
      color: #ef4444 !important;
      box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
    }

    /* AI Environment Voice Describer styles (reusing standard scanner modal styling) */
    #voice-describer-modal .scanner-modal-content {
      border: 2px solid var(--border);
    }
    body.dark-theme #voice-describer-modal .scanner-modal-content {
      border-color: rgba(255, 255, 255, 0.1);
    }

    /* Accessibility contrast enhancements */
    .search-input::placeholder {
      color: var(--text);
      opacity: 0.8;
    }

    /* Solid action buttons for high contrast compliance */
    .btn-near-me, .btn-toggle-filters {
      background-color: #eff6ff !important;
      color: var(--secondary) !important;
    }
    .btn-near-me:hover, .btn-toggle-filters:hover {
      background-color: #dbeafe !important;
    }
    body.dark-theme .btn-near-me, body.dark-theme .btn-toggle-filters {
      background-color: #1e293b !important;
      color: #f1f5f9 !important;
    }
    body.dark-theme .btn-near-me:hover, body.dark-theme .btn-toggle-filters:hover {
      background-color: #334155 !important;
    }

    /* Spin keyframe animation */
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Prevent iOS Safari / Mobile Browser auto-zoom on input focus */
    @media screen and (max-width: 768px) {
      input[type="text"],
      input[type="password"],
      input[type="email"],
      input[type="tel"],
      input[type="number"],
      input[type="search"],
      input[type="url"],
      textarea,
      select,
      .form-control,
      #auth-modal input,
      #auth-modal select,
      #companion-request-modal input,
      #companion-request-modal textarea,
      #review-modal textarea {
        font-size: 16px !important;
      }
    }

    /* Scrollable cabinet subfilter nav on mobile */
    .cabinet-subfilter-nav {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 8px;
      overflow-x: auto !important;
      white-space: nowrap !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .cabinet-subfilter-nav::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    .cabinet-subfilter-nav button {
      flex-shrink: 0 !important;
      white-space: nowrap !important;
    }