/* The Boss — product search (1.8.3). Uses the theme tokens of both styles (Romantic / Cheeky). */
.tb-search{position:relative;z-index:30;width:100%;max-width:36rem;margin-top:1.6rem}
.tb-search__form{position:relative;display:flex;align-items:center}
.tb-search__icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:var(--muted);display:flex;pointer-events:none}
.tb-search__input{width:100%;min-height:3.25rem;padding:.7rem 3rem .7rem 3rem;border:1px solid var(--line-2);border-radius:0;background:var(--card);color:var(--ink);font:400 1rem/1.3 var(--f-ui);letter-spacing:.01em;-webkit-appearance:none;appearance:none;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.tb-search__input::placeholder{color:var(--muted);opacity:1}
.tb-search__input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.tb-search__input:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.tb-search__clear{position:absolute;right:.4rem;top:50%;transform:translateY(-50%);width:2.6rem;height:2.6rem;display:grid;place-items:center;border:0;background:none;color:var(--ink-2);cursor:pointer}
.tb-search__clear:hover{color:var(--ink)}
.tb-search__clear[hidden],.tb-search__spin[hidden]{display:none}
.tb-search__spin{position:absolute;right:3.1rem;top:50%;width:1rem;height:1rem;margin-top:-.5rem;border:2px solid var(--line-2);border-top-color:var(--accent);border-radius:50%;animation:tb-search-spin .8s linear infinite}
@keyframes tb-search-spin{to{transform:rotate(360deg)}}

.tb-search__panel{position:absolute;left:0;right:0;top:calc(100% + .35rem);max-height:min(70vh,32rem);overflow:auto;-webkit-overflow-scrolling:touch;padding:.4rem;background:var(--card);border:1px solid var(--line-2);box-shadow:0 18px 40px rgba(0,0,0,.16);text-align:left}
.tb-search__panel[hidden]{display:none}
.tb-search__group{margin:.55rem .6rem .35rem;font:600 .66rem/1 var(--f-ui);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.tb-search__cats{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 .5rem .3rem}
.tb-search__chip{display:inline-flex;align-items:center;min-height:2.2rem;padding:.35rem .8rem;border:1px solid var(--line-2);color:var(--ink);font:500 .82rem/1.2 var(--f-ui);text-decoration:none}
.tb-search__chip:hover,.tb-search__chip.is-active{border-color:var(--accent);background:var(--bg-2)}
.tb-search__opt{display:flex;align-items:center;gap:.85rem;padding:.5rem .55rem;color:var(--ink);text-decoration:none}
.tb-search__opt:hover,.tb-search__opt.is-active{background:var(--bg-2)}
.tb-search__thumb{flex:0 0 auto;width:3.4rem;height:3.4rem;background:var(--bg-3);overflow:hidden}
.tb-search__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tb-search__txt{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.tb-search__name{font:500 .95rem/1.3 var(--f-ui);overflow:hidden;text-overflow:ellipsis}
.tb-search__cat{font:400 .74rem/1.2 var(--f-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.tb-search__all{display:block;margin:.3rem .1rem .1rem;padding:.8rem .6rem;border-top:1px solid var(--line);color:var(--accent);font:600 .82rem/1.2 var(--f-ui);letter-spacing:.06em;text-decoration:none}
.tb-search__all:hover,.tb-search__all.is-active{background:var(--bg-2)}
.tb-search__empty{padding:.9rem .7rem;color:var(--ink-2);font:400 .92rem/1.45 var(--f-ui)}
.tb-search__empty p+p{margin-top:.25rem;color:var(--muted);font-size:.85rem}
.tb-search :focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* All results (Rentals page, ?tb_q=) */
.tb-search-all{padding:0 2.45rem 2.6rem;scroll-margin-top:6rem}
.tb-search-all[hidden]{display:none}
.tb-search-all__head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:1.4rem 0 1rem;border-bottom:1px solid var(--line)}
.tb-search-all__title{font:400 1.6rem/1.2 var(--f-head);color:var(--ink)}
.tb-search-all__close{border:0;background:none;color:var(--muted);font:500 .8rem/1 var(--f-ui);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;white-space:nowrap}
.tb-search-all__close:hover{color:var(--ink)}
.tb-search-all__cats{padding:1rem 0 0}
.tb-search-all__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.6rem 1rem;padding-top:1rem}
.tb-search-all__grid .tb-search__opt{border:1px solid var(--line);background:var(--card)}
.tb-search-all .tb-search__empty{padding:1.2rem 0}

/* Where the field sits; the collection hero clips its photo, so it lets the open list out */
.tb-ch:has(.tb-search.is-open){overflow:visible;z-index:31}
.tb-cat .tb-search{margin:0 0 1.6rem;max-width:34rem}

/* Cheeky */
[data-tb-style="cheeky"] .tb-search__input{border-color:var(--line-2);background:var(--bg-2);font-weight:500}
[data-tb-style="cheeky"] .tb-search__panel{background:var(--bg-2);box-shadow:0 18px 40px rgba(0,0,0,.5)}
[data-tb-style="cheeky"] .tb-search__opt:hover,[data-tb-style="cheeky"] .tb-search__opt.is-active,
[data-tb-style="cheeky"] .tb-search__chip:hover,[data-tb-style="cheeky"] .tb-search__chip.is-active,
[data-tb-style="cheeky"] .tb-search__all:hover,[data-tb-style="cheeky"] .tb-search__all.is-active{background:var(--bg-3)}
[data-tb-style="cheeky"] .tb-search__group,[data-tb-style="cheeky"] .tb-search__cat{color:var(--accent)}
[data-tb-style="cheeky"] .tb-search__chip{font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.74rem}
[data-tb-style="cheeky"] .tb-search-all__title{font-family:var(--f-ui);font-weight:800;text-transform:uppercase;letter-spacing:.02em}
[data-tb-style="cheeky"] .tb-search-all__grid .tb-search__opt{background:var(--bg-2)}

@media (max-width:767px){
  .tb-search{max-width:none;margin-top:1.2rem}
  .tb-search__input{font-size:16px;min-height:3.4rem} /* 16px avoids the iPhone zoom on focus */
  .tb-search__panel{max-height:60vh}
  .tb-search-all{padding:0 1rem 2rem}
  .tb-search-all__title{font-size:1.3rem}
  .tb-search-all__grid{grid-template-columns:1fr}
  .tb-cat .tb-search{margin-bottom:1.2rem}
  body:has(.tb-search.is-open) .tb-wa-btn{display:none} /* the WhatsApp button would cover the suggestions */
}
@media (prefers-reduced-motion:reduce){.tb-search__spin{animation-duration:2s}}
