/* ==========================================================================
   Himalayan Trails — "Treks by category" cards
   ========================================================================== */

.ht-browse {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ht-space-5);
}

@media (min-width: 34rem) {
  .ht-browse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * Three columns is the widest this goes. Six across a 1248px measure left each
 * card about 180px wide, which clipped "September" and broke every card title
 * onto two lines. Six cards over three columns still fills two complete rows.
 */
@media (min-width: 56rem) {
  .ht-browse {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ht-space-6);
  }
}

.ht-browse__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: var(--ht-space-6);
  overflow: hidden;
  background: var(--ht-surface-card);
  border: 1px solid var(--ht-border-soft);
  border-radius: var(--ht-radius-lg);
  transition:
    border-color var(--ht-duration-base) var(--ht-ease),
    box-shadow var(--ht-duration-base) var(--ht-ease);
}

.ht-browse__card:hover {
  border-color: var(--ht-stone-400);
  box-shadow: var(--ht-shadow-md);
}

.ht-browse__title {
  padding-bottom: var(--ht-space-3);
  margin-bottom: var(--ht-space-4);
  border-bottom: 2px solid var(--ht-clay-500);
  font-family: var(--ht-font-display);
  font-size: var(--ht-text-lg);
  font-weight: 600;
  line-height: 1.25;
}

.ht-browse__list {
  display: grid;
  gap: 0.125rem;
  align-content: start;
}

.ht-browse__list--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--ht-space-4);
}

.ht-browse__list a,
.ht-browse__muted {
  display: block;
  padding-block: 0.3125rem;
  font-size: var(--ht-text-base);
  color: var(--ht-text-soft);
  transition: color var(--ht-duration-fast) var(--ht-ease);
}

.ht-browse__list a:hover {
  color: var(--ht-accent);
}

/* A month with no open departure: shown so the calendar reads as a whole year,
   but not offered as a link into an empty result. */
.ht-browse__muted {
  color: var(--ht-stone-400);
  cursor: default;
}

/* Oversized watermark glyph in the corner. Sits under the content and is
   decorative — the icon component already marks it aria-hidden. */
.ht-browse__glyph {
  position: absolute;
  z-index: -1;
  right: -1.25rem;
  bottom: -1.5rem;
  width: 9rem;
  height: 9rem;
  color: var(--ht-clay-500);
  opacity: 0.1;
  stroke-width: 1;
  pointer-events: none;
}

@media (max-width: 33.9375rem) {
  .ht-browse__card {
    min-height: 0;
  }

  .ht-browse__glyph {
    width: 7rem;
    height: 7rem;
  }
}
