/* ============================================================
   LIST MODE
   Custom list view injected into #list-container.
   Controls (search + date range) are injected by JS on first open.
   ============================================================ */
#list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 20px 0 20px;
}

#list-search-wrap,
#list-daterange-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#list-search-wrap label,
#list-daterange-wrap label {
  color: #003c71;
  font-size: 16px;
}

#list-search {
  width: 320px;
  max-width: 100%;
  padding: 8px 40px 8px 12px; /* right side clears the × button */
  border: 1px solid #d0d3d4;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}

#list-daterange-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

#list-daterange-inputs input {
  width: 150px;
  padding: 8px 12px;
  border: 1px solid #d0d3d4;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}

#list-daterange-inputs span {
  color: #4f5964;
  font-size: 15px;
}

#list-results {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.list-event-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #d0d3d4;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.list-event-item:hover {
  background: #f2f3f4;
}

.list-event-item:hover .list-event-title {
  text-decoration: underline;
}

.list-event-thumb {
  flex: 0 0 140px;
  width: 140px;
  height: 100px;
  object-fit: cover;
  display: block;
  background: #f2f3f4;
}

.list-event-body {
  flex: 1 1 auto;
  min-width: 0;
}

.list-event-title {
  font-size: 18px;
  font-weight: 700;
  color: #003c71;
  margin-bottom: 4px;
}

.list-event-time {
  font-size: 14px;
  color: #4f5964;
  margin-bottom: 2px;
}

.list-event-date {
  font-size: 14px;
  color: #4f5964;
  margin-bottom: 6px;
}

.list-event-tags {
  font-size: 13px;
  color: #4f5964;
  margin-bottom: 8px;
}

.list-event-desc {
  font-size: 14px;
  color: #333333;
  line-height: 1.5;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#list-no-results {
  padding: 40px 0;
  color: #4f5964;
  font-size: 16px;
  text-align: center;
}

.list-count {
  font-size: 14px;
  color: #4f5964;
  padding: 4px 0 16px;
}

#list-pagination {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

#list-pagination button {
  background: #003c71;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

#list-pagination button:hover {
  background: #002850;
}


/* ============================================================
   MOBILE (max-width: 1000px)
   ============================================================ */
@media (max-width: 1000px) {
  #list-controls {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  #list-search {
    width: 100%;
  }

  #list-daterange-inputs {
    flex-wrap: wrap;
  }

  #list-daterange-inputs input {
    width: 130px;
  }

  .list-event-thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 70px;
  }

  .list-event-title {
    font-size: 15px;
  }

  #list-pagination {
    flex-direction: column;
  }

  #list-pagination button {
    width: 100%;
  }
}
