/* =========================
   FOOD TRUCKS: Map + Sheet
   ========================= */
.ff-foodtrucks{
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 18px auto 60px;
  padding: 0 16px;
}

.ff-ft-map{
  width: 100%;
  height: 68vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  background: #eee;
}

/* Toggle Button (Mobile) */
.ff-ft-sheet-toggle{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* Bottom sheet */
.ff-ft-sheet{
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(78%);
  width: min(980px, calc(100% - 20px));
  height: min(78vh, 720px);
  background: rgba(255,255,255,0.98);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -16px 40px rgba(0,0,0,0.22);
  z-index: 9998;
  transition: transform 0.28s ease;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
}
.ff-ft-sheet.is-open{
  transform: translateX(-50%) translateY(0);
}

.ff-ft-sheet-head{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ff-ft-sheet-head h2{ margin: 0; font-size: 1.15rem; }
.ff-ft-sub{ margin: 2px 0 0; font-size: 0.9rem; color: #555; }

.ff-ft-close{
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.ff-ft-filters{
  display:flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ff-ft-filter{
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.ff-ft-filter.is-active{
  border-color: rgba(176,0,0,0.45);
  box-shadow: 0 0 0 2px rgba(176,0,0,0.12);
}

.ff-ft-list{
  overflow: auto;
  padding: 10px 10px 18px;
}

.ff-ft-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px 12px;
  margin: 8px 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ff-ft-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.ff-ft-title{ margin: 0; font-weight: 800; font-size: 1rem; }
.ff-ft-small{ margin: 4px 0 0; font-size: 0.9rem; color: #555; }

.ff-ft-badge{
  align-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.12);
}
.ff-ft-badge.is-open{ background: rgba(34,197,94,0.12); }
.ff-ft-badge.is-closed{ background: rgba(239,68,68,0.10); }

.ff-ft-detail{
  overflow:auto;
  padding: 12px 16px 18px;
}

.ff-ft-back{
  border: none;
  background: transparent;
  font-weight: 800;
  cursor:pointer;
  padding: 6px 0 10px;
}

.ff-ft-meta{ margin: 6px 0 14px; color:#555; }

.ff-ft-block{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px 12px;
  margin: 10px 0;
}
.ff-ft-block h4{ margin: 0 0 8px; }

/* Desktop: Sidebar rechts */
@media (min-width: 980px){
  .ff-ft-sheet-toggle{ display:none; }

  .ff-foodtrucks{
    max-width: 1400px;
    display:grid;
    grid-template-columns: 1fr 420px;
    gap: 16px;
    align-items: start;
  }

  .ff-ft-sheet{
    position: sticky;
    top: 90px;
    left: auto;
    bottom: auto;
    transform: none;
    width: 420px;
    height: calc(68vh);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
    z-index: 1;
  }
  .ff-ft-sheet.is-open{ transform:none; }
}
