/* Tibarg search: adapted from the supplied card/form styles, scoped to this plugin. */
.tcs, .tcs-compact, .tcs-header-search {
  --tcs-accent: #144e9b;
  --tcs-text: #222;
  --tcs-muted: #464b55;
  --tcs-border: rgba(70,75,85,.18);
  --tcs-soft: rgba(20,78,155,.09);
  --tcs-surface: #fff;
  --tcs-radius: 18px;
  color: var(--tcs-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  min-width: 0;
  max-width: 100%;
}
.tcs { display: block; width: 100%; }
.tcs *, .tcs-compact *, .tcs-header-search * { box-sizing: border-box; }
.tcs [hidden], .tcs-compact [hidden] { display: none !important; }
.tcs .tcs-form { display: block !important; margin: 0 !important; }
.tcs .tcs-label { display: block; max-width: 760px; margin: 0 auto 16px; color: var(--tcs-text); font: inherit; font-size: clamp(22px,3vw,30px); font-weight: 500; line-height: 1.3; }
.tcs .tcs-input-row, .tcs-compact { display: flex; align-items: stretch; gap: 12px; }
.tcs .tcs-input-row { width: 100%; max-width: 760px; margin: 0 auto; }
.tcs input[type=search], .tcs-compact input[type=search] { appearance: none; flex: 1; min-width: 0; width: 100%; min-height: 54px; height: auto; margin: 0; padding: 0 18px; border: 2px solid var(--tcs-accent); border-radius: 10px; background: #fff; color: var(--tcs-text); font: inherit; font-size: 16px; box-shadow: none; }
.tcs button, .tcs select, .tcs-compact button { font: inherit; font-size: 16px; text-transform: none; letter-spacing: normal; cursor: pointer; }
.tcs .tcs-submit, .tcs-compact button { min-height: 54px; margin: 0; padding: 10px 22px; border: 2px solid var(--tcs-accent); border-radius: 10px; background: var(--tcs-accent); color: #fff; font-weight: 500; box-shadow: none; transition: background-color .2s,color .2s; }
.tcs .tcs-submit:hover, .tcs-compact button:hover { background: #fff; color: var(--tcs-accent); }
.tcs :is(a,button,input,select):focus-visible, .tcs-compact :is(button,input):focus-visible, .tcs-header-search summary:focus-visible { outline: 2px solid var(--tcs-accent); outline-offset: 3px; }
.tcs .tcs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; max-width: 1180px; margin: 35px auto 25px; gap: 24px; }
.tcs .tcs-status { margin: 0; flex: 0 1 auto; color: var(--tcs-muted); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.tcs .tcs-status strong { color: var(--tcs-accent); font-weight: 600; }
.tcs .tcs-types { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin: 0; gap: 10px; }
.tcs .tcs-type { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 20px; border: 1px solid var(--tcs-accent); border-radius: 100px; background: transparent; color: var(--tcs-accent); font-family: inherit; font-size: 16px; line-height: 1; font-weight: 500; white-space: nowrap; appearance: none; box-shadow: none; transition: background-color .2s,color .2s,border-color .2s; }
.tcs .tcs-type:hover { background: rgba(20,78,155,.08); }
.tcs .tcs-type[aria-pressed=true] { background: var(--tcs-accent); border-color: var(--tcs-accent); color: #fff; }
.tcs .tcs-count { min-width: 16px; color: inherit; font-size: inherit; font-weight: 400; text-align: center; }
.tcs .tcs-filters { display: flex; flex-wrap: wrap; align-items: end; max-width: 1180px; margin: 0 auto 25px; padding: 20px; border: 1px solid var(--tcs-border); border-radius: 10px; background: #fafafa; gap: 16px; }
.tcs .tcs-filter { display: flex; flex: 1 1 170px; flex-direction: column; min-width: 0; margin: 0; color: var(--tcs-muted); font-size: 16px; font-weight: 500; gap: 8px; }
.tcs .tcs-filter select { width: 100%; min-height: 54px; margin: 0; padding: 0 34px 0 18px; border: 2px solid var(--tcs-accent); border-radius: 10px; background: #fff; color: var(--tcs-text); font-size: 16px; line-height: 1.4; }
.tcs .tcs-reset { padding: 12px 0; color: var(--tcs-accent); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.tcs .tcs-results { width: 100%; max-width: 1180px; margin: 0 auto; scroll-margin-top: 100px; }
.tcs[aria-busy=true] .tcs-results { opacity: .65; transition: opacity .15s; }
.tcs .tcs-grid { display: flex; flex-direction: column; gap: 18px; }
.tcs .tcs-card { position: relative; width: 100%; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--tcs-border); border-radius: var(--tcs-radius); background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.04); transition: transform .2s,box-shadow .2s,border-color .2s,opacity .2s; }
.tcs .tcs-card:hover { transform: translateY(-2px); border-color: rgba(20,78,155,.35); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.tcs .tcs-card-link { display: grid; grid-template-columns: 230px minmax(0,1fr); width: 100%; height: 100%; color: inherit; text-decoration: none !important; }
.tcs .tcs-card-link:hover { color: inherit; }
.tcs .tcs-card--no-image .tcs-card-link { grid-template-columns: 1fr; }
.tcs .tcs-image { position: relative; min-height: 190px; overflow: hidden; background: #f2f2f2; }
.tcs .tcs-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .35s; }
.tcs .tcs-card:hover .tcs-image img { transform: scale(1.035); }
.tcs .tcs-card--shops .tcs-image { background: #fff; }
.tcs .tcs-card--shops .tcs-image img { object-fit: contain; padding: 24px; }
.tcs .tcs-card-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 27px 32px; }
.tcs .tcs-card-meta-row { display: flex; align-items: center; flex-wrap: wrap; margin: 0 0 10px; gap: 10px; }
.tcs .tcs-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 11px; border-radius: 100px; background: var(--tcs-soft); color: var(--tcs-accent); font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tcs .tcs-card--news .tcs-badge { background: var(--tcs-accent); color: #fff; }
.tcs .tcs-card--shops .tcs-badge { background: rgba(20,78,155,.1); }
.tcs .tcs-card--service .tcs-badge { background: rgba(70,75,85,.1); color: var(--tcs-muted); }
.tcs .tcs-card-date { color: #777; font-size: 14px; line-height: 1.4; }
.tcs .tcs-card-title { margin: 0 0 10px; color: var(--tcs-text); font-family: inherit; font-size: clamp(22px,2vw,28px); line-height: 1.2; font-weight: 500; letter-spacing: normal; overflow-wrap: anywhere; }
.tcs .tcs-card-meta { margin: 0 0 10px; color: var(--tcs-muted); font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.tcs .tcs-excerpt { max-width: 780px; margin: 0 0 18px; color: var(--tcs-muted); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.tcs .tcs-card-cta { display: inline-flex; align-items: center; margin-top: auto; color: var(--tcs-accent); font-size: 16px; line-height: 1.3; font-weight: 500; gap: 8px; }
.tcs .tcs-card-cta > span { display: inline-block; transition: transform .2s; }
.tcs .tcs-card-link:hover .tcs-card-cta > span { transform: translateX(5px); }
.tcs .tcs-notice { margin: 0 0 24px; padding: 20px 24px; border: 1px solid var(--tcs-border); border-left: 4px solid var(--tcs-accent); border-radius: 10px; background: #fafafa; color: var(--tcs-muted); font-size: 16px; line-height: 1.6; }
.tcs .tcs-notice a { color: var(--tcs-accent); }
.tcs .tcs-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 38px; }
.tcs .tcs-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid rgba(20,78,155,.25); border-radius: 8px; background: #fff; color: var(--tcs-accent); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .2s,color .2s; }
.tcs .tcs-pagination a[aria-current=page], .tcs .tcs-pagination a:hover { background: var(--tcs-accent); color: #fff; }
.tcs .tcs-sr-only, .tcs-compact .tcs-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tcs-header-search { position: relative; display: block; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; overflow: visible; }
.tcs-header-search .tcs-search-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 10px; border: 0; border-radius: 50%; background: transparent; color: var(--tcs-accent); list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tcs-header-search .tcs-search-toggle::marker { content: ''; }
.tcs-header-search .tcs-search-toggle::-webkit-details-marker { display: none; }
.tcs-header-search .tcs-search-toggle:hover, .tcs-header-search[open] .tcs-search-toggle { background: var(--tcs-soft); }
.tcs-header-search svg { display: block; flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tcs-header-search .tcs-header-panel { position: absolute; z-index: 1000; top: calc(100% + 8px); right: 0; width: min(360px,calc(100vw - 32px)); padding: 8px; border: 1px solid var(--tcs-border); border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.tcs-header-search .tcs-header-panel::before { content: ''; position: absolute; top: -9px; right: 0; left: 0; height: 9px; }
.tcs-header-search .tcs-compact { width: 100%; margin: 0; gap: 8px; }
.tcs-header-search .tcs-compact input[type=search] { min-height: 44px; padding: 10px 12px; border-radius: 8px; }
.tcs-header-search .tcs-compact button { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 8px; border-radius: 8px; }
@media(max-width:991px) {
  .tcs .tcs-card-link { grid-template-columns: 190px minmax(0,1fr); }
  .tcs .tcs-card--no-image .tcs-card-link { grid-template-columns: 1fr; }
  .tcs .tcs-card-body { padding: 24px; }
}
@media(max-width:767px) {
  .tcs .tcs-toolbar { margin-top: 25px; margin-bottom: 22px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .tcs .tcs-status, .tcs .tcs-types { width: 100%; }
  .tcs .tcs-types { justify-content: flex-start; gap: 8px; }
  .tcs .tcs-type { min-height: 42px; padding: 9px 16px; font-size: 15px; }
  .tcs .tcs-filters { padding: 16px; gap: 14px; }
  .tcs .tcs-filter { flex-basis: 100%; }
  .tcs .tcs-card-link { display: block; }
  .tcs .tcs-image { width: 100%; min-height: 0; aspect-ratio: 16 / 8; }
  .tcs .tcs-card--shops .tcs-image { border-bottom: 1px solid var(--tcs-border); }
  .tcs .tcs-card--shops .tcs-image img { padding: 22px; }
  .tcs .tcs-card-body { padding: 22px 20px 24px; }
  .tcs .tcs-card-title { font-size: 22px; }
}
@media(max-width:600px) { .tcs-header-search .tcs-header-panel { position: fixed; top: auto; right: 16px; left: 16px; width: auto; margin-top: 8px; } }
@media(max-width:480px) {
  .tcs .tcs-input-row { flex-direction: column; }
  .tcs .tcs-submit { width: 100%; }
  .tcs input[type=search] { padding: 14px 18px; }
  .tcs .tcs-toolbar { gap: 14px; }
  .tcs .tcs-types { gap: 7px; }
  .tcs .tcs-type { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .tcs .tcs-card { border-radius: 14px; }
  .tcs .tcs-image { aspect-ratio: 16 / 9; }
}
@media(prefers-reduced-motion:reduce) {
  .tcs .tcs-card, .tcs .tcs-image img, .tcs .tcs-card-cta > span, .tcs .tcs-results, .tcs .tcs-type, .tcs .tcs-submit, .tcs-compact button, .tcs .tcs-pagination a { transition: none !important; }
  .tcs .tcs-card:hover, .tcs .tcs-card:hover .tcs-image img, .tcs .tcs-card-link:hover .tcs-card-cta > span { transform: none; }
}
.tcs-search-page { margin: 0; background: #fff; color: #222; font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 16px; line-height: 1.6; }
.tcs-page-header, .tcs-page-main { box-sizing: border-box; max-width: 1180px; margin: auto; padding: 24px; }
.tcs-page-header a { color: inherit; font-size: 20px; font-weight: 500; text-decoration: none; }
.tcs-page-main { padding-bottom: 64px; }
.tcs-page-main > h1 { margin: 0 0 28px; font-size: clamp(30px,5vw,46px); line-height: 1.2; }
@media(max-width:600px) { .tcs-page-header, .tcs-page-main { padding: 20px 16px; } .tcs-page-main { padding-bottom: 40px; } }
