.search-bar-container {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  z-index: 1000;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.search-date-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tooltip-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 4px 10px;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  white-space: nowrap;
}

.search-date-label::before {
  content: "📅";
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.85;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  padding: 5px 6px 5px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--tooltip-icon-bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(90, 158, 51, 0.18);
}

.search-icon {
  color: var(--tooltip-icon-bg);
  margin-right: 10px;
  flex-shrink: 0;
  opacity: 0.9;
}

#wisataSearchInput {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--tooltip-text);
  outline: none;
  font-weight: 600;
  width: 100%;
}

#wisataSearchInput::placeholder {
  color: #8d6e63;
  font-weight: 400;
  opacity: 0.8;
}

.clear-search-btn {
  background: rgba(78, 52, 46, 0.08);
  border: 1px solid rgba(78, 52, 46, 0.12);
  color: var(--tooltip-text);
  font-size: 1.1rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.clear-search-btn:hover {
  background: var(--tooltip-icon-bg);
  color: #ffffff;
  border-color: #3d7a1f;
  transform: scale(1.05);
}

.clear-search-btn:focus-visible {
  outline: 2px solid var(--hotspot-hover);
  outline-offset: 2px;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: rgba(253, 248, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(78, 52, 46, 0.18), 0 4px 12px rgba(0,0,0,0.12);
  overflow: hidden;
  display: none;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e3b586;
}

/* Scrollbar styles for results */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(90, 158, 51, 0.08);
}

.search-result-item:focus-visible {
  outline: 2px solid var(--hotspot-hover);
  outline-offset: -2px;
}

.result-icon {
  font-size: 18px;
  margin-right: 12px;
  background: var(--tooltip-bg);
  border: 1px solid #e2d2ba;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 6px rgba(78,52,46,0.12);
  flex-shrink: 0;
}

.result-info {
  flex: 1;
}

.result-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tooltip-text);
  margin-bottom: 2px;
}

.result-name .highlight {
  color: var(--tooltip-icon-bg);
  background: rgba(90, 158, 51, 0.14);
  border-radius: 3px;
  padding: 0 3px;
}

.result-cluster {
  font-size: 0.75rem;
  color: #8d6e63;
  font-weight: 500;
}

.no-results {
  padding: 16px;
  text-align: center;
  color: var(--tooltip-text);
  font-size: 0.88rem;
  background: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .search-bar-container {
    width: 60%;
    max-width: 250px;
    left: 50%;
    transform: translateX(-50%);
    top: 2%;
  }
}
