/* Listing detail: one mobile bar (hide global bottom nav overlap) */
@media (max-width: 767px) {
  body.listing-detail-page nav.fixed.bottom-0 {
    display: none !important;
  }
  body.listing-detail-page main {
    padding-bottom: 0 !important;
  }
}

/* CLTList public layout fixes (directory cards, listing tags) */
.directory-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .directory-network-grid {
    grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  }
}
.directory-network-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.directory-network-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -12px rgba(99, 102, 241, 0.25);
}
.directory-network-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.25rem;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.directory-network-card:hover .directory-network-icon {
  background: #4f46e5;
  color: #fff;
}
.directory-network-title {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}
.directory-network-card:hover .directory-network-title {
  color: #fff;
}
.directory-network-count {
  font-size: 10px;
  font-weight: 900;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(99, 102, 241, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.directory-network-card:hover .directory-network-count {
  background: #4f46e5;
  color: #fff;
  border-color: #818cf8;
}
.search-cat-count {
  margin-left: auto;
  font-size: 9px;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
}
.search-cat-row.is-selected .search-cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.footer-link-tile {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.6);
  text-align: center;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s, background 0.2s;
}
@media (min-width: 768px) {
  .footer-link-tile {
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    font-weight: 400;
  }
}
.footer-link-tile:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.listing-desc-details {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}
.listing-desc-summary {
  cursor: pointer;
  list-style: none;
}
.listing-desc-summary::-webkit-details-marker {
  display: none;
}
.listing-desc-preview {
  display: block;
  margin-bottom: 0.35rem;
}
.listing-desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(129, 140, 248, 0.9);
}
.listing-desc-details[open] .listing-desc-preview {
  display: none;
}
.listing-desc-details[open] .listing-desc-toggle i {
  transform: rotate(180deg);
}
.listing-desc-full {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.listing-tags-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 8rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.listing-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.listing-tag:hover {
  background: rgba(79, 70, 229, 0.35);
  color: #e0e7ff;
  border-color: rgba(129, 140, 248, 0.4);
}

.clt-upload-progress {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.clt-upload-progress.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.clt-upload-progress-card {
  width: min(420px, 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.clt-upload-progress-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}
.clt-upload-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.clt-upload-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.15s ease;
}
.clt-upload-progress-bar.is-converting {
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}
.clt-upload-progress-label {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}