/*
  StandSeeker Dashboard - New Design System
  Light, Airy, Bubbly Experience
*/

/* ══════════════════════════════════════════════════════════
   Layout - Full Height Map Experience
   ══════════════════════════════════════════════════════════ */

.dashboard-page {
  height: calc(100vh - 60px); /* Account for header */
  overflow: hidden;
}

#map-layout {
  display: flex;
  flex-direction: row;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-background);
}

/* ══════════════════════════════════════════════════════════
   Map Container
   ══════════════════════════════════════════════════════════ */

#map {
  flex: 1;
  height: 100%;
  order: 1;
  border-radius: 0;
  position: relative;
}

/* Map overlay gradient for depth */
#map::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(250, 251, 255, 0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   Sidebar - Glass Effect
   ══════════════════════════════════════════════════════════ */

#sidebar {
  width: 400px;
  min-width: 400px;
  background: var(--glass-background);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
  z-index: 10;
  display: flex;
  flex-direction: column;
  order: 2;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   Toolbar / Filters - Modern Glass Card
   ══════════════════════════════════════════════════════════ */

#toolbar {
  padding: var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  z-index: 15;
}

#toolbar h6 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#toolbar-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#toolbar input,
#toolbar select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  color: var(--color-text-primary);
  transition: var(--transition-all);
}

#toolbar input::placeholder {
  color: var(--color-text-disabled);
}

#toolbar input:focus,
#toolbar select:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 4px var(--color-primary-100);
}

#toolbar .btn-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

#toolbar .btn {
  flex: 1;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-all);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

#toolbar .btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

#toolbar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
}

#toolbar .btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

#toolbar .btn-outline:hover {
  background: var(--color-slate-100);
  border-color: var(--color-slate-300);
}

/* ══════════════════════════════════════════════════════════
   Stand List - Card Grid
   ══════════════════════════════════════════════════════════ */

#stand-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  background: transparent;
}

#stand-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Stand Cards - Modern Glass Effect */
.stand-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-all);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease;
  animation-fill-mode: both;
  position: relative;
}

.stand-card:nth-child(1) { animation-delay: 0ms; }
.stand-card:nth-child(2) { animation-delay: 50ms; }
.stand-card:nth-child(3) { animation-delay: 100ms; }
.stand-card:nth-child(4) { animation-delay: 150ms; }
.stand-card:nth-child(5) { animation-delay: 200ms; }

.stand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-200);
}

.stand-card:active {
  transform: translateY(-2px);
}

.stand-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-200);
}

/* Card Header with Image/Avatar */
.stand-card-header {
  position: relative;
  height: 72px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FBCFE8 50%, #DBEAFE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stand-card-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.stand-card-header .stand-fallback {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Favorite Button */
.stand-card-favorite {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--color-slate-400);
  z-index: 5;
}

.stand-card-favorite:hover {
  background: white;
  transform: scale(1.1);
  color: #DB2777;
}

.stand-card-favorite.favorited {
  color: #DB2777;
}

.stand-card-favorite.favorited svg {
  fill: #DB2777;
}

.stand-card-favorite svg {
  width: 18px;
  height: 18px;
}

/* Featured Badge */
.stand-card-featured {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 10;
  padding: var(--space-1) var(--space-2);
  background: var(--gradient-warm);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.stand-card-featured svg {
  width: 12px;
  height: 12px;
}

/* Card Body */
.stand-card-body {
  padding: var(--space-3);
}

.stand-card-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stand-card-location {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.stand-card-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.stand-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.stand-card-stars {
  display: flex;
  gap: 2px;
}

.stand-card-stars svg {
  width: 14px;
  height: 14px;
}

.stand-card-stars svg.filled {
  color: #FBBF24;
  fill: #FBBF24;
}

.stand-card-stars svg.empty {
  color: var(--color-slate-200);
  fill: var(--color-slate-200);
}

.stand-card-rating-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.stand-card-description {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.stand-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.stand-card-item {
  font-size: 1rem;
}

/* Card Footer */
.stand-card-footer {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-slate-50);
}

.stand-card-footer .btn {
  flex: 1;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
}

/* Legacy support - old structure */
.stand-card > img:first-child {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.stand-card strong {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.stand-card small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stand-card .rating-stars {
  font-size: var(--text-sm);
  color: #FBBF24;
}

.stand-card .rating-stars-link {
  color: inherit;
}

.stand-card .btn-outline-primary {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  border: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.stand-card .btn-outline-primary:hover {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

/* Featured Badge in Card (legacy) */
.custom-infowindow-featured {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--gradient-warm);
  color: white;
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--color-text-muted);
}

.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-slate-300);
}

.empty-state .empty-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.empty-state .empty-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

#stand-items > div:only-child {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════════════════════════
   Map Markers - Modern Bubbly Style
   ══════════════════════════════════════════════════════════ */

.marker-wrapper {
  position: relative;
  cursor: pointer;
}

.stand-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 52px;
  height: 52px;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 8;
  font-weight: 700;
  font-size: 1.1em;
}

.stand-marker.featured {
  --glow-color: #FBBF24;
  border: 3px solid var(--glow-color);
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--glow-color) 40%, transparent),
    0 0 0 4px color-mix(in srgb, var(--glow-color) 15%, transparent);
  animation: pulseRingCustom 2s ease-out infinite;
}

@keyframes pulseRingCustom {
  0% {
    box-shadow:
      0 4px 12px color-mix(in srgb, var(--glow-color, #FBBF24) 40%, transparent),
      0 0 0 0 color-mix(in srgb, var(--glow-color, #FBBF24) 40%, transparent);
  }
  70% {
    box-shadow:
      0 4px 12px color-mix(in srgb, var(--glow-color, #FBBF24) 40%, transparent),
      0 0 0 12px transparent;
  }
  100% {
    box-shadow:
      0 4px 12px color-mix(in srgb, var(--glow-color, #FBBF24) 40%, transparent),
      0 0 0 0 color-mix(in srgb, var(--glow-color, #FBBF24) 40%, transparent);
  }
}

.stand-marker:hover {
  transform: scale(1.15);
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stand-marker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.stand-marker > span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  width: 100%;
  height: 100%;
  font-size: 1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Marker Rating Badge */
.marker-rating-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  color: #FBBF24;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1px;
  z-index: 10;
}

/* ══════════════════════════════════════════════════════════
   Info Window - Glass Card Design
   ══════════════════════════════════════════════════════════ */

.custom-infowindow {
  min-width: 300px;
  max-width: 360px;
  padding: 0;
  font-family: var(--font-family);
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

.popup-image-container {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.photo-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.photo-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: opacity 0.4s ease;
}

.photo-slideshow img.active {
  display: block;
}

.slideshow-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slideshow-dot.active {
  background: white;
  width: 24px;
  border-radius: var(--radius-md);
}

.popup-content {
  padding: var(--space-5);
  background: white;
}

.popup-header {
  margin-bottom: var(--space-3);
}

.popup-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.popup-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--gradient-warm);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.popup-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.popup-rating .rating-stars {
  color: #FBBF24;
  font-size: var(--text-sm);
}

.popup-rating .rating-count {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.popup-description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: var(--space-3) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-3) 0;
  font-size: var(--text-xl);
}

.item-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: default;
}

.item-icon:hover {
  transform: scale(1.2);
}

.popup-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

.popup-view-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-xl);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-all);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-primary);
}

.popup-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
  color: white;
}

/* Fallback for no image */
.popup-image-container .stand-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
}

/* ══════════════════════════════════════════════════════════
   Google Maps Info Window Overrides
   ══════════════════════════════════════════════════════════ */

.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: var(--radius-2xl) !important;
  box-shadow: var(--shadow-xl) !important;
  max-width: 360px !important;
  min-width: 300px !important;
  overflow: hidden !important;
  border: none !important;
}

.gm-style .gm-style-iw-d {
  overflow: visible !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gm-style .gm-style-iw-t {
  padding: 0 !important;
  margin: 0 !important;
}

.gm-style .gm-style-iw-tc::after {
  background: white !important;
  box-shadow: none !important;
}

/* Remove whitespace from close button header row */
.gm-style .gm-style-iw-chr {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10 !important;
}

.gm-style .gm-style-iw-ch {
  display: none !important;
}

.gm-ui-hover-effect {
  position: relative !important;
  top: var(--space-3) !important;
  right: var(--space-3) !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--radius-full) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  opacity: 1 !important;
  transition: var(--transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.gm-ui-hover-effect:hover {
  background: white !important;
  transform: scale(1.1) !important;
}

.gm-ui-hover-effect > span {
  background-color: var(--color-text-muted) !important;
  margin: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   Mobile Responsive
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .dashboard-page {
    height: calc(100vh - 60px - 60px); /* Header + bottom nav */
  }

  #map-layout {
    flex-direction: column;
  }

  #map {
    order: 1;
    height: 55%;
    flex: none;
  }

  #sidebar {
    order: 2;
    width: 100%;
    min-width: unset;
    height: 45%;
    border-left: none;
    border-top: 1px solid var(--color-border-light);
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
    margin-top: -20px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
  }

  /* Drag Handle - hidden since we have toggle button */
  #sidebar::before {
    display: none;
  }

  #toolbar {
    padding: var(--space-6) var(--space-4) var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  }

  #toolbar h6 {
    font-size: var(--text-xs);
    margin-bottom: var(--space-3);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
  }

  #toolbar h6:active {
    background: var(--color-slate-100);
  }

  #toolbar h6::after {
    content: '';
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-text-muted);
    transition: transform 0.2s ease;
  }

  #toolbar.collapsed h6::after {
    transform: rotate(-90deg);
  }

  #toolbar-content {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  #toolbar.collapsed #toolbar-content {
    max-height: 0;
    opacity: 0;
  }

  #stand-list {
    padding: var(--space-3);
  }

  .stand-card {
    padding: var(--space-3);
  }

  .stand-card img,
  .stand-card .stand-fallback {
    height: 120px;
  }

  /* Info Window Mobile */
  .custom-infowindow {
    min-width: 280px;
    max-width: 320px;
  }

  .popup-image-container {
    height: 140px;
  }

  .popup-content {
    padding: var(--space-4);
  }

  .popup-title {
    font-size: var(--text-base);
  }

  .gm-style .gm-style-iw-c {
    max-width: 320px !important;
    min-width: 280px !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  #map {
    height: 50%;
  }

  #sidebar {
    height: 50%;
  }

  .stand-card img,
  .stand-card .stand-fallback {
    height: 100px;
  }

  .popup-image-container {
    height: 120px;
  }
}

/* ══════════════════════════════════════════════════════════
   Custom Scrollbar - Subtle
   ══════════════════════════════════════════════════════════ */

#stand-list::-webkit-scrollbar {
  width: 6px;
}

#stand-list::-webkit-scrollbar-track {
  background: transparent;
}

#stand-list::-webkit-scrollbar-thumb {
  background: var(--color-slate-300);
  border-radius: var(--radius-full);
}

#stand-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-400);
}

/* ══════════════════════════════════════════════════════════
   Animations
   ══════════════════════════════════════════════════════════ */

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

/* ══════════════════════════════════════════════════════════
   Market Cards - Sidebar List
   ══════════════════════════════════════════════════════════ */

.market-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: var(--radius-xl);
  padding: var(--spacing-4);
  margin-bottom: var(--spacing-3);
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: fadeInUp 0.3s ease-out;
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
  border-color: #16a34a;
}

.market-card-header {
  display: flex;
  gap: var(--spacing-3);
  align-items: flex-start;
}

.market-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.market-icon i {
  font-size: 1.5rem;
  color: white;
}

.market-info {
  flex: 1;
  min-width: 0;
}

.market-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-800);
  margin: 0 0 var(--spacing-2) 0;
  line-height: 1.3;
}

.market-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  align-items: center;
  margin-top: 2px;
}

.market-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.market-status-badge.active {
  background: #22c55e;
  color: white;
}

.market-status-badge.confirmed {
  background: #3b82f6;
  color: white;
}

.market-stand-count {
  font-size: 0.8rem;
  color: var(--color-slate-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.market-stand-count i {
  font-size: 0.75rem;
}

.market-time-info {
  font-size: 0.8rem;
  color: var(--color-slate-500);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--color-slate-300);
}

.market-time-info i {
  font-size: 0.75rem;
}

.market-card-footer {
  margin-top: var(--spacing-3);
  padding-top: var(--spacing-3);
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.market-card-footer .btn-success {
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  font-weight: 600;
}

.market-card-footer .btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* ══════════════════════════════════════════════════════════
   Hours Filter Styles
   ══════════════════════════════════════════════════════════ */

#btn-open-now.active {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: white !important;
}

#hours-filter {
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border-color: var(--color-slate-300);
}
