/* LDS Trip Filter Plugin Styles */
/* ============================= */


.search-filter__form{
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #D1D5DB;
  background: #F8FAF9;
  margin: 80px 0;
  @media (max-width: 768px) {
    margin: 40px 0;
    padding: 20px 0;
    flex-direction: column;
  }
}

.filter_options{
  padding: 40px 24px;
  @media (max-width: 1024px) {
    padding: 24px 12px;
  }
  @media (max-width: 768px) {
padding:10px 24px;
  }
}

.filter_options:last-child{
  padding: 40px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex: 0.5;
border-left: 1px solid #D1D5DB;
@media (max-width: 1024px) {
  padding: 24px;
}
@media (max-width: 768px) {
  flex: 1;
  border-left: none;
  justify-content: flex-start;
  padding: 10px 24px;
}
}
.filter_options:first-child{
  @media (max-width: 1024px) {
    padding-left: 24px;;
  }
}

@media (max-width: 768px) {
  .search-filter__form {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .search-filter__form {
    gap: 12px;
  }
}

/* Individual filter options container */
.filter_options {
  position: relative;
  flex: 1;
}

@media (max-width: 768px) {
  .filter_options {
    min-width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .filter_options:last-child {
    border-bottom: none;
  }
}

/* Filter label */
.filter_options > label {
  display: block;
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.filter_options > label:hover {
  color: rgb(31, 147, 162);
}

.filter_options > label .icon-holder {
  position: relative;
  right: 0;
top: 2px;
}

.filter_options > label .icon-holder .icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

/* Active state */
.filter_options > label:has(+ .options-group:not(:empty)) {
  color: rgb(31, 147, 162);
}

.filter_options > label:has(+ .options-group:not(:empty)) .icon-holder {
  transform: translateY(-50%) rotate(180deg);
}

.filter_options > label:has(+ .options-group:not(:empty)) .icon-holder .icon {
  color: rgb(31, 147, 162);
}

/* Description text */
.filter_options > p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Options group container */
.filter_options .options-group {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

/* Custom scrollbar */
.filter_options .options-group::-webkit-scrollbar {
  width: 6px;
}

.filter_options .options-group::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.filter_options .options-group::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.filter_options .options-group::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Empty state */
.filter_options .options-group:empty {
  display: none;
}

/* Individual filter term */
.filter_options .filter-term {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.filter_options .filter-term:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

/* Disabled state */
.filter_options .filter-term.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Custom checkbox */
.filter_options .filter-term input[type="checkbox"] {
 display: none;
}

.filter_options .filter-term input[type="checkbox"]:hover {
 display: none;
}

.filter_options .filter-term input[type="checkbox"]:checked {
display: none;
}

.filter_options .filter-term input[type="checkbox"]:checked::after {
 display: none;
}

.filter_options .filter-term input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Term label */
.filter_options .filter-term label {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.filter_options .filter-term label:hover {
  color: #1a1a1a;
}

/* Hover effect for the entire term */
.filter_options .filter-term:hover {
  background: rgba(37, 99, 235, 0.05);
  border-radius: 4px;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}


.filter_options .selected-item_list .selected-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgb(31, 147, 162);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 4px;
  margin-bottom: 4px;
}

.filter_options .selected-item_list .selected-item .close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  margin-left: 4px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.filter_options .selected-item_list .selected-item .close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.filter_options .selected-item_list .separator {
  color: #9ca3af;
  font-size: 12px;
}

/* Search button */
.button--trip-filter-search {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 60px;
  height: 50px;
  @media (max-width: 768px) {
justify-content: flex-start;
  }
}

.button--trip-filter-search:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.button--trip-filter-search:active {
  transform: translateY(0);
}

.button--trip-filter-search .icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
}




/* Details button */
.btn--details {
  background: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn--details:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn--details .icon-holder .icon {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .btn--details {
    justify-content: center;
  }
}

/* Loading states */
.search-filter__form.loading {
  position: relative;
  pointer-events: none;
}

.search-filter__form.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.search-filter__form.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

/* No results state */
.no-results {
  text-align: center;
  padding: 32px 16px;
  color: #6b7280;
}

.no-results h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.no-results p {
  font-size: 16px;
  line-height: 1.5;
}

/* Load more button */
.load-more-container {
  text-align: center;
  margin-top: 32px;
}

.load-more-container .load-more-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-container .load-more-btn:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.load-more-container .load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Focus states for accessibility */
.filter_options input[type="checkbox"]:focus,
.button--trip-filter-search:focus,
.btn--details:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.options-group{
  position: absolute;
  top: 70px;
  z-index: 10;
  width: 100%;
  left: 0;
  min-height: 100%;
  max-width: 350px;
  padding: 20px;
  background-color: #2291bc;
  opacity: 0;
  max-height: 200px;
  visibility: hidden;
  transition: all .3s ease-in;
  overflow-y: auto;
  @media (max-width: 768px) {
    top: 35px;
    left: 20px;
  }
}

.filter_options select{
display: none;
}

.filter_options.active  .options-group{
    opacity: 1;
    visibility: visible;
    transform: translateY(30px);
}


