.search-bar {
  display: flex;
  flex-direction: row;           /* Always horizontal */
  align-items: stretch;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 30, 10, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.search-bar input {
  flex: 1 1 auto;
  min-width: 0;                   /* Prevents input from overflowing flex */
  border: none;
  padding: 18px 24px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: transparent;
}

.search-bar button {
  flex: 0 0 auto;                 /* Button keeps its size */
  background: var(--deep-green);
  color: white;
  border: none;
  padding: 0 32px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;            /* Prevents text wrapping */
}

.search-bar button:hover {
  background: var(--accent-green);
}

@media (max-width: 700px) {
  .search-bar {
    border-radius: 10px;          /* Keep rounded corners */
  }

  .search-bar input {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .search-bar button {
    padding: 0 18px;
    font-size: 0.9rem;
  }

  /* Hide the word "Search" on very small screens, keep icon only */
  .search-bar button span,
  .search-bar button .btn-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .search-bar {
    border-radius: 8px;
  }

  .search-bar input {
    padding: 13px 14px;
    font-size: 0.9rem;
  }

  .search-bar button {
    padding: 0 14px;
    font-size: 0.85rem;
    gap: 6px;
  }
}