/* RUFUS Adoption Listing — dedicated page styles */
.rap-list-page {
  --rap-navy: #211642;
  --rap-orange: #ff6c35;
  --rap-pink: #ff4d79;
  --rap-mint: #dff7f1;
  --rap-cream: #fffaf3;
  --rap-border: rgba(255, 108, 53, .24);
  --rap-soft-border: rgba(33, 22, 66, .09);
  --rap-muted: rgba(33, 22, 66, .65);
  padding: 1.3rem 0 3rem;
  background:
    linear-gradient(rgba(111, 190, 180, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 190, 180, .045) 1px, transparent 1px),
    linear-gradient(180deg, #fbfffd, #fffaf4);
  background-size: 28px 28px, 28px 28px, auto;
}

.rap-list-page *,
.rap-list-page *::before,
.rap-list-page *::after {
  box-sizing: border-box;
}

.rap-list-wrap {
  width: min(1180px, calc(100vw - 34px));
  margin: 0 auto;
}

.rap-list-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  overflow: hidden;
  border: 1px solid var(--rap-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 48% 10%, rgba(255, 195, 178, .34), transparent 8rem),
    linear-gradient(120deg, #fffaf4 0%, #fff 54%, #eefcff 100%);
  box-shadow: 0 24px 56px rgba(33, 22, 66, .07);
}

.rap-list-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.rap-list-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 .82rem;
  border: 1px solid rgba(255, 108, 53, .28);
  border-radius: 999px;
  background: rgba(255, 250, 243, .9);
  color: var(--rap-orange);
  font-size: .77rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.rap-list-hero h1 {
  max-width: 630px;
  margin: 1rem 0 .7rem;
  color: var(--rap-navy);
  font-size: clamp(2.4rem, 5.1vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 1000;
}

.rap-list-hero h1 span,
.rap-list-hero h1 strong {
  display: block;
}

.rap-list-hero h1 strong {
  margin-top: .16rem;
  color: var(--rap-orange);
}

.rap-list-hero-copy > p {
  max-width: 570px;
  margin: 0;
  color: var(--rap-muted);
  font-size: clamp(.96rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  font-weight: 750;
}

.rap-list-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.45rem;
}

.rap-list-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 1000;
}

.rap-list-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rap-orange), var(--rap-pink));
  box-shadow: 0 14px 28px rgba(255, 77, 121, .2);
}

.rap-list-btn-secondary {
  border: 1px solid rgba(255, 77, 121, .62);
  color: var(--rap-pink);
  background: #fff;
}

.rap-list-hero-media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(222, 248, 243, .7), rgba(235, 246, 255, .86));
}

.rap-list-hero-media::before {
  content: "";
  position: absolute;
  inset: auto -5% -34% -8%;
  height: 55%;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 250, 243, .82);
  z-index: 1;
}

.rap-list-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: cover;
  object-position: center 34%;
}

.rap-list-hero-placeholder {
  height: 100%;
  min-height: 390px;
  display: grid;
  place-items: center;
  font-size: 5rem;
}

.rap-list-heart,
.rap-list-paw {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--rap-pink);
}

.rap-list-heart {
  left: 8%;
  bottom: 13%;
  font-size: 4.2rem;
  transform: rotate(-12deg);
}

.rap-list-paw {
  right: 8%;
  top: 13%;
  font-size: 2rem;
  opacity: .22;
}

.rap-list-catalog {
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  border: 1px solid var(--rap-soft-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 77, 121, .09), transparent 8rem),
    rgba(255, 255, 255, .95);
  box-shadow: 0 24px 56px rgba(33, 22, 66, .07);
}

.rap-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.rap-list-heading h2 {
  margin: 0;
  color: var(--rap-navy);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 1000;
}

.rap-list-heading h2 span {
  color: var(--rap-orange);
}

.rap-list-heading p {
  margin: .38rem 0 0;
  color: var(--rap-muted);
  font-size: .9rem;
  font-weight: 720;
}

.rap-list-tools {
  display: flex;
  gap: .7rem;
  align-items: center;
}

.rap-list-search {
  width: min(300px, 30vw);
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 0 .85rem;
  border: 1px solid var(--rap-soft-border);
  border-radius: 999px;
  background: #fff;
}

.rap-list-search span {
  color: var(--rap-navy);
  font-size: 1.15rem;
}

.rap-list-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--rap-navy);
  font: inherit;
  font-size: 16px;
}

.rap-list-tools select {
  min-height: 45px;
  padding: 0 2.2rem 0 .95rem;
  border: 1px solid rgba(255, 108, 53, .25);
  border-radius: 999px;
  background: #fff;
  color: var(--rap-navy);
  font: inherit;
  font-size: .83rem;
  font-weight: 850;
}

.rap-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rap-list-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rap-soft-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 22, 66, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rap-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(33, 22, 66, .11);
}

.rap-list-card[hidden] {
  display: none !important;
}

.rap-list-photo {
  position: relative;
  height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff3ea, #e9faf6);
  text-decoration: none;
}

.rap-list-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rap-list-photo > span:first-child {
  font-size: 3rem;
}

.rap-list-favorite {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--rap-pink);
  font-size: 1.05rem;
  box-shadow: 0 7px 18px rgba(33, 22, 66, .11);
}

.rap-list-card-body {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: .95rem;
}

.rap-list-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 1000;
}

.rap-list-card-body h3 a {
  color: var(--rap-navy);
  text-decoration: none;
}

.rap-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .36rem .7rem;
  margin-top: .48rem;
  color: var(--rap-muted);
  font-size: .72rem;
  line-height: 1.35;
  font-weight: 780;
}

.rap-list-card-body > p {
  margin: .72rem 0 1rem;
  color: rgba(33, 22, 66, .72);
  font-size: .82rem;
  line-height: 1.55;
  font-weight: 670;
}

.rap-list-card-cta {
  min-height: 41px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rap-orange), var(--rap-pink));
  color: #fff;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 1000;
}

.rap-list-card-cta span {
  font-size: 1rem;
}

.rap-list-no-results,
.rap-list-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--rap-muted);
  font-weight: 850;
}

.rap-list-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .9rem;
  align-items: center;
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 108, 53, .22);
  border-radius: 20px;
  background: linear-gradient(90deg, #fffaf4, #fff);
}

.rap-list-bottom-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ffe9e6;
  font-size: 1.35rem;
}

.rap-list-bottom h3 {
  margin: 0;
  color: var(--rap-navy);
  font-size: 1rem;
  font-weight: 1000;
}

.rap-list-bottom p {
  margin: .2rem 0 0;
  color: var(--rap-muted);
  font-size: .78rem;
  font-weight: 720;
}

.rap-list-bottom > a {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rap-orange), var(--rap-pink));
  color: #fff;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 1000;
}

.rap-list-bowl {
  font-size: 2.1rem;
}

@media (max-width: 980px) {
  .rap-list-hero {
    grid-template-columns: 1fr 42%;
  }

  .rap-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rap-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rap-list-tools,
  .rap-list-search {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .rap-list-page {
    padding-top: .8rem;
  }

  .rap-list-wrap {
    width: min(100% - 22px, 1180px);
  }

  .rap-list-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 23px;
  }

  .rap-list-hero-copy {
    padding: 1.35rem 1.15rem 1.15rem;
  }

  .rap-list-hero h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 11vw, 3.15rem);
  }

  .rap-list-hero-media {
    min-height: 235px;
    max-height: 290px;
  }

  .rap-list-hero-media img,
  .rap-list-hero-placeholder {
    min-height: 235px;
    max-height: 290px;
  }

  .rap-list-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .rap-list-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 .9rem;
    font-size: .82rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .rap-list-catalog {
    padding: .9rem;
    border-radius: 23px;
  }

  .rap-list-tools {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .rap-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .72rem;
  }

  .rap-list-photo {
    height: 170px;
  }

  .rap-list-card-body {
    min-height: 235px;
    padding: .8rem;
  }

  .rap-list-bottom {
    grid-template-columns: auto 1fr;
  }

  .rap-list-bottom > a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .rap-list-bowl {
    display: none;
  }
}

@media (max-width: 430px) {
  .rap-list-heading h2 {
    font-size: 1.55rem;
  }

  .rap-list-tools {
    grid-template-columns: 1fr;
  }

  .rap-list-tools select {
    width: 100%;
  }

  .rap-list-grid {
    grid-template-columns: 1fr 1fr;
    gap: .58rem;
  }

  .rap-list-photo {
    height: 148px;
  }

  .rap-list-card {
    border-radius: 16px;
  }

  .rap-list-card-body {
    min-height: 220px;
    padding: .68rem;
  }

  .rap-list-card-body h3 {
    font-size: .92rem;
  }

  .rap-list-meta {
    gap: .25rem .45rem;
    font-size: .64rem;
  }

  .rap-list-card-body > p {
    font-size: .73rem;
    line-height: 1.45;
  }

  .rap-list-card-cta {
    min-height: 38px;
    padding: 0 .45rem;
    font-size: .7rem;
  }
}

/* v25 — solid RUFUS adoption system */
.rap-list-page {
  --rap-navy: #073c48;
  --rap-teal: #075c65;
  --rap-orange: #f0644b;
  --rap-pink: #f0644b;
  --rap-mint: #edf4ef;
  --rap-cream: #faf8f4;
  --rap-border: #cfe0d8;
  --rap-soft-border: #d8e1dc;
  --rap-muted: #586f73;
  padding: 2rem 0 3rem;
  background: var(--rap-cream);
}
.rap-list-wrap { width: min(1180px, calc(100% - 48px)); }
.rap-list-hero {
  min-height: 360px;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  border: 1px solid var(--rap-soft-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(7, 60, 72, .07);
}
.rap-list-hero-copy { padding: clamp(2rem, 4.5vw, 3.4rem); }
.rap-list-eyebrow {
  min-height: 32px;
  border-color: #f2b7aa;
  background: #fffaf7;
  color: var(--rap-orange);
  font-size: .72rem;
  text-transform: none;
  letter-spacing: 0;
}
.rap-list-hero h1 {
  margin: .9rem 0 .75rem;
  color: var(--rap-navy);
  font-size: clamp(2.3rem, 4.35vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.rap-list-hero h1 strong { margin-top: .08rem; color: var(--rap-orange); }
.rap-list-hero-copy > p { color: var(--rap-muted); font-weight: 650; }
.rap-list-btn { min-height: 46px; border-radius: 10px; }
.rap-list-btn-primary {
  color: #fff;
  background: var(--rap-teal);
  box-shadow: 0 9px 20px rgba(7, 92, 101, .14);
}
.rap-list-btn-secondary { border-color: #f2a694; color: var(--rap-orange); background: #fff; }
.rap-list-btn:hover { transform: translateY(-1px); }
.rap-list-hero-media,
.rap-list-hero-media img,
.rap-list-hero-placeholder { min-height: 360px; }
.rap-list-hero-media { background: var(--rap-mint); }
.rap-list-hero-media::before,
.rap-list-paw { display: none; }
.rap-list-heart { color: var(--rap-orange); opacity: .9; }
.rap-list-catalog {
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--rap-soft-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(7, 60, 72, .06);
}
.rap-list-heading { align-items: center; margin-bottom: 1.15rem; }
.rap-list-heading h2 {
  color: var(--rap-navy);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.rap-list-heading h2 span { color: var(--rap-orange); }
.rap-list-heading p { max-width: 650px; color: var(--rap-muted); font-weight: 620; }
.rap-list-search,
.rap-list-tools select { min-height: 44px; border-color: var(--rap-soft-border); border-radius: 10px; }
.rap-list-search:focus-within,
.rap-list-tools select:focus { border-color: #7fb7aa; box-shadow: 0 0 0 3px rgba(7, 92, 101, .08); }
.rap-list-grid { gap: .9rem; }
.rap-list-card {
  border-color: var(--rap-soft-border);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(7, 60, 72, .055);
}
.rap-list-card:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(7, 60, 72, .09); }
.rap-list-photo { height: 198px; background: var(--rap-mint); }
.rap-list-favorite {
  width: 34px;
  height: 34px;
  color: var(--rap-orange);
  box-shadow: 0 5px 14px rgba(7, 60, 72, .1);
}
.rap-list-card-body { min-height: 235px; padding: .9rem; }
.rap-list-card-body h3 { font-size: 1rem; line-height: 1.3; }
.rap-list-card-body h3 a { color: var(--rap-navy); }
.rap-list-meta { color: #60767a; font-weight: 690; }
.rap-list-species-tag {
  color: #075c65;
  font-weight: 850;
}
.rap-list-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: .68rem 0 .9rem;
  color: #52676b;
  font-size: .8rem;
  line-height: 1.52;
  font-weight: 570;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.rap-list-card-cta {
  min-height: 40px;
  border-radius: 9px;
  background: var(--rap-orange);
  box-shadow: none;
}
.rap-list-bottom {
  border-color: var(--rap-border);
  border-radius: 13px;
  background: var(--rap-mint);
}
.rap-list-bottom-icon { border-radius: 11px; background: #fff; }
.rap-list-bottom h3 { color: var(--rap-navy); }
.rap-list-bottom > a { border-radius: 9px; background: var(--rap-teal); }

@media (max-width: 720px) {
  .rap-list-page { padding-top: 1rem; }
  .rap-list-wrap { width: min(100% - 20px, 1180px); }
  .rap-list-hero { grid-template-columns: 1fr; border-radius: 15px; }
  .rap-list-hero-copy { padding: 1.35rem 1.15rem 1.2rem; }
  .rap-list-hero h1 { font-size: clamp(2rem, 10vw, 2.85rem); }
  .rap-list-catalog { padding: .85rem; border-radius: 15px; }
  .rap-list-tools { grid-template-columns: 1fr 1fr; }
  .rap-list-search { grid-column: 1 / -1; }
  .rap-list-tools select { width: 100%; }
  .rap-list-card-body { min-height: 225px; }
}
@media (max-width: 430px) {
  .rap-list-tools { grid-template-columns: 1fr; }
  .rap-list-search { grid-column: auto; }
  .rap-list-grid { grid-template-columns: 1fr; }
  .rap-list-photo { height: 230px; }
  .rap-list-card-body { min-height: auto; }
  .rap-list-card-body > p { -webkit-line-clamp: 3; }
}
