.featured-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.feature-card {
  --feature-title-size: 1rem;
  width:100%;
  text-align:left;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 17px 16px;
  box-shadow:0 2px 6px #17171b06;
  display:grid;
  grid-template-columns:minmax(0,1fr) 69px;
  align-items:start;
  column-gap:12px;
  row-gap:9px;
}

.feature-card:hover,.market-card:hover {
  border-color:#c5d6e9;
  box-shadow:0 7px 22px #172c4410;
}

.feature-copy {
  min-width:0;
}

.feature-card h3 {
  font-size:var(--feature-title-size);
  letter-spacing:-.045em;
  line-height:1.25;
  margin-top:9px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.feature-card .feature-meta {
  font-size:.78rem;
  color:var(--muted);
  margin-top:4px;
}

.feature-photo {
  width:69px;
  height:69px;
  border-radius:11px;
  overflow:hidden;
  background:var(--accent-bg);
}

.feature-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.feature-bottom {
  grid-column:1/-1;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  border-top:1px solid var(--line);
  padding-top:8px;
}

.money {
  font-size:1.55rem;
  font-weight:850;
  letter-spacing:-.065em;
  line-height:1.2;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.money small {
  font-size:.9rem;
  margin-left:2px;
  font-weight:760;
  letter-spacing:-.04em;
}

.feature-note {
  color:var(--muted);
  font-size:.76rem;
  text-align:right;
}

.market-price .money {
  font-size:1.33rem;
}

.spark {
  width:100%;
  height:29px;
  display:block;
}

@media(max-width:750px) {
  .featured-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:535px) {
  .featured-grid {
      gap:10px;
    }

  .feature-card {
      grid-template-columns:minmax(0,1fr) 55px;
      gap:7px;
      padding:10px 12px;
    }

  .feature-photo {
      width:55px;
      height:55px;
    }

  .feature-card h3 {
      margin-top:5px;
    }

  .feature-bottom {
      padding-top:6px;
    }

  .feature-bottom .money {
      font-size:1.28rem;
    }

  .market-price .money {
      font-size:1.05rem;
    }

  .money small {
      font-size:.74rem;
    }

  .market-price .spark {
      max-width:29%;
      height:20px;
    }
}

@media(max-width:535px) {
  .market-price .spark {
      max-width:100%;
    }
}

.feature-toolbar {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  margin-bottom: 9px;
}

.carousel-toggle {
  color: var(--muted);
  font-size: .83rem;
}

.carousel-arrow, .carousel-toggle {
  background: white;
  border: 1px solid var(--line);
  border-radius: 99px;
  line-height: 1.1;
  min-height: 36px;
}

.carousel-arrow {
  min-width: 38px;
  font-size: 1.45rem;
  font-weight: 700;
}

.carousel-toggle {
  padding: 5px 9px;
  font-weight: 700;
}

.carousel-arrow:hover, .carousel-toggle:hover, .detail-button:hover {
  background: var(--accent-bg);
}

.feature-card {
  --feature-ink: #176044;
  --feature-light: #f2fff7;
  --feature-fill: #cdeedc;
  --feature-edge: #a5d1b7;
}

.feature-card[data-kind="drop"] {
  --feature-ink: #164b8e;
  --feature-light: #f4faff;
  --feature-fill: #d5e8ff;
  --feature-edge: #afccec;
}

.feature-card[data-kind="low"] {
  --feature-ink: #744b0d;
  --feature-light: #fffaf0;
  --feature-fill: #ffe6aa;
  --feature-edge: #e7c47a;
}

.feature-card .badge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--feature-edge);
  border-radius: 99px;
  background: linear-gradient(113deg, var(--feature-fill) 5%, var(--feature-light) 51%, var(--feature-fill) 93%);
  color: var(--feature-ink);
  box-shadow: inset 0 1px 1px #fffe, 0 2px 9px var(--feature-fill);
  font-size: var(--feature-title-size);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.25;
  word-break: keep-all;
}

.feature-card .badge::before {
  content: "";
  flex: none;
  width: .72em;
  height: .72em;
  background: currentColor;
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
}

@media (prefers-reduced-motion: no-preference) {
  .feature-card .badge::after {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0;
      background: linear-gradient(112deg, transparent 36%, #fffc 49%, transparent 62%) 100% 0 / 350% 100% no-repeat;
      pointer-events: none;
      animation: badge-shine 5s ease-out infinite;
    }

  .feature-card:nth-child(2) .badge::after { animation-delay: .35s; }

  .feature-card:nth-child(3) .badge::after { animation-delay: .7s; }

  @keyframes badge-shine {
      0% { background-position: 100% 0; }
      27%, 100% { background-position: 0 0; }
    }
}

.feature-card .feature-note {
  color: var(--feature-ink);
  font-weight: 750;
}

.feature-card h3 {
  overflow: visible;
  white-space: normal;
}

.card-title {
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  padding: 0;
}

.card-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-copy .card-title {
  display: block;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.feature-trend, .market-trend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, 46%);
  align-items: center;
  grid-auto-flow: row;
  column-gap: 8px;
  row-gap: 2px;
  justify-items: stretch;
  padding: 6px 8px;
  background: #f5f6fa;
  border-radius: 10px;
  font-size: .74rem;
  color: var(--muted);
}

.feature-trend, .feature-card .card-actions {
  grid-column: 1 / -1;
}

.trend-label {
  font-weight: 750;
  color: #39475a;
  line-height: 1.3;
}

.trend-source {
  grid-column: 1;
  grid-row: 2;
  font-size: .72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.feature-trend .spark, .market-trend .spark {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 31px;
  width: 100%;
  max-width: 100%;
  align-self: center;
}

.trend-missing {
  line-height: 1.25;
  text-align: right;
}

.feature-card .booking {
  flex: 1;
}

@media (max-width: 620px) {
  .featured-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 535px) {
  .feature-card .card-actions {
      gap: 6px;
    }

  .trend-label {
      font-size: .73rem;
    }
}
