/* Shared styles */
button {
  color: white;
  border: none;
  display: flex;
  cursor: pointer;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--kuida-main-color);
}

/* Search */
.search {
  display: flex;
  padding: 2rem 1rem;
  justify-content: center;
}

.search-wrapper {
  gap: 0.5rem;
  width: 100%;
  padding: 10px;
  display: flex;
  max-width: 800px;
  background: white;
  align-items: center;
  border-radius: 32px;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.search-wrapper form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.search-wrapper input {
  margin: 0;
  border: none;
  min-width: 0;
  outline: none;
  flex: 1 1 120px;
  padding: 10px 20px;
  border-right: 1px solid var(--border-color);
}

.search-wrapper input:last-of-type {
  border-right: none;
}

.search-wrapper .input-small {
  flex: 0 1 70px;
  max-width: 80px;
  padding: 10px 8px;
  font-size: 0.95rem;
}

.search-wrapper button {
  width: 40px;
  height: 40px;
  margin: 0 0 0 0.3rem;
}

/* Tablet and Mobile */
@media (max-width: 768px) {
  .search {
    padding: 1rem;
  }

  .search-wrapper {
    gap: 0.5rem;
    border-radius: 16px;
    padding: 0.5rem;
  }

  .search-wrapper form {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* First two inputs stacked */
  .first-two {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .first-two input {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 8px;
    box-sizing: border-box;
  }

  /* Last three inputs in a row */
  .last-three {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .last-three input {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    background: #f9f9f9;
  }

  .last-three button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

   /* Hide other inputs in collapsed state */
    .search-wrapper.search-collapsed input:not(.search-trigger),
    .search-wrapper.search-collapsed .input-row {
      display: none;
    }
  }
}

