/* ============================================================
   LOCAL CDMX — components.css
   All component styles: cards, badges, buttons, forms, etc.
   ============================================================ */

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-2px);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transform: translateY(-2px);
  color: var(--white);
}

.btn--call {
  background: var(--primary);
  color: var(--white);
}
.btn--call:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-2px);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.btn--sm {
  padding: 6px 14px;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--font-size-base);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--border-radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.badge--pro {
  background: var(--pro-gold-gradient);
  color: #5A4700;
  box-shadow: var(--shadow-glow-gold);
}

.badge--destacado {
  background: var(--primary-gradient);
  color: var(--white);
}

.badge--verificado {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(76,175,80,0.2);
}

.badge--nuevo {
  background: var(--info-light);
  color: var(--info);
}

.badge--abierto {
  background: var(--green-light);
  color: var(--green);
}

.badge--cerrado {
  background: var(--error-light);
  color: var(--error);
}

/* ==================== STAR RATING ==================== */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.stars .star {
  font-size: 14px;
  color: var(--border);
  transition: color var(--transition-fast);
}

.stars .star.filled {
  color: #FBBF24;
}

.stars .star.half {
  position: relative;
  color: var(--border);
}

.stars .star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  overflow: hidden;
  width: 50%;
  color: #FBBF24;
}

.stars-count {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-left: 4px;
  font-weight: 500;
}

.stars-interactive .star {
  cursor: pointer;
  font-size: 22px;
}

.stars-interactive .star:hover,
.stars-interactive .star.active {
  color: #FBBF24;
  transform: scale(1.15);
}

/* ==================== FAVORITE HEART ==================== */
.favorite-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 18px;
  border: none;
  box-shadow: var(--shadow-sm);
}

.favorite-btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

.favorite-btn.active {
  color: var(--error);
  background: var(--white);
}

.favorite-btn.active .fav-icon::after {
  content: '❤️';
}

.favorite-btn .fav-icon::after {
  content: '🤍';
}

/* ==================== BUSINESS CARD — LIST VIEW ==================== */
.business-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  border: 1px solid var(--border-light);
}

.business-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(255,127,63,0.15);
}

.business-card--list {
  display: flex;
  min-height: 180px;
}

.business-card--list .card-image {
  width: 220px;
  min-height: 180px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.business-card--list .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.business-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* Featured card premium placeholder */
.featured-placeholder {
  background: linear-gradient(135deg, #FFF5EC 0%, #FFE0C7 30%, #FFD0A8 60%, #FFBF8A 100%);
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.featured-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,127,63,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.featured-placeholder-icon {
  font-size: 3.5rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.featured-placeholder-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-dark);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.card-image .favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.card-image .card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.business-card--list .card-body {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.card-name {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.card-name:hover {
  color: var(--primary);
}

.card-category {
  font-size: var(--font-size-xs);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 4px 0;
}

.card-rating-number {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-bottom: 6px;
}

.card-location-icon {
  color: var(--primary);
  font-size: 12px;
}

.card-tagline {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 6px;
}

/* Dynamic tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: var(--bg);
  border-radius: var(--border-radius-full);
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 500;
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

/* Recommendation avatars */
.card-recommendations {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 6px 0;
}

.card-rec-avatars {
  display: flex;
}

.card-rec-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-gradient-soft);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-left: -6px;
  position: relative;
}

.card-rec-avatar:first-child {
  margin-left: 0;
}

.card-rec-text {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  font-weight: 500;
}

.card-rec-text strong {
  color: var(--primary);
}

/* Card actions */
.card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
}

.card-actions .btn {
  font-size: 0.7rem;
  padding: 7px 14px;
}

.card-action-profile {
  margin-left: auto;
}

/* ==================== BUSINESS CARD — MOSAIC VIEW ==================== */
.business-card--mosaic {
  display: flex;
  flex-direction: column;
}

.business-card--mosaic .card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.business-card--mosaic .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.business-card--mosaic .card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.business-card--mosaic .card-actions {
  flex-wrap: wrap;
}

/* ==================== FEATURED CARD ==================== */
.featured-card {
  width: 320px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  flex-shrink: 0;
}

.featured-card:hover {
  box-shadow: var(--shadow-card-hover), var(--shadow-premium-orange);
  transform: translateY(-6px);
}

.featured-card .card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay for text readability on image */
.featured-card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.featured-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card .card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.featured-card .card-name {
  font-size: var(--font-size-md);
  margin-bottom: 4px;
  font-weight: 700;
}

/* Glowing badge pulse on featured cards */
.featured-card .badge--destacado {
  animation: dotPulse 2.5s ease-in-out infinite;
}

/* ==================== CATEGORY CARD ==================== */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  min-height: 180px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

/* Shine glint effect on hover */
.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 3;
}

.category-card:hover::after {
  animation: shine 0.6s ease forwards;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover), var(--shadow-premium-orange);
}

.category-card:hover::before {
  opacity: 0.06;
}

.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-spring);
  line-height: 1;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,127,63,0.1) 100%);
  border-radius: 50%;
}

.category-card:hover .category-card-icon {
  transform: scale(1.15) rotate(-3deg);
  background: linear-gradient(135deg, rgba(255,127,63,0.15) 0%, rgba(255,127,63,0.25) 100%);
}

.category-card-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin-top: var(--space-xs);
}

.category-card-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
  position: relative;
  z-index: 1;
  font-weight: 500;
  background: var(--bg-alt);
  padding: 2px 10px;
  border-radius: var(--border-radius-full);
}

/* ==================== STEP CARD (How it works) ==================== */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
  background-image: linear-gradient(var(--white), var(--white)),
                    linear-gradient(135deg, var(--primary), var(--pro-gold));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: var(--white);
  font-size: var(--font-size-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-glow-primary);
  position: relative;
  z-index: 2;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.step-desc {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  min-height: var(--filter-height);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-select {
  padding: 7px 32px 7px 12px;
  font-size: var(--font-size-xs);
  border-radius: var(--border-radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg);
  min-width: 140px;
}

.filter-select:focus {
  border-color: var(--primary);
}

/* Toggle switch */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-secondary);
}

.toggle-track {
  width: 38px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: background var(--transition-fast);
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: var(--shadow-xs);
}

.toggle-switch.active .toggle-track {
  background: var(--green);
}

.toggle-switch.active .toggle-track::after {
  transform: translateX(16px);
}

/* View toggle */
.view-toggle {
  display: flex;
  background: var(--bg);
  border-radius: var(--border-radius-full);
  padding: 3px;
  border: 1px solid var(--border);
  margin-left: auto;
}

.view-toggle-btn {
  padding: 5px 12px;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-toggle-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* ==================== SEARCH BAR ==================== */
.search-bar {
  position: relative;
  max-width: 600px;
}

.search-bar-input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 44px;
  border: 2px solid var(--border);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-base);
  background: var(--white);
  transition: all var(--transition);
}

.search-bar-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,127,63,0.12);
}

.search-bar-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
}

/* ==================== BANNER ROTATIVO ==================== */
.banner-rotativo {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--primary-gradient);
  min-height: 100px;
}

.banner-slide {
  display: none;
  padding: var(--space-lg) var(--space-xl);
  color: var(--white);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.banner-slide.active {
  display: block;
}

.banner-slide h3 {
  color: var(--white);
  font-size: var(--font-size-lg);
  margin-bottom: 4px;
}

.banner-slide p {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-bottom: var(--space-md);
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.banner-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ==================== PROFILE PAGE ==================== */
.profile-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg);
}

.profile-cover {
  height: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--primary-gradient-soft);
  margin-bottom: var(--space-xl);
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.profile-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
}

.profile-content {
  min-width: 0;
}

.profile-header {
  margin-bottom: var(--space-xl);
}

.profile-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.profile-name {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.profile-category {
  font-size: var(--font-size-sm);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.profile-tagline {
  font-size: var(--font-size-base);
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.profile-rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.profile-rating-big {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--text);
}

.profile-section {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.profile-section-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.profile-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.profile-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
  border: 1px solid var(--border-light);
}

/* Gallery */
.profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-sm);
}

.profile-gallery-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--transition);
}

.profile-gallery-img:hover {
  transform: scale(1.03);
}

.profile-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile sidebar */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.sidebar-card-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-sm);
}

.sidebar-info-item:last-child {
  border-bottom: none;
}

.sidebar-info-icon {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-info-label {
  color: var(--text-light);
  font-size: var(--font-size-xs);
}

.sidebar-info-value {
  font-weight: 500;
  color: var(--text);
}

/* Profile map */
.profile-map {
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: var(--space-sm);
}

/* ==================== REVIEWS ==================== */
.review-card {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.review-card:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.review-date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.review-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Review form */
.review-form {
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: var(--border-radius);
}

.review-form textarea {
  min-height: 80px;
  resize: vertical;
  margin: var(--space-sm) 0;
}

/* ==================== VIDEO EMBED ==================== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  animation: fadeIn 0.2s ease;
  padding: var(--space-lg);
}

.modal {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s ease;
}

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

.modal-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  padding: var(--space-md) var(--space-xl) var(--space-xl);
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--error);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--error);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Image upload area */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}

.image-upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.image-upload-icon {
  font-size: 36px;
  margin-bottom: var(--space-sm);
}

.image-upload-text {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.image-upload-text strong {
  color: var(--primary);
}

.image-previews {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.image-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Location picker map */
.location-picker-map {
  height: 250px;
  border-radius: var(--border-radius);
  border: 1.5px solid var(--border);
  margin-top: var(--space-sm);
}

/* Captcha */
.captcha-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.captcha-canvas {
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
}

.captcha-refresh {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform var(--transition);
}

.captcha-refresh:hover {
  transform: rotate(180deg);
  background: var(--primary-light);
}

.captcha-input {
  width: 100px;
}

/* ==================== PUBLISH FORM PAGE ==================== */
.publish-form-page {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.publish-form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.publish-form-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-lg);
}

.publish-form-section-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ==================== MY ACCOUNT ==================== */
.account-page {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.account-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.account-info h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.account-info p {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.account-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-lg);
  background: var(--white);
  border-radius: var(--border-radius-full);
  padding: 4px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}

.account-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.account-tab.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  animation: toastIn 0.3s ease forwards;
  min-width: 280px;
  max-width: 400px;
  border-left: 4px solid var(--green);
}

.toast--error {
  border-left-color: var(--error);
}

.toast--warning {
  border-left-color: var(--warning);
}

.toast--info {
  border-left-color: var(--info);
}

.toast.closing {
  animation: toastOut 0.3s ease forwards;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-close {
  margin-left: auto;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

/* ==================== LOADING SKELETON ==================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

.skeleton-card {
  height: 180px;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-md);
}

.skeleton-line {
  height: 14px;
  margin-bottom: var(--space-sm);
  border-radius: 6px;
}

.skeleton-line--short {
  width: 60%;
}

.skeleton-line--medium {
  width: 80%;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ==================== LEAFLET CUSTOM MARKERS ==================== */
.custom-marker {
  background: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-marker-inner {
  transform: rotate(45deg);
  font-size: 14px;
}

.custom-marker--pro {
  background: var(--pro-gold);
  box-shadow: var(--shadow-glow-gold);
}

.marker-popup {
  font-family: var(--font);
}

.marker-popup .popup-name {
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-bottom: 2px;
}

.marker-popup .popup-category {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-bottom: 4px;
}

.marker-popup .popup-rating {
  color: #FBBF24;
  font-size: var(--font-size-xs);
}

.marker-popup .popup-link {
  display: inline-block;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--primary);
  font-weight: 600;
}

/* ==================== RESPONSIVE COMPONENTS ==================== */
@media (max-width: 992px) {
  .profile-main {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    order: -1;
  }
  .profile-cover {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .business-card--list {
    flex-direction: column;
  }
  .business-card--list .card-image {
    width: 100%;
    height: 180px;
    min-height: unset;
  }
  .card-actions {
    flex-wrap: wrap;
  }
  .filter-bar {
    padding: var(--space-sm) var(--space-md);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .form-row {
    grid-template-columns: 1fr;
  }
  .account-header {
    flex-direction: column;
    text-align: center;
  }
  .modal {
    margin: var(--space-md);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .featured-card {
    width: 260px;
  }
  .card-actions .btn {
    font-size: 0.65rem;
    padding: 6px 10px;
  }
  .profile-section {
    padding: var(--space-md);
  }
}

/* ==================== PASSWORD TOGGLE ==================== */
.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.password-toggle:hover {
  opacity: 1;
}

/* ==================== OFFICIAL LOGO ==================== */
.header-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

.auth-logo-img {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ==================== COMPACT AUTH MODAL ==================== */
.auth-modal--compact .modal-body {
  padding: var(--space-md) var(--space-xl) var(--space-lg);
}

.auth-logo--compact {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
}

.auth-modal--compact .form-group {
  margin-bottom: var(--space-sm);
}

.auth-modal--compact .captcha-box {
  margin-bottom: var(--space-md);
}

.auth-modal--compact .auth-switch {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
}
