/* Directory — contact list with anti-scrape UI */
.dir-wrap { max-width: 920px; }
.dir-filters { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dir-filters select,
.dir-filters input[type="search"] { min-width: 140px; flex: 1 1 140px; }
.dir-filters .art-btn { flex: 0 0 auto; }
.dir-meta {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.dir-list { display: flex; flex-direction: column; gap: 12px; }
.dir-row {
  background: #fff;
  border: 1px solid #d7e6ec;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(15, 39, 68, 0.04);
}
.dir-row-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 560px) {
  .dir-row-main { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
}
.dir-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f4f8;
}
.dir-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dir-thumb-empty {
  background: linear-gradient(135deg, #e8f4f8, #d7e6ec);
}
.dir-row-body { min-width: 0; }
.dir-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.dir-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 10px;
}
.dir-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: #0a4d61;
  font-weight: 700;
}
.dir-rating-empty { color: #94a3b8; font-weight: 600; font-size: 0.85rem; }
.dir-star { color: #f5b301; font-size: 1rem; line-height: 1; }
.dir-rating-count { color: #64748b; font-weight: 600; }
.dir-article-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0e7490;
  text-decoration: none;
}
.dir-article-link:hover { text-decoration: underline; }
.dir-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #475569;
}
.dir-track-label { font-weight: 700; color: #0a4d61; }
.dir-track-code {
  text-decoration: none;
  color: inherit;
}
.dir-track-code code {
  font-family: Menlo, Consolas, ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  background: #eef6f9;
  color: #0a4d61;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #cfe3ea;
}
.dir-track-home {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0e7490;
  text-decoration: none;
}
.dir-track-home:hover { text-decoration: underline; }
.dir-btn-directions {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: #1d4ed8;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1.2;
}
.dir-btn-directions:hover { background: #1e40af; }
.dir-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a4d61;
  letter-spacing: -0.02em;
}
.dir-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0e7490;
  background: #e5f4f8;
  border-radius: 999px;
  padding: 3px 8px;
}
.dir-addr {
  margin: 0 0 10px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}
.dir-contacts {
  display: grid;
  gap: 8px;
}
@media (min-width: 640px) {
  .dir-contacts { grid-template-columns: 1fr 1fr; }
}
.dir-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}
.dir-contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #64748b;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}
.dir-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 28px;
}
.dir-ad-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 28, 40, 0.72);
  backdrop-filter: blur(3px);
}
.dir-ad-gate[hidden] { display: none !important; }
body.dir-ad-open { overflow: hidden; }
.dir-ad-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d7e6ec;
  box-shadow: 0 18px 48px rgba(15, 39, 68, 0.22);
  overflow: hidden;
}
.dir-ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f9fb;
  color: #0a4d61;
  font-weight: 800;
  font-size: 0.92rem;
}
.dir-ad-hint {
  margin: 0;
  padding: 0 14px 8px;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 600;
}
.dir-ad-count {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0e7490;
  white-space: nowrap;
}
.dir-ad-body {
  padding: 14px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dir-ad-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.dir-ad-link img {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
}
.dir-ad-caption {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}
.dir-ad-empty {
  display: block;
  width: 100%;
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed #99d0df;
  border-radius: 12px;
  color: #0e7490;
  font-weight: 700;
  text-decoration: none;
  background: #f8fcfd;
}
.dir-ad-loading {
  width: 100%;
  text-align: center;
  padding: 48px 16px;
  color: #0e7490;
  font-weight: 700;
}
.dir-obf {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: #0f2744;
  font-weight: 700;
}
.dir-rev {
  direction: rtl;
  unicode-bidi: bidi-override;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.dir-decoy-half::after {
  content: attr(data-tail);
}
.dir-mask-plain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}
.dir-svg-phone {
  display: block;
  height: 22px;
  width: auto;
  max-width: 100%;
}
.dir-btn {
  appearance: none;
  border: 0;
  background: #0e7490;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.dir-btn:hover { background: #0a5f75; }
.dir-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.dir-btn.secondary {
  background: #fff;
  color: #0e7490;
  border: 1px solid #99d0df;
}
.dir-empty {
  color: #64748b;
  padding: 24px 8px;
  text-align: center;
}
.dir-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.dir-lang {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}
.dir-lang button {
  border: 1px solid #b7dbe5;
  background: #fff;
  color: #0a4d61;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  cursor: pointer;
}
.dir-lang button.active {
  background: #0e7490;
  color: #fff;
  border-color: #0e7490;
}
