/* ============================================================
   CumbriaGuru — category.css
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.cat-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  color: #fff;
}
.cat-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}
.cat-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.6rem;
}
.cat-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
}
.cat-hero__eyebrow a:hover { text-decoration: underline; }
.cat-hero__title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.cat-hero__desc {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.cat-hero__count {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.65;
}

/* ── SUB-CATEGORY PILLS ─────────────────────────────────────── */
.subcat-nav {
  background: #fff;
  border-bottom: 1px solid #e8e2db;
  position: sticky;
  top: 0;
  z-index: 20;
}
.subcat-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.subcat-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid #d4ccc4;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.subcat-pill:hover {
  border-color: #00a652;
  color: #00a652;
  background: #f0faf4;
}
.subcat-pill--active {
  background: #00a652;
  border-color: #00a652;
  color: #fff;
}
.subcat-pill--active:hover {
  background: #009147;
  border-color: #009147;
  color: #fff;
}

/* ── TOOLBAR ────────────────────────────────────────────────── */
.cat-toolbar {
  background: #f7f4f0;
  border-bottom: 1px solid #e8e2db;
  padding: 0.6rem 1.5rem;
}
.cat-toolbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.toolbar-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toolbar-filter--sort {
  margin-left: auto;
}
.toolbar-filter__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.toolbar-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.38rem 2rem 0.38rem 0.7rem;
  border: 1.5px solid #d4ccc4;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L0 2h10z'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  background-size: 9px;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
  min-width: 130px;
}
.toolbar-select:focus {
  outline: none;
  border-color: #00a652;
  box-shadow: 0 0 0 3px rgba(0,166,82,0.12);
}

/* ── MAIN ───────────────────────────────────────────────────── */
.cat-main {
  background: #f7f4f0;
  min-height: 60vh;
  padding: 2rem 1.5rem 4rem;
}
.cat-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── GRID ───────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start; /* prevent stretching — each card is its own height */
}

/* ── PLACE CARD ─────────────────────────────────────────────── */
.place-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8e2db;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

/* Image */
.place-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;   /* fixed ratio — all images same height */
  overflow: hidden;
  background: #e4ddd6;
  flex-shrink: 0;
}
.place-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.place-card:hover .place-card__img {
  transform: scale(1.04);
}
.place-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #bbb;
  background: #ede8e2;
}

/* Category tag badge */
.place-card__tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Body */
.place-card__body {
  flex: 1;
  padding: 0.9rem 1rem 0.5rem;
}
.place-card__title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.place-card__town {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.45rem;
}
.place-card__verdict {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.place-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.place-card__stars {
  font-size: 0.78rem;
  line-height: 1;
}
.star--on  { color: #E6A817; }
.star--off { color: #ddd; }
.place-card__rating-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
}

/* Footer CTA */
.place-card__foot {
  padding: 0.55rem 1rem 0.75rem;
  border-top: 1px solid #f0ebe5;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00a652;
  letter-spacing: 0.01em;
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.cat-empty {
  text-align: center;
  padding: 5rem 1.5rem;
  color: #999;
}
.cat-empty p { margin-bottom: 1.5rem; font-size: 1rem; }
.btn--dark {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #00a652;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.btn--dark:hover { background: #333; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.cg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.cg-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1.5px solid #d4ccc4;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, color 0.15s;
}
.cg-pagination__btn:hover {
  border-color: #00a652;
  color: #00a652;
}
.cg-pagination__btn.is-active {
  background: #00a652;
  border-color: #00a652;
  color: #fff;
}
.cg-pagination__gap {
  color: #bbb;
  padding: 0 0.2rem;
  font-size: 0.9rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cat-hero { padding: 2rem 1rem 1.5rem; }
  .subcat-nav__inner { padding: 0.5rem 1rem; }
  .cat-toolbar { padding: 0.5rem 1rem; }
  .toolbar-filter--sort { margin-left: 0; }
  .cat-main { padding: 1.25rem 1rem 3rem; }
  .cat-grid { grid-template-columns: 1fr; gap: 1rem; }
}