/* ── Filter Dropdowns ───────────────────────── */
.cs-filter-select {
  min-width: 160px;
  padding: 10px 36px 10px 16px;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  background-color: #fff;
  font-family: var(--font-grotesk);
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
}
.cs-filter-select:focus {
  border-color: #3867DB;
  box-shadow: 0 0 0 1px #3867DB;
}

/* ── Cards ──────────────────────────────────── */
.cs-card {
  cursor: pointer;
}
.cs-card:hover .cs-tag {
  opacity: 0.85;
}

/* ── Tags ───────────────────────────────────── */
.cs-tag {
  display: inline-block;
  font-family: var(--font-grotesk);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  line-height: 1.4;
}
.cs-tag-geo {
  background: #EEF2FF;
  color: #3867DB;
}
.cs-tag-ind {
  background: #F0FDF4;
  color: #15803D;
}

/* ── Line clamp fallback ────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Detail: results list ───────────────────── */
.cs-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-results ul li {
  position: relative;
  padding-left: 24px;
}
.cs-results ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: #3867DB;
  border-radius: 3px;
  transform: rotate(45deg);
}

/* ── Detail: transitions ────────────────────── */
#detail-view {
  animation: csFadeIn 0.3s ease;
}
@keyframes csFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────── */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  #cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .cs-filter-select {
    min-width: 0;
    flex: 1;
  }
  #cards-grid {
    grid-template-columns: 1fr;
  }
  #detail-view .max-w-\[900px\] {
    padding-left: 16px;
    padding-right: 16px;
  }
}
