/* Small layer over Bootstrap: bigger touch targets, softer cards */
:root {
  --bs-primary: #5b7553;
}

.card.item-card {
  transition: transform .12s ease, box-shadow .12s ease;
  border: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.item-card .card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee;
}
.item-card a { text-decoration: none; color: inherit; }

.status-badge { font-size: .75rem; }

.claim-btn { min-height: 3rem; font-size: 1.05rem; }

.carousel-photo {
  max-height: 65vh;
  object-fit: contain;
  background: #111;
}

.photo-strip { overflow-x: auto; padding-bottom: .25rem; }
.photo-strip-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: .375rem;
  background: none;
  opacity: .7;
}
.photo-strip-thumb.active { border-color: var(--bs-primary); opacity: 1; }
.photo-strip-thumb img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: .25rem;
  display: block;
}

.photo-manager-thumb { aspect-ratio: 1; object-fit: cover; width: 100%; }

.photo-count {
  position: absolute;
  top: .4rem;
  right: .4rem;
  font-size: .75rem;
  background: rgba(0,0,0,.6);
}
.item-card > a { position: relative; display: block; }

.filter-bar .form-select, .filter-bar .form-control { min-height: 2.75rem; }

@media (pointer: coarse) {
  .nav-link, .btn { min-height: 2.75rem; display: inline-flex; align-items: center; }
}

/* Returning from an item lands on its card, clear of the sticky navbar */
.item-card { scroll-margin-top: 5rem; }

/* Planning card: tap-to-pick rows */
.plan-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.plan-row .btn { min-height: 2.75rem; min-width: 4.5rem; }
