/* Klook-style hero search */

.hero-search-wrap {
  position: relative;
  z-index: 6;
  width: min(640px, 100%);
  margin-top: 24px;
  margin-bottom: 0;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 64px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.2s ease;
}

.hero-search:focus-within {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.hero-search__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  margin: 0;
  cursor: text;
  min-width: 0;
}

.hero-search__field--where {
  flex: 1 1 auto;
  padding-right: 16px;
  min-width: 0;
}

.hero-search__field--when {
  flex: 0 0 auto;
  width: 96px;
  padding: 0 14px;
}

.hero-search__label {
  color: #0f1720;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.hero-search__field:focus-within .hero-search__label {
  color: var(--brand-blue, #00b5fc);
}

.hero-search__input,
.hero-search input[type="text"] {
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  color: #243b53;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  caret-color: var(--brand-blue, #00b5fc);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search__input:focus,
.hero-search__input:focus-visible,
.hero-search__input:active,
.hero-search input[type="text"]:focus,
.hero-search input[type="text"]:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.hero-search__input::placeholder,
.hero-search input[type="text"]::placeholder {
  color: #9aa5b1;
  opacity: 1;
  font-weight: 500;
}

.hero-search__divider {
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  background: #e4e7eb;
  flex-shrink: 0;
}

.hero-search__clear {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background: #eceff3;
  color: #1f2933;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-search__clear[hidden] {
  display: none !important;
}

.hero-search__clear:hover {
  background: #d9e2ec;
}

.hero-search__submit {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-blue, #00b5fc);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 181, 252, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-search__submit:hover {
  background: #0099d9;
  transform: scale(1.03);
}

.hero-footer .all-user .happy-user-count {
  background: var(--brand-yellow, #f5f50a) !important;
}

.hero-footer .all-user .happy-user-count .user-count {
  color: #0f1720 !important;
  font-weight: 800;
}

.hero-search__placeholder-short {
  display: none;
}

.hero-search__placeholder-full {
  display: inline;
}

/* Tablet / mobile: stacked card — no text clipping */
@media (max-width: 767.98px) {
  .hero-search-wrap {
    width: 100%;
    margin-top: 18px;
  }

  .hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "where submit"
      "when submit";
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    min-height: 0;
    padding: 12px 12px 12px 16px;
    border-radius: 20px;
  }

  .hero-search__field--where {
    grid-area: where;
    padding: 0 0 10px;
    border-bottom: 1px solid #eceff3;
  }

  .hero-search__field--when {
    grid-area: when;
    width: auto;
    padding: 10px 0 0;
  }

  .hero-search__divider,
  .hero-search__clear {
    display: none !important;
  }

  .hero-search__submit {
    grid-area: submit;
    align-self: center;
    width: 48px;
    height: 48px;
  }

  .hero-search__label {
    font-size: 13px;
  }

  .hero-search__input,
  .hero-search input[type="text"] {
    font-size: 14px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .hero-search {
    padding: 12px;
  }

  .hero-search__submit {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}
