/* ══════════════════════════════════════════
   Visvanger — Vissoort-paginastijl
   Achtergrond (--ff-bg) en kaartkleuren (--ff-surface-2) matchen exact met
   de forecast-pagina — zie fish-forecaster.css voor de bron van deze variabelen.
   ══════════════════════════════════════════ */

.ff-species-page{
  max-width: 1200px;
  background: rgba(13,59,103,0.05);
  border-radius: 10px;
  padding: 40px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .ff-species-page{ padding: 1.75rem 1.25rem 2.25rem; border-radius: 16px; }
}

/* ── Eyebrow-label boven de titel ── */
.ff-species-eyebrow{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ff-teal-light); color: var(--ff-teal);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* ── Hero ── */
.ff-species-hero{
  display: flex; flex-direction: column; gap: 22px;
  margin-bottom: 2.25rem;
}
.ff-species-hero-img{
  width: 100%; height: 280px; border-radius: 18px; overflow: hidden;
  background: var(--ff-surface-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(13,60,105,.12);
  position: relative;
}
.ff-species-hero-img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.ff-species-hero-img:hover img{ transform: scale(1.03); }
.ff-species-hero-img--empty{ font-size: 64px; }
.ff-species-hero-title{
  font-size: 34px; font-weight: 700; letter-spacing: -.015em;
  color: var(--ff-text-1); margin: 0 0 10px; line-height: 1.15;
}
.ff-species-hero-sub{
  font-size: 17px; color: var(--ff-text-2); line-height: 1.65; margin: 0;
}

@media (min-width: 640px) {
  .ff-species-hero{ flex-direction: row; align-items: center; }
  .ff-species-hero-img{ width: 300px; height: 230px; flex-shrink: 0; }
}

/* ── Twee-koloms layout: content links, facts-sidebar rechts ── */
.ff-species-layout{
  display: grid; grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .ff-species-layout{
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start; gap: 2rem;
  }
}

.ff-species-main{ min-width: 0; }

/* Sidebar: facts staan verticaal gestapeld, blijft mee scrollen tot het einde van de content */
.ff-species-sidebar{ }
@media (min-width: 900px) {
  .ff-species-sidebar{ position: sticky; top: 20px; }
}

.ff-species-facts{
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .ff-species-facts{ grid-template-columns: 1fr; gap: 12px; }
}
.ff-species-fact-card{
  background: var(--ff-surface-2); border: 0.5px solid var(--ff-border);
  border-left: 3px solid var(--ff-fact-accent, var(--ff-border));
  border-radius: 12px; padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s;
}
.ff-species-fact-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.ff-species-fact-icon{ font-size: 21px; margin-bottom: 8px; }
.ff-species-fact-label{
  font-size: 11px; color: var(--ff-text-3); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;
}
.ff-species-fact-value{ font-size: 14px; color: var(--ff-text-1); font-weight: 600; line-height: 1.4; }

/* ── Body content: ruime kaart, tekst staat los van de randen ── */
.ff-vissoort-body{
  font-size: 16px; line-height: 1.75; color: var(--ff-text-1);
  background: var(--ff-surface-2); border: 0.5px solid var(--ff-border);
  border-radius: 18px; padding: 40px 40px 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  flex: 1;
}
@media (max-width: 640px) {
  .ff-vissoort-body{ padding: 1.75rem 1.5rem; }
}

.ff-vissoort-body h2{
  font-size: 21px; font-weight: 700; color: var(--ff-text-1);
  margin: 3.25rem 0 1.1rem; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 12px;
}
.ff-vissoort-body h2:first-child{ margin-top: 0; }

/* Kleine gekleurde iconbadge vóór elke sectiekop, i.p.v. los emoji-teken */
.ff-vissoort-body h2::before{
  content: '';
  width: 4px; height: 22px; border-radius: 3px;
  background: var(--ff-teal-mid); flex-shrink: 0;
}

.ff-vissoort-body p{ margin: 0 0 1.15rem; }
.ff-vissoort-body ul, .ff-vissoort-body ol{ margin: 0 0 1.3rem; padding-left: 0; list-style: none; }
.ff-vissoort-body li{
  margin-bottom: .55rem; padding-left: 1.5rem; position: relative;
  line-height: 1.6;
}
.ff-vissoort-body ul li::before{
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ff-teal-mid);
}
.ff-vissoort-body ol{ counter-reset: ff-ol-counter; }
.ff-vissoort-body ol li{ counter-increment: ff-ol-counter; }
.ff-vissoort-body ol li::before{
  content: counter(ff-ol-counter);
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ff-teal-light); color: var(--ff-teal-dark);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Vergelijkingstabel — bijv. "Verschil tussen X en Y", scanbaarder dan
   bullets en semantisch duidelijker voor zoekmachines bij een directe
   soort-vergelijking. Herbruikbaar component.
   Wrapper (.ff-comparetable-wrap) verzorgt de afgeronde hoeken — geen
   zijranden, alleen boven/onder, voor een strak, open uiterlijk. */
.ff-vissoort-body .ff-comparetable-wrap{
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--ff-border);
  margin: 0 0 1.5rem;
}
.ff-vissoort-body .ff-comparetable{
  width: 100%; border-collapse: collapse; /* collapse i.p.v. separate voorkomt dubbele randlijnen */
  font-size: 14.5px;
  border: none !important; /* overschrijft thema-standaardstyling voor <table> in content */
  margin: 0;
}
.ff-vissoort-body .ff-comparetable thead th{
  background: var(--ff-teal); color: #fff;
  padding: .8rem 1rem; text-align: left; font-weight: 700;
  border: none !important;
}
.ff-vissoort-body .ff-comparetable thead th:first-child{ width: 34%; }
.ff-vissoort-body .ff-comparetable tbody td{
  padding: .75rem 1rem; border-bottom: 1px solid var(--ff-border); /* alleen bottom, nooit ook top: voorkomt dubbele lijn */
  border-left: none !important; border-right: none !important; border-top: none !important;
  vertical-align: top; line-height: 1.5;
}
.ff-vissoort-body .ff-comparetable tbody tr:last-child td{ border-bottom: none; }
.ff-vissoort-body .ff-comparetable tbody td:first-child{
  font-weight: 700; color: var(--ff-text-1); background: var(--ff-surface-1);
}
.ff-vissoort-body .ff-comparetable tbody tr:nth-child(even) td{
  background: var(--ff-surface-1);
}
.ff-vissoort-body .ff-comparetable tbody tr:nth-child(even) td:first-child{
  background: var(--ff-bg);
}

/* Mobiel: tabel valt om tot gestapelde kaartjes per rij i.p.v. geknepen
   kolommen — elk kenmerk wordt een los blok met Pos/Baars eronder. */
@media (max-width: 640px) {
  .ff-vissoort-body .ff-comparetable-wrap{ border: none; border-radius: 0; }
  .ff-vissoort-body .ff-comparetable thead{
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; /* onzichtbaar maar leesbaar voor screenreaders */
  }
  .ff-vissoort-body .ff-comparetable,
  .ff-vissoort-body .ff-comparetable tbody,
  .ff-vissoort-body .ff-comparetable tr,
  .ff-vissoort-body .ff-comparetable td{
    display: block; width: 100%;
  }
  .ff-vissoort-body .ff-comparetable{ border-collapse: separate; border: none !important; }
  /* border-radius/overflow op <tr> werkt niet betrouwbaar in browsers
     (tabelrijen zijn niet gebouwd om als kaart te clippen) — de afronding
     staat daarom direct op de eerste/laatste cel van elke rij. */
  .ff-vissoort-body .ff-comparetable tr{
    margin-bottom: 12px; border: 1px solid var(--ff-border);
    border-radius: 12px;
  }
  .ff-vissoort-body .ff-comparetable tr:last-child{ margin-bottom: 0; }
  .ff-vissoort-body .ff-comparetable td{
    border-bottom: 1px solid var(--ff-border) !important;
    border-left: none !important; border-right: none !important; border-top: none !important;
    background: var(--ff-surface-2) !important;
  }
  .ff-vissoort-body .ff-comparetable tr td:last-child{
    border-bottom: none !important;
    border-bottom-left-radius: 11px; border-bottom-right-radius: 11px;
  }
  .ff-vissoort-body .ff-comparetable td:first-child{
    background: var(--ff-teal) !important; color: #fff !important;
    font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
    border-top-left-radius: 11px; border-top-right-radius: 11px;
  }
  .ff-vissoort-body .ff-comparetable td:not(:first-child)::before{
    content: attr(data-label) ': '; font-weight: 700; color: var(--ff-text-1);
  }
}

/* Inline foto's op vaste posities in de tekst (zie FF_Species foto-slots) */
.ff-vissoort-body .ff-inline-photo{
  margin: 2rem 0; padding: 0;
}
.ff-vissoort-body .ff-inline-photo-img{
  width: 100%; height: 385px; object-fit: cover; object-position: center 100%;
  border-radius: 14px; display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.ff-vissoort-body strong{ color: var(--ff-text-1); font-weight: 600; }

/* Tip-box tussen de content */
.ff-vissoort-body .ff-tipbox{
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ff-teal-light); border: 1px solid var(--ff-teal-mid);
  border-radius: 12px; padding: 1.1rem 1.35rem; margin: 1.6rem 0;
  font-size: 15px; line-height: 1.6;
}
.ff-vissoort-body .ff-tipbox-icon{ font-size: 20px; flex-shrink: 0; line-height: 1.4; }
.ff-vissoort-body .ff-tipbox strong{ display: block; margin-bottom: 2px; }

/* Regelgeving-box (net iets anders getint, feitelijke info) */
.ff-vissoort-body .ff-regelbox{
  background: var(--ff-bg); border: 1px solid var(--ff-border);
  border-left: 3px solid var(--ff-amber);
  border-radius: 10px; padding: 1.1rem 1.35rem; margin: 1.6rem 0;
  font-size: 14px; line-height: 1.65; color: var(--ff-text-2);
}
.ff-vissoort-body .ff-regelbox strong{ color: var(--ff-text-1); }
.ff-vissoort-body .ff-regelbox a{ color: var(--ff-teal-mid); }

/* ── CTA-blok onderaan: subtiel verlopend accent, met ingebed zoekformulier ── */
.ff-species-cta{
  margin-top: 2.75rem; padding: 2.1rem 2.4rem;
  background: linear-gradient(135deg, var(--ff-teal) 0%, var(--ff-teal-dark) 100%);
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 18px;
  color: #fff;
}
.ff-species-cta-text strong{ font-size: 19px; display: block; margin-bottom: 6px; }
.ff-species-cta-text p{ margin: 0; opacity: .88; font-size: 15px; line-height: 1.5; }

/* Het zoekformulier in de CTA hergebruikt .ff-search-bar uit fish-forecaster.css,
   maar krijgt hier volle breedte i.p.v. naast de tekst te staan. */
/* Het zoekformulier in de CTA hergebruikt .ff-search-bar/.ff-input/.ff-btn
   uit fish-forecaster.css, maar die zijn ontworpen voor een lichte
   achtergrond. Op de donkerblauwe CTA-gradient hier zou de standaard
   "Zoeken"-knop (ook donkerblauw) bijna onzichtbaar zijn, en de GPS-tekst
   (grijs, bedoeld voor wit) nauwelijks leesbaar. Onderstaande overrides
   geven het geheel een "glazen paneel"-uitstraling met goed contrast. */
.ff-species-cta-search{
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 7px;
  backdrop-filter: blur(6px);
}
.ff-app .ff-species-cta-search.ff-search-bar{ margin: 0; gap: 8px; }

.ff-species-cta-search .ff-input{
  height: 46px; border: none;
  box-shadow: none;
  font-size: 15px;
}
.ff-species-cta-search .ff-input:focus{
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.ff-species-cta-search .ff-search-icon{ stroke: var(--ff-text-2); }

.ff-species-cta-search .ff-btn{
  height: 46px; border-radius: 11px;
  font-size: 14px; font-weight: 600;
}

/* GPS: transparant met lichte rand, wit lettertype voor contrast op donkerblauw */
.ff-species-cta-search .ff-btn-gps{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}
.ff-species-cta-search .ff-btn-gps:hover{
  background: rgba(255,255,255,.2);
  color: #fff;
}
.ff-species-cta-search .ff-btn-gps svg{ stroke: #fff; }

/* Zoeken: heldere accentkleur i.p.v. hetzelfde donkerblauw als de achtergrond */
.ff-species-cta-search .ff-btn-search{
  background: var(--ff-teal-mid);
  border-color: var(--ff-teal-mid);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.ff-species-cta-search .ff-btn-search:hover{
  background: #4a9bd6;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}

@media (max-width: 480px) {
  .ff-species-cta-search{ flex-wrap: wrap; padding: 8px; gap: 8px; }
  .ff-species-cta-search .ff-search-wrap{ flex: 1 1 100%; order: -1; }
  .ff-species-cta-search .ff-btn-gps,
  .ff-species-cta-search .ff-btn-search{ flex: 1; justify-content: center; }
}

/* ── Andere vissoorten (interne links, onderaan) ── */
.ff-species-related{ margin-top: 40px; }
.ff-species-related-head{
  font-size: 17px; font-weight: 700; color: var(--ff-text-1);
  margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: 10px;
}
.ff-species-related-head::after{
  content: ''; flex: 1; height: 1px; background: var(--ff-border);
}
.ff-species-related-grid{
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (min-width: 640px) {
  .ff-species-related-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.ff-species-related-card{
  display: block; text-decoration: none; color: inherit;
  background: var(--ff-surface-2); border: 0.5px solid var(--ff-border);
  border-radius: 14px; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.ff-species-related-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.ff-species-related-img{
  width: 100%; height: 92px; overflow: hidden;
  background: var(--ff-bg);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.ff-species-related-img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.ff-species-related-card:hover .ff-species-related-img img{ transform: scale(1.06); }
.ff-species-related-name{
  padding: .75rem .8rem; font-size: 14px; font-weight: 600; color: var(--ff-text-1);
  text-align: center;
}

/* ══════════════════════════════════════════
   FAQ-accordion — native <details>/<summary>, geen JS nodig
   ══════════════════════════════════════════ */
.ff-vissoort-body .ff-faq-item{
  background: var(--ff-surface-2); border: 0.5px solid var(--ff-border);
  border-radius: 12px; margin: 0 0 10px; overflow: hidden;
  transition: box-shadow .15s;
}
.ff-vissoort-body .ff-faq-item:hover{ box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.ff-vissoort-body .ff-faq-item[open]{ box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ff-vissoort-body .ff-faq-item summary{
  padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 600; color: var(--ff-text-1);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ff-vissoort-body .ff-faq-item summary::-webkit-details-marker{ display: none; }
.ff-vissoort-body .ff-faq-item summary::after{
  content: '+'; font-size: 20px; font-weight: 400; color: var(--ff-teal-mid);
  flex-shrink: 0; transition: transform .2s;
}
.ff-vissoort-body .ff-faq-item[open] summary::after{ transform: rotate(45deg); }
.ff-vissoort-body .ff-faq-item p{
  padding: 0 1.25rem 1.1rem; margin: 0; color: var(--ff-text-2);
  font-size: 14.5px; line-height: 1.65;
}

/* ══════════════════════════════════════════
   Techniekkaarten — voor secties met meerdere losse, benoemde technieken
   ══════════════════════════════════════════ */
.ff-vissoort-body .ff-techlist{
  display: grid; gap: 12px; margin: 0 0 1.5rem;
}
.ff-vissoort-body .ff-techcard{
  background: var(--ff-surface-1); border: 0.5px solid var(--ff-border);
  border-left: 3px solid var(--ff-teal-mid);
  border-radius: 10px; padding: 1rem 1.25rem;
}
.ff-vissoort-body .ff-techcard h4{
  margin: 0 0 5px; font-size: 15px; font-weight: 700; color: var(--ff-text-1);
}
.ff-vissoort-body .ff-techcard p{
  margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ff-text-2);
}

/* ══════════════════════════════════════════
   Seizoenskaarten — 4 losse blokjes i.p.v. één dichte alinea
   ══════════════════════════════════════════ */
.ff-vissoort-body .ff-seasongrid{
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px; margin: 0 0 1.5rem;
}
.ff-vissoort-body .ff-seasoncard{
  background: var(--ff-surface-1); border: 0.5px solid var(--ff-border);
  border-radius: 12px; padding: 1.25rem 1.1rem;
  display: flex; flex-direction: column; gap: 8px;
}
.ff-vissoort-body .ff-seasoncard .ff-season-icon{ font-size: 22px; line-height: 1; }
.ff-vissoort-body .ff-seasoncard .ff-season-label{
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ff-teal-dark); background: var(--ff-teal-light);
  padding: 3px 9px; border-radius: 999px;
}
.ff-vissoort-body .ff-seasoncard p{
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--ff-text-2);
}

/* ══════════════════════════════════════════
   Vissoorten-overzicht (/vissoorten/ archiefpagina)
   ══════════════════════════════════════════ */
.ff-species-archive-hero{
  margin-bottom: 2.5rem;
}
.ff-species-archive-hero .ff-species-hero-title{ margin-bottom: 10px; }
.ff-species-archive-hero .ff-species-hero-sub{ max-width: 640px; }

.ff-species-archive-grid{
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px; margin-bottom: 2.75rem;
}
@media (min-width: 640px) {
  .ff-species-archive-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.ff-species-archive-card{
  display: block; text-decoration: none; color: inherit;
  background: var(--ff-surface-2); border: 0.5px solid var(--ff-border);
  border-radius: 14px; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.ff-species-archive-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.ff-species-archive-img{
  width: 100%; height: 130px; overflow: hidden;
  background: var(--ff-bg);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.ff-species-archive-img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.ff-species-archive-card:hover .ff-species-archive-img img{ transform: scale(1.06); }
.ff-species-archive-body{ padding: .9rem 1rem; }
.ff-species-archive-name{
  font-size: 15px; font-weight: 700; color: var(--ff-text-1);
  margin-bottom: 3px;
}
.ff-species-archive-habitat{
  font-size: 12.5px; color: var(--ff-text-3); line-height: 1.4;
}
.ff-species-archive-empty{
  color: var(--ff-text-2); font-size: 15px; margin-bottom: 2rem;
}

.ff-species-archive-link{
  text-align: center; margin: 1.1rem 0 0;
}
.ff-species-archive-link a{
  font-size: 14px; font-weight: 600; color: var(--ff-teal-mid);
  text-decoration: none;
}
.ff-species-archive-link a:hover{ text-decoration: underline; }
