/* ========== General ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #002C3E;
}

/* ========== Logo & Header ========== */
.results-header {
  padding: 20px 0 0 0;
  display: block;
  position: relative;
  width: 100%;
}
.logo {
  position: static;
  height: 60px;
  object-fit: contain;
  margin-right: 0;
}

/* ========== Search Bar ========== */
.search-bar {
  display: flex;
  gap: 10px;
  width: 90%;
  max-width: 1000px;
  margin-top: 60px; /* push below logo */
  padding-top: 20px; /* extra space for logo */
}
.search-bar input {
  flex: 1 1 auto;      /* ✅ stable width handling */
  min-width: 0;        /* ✅ prevent overflow bug */
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.search-bar button {
  padding: 15px 20px;
  background-color: #F8A523;
  border: none;
  color: #002C3E;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0; /* ✅ prevents shrinking/moving */
}

/* ========== Filters ========== */
.filters {
  width: 90%;
  max-width: 1000px;
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
  padding-top: 10px; /* extra space for logo */
}
.filter-button {
  margin-top: 10px;
  min-width: 180px;
  align-self: flex-start;
  background: #fff;
  border: 2px solid #ccc;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* ========== Results Grid ========== */
.results-container {
  width: 90%;
  max-width: 1000px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.profile-link {
  text-decoration: none;
  color: inherit;
}

.profile-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.profile-card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* ========== Card Info ========== */
.card-info {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  gap: 10px;
}
.card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* Profile picture next to title */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Title and Subtext */
.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #002C3E;
}
.card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #F8A523;
}
.card-job {
  font-size: 13px;
  color: #555;
}

/* Location & Price Row */
.location-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.card-location {
  font-size: 13px;
  color: #555;
}
.card-price {
  font-weight: bold;
  font-size: 18px;
  color: #002C3E;
  font-family: 'Poppins', sans-serif;
}

/* ========== Rating Block ========== */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.rating-block {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rating-number {
  font-weight: bold;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
}
.bean-icon {
  width: 39px;
  height: 39px;
  object-fit: contain;
}
.fancy-select {
  min-width: 180px;
  height: 44px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  margin-left: 16px;
}
.find-btn {
  margin-left: 16px;
  padding: 15px 20px;
  background-color: #F8A523;
  border: none;
  color: #002C3E;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  cursor: pointer;
}