/**
 * Trip Platter — shared tour package cards (category / subcategory listing,
 * top selling, featured, search, purpose, all tours) + listing page chrome.
 * Uses :root brand tokens from style.css
 */

/* ---------- Listing page shell ---------- */
.tp-listing-page {
  background: var(--tp-brand-light, #f5f5f5);
}

/* Breadcrumb bar (listing + inner pages via PageBreadcrumb) */
.tp-listing-page .tp-listing-toolbar,
.tp-page-bc-toolbar {
  background: var(--tp-brand-white, #fff);
  border-bottom: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: 0 4px 20px rgba(31, 31, 31, 0.04);
}
.tp-listing-breadcrumb-nav {
  width: 100%;
}
.tp-listing-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}
.tp-listing-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--tp-brand-mid, #6b6b6b);
  font-weight: 600;
}
.tp-listing-breadcrumb-item + .tp-listing-breadcrumb-item::before {
  content: "›";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.4;
  margin: 0 0.5rem;
  color: var(--tp-brand-mid, #6b6b6b);
}
.tp-listing-breadcrumb-item a {
  color: var(--tp-brand-mid, #6b6b6b);
  text-decoration: none;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: anchor-center;
}
.tp-listing-breadcrumb-item a:hover {
  color: var(--tp-brand-red, #e53935);
  background: rgba(229, 57, 53, 0.06);
}
.tp-listing-breadcrumb-item a .fa-home {
  margin-right: 2px;
  opacity: 0.85;
}
.tp-listing-breadcrumb-current span {
  color: var(--tp-brand-dark, #1f1f1f);
  font-weight: 800;
  max-width: min(100%, 280px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 575px) {
  .tp-listing-breadcrumb-item a .tp-bc-home-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .tp-listing-breadcrumb-item a .fa-home {
    margin-right: 0;
    font-size: 1rem;
  }
}

/* Sidebar + filters */
.tp-listing-sidebar {
  position: relative;
}
@media (min-width: 992px) {
  .tp-listing-sidebar {
    align-self: flex-start;
  }
  .tp-listing-filters-aside {
    position: sticky;
    top: 100px;
    z-index: 2;
  }
}
.tp-listing-filters.filter-searchBar {
  border-radius: 16px !important;
  border: 1px solid rgba(31, 31, 31, 0.08) !important;
  box-shadow: 0 8px 28px rgba(31, 31, 31, 0.06);
  overflow: hidden;
  background: var(--tp-brand-white, #fff) !important;
  margin-bottom: 1.5rem;
}
.tp-listing-filters-head {
  background: linear-gradient(135deg, var(--tp-brand-dark, #1f1f1f) 0%, #2d2d2d 100%);
  color: #fff;
  padding: 1rem 1.15rem;
  border-bottom: none;
}
.tp-listing-filters-head-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.tp-listing-filters-kicker {
  margin: 0 0 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
  color: white;
}
.tp-listing-filters-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: white;
}
.tp-listing-filters-clear {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s, border-color 0.2s;
}
.tp-listing-filters-clear:hover {
  background: var(--tp-brand-red, #e53935);
  border-color: transparent;
  color: #fff !important;
}
.tp-listing-filters-body {
  padding: 0;
}
.tp-filter-section {
  padding: 1rem 1.15rem 1.1rem;
  border-bottom: 1px solid rgba(31, 31, 31, 0.07);
}
.tp-filter-section:last-child {
  border-bottom: none;
}
.tp-filter-section-title {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--tp-brand-dark, #1f1f1f);
  letter-spacing: -0.01em;
}
.tp-filter-section-hint {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--tp-brand-mid, #6b6b6b);
  line-height: 1.4;
}
.tp-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-filter-chip {
  position: relative;
  margin: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tp-brand-dark, #1f1f1f);
}
.tp-filter-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tp-filter-chip span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 31, 31, 0.12);
  background: var(--tp-brand-light, #f5f5f5);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.tp-filter-chip:hover span {
  border-color: rgba(229, 57, 53, 0.35);
  background: #fff;
}
.tp-filter-chip input:focus-visible + span {
  outline: 2px solid var(--tp-brand-red, #e53935);
  outline-offset: 2px;
}
.tp-filter-chip input:checked + span {
  background: rgba(229, 57, 53, 0.1);
  border-color: var(--tp-brand-red, #e53935);
  color: var(--tp-brand-red, #c62828);
  font-weight: 800;
}
.tp-filter-chips--stack {
  flex-direction: column;
  align-items: stretch;
}
.tp-filter-chip--toggle span {
  display: block;
  width: 100%;
  text-align: left;
}
.tp-filter-chips--radio {
  gap: 6px;
}

/* Listing body + results strip */
.tp-listing-page .gray-simple.tp-listing-body,
.tp-listing-body.gray-simple {
  background: transparent !important;
}
.tp-listing-main {
  min-width: 0;
}
.tp-listing-results-panel {
  background: var(--tp-brand-white, #fff);
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 18px rgba(31, 31, 31, 0.05);
}
.tp-listing-results-panel .tp-listing-results-head {
  margin: 0;
}
.tp-listing-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.tp-listing-results-toolbar .tp-listing-results-head {
  flex: 1 1 220px;
  min-width: 0;
}
.tp-listing-sort-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.tp-listing-sort-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tp-brand-mid, #6b6b6b);
  margin: 0;
}
.tp-listing-sort-select {
  min-width: 200px;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 31, 31, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tp-brand-dark, #1f1f1f);
  background: var(--tp-brand-light, #f5f5f5);
  cursor: pointer;
}
.tp-listing-sort-select:focus {
  outline: 2px solid var(--tp-brand-red, #e53935);
  outline-offset: 2px;
  border-color: rgba(229, 57, 53, 0.35);
}
.tp-listing-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--tp-brand-white, #fff);
  border: 1px dashed rgba(31, 31, 31, 0.15);
  border-radius: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.tp-listing-empty-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tp-brand-dark, #1f1f1f);
}
.tp-listing-empty-text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--tp-brand-mid, #6b6b6b);
  line-height: 1.5;
}
.tp-listing-empty-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--tp-brand-red, #e53935);
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s;
}
.tp-listing-empty-btn:hover {
  background: var(--tp-brand-red-hover, #c62828);
  color: #fff !important;
}

/* Mobile: legacy theme hid filters — show on listing */
@media (max-width: 767px) {
  .tp-listing-page .filter-searchBar.tp-listing-filters {
    display: block !important;
  }
  .tp-listing-filters-aside {
    margin-bottom: 0.5rem;
  }
  .tp-listing-sidebar {
    order: -1;
  }
  .tp-listing-page .tp-listing-body > .container > .row {
    flex-direction: column;
  }
}

.tp-listing-hero {
  min-height: clamp(200px, 28vw, 320px);
  display: flex;
  align-items: center;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.tp-listing-hero .fpc-capstion {
  padding-top: 8rem;
  padding-bottom: 2rem;
}
.tp-listing-hero .xl-heading {
  font-weight: 200;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  font-size: 47px;
}
.fpc-captions p {
  font-size: 20px;
  font-weight: 200 !important;
}
.fpc-captions span{
  font-weight: 500;
}
.tp-listing-hero .fpc-captions {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.tp-listing-body {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.tp-listing-results-head .tp-listing-results-title,
.tp-listing-results-panel .tp-listing-results-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tp-brand-dark, #1f1f1f);
  letter-spacing: -0.02em;
}
.tp-listing-results-head .tp-listing-results-meta,
.tp-listing-results-panel .tp-listing-results-meta {
  font-size: 0.82rem;
  color: var(--tp-brand-mid, #6b6b6b);
  margin: 6px 0 0;
  line-height: 1.45;
}

/* ---------- Shared tour card (thumbnail + meta + actions) ---------- */
.tp-tour-card.t_bx_ltst {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  border: 1px solid rgba(31, 31, 31, 0.08) !important;
  border-radius: 16px !important;
  background: var(--tp-brand-white, #fff) !important;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.22s ease, border-color 0.2s ease;
  min-height: 470px;
}
.tp-tour-card.t_bx_ltst:hover {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.tp-tour-card.t_bx_ltst > a {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: inherit;
  text-decoration: none !important;
}
.tp-tour-card.t_bx_ltst .t_bx_hdr {
  flex: 0 0 auto;
}
.tp-tour-card.t_bx_ltst .t_bx_hdr .t_img {
  border-radius: 0 !important;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: clamp(168px, 40vw, 300px);
  max-height: none;
}
.tp-tour-card.t_bx_ltst .t_bx_hdr .t_img:after {
  height: 112px;
  opacity: 0.85;
  background: linear-gradient(0deg, rgba(31, 31, 31, 0.75) 0%, transparent 100%);
}
.tp-tour-card.t_bx_ltst .t_img img {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  transition: transform 0.45s ease;
}
.tp-tour-card.t_bx_ltst:hover .t_img img {
  transform: scale(1.05);
}
.tp-tour-card.t_bx_ltst .t_location {
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(31, 31, 31, 0.88);
  color: var(--tp-brand-white, #fff);
  backdrop-filter: blur(6px);
}
.tp-tour-card.t_bx_ltst .thumb_fttr {
  left: 12px;
  right: 12px;
  bottom: 10px;
}
.tp-tour-card.t_bx_ltst .thumb_fttr h6 {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 6px 0 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.tp-tour-card.t_bx_ltst .thumb_fttr h6 i {
  color: var(--tp-brand-red, #e53935);
  margin-right: 4px;
}
.tp-tour-card.t_bx_ltst .t_rw_rating.thumbnail_star {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.tp-tour-card.t_bx_ltst .t_rw_rating.thumbnail_star .stars .checked {
  color: #fbbf24;
}
.tp-tour-card.t_bx_ltst .t_att {
  background: var(--tp-brand-red, #e53935) !important;
  color: var(--tp-brand-white, #fff) !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.tp-tour-card.t_bx_ltst .t_pic_drop {
  padding: 14px 14px 0 !important;
  flex: 1 1 auto;
}
.tp-tour-card.t_bx_ltst .t_pic_drop h3 {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--tp-brand-dark, #1f1f1f) !important;
  line-height: 1.35 !important;
  min-height: 0 !important;
  margin-bottom: 8px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-tour-card.t_bx_ltst .t_price {
  padding: 0 14px 10px !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: #059669 !important;
}
.tp-tour-card.t_bx_ltst .t_price span {
  color: var(--tp-brand-mid, #6b6b6b) !important;
  font-weight: 600 !important;
}
.tp-tour-card.t_bx_ltst .t_bx_ftr {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  padding: 0 12px 14px !important;
  margin-top: auto;
}
.tp-tour-card.t_bx_ltst .t_bx_ftr .t_call_bck {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: stretch;
  width: 100%;
}
.tp-tour-card.t_bx_ltst .t_bx_ftr .t_call_bck a {
  flex: 1 1 calc(50% - 4px);
  text-align: center;
  padding: 10px 5px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.tp-tour-card.t_bx_ltst .t_bx_ftr .t_call_bck a.detail {
  background: #00000000 !important;
  color: #3b3b3b !important;
  border: 1px solid #80808082;
}
.tp-tour-card.t_bx_ltst .t_bx_ftr .t_call_bck a.detail:hover {
  background: #333 !important;
  color: var(--tp-brand-white, #fff) !important;
}
.tp-tour-card.t_bx_ltst .t_bx_ftr .t_call_bck a:not(.detail) {
  background: var(--tp-brand-red, #e53935) !important;
  color: var(--tp-brand-white, #fff) !important;
}
.tp-tour-card.t_bx_ltst .t_bx_ftr .t_call_bck a:not(.detail):hover {
  background: var(--tp-brand-red-hover, #c62828) !important;
  color: var(--tp-brand-white, #fff) !important;
}
