/* Card Layout Grid: 3 per row on Desktop, 1 on Tablet/Mobile */
.fly-fishing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

@media (max-width: 1024px) {
  .fly-fishing-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Styling */
.ff-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ff-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Media Viewport & Overlay Controls */
.ff-media-container {
  position: relative;
  width: 100%;
  padding-top: 60%; /* Aspect Ratio */
  border-radius: 12px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.ff-media-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ff-media-viewport img.card-media-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ff-media-viewport iframe.card-media-element {
  width: 100%;
  height: 100%;
  border: none;
}

/* Navigation Buttons (Image 2 style) */
.ff-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: none;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 5;
}

.ff-media-container.has-controls .ff-nav-btn {
  display: flex;
}

.ff-nav-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.ff-prev-btn { left: 8px; }
.ff-next-btn { right: 8px; }

/* Counter Badge (e.g. 1/3) */
.ff-slide-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: none;
  z-index: 5;
}

.ff-media-container.has-controls .ff-slide-counter {
  display: block;
}

/* Card Text & Footer */
.ff-card-description {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  min-height: 2.8em; /* Holds space across slide changes */
}

.ff-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: auto;
}

.ff-action-badge {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Footer Layout */
.ff-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.ff-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

.ff-action-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Button Group Container */
.ff-card-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

/* Base Button Style */
.ff-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ff-btn-icon {
  font-size: 0.9rem;
}

/* Location Button (Primary Accent) */
.ff-btn-location {
  background-color: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.ff-btn-location:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Website Button (Brand Accent) */
.ff-btn-website {
  background-color: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
}

.ff-btn-website:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}