/* Backpacker Deals category and homepage band. */

.backpacker-page .bp-lede {
  max-width: 62ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.bp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
}
.bp-stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #f4fbf8);
}
.bp-stat strong {
  display: block;
  color: #0f6b5b;
  font-family: var(--font-head);
  font-size: 1.45rem;
  letter-spacing: -.03em;
}
.bp-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.bp-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}
.bp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #f5fbf8 155%);
  overflow: hidden;
}
.bp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2d9d78, #01c7f5);
}
.bp-card h3 {
  margin: 0 0 3px;
  font-size: 1.28rem;
}
.bp-region {
  margin: 0 0 10px;
  color: #0f6b5b;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.bp-budget {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.bp-budget small {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.bp-card p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.55;
}
.bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}
.bp-tags span {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #cbe9dd;
  border-radius: 999px;
  background: #f3fcf8;
  color: #0f5e50;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
}
.bp-card .bp-link {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 800;
}

.bp-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #cbe9dd;
  border-radius: var(--radius);
  background: #f1fbf7;
}
.bp-callout strong {
  color: #0f5e50;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.bp-callout p {
  margin: 0;
  color: var(--text);
  font-size: .94rem;
  line-height: 1.55;
}

.bp-month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.bp-month {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.bp-month strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.bp-month span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

/* Homepage band */
.backpacker-home {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 74px) 0;
  background:
    radial-gradient(ellipse 50% 80% at 94% 0%, rgba(1, 199, 245, .2), transparent 65%),
    radial-gradient(ellipse 45% 75% at 0% 100%, rgba(45, 157, 120, .18), transparent 65%),
    linear-gradient(135deg, #062f3a 0%, #074a4f 58%, #0b5f57 100%);
  color: #fff;
}
.backpacker-home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2d9d78, var(--sky), #ffd479);
}
.bp-home-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 14px 54px;
  align-items: end;
  margin-bottom: 24px;
}
.bp-home-head .eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #9fe7cf;
}
.bp-home-head h2 {
  max-width: 16ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.9vw, 3.2rem);
}
.bp-home-head p {
  max-width: 50ch;
  margin: 0;
  color: #cfe9e3;
  font-size: .98rem;
  line-height: 1.6;
}
.bp-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bp-home-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px 17px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.bp-home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .11);
  color: #fff;
}
.bp-home-kicker {
  color: #9fe7cf;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bp-home-card strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: -.02em;
}
.bp-home-card span:last-child {
  color: #cfe9e3;
  font-size: .84rem;
  line-height: 1.45;
}
.bp-home-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.bp-home-foot p {
  margin: 0;
  color: #b9ded5;
  font-size: .9rem;
}
.bp-home-foot .btn {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .bp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-month-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bp-home-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bp-home-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .bp-board { grid-template-columns: minmax(0, 1fr); }
  .bp-callout { grid-template-columns: minmax(0, 1fr); }
  .bp-home-foot { align-items: flex-start; flex-direction: column; }
  .bp-home-foot .btn { width: 100%; }
}

@media (max-width: 560px) {
  .bp-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bp-month-grid { grid-template-columns: minmax(0, 1fr); }
  .backpacker-home { padding: 42px 0; }
}
