/* Card Navigation Popup Styles */
.card-nav-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  z-index: 9999;
}

.card-nav {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  height: 60px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.card-nav.open {
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-nav-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 2;
  background: #fff;
}

.hamburger-menu {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  margin: -10px;
  margin-left: auto;
}

.hamburger-line {
  width: 30px;
  height: 2px;
  background: #000;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hamburger-menu:hover .hamburger-line {
  opacity: 0.75;
}

.nav-logo {
  height: 28px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.card-nav-content {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
}

.card-nav.open .card-nav-content {
  visibility: visible;
  pointer-events: auto;
}

.nav-card {
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(50px);
}

.nav-card-label {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.nav-card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.nav-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
  font-size: 16px;
}

.nav-card-link:hover {
  opacity: 0.75;
}

.nav-card-link-icon {
  width: 16px;
  height: 16px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .card-nav-content {
    flex-direction: column;
  }
  
  .nav-card-label {
    font-size: 18px;
  }
  
  .nav-card-link {
    font-size: 15px;
  }
}

/* Filters card styling */
.nav-card-filters {
  /* No transition here - GSAP will handle all animation */
  cursor: pointer;
}

.nav-card-filters:hover {
  /* Only apply hover when pointer-events are enabled */
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
}

.nav-card-filters[style*="pointer-events: none"] {
  cursor: default;
}

.nav-card-filters[style*="pointer-events: none"]:hover {
  transform: none;
  box-shadow: none;
}

.filter-hint {
  font-size: 14px;
  opacity: 0.9;
}

.filter-status {
  font-size: 12px;
  opacity: 0.8;
  font-style: italic;
}

/* Filter panel header with close button */
.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filter-panel-header h3 {
  margin: 0;
}

.filter-close-btn {
  background: transparent;
  border: 1px solid rgba(0, 119, 190, 0.3);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #0077be;
}

.filter-close-btn:hover {
  background: rgba(0, 119, 190, 0.1);
  border-color: #0077be;
}