/* TP Detailing sitezoeker */
.nav-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: var(--mist, #F4F7F8); cursor: pointer; padding: 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-search:hover, .nav-search:focus-visible { background: rgba(138,212,216,0.16); border-color: var(--tp-teal, #8AD4D8); color: var(--tp-teal, #8AD4D8); outline: none; transform: translateY(-1px); }
.nav-search svg { width: 18px; height: 18px; }

.tp-search { position: fixed; inset: 0; z-index: 400; display: none; }
.tp-search.is-open { display: block; }
.tp-search-backdrop { position: absolute; inset: 0; background: rgba(8,12,14,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: tp-s-fade 180ms ease; }
.tp-search-panel {
  position: relative; margin: 9vh auto 0; width: min(680px, calc(100% - 2rem));
  background: rgba(16,23,27,0.96); border: 1px solid rgba(138,212,216,0.22); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55); overflow: hidden; color: var(--mist, #F4F7F8);
  animation: tp-s-up 240ms cubic-bezier(.2,.8,.2,1);
}
.tp-search-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem .9rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tp-search-head svg { width: 20px; height: 20px; color: var(--tp-teal, #8AD4D8); flex-shrink: 0; }
.tp-search-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; font-size: 1.08rem; font-weight: 500; padding: .35rem 0; }
.tp-search-input::placeholder { color: rgba(244,247,248,0.45); }
.tp-search-close { border: 0; background: rgba(255,255,255,0.08); color: inherit; border-radius: 999px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.tp-search-close:hover { background: rgba(138,212,216,0.2); }
.tp-search-body { max-height: min(62vh, 560px); overflow-y: auto; padding: .6rem; }
.tp-search-hint { padding: .5rem .8rem .3rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,247,248,0.5); }
.tp-search-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: .3rem .8rem .8rem; }
.tp-search-chip { border: 1px solid rgba(138,212,216,0.3); background: rgba(138,212,216,0.08); color: var(--mist, #F4F7F8); border-radius: 999px; padding: .45rem .85rem; font: inherit; font-size: .82rem; cursor: pointer; }
.tp-search-chip:hover { background: rgba(138,212,216,0.2); }
.tp-search-list { list-style: none; margin: 0; padding: 0; }
.tp-search-item a { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; align-items: start; padding: .75rem .85rem; border-radius: 14px; color: inherit; text-decoration: none; }
.tp-search-item a:hover, .tp-search-item.is-active a { background: rgba(138,212,216,0.12); }
.tp-search-cat { grid-row: span 2; align-self: center; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink, #0E1518); background: var(--tp-teal, #8AD4D8); border-radius: 999px; padding: .3rem .55rem; white-space: nowrap; }
.tp-search-title { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.tp-search-title mark { background: transparent; color: var(--tp-teal, #8AD4D8); }
.tp-search-desc { font-size: .84rem; color: rgba(244,247,248,0.68); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-search-empty { padding: 1.2rem .9rem 1rem; }
.tp-search-empty p { margin: 0 0 .9rem; color: rgba(244,247,248,0.8); line-height: 1.5; }
.tp-search-empty .tp-search-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.tp-search-actions a { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .7rem 1.1rem; font-weight: 600; font-size: .86rem; text-decoration: none; }
.tp-search-actions .is-primary { background: var(--tp-teal, #8AD4D8); color: var(--ink, #0E1518); }
.tp-search-actions .is-secondary { border: 1px solid rgba(255,255,255,0.2); color: var(--mist, #F4F7F8); }
.tp-search-foot { display: flex; justify-content: space-between; padding: .6rem 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: .72rem; color: rgba(244,247,248,0.45); }
.tp-search-foot kbd { font: inherit; border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; padding: 0 .35rem; margin-right: .25rem; }
body.tp-search-open { overflow: hidden; }
@keyframes tp-s-fade { from { opacity: 0; } }
@keyframes tp-s-up { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@media (max-width: 640px) {
  .tp-search-panel { margin: 0; width: 100%; height: 100%; border-radius: 0; border: 0; display: flex; flex-direction: column; animation: tp-s-fade 180ms ease; }
  .tp-search-body { max-height: none; flex: 1; }
  .tp-search-foot { display: none; }
  .tp-search-input { font-size: 1rem; }
  .tp-search-head { padding-top: calc(.9rem + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) { .tp-search-backdrop, .tp-search-panel { animation: none; } }
.tp-search-input::-webkit-search-cancel-button, .tp-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.tp-search-cat { min-width: 68px; text-align: center; }
