/* Moonstride Tour List Styles */

.tour-container {
  display: flex;
  gap: 27px;
  margin-bottom: 60px;
}

.tour-list-container { 
  width: 100%;
}

/* --- Tour Filter Sidebar Styles --- */

.tour-holder {
  width: 100%;
  max-width: 330px;
  min-width: 270px;
}
.tour-filter {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 60px #E6E8F4;
  padding: 23px;
  display: flex;
  flex-direction: column;
  border: 1px solid #E5E5E5;
}
.tour-filter-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.tour-filter-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.tour-filter-search input {
  width: 100%;
  padding: 10px 20px 10px 20px;
  border: 1px solid #D6DCE5;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  color:#8C8C8C;
  background: #fafbfc;
  outline: none;
  transition: border 0.18s;
}
.tour-filter-search input:focus {
  border-color: #1dbf73;
}
.tour-filter-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.tour-filter-search-btn svg {
  display: block;
}
.tour-filter-search button:hover {
    background: none;
}

.tour-filter-search-btn:active,
.tour-filter-search-btn:focus {
  background: none !important;
  box-shadow: none;
}
.tour-filter-section {
  margin-bottom: 8px;
}
.tour-filter-label {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #161616;
}
.tour-filter-divider {
  border: none;
  border-top: 2px solid #DEE4EF;
  margin: 0 0 14px 0 !important;
}
.tour-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
/* Checkbox custom style */
.tour-filter-checkbox input[type="checkbox"] {
  accent-color: unset; /* Remove default accent */
  width: 18px;
  height: 18px;
  margin: 0px;
  border-radius: 4px;
  border: 1.5px solid #D6DCE5;
  background: #fff;
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border 0.18s, background 0.18s;
}
.tour-filter-checkbox input[type="checkbox"]:checked {
  background: #7FD858;
  border-color: #7FD858;
}
.tour-filter-checkmark {
  color: #666666;
  font-size: 16px;
  transition: color 0.18s;
}
.tour-filter-checkbox input[type="checkbox"]:checked + .tour-filter-checkmark {
  color: #161616;
}
.tour-filter-checkbox input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.tour-filter-country-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tour-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tour-filter-list li {
  margin: 0;
  padding: 0;
}

.tour-filter-toggle {
  background: #7fd858;
    color: #161616;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 44px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.18s;
    border: 1px solid#7FD858;
}
.tour-filter-toggle:hover {
  background: #6bbe46;
  border-color: #6bbe46;
  color: #161616;
}
.tour-filter-collapsible {
  margin-top: 10px;
}


@media (max-width: 900px) {
  .tour-container {
    flex-direction: column;
  }
  .tour-filter {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 24px;
  }
}

.tour-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0 auto;
    max-width: 900px;
}

/* Tour list header styles */
.tour-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 4px;
}
.tour-list-count {
  font-size: 16px;
  color: #222;
  padding-bottom: 5px;
}
.tour-list-sort {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  position: relative;
}
.tour-list-sort label {
  font-size: 16px;
  color: #222;
  width: 85px;
  margin-bottom: 10px;
}
.tour-sort-select {
  padding: 10px 20px 10px 20px;
  border-radius: 6px;
  border: 1px solid #D6DCE5;
  background: #fafbfc url('../moonstride/img/arrow-down.svg') no-repeat right 14px center/14px 8px;
  font-size: 16px;
  font-weight: 400;
  color:#8C8C8C;
  outline: none;
  transition: border 0.18s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
}
.tour-sort-select:focus {
  border-color: #1dbf73;
}
.tour-sort-select::-ms-expand {
  display: none;
}
@media (max-width: 700px) {
  .tour-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* tour-list.css - Styles for the new card layout */
.tour-card {
  display: flex;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #E5E5E5;
  box-shadow: 0 12px 60px #E6E8F4;
  overflow: hidden;
  align-items: stretch;
  transition: box-shadow 0.2s;
  padding: 4px;;
}
.tour-card:hover {
  box-shadow: 0 4px 32px rgba(0,0,0,0.13);
}

.tour-card-image {
  position: relative;
  min-width: 220px;
  max-width: 220px;
  width: 100%;
  border-radius: 17px;
  background: #f6f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tour-card-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.tour-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #eaffea;
  color: #1dbf73;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  letter-spacing: 0.5px;
}
.tour-card-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tour-card-meta {
  display: flex;
  margin-bottom: 15px;
}

.tour-card-meta .tour-card-duration {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 22px;
  color: #7FD858;
  padding: 5px 12px;
  border: 1px solid #7FD858;
  border-radius: 6px;
}

.tour-card-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #161616;
   display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Number of lines to show */
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-card-description {
  color: #161616;
  font-size: 16px;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* Number of lines to show */
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-brike-line {
    height: 2px;
    background: #F0E7E7 !important;
    border: none;
}

.tour-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.tour-card-price {
  font-size: 16px;
  color: #161616;
  display: flex;
  flex-direction: column;
}
.tour-card-price strong {
  font-size: 26px;
  color: #161616;
  font-weight: 700;
  line-height: 1;
}
.tour-card-btn {
  background: #7fd858;
  border: 1px solid#7FD858;
  color: #161616;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 44px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-card-btn:hover {
  background: #6bbe46;
  border-color: #6bbe46;
  color: #161616;
}

@media (max-width: 700px) {
  .tour-card {
    flex-direction: column;
  }
  .tour-card-image {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 220px;
  }
  .tour-card-content {
    padding: 20px 16px 18px 16px;
  }
  .tour-list {
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .tour-container {
    flex-direction: column;
    gap: 0;
  }
  .tour-holder {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
  }

  .tour-filter-form {
    gap: 20px;
  }

  .tour-list {
    max-width: 100%;
  }
  .tour-filter-toggle {
    display: block;
  }
}

@media (max-width: 992px) {
  .tour-card-title {
    font-size: 22px;
  }
  .tour-card-description {
    font-size: 14px;
  }

  .tour-card-price strong {
    font-size: 22px;
  }

  .tour-card-btn {
    font-size: 14px;
    padding: 8px 24px;
  }
}

@media (max-width: 400px) {
  .tour-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tour-card-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .tour-filter-collapsible {
    display: block !important;
  }
  .tour-filter-toggle {
    display: none !important;
  }
}

/* --- Loading Spinner Styles --- */

.tour-loading {
  text-align: center;
  padding: 60px 20px;
}

.tour-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(127, 216, 88, 0.2);
  border-top-color: #7fd858;
  border-radius: 50%;
  animation: tour-spin 0.8s linear infinite;
  margin-bottom: 15px;
}

@keyframes tour-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tour-loading p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.tour-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

/* --- Pagination Styles --- */

.tour-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 20px 0;
}

.tour-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tour-page-btn:hover {
  background: #f5f5f5;
  border-color: #7fd858;
}

.tour-page-btn.active {
  background: #7fd858;
  color: #fff;
  border-color: #7fd858;
}

.slider {
  width: 90% !important;
  margin: 30px 5% 0 5%;
}
 .slider .slider-handle {
	 background-color: #7fd858;
	 background-image: none;
	 width: 18px;
	 height: 18px;
}
 .slider .slider-track-low, .slider .slider-track-high {
	 background-color: #f2f2f2;
}
 .slider .slider-selection {
	 background-color: #7fd858;
	 background-image: none;
}
 .slider .slider-track {
	 height: 8px;
}
 .slider .tooltip {
	 position: absolute;
	 transform: translateX(-16px);
	 bottom: 25px;
}

.tooltip-main {
  display: none;
}

 .slider .tooltip .tooltip-inner {
	 background-color: #7fd858;
	 left: 0;
	 font-size: 10px;
	 padding: 3px;
	 min-width: 30px;
   border-radius: 4px;
   text-align: center;
}
 .slider .tooltip .arrow {
	 position: absolute;
	 width: 0;
	 height: 0;
	 border-color: transparent;
	 border-style: solid;
}
 .slider .tooltip.bs-tooltip-top .arrow {
	 bottom: 2px;
	 left: 50%;
	 transform: translateX(-50%);
	 border-width: 5px 5px 0;
	 border-top-color: #7fd858;
}
 .slider .tooltip.bs-tooltip-bottom .arrow {
	 top: 1px;
	 left: 50%;
	 transform: translateX(-50%);
	 border-width: 0 5px 5px;
	 border-bottom-color: #7fd858;
}


.from-to-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666666;
  margin-top: 6px;
}