/* =======================
   Base form styles
   ======================= */
label {
  color: whitesmoke;
}
input, select {
  width: 156px;
  height: 37px;
  border-radius: 8px;
}
#saveb {
  background-color: #bf7733;
  width: 35%;
}
#contib {
  background-color: #38aecd;
  width: 35%;
}
textarea { border-radius: 8px; }
legend { border-bottom: none; }
.jumbotron {
  padding-top: 0;      /* was 'none' (invalid) */
  padding-bottom: 0;   /* was 'none' (invalid) */
  margin-bottom: 30px;
  color: inherit;
  background-color: #eee;
}

/* =======================
   AllActivities: equal-height cards & tidy rows
   ======================= */

/* Columns as flex so each card can stretch to same height */
.bestmatch .panel-collapse .row,
.recommended .panel-collapse .row {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* Each grid column becomes a flex container */
.bestmatch .resultlistitem,
.recommended .resultlistitem {
  display: flex !important;
}

/* Card layout fills the column height */
.resultlistitem > .kss-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Keep images consistent so rows line up */
.kss-card .listingimg {
  width: 100% !important;
  height: 220px !important;     /* tweak 200–240 to taste */
  object-fit: cover !important;
  display: block !important;
}

/* Content area is flex; lets the button stick to bottom */
.kss-card .resultlistitem-bottom {
  display: flex !important;
  flex-direction: column !important;
  gap: .35rem;
  padding: 12px;
  flex: 1 1 auto !important;
}

/* Neutralize old Bootstrap .col-* floats inside the card */
.kss-card .resultlistitem-bottom [class*="col-"] {
  float: none !important;
  width: 100% !important;            /* default: full width rows */
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: .35rem;
}

/* The two half rows (age / price) can sit side-by-side on md+ */
@media (min-width: 576px) {
  .kss-card .resultlistitem-bottom .col-lg-6,
  .kss-card .resultlistitem-bottom .col-md-6,
  .kss-card .resultlistitem-bottom .col-sm-6 {
    width: 50% !important;
  }
}

/* Button pinned to the bottom */
.kss-card .see-details-btn {
  margin-top: auto !important;
  display: block !important;
}

/* =======================
   Fix orange bars on icons
   ======================= */

/* Keep any special badge style only inside the banner area */
.result-banner .favorite {
  /* your star badge styles (if any) can live here */
}

/* Everywhere else, .favorite is just an icon, not a bar */
.r-details .favorite,
.resultlistitem-bottom .favorite {
  background: transparent !important;
  color: #6c757d;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 .35rem 0 0 !important;
  line-height: 1 !important;
  border-radius: 0 !important;
}

/* Make each info row a clean single line */
.resultlistitem-bottom .r-details {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-left: 0;
  padding-right: 0;
  margin: 0 0 .35rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
