/* Fixes for events page styles */
.sidebar-content {
  padding-bottom: 6rem !important;
  overflow-y: auto;
  max-height: calc(100vh - 9rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sidebar-content::-webkit-scrollbar {
  width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}

.action-buttons-row {
  display: flex;
  width: 100%;
  gap: 0.75rem;
}

.action-buttons-row .btn-apply,
.action-buttons-row .btn-reset {
  flex: 1;
}

/* Four cards per row with larger images */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.event-image {
  position: relative;
  height: 345px !important;
  width: 100%;
  overflow: hidden;
}

/* Two-line title with ellipsis */
.event-title.two-line-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  line-height: 1.4;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* One-line description with ellipsis */
.event-description.one-line-description {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Compact card styles */
.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Event card link styles */
.event-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.event-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.25rem;
  margin-bottom: 0;
}

.event-price {
  font-weight: 600;
  font-size: 0.85rem;
  color: inherit;
}

/* Responsive adjustments for event cards */
@media (max-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .mobile-filter-visible {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .mobile-filter-visible .sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 6rem !important;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-filter-visible .sidebar-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
  }

  .mobile-filter-visible .sidebar-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 20;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
  }

  /* Mobile event card adjustments */
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .event-image {
    height: 250px !important;
  }
}
