/* Search results (tours.search) – layered on the Diskovar theme */

.tp-search-hero .tp-breadcrumb-title {
  position: relative;
  z-index: 2;
}

/* Destination page trail: Home › Country › City (pill / glass) */
.tp-search-hero .tp-search-breadcrumbs {
  position: relative;
  z-index: 2;
  padding-top: 0;
  margin: 0 auto 18px;
  display: flex;
  justify-content: center;
}
.tp-search-hero .tp-search-breadcrumbs-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 10px 18px;
  list-style: none;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.tp-search-hero .tp-search-breadcrumbs-list li {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  list-style: none;
}
.tp-search-hero .tp-search-breadcrumbs-list li:not(:last-child) {
  padding-right: 18px;
  margin-right: 8px;
}
.tp-search-hero .tp-search-breadcrumbs-list li:not(:last-child)::before {
  position: absolute;
  content: "›";
  font-family: inherit;
  font-weight: 600;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
}
.tp-search-hero .tp-search-breadcrumbs-list li a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
}
.tp-search-hero .tp-search-breadcrumbs-list li a:hover,
.tp-search-hero .tp-search-breadcrumbs-list li a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tp-search-hero .tp-search-breadcrumbs-list li.is-current span {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .tp-search-hero .tp-search-breadcrumbs-list {
    padding: 8px 14px;
    border-radius: 16px;
    justify-content: center;
  }
  .tp-search-hero .tp-search-breadcrumbs-list li {
    font-size: 13px;
  }
}

.tp-search-hero-heading {
  position: relative;
  z-index: 2;
  color: var(--tp-common-white);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tp-search-hero-subtitle {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.tp-search-hero .tp-booking-form {
  position: relative;
  z-index: 3;
}

.tp-search-hero.tp-breadcrumb-ptb-3,
.tp-search-hero.tp-breadcrumb-ptb {
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 1399px) {
  .tp-search-hero.tp-breadcrumb-ptb-3,
  .tp-search-hero.tp-breadcrumb-ptb {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .tp-search-hero .tp-breadcrumb-title.fs-112 {
    font-size: 80px;
  }
}

@media (max-width: 991px) {
  .tp-search-hero.tp-breadcrumb-ptb-3,
  .tp-search-hero.tp-breadcrumb-ptb {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .tp-search-hero .tp-breadcrumb-title.fs-112 {
    font-size: 56px;
  }
}

@media (max-width: 767px) {
  .tp-search-hero.tp-breadcrumb-ptb-3,
  .tp-search-hero.tp-breadcrumb-ptb {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .tp-search-hero .tp-breadcrumb-title.fs-112 {
    font-size: 42px;
  }
}

.tp-search-hero .city-ac-wrap {
  position: static;
}

.tp-search-hero .city-ac-dropdown {
  text-align: left;
  z-index: 1000000;
}

.tp-search-suggest-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-right: 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
  color: var(--tp-theme-1);
  font-size: 24px;
}

.tp-search-hero .tp-booking-col-2 {
  width: 360px;
  max-width: 100%;
  min-width: 0;
}

.tp-search-hero .tp-booking-col-2 .tp-input {
  padding-right: 12px;
}

@media (max-width: 991px) {
  .tp-search-hero .tp-booking-form.tp-booking-7-form {
    width: 100%;
    max-width: 100%;
  }
  .tp-search-hero .tp-booking-col-2 {
    width: auto;
  }
}

/* Sidebar */
.tp-search-sidebar-head .tp-filter-title i {
  color: var(--tp-theme-1);
  margin-right: 4px;
}

.tp-search-reset-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--tp-theme-1);
  text-decoration: underline;
}

.tp-search-select .nice-select {
  width: 100%;
  float: none;
  background: transparent;
}

.tp-search-select .nice-select .list {
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
}

.tp-search-destination-ac {
  position: relative;
}

.tp-search-destination-ac .city-ac-wrap {
  width: 100%;
}

.tp-filter-destination-input {
  width: 100%;
  border-radius: 50px;
  border: 1px solid rgba(7, 21, 22, 0.1);
  padding: 12px 18px;
  background: transparent;
}

.tp-filter-destination-input:focus {
  outline: none;
  border-color: rgba(7, 21, 22, 0.28);
}

.tp-filter-destination-hint {
  font-size: 12px;
  color: var(--tp-grey-1, #6b7280);
}

.tp-search-destination-ac .city-ac-dropdown {
  z-index: 30;
}

.tp-search-date i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tp-grey-1);
  pointer-events: none;
}

.tp-search-date .tp-input {
  padding-left: 42px;
  border-radius: 50px;
  border: 1px solid rgba(7, 21, 22, 0.1);
}

.tp-filter-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding-right: 12px;
}

.tp-filter-summary {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--tp-grey-1);
}

.tp-traveller-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-traveller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tp-traveller-row-copy {
  min-width: 0;
}

.tp-traveller-row-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-common-black);
  line-height: 1.3;
}

.tp-traveller-row-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--tp-grey-1);
}

.tp-search-traveller-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-width: 118px;
  border: 1px solid rgba(7, 21, 22, 0.1);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}

.tp-search-traveller-counter button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #f4f4f4;
  color: var(--tp-common-black);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tp-search-traveller-counter button:hover {
  background: var(--tp-theme-1);
  color: var(--tp-common-white);
}

.tp-search-traveller-counter .traveller-count-val,
.tp-search-traveller-counter span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  color: var(--tp-common-black);
}

.tp-traveller-age-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--tp-grey-1);
}

.tp-traveller-ages .tp-select {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 575px) {
  .tp-traveller-row {
    align-items: flex-start;
  }

  .tp-search-traveller-counter {
    min-width: 124px;
  }

  .tp-search-traveller-counter button {
    width: 44px;
    height: 44px;
  }
}

.tp-search-filter-note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--tp-grey-1);
}

.tp-filter-section-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-filter-section-tools .tp-filter-search {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-search-filter-clear {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--tp-theme-1);
  text-decoration: underline;
  cursor: pointer;
}

.tp-search-filter-clear[hidden] {
  display: none !important;
}

.tp-filter-scroll-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 0;
  overscroll-behavior: contain;
}

.tp-filter-scroll-list::-webkit-scrollbar {
  width: 6px;
}

.tp-filter-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(7, 21, 22, 0.18);
  border-radius: 999px;
}

.tp-filter-ratings-wrap span:last-child {
  font-size: 14px;
}

/* Static column on desktop, off-canvas drawer below xl (theme main.js toggles .offcanvas-opened) */
@media (min-width: 1200px) {
  .tp-search-sidebar.tp-filter-offcanvas-area {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    overflow: visible;
    z-index: auto;
    background: transparent;
  }

  .tp-search-sidebar.tp-filter-offcanvas-area .tp-filter-sidebar {
    border: 1px solid rgba(7, 21, 22, 0.1);
    padding: 43px 28px 45px 28px;
  }
}

@media (max-width: 1199.98px) {
  .tp-search-sidebar {
    display: flex;
    flex-direction: column;
  }

  .tp-search-sidebar .tp-filter-sidebar {
    flex: 1 1 auto;
    padding: 24px;
    box-shadow: none;
  }
}

.tp-search-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--tp-common-black);
}

.tp-search-drawer-header h4 {
  margin: 0;
  font-size: 18px;
  color: var(--tp-common-white);
}

.tp-search-drawer-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  line-height: 1;
}

.tp-search-drawer-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  background: var(--tp-common-white);
  border-top: 1px solid rgba(7, 21, 22, 0.1);
}

.tp-search-drawer-footer .tp-btn {
  flex: 1;
  justify-content: center;
}

.tp-search-drawer-reset {
  flex: 1;
  border: 1px solid rgba(7, 21, 22, 0.15);
  border-radius: 50px;
  background: transparent;
  font-weight: 500;
  color: var(--tp-common-black);
}

/* Listing category tabs — interactive nav, not plain text links */
.tp-search-listing-tabs {
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid rgba(7, 21, 22, 0.1);
  overflow: hidden;
}

.tp-search-listing-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0 2px 4px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
}

.search-results-wrapper {
  overflow-x: clip;
  max-width: 100%;
}

.tp-search-listing-tabs__item {
  flex: 0 0 auto;
  margin: 0;
  list-style: none;
}

.tp-search-listing-tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--tp-grey-1, #5f556a);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

button.tp-search-listing-tabs__tab {
  margin: 0;
}

.tp-search-listing-tabs__tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background-color 0.2s ease;
}

.tp-search-listing-tabs__tab:hover {
  color: var(--tp-common-black, #071516);
  background: rgba(7, 21, 22, 0.04);
  text-decoration: none;
}

.tp-search-listing-tabs__tab:active {
  color: var(--tp-theme-1, #FD4621);
  background: rgba(253, 70, 33, 0.12);
}

.tp-search-listing-tabs__tab:focus {
  outline: none;
}

.tp-search-listing-tabs__tab:focus-visible {
  color: var(--tp-common-black, #071516);
  background: rgba(253, 70, 33, 0.08);
  box-shadow: 0 0 0 3px rgba(253, 70, 33, 0.28);
}

.tp-search-listing-tabs__tab.is-active,
.tp-search-listing-tabs__tab.active {
  color: var(--tp-theme-1, #FD4621);
  font-weight: 600;
  background: rgba(253, 70, 33, 0.06);
}

.tp-search-listing-tabs__tab.is-active::after,
.tp-search-listing-tabs__tab.active::after {
  background: var(--tp-theme-1, #FD4621);
}

#searchResultsAjax.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Homepage listing tabs reuse the same underline treatment */
.tp-home-listing-tabs {
  border-bottom-color: rgba(7, 21, 22, 0.08);
}

.tp-home-listing-tabs .tp-search-listing-tabs__list {
  justify-content: center;
}

.tp-home-listing-heading {
  position: relative;
  display: inline-block;
}

.tp-home-listing-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--tp-theme-1, #FD4621);
}

.tp-home-listing-count {
  font-size: 15px;
  color: var(--tp-grey-1, #5f556a);
}

.tp-home-listing-count strong {
  color: var(--tp-common-black, #071516);
}

@media (max-width: 767.98px) {
  .tp-home-listing-tabs .tp-search-listing-tabs__list {
    justify-content: flex-start;
  }
}

.tp-search-listing-tabs__label {
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .tp-search-listing-tabs__list {
    gap: 4px;
    padding: 0 4px 6px;
    scrollbar-width: none;
  }

  .tp-search-listing-tabs__list::-webkit-scrollbar {
    display: none;
  }

  .tp-search-listing-tabs__tab {
    min-height: 44px;
    min-width: max-content;
    padding: 10px 14px;
    font-size: 14px;
  }

  .tp-search-listing-tabs__label {
    white-space: nowrap;
  }
}

.tp-tour-dis-icon i {
  font-size: 34px;
  line-height: 1;
}

.tp-search-pagination-info {
  font-size: 15px;
  color: var(--tp-grey-1);
}

.tp-search-pagination-info strong {
  color: var(--tp-common-black);
}

.tp-search-pagination-bar .tp-pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.tp-tour-wishlist {
  cursor: pointer;
}

.tp-tour-wishlist.active {
  background: var(--tp-theme-1);
  color: var(--tp-common-white);
}

.tp-tour-wishlist.active svg path {
  fill: currentColor;
}
