/* ═══════════════════════════════════════════════════════════════════════════
   TOUR DESTINATIONS & PACKAGES AUTO-SUGGESTION DROPDOWN
   Replaces Google Places API address autocomplete with internal database data
   ═══════════════════════════════════════════════════════════════════════════ */

.tour-autocomplete-wrapper {
  position: relative !important;
  width: 100%;
}

.tour-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 360px;
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.24), 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  max-height: 390px;
  overflow-y: auto;
  padding: 6px 0;
  display: none;
  font-family: inherit;
  animation: tourDropFade 0.16s ease-out forwards;
}

@keyframes tourDropFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tour-autocomplete-dropdown.show {
  display: block;
}

/* Section Header */
.tour-sug-header {
  padding: 7px 16px 5px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-top: 4px;
}

.tour-sug-header:first-child {
  border-top: none;
  margin-top: 0;
}

.tour-sug-header i {
  color: #0d9488;
  font-size: 1.15rem;
}

/* Suggestion Item */
.tour-sug-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
  border-left: 3px solid transparent;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  user-select: none;
}

.tour-sug-item:hover,
.tour-sug-item.active {
  background-color: #f0fdfa;
  border-left-color: #0d9488;
}

/* Icon */
.tour-sug-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tour-sug-item.tour-sug-pkg .tour-sug-icon {
  background: #eff6ff;
  color: #2563eb;
}

/* Content info */
.tour-sug-info {
  flex: 1;
  min-width: 0;
}

.tour-sug-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-sug-sub {
  font-size: 1.15rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-sug-badge {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  flex-shrink: 0;
  white-space: nowrap;
}

.tour-sug-item:hover .tour-sug-badge,
.tour-sug-item.active .tour-sug-badge {
  background: #ccfbf1;
  color: #0f766e;
}

.tour-sug-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d9488;
  flex-shrink: 0;
  white-space: nowrap;
}

.tour-sug-highlight {
  color: #0d9488;
  font-weight: 700;
}

/* Empty State */
.tour-sug-empty {
  padding: 22px 16px;
  text-align: center;
  color: #64748b;
}

.tour-sug-empty i {
  font-size: 2.2rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: block;
}

.tour-sug-empty div {
  font-size: 1.35rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.tour-sug-empty small {
  font-size: 1.2rem;
  color: #94a3b8;
}

/* Loading spinner */
.tour-sug-loading {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Custom Scrollbar */
.tour-autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.tour-autocomplete-dropdown::-webkit-scrollbar-track {
  background: #f8fafc;
}

.tour-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.tour-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOTEL AUTOCOMPLETE & SEARCH DROPDOWN EXTENSIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.tour-sug-item.hotel-sug-city .tour-sug-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.tour-sug-item.hotel-sug-property .tour-sug-icon {
  background: #eff6ff;
  color: #2563eb;
}

.hotel-search-caret {
  transition: transform 0.2s ease, color 0.15s ease;
}

.hotel-search-caret.open {
  transform: rotate(180deg);
  color: #0d9488 !important;
}

.hotel-sug-city:hover .tour-sug-icon,
.hotel-sug-city.active .tour-sug-icon {
  background: #dcfce7;
  color: #15803d;
}

.hotel-sug-property:hover .tour-sug-icon,
.hotel-sug-property.active .tour-sug-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

