.tcnpd-directory-wrap {
  --tcnpd-intro-bg: #ffffff;
  --tcnpd-intro-title: #2f2f2f;
  --tcnpd-intro-text: #5f5a54;
  --tcnpd-primary-bg: #6d8466;
  --tcnpd-primary-text: #ffffff;
  --tcnpd-primary-hover: #5f7558;
  --tcnpd-secondary-bg: #d7e3ed;
  --tcnpd-secondary-text: #35566a;
  --tcnpd-secondary-hover: #c7d6e2;
  --tcnpd-filter-bg: #6d8466;
  --tcnpd-filter-text: #ffffff;
  --tcnpd-filter-hover: #5f7558;
  --tcnpd-badge-bg: #edf3ea;
  --tcnpd-badge-text: #5d7758;
  --tcnpd-card-border: #eee6db;
  --tcnpd-card-bg: #ffffff;

  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 24px 0;
}

.tcnpd-sidebar {
  position: sticky;
  top: 24px;
}

.tcnpd-filter-card,
.tcnpd-intro-card,
.tcnpd-card {
  background: var(--tcnpd-card-bg);
  border: 1px solid var(--tcnpd-card-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.tcnpd-filter-card {
  padding: 22px;
}

.tcnpd-filter-card h3 {
  margin: 0 0 18px;
  font-size: 1.4rem;
  color: #2f2f2f;
}

.tcnpd-filter-card label {
  display: block;
  margin: 14px 0 8px;
  color: #5f5a54;
  font-weight: 600;
}

.tcnpd-filter-card input[type="text"],
.tcnpd-filter-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd6cb;
  border-radius: 12px;
  background: #fcfbf9;
  box-sizing: border-box;
}

.tcnpd-check-row {
  display: flex !important;
  gap: 10px;
  align-items: center;
  margin-top: 14px !important;
}

#tcnpd-reset {
  margin-top: 16px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: var(--tcnpd-filter-bg);
  color: var(--tcnpd-filter-text);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

#tcnpd-reset:hover {
  background: var(--tcnpd-filter-hover);
}

.tcnpd-results-column {
  min-width: 0;
}

.tcnpd-intro-card {
  padding: 28px;
  margin-bottom: 18px;
  background: var(--tcnpd-intro-bg);
}

.tcnpd-intro-card h2 {
  margin: 0 0 8px;
  color: var(--tcnpd-intro-title);
  font-size: 2rem;
}

.tcnpd-intro-card p,
.tcnpd-desc,
.tcnpd-card p {
  color: var(--tcnpd-intro-text);
  line-height: 1.7;
}

.tcnpd-results-count {
  margin: 0 0 16px;
  color: #7a746c;
  font-weight: 600;
}

.tcnpd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.tcnpd-card {
  padding: 16px 16px 20px;
  overflow: hidden;
}

.tcnpd-card-image-wrap {
  position: relative;
  margin: -16px -16px 14px;
  border-bottom: 1px solid var(--tcnpd-card-border);
  background: #f7f5f2;
  height: 180px;
  overflow: hidden;
}

.tcnpd-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.tcnpd-card-image-wrap > .tcnpd-card-image,
.tcnpd-card-slide > .tcnpd-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tcnpd-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.tcnpd-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #2f2f2f;
}

.tcnpd-meta {
  color: #7a746c;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.tcnpd-location {
  color: #5f7558 !important;
  font-weight: 600;
  margin-bottom: 14px;
}

.tcnpd-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tcnpd-badge-bg);
  color: var(--tcnpd-badge-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.tcnpd-score {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4efe8;
  color: #6c665f;
  font-size: 0.82rem;
  font-weight: 700;
}

.tcnpd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tcnpd-tags span {
  background: #f4efe8;
  color: #6c665f;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.tcnpd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tcnpd-btn {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--tcnpd-primary-bg);
  color: var(--tcnpd-primary-text) !important;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.tcnpd-btn:hover {
  background: var(--tcnpd-primary-hover);
}

.tcnpd-btn-secondary {
  background: var(--tcnpd-secondary-bg);
  color: var(--tcnpd-secondary-text) !important;
}

.tcnpd-btn-secondary:hover {
  background: var(--tcnpd-secondary-hover);
}

.tcnpd-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .tcnpd-directory-wrap {
    grid-template-columns: 1fr;
  }

  .tcnpd-sidebar {
    position: static;
  }
}


.tcnpd-suggest-card {
  margin-top: 18px;
  padding: 22px;
  background: var(--tcnpd-card-bg);
  border: 1px solid var(--tcnpd-card-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.tcnpd-suggest-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #2f2f2f;
}

.tcnpd-suggest-card p {
  margin: 0 0 14px;
  color: #5f5a54;
  line-height: 1.65;
}

.tcnpd-btn-full {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.tcnpd-card-image-slider-wrap {
  position: relative;
}

.tcnpd-card-slider {
  position: relative;
  height: 100%;
}

.tcnpd-card-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tcnpd-card-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tcnpd-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(47, 47, 47, 0.62);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tcnpd-slider-prev { left: 10px; }
.tcnpd-slider-next { right: 10px; }

.tcnpd-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}

.tcnpd-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
}

.tcnpd-slider-dot.is-active {
  background: #fff;
}

@media (max-width: 680px) {
  .tcnpd-slider-nav {
    width: 30px;
    height: 30px;
  }
}
