.search-bar {
  margin-top: 30px;
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 25px;
  padding: 8px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 5px;
  font-size: 16px;
  color: #333;
}

.search-input::placeholder {
  color: #888;
}

.search-button {
  background-color: #1290b6;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #0056b3;
}

:root {
  --primary-color: #1290b6;
  --primary-hover: #0e7696ff;
  --text-dark: #111827;
  --text-light: #6b7280;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --body-bg: #f9fafb;
}

/* Apply a modern font and background to your page */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--body-bg);
  /* This is just for the demo, you can remove it */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* ---- Card Wrapper ---- */
.property-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  overflow: hidden;
  max-width: 300px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ---- Image & Price Overlay Section ---- */
.card-image {
  position: relative;
  /* This is crucial for positioning the price */
  height: 240px;
  background-color: #f0f0f0;
  /* Shows while image is loading */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures image fills space without distortion */
  display: block;
}

.card-price {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: orange;
  color: white;
  padding: 8px 20px;
  border-top-left-radius: 16px;
  /* Stylish curve */
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ---- Text Content Section ---- */
.card-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Ensures this area takes up remaining space */
}

/* ---- Content Elements in Order ---- */
.id-text {
  font-size: small;
  margin-left: auto;
}

.property-type {
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0px 0px 0px 0px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  height: 24px;
  overflow: hidden;
  color: var(--text-dark);
  margin: 0 0 0 0;
  line-height: 1.2;
}

.card-location {
  display: flex;
  align-items: center;
  color: var(--text-light);
  margin-bottom: 5px;
}

.card-location i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  /* This is the magic that pushes the button down */
}

.card-button {
  display: block;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto;
  /* Pushes the button to the bottom of the card */
}

.card-button:hover {
  background-color: var(--primary-hover);
}

/* style.css */

.search-bar {
  display: flex;
  /* Aligns items in a row */
  border: 1px solid #ccc;
  border-radius: 25px;
  /* Rounded corners for the container */
  overflow: hidden;
  /* Ensures children conform to the rounded corners */
}

.search-container {
  text-align: center;
  margin-bottom: 30px;
  width: 40vw;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 600px) {
  .search-bar {
    width: 80vw;
    display: inline-flex;
  }

  .search-container {
    width: 80vw;
  }
}

.search-input,
.price-filter,
.search-button {
  border: none;
  padding: 10px 15px;
  border-radius: 19px;
  width: 38px;
  font-size: 16px;
  background-color: #f1f1f1;
}

.search-input:focus,
.price-filter:focus {
  outline: none;
  /* Removes the default blue outline on click */
}

.search-input {
  flex-grow: 1;
  /* Allows the input to take up the remaining space */
}

.price-filter {
  background-color: #f1f1f1;
  color: #555;
  cursor: pointer;
  border-left: 1px solid #ccc;
  /* Separator line */
}

.search-button {
  background-color: #1290b6;
  /* Example button color */
  color: white;
  cursor: pointer;
  border-left: 1px solid #ccc;
  /* Separator line */
}

.search-button:hover {
  background-color: #0e7797ff;
}