.tk-listings { scroll-margin-top: 6rem; }
.tk-listings [hidden] { display: none !important; }
.tk-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; padding: 1rem; background: #fff; border: 1px solid var(--line, #e8e0d5); border-radius: 1rem; }
.tk-filters label { flex: 1 1 10rem; display: grid; gap: .35rem; font-size: .9rem; color: var(--ink, #28251f); }
.tk-filters select, .tk-filters input { width: 100%; box-sizing: border-box; min-height: 2.7rem; border: 1px solid #d0cec5; border-radius: .6rem; background: #fff; padding: .35rem .55rem; font: inherit; color: inherit; }
.tk-filters input[aria-invalid="true"] { border-color: #a32426; }
.tk-listings button { font-family: inherit; cursor: pointer; }
.tk-ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.tk-ad { background: #fff; border: 1px solid var(--line, #e8e0d5); border-radius: 1rem; overflow: hidden; min-width: 0; }
.tk-ad img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #eeeae3; }
.tk-ad-body { padding: 1rem; display: grid; gap: .5rem; overflow-wrap: anywhere; }
.tk-ad-body h3, .tk-ad-body p { margin: 0; }
.tk-ad-meta { color: var(--muted, #777066); font-size: .9rem; }
.tk-ad-price { color: var(--accent-dark, #74351f); font-weight: 700; }
.tk-ad .button { justify-self: start; }
.tk-ad details summary { cursor: pointer; }
.tk-ad details p { white-space: pre-wrap; margin-top: .5rem; }
.tk-more { margin-top: 1rem; }
.tk-photo-viewer {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.tk-photo-viewer > img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  cursor: zoom-in;
}
.tk-photo-viewer > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #17212dcc;
  color: white;
  font-size: 28px;
  cursor: pointer;
}
.tk-photo-viewer > .tk-photo-prev { left: 10px; }
.tk-photo-viewer > .tk-photo-next { right: 10px; }
.tk-photo-viewer > button[hidden] { display: none; }
.tk-photo-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 20px;
  background: #17212dcc;
  color: white;
  font-size: 12px;
}
.tk-photo-dialog {
  width: min(1100px, 96vw);
  max-width: 96vw;
  max-height: 94vh;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #111827;
  color: white;
}
.tk-photo-dialog::backdrop { background: #000d; }
.tk-photo-panel > img {
  display: block;
  width: 100%;
  height: min(70vh, 750px);
  object-fit: contain;
}
.tk-photo-large-count { text-align: center; margin: 10px 0; }
.tk-photo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tk-photo-controls > button {
  padding: 10px 16px;
  border: 1px solid #ffffff55;
  border-radius: 10px;
  background: #253449;
  color: white;
  font: inherit;
  cursor: pointer;
}
.tk-photo-controls > button[hidden] { display: none; }