/* ============================================================
   hikes.css — hikes listing page specific styles
   ============================================================ */

/* Filter bar */
.filter-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 clamp(2rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(158,148,135,0.12);
  overflow-x: auto;
}

.filter-btn {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.5rem;
  font-weight: 200;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dust);
  background: none;
  border: none;
  padding: 1.2rem 1.8rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
  margin-bottom: -1px;
}

.filter-btn:hover { color: var(--stone); }
.filter-btn.active { color: var(--stone); border-bottom-color: var(--stone); }

/* Hikes grid */
.hikes-section {
  position: relative;
  z-index: 1;
  padding: 4rem clamp(2rem, 6vw, 5rem) 6rem;
}

.hikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: rgba(158,148,135,0.1);
  border: 1px solid rgba(158,148,135,0.1);
}

/* Hike card */
.hike-card {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.3s;
}

.hike-card:hover { background: #1f1d19; }

.hike-card-photo {
  height: 220px;
  background: linear-gradient(160deg, #2d2a25 0%, #1a1814 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hike-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.6s ease, opacity 0.3s;
}

.hike-card:hover .hike-card-photo img {
  transform: scale(1.04);
  opacity: 0.9;
}

.photo-placeholder-sm {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder-sm svg { opacity: 0.08; }

/* Difficulty badges */
.hike-difficulty {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.45rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid;
}

.diff-easy     { color: #7eb87e; border-color: rgba(126,184,126,0.4); background: rgba(126,184,126,0.08); }
.diff-moderate { color: #d4a843; border-color: rgba(212,168,67,0.4);  background: rgba(212,168,67,0.08); }
.diff-hard     { color: #c0614a; border-color: rgba(192,97,74,0.4);   background: rgba(192,97,74,0.08); }
.diff-expert   { color: #8a6bc4; border-color: rgba(138,107,196,0.4); background: rgba(138,107,196,0.08); }

/* Card body */
.hike-card-body {
  padding: 1.6rem 1.8rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hike-region {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.45rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 0.6rem;
}

.hike-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--snow);
  margin-bottom: 0.8rem;
}

.hike-desc {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--dust);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.4rem;
}

/* Stats row */
.hike-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(158,148,135,0.12);
  padding-top: 1.2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 1rem;
}

.stat + .stat {
  padding-left: 1rem;
  border-left: 1px solid rgba(158,148,135,0.12);
}

.stat:last-child { padding-right: 0; }

.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--stone);
}

.stat-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.4rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dust);
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hikes-grid { grid-template-columns: 1fr; }
}
