/* Business Explorer HubSpot Module Styles */

/* CSS Custom Properties for easy theming */
.business-explorer-wrapper {
  --be-primary-color: #dd4d29;
  --be-secondary-color: #B8651A;
  --be-accent-color: #dd4d29;
  --be-text-primary: #1e293b;
  --be-text-secondary: #64748b;
  --be-text-light: #94a3b8;
  --be-bg-primary: #ffffff;
  --be-bg-secondary: #f8fafc;
  --be-bg-tertiary: #f1f5f9;
  --be-border-color: #e2e8f0;
  --be-border-light: #f1f5f9;
  --be-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --be-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --be-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --be-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --be-radius-sm: 4px;
  --be-radius-md: 8px;
  --be-radius-lg: 12px;
  --be-radius-xl: 16px;
  --be-spacing-xs: 4px;
  --be-spacing-sm: 8px;
  --be-spacing-md: 16px;
  --be-spacing-lg: 24px;
  --be-spacing-xl: 20px;
  --be-spacing-2xl: 48px;
  --be-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --be-transition-fast: all 0.15s ease-out;
}

 

/* Reset and base styles */
.business-explorer-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.business-explorer-wrapper *,
.business-explorer-wrapper *::before,
.business-explorer-wrapper *::after {
  box-sizing: border-box;
}

/* Main container */
.business-explorer {
  background: var(--be-bg-primary);
  border-radius: var(--be-radius-xl);
  box-shadow: var(--be-shadow-xl);
  overflow: hidden;
  transition: var(--be-transition);
  max-width: 100%;
  margin: 0 auto;
}

.business-explorer:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Header styles */
.explorer-header {
  background: #f8f9fa;
  color: var(--be-text-primary);
  text-align: center;
  padding: var(--be-spacing-xl) var(--be-spacing-lg);
  position: relative;
  overflow: hidden;
 
}

.explorer-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.explorer-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 var(--be-spacing-sm) 0;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}

.explorer-subtitle {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Category Navigation */
.category-nav {
  background: var(--be-bg-secondary);
  padding: 0px 20px 20px 20px;
  border-bottom: 1px solid var(--be-border-color);
}

.mobile-menu-toggle {
  display: none;
  width: 100%;
  background: var(--be-primary-color);
  color: white;
  border: none;
  padding: var(--be-spacing-md);
  border-radius: var(--be-radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--be-transition);
  margin-bottom: var(--be-spacing-md);
}

.mobile-menu-toggle:hover {
  background: var(--be-secondary-color);
  transform: translateY(-1px);
}

.mobile-menu-toggle:active {
  transform: translateY(0);
}

.hamburger-icon {
  margin-right: var(--be-spacing-sm);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--be-spacing-sm);
  justify-content: center;
}

.category-tab {
  background: var(--be-bg-primary);
  border: 1px solid var(--be-border-color);
  color: var(--be-text-secondary);
  padding: 8px 10px;
  border-radius: var(--be-radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: var(--be-transition);
  font-size: 12px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--be-spacing-xs);
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover {
  border-color: var(--be-primary-color);
  color: var(--be-primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(210, 105, 30, 0.1);
}

.category-tab.active {
  background: var(--be-primary-color);
  border-color: var(--be-primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
}

.category-icon {
  font-size: 1rem;
}

/* Business Content */
.business-content {
  position: relative;
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
}

.business-card {
  display: none;
  padding: 20px;
  animation: fadeInUp 0.5s ease-out;
}

.business-card.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Business Image */
.business-image-container {
  margin-bottom: var(--be-spacing-lg);
  border-radius: var(--be-radius-lg);
  overflow: hidden;
  box-shadow: var(--be-shadow-lg);
  transition: var(--be-transition);
}

.business-image-container:hover {
  transform: scale(1.02);
  box-shadow: var(--be-shadow-xl);
}

.business-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: var(--be-transition);
}

/* Business Information */
.business-info {
  text-align: left;
}

.business-name {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--be-text-primary);
  margin: 0 0 var(--be-spacing-md) 0;
  line-height: 1.2;
}

.business-address {
  display: flex;
  align-items: flex-start;
  gap: var(--be-spacing-sm);
  color: var(--be-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--be-spacing-md);
  font-weight: 500;
  line-height: 1.4;
}

.address-icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.business-description {
  color: var(--be-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--be-spacing-xl);
  font-size: 0.9375rem;
}

/* Action Buttons */
.business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--be-spacing-md);
  margin-bottom: var(--be-spacing-xl);
}

.action-btn {
  flex: 1;
  min-width: 140px;
  padding: var(--be-spacing-md) var(--be-spacing-lg);
  border: none;
  border-radius: var(--be-radius-md);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-size: 0.9375rem;
  transition: var(--be-transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--be-spacing-sm);
  line-height: 1;
}

.btn-icon {
  font-size: 1rem;
}

.btn-primary {
  background: var(--be-primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(210, 105, 30, 0.2);
}

.btn-primary:hover {
  background: var(--be-secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(210, 105, 30, 0.3);
}

.btn-secondary {
  background: var(--be-bg-primary);
  color: var(--be-primary-color);
  border: 2px solid var(--be-primary-color);
}

.btn-secondary:hover {
  background: var(--be-primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
}

.btn-tertiary {
  background: var(--be-accent-color);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-tertiary:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

/* Navigation Controls */
.nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
  padding: 0px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--be-border-color);
  background: var(--be-bg-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--be-text-secondary);
  transition: var(--be-transition);
  font-weight: bold;
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--be-primary-color);
  color: var(--be-primary-color);
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(210, 105, 30, 0.15);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.business-counter {
  font-weight: 600;
  color: var(--be-text-secondary);
  font-size: 0.9375rem;
}

/* Others Section */
.others-section {
  border-top: 1px solid var(--be-border-color);
  padding: var(--be-spacing-xl) var(--be-spacing-2xl);
  background: var(--be-bg-secondary);
}

.others-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--be-text-primary);
  margin: 0 0 var(--be-spacing-md) 0;
}

.others-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--be-spacing-sm);
}

.other-item {
  background: var(--be-bg-primary);
  border: 1px solid var(--be-border-color);
  padding: var(--be-spacing-sm) var(--be-spacing-md);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--be-text-secondary);
  cursor: pointer;
  transition: var(--be-transition);
  font-weight: 500;
  white-space: nowrap;
}

.other-item:hover {
  background: var(--be-primary-color);
  color: white;
  border-color: var(--be-primary-color);
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(210, 105, 30, 0.2);
}

/* Empty State */
.empty-state {
  padding: var(--be-spacing-2xl);
  text-align: center;
  color: var(--be-text-secondary);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--be-spacing-md);
  opacity: 0.5;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--be-text-primary);
  margin: 0 0 var(--be-spacing-sm) 0;
}

.empty-description {
  margin: 0;
  font-size: 0.9375rem;
}

/* Loading State */
.loading-state {
  padding: var(--be-spacing-2xl);
  text-align: center;
  color: var(--be-text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--be-border-light);
  border-top: 3px solid var(--be-primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--be-spacing-md);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .category-tabs {
    display: none;
    flex-direction: column;
  }

  .category-tabs.show {
    display: flex;
  }

  .business-card {
    padding: padding: 20px;
  }

  .business-actions {
    flex-direction: column;
  }

  .action-btn {
    min-width: unset;
  }

  .others-section {
    padding: var(--be-spacing-lg);
  }

  .explorer-title {
    font-size: 1.2rem;
  }

  .business-name {
    font-size: 1.25rem;
  }

  .nav-controls {
    padding: var(--be-spacing-sm) 0;
  }
}

@media (max-width: 480px) {
  .business-explorer-wrapper {
    --be-spacing-xs: 2px;
    --be-spacing-sm: 4px;
    --be-spacing-md: 8px;
    --be-spacing-lg: 16px;
    --be-spacing-xl: 10px;
    --be-spacing-2xl: 24px;
  }

  .business-image {
    height: 200px;
  }

  .category-tab {
    font-size: 0.8125rem;
    padding: var(--be-spacing-sm) var(--be-spacing-md);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .business-explorer-wrapper {
    --be-border-color: #000000;
    --be-text-secondary: #000000;
  }

  .category-tab,
  .nav-btn,
  .other-item {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .business-explorer-wrapper {
    --be-transition: none;
    --be-transition-fast: none;
  }

  .business-card {
    animation: none;
  }

  .loading-spinner {
    animation: none;
  }

  .category-tab::before {
    transition: none;
  }
}

/* Focus styles for accessibility */
.business-explorer-wrapper *:focus {
  outline: 2px solid var(--be-primary-color);
  outline-offset: 2px;
}

.business-explorer-wrapper *:focus:not(:focus-visible) {
  outline: none;
}

/* Print styles */
@media print {
  .business-explorer {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .mobile-menu-toggle,
  .nav-controls,
  .others-section {
    display: none;
  }

  .business-card {
    page-break-inside: avoid;
  }
}

/* RTL support */
[dir="rtl"] .business-address {
  flex-direction: row-reverse;
}

[dir="rtl"] .category-tab {
  flex-direction: row-reverse;
}

[dir="rtl"] .action-btn {
  flex-direction: row-reverse;
}

/* CRITICAL FIX: Add this to your existing CSS */
/* ADD THIS TO YOUR EXISTING CSS - CRITICAL FOR MAKING NAVIGATION WORK */

/* Hide all business cards by default */
.business-card {
  display: none !important;
}

/* Show only the active business card */
.business-card.active {
  display: block !important;
  animation: fadeIn 0.3s ease-in-out;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide inactive category content */
.category-content {
  display: none;
}

/* Show active category content */
.category-content.active {
  display: block;
}

/* Highlight current item in others section */
.other-item.current {
  background: var(--be-primary-color, #dd4d29);
  color: white;
  border-color: var(--be-primary-color, #dd4d29);
  transform: scale(1.05);
}