
.select2-container {
  width: 100% !important;
  min-width: 220px !important;
}
.select2-container--default .select2-selection--single {
  width: 100% !important;
  min-width: 220px !important;
  box-sizing: border-box !important;
}

.select2-container--default .select2-selection--single {
  width: 100% !important;
  min-width: 220px !important;
}
#form-tours.form-search {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 24px 36px;
  max-width: 562px;
  margin: 24px auto;
  width: 100%;
}

#form-tours .form-item {
  margin-bottom: 18px;
}

#form-tours .form-item-group {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 8px 12px;
  gap: 8px;
  border: 1px solid #eee;
}

#form-tours .form-item-group img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  opacity: 0.7;
}

#form-tours select,
#form-tours input[type="text"],
#form-tours input[type="date"],
#form-tours input[type="number"],
#form-tours .select2-selection--single {
  border: none;
  background: transparent;
  font-size: 15px;
  color: #222;
  width: 100%;
  padding: 0 4px;
  outline: none;
}

#form-tours .select2-selection--single {
  min-height: 36px;
  display: flex;
  align-items: center;
}

#form-tours .datepicker {
  background: transparent;
  border: none;
  font-size: 15px;
  color: #222;
  width: 100%;
  padding: 0 4px;
}

#form-tours .input-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
#form-tours .input-quantity button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #f8f8f8;
  color: #555;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#form-tours .input-quantity button:hover {
  background: var(--primary);
  color: #fff;
}
#form-tours .input-quantity-number {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
}

#form-tours .form-item.p-2.text-center {
  margin-top: 12px;
}
#form-tours .btn-primary {
  background: linear-gradient(to right, var(--primary), #f26f21);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 16px;
  width: 200px;
  box-shadow: 0 4px 15px rgba(249, 165, 26, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}
#form-tours .btn-primary:hover {
  background: linear-gradient(to right, #f26f21, var(--primary));
  box-shadow: 0 6px 20px rgba(249, 165, 26, 0.25);
}

#form-tours .form-item:last-child {
  margin: 0;
}

#openSearchModalBtn {
    padding: 8px;
    border: 1px solid var(--primary);
    color: var(--primary);
}

#openSearchModalBtn:hover, #openSearchModalBtn:focus {
    background-color: var(--primary);
    color: white;
}

/* Filter and Modal Styles for Tour Listing */

/* Filter Section Styles */
.filter-sticky {
  position: sticky;
  top: 80px;
}

.filter-tour {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-tour-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    var(--nav-gradient-from),
    var(--nav-gradient-to)
  );
  z-index: -1;
  border-radius: 10px 10px 0 0;
}

.filter-content {
  padding: 15px;
  border-radius: 10px;
  background: white;
}

.filter-item {
  margin-bottom: 25px;
}

.filter-item h4 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-left: 15px;
}

.filter-item h4:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 2px;
}

.filter-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
}

.filter-item input[type="radio"]:checked {
  border-color: var(--primary);
}

.filter-item input[type="radio"]:checked:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Price Slider */
#slider-range {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  border: none;
  margin: 20px 10px 30px;
}

.ui-slider-handle {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: white !important;
  border: 2px solid var(--primary) !important;
  top: -6px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ui-slider-range {
  background-color: var(--primary) !important;
}

#slider-range-value {
  font-size: 14px;
  color: #666;
  display: block;
  text-align: center;
}

/* Action Buttons */
.action-search-block {
  padding: 0 5px;
}

.btn-submit {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  font-weight: 500 !important;
  padding: 10px !important;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #ee9300 !important;
  border-color: #ee9300 !important;
}

.reset-form {
  color: #666 !important;
  border: 1px solid #ddd !important;
  background: transparent !important;
  padding: 8px !important;
  transition: all 0.3s ease;
}

.reset-form:hover {
  color: #333 !important;
  border-color: #bbb !important;
}

/* Mobile Filter Header */
.filter-tour-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: linear-gradient(
    to right,
    var(--nav-gradient-from),
    var(--nav-gradient-to)
  );
  border-bottom: 1px solid #eee;
}

.filter-tour-header p {
  font-weight: 500;
  margin: 0;
  color: #333;
  font-size: 16px;
}

.filter-tour-header .close {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.filter-tour-header button {
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter-tour-header button[type="submit"] {
  background-color: #f26f21;
  color: white;
  border: none;
  margin-left: 10px;
}

.filter-tour-header button[type="reset"] {
  color: #666;
  background-color: white;
  border: 1px solid #ddd;
}

/* Search Modal Styles */
#searchModal .modal-dialog {
  max-width: 600px;
}

#searchModal .modal-content {
  border-radius: 15px;
  border: none;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#searchModal .model-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

#searchModal .model-close button {
  background: white;
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#searchModal .model-close img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#searchModal .model-close button:hover {
  transform: rotate(90deg);
  background-color: #f9f9f9;
}

#searchModal .model-close img:hover {
  opacity: 1;
}

#searchModal .search-form {
  padding: 30px 20px 20px;
}

#searchModal .search-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

#searchModal .form-group {
  margin-bottom: 15px;
}

#searchModal .form-control {
  height: 45px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0 15px;
}

#searchModal .form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}

#searchModal .input-group-text {
  background-color: white;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

#searchModal .search-date-input {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

#searchModal .search-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  height: 45px;
  font-weight: 500;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s ease;
}

#searchModal .search-btn:hover {
  background-color: #ee9300;
}

/* Select2 Styling */
.select2-container--default .select2-selection--single {
  border: none !important;
  background-color: transparent !important;
  height: 40px !important;
  min-width: 220px !important;
  width: 100% !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 36px !important;
  color: #333 !important;
  padding-left: 0 !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 36px !important;
}

.select2-dropdown {
  border: 1px solid #e5e5e5 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  z-index: 1061 !important;
}

.select2-search--dropdown {
  padding: 10px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #e5e5e5 !important;
  border-radius: 5px !important;
  padding: 8px !important;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary) !important;
}

.select2-container--default .select2-results__group {
  font-weight: 600 !important;
  background-color: #f9f9f9 !important;
  padding: 8px !important;
}

/* DatePicker Styling */
.datepicker-container {
  z-index: 1060 !important; /* Ensure higher than modal */
}

.datepicker-panel > ul > li.picked,
.datepicker-panel > ul > li.picked:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

.datepicker-panel > ul > li:hover {
  background-color: rgba(249, 165, 26, 0.2) !important;
}

.datepicker-panel > ul > li.highlighted {
  background-color: rgba(249, 165, 26, 0.1) !important;
}

.book-item-information {
  padding: 8px 16px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-item-information > div {
  gap: 4px;
}

/* Mobile Buttons on Top */
/* Modal basic styles */

/* Basic input styles */

/* Media queries for responsive design */

@media (min-width: 992px) {
  .action-search-block {
    gap: 8px !important;
  }
  .action-search-block .btn {
    width: 50%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Responsive styles */
@media only screen and (max-width: 767px) {
  .filter-tour-header {
    display: flex;
  }

  .mt-m-5 {
    margin-top: 1.5rem !important;
  }

  .btn-outline-primary {
    color: #333;
    border-color: #ddd;
    background-color: white;
    transition: all 0.3s;
  }

  .btn-outline-primary:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: white;
  }

  .btn-outline-primary img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }

  /* Mobile Modal */
  #searchModal .modal-dialog {
    margin: 10px auto;
    max-width: 92%;
    height: auto;
    max-height: 90vh;
  }

  #searchModal .modal-content {
    height: auto;
    border-radius: 12px;
  }

  #searchModal .form-search {
    padding: 40px 15px 25px;
    max-height: calc(90vh - 20px);
    overflow-y: auto;
  }

  #searchModal .form-search .form-item {
    width: 100%;
  }

  /* Mobile Filter Panel */
  .filter-tour {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    margin-top: 0;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .filter-tour.show {
    transform: translateX(0);
  }

  .filter-content {
    height: calc(100% - 60px);
    overflow-y: auto;
    padding-bottom: 80px;
  }

  /* Basic mobile modal styles */
  #searchModal .btn-primary {
    width: auto;
    margin: 0 auto;
  }
}

/* Ensure visibility of range slider on mobile */
@media only screen and (max-width: 576px) {
  #slider-range {
    margin: 20px 5px 30px;
  }

  .filter-item input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  .filter-item input[type="radio"]:checked:after {
    width: 12px;
    height: 12px;
  }

  #searchModal .form-item-group {
    margin-bottom: 5px;
  }

  #searchModal .btn-primary {
    width: 100%;
    padding: 10px;
  }

  /* Card responsive styles for mobile */
  .book-item {
    margin-bottom: 15px;
  }

  .book-item-img {
    height: 160px;
  }

  .book-item h4 {
    font-size: 15px;
    height: 42px;
  }

  .book-item-information > div {
    font-size: 13px;
  }

  .book-item-information {
    padding: 8px 16px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .book-item-price h5 {
    font-size: 16px;
  }

  .book-item-btn a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Cross-browser compatibility */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: auto;
  height: auto;
}

/* Firefox focus ring removal */
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

/* Basic modal styles */
.modal-backdrop.show {
  opacity: 0.5;
}

/* Tour Card Styles */
.book-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
  margin: 8px 0;
}

.book-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.book-item-img {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.book-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Location tag in top left corner like in the example image */
.book-item-img .location-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #5c6ac4;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.book-item-img .location-tag i {
  margin-right: 5px;
  color: #5c6ac4;
}

.book-item:hover .book-item-img img {
  transform: scale(1.05);
}

.book-item-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-item-btn a {
  background-color: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s;
}

.book-item-btn a:hover {
  background-color: #ee9300;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 0 16px;
  gap: 8px;
}

.book-item-location {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.book-item-location img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.promotion {
  background: #f5f5f5;
  color: #888;
  font-size: 13px;
  border-radius: 10px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 0;
  margin-top: 8px;
  margin-left: 16px;
}

.book-item h4 {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin: 8px 0 0 0;
  padding: 0 16px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.book-item-rate {
  color: #f7b500;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 0;
  margin-top: 8px;
  padding: 0 16px;
}

.promotion {
  background: #f5f5f5;
  color: #888;
  font-size: 13px;
  border-radius: 10px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 6px;
}

.book-item-price h5 {
  color: #f26f21;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  margin-top: 8px;
}

.book-item-footer {
  padding: 0 16px 16px 16px;
  background: none;
  margin-top: auto;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* City/Location Badge */
.location-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.location-badge img {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}

.location-badge span {
  font-size: 12px;
  font-weight: 500;
  color: #555;
}
