
    /* 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(18, 18, 20, 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: 500;
      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: 500;
      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(18, 18, 20, 0.08) !important;
      }
      body.dark-theme header {
        background: #121214 !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: #f8fafc !important;
        color: #475569 !important;
        box-shadow: none !important; border: 1px solid #e2e8f0 !important;
      }
      
      .btn-add-place-text {
        display: inline-block !important;
        font-size: 0.72rem !important;
        font-weight: 400 !important;
      }
      .lang-switcher .lang-btn {
    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: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !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(18, 18, 20, 0.12) !important;
      }
      body.dark-theme .search-filter-section {
        background: rgba(18, 18, 20, 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(18, 18, 20, 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(18, 18, 20, 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: 500;
      }

      .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: 400;
        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: rgba(0, 172, 236, 0.08);
      border-color: var(--primary);
      box-shadow: 0 4px 16px rgba(0, 172, 236, 0.15);
      transform: none !important;
    }

    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(18, 18, 20, 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 {
      transform: none !important;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 4px 16px rgba(0, 172, 236, 0.1);
      border-color: rgba(0, 172, 236, 0.3);
    }

    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(18, 18, 20, 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: 500;
      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: 500;
      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: 500;
      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: 500;
    }
    .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: 500;
    }
    .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: 500;
    }
    .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: rgba(255, 255, 255, 0.12);
    }

    /* Responsive Site Description visibility */
    .desktop-only-desc {
      display: none !important;
    }
    .mobile-only-desc {
      display: block !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: 500;
      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: 500 !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: #2c2c2e;
    }
    .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: 500;
      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;
      flex-shrink: 0;
      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: 500;
      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: 500;
      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: 500;
    }
    .chat-list-item.unread .chat-list-subtitle {
      font-weight: 400;
      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: 500;
        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(18, 18, 20, 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: 500;
        color: var(--primary);
    }
    .btn-delete-address {
        background: none;
        border: none;
        color: #ef4444;
        cursor: pointer;
        font-size: 0.82rem;
        font-weight: 400;
        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: 400;
        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(18, 18, 20, 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(18, 18, 20, 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: 500;
      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(18, 18, 20, 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 
    body.dark-theme #voice-describer-modal 

    /* 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: #1c1c1e !important;
      color: #f1f5f9 !important;
    }
    body.dark-theme .btn-near-me:hover, body.dark-theme .btn-toggle-filters:hover {
      background-color: #2c2c2e !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;
    }

/* User Request: Disable mouse hover translateY lift on place card items in list */
.place-card:hover, .place-card.active, .volunteer-request-card:hover {
  transform: none !important;
}


    /* Hover effects for action buttons & rate button */
    .btn-action-primary:hover, .btn-action-companion:hover, .btn-action:hover {
      background: #f1f5f9 !important;
      color: #000000 !important;
      border-color: #94a3b8 !important;
    }

    .btn-action-rate {
      background: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      color: #0f172a !important;
      font-weight: 500 !important;
      transition: all 0.2s !important;
    }

    .btn-action-rate:hover {
      background: #f1f5f9 !important;
      color: #000000 !important;
      border-color: #cbd5e1 !important;
    }


    /* Unified light button styles & hover effects */
    .btn-action-primary, .btn-action-companion, .btn-action-rate, .btn-action {
      background: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      color: #0f172a !important;
      font-weight: 500 !important;
      transition: all 0.2s ease !important;
    }

    .btn-action-primary:hover, .btn-action-companion:hover, .btn-action-rate:hover, .btn-action:hover {
      background: #f1f5f9 !important;
      color: #000000 !important;
      border-color: #cbd5e1 !important;
    }

    .btn-action-primary:hover, .btn-action-companion:hover, .btn-action-rate:hover, .btn-action:hover {
      background: #f1f5f9 !important;
      color: #000000 !important;
      border-color: #cbd5e1 !important;
    }

    .btn-action-primary:hover, .btn-action-companion:hover, .btn-action-rate:hover, .btn-action:hover {
      background: #f1f5f9 !important;
      color: #000000 !important;
      border-color: #cbd5e1 !important;
    }


/* Muted Lighter Colors for Rating and Rate Button */
.rating-score-text {
  color: #64748b !important;
  font-weight: 500 !important;
}

.btn-action-rate {
  color: #64748b !important;
  border-color: #e2e8f0 !important;
  background-color: #f8fafc !important;
  font-weight: 400 !important;
}

.btn-action-rate img {
  opacity: 0.65 !important;
}


/* Mobile Add Place Button - Icon Only (+) */
@media (max-width: 768px) {
  .btn-add-place-text {
    display: none !important;
  }
  #btn-add-place {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .btn-add-place-plus {
    margin-right: 0 !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }
}


/* Mobile Add Place Button - Circular Icon Only (+) */
@media (max-width: 768px) {
  .btn-add-place-plus {
    display: inline-block !important;
    margin-right: 0 !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    font-weight: 500 !important;
  }
  .btn-add-place-text {
    display: none !important;
  }
  #btn-add-place {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* Light Grey Styling for Add Place Button (#btn-add-place) */
#btn-add-place {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

#btn-add-place:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.btn-add-place-plus {
  color: #475569 !important;
}

body.dark-theme #btn-add-place {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
}



/* Shared action buttons: dark site colour and readable regular-weight labels. */
:root { --action-button-bg: #0f172a; --action-button-hover: #080f1e; }
html body :is(
  button[type="submit"], input[type="submit"],
  .btn-action, .btn-action-primary, .btn-action-companion, .btn-action-rate,
  .drawer-btn-primary, .drawer-action-btn,
  .apple-auth-submit-btn, .apple-rail-auth-btn, .apple-rail-chat-btn,
  .scanner-btn-primary, .drawer-scanner-action-btn,
  .drawer-ai-send-btn, .drawer-chat-send-btn,
  .cp-button, .cp-member-actions button, .cp-map-pick button, .cp-messenger-compose button,
  .public-person-action-primary, .public-person-header-friend .public-person-action,
  .desktop-pin-details,
  .place-details-guide-action, .place-details-upload button, .place-details-sign-in,
  .place-details-footer button,
  #cabinet-modal .cabinet-mission-actions button,
  #mobile-missions-modal .cabinet-mission-actions button,
  #drawer-view-cabinet #drawer-edit-profile-form .drawer-btn-primary,
  #cabinet-modal #cabinet-edit-profile-form .scanner-btn-primary
) {
  background: var(--action-button-bg) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  transform: none !important; translate: none !important; scale: none !important; rotate: none !important;
  transition: background-color .18s ease, color .18s ease !important;
}
html body :is(
  button[type="submit"], input[type="submit"],
  .btn-action, .btn-action-primary, .btn-action-companion, .btn-action-rate,
  .drawer-btn-primary, .drawer-action-btn,
  .apple-auth-submit-btn, .apple-rail-auth-btn, .apple-rail-chat-btn,
  .scanner-btn-primary, .drawer-scanner-action-btn,
  .drawer-ai-send-btn, .drawer-chat-send-btn,
  .cp-button, .cp-member-actions button, .cp-map-pick button, .cp-messenger-compose button,
  .public-person-action-primary, .public-person-header-friend .public-person-action,
  .desktop-pin-details,
  .place-details-guide-action, .place-details-upload button, .place-details-sign-in,
  .place-details-footer button,
  #cabinet-modal .cabinet-mission-actions button,
  #mobile-missions-modal .cabinet-mission-actions button,
  #drawer-view-cabinet #drawer-edit-profile-form .drawer-btn-primary,
  #cabinet-modal #cabinet-edit-profile-form .scanner-btn-primary
):hover:not(:disabled) { background: var(--action-button-hover) !important; transform: none !important; translate: none !important; scale: none !important; rotate: none !important; box-shadow: none !important; }
html body :is(.drawer-action-btn, .cp-button, .scanner-btn-primary, .btn-action-primary, .btn-action-companion, .desktop-pin-details, .desktop-pin-secondary button) > :is(strong, b, span:not(.material-symbols-rounded):not(.a11y-icon)) {
  font-weight: 400 !important; color: inherit !important;
}

/* Button labels stay regular even when an individual component sets bold text. */
html body :is(button, input[type="submit"], input[type="button"], .cp-button,
  #cabinet-modal #cabinet-edit-profile-form button,
  #drawer-view-cabinet #drawer-edit-profile-form button),
html body :is(button, .cp-button,
  #cabinet-modal #cabinet-edit-profile-form button,
  #drawer-view-cabinet #drawer-edit-profile-form button) :is(strong, b, span:not(.material-symbols-rounded):not(.a11y-icon)) {
  font-weight: 400 !important;
}
/* Volunteer map mission list uses the same compact typography as profile cards. */
.volunteer-request-card.volunteer-mission-card { padding: 12px 14px; font: 400 13px/1.5 var(--font-firago), sans-serif; content-visibility: auto; contain-intrinsic-size: auto 150px; }
.volunteer-mission-summary { display: grid; gap: 5px; cursor: pointer; list-style: none; padding-bottom: 9px; }
.volunteer-mission-summary::-webkit-details-marker { display: none; }
.volunteer-mission-summary .volunteer-mission-title { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.volunteer-mission-fold[open] .volunteer-mission-title { display: block; }
.volunteer-mission-when { font-size: 12px; color: var(--text-light); }
.volunteer-mission-handle { justify-self: center; width: 25px; height: 3px; border-radius: 3px; background: #cbd5e1; margin-top: 2px; }
.volunteer-mission-fold[open] .volunteer-mission-handle { background: var(--primary); }
.volunteer-mission-summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.volunteer-mission-body { padding-top: 3px; padding-bottom: 10px; }
.volunteer-mission-map { padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--heading); font: inherit; cursor: pointer; }
.volunteer-mission-title { margin: 0 0 10px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
.volunteer-mission-details { padding: 2px 12px; border-radius: 12px; background: #f5f5f8; margin-bottom: 10px; }
.volunteer-mission-detail { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 3px 9px; padding: 9px 0; }
.volunteer-mission-detail-icon { grid-column: 1; grid-row: 1 / span 2; color: #718397; padding-top: 2px; display: flex; }
.volunteer-mission-detail > small, .volunteer-mission-detail > span:not(.volunteer-mission-detail-icon) { grid-column: 2; }
.volunteer-mission-extra .companion-need-chip { display: inline-flex !important; align-items: center; gap: 4px; }
.volunteer-mission-extra svg { width: 14px; height: 14px; flex-shrink: 0; }
.volunteer-mission-extra .companion-needs-card > strong { display: flex !important; align-items: center; gap: 6px; }
.volunteer-mission-extra .companion-needs-card > strong svg { color: var(--primary); }
.volunteer-mission-detail + .volunteer-mission-detail::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(148,163,184,.18), transparent); }
.volunteer-mission-detail small { font-size: 11px; font-weight: 400; line-height: 1.4; color: var(--text-light); }
.volunteer-mission-detail > span:not(.volunteer-mission-detail-icon) { font-size: 13px; font-weight: 400; color: var(--heading); overflow-wrap: anywhere; }
.volunteer-mission-extra { font-size: 12px; line-height: 1.5; }
.volunteer-mission-extra .companion-needs-card { background: #f5f5f8; }
.volunteer-mission-extra .companion-needs-card > strong { font-size: 12px !important; font-weight: 600 !important; }
.volunteer-mission-extra .companion-needs-card > p { font-size: 12px !important; font-weight: 400 !important; }
.volunteer-mission-card > div:last-child { gap: 8px; flex-wrap: wrap; }
.volunteer-mission-card > div:last-child > span { font-size: 12px !important; font-weight: 500 !important; padding: 6px 9px; border-radius: 999px; background: #f5f5f8; }
.volunteer-section-header { font-size: 13px !important; font-weight: 600 !important; line-height: 1.5; }
body.dark-theme .volunteer-mission-details,
body.dark-theme .volunteer-mission-extra .companion-needs-card,
body.dark-theme .volunteer-mission-card > div:last-child > span { background: rgba(255,255,255,.04); }
/* Guide request previews use the same safe map bounds as place previews. */
.volunteer-request-popup { z-index: 1500; }
.request-marker.my-mission { position: relative; }
.request-marker-owner-badge { position: absolute; top: -3px; right: -4px; display: flex; width: 11px; height: 11px; align-items: center; justify-content: center; border: 1.5px solid #fff; border-radius: 50%; background: #0f172a; color: #fff; pointer-events: none; }
.request-marker-owner-badge svg { display: block; flex: none; width: 7px; height: 7px; }
.volunteer-request-popup .volunteer-popup-card { color: #172536; overflow-wrap: anywhere; }
.volunteer-request-popup .volunteer-popup-extra { margin: 8px 0; border-radius: 10px; background: #f4f6f9; }
.volunteer-request-popup .volunteer-popup-extra summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 10px; font: 400 12px var(--font-firago), sans-serif; color: #334155; cursor: pointer; list-style: none; }
.volunteer-request-popup .volunteer-popup-extra summary::-webkit-details-marker { display: none; }
.volunteer-request-popup .volunteer-popup-extra summary::after { content: '+'; color: #0284c7; font-size: 18px; }
.volunteer-request-popup .volunteer-popup-extra[open] summary::after { content: '−'; }
.volunteer-request-popup .volunteer-popup-extra-content { padding: 0 10px 10px; }
.volunteer-request-popup .volunteer-popup-extra .companion-needs-card { font-size: 12px; }
.volunteer-request-popup .volunteer-popup-extra .companion-need-chip { max-width: 100%; white-space: normal; font-size: 11px; }
.volunteer-request-popup .volunteer-popup-card > button { min-height: 40px; background: #0f172a !important; font: 400 13px var(--font-firago), sans-serif !important; }
.volunteer-request-popup .volunteer-popup-card > button:hover { background: #080f20 !important; transform: none; }

/* Keep the companion confirmation label and send icon on one centered row. */
#drawer-view-companion .drawer-req-actions #drawer-req-submit {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  text-align: center !important;
  line-height: 1.3 !important;
}
#drawer-view-companion .drawer-req-actions #drawer-req-submit > :is(.material-symbols-rounded, svg, img) {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  position: static !important;
  line-height: 1 !important;
}
/* Help offers share the mission drawer and the site's neutral form controls. */
#drawer-view-volunteer-offer{display:none;min-height:0;overflow:hidden;background:var(--card-bg,#fff)}
#drawer-view-volunteer-offer.active{display:flex;flex-direction:column;flex:1}
#drawer-view-volunteer-offer .volunteer-offer-scroll{flex:1;min-height:0;overflow-y:auto;padding:16px;scrollbar-gutter:stable}
.volunteer-offer-back{border:0;border-radius:9px;padding:8px 10px;margin-bottom:18px;background:var(--background,#f3f6f9);color:var(--heading);font:inherit;font-size:12px;cursor:pointer}
.volunteer-offer-content{font:400 13px/1.6 var(--font-firago),sans-serif;color:var(--text)}
.volunteer-offer-content h3{font-size:18px;font-weight:600;line-height:1.5;color:var(--heading);margin:0 0 10px;overflow-wrap:anywhere}
.volunteer-offer-content p{margin:0 0 18px;color:var(--text-light)}
.volunteer-offer-content .form-group{margin-bottom:16px}
.volunteer-offer-content label{display:block;font-size:12px;color:var(--text-light);margin-bottom:5px}
.volunteer-offer-content input:not([type=checkbox]):not([type=hidden]){box-sizing:border-box;width:100%;min-height:42px;padding:10px 12px;background:var(--background,#f7f9fc);border:1px solid var(--border,#dce5ee);border-radius:10px;font:inherit;color:var(--heading)}
.volunteer-offer-content :is(button,input,summary):focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.volunteer-offer-tips{background:var(--background,#f7f9fc);border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin:20px 0 12px}
.volunteer-offer-tips strong{font-weight:600;color:var(--heading)}
.volunteer-offer-content :is(ul,ol){padding-inline-start:19px;margin:8px 0 0}
.volunteer-offer-content li+li{margin-top:7px}
#volunteer-offer-rules{border:1px solid var(--border);border-radius:11px;padding:11px 13px;margin-bottom:16px}
#volunteer-offer-rules summary{cursor:pointer;font-weight:500;color:var(--heading)}
.volunteer-offer-agreement{display:flex;align-items:flex-start;gap:9px;margin:16px 0}
.volunteer-offer-agreement input{margin-top:4px;accent-color:var(--primary);flex:none}
.volunteer-offer-content .volunteer-offer-agreement label{color:var(--heading);font-size:13px;cursor:pointer}
.volunteer-offer-rules-link{border:0;padding:0;background:none;color:var(--primary);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.volunteer-offer-content .volunteer-offer-note{font-size:12px;border-top:1px solid var(--border);padding-top:14px}
.volunteer-offer-actions{display:flex;gap:8px;padding:4px 0 8px}
.volunteer-offer-content :is(.volunteer-offer-primary,.volunteer-offer-secondary){min-height:42px;padding:10px 13px;border:1px solid var(--border);border-radius:10px;font:inherit;font-size:13px;font-weight:500;cursor:pointer;line-height:1.5}
.volunteer-offer-primary{flex:2;background:#111b32;color:#fff}
.volunteer-offer-secondary{flex:1;background:var(--background,#f3f6f9);color:var(--heading)}
.volunteer-offer-primary:disabled{opacity:.45;cursor:not-allowed}
.volunteer-offer-content .modal-error-message{border-radius:10px;background:#ef44440d;color:#dc2626;padding:10px 12px;margin-bottom:14px}
#volunteer-offer-success:not([hidden]){display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 3px}
.volunteer-offer-success-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#e9f7ef;color:#16845b;font-size:28px;margin-bottom:18px}
.volunteer-offer-pending{display:inline-block;padding:4px 10px;border-radius:20px;background:#f8f3e7;color:#8a681f;font-size:12px;margin-bottom:20px}
.volunteer-offer-success-actions{display:grid;gap:9px;width:100%;margin-top:6px}
@media(max-width:768px){
 html body .desktop-left-column #drawer-view-volunteer-offer.active{position:fixed!important;z-index:204700!important;top:var(--mobile-shell-window-top,130px)!important;left:0!important;right:0!important;bottom:var(--mobile-shell-window-bottom,64px)!important;width:auto!important;height:auto!important;max-width:none!important;margin:0!important;border-radius:22px 22px 0 0!important;background:var(--card-bg,#fff)}
 .desktop-left-column.drawer-closed #drawer-view-volunteer-offer{display:none!important}
 #drawer-view-volunteer-offer:has(>.mobile-window-bar) .volunteer-offer-back{display:none}
 #drawer-view-volunteer-offer .volunteer-offer-scroll{padding:14px 18px 20px}
}
@media(max-width:768px){body:has(.desktop-left-column:not(.drawer-closed) #drawer-view-volunteer-offer.active) #map-pin-hints{visibility:hidden!important;pointer-events:none!important}}
