/* Basis */
:root{
  --green:#009B77;
  --green-dark:#006400;
  --green-dark-2:#004d00;
  --text:#111;
  --white:#fff;
  --radius:8px;
  --gap:12px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Segoe UI", Arial, sans-serif;
  color:var(--text);
  background:#f7f7f7;
}

/* Titelbalk (eventueel gebruikt op andere pagina's) */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--green);
  color:var(--white);
  padding:6px 12px;
  height:56px;
}
.topbar-section{
  flex:1;
  display:flex;
  align-items:center;
  min-width:0; /* truncate netjes */
}
.topbar-section.center{justify-content:center;text-align:center}
.topbar-section.right{justify-content:flex-end}

/* Logo geforceerd wit */
.logo{
  height:36px;
  margin-right:8px;
}

/* Site-naam links */
.site-title{
  color:var(--white);
  font-weight:700;
  font-size:16px;
  line-height:1;
  white-space:nowrap;
}

/* Paginatitel midden */
.page-title{
  color:var(--white);
  font-weight:700;
  font-size:18px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Knoppen */
.btn{
  appearance:none;
  border:none;
  border-radius:var(--radius);
  padding:6px 12px;
  font-size:14px;
  cursor:pointer;
}
.btn-back{
  background:var(--green-dark);
  color:var(--white);
}
.btn-back:hover{ background:var(--green-dark-2); }

/* Claim button (paars) */
.btn.claim-btn{
  background:#6f42c1;
  color:#fff;
  border:none;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  box-shadow:0 2px 4px rgba(0,0,0,.08);
  transition:transform .08s ease, filter .12s ease, box-shadow .12s ease;
  text-decoration:none;
  display:inline-block;
  line-height:1.2;
}
.btn.claim-btn:hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}
.btn.claim-btn:active{
  transform:translateY(0);
  filter:brightness(.95);
  box-shadow:0 2px 6px rgba(0,0,0,.10);
}

/* ==== TYPE LABELS - TEXELSE STALLETJES (DESKTOPSITE) ==== */

.label-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  color: #000;
  font-weight: 500;
  font-size: 0.9em;
  margin-right: 6px;
  text-transform: capitalize;
}

.label-boerderijwinkel { background-color: #FFB347; } /* oranje */
.label-kraampje        { background-color: #C7E9B0; } /* lichtgroen */
.label-melktap         { background-color: #FFFFFF; border:1px solid #ccc; }
.label-overig          { background-color: #B5E3F0; } /* lichtblauw */
.label-in-de-wacht     { background-color: #D3D3D3; } /* grijs */

/* === Footer (globaal) === */
.site-footer{
  margin-top:32px;
  border-top:1px solid #e5e7eb;
  padding:16px 0;
  background:#fafafa;
}
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:0 12px;
}
.footer-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
}
.footer-nav .f-link{
  text-decoration:none;
}
.footer-nav .f-link:hover{
  text-decoration:underline;
}
.footer-note{
  margin-top:6px;
  color:#666;
  font-size:.95rem;
}

/* --- Sticky header (blijft bovenaan plakken) --- */
.desktop-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #136a34; /* match je headerkleur */
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* --- Vaste categorie-balk onderin (homepage) --- */
.fixed-cats{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 10px rgba(0,0,0,.06);
  padding: 8px 12px;
}
.fixed-cats-row{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.fixed-cats .cat-link{
  text-decoration: none;
  font-weight: 600;
  color: #136a34;
}
.fixed-cats .cat-link:hover{
  text-decoration: underline;
}
.fixed-cats-tip{
  margin-top: 6px;
  text-align: center;
  font-size: .95rem;
  color: #555;
}
/* ----- Popup venster (modaal) ----- */

.ts-modal {
  display: none; 
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
}

.ts-modal-content {
  background: #fff;
  padding: 24px;
  max-width: 800px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  font-size: 1rem;
  line-height: 1.45;
}

.ts-close-btn {
  float: right;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
}
.ts-close-btn:hover {
  color: #000;
}
/* Vast menukadertje rechtsboven (homepage) */
.ts-sidepanel{
  position: fixed;
  top: 80px;          /* onder je groene header; pas aan als nodig */
  right: 12px;
  z-index: 1500;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 10px 12px;
  max-width: 220px;
  font-size: 0.95rem;
}
.ts-sidepanel h3{
  margin: 0 0 6px;
  font-size: 1rem;
}
.ts-sidepanel a{
  color: #136a34;
  text-decoration: none;
}
.ts-sidepanel a:hover{
  text-decoration: underline;
}
.ts-zoom-row{
  display:flex;
  gap:6px;
  margin-top:8px;
}
.ts-zoom-btn{
  flex:1;
  padding:4px 0;
  border-radius:6px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  cursor:pointer;
  font-size:14px;
}
.ts-zoom-btn:hover{
  background:#e5f3ea;
}

/* Op kleine schermen: paneel niet fixed, maar gewoon mee in de flow */
@media (max-width: 768px){
  .ts-sidepanel{
    position: static;
    max-width: none;
    margin: 8px 12px;
  }
}
.ts-sidepanel-links a {
  display: block;
  margin-bottom: 12px;
  color: #136a34;
  font-weight: bold;
  text-decoration: none;
}

.ts-sidepanel-links a:hover {
  text-decoration: underline;
}
.ts-sidepanel .ts-side-link {
  margin: 0 0 6px;
}

.ts-sidepanel .ts-side-link a {
  display: inline-block;
  color: #136a34;
  text-decoration: none;
  font-weight: 600;
}

.ts-sidepanel .ts-side-link a:hover {
  text-decoration: underline;
}
.ts-sidepanel .ts-side-links a {
  color: #136a34;
  text-decoration: none;
  font-weight: 600;
}

.ts-sidepanel .ts-side-links a:hover {
  text-decoration: underline;
}

/* =========================================
   Universeel menu (PC + mobiel kaart)
   ========================================= */

/* Vaste groene knop rechtsonder */
#mob-menu-btn {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: #136a34;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
  cursor: pointer;
  z-index: 9999;
}

/* Donkere overlay over hele scherm */
.ts-popup {
  display: none;
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.55);
  justify-content: center;
  align-items: center;
}

/* Witte kaart met menu-links */
.ts-popup-inner {
  background: #fff;
  padding: 18px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  text-align: left;
  position: relative;
}

/* Sluitknopje in menu-popup */
.ts-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 22px;
  cursor: pointer;
}

/* Kopje in menu-popup */
.ts-popup-inner h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

/* De drie menu-links */
.ts-popup-inner a {
  display: block;
  margin: 6px 0;
  font-size: 16px;
  color: #136a34;
  text-decoration: none;
  font-weight: bold;
}

.ts-popup-inner a:hover {
  text-decoration: underline;
}

/* Hint-tekst in sidepanel */
.ts-sidepanel .ts-side-hint {
  font-size: 0.9rem;
  margin: 0 0 10px;
}
/* =========================
   Popups Over / Help / Contact (desktop)
   ========================= */

.ts-modal.ts-popup {
  display: none;               /* js zet dit op 'flex' bij openen */
  position: fixed;
  inset: 0;                    /* top/right/bottom/left: 0 */
  z-index: 3000;
  background: rgba(0,0,0,.55); /* donkere waas achter popup */
  justify-content: center;
  align-items: center;
}

/* Binnenkant van de popup (het witte vlak) */
.ts-modal-content.ts-popup-inner {
  position: relative;
  background: #fff;
  padding: 20px 24px;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;           /* breedte van de popup */
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  font-size: 1rem;
  line-height: 1.45;
}

/* Sluitknop (kruisje) rechtsboven in de popup */
.ts-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

/* Algemene knopstijl binnen popups (bijv. "Sluiten") */
.ts-btn {
  background: #136a34;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 8px;
}

.ts-btn:hover {
  background: #0f5227;
}

/* Optioneel: lijstjes in de help-popup */
.help-ul {
  padding-left: 1.2rem;
  margin: 0 0 0.5rem;
}

.help-ul li {
  margin-bottom: 4px;
}

.help-ul-sub {
  padding-left: 1.2rem;
  margin: 4px 0 0.5rem;
  font-size: 0.95em;
}
.popup-photo-wrap{
  width:300px;
  height:300px;               /* i.p.v. aspect-ratio */
  display:grid;
  place-items:center;
  margin:0 auto 6px;
  background: transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.popup-photo-wrap img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}


#map {
  width: 100%;
  height: calc(100vh - 60px);
  margin-bottom: 12px;
}

/* Reset standaard leaflet tooltip */
.leaflet-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Naamlabel klikbaar en hoverbaar */
.map-label-inner {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 3px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.map-label-inner:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
}

/* zwarte punt middenonder */
.map-label-inner::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #000;
}
/* Grid voor overzichtspagina's: stalletjes/kraampjes/melktap/boerderijwinkels/producten */
.ov-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ov-card {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Tablet / kleinere schermen: 3 per rij */
@media (max-width: 900px) {
  .ov-card {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* Telefoon (portrait): 2 per rij */
@media (max-width: 600px) and (orientation: portrait) {
  .ov-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Optioneel: telefoon landscape → 3 per rij */
@media (max-width: 900px) and (orientation: landscape) {
  .ov-card {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

