/* ===========================================
   COACH SHOW CARDS - Compact Directory Cards
   Loaded as separate file to avoid CSS truncation
   =========================================== */

/* --- Card Grid --- */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 968px) {
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .coaches-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Card Base --- */
.coach-card {
  background: #1a1d25;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.coach-card:hover {
  border-color: #FF6B2B;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* --- Card Image --- */
.coach-card-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1E2028, #252830);
  flex-shrink: 0;
}

.coach-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.coach-card:hover .coach-card-img img {
  transform: scale(1.05);
}

.coach-card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

/* --- Placeholder (no image) --- */
.coach-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E2028, #252830);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
}

/* --- Badges --- */
.coach-card-badges {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  display: flex;
  gap: 0.375rem;
  z-index: 2;
}

.coach-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.coach-badge-verified {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

.coach-badge-featured {
  background: rgba(255, 107, 43, 0.9);
  color: white;
}

/* --- Card Body --- */
.coach-card-body {
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.coach-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #F0F0F5;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-card-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-card-location svg {
  flex-shrink: 0;
}

.coach-card-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Tags --- */
.coach-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.coach-tag {
  font-size: 0.6rem;
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.1);
  color: #FF6B2B;
  border: 1px solid rgba(255, 107, 43, 0.2);
  font-weight: 500;
}

.coach-tag-more {
  font-size: 0.6rem;
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* --- View Profile Button --- */
.coach-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.5rem 1rem;
  margin-top: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FF6B2B;
  background: rgba(255, 107, 43, 0.08);
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.coach-card-btn:hover {
  background: rgba(255, 107, 43, 0.15);
  border-color: #FF6B2B;
  color: #FF6B2B;
}

.coach-card-btn svg {
  transition: transform 0.2s ease;
}

.coach-card:hover .coach-card-btn svg {
  transform: translateX(3px);
}

/* --- Card Link Wrapper --- */
.coach-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* --- Featured Card Highlight --- */
.coach-card-featured {
  border-color: rgba(255, 107, 43, 0.25);
}

/* --- Listing Card Fallback (old class names) --- */
.listing-card {
  background: #1a1d25;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.listing-card:hover {
  border-color: #FF6B2B;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.listing-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.listing-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, #1E2028, #252830);
}

.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

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

.listing-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E2028, #252830);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
}

.listing-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

.listing-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.375rem;
  z-index: 2;
}

.listing-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.listing-badge-verified {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

.listing-badge-featured {
  background: rgba(255, 107, 43, 0.9);
  color: white;
}

.listing-card-content {
  padding: 1.25rem;
}

.listing-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  line-height: 1.3;
  color: #F0F0F5;
}

.listing-card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.listing-card-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.listing-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.1);
  color: #FF6B2B;
  border: 1px solid rgba(255, 107, 43, 0.2);
  font-weight: 500;
}

.listing-tag-more {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}


/* ═══════════════════════════════════════════
   LISTINGS SHORTCODE STYLES
   ═══════════════════════════════════════════ */

.cd-listings-wrap {
  padding: 2rem 0;
}

/* Filter bar */
.cd-listings-filter-bar {
  background: #1a1d25;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.cd-listings-search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.cd-listings-search-field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0 1rem;
  height: 44px;
  min-width: 200px;
}

.cd-listings-search-field svg {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.cd-listings-search-field input {
  background: transparent;
  border: none;
  outline: none;
  color: #F0F0F5;
  font-size: 0.9rem;
  width: 100%;
  padding: 0;
}

.cd-listings-search-field input::placeholder {
  color: rgba(255,255,255,0.35);
}

.cd-listings-select-wrap {
  flex: 0 1 180px;
}

.cd-listings-select-wrap select {
  width: 100%;
  height: 44px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: #F0F0F5;
  font-size: 0.875rem;
  padding: 0 2.25rem 0 1rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-color: rgba(0,0,0,0.3);
}

.cd-listings-select-wrap select:focus {
  border-color: #FF6B2B;
}

.cd-listings-select-wrap select option {
  background: #1a1d25;
  color: #F0F0F5;
}

.cd-listings-clear-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  background: transparent;
}

.cd-listings-clear-btn:hover {
  color: #F0F0F5;
  border-color: rgba(255,255,255,0.3);
}

/* Results meta */
.cd-listings-meta {
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
}

.cd-listings-meta strong {
  color: #F0F0F5;
}

.cd-listings-meta em {
  color: #FF6B2B;
  font-style: normal;
}

/* No results */
.cd-listings-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.4);
}

.cd-listings-no-results h3 {
  margin-top: 1rem;
  color: #F0F0F5;
  font-size: 1.25rem;
}

.cd-listings-no-results p {
  margin-top: 0.5rem;
}

/* Pagination */
.cd-listings-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.cd-listings-pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  gap: 0.375rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.cd-listings-pagination .page-numbers li a,
.cd-listings-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: #F0F0F5;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  background: #1a1d25;
}

.cd-listings-pagination .page-numbers li a:hover {
  border-color: #FF6B2B;
  color: #FF6B2B;
}

.cd-listings-pagination .page-numbers li span.current {
  background: #FF6B2B;
  border-color: #FF6B2B;
  color: #fff;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .cd-listings-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cd-listings-select-wrap {
    flex: 1 1 100%;
  }
  .cd-listings-search-field {
    flex: 1 1 100%;
  }
}
