﻿/* ==========================================================
   TRIPSPACE · CATEGORY & FILTER PAGES
   Ultra-Modern · Light · Mobile-First · Professional
   Version 20260313c
   ========================================================== */

/* ── 1. Custom Properties ─────────────────────────────────── */
:root {
  --ts-accent:        #f97316;
  --ts-accent-d:      #c2410c;
  --ts-accent-h:      #ea580c;
  --ts-accent-bg:     #fff7ed;
  --ts-accent-bdr:    rgba(249,115,22,.28);
  --ts-accent-rgb:    249,115,22;
  --ts-text-1:  #0f172a;
  --ts-text-2:  #475569;
  --ts-text-3:  #94a3b8;
  --ts-bdr:     #e2e8f0;
  --ts-bdr-2:   #f1f5f9;
  --ts-bg:      #f8fafc;
  --ts-card:    #ffffff;
  --ts-shadow-sm:   0 1px 3px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --ts-shadow:      0 1px 3px rgba(15,23,42,.06), 0 6px 16px rgba(15,23,42,.06);
  --ts-shadow-lg:   0 4px 12px rgba(15,23,42,.08), 0 16px 40px rgba(15,23,42,.06);
  --ts-r:    12px;
  --ts-r-sm: 8px;
  --ts-r-lg: 18px;
  --ts-r-xl: 22px;
  --ts-r-o:  9999px;
}

.hotel-listing-page {
  --ts-accent:     #059669;
  --ts-accent-d:   #047857;
  --ts-accent-h:   #10b981;
  --ts-accent-bg:  #ecfdf5;
  --ts-accent-bdr: rgba(5,150,105,.28);
  --ts-accent-rgb: 5,150,105;
}
/* Wider layout for hotels */
.hotel-listing-page .ts-layout { max-width: 1440px; }
@media (min-width:1024px) {
  .hotel-listing-page .ts-layout { grid-template-columns: 264px minmax(0,1fr); }
}
@media (min-width:1280px) {
  .hotel-listing-page .ts-layout { grid-template-columns: 280px minmax(0,1fr); }
}
.hotel-listing-page .ts-hero-inner { max-width: 1440px; }
.hotel-listing-page .ts-hotel-search-form { max-width: 1440px; }
.hotel-listing-page .ts-mobile-bar { max-width: 1440px; margin-inline: auto; }

/* ── 2. Page Hero (Light) ─────────────────────────────────── */
.ts-hero {
  background: #fff;
  border-bottom: 1px solid var(--ts-bdr);
  padding-top: 72px;
}
.ts-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 0;
}
@media (min-width:1024px) { .ts-hero-inner { padding: 36px 32px 0; } }
.ts-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ts-accent); margin-bottom: 8px;
}
.ts-hero-title {
  font-size: clamp(1.5rem,4vw,2.25rem);
  font-weight: 800; color: var(--ts-text-1);
  letter-spacing: -.025em; line-height: 1.15; margin-bottom: 6px;
}
.ts-hero-sub {
  font-size: .9375rem; color: var(--ts-text-2);
  max-width: 520px; line-height: 1.55; margin-bottom: 18px;
}
.ts-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ts-hero-stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--ts-bg);
  border: 1px solid var(--ts-bdr); border-radius: var(--ts-r-o);
  font-size: .8125rem; font-weight: 600; color: var(--ts-text-2);
}
.ts-hero-stat strong { color: var(--ts-text-1); font-weight: 800; }

/* Category tabs */
.ts-cat-tabs {
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  border-top: 1px solid var(--ts-bdr); margin-top: 4px;
}
.ts-cat-tabs::-webkit-scrollbar { display: none; }
.ts-cat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 16px; font-size: .875rem; font-weight: 600;
  color: var(--ts-text-2); text-decoration: none;
  border-bottom: 2.5px solid transparent; white-space: nowrap;
  transition: color .15s, border-color .15s; flex-shrink: 0;
}
.ts-cat-tab:hover { color: var(--ts-text-1); }
.ts-cat-tab.is-active { color: var(--ts-accent); border-bottom-color: var(--ts-accent); }
.ts-cat-tab-n {
  font-size: .6875rem; font-weight: 700; padding: 1px 6px;
  background: var(--ts-bdr-2); border-radius: var(--ts-r-o); color: var(--ts-text-3);
}
.ts-cat-tab.is-active .ts-cat-tab-n { background: var(--ts-accent-bg); color: var(--ts-accent); }

/* ── 3. Top Search Bar ─────────────────────────────────────── */
.ts-search-bar {
  background: #fff; border-bottom: 1px solid var(--ts-bdr);
  padding: 10px 16px; position: sticky; top: 56px; z-index: 30;
}
@media (min-width:1024px) { .ts-search-bar { padding: 12px 32px; } }
.ts-search-form {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 8px; align-items: center;
}
.ts-search-input-wrap { flex: 1; position: relative; }
.ts-search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ts-text-3); font-size: .875rem; pointer-events: none;
}
.ts-search-input {
  width: 100%; height: 42px; padding: 0 12px 0 38px;
  background: var(--ts-bg); border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r);
  font-size: .9375rem; font-weight: 500; color: var(--ts-text-1); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ts-search-input:focus {
  border-color: var(--ts-accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--ts-accent-rgb),.12);
}
.ts-search-select {
  height: 42px; padding: 0 34px 0 12px; flex-shrink: 0; min-width: 150px;
  background: var(--ts-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M.5.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r);
  font-size: .875rem; font-weight: 500; color: var(--ts-text-1);
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ts-search-select:focus {
  border-color: var(--ts-accent); box-shadow: 0 0 0 3px rgba(var(--ts-accent-rgb),.12);
}
.ts-search-btn {
  height: 42px; padding: 0 20px; background: var(--ts-accent); color: #fff;
  border: none; border-radius: var(--ts-r); font-size: .875rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; transition: background .15s;
}
.ts-search-btn:hover { background: var(--ts-accent-h); }
.ts-search-btn:active { filter: brightness(.93); }
@media (max-width:639px) { .ts-search-form .ts-search-select { display: none; } }

/* ── 4. Mobile Filter Bar ─────────────────────────────────── */
.ts-mobile-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--ts-bdr);
  position: sticky; top: 107px; z-index: 28;
}
@media (min-width:1024px) { .ts-mobile-bar { display: none !important; } }
.ts-mobile-filter-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; background: var(--ts-accent); color: #fff;
  border: none; border-radius: var(--ts-r-o); font-size: .8125rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0; position: relative;
}
.ts-filter-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #fff; color: var(--ts-accent); border: 2px solid var(--ts-accent);
  border-radius: var(--ts-r-o); font-size: .625rem; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}
.ts-filter-badge.has-filters { display: inline-flex; }
.ts-mobile-sort-wrap { flex: 1; min-width: 0; }
.ts-mobile-sort {
  width: 100%; height: 36px; padding: 0 32px 0 11px;
  background: var(--ts-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M.5.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r-o);
  font-size: .8125rem; font-weight: 600; color: var(--ts-text-1);
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
}

/* ── 5. Main Layout ───────────────────────────────────────── */
.ts-layout {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 16px 48px;
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width:1024px) {
  .ts-layout {
    grid-template-columns: 280px minmax(0,1fr); gap: 24px; padding: 24px 24px 56px;
  }
}
@media (min-width:1280px) {
  .ts-layout { grid-template-columns: 296px minmax(0,1fr); gap: 28px; padding: 28px 32px 64px; }
}

/* ── 6. Filter Sidebar (Desktop only) ────────────────────── */
.ts-sidebar { display: none; }
@media (min-width:1024px) { .ts-sidebar { display: block; } }

.ts-filter-card {
  background: var(--ts-card); border: 1px solid var(--ts-bdr);
  border-radius: var(--ts-r-xl); box-shadow: var(--ts-shadow);
  overflow: hidden; position: sticky; top: 88px;
  max-height: calc(100dvh - 108px); display: flex; flex-direction: column;
}

.ts-filter-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px 13px; border-bottom: 1px solid var(--ts-bdr-2); flex-shrink: 0;
}
.ts-filter-title {
  font-size: .9375rem; font-weight: 800; color: var(--ts-text-1); letter-spacing: -.01em;
}
.ts-filter-clear {
  font-size: .8rem; font-weight: 600; color: var(--ts-text-3); text-decoration: none;
  padding: 4px 9px; border-radius: var(--ts-r-o); transition: background .12s, color .12s;
}
.ts-filter-clear:hover { background: var(--ts-bg); color: var(--ts-text-2); }
.ts-filter-count {
  display: none; align-items: center; justify-content: center;
  min-width: 21px; height: 21px; padding: 0 5px;
  background: var(--ts-accent); color: #fff; border-radius: var(--ts-r-o);
  font-size: .6875rem; font-weight: 800;
}
.ts-filter-count.has-filters { display: inline-flex; }

.ts-filter-body {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--ts-bdr-2) transparent;
}
.ts-filter-body::-webkit-scrollbar { width: 3px; }
.ts-filter-body::-webkit-scrollbar-thumb { background: var(--ts-bdr); border-radius: 2px; }

.ts-filter-foot {
  padding: 11px 14px; border-top: 1px solid var(--ts-bdr-2); flex-shrink: 0;
}
.ts-filter-apply {
  width: 100%; height: 42px; background: var(--ts-accent); color: #fff;
  border: none; border-radius: var(--ts-r); font-size: .9375rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.ts-filter-apply:hover { background: var(--ts-accent-h); }
.ts-filter-apply:active { filter: brightness(.93); }

/* ── 7. Filter Sections Accordion ────────────────────────── */
.ts-section { border-bottom: 1px solid var(--ts-bdr-2); }
.ts-section:last-child { border-bottom: none; }

.ts-section-btn {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 12px 18px; background: none; border: none; cursor: pointer;
  text-align: left; transition: background .1s;
}
.ts-section-btn:hover { background: #fafafa; }

.ts-section-ico {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; background: var(--ts-bg); color: var(--ts-accent);
  font-size: .6875rem; flex-shrink: 0;
}
.ts-section-label { flex: 1; font-size: .875rem; font-weight: 600; color: var(--ts-text-1); }
.ts-section-n {
  display: none; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--ts-accent-bg); color: var(--ts-accent); border-radius: var(--ts-r-o);
  font-size: .6rem; font-weight: 800;
}
.ts-section-n.has-n { display: inline-flex; }
.ts-section-arrow {
  font-size: .625rem; color: var(--ts-text-3); transition: transform .2s;
}
.ts-section.is-open > .ts-section-btn .ts-section-arrow { transform: rotate(180deg); }

.ts-section-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.ts-section.is-open > .ts-section-body { grid-template-rows: 1fr; }
.ts-section-inner { overflow: hidden; padding: 0 14px 14px; }

/* ── 8. Filter Choices ────────────────────────────────────── */
.ts-choices { display: flex; flex-direction: column; gap: 2px; }
.ts-choice {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  border-radius: var(--ts-r-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: all .12s; user-select: none;
}
.ts-choice:hover { background: var(--ts-bg); border-color: var(--ts-bdr); }
.ts-choice.is-active { background: var(--ts-accent-bg); border-color: var(--ts-accent-bdr); }
.ts-choice input[type="checkbox"], .ts-choice input[type="radio"] {
  width: 15px; height: 15px; accent-color: var(--ts-accent); flex-shrink: 0; cursor: pointer;
}
.ts-choice-ico {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--ts-bg); color: var(--ts-text-2);
  font-size: .625rem; flex-shrink: 0; transition: background .12s, color .12s;
}
.ts-choice.is-active .ts-choice-ico { background: var(--ts-accent); color: #fff; }
.ts-choice-content { flex: 1; min-width: 0; }
.ts-choice-title { font-size: .875rem; font-weight: 600; color: var(--ts-text-1); line-height: 1.3; }
.ts-choice-sub { font-size: .725rem; color: var(--ts-text-3); margin-top: 1px; }

/* ── 9. Chips ─────────────────────────────────────────────── */
.ts-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ts-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px;
  border-radius: var(--ts-r-o); border: 1.5px solid var(--ts-bdr); background: #fff;
  font-size: .8125rem; font-weight: 500; color: var(--ts-text-1);
  cursor: pointer; transition: all .12s; user-select: none;
}
.ts-chip input { display: none; }
.ts-chip:hover { border-color: var(--ts-accent-bdr); background: var(--ts-accent-bg); color: var(--ts-accent-d); }
.ts-chip.is-active { background: var(--ts-accent); border-color: var(--ts-accent); color: #fff; }

/* ── 10. Option Cards ─────────────────────────────────────── */
.ts-opt-cards { display: flex; flex-direction: column; gap: 5px; }
.ts-opt-card {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border-radius: var(--ts-r); border: 1.5px solid var(--ts-bdr); background: #fff;
  cursor: pointer; transition: all .14s; user-select: none;
}
.ts-opt-card input { display: none; }
.ts-opt-card:hover { border-color: var(--ts-accent-bdr); background: var(--ts-accent-bg); }
.ts-opt-card.is-active {
  border-color: var(--ts-accent); background: var(--ts-accent-bg);
  box-shadow: 0 0 0 3px rgba(var(--ts-accent-rgb),.08);
}
.ts-opt-ico {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--ts-bg); color: var(--ts-text-2);
  font-size: .75rem; flex-shrink: 0; transition: background .12s, color .12s;
}
.ts-opt-card.is-active .ts-opt-ico { background: var(--ts-accent); color: #fff; }
.ts-opt-body { flex: 1; min-width: 0; }
.ts-opt-title { font-size: .875rem; font-weight: 700; color: var(--ts-text-1); margin-bottom: 2px; }
.ts-opt-note { font-size: .7375rem; color: var(--ts-text-3); line-height: 1.3; }

/* ── 11. Price Range ──────────────────────────────────────── */
.ts-price-inputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px;
}
.ts-price-field {
  display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 11px;
  background: var(--ts-bg); border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r);
  transition: border-color .15s, box-shadow .15s;
}
.ts-price-field:focus-within {
  border-color: var(--ts-accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--ts-accent-rgb),.1);
}
.ts-price-sym { font-size: .9375rem; font-weight: 700; color: var(--ts-accent); flex-shrink: 0; }
.ts-price-in {
  width: 100%; border: none; background: transparent;
  font-size: .9375rem; font-weight: 700; color: var(--ts-text-1); outline: none; padding: 0;
}
.ts-price-in::placeholder { color: var(--ts-text-3); font-weight: 500; }
.ts-price-label {
  font-size: .8rem; font-weight: 700; color: var(--ts-text-2); text-align: center;
  margin-bottom: 6px;
}
.ts-price-track {
  position: relative; height: 5px; background: var(--ts-bdr); border-radius: 3px; margin: 4px 0 10px;
}
.ts-price-fill {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: var(--ts-accent); border-radius: 3px; transition: left .15s, right .15s;
}
.ts-price-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.ts-price-preset {
  padding: 4px 9px; border-radius: var(--ts-r-o); border: 1.5px solid var(--ts-bdr);
  background: var(--ts-bg); font-size: .725rem; font-weight: 600; color: var(--ts-text-2);
  cursor: pointer; transition: all .12s;
}
.ts-price-preset:hover, .ts-price-preset.is-active {
  background: var(--ts-accent-bg); border-color: var(--ts-accent-bdr); color: var(--ts-accent-d);
}

/* ── 12. Form fields in sidebar ───────────────────────────── */
.ts-field-label {
  font-size: .7125rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ts-text-3); display: block; margin-bottom: 4px;
}
.ts-field-input, .ts-field-select {
  width: 100%; height: 39px; padding: 0 11px;
  background: var(--ts-bg); border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r);
  font-size: .875rem; font-weight: 500; color: var(--ts-text-1); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ts-field-input-icon-wrap { position: relative; }
.ts-field-input-icon-wrap .ts-field-input { padding-left: 34px; }
.ts-field-input-icon-wrap i {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ts-text-3); font-size: .75rem; pointer-events: none;
}
.ts-field-select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M.5.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ts-field-input:focus, .ts-field-select:focus {
  border-color: var(--ts-accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--ts-accent-rgb),.1);
}
.ts-field-group { display: flex; flex-direction: column; gap: 6px; }

/* ── 13. Toggle Row ───────────────────────────────────────── */
.ts-toggle-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 0; cursor: pointer;
}
.ts-toggle-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--ts-accent); cursor: pointer;
}
.ts-toggle-label { flex: 1; font-size: .875rem; font-weight: 600; color: var(--ts-text-1); }

/* ── 14. Mobile Sheet ─────────────────────────────────────── */
@media (max-width:1023px) {
  #filter-sidebar {
    position: fixed !important; inset: 0 !important; z-index: 220 !important;
    pointer-events: none; visibility: hidden; background: rgba(0,0,0,0);
    transition: background .28s, visibility 0s linear .35s;
    display: flex !important; flex-direction: column; justify-content: flex-end;
  }
  #filter-sidebar.sheet-open {
    pointer-events: all; visibility: visible; background: rgba(15,23,42,.52);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    transition: background .28s, visibility 0s linear 0s;
  }
  #filter-sidebar > .ts-filter-card {
    position: static !important; top: auto !important;
    border-radius: 20px 20px 0 0; border-bottom: none;
    max-height: 88dvh; max-height: 88svh; max-height: 88vh;
    transform: translateY(105%);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    will-change: transform;
    box-shadow: 0 -4px 32px rgba(0,0,0,.14);
  }
  #filter-sidebar.sheet-open > .ts-filter-card { transform: translateY(0); }
  .ts-filter-card::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: var(--ts-bdr); border-radius: 2px; margin: 10px auto 0; flex-shrink: 0;
  }
  .ts-filter-foot { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
}

/* ── 15. Results Area ─────────────────────────────────────── */
.ts-results-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.ts-results-left {}
.ts-results-title { font-size: 1.125rem; font-weight: 800; color: var(--ts-text-1); letter-spacing: -.02em; }
.ts-results-sub { font-size: .8rem; color: var(--ts-text-3); font-weight: 500; margin-top: 1px; }
.ts-results-right { display: flex; align-items: center; gap: 8px; }
.ts-view-toggle { display: inline-flex; border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r); overflow: hidden; }
.ts-view-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: .75rem; color: var(--ts-text-3); cursor: pointer; transition: all .12s;
}
.ts-view-btn.is-active { background: var(--ts-text-1); color: #fff; }
.ts-sort-sel {
  height: 34px; padding: 0 30px 0 11px; display: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M.5.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r);
  font-size: .8125rem; font-weight: 600; color: var(--ts-text-1);
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
}
@media (min-width:1024px) { .ts-sort-sel { display: block; } }

/* ── 16. Active filter tags ───────────────────────────────── */
.ts-active-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ts-active-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 11px;
  background: var(--ts-accent-bg); border: 1.5px solid var(--ts-accent-bdr);
  border-radius: var(--ts-r-o); font-size: .8rem; font-weight: 600; color: var(--ts-accent-d);
  text-decoration: none; transition: background .12s;
}
.ts-active-tag:hover { background: #fde8d8; }
.ts-active-tag i { font-size: .5rem; opacity: .7; }

/* ── 17. Grid ─────────────────────────────────────────────── */
.ts-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  position: relative; min-height: 220px;
}
@media (min-width:560px) { .ts-grid { grid-template-columns: repeat(2,1fr); gap: 16px; } }
@media (min-width:1200px) { .ts-grid { grid-template-columns: repeat(3,1fr); } }
.ts-grid.ts-list { grid-template-columns: 1fr !important; }

/* Loading */
.ts-loading-overlay {
  display: none; position: absolute; inset: 0;
  background: rgba(248,250,252,.75); border-radius: var(--ts-r-lg);
  z-index: 5; align-items: flex-start; justify-content: center; padding-top: 100px;
}
.ts-loading-overlay.visible { display: flex; }
.ts-spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--ts-bdr); border-top-color: var(--ts-accent);
  border-radius: 50%; animation: tsspin .65s linear infinite;
}
@keyframes tsspin { to { transform: rotate(360deg); } }

/* ── 18. Pagination ───────────────────────────────────────── */
.ts-pager {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 24px; flex-wrap: wrap;
}
.ts-page-a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 11px;
  border-radius: var(--ts-r); border: 1.5px solid var(--ts-bdr); background: #fff;
  font-size: .875rem; font-weight: 600; color: var(--ts-text-1); text-decoration: none;
  gap: 6px; transition: all .12s;
}
.ts-page-a:hover { border-color: var(--ts-text-1); background: var(--ts-bg); }
.ts-page-a.current { background: var(--ts-text-1); border-color: var(--ts-text-1); color: #fff; }

/* ── 19. Empty State ──────────────────────────────────────── */
.ts-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  background: #fff; border: 1.5px dashed var(--ts-bdr); border-radius: var(--ts-r-xl);
}
.ts-empty-ico {
  width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--ts-accent-bg); color: var(--ts-accent);
  font-size: 1.375rem; margin-bottom: 14px;
}
.ts-empty-title { font-size: 1.125rem; font-weight: 800; color: var(--ts-text-1); margin-bottom: 7px; letter-spacing: -.015em; }
.ts-empty-body { font-size: .9rem; color: var(--ts-text-2); max-width: 360px; margin: 0 auto 18px; line-height: 1.55; }

/* ── 20. Buttons ──────────────────────────────────────────── */
.ts-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: var(--ts-r);
  font-size: .875rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.ts-btn-primary { background: var(--ts-accent); color: #fff; }
.ts-btn-primary:hover { background: var(--ts-accent-h); }
.ts-btn-outline { background: #fff; color: var(--ts-text-1); border: 1.5px solid var(--ts-bdr); }
.ts-btn-outline:hover { background: var(--ts-bg); border-color: var(--ts-text-1); }

/* ── 21. Hotels top search card ───────────────────────────── */
.ts-hotel-search {
  background: #fff; border-bottom: 1px solid var(--ts-bdr); padding: 12px 16px;
  position: sticky; top: 56px; z-index: 30;
}
@media (min-width:1024px) { .ts-hotel-search { padding: 14px 32px; } }
.ts-hotel-search-form {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
@media (min-width:640px) {
  .ts-hotel-search-form { grid-template-columns: repeat(2,1fr); }
}
@media (min-width:1024px) {
  .ts-hotel-search-form { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
}
.ts-hotel-field-wrap { display: flex; flex-direction: column; gap: 3px; }
.ts-hotel-field-wrap label {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ts-text-3);
}
.ts-hotel-inp {
  height: 44px; padding: 0 13px; width: 100%;
  background: var(--ts-bg); border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r);
  font-size: .9375rem; font-weight: 500; color: var(--ts-text-1); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ts-hotel-inp-icon { position: relative; }
.ts-hotel-inp-icon .ts-hotel-inp { padding-left: 38px; }
.ts-hotel-inp-icon i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ts-text-3); font-size: .875rem; pointer-events: none;
}
.ts-hotel-sel {
  height: 44px; padding: 0 34px 0 13px; width: 100%;
  background: var(--ts-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M.5.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1.5px solid var(--ts-bdr); border-radius: var(--ts-r);
  font-size: .9375rem; font-weight: 500; color: var(--ts-text-1);
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ts-hotel-inp:focus, .ts-hotel-sel:focus {
  border-color: var(--ts-accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--ts-accent-rgb),.1);
}
.ts-hotel-search-btn {
  height: 44px; padding: 0 24px; background: var(--ts-accent); color: #fff;
  border: none; border-radius: var(--ts-r); font-size: .9375rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; transition: background .15s; width: 100%; justify-content: center;
}
@media (min-width:1024px) { .ts-hotel-search-btn { width: auto; } }
.ts-hotel-search-btn:hover { background: var(--ts-accent-h); }

/* ── 22. Card tweaks ──────────────────────────────────────── */
.listing-card { transition: transform .18s, box-shadow .18s; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--ts-shadow-lg) !important; }

/* ── 23. Category + location sidebar links ────────────────── */
.ts-cat-list { display: flex; flex-direction: column; gap: 2px; }
.ts-cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: var(--ts-r-sm); border: 1.5px solid transparent;
  text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--ts-text-2);
  transition: all .12s;
}
.ts-cat-link:hover { background: var(--ts-bg); border-color: var(--ts-bdr); color: var(--ts-text-1); }
.ts-cat-link.is-active { background: var(--ts-accent-bg); border-color: var(--ts-accent-bdr); color: var(--ts-accent-d); }
.ts-cat-link-n { font-size: .7rem; font-weight: 700; color: var(--ts-text-3); }
.ts-cat-link.is-active .ts-cat-link-n { color: var(--ts-accent); }

.ts-loc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ts-loc-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
  border-radius: var(--ts-r-o); border: 1.5px solid var(--ts-bdr); background: #fff;
  font-size: .7875rem; font-weight: 600; color: var(--ts-text-2); text-decoration: none;
  transition: all .12s;
}
.ts-loc-tag:hover { background: var(--ts-accent-bg); border-color: var(--ts-accent-bdr); color: var(--ts-accent-d); }
.ts-loc-tag.is-active { background: var(--ts-accent); border-color: var(--ts-accent); color: #fff; }
.ts-loc-tag.is-active i { color: #fff; }
.ts-loc-tag i { color: var(--ts-accent); font-size: .5625rem; }
.ts-loc-n { font-size: .6875rem; color: var(--ts-text-3); }

/* Mobile date fix */
@media (max-width:640px) {
  input[type="date"].ts-hotel-inp, input[type="date"].ts-field-input { font-size: 16px !important; }
}
