/* Search bar — unified white container, button inside */
.search-bar-snappy {
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-bar-snappy:focus-within {
  box-shadow: 0 4px 16px rgba(66, 175, 87, 0.15);
  border-color: rgba(66, 175, 87, 0.3);
}

/* Category select — greyed left section with chevron */
.search-bar-snappy select {
  flex-shrink: 0;
  align-self: stretch;
  max-width: 170px;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  padding: 0 36px 0 16px;
  cursor: pointer;
  border: none;
  border-right: 1px solid #e0e0e0;
  border-radius: 0;
  outline: none;
  transition: background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

.search-bar-snappy select:focus { outline: none; background-color: #eeeeee; }
.search-bar-snappy select:hover { background-color: #eeeeee; }

/* Search input wrapper */
.search-input-wrapper {
  flex: 1;
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.search-bar-snappy input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 0 16px 0 44px;
  color: #333;
  min-width: 0;
}

.search-bar-snappy input::placeholder { color: #aaa; }
.search-bar-snappy input:focus { outline: none; }

/* Search button — inside the container, vertically centered, right-side rounded corners only */
.search-button-snappy {
  flex-shrink: 0;
  align-self: center;
  height: 44px;
  background: #42af57;
  border: none;
  border-radius: 8px;
  margin: 0 8px 0 0;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 14px;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button-snappy:hover { background: #3d9e4c; }
.search-button-snappy:active { background: #2e7a26; }

/* Mobile */
@media (max-width: 640px) {
  .search-bar-snappy {
    flex-direction: column;
    border-radius: 10px;
    height: auto;
  }

  .search-bar-snappy select {
    max-width: 100%;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 36px 10px 16px;
    font-size: 13px;
    min-height: 44px;
  }

  .search-input-wrapper {
    width: 100%;
    min-height: 44px;
  }

  .search-bar-snappy input {
    padding: 10px 16px 10px 44px;
    min-height: 44px;
    font-size: 14px;
    width: 100%;
  }

  .search-button-snappy {
    border-radius: 0 0 9px 9px;
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
    margin: 0;
    height: 44px;
    align-self: stretch;
  }
}
