/* ═══════════════════════════════════════════════════════════════════════════
 * IPM Module Styles
 * Shared styles for trap management across grower and advisor interfaces
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Trap Cards ──────────────────────────────────────────────────────────── */
.trap-card {
  background: #fffdf0;
  border: 1px solid #e6c800;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.trap-name {
  font-weight: 700;
  font-size: 14px;
  color: #5a4000;
}

.trap-meta {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* ── Lure Status ─────────────────────────────────────────────────────────── */
.lure-fresh {
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
}

.lure-warn {
  color: #f57c00;
  font-size: 12px;
  font-weight: 600;
}

.lure-stale {
  color: #c62828;
  font-size: 12px;
  font-weight: 600;
}

/* ── Leaflet Map Container ───────────────────────────────────────────────── */
.ipm-map-container {
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.ipm-map-sm {
  height: 200px;
}

.ipm-map-lg {
  height: 500px;
}

/* ── Autocomplete Dropdown ───────────────────────────────────────────────── */
.ipm-pest-autocomplete {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  margin-top: 2px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 240px;
  overflow-y: auto;
}

.ipm-pest-autocomplete-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.ipm-pest-autocomplete-item:hover {
  background: #f5f5f5;
}

.ipm-pest-autocomplete-item:last-child {
  border-bottom: none;
}


/* Mobile trap card buttons */
@media (max-width: 640px) {
  .trap-card button {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  
  .trap-card {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .trap-card > div:last-child {
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }
}
