/* Modern Tour Search Form */

.container.search-wrapper {
    display: inline-block;
    padding: 0;
}

.tour-search-form {
    background-color: transparent;
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Input & Select Styling */
.tour-search-form .custom-input {
    font-family: 'Jost';
    background-color: #1c1c1c;
    width: 100%;
    color: #a0a0a0;
    border: 1px solid #333;
    border-radius: 6px;
    height: 45px;
    padding: 10px 15px;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.tour-search-form .custom-input:focus {
    background-color: #242424;
    border-color: #ff6b35;
    color: #ffffff;
    outline: none;
    box-shadow: none;
}

/* Dropdown Arrow & Menu Styling */
.tour-search-form select{
    width: 100%;
}
.tour-search-form select.custom-input {
    appearance: none; 
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    cursor: pointer;
}

/* The native options inside the select dropdown (Matched to your 2nd image) */
.tour-search-form select.custom-input option {
    background-color: #ffffff;
    color: #000000;
    padding: 15px;
    font-family: 'Jost';
}

/* Submit Button */
.tour-search-form .find-tours-btn {
    font-family: 'Jost';
    width: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff4500); /* Orange gradient */
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    height: 45px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tour-search-form .find-tours-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

/* Modern Tour Search Dropdown UI */
.tour-search-form .select-wrapper {
  position: relative;
}

.tour-search-form .hsl-tour-native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.tour-search-form .hsl-tour-modern-select {
  position: relative;
  width: 100%;
}

.tour-search-form .hsl-tour-modern-trigger {
  font-family: "Jost", "Segoe UI", sans-serif;
  width: 100%;
  border: 1px solid #333;
  background-color: #1c1c1c;
  color: #a0a0a0;
  border-radius: 6px;
  padding: 12px 42px 12px 14px;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.tour-search-form .hsl-tour-modern-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #ffffff;
  border-bottom: 1.8px solid #ffffff;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.tour-search-form .hsl-tour-modern-select.is-open .hsl-tour-modern-trigger {
  border-color: #fc6220;
  background-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(252, 98, 32, 0.22), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.tour-search-form .hsl-tour-modern-select.is-open .hsl-tour-modern-trigger::after {
  transform: translateY(-35%) rotate(-135deg);
}

.tour-search-form .hsl-tour-modern-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
  max-height: 220px;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 6px;
}

.tour-search-form .hsl-tour-modern-select.is-open .hsl-tour-modern-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tour-search-form .hsl-tour-modern-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  text-align: left;
  padding: 10px 34px 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
}

.tour-search-form .hsl-tour-modern-option:hover {
  background: #f3f4f6;
}

.tour-search-form .hsl-tour-modern-option.is-selected {
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 600;
}

.tour-search-form .hsl-tour-modern-option.is-selected::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid #1d4ed8;
  border-bottom: 2px solid #1d4ed8;
  transform: translateY(-65%) rotate(-45deg);
}

.tour-search-form .hsl-tour-modern-option:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

/* Search submit preloader */
.hsl-search-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.15), transparent 42%),
    radial-gradient(circle at 80% 75%, rgba(255, 94, 31, 0.2), transparent 38%),
    rgba(7, 10, 18, 0.86);
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

.hsl-preloader-active .hsl-search-preloader {
  opacity: 1;
  pointer-events: all;
}

.hsl-search-preloader__card {
  width: min(92vw, 380px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 26px 24px;
  text-align: center;
  background: linear-gradient(145deg, rgba(22, 26, 38, 0.96), rgba(14, 18, 29, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  animation: hslPreloaderCardIn 0.42s ease;
}

.hsl-search-preloader__spinner {
  color: #ff6b35;
  width: 4px;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 19px 0 0 7px, 38px 0 0 3px, 57px 0 0 0;
  transform: translateX(-38px);
  animation: l21 0.5s infinite alternate linear;
}

.hsl-search-preloader__title {
  margin: 0;
  color: #ffffff;
  font-family: "Jost", "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hsl-search-preloader__subtitle {
  margin: 9px 0 0;
  color: rgba(233, 236, 247, 0.86);
  font-family: "Jost", "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
}

@keyframes l21 {
  50% {
    box-shadow: 19px 0 0 3px, 38px 0 0 7px, 57px 0 0 3px;
  }
  100% {
    box-shadow: 19px 0 0 0, 38px 0 0 3px, 57px 0 0 7px;
  }
}

@keyframes hslPreloaderCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}