/* Inter font is self-hosted via @font-face in the page <head> critical CSS.
   Google Fonts @import removed to eliminate render-blocking external request. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fix autofill styling globally */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: inherit !important;
  transition: background-color 5000s ease-in-out 0s;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  background-color: white;
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-base);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #B91C1C;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-lockup-mark {
  width: 36px !important;
  height: 36px !important;
  max-width: none !important;
  object-fit: contain;
  flex: 0 0 36px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-base);
  position: relative;
  padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu li.active a {
  color: var(--danger-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--danger-color);
  transition: var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu li.active a::after {
  width: 100%;
}

.nav-actions {
  color: var(--text-muted);
}

.cart-icon {
  color: var(--text-muted);
  transition: var(--transition-base);
}

.nav-icon-container:hover .cart-icon {
  color: var(--danger-color);
}

.user-icon-wrapper {
  border: 2px solid transparent;
  border-radius: 50%;
  transition: var(--transition-base);
  overflow: hidden;
}

.user-profile-btn:hover .user-icon-wrapper {
  border-color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    order: 2;
    /* Put it after the profile icon */
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height, 70px);
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-actions {
    gap: 0.5rem !important;
  }

  .user-profile-btn {
    padding: 4px !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6),
    rgba(255, 90, 95, 0.3)
  );
  z-index: 2;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.hero-slide-static {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #fff, #ff8a8e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 0;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

.hero-search-overlay {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 800px;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: center;
}

.search-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-wrapper {
  display: flex;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-primary);
  color: #111827;
}

.search-button {
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-fast);
  font-size: 1rem;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.search-wrapper-enhanced {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  background: white;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-wrapper-enhanced:hover {
  box-shadow: 0 25px 70px rgba(255, 90, 95, 0.4);
  transform: translateY(-2px);
}

.search-input-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.search-input-group .search-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.search-input-modern {
  flex: 1;
  border: none;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-primary);
  background: transparent;
  color: #111827;
}

.search-input-modern::placeholder {
  color: #999;
}

/* Search Loader */
.search-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 90, 95, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 0.8s linear infinite;
  margin-right: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State / No Results */
.empty-state-container {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.empty-state-text h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-state-text p {
  color: var(--text-gray);
}

.filter-dropdown {
  padding: 0.75rem 1.25rem;
  border: none;
  background: rgba(255, 90, 95, 0.1);
  color: var(--text-dark);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.filter-dropdown:hover {
  background: rgba(255, 90, 95, 0.15);
  transform: translateY(-1px);
}

.filter-dropdown:focus {
  background: rgba(255, 90, 95, 0.2);
}

.search-button-modern {
  padding: 0.85rem 2rem;
  background: var(--btn-default-bg, var(--primary-color));
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.search-button-modern:hover {
  background: var(--btn-default-bg, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.search-button-modern:active {
  transform: translateY(0);
}

/* Main Content */
.main-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--container-padding);
}

.events-section {
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.discovery-grid-container {
  width: 100%;
  padding: 0 var(--container-padding);
  margin-top: 2rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
}

.events-grid .event-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  height: 100%;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-num:hover:not(.active) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-num.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}

.no-results-message {
  padding: 3rem;
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--divider-color);
  margin: 2rem 0;
}

.no-results-message .empty-state h3 {
  margin: 1rem 0 0.5rem;
  color: var(--text-dark);
}

.no-results-message .empty-state p {
  color: var(--text-muted);
}

.event-card {
  width: 100%;
  min-width: 260px;
  max-width: 340px;
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  animation: slideInLeft 0.6s ease-out both;
  min-height: 440px;
  margin-bottom: 1.5rem;
  height: 100%;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.event-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.event-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.event-category-badge {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-status-badge {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(4px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.event-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.event-date-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color); /* was darker indigo #4338ca */
}

.event-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 4px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto;
  min-height: 3rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.event-location {
  font-size: 12px;
  color: #52525b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card-description {
  font-size: 12px;
  color: #52525b;
  line-height: 1.5;
  margin: 4px 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 39px;
}

.address-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.address-link:hover {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.card-priority-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.priority-featured {
  background: linear-gradient(135deg, #722f37, #5a252b);
}

.priority-hot {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.priority-trending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.priority-nearby {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.priority-upcoming {
  background: linear-gradient(135deg, #2ecc71, #15803d); /* was green→purple */
}

.fav-btn svg {
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    fill 0.3s ease;
}

.fav-btn:active svg {
  transform: scale(1.4);
}

.fav-btn.active svg {
  fill: currentColor;
}

.event-organizer {
  font-size: 12px;
  color: #52525b;
  font-style: italic;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.organizer-verified {
  color: #2ecc71;
  font-size: 16px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 1.5rem 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.event-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-color); /* was darker indigo #4338ca */
}

.event-price.free {
  color: #2ecc71;
}

.event-card-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.card-action-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-action-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.favorite-btn.active {
  color: var(--primary-color);
  fill: var(--primary-color);
}

.more-info-btn {
  width: 100%;
  padding: 0.85rem;
  background: #f8f9fa;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 0.5rem;
}

.more-info-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer */
/* Footer Redesign */
.footer {
  background-color: var(--bg-darker);
  color: white;
  padding: var(--space-xl) 0 0 0;
  margin-top: var(--space-xl);
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer-brand h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-description {
  color: var(--nav-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: var(--space-md);
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--nav-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-base);
  display: block;
  padding: 4px 0;
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  padding: var(--space-md) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: var(--nav-text-muted);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-base);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    height: 400px;
  }

  .events-grid {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 350px;
  }

  .search-wrapper {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

/* User Profile Container & Dropdown */
.user-profile-container {
  position: relative;
}

.user-profile-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-icon-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: visible;
  transition: var(--transition-fast);
}

.user-icon-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 90, 95, 0.3);
}

.user-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-online-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border: 2px solid white;
  border-radius: 50%;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 150px;
  display: none;
  flex-direction: column;
  z-index: 1001;
  margin-top: 0.5rem;
  overflow: hidden;
}

.profile-dropdown.show {
  display: flex;
}

.user-info-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 90, 95, 0.05),
    rgba(255, 90, 95, 0.02)
  );
  border-bottom: 1px solid #f0f0f0;
}

.user-info-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info-header p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.profile-dropdown a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.profile-dropdown hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

/* Side Modal Styles */
.side-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: var(--bg-white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.side-modal.open {
  right: 0;
}

.side-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.side-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.side-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.profile-pic-large {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

#modalProfilePic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.edit-pic-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.save-profile-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color); /* blue default */
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.2s ease;
}

.save-profile-btn:hover {
  background-color: var(--primary-color); /* blue on hover */
  color: white !important;
  transform: translateY(-2px);
}

.logout-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background-color: var(--danger-hover);
  transform: translateY(-2px);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.1);
}

/* ── Red asterisk on all required field labels ─────────────────────────── */
.side-modal-body .form-group label:after,
.modal-body .form-group label:after,
.modal-grid .form-group label:after {
  content: " *";
  color: #ef4444;
  font-weight: 700;
}
/* Don't add asterisk to disabled/readonly field labels */
.side-modal-body .form-group:has(input[disabled]) label:after,
.modal-body .form-group:has(input[disabled]) label:after,
.modal-grid .form-group:has(input[disabled]) label:after,
.side-modal-body .form-group:has(input[readonly]) label:after,
.modal-body .form-group:has(input[readonly]) label:after,
.modal-grid .form-group:has(input[readonly]) label:after {
  content: "";
}

@media (max-width: 450px) {
  .side-modal {
    width: 100%;
    right: -100%;
  }
}

/* Staggered animation delays for the sliding effect */
.event-card:nth-child(1) {
  animation-delay: 0.1s;
}

.event-card:nth-child(2) {
  animation-delay: 0.15s;
}

.event-card:nth-child(3) {
  animation-delay: 0.2s;
}

.event-card:nth-child(4) {
  animation-delay: 0.25s;
}

.event-card:nth-child(5) {
  animation-delay: 0.3s;
}

/* Centered Login Modal */
.centered-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.centered-modal.show {
  display: flex;
  opacity: 1;
}

.modal-card {
  width: 90%;
  max-width: 420px;
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.centered-modal.show .modal-card {
  transform: translateY(0);
}

.modal-card .close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

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

.modal-header .modal-logo {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: Georgia, 'Palatino Linotype', serif;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.modal-header .modal-logo .brand-lockup {
  font-size: 1.75rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.modal-header p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 600;
}

.google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 100%;
  min-height: 50px;
  align-items: center;
  overflow: visible;
}

.google-btn-wrapper > div {
  display: flex !important;
  justify-content: center;
  width: 100%;
}

.google-btn-wrapper button {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.google-btn-wrapper iframe {
  display: block !important;
  max-width: 100%;
}

.modal-divider {
  position: relative;
  margin: 1.5rem 0;
  text-align: center;
}

.modal-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: #ddd;
}

.modal-divider span {
  position: relative;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0 1rem;
  color: #888;
  font-size: 0.85rem;
}

/* Event Details Popup Modal */
.event-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
}

.event-details-modal.active {
  display: flex;
  opacity: 1;
}

.event-details-content {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  backdrop-filter: blur(20px);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-details-modal.active .event-details-content {
  transform: scale(1) translateY(0);
}

.event-details-header {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.event-details-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Overlay badges on modal hero image */
.modal-img-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.event-details-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #333;
  transition: all 0.3s ease;
  z-index: 10;
}

.event-details-close:hover {
  background: rgba(255, 90, 95, 0.9);
  color: white;
  transform: rotate(90deg);
}

.event-details-body {
  padding: 1.35rem 1.5rem;
}

.event-details-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.event-details-modal .event-details-content h2,
.event-details-modal .event-details-content .event-details-title {
  font-weight: 800;
}

.event-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}

.event-meta-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.event-details-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.event-details-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.event-info-card {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.event-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.event-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.event-info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.event-details-footer {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.event-price-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-price-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.event-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.buy-ticket-btn {
  flex: 0 1 auto;
  width: auto;
  min-width: 180px;
  max-width: 260px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  background: var(--btn-default-bg, var(--primary-color));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.buy-ticket-btn:hover {
  background: var(--btn-default-hover, #15803d);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.35);
  filter: none;
}

.buy-ticket-btn:active {
  transform: translateY(-1px);
}

/* Enhanced Search Styles */
.search-wrapper {
  position: relative;
  animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(255, 90, 95, 0.2);
  }

  50% {
    box-shadow: 0 8px 30px rgba(255, 90, 95, 0.4);
  }
}

.search-input {
  transition: all 0.3s ease;
}

.search-input:focus {
  background: #fafafa;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  margin-top: 0.5rem;
}

.search-results-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: linear-gradient(90deg, rgba(255, 90, 95, 0.05), transparent);
  padding-left: 2rem;
}

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

.search-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), #ff8a8e);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-details-content {
    max-width: 95%;
    margin: 1rem;
  }

  .event-details-title {
    font-size: 1.5rem;
  }

  .event-details-footer {
    flex-direction: column;
  }

  .event-price-display {
    text-align: center;
  }
}

.modal-divider span {
  position: relative;
  background-color: white;
  padding: 0 1rem;
  color: #999;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.full-login-link {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin-bottom: 2rem;
}

.full-login-link:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.modal-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.modal-footer a:hover {
  text-decoration: underline;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.glass-effect {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Event Details Modal Styles */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
}

.event-modal.active {
  display: flex;
  opacity: 1;
}

.event-modal-content {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  backdrop-filter: blur(20px);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.event-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-modal-close:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.event-modal-body {
  display: flex;
  overflow-y: auto;
  max-height: 90vh;
}

.event-modal-image {
  position: relative;
  flex: 0 0 45%;
  min-height: 500px;
}

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

.event-modal-priority-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.event-modal-info {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
}

.event-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.event-modal-organizer {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-modal-organizer::before {
  content: "👤";
  font-size: 1.2rem;
}

.event-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 90, 95, 0.05);
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
}

.event-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.event-modal-meta-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.event-modal-description {
  margin-bottom: 2rem;
}

.event-modal-description h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.event-modal-description p {
  line-height: 1.8;
  color: #555;
}

.event-modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.event-modal-detail-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.buy-ticket-btn {
  width: auto;
  min-width: 180px;
  max-width: 260px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  background: var(--btn-default-bg, var(--primary-color));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.buy-ticket-btn:hover {
  background: var(--btn-default-hover, #15803d);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.35);
}

.buy-ticket-btn:active {
  transform: translateY(-1px);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .event-modal-body {
    flex-direction: column;
  }

  .event-modal-image {
    flex: 0 0 auto;
    min-height: 300px;
    max-height: 300px;
  }

  .event-modal-info {
    padding: 1.5rem;
  }

  .event-modal-title {
    font-size: 1.5rem;
  }

  .event-modal-details-grid {
    grid-template-columns: 1fr;
  }

  .search-wrapper-enhanced {
    border-radius: 20px;
  }

  .filter-dropdown {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .event-modal-content {
    border-radius: 16px;
    margin: 0.5rem;
  }

  .event-modal-info {
    padding: 1rem;
  }

  .buy-ticket-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Event Details Modal Modern Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1rem;
}

.modal.active {
  display: flex !important;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  margin: auto;
  opacity: 0;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modal specific animations */
@keyframes skeletonPulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.modal-close:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: scale(1.05) rotate(90deg);
}

@media (max-width: 640px) {
  .modal-content {
    margin: auto 0 0 0;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
  }

  .modal.active .modal-content {
    transform: translateY(0);
  }
}

/* Filter Select Styles */
.filter-select-modern {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1.25rem !important;
  color: white !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  min-width: 160px;
}

.filter-select-modern option {
  background: #1e293b;
  color: white;
}

.filter-select-modern:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

@media (max-width: 768px) {
  .filters-bar-modern {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select-modern {
    width: 100%;
  }
}

/* Side Modal Styles (Profile & Cart) */
.side-modal {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.side-modal.open {
  right: 0;
}

.side-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.cart-item:hover {
  background: #f1f5f9;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #1e293b;
}

.cart-item-price {
  font-weight: 600;
  color: #ff5a5f;
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #ef4444;
}

.checkout-mini-btn {
  background: linear-gradient(135deg, #ff5a5f 0%, #ff8a8e 100%);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.2);
  position: relative;
  overflow: hidden;
}

.checkout-mini-btn .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkout-mini-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.4);
  background: linear-gradient(135deg, #ff4a4f 0%, #ff5a5f 100%);
}

.checkout-mini-btn:hover .btn-icon {
  transform: translateX(3px);
}

.checkout-mini-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.2);
}

.nav-badge {
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .side-modal {
    width: 100%;
    right: -100%;
  }
}

/* Cart Dropdown Styles */
.cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 350px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: top right;
  animation: dropdownFadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-dropdown.show {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cart-dropdown-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-dropdown-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.clear-cart-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.clear-cart-btn:hover {
  color: #ef4444;
}

.cart-items-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-items-container::-webkit-scrollbar {
  width: 6px;
}

.cart-items-container::-webkit-scrollbar-track {
  background: transparent;
}

.cart-items-container::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.empty-cart-message {
  padding: 3rem 1rem;
  text-align: center;
  color: #94a3b8;
}

.empty-cart-message p {
  font-size: 0.9rem;
}

.cart-dropdown-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #f8fafc;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.checkout-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #ff5a5f, #ff7a7e);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 90, 95, 0.3);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.4);
  background: linear-gradient(135deg, #ff4a4f, #ff5a5f);
}

.checkout-btn:active {
  transform: translateY(1px);
}

@media (max-width: 480px) {
  .cart-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 70px);
    border-radius: 0;
  }
}

/* Verification Badges */
.verification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.verification-badge:hover {
  transform: scale(1.15);
}

.badge-verified {
  background: #2ecc71;
  color: white;
}

.badge-unverified {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

.badge-pending {
  background: #eff6ff;
  border: 1px solid #3b82f6;
  color: #3b82f6;
}

.badge-rejected {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #ef4444;
}

.verification-badge i {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.verified-check {
  color: #722f37;
  font-weight: bold;
  margin-left: 4px;
}

/* Premium Hero Carousel & WOW Effects */
.hero.swiper {
  position: relative;
  height: 600px;
  width: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-search-overlay {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  z-index: 10;
  padding: 0 1rem;
}

.swiper-button-next,
.swiper-button-prev {
  display: none !important;
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.2rem !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px !important;
  border-radius: 5px !important;
  background: var(--primary-color) !important;
}

/* Glassmorphism for Modals & Premium Forms */
.glass-effect {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.premium-input {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-input:focus {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

/* Count Up Animation Utility */
.count-up {
  display: inline-block;
  transition: all 0.5s ease;
}

/* Performance Optimizations */
.event-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.events-grid {
  contain: layout style paint;
}

.event-image {
  will-change: auto;
  backface-visibility: hidden;
}

.swiper-slide {
  transform: translateZ(0);
}

/* Reduce animations on slower devices */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Font loading optimization */
.google-signin {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.google-signin:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.google-signin:active {
  transform: translateY(0);
}

.google-icon {
  width: 20px;
  height: 20px;
}

.google-btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Ensure modal text is readable on glass background */
.centered-modal .modal-card h2,
.centered-modal .modal-card p {
  color: white;
}

/* ── Enhanced Responsiveness (TV, Tablets, Mobile) ── */

/* TV Screens & Large Displays (4K/UHD) */
@media (min-width: 1921px) {
  :root {
    --container-max-width: 1600px;
    --header-height: 100px;
  }
  body {
    font-size: 18px;
  }
  .hero {
    height: 800px;
  }
  .hero-title {
    font-size: 5rem;
  }
  .event-card {
    min-height: 550px;
  }
}

/* Large Desktops & Laptops */
@media (max-width: 1440px) {
  :root {
    --container-max-width: 1200px;
  }
}

/* Tablets (iPad, etc.) */
@media (max-width: 1024px) {
  :root {
    --container-padding: 2rem;
  }
  .hero {
    height: 500px;
  }
  .search-wrapper-enhanced {
    flex-direction: column;
    padding: 1.5rem;
  }
  .search-input-group {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    padding-left: 0;
  }
  .search-button-modern {
    width: 100%;
    justify-content: center;
  }
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile Devices (Phones) */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
    --header-height: 70px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .main-content {
    padding: 2rem 1.25rem;
  }
  .section-title {
    font-size: 1.25rem;
  }

  /* Navigation */
  .logo img {
    height: 46px;
  }
  .logo {
    font-size: 20px;
  }

  /* Search */
  .hero-search-overlay {
    bottom: 1rem;
  }
  .search-input-modern {
    font-size: 0.95rem;
  }

  /* Event Cards */
  .event-card {
    min-height: auto;
  }
  .event-image-container {
    height: 180px;
  }
  .event-content {
    padding: 1.25rem;
  }

  /* Pagination */
  .pagination-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .page-numbers {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .search-button-modern span {
    display: none;
  }
  .search-button-modern::after {
    content: "Search";
  }
  .event-title {
    font-size: 1.1rem;
  }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }
  .hero-content {
    margin-bottom: 0.5rem;
  }
  .nav-menu {
    overflow-y: auto;
  }
}

.text-danger {
  color: #ef4444 !important;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Footer Styles */
.footer {
  background: #111827;
  color: white;
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    #ff8a8e,
    var(--primary-color)
  );
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
}

.footer-brand .footer-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: white;
  outline: none;
}

.newsletter-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #ff4a4f;
}

.footer-bottom {
  max-width: var(--container-max-width);
  margin: 4rem auto 0;
  padding: 2rem var(--container-padding) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6b7280;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Per-state venue section (create-event) */
.per-state-container {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: var(--space-sm);
}
.per-state-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.per-state-header {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.per-state-icon {
  font-size: 1.25rem;
}
.per-state-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.per-state-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.per-state-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.per-state-toggle input {
  accent-color: var(--primary-color);
}
.per-state-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.per-state-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-subtle);
}
.per-state-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.per-state-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}
.per-state-required {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--danger-color);
  text-transform: uppercase;
}
.per-state-address-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}
.per-state-datetime {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.per-state-field label,
.per-state-field > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.per-state-date-wrap {
  position: relative;
}
.per-state-date-display {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--bg-card);
  cursor: pointer;
  box-sizing: border-box;
}
.per-state-date-wrap > span {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.per-state-mdp {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  width: 280px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.per-state-mdp.open {
  display: block;
}
.per-state-mdp-head {
  background: var(--primary-color);
  color: white;
  padding: 14px 16px;
}
.per-state-mdp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
}
.per-state-mdp-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 50%;
}
.per-state-mdp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  font-size: 0.8rem;
  padding: 0 12px 12px;
}
.per-state-mdp-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 16px 14px;
}
.per-state-mdp-foot button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.per-state-time-btn {
  padding: 0.65rem 1rem !important;
  font-size: 0.85rem !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Multi-location UI */
.mloc-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.mloc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mloc-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}
.mloc-toggle {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
}
.mloc-list {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--border-light);
  max-height: 220px;
  overflow-y: auto;
}
.mloc-list.open {
  display: flex;
}
.mloc-card {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.mloc-pin {
  color: var(--primary-color);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.mloc-body {
  flex: 1;
  min-width: 0;
}
.mloc-state {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.85rem;
}
.mloc-addr {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.mloc-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── Published-event recommendation banner (home page + app login page) ── */
.event-suggestions-banner {
  width: 100%;
  margin: 1.25rem 0 0.5rem;
}

.suggestions-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.suggestions-scroll::-webkit-scrollbar {
  height: 6px;
}

.suggestions-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.suggestion-card {
  flex: 0 0 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.suggestion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  border-color: var(--primary-color);
}

.suggestion-img {
  height: 118px;
  background-size: cover;
  background-position: center;
  background-color: #6b7280;
}

.suggestion-body {
  padding: 0.7rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.suggestion-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  margin-bottom: 0.05rem;
}

.suggestion-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.suggestion-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
}

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

.suggestions-scroll {
  animation: bannerSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Auto-sliding recommendation row: the cards are duplicated inside a track
   so the loop wraps seamlessly (each card carries a right margin equal to the
   gap, which makes -50% land exactly on the repeat). JS only switches this on
   when the cards are wider than the strip; otherwise the row stays manually
   scrollable. */
.suggestions-scroll.is-sliding {
  overflow: hidden;
}

.suggestion-track {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  animation: suggestionsSlide linear infinite;
  will-change: transform;
}

/* Sliding swaps the gap for an equal margin on every card (including the
   last), so -50% lands exactly on the repeat instead of half a gap out. */
.suggestions-scroll.is-sliding .suggestion-track {
  gap: 0;
}

.suggestions-scroll.is-sliding .suggestion-card {
  margin-right: 12px;
}

.suggestions-scroll.is-sliding:hover .suggestion-track {
  animation-play-state: paused;
}

@keyframes suggestionsSlide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Favorites sidebar cards */
.favorite-card {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
  cursor: pointer;
}
.favorite-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}
.favorite-card-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.favorite-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.favorite-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.favorite-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.favorite-card-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
}
.favorite-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}
