/* Mobile-First CSS - Clean, usable mobile design */

/* Base mobile styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* CRITICAL: Prevent pull-to-refresh */
html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Navigation - Hamburger Menu Approach - OVERRIDE DESKTOP CSS */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  height: 60px !important;
  padding: 0 !important;
  min-height: 60px !important;
}

.dark .navbar {
  background: rgba(15, 23, 42, 0.98) !important;
  border-bottom-color: #334155 !important;
}

.nav-container {
  height: 60px !important;
  padding: 0 1rem !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
  max-width: none !important;
}

/* Hamburger menu button - left aligned */
.hamburger-menu {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 1001 !important;
  flex-shrink: 0 !important;
}

.hamburger-menu span {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background: #0f172a !important;
  margin: 6px 0 !important;
  transition: 0.3s !important;
  border-radius: 2px !important;
}

.dark .hamburger-menu span {
  background: #f1f5f9 !important;
}

/* Logo - visible on mobile */
.nav-logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.logo-image {
  height: 35px !important;
  width: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force logo visibility on mobile */
@media (max-width: 768px) {
  .nav-logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .logo-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Desktop navigation - hidden on mobile */
.nav-menu {
  display: none !important;
}

/* Desktop controls - hidden on mobile */
.nav-controls {
  display: none !important;
}

/* Side navigation menu */
.side-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid #e2e8f0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 80px 0 0 0;
}

.dark .side-nav {
  background: rgba(15, 23, 42, 0.98);
  border-right-color: #334155;
}

.side-nav.open {
  left: 0;
}

/* Side nav content */
.side-nav-content {
  padding: 1rem;
}

.side-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.side-nav-item {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.dark .side-nav-item {
  color: #f1f5f9;
}

.side-nav-item:hover,
.side-nav-item:active {
  background: rgba(0, 0, 0, 0.05);
}

.dark .side-nav-item:hover,
.dark .side-nav-item:active {
  background: rgba(255, 255, 255, 0.05);
}

/* Nav controls in side menu */
.side-nav-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.dark .side-nav-controls {
  border-top-color: #334155;
}

.side-nav-button {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.theme-toggle {
  align-self: center;
  padding: 0.75rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  border: 1px solid #e2e8f0;
  background: none;
  cursor: pointer;
}

.dark .theme-toggle {
  border-color: #334155;
}

/* Overlay for side menu */
.side-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.side-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Main content - Proper spacing from navbar */
.main-content,
.container,
.page-container,
.section-container,
.about-container,
.search-layout,
.browse-page-header,
.search-page-header,
.hero-section,
.reviews-section,
.profile-container,
.form-container,
.loading-container,
.empty-state,
.search-sidebar,
.search-results,
.managers-grid,
.reviews-grid,
.pagination,
.nav-buttons {
  margin-top: 60px !important;
  padding-top: 1rem !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Main content - Proper spacing */
.main-content {
  padding: 1rem;
  min-height: calc(100vh - 60px);
}

/* Hero section - Mobile optimized */
.hero-section {
  padding: 2rem 1rem;
  margin: 0;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  padding: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  padding: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 0 1rem;
}

.hero-cta,
.hero-cta-secondary,
.hero-cta-tertiary {
  width: 100%;
  max-width: 300px;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

/* Search layout - Mobile optimized */
.search-layout {
  display: block;
  grid-template-columns: none;
  gap: 1rem;
  padding: 0;
}

.search-sidebar {
  position: static;
  top: auto;
  max-height: none;
  margin-bottom: 1rem;
  order: 2;
  padding: 1rem;
}

.search-results {
  order: 1;
}

/* Browse page - Mobile optimized */
.browse-page-header,
.search-page-header {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.browse-page-title,
.search-page-title {
  font-size: 2rem;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.browse-page-subtitle,
.search-page-subtitle {
  font-size: 1rem;
  padding: 0 1rem;
}

/* Managers grid - Mobile optimized */
.managers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1rem;
}

.manager-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* Review cards - Mobile optimized */
.review-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  width: 100%;
  max-width: 100%;
}

.review-type-badge {
  position: relative;
  top: auto;
  right: auto;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Pagination - Mobile optimized */
.pagination {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0;
}

.page-numbers {
  order: -1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Navigation buttons - Mobile optimized */
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0;
}

/* Profile container - Mobile optimized */
.profile-container {
  padding: 0;
  margin: 0;
}

.profile-header {
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.profile-stats-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Reviews grid - Mobile optimized */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Form elements - Mobile optimized */
.form-container {
  padding: 1rem;
  margin: 0;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Loading and empty states - Mobile optimized */
.loading-container,
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
}

/* About Us page specific fixes */
.about-container {
  padding: 1rem;
}

.about-section {
  margin-bottom: 2rem;
  padding: 0;
}

.about-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Review text - Prevent horizontal overflow */
.review-text {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Theme tags - Prevent horizontal overflow */
.review-theme-tag {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

/* Responsive breakpoints */
@media (max-width: 480px) {
  .navbar {
    height: 50px;
  }
  
  .nav-container {
    height: 50px;
    padding: 0 0.75rem;
  }
  
  .hamburger-menu {
    width: 25px;
    height: 25px;
  }
  
  .hamburger-menu span {
    height: 2px;
    margin: 5px 0;
  }
  
  .logo-image {
    height: 30px;
  }
  
  .side-nav {
    width: 260px;
  }
  
  /* CRITICAL: Adjust margin-top for smaller navbar */
  .main-content,
  .container,
  .page-container,
  .section-container,
  .about-container,
  .search-layout,
  .browse-page-header,
  .search-page-header,
  .hero-section,
  .reviews-section,
  .profile-container,
  .form-container,
  .loading-container,
  .empty-state,
  .search-sidebar,
  .search-results,
  .managers-grid,
  .reviews-grid,
  .pagination,
  .nav-buttons {
    margin-top: 50px !important;
  }
  
  .main-content {
    padding: 0.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .browse-page-title,
  .search-page-title {
    font-size: 1.75rem;
  }
  
  .about-title {
    font-size: 1.75rem;
  }
}

/* Desktop overrides */
@media (min-width: 769px) {
  .navbar {
    height: 80px;
  }
  
  .nav-container {
    height: 80px;
    padding: 0 2rem;
    justify-content: space-between;
  }
  
  .hamburger-menu {
    display: none;
  }
  
  .side-nav,
  .side-nav-overlay {
    display: none;
  }
  
  .nav-logo {
    display: flex;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .nav-controls {
    display: flex;
  }
  
  .main-content {
    margin-top: 80px;
    padding: 2rem;
  }
}

/* Search page mobile optimizations */
.search-layout {
  display: block;
  grid-template-columns: none;
  gap: 1rem;
  padding: 0;
}

.search-sidebar {
  position: static;
  top: auto;
  max-height: none;
  margin-bottom: 1rem;
  order: 1;
  padding: 1rem;
  z-index: 1;
}

.search-results {
  order: 2;
}

.search-main {
  order: 2;
}

/* Dedicated Active Filters Container - Completely Independent */
.active-filters-container {
  position: relative !important;
  width: 100% !important;
  margin: 4rem 0 1rem 0 !important;
  padding: 0 1rem !important;
  z-index: 10 !important;
  order: 2 !important;
}

.active-filters {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  border: 2px solid #10b981 !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15) !important;
  position: relative !important;
  z-index: 10 !important;
  margin-top: 0 !important;
}

.dark .active-filters {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: #10b981 !important;
}

.active-filters-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  color: #0f172a !important;
  text-align: center !important;
}

.dark .active-filters-title {
  color: #f1f5f9 !important;
}

.filter-bubbles {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  justify-content: center !important;
}

.filter-bubble {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border-radius: 25px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
  transition: all 0.2s ease !important;
}

.filter-bubble:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

.filter-bubble-remove {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: white !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  padding: 0.25rem !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  font-weight: bold !important;
}

.filter-bubble-remove:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.1) !important;
}

/* Results summary - prevent overlap with filters */
.results-summary {
  margin: 2rem 0 1rem 0 !important;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  position: relative !important;
  z-index: 5 !important;
}

.dark .results-summary {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: #334155 !important;
}

.summary-stats {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  text-align: center !important;
}

.stat-item {
  font-size: 0.9rem !important;
  color: #64748b !important;
}

.dark .stat-item {
  color: #94a3b8 !important;
}

/* Ensure this container never interferes with other elements */
.search-sidebar {
  order: 1 !important;
  z-index: 1 !important;
  margin-bottom: 2rem !important;
  padding-bottom: 2rem !important;
}

.search-main {
  order: 3 !important;
  z-index: 1 !important;
  margin-top: 1rem !important;
  padding-top: 1rem !important;
}

/* Smooth scroll to results when filters applied */
.search-main {
  scroll-behavior: smooth !important;
}

/* Mobile search input improvements */
.sidebar-search-input {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  margin-bottom: 0.75rem !important;
}

.dark .sidebar-search-input {
  border-color: #334155 !important;
  background: rgba(15, 23, 42, 0.8) !important;
  color: #f1f5f9 !important;
}

.sidebar-search-button {
  width: 100% !important;
  padding: 0.75rem !important;
  background: #10b981 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
}

.sidebar-search-button:hover {
  background: #059669 !important;
}

/* Filter items - mobile optimized */
.filter-item {
  width: 100% !important;
  padding: 0.75rem !important;
  margin-bottom: 0.5rem !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.dark .filter-item {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

.filter-item:hover {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: #10b981 !important;
}

.filter-item.active {
  background: #10b981 !important;
  color: white !important;
  border-color: #10b981 !important;
}

.filter-label {
  font-weight: 500 !important;
}

.filter-count {
  font-size: 0.8rem !important;
  opacity: 0.8 !important;
}

/* Mobile Search Page Styles - ONLY for mobile devices */
@media (max-width: 768px) {
  /* Search page mobile optimizations */
  .search-layout {
    display: block;
    grid-template-columns: none;
    gap: 1rem;
    padding: 0;
  }

  .search-sidebar {
    position: static;
    top: auto;
    max-height: none;
    margin-bottom: 2rem;
    order: 1;
    padding: 1rem;
    z-index: 1;
  }

  .search-results {
    order: 2;
  }

  .search-main {
    order: 2;
    margin-top: 1rem;
  }

  /* Active filters - now inside search-main, prevent overlap */
  .active-filters {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid #10b981 !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15) !important;
    position: relative !important;
    z-index: 10 !important;
    margin: 2rem 0 1.5rem 0 !important;
  }

  .dark .active-filters {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: #10b981 !important;
  }

  .active-filters-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: #0f172a !important;
    text-align: center !important;
  }

  .dark .active-filters-title {
    color: #f1f5f9 !important;
  }

  .filter-bubbles {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    justify-content: center !important;
  }

  .filter-bubble {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.2s ease !important;
  }

  .filter-bubble:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
  }

  .filter-bubble-remove {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
  }

  .filter-bubble-remove:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
  }

  /* Results summary - prevent overlap with filters */
  .results-summary {
    margin: 2rem 0 1rem 0 !important;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .dark .results-summary {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: #334155 !important;
  }

  .summary-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
  }

  .stat-item {
    font-size: 0.9rem !important;
    color: #64748b !important;
  }

  .dark .stat-item {
    color: #94a3b8 !important;
  }

  /* Mobile search input improvements */
  .sidebar-search-input {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .dark .sidebar-search-input {
    border-color: #334155 !important;
    background: rgba(15, 23, 42, 0.8) !important;
    color: #f1f5f9 !important;
  }

  .sidebar-search-button {
    width: 100% !important;
    padding: 0.75rem !important;
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
  }

  .sidebar-search-button:hover {
    background: #059669 !important;
  }

  /* Filter items - mobile optimized */
  .filter-item {
    width: 100% !important;
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .dark .filter-item {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
  }

  .filter-item:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
  }

  .filter-item.active {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
  }

  .filter-label {
    font-weight: 500 !important;
  }

  .filter-count {
    font-size: 0.8rem !important;
    opacity: 0.8 !important;
  }
}

/* Mobile section titles - center on mobile */
.section-title {
  text-align: center !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}

/* Specific targeting for How It Works section */
.how-it-works-section .section-title {
  text-align: center !important;
  display: block !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  margin: 0 auto 1.5rem auto !important;
}

/* Recent Reviews section title */
.reviews-section .section-title {
  text-align: center !important;
  display: block !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}

/* Mobile hero and section improvements */
.hero-section {
  padding: 2rem 1rem;
  margin: 0;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  padding: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  padding: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 0 1rem;
}

.hero-cta,
.hero-cta-secondary,
.hero-cta-tertiary {
  width: 100%;
  max-width: 300px;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

/* Property Manager Search Styles */
.property-manager-search {
  position: relative;
  width: 100%;
}

.search-input-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.search-spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e1e5e9;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}



.pm-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-name {
  font-weight: 600;
  color: #333;
}



.pm-location {
  font-size: 14px;
  color: #888;
}



.property-manager-search-container {
  margin-bottom: 0;
}

.new-pm-fields {
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.field-group .form-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.field-group .form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.field-group select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.fields-complete-notification {
  margin-top: 12px;
  padding: 8px 12px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.filters-container {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}

.filter-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
}

.filter-select {
  padding: 10px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  min-width: 150px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: #007bff;
}

.filter-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.clear-filters-btn {
  padding: 0.75rem 1.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-end;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.clear-filters-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.clickable-location {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 123, 255, 0.08);
  font-weight: 500;
  display: inline-block;
  margin: 0 2px;
}

.clickable-location:hover {
  color: #0056b3;
  text-decoration: none;
  background: rgba(0, 123, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Active Filters */
.active-filters {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.active-filters-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.filter-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #007bff;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.filter-bubble-label {
  white-space: nowrap;
}

.filter-bubble-remove {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.filter-bubble-remove:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* City Search Styles */
.city-search-container {
  position: relative;
  width: 100%;
}

.city-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.2s ease;
  color: #333;
}

.city-search-input::placeholder {
  color: #999;
  font-style: italic;
}

.city-search-input:focus {
  color: #333;
}

.city-search-input:hover {
  border-color: #007bff;
}

.city-search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.city-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}

.city-search-result {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.city-search-result:last-child {
  border-bottom: none;
}

.city-search-result:hover {
  background-color: #f8fafc;
}

.city-search-result.add-new-city {
  color: #007bff;
  font-weight: 500;
  background-color: #f0f9ff;
}

.city-search-result.add-new-city:hover {
  background-color: #e0f2fe;
}


