.dkbd-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid #d9dde1;
  background: #f5f6fa;
}

.dkbd-filters {
  padding: 34px 28px;
  border-right: 1px solid #d9dde1;
  background: #ececf3;
}

.dkbd-panel-title {
  margin: 0;
  color: #353d87;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 500;
}

.dkbd-subtitle {
  margin: 26px 0 10px;
  color: #353d87;
  font-size: 1.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 500;
}

.dkbd-divider {
  height: 1px;
  background: #cfd3e1;
  margin: 18px 0 22px;
}

.dkbd-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #23273d;
}

#directory-kit-search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 16px 14px;
  border: 1px solid #ccd2de;
  border-radius: 12px;
  background: #fff;
  font-size: 1.1rem;
}

.dkbd-letters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dkbd-letter {
  border: 1px solid #ccd4db;
  background: #fff;
  border-radius: 12px;
  min-height: 44px;
  font-weight: 600;
  color: #cf3d77;
  cursor: pointer;
}

.dkbd-letter.is-active {
  background: #18253c;
  color: #fff;
  border-color: #18253c;
}

.dkbd-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dkbd-type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.dkbd-results-wrap {
  min-height: 220px;
  padding: 34px 44px;
  background: #f5f6fa;
}

.dkbd-loading {
  margin-bottom: 12px;
  color: #5d6772;
}

.dkbd-results {
  display: block;
  border-top: 0;
}

.dkbd-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.dkbd-page-btn {
  border: 1px solid #ccd4db;
  background: #fff;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 600;
  color: #18253c;
  cursor: pointer;
}

.dkbd-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.dkbd-page-status {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 600;
}

.dkbd-result-item {
  padding: 22px 0;
  border-bottom: 1px solid #d9dde1;
}

.dkbd-result-title {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 500;
  color: #353d87;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dkbd-title-link {
  color: inherit;
  text-decoration: none;
}

.dkbd-title-link:hover {
  text-decoration: underline;
}

.dkbd-result-type {
  margin: 4px 0 0;
  font-size: 1rem;
  color: #5d6772;
}

.dkbd-result-excerpt {
  margin: 10px 0 0;
  font-size: 1.1rem;
  line-height: 1.45;
  color: #2a2f36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 860px;
}

.dkbd-result-meta {
  margin: 6px 0 0;
  font-size: 1rem;
  color: #4b5563;
}

.dkbd-link {
  font-weight: 600;
}

.dkbd-empty,
.dkbd-error {
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.dkbd-error {
  border-color: #fecaca;
  color: #991b1b;
}

@media (max-width: 860px) {
  .dkbd-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dkbd-filters {
    border-right: 0;
    border-bottom: 1px solid #d9dde1;
  }

  .dkbd-results-wrap {
    padding: 24px 20px;
  }

  .dkbd-result-title {
    font-size: 2rem;
  }
}

/* ── Detail page ─────────────────────────────────────────────────────────── */

.dkbd-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.dkbd-back-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #353d87;
  text-decoration: none;
}

.dkbd-back-link:hover {
  text-decoration: underline;
}

.dkbd-detail-logo {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.dkbd-detail-name {
  margin: 8px 0 16px;
  font-size: 2.4rem;
  font-weight: 400;
  color: #1a1a2e;
}

.dkbd-detail-row {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #353d87;
}

.dkbd-detail-label {
  font-weight: 700;
  color: #1a1a2e;
  margin-right: 4px;
}

.dkbd-detail-link {
  color: #353d87;
  text-decoration: none;
}

.dkbd-detail-link:hover {
  text-decoration: underline;
}

.dkbd-social-row {
  display: flex;
  gap: 14px;
  margin: 12px 0 20px;
}

.dkbd-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #353d87;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.dkbd-social-link:hover {
  background: #2a3070;
}

/* Tabs */

.dkbd-tabs {
  margin-top: 20px;
}

.dkbd-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #353d87;
  flex-wrap: wrap;
}

.dkbd-tab-btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #555;
  border-radius: 4px 4px 0 0;
  transition: background 0.15s;
}

.dkbd-tab-btn:hover {
  background: #f0f2f8;
  color: #353d87;
}

.dkbd-tab-btn.is-active {
  background: #353d87;
  color: #fff;
  border-color: #353d87;
}

.dkbd-tab-body {
  border: 1px solid #d9dde1;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.dkbd-tab-panel {
  display: none;
  padding: 28px;
}

.dkbd-tab-panel.is-active {
  display: block;
}

/* About tab */

.dkbd-about-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.dkbd-about-content p {
  margin: 0 0 1em;
}

/* Gallery tab */

.dkbd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.dkbd-gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Location tab */

.dkbd-location-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.dkbd-location-text {
  margin: 0 0 20px;
}

.dkbd-map-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #5a6380;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: 3px;
}

.dkbd-map-btn:hover {
  background: #4a5270;
  color: #fff;
}

.dkbd-detail-loading {
  color: #888;
  font-style: italic;
}
